NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: port-sparc/57337: gdb completely broken on sparc



weird.  i have different failure mode.

(gdb) b main
Breakpoint 1 at 0x10740: file hello.c, line 3.
(gdb) run
Starting program: /home/mrg/a.out

Breakpoint 1, main () at hello.c:3
3               printf("hello world\n");
(gdb) i r
g0             0x0                 0
g1             0x64                100
g2             0x1                 1
g3             0x0                 0
g4             0xede3a47c          -303848324
g5             0xeded4aa8          -303215960
g6             0x0                 0
g7             0xedec8048          -303267768
[ ... ]
psr            0x1e400081          [ S ]
wim            <unavailable>
tbr            <unavailable>
pc             0x10740             0x10740 <main+4>
npc            0x10744             0x10744 <main+8>
fsr            0x0                 [ ]

so i am seeming to get more than you, but then:

(gdb) step

Program received signal SIGBUS, Bus error.
0xeded13b4 in _rtld_bind () from /usr/libexec/ld.elf_so
(gdb) bt
#0  0xeded13b4 in _rtld_bind () from /usr/libexec/ld.elf_so
#1  0x00000012 in ?? ()

a static binary seems to work differently wrong:

(gdb) b main
Breakpoint 2 at 0x1042c: file hello.c, line 3.
(gdb) r
Starting program: /home/mrg/a.out

Breakpoint 2, main () at hello.c:3
3               printf("hello world\n");
(gdb) step
0x00017104 in puts ()
(gdb) bt
#0  0x00017104 in puts ()
#1  0x00010438 in main () at hello.c:3
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) next
Single stepping until exit from function puts,
which has no line number information.
0x000198d0 in strlen ()


.mrg.


Home | Main Index | Thread Index | Old Index