From: dir%lookout@lookout.USwest.COM (Daniel I. Rosenblatt)
Subject: gdb-4.5 on sparc fails
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 15 Apr 1992 16:58:46 GMT

Nothing modified from standard 'configure' (tried cc and gcc-2.1).
Most notable failure is a stack trace on a 'core' file doesn't work:

> Script started on Wed Apr 15 10:49:41 1992
> kmongo_jr% cat tst.c
> main(argc, argv)
> int argc;
> char *argv[];
> {
> 	register int i = 7;
> 	int j = 9;
> 
> 	printf("%d %d\n", i, j);
> 	abort();
> }
> kmongo_jr% cc -g tst.c -o tst
> kmongo_jr% ./tst
> 7 9
> Abort (core dumped)
> kmongo_jr% ./gdb tst core
> GDB is free software and you are welcome to distribute copies of it
>  under certain conditions; type "show copying" to see the conditions.
> There is absolutely no warranty for GDB; type "show warranty" for details.
> GDB 4.5, Copyright 1992 Free Software Foundation, Inc...
> Warning: core file may not match specified executable file.
> Core was generated by `tst'.
> Program terminated with signal 6, Abort.
> Cannot access memory at address 0x0.
> #0  0xf770c120 in kill ()
> (gdb) where
> #0  0xf770c120 in kill ()
> Cannot access memory at address 0xf770c118.
> (gdb) info reg
> g0             0x0	0
> g1             0x25	37
> g2             0x8000000	134217728
> g3             0xffffffff	-1
> g4             0x0	0
> g5             0x0	0
> g6             0x0	0
> g7             0x0	0
> o0             0x0	0
> o1             0x6	6
> o2             0xf7724408	-143506424
> o3             0x0	0
> o4             0x3	3
> o5             0xf774eff8	-143331336
> sp             0xf7fffac0	-134219072
> o7             0xf7724474	-143506316
> l0             0x11400082	289407106
> l1             0xf7724408	-143506424
> l2             0xf772440c	-143506420
> l3             0x0	0
> l4             0x10	16
> l5             0x10	16
> l6             0x7	7
> ---Type <return> to continue---
> l7             0xf774e960	-143333024
> i0             0x4	4
> i1             0x7	7
> i2             0x9	9
> i3             0x0	0
> i4             0x3	3
> i5             0x4	4
> fp             0xf7fffb20	-134218976
> i7             0x22c8	8904
> y              0x0	0
> psr            0x11400081	289407105
> wim            0x0	0
> tbr            0x0	0
> pc             0xf770c120	-143605472
> npc            0xf770c124	-143605468
> fpsr           0x0	0
> cpsr           0x0	0
> (gdb) run
> Starting program: /home/kmongo_jr1/dir/src/gdb-4.5/gdb/tst 
> 7 9
> 
> Program received signal 6, Abort
> 0xf770c120 in kill ()
> (gdb) where
> #0  0xf770c120 in kill ()
> #1  0xf772447c in abort ()
> #2  0x22d0 in main (argc=1, argv=0xf7fffbcc) at tst.c:9
> (gdb) info reg
> g0             0x0	0
> g1             0x25	37
> g2             0x8000000	134217728
> g3             0xffffffff	-1
> g4             0x0	0
> g5             0x0	0
> g6             0x0	0
> g7             0x0	0
> o0             0x0	0
> o1             0x6	6
> o2             0xf7724408	-143506424
> o3             0x0	0
> o4             0x3	3
> o5             0xf774eff8	-143331336
> sp             0xf7fffaa0	-134219104
> o7             0xf7724474	-143506316
> l0             0x11400085	289407109
> l1             0xf7724408	-143506424
> l2             0xf772440c	-143506420
> l3             0x0	0
> l4             0x80	128
> l5             0x80	128
> l6             0x7	7
> ---Type <return> to continue---
> l7             0xf774e960	-143333024
> i0             0x4	4
> i1             0x7	7
> i2             0x9	9
> i3             0x10	16
> i4             0x3	3
> i5             0x4	4
> fp             0xf7fffb00	-134219008
> i7             0x22c8	8904
> y              0x0	0
> psr            0x11400084	289407108
> wim            0x0	0
> tbr            0x0	0
> pc             0xf770c120	-143605472
> npc            0xf770c124	-143605468
> fpsr           0x0	0
> cpsr           0x0	0
> (gdb) frame 2
> #2  0x22d0 in main (argc=1, argv=0xf7fffbcc) at tst.c:9
> 9		abort();
> (gdb) print argv[0]
> $1 = 0xf7fffc08 "/home/kmongo_jr1/dir/src/gdb-4.5/gdb/tst"
> (gdb) quit
> The program is running.  Quit anyway? (y or n) y
> kmongo_jr% ^D
> script done on Wed Apr 15 10:50:32 1992

Newsgroups: gnu.gdb.bug