gdb & core problem only on sparc
Hello ,
I describe my probem :
I take a program .
I compile the source with the flag '-g' .
I start the binary .
I send a signal 11 .
So I have a core .
I start gdb on this core , i type bt .
On my i386 laptop :
#0 0x400b4dc1 in __libc_nanosleep () at __libc_nanosleep:-1
#1 0x400b4d58 in __sleep (seconds=5) at ../sysdeps/unix/sysv/linux/sleep.c:85
#2 0x0804846c in main (argc=1, argv=0xbffffae4) at toto.c:6
On my sparcstation SS20 :
This GDB was configured as "sparc-linux"...
warning: "/tmp/core": no core file handler recognizes format, using default
Core was generated by `./toto'.
Program terminated with signal 11, Segmentation fault.
Couldn't read input and local registers from core file
Reading symbols from /usr/lib/debug/libc.so.6...done.
Loaded symbols for /usr/lib/debug/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Couldn't read input and local registers from core file
#0 0x000000f9 in ?? ()
My system :
uname -a
Linux barman 2.2.20 #1 SMP Fri Nov 16 16:15:32 EST 2001 sparc unknown
My source program :
int main(int argc, char* argv[]) {
int i ;
for ( i=0 ; i < 20 ; i++ ) {
printf( " step %d sleeping %d sec \n" , i,i ) ;
sleep(i) ;
printf("ok done ... waiting %d s.\n",i) ;
}
}
--
____________________________________________________________
/ Erwan MAS /\
| mailto:erwan@mas.nom.fr |_/
___|________________________________________________________ |
\___________________________________________________________\__/
--
To UNSUBSCRIBE, email to debian-sparc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: