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



The following reply was made to PR port-sparc/57337; it has been noted by GNATS.

From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-sparc/57337: gdb completely broken on sparc
Date: Tue, 29 Aug 2023 16:10:46 +0300

 Import of the new gdb seems to have helped somewhat.  I haven't yet
 tried any heavy duty debugging, but at least the basics seem to work
 again.
 
 /usr/bin/gdb ./hello
 GNU gdb (GDB) 13.2
 Copyright (C) 2023 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
 Type "show copying" and "show warranty" for details.
 This GDB was configured as "sparc--netbsdelf".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <https://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
     <http://www.gnu.org/software/gdb/documentation/>.
 
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from ./hello...
 (gdb) b main
 Breakpoint 1 at 0x10748: file hello.c, line 6.
 (gdb) r
 Starting program: /home/uwe/hello
 
 Breakpoint 1, main (argc=1, argv=0xe7fff574) at hello.c:6
 6               printf("%d\n", argc);
 (gdb) i r
 g0             0x0                 0
 g1             0x64                100
 g2             0x1                 1
 g3             0x0                 0
 g4             0xe5ea3b7c          -437634180
 g5             0xe5ed87d4          -437418028
 g6             0x0                 0
 g7             0xe5ea6b58          -437621928
 o0             0x0                 0
 o1             0x344               836
 o2             0xe5e00b48          -438301880
 o3             0x3400              13312
 o4             0xf0b86a30          -256349648
 o5             0x209f0             133616
 sp             0xe7fff458          0xe7fff458
 o7             0x103f8             66552
 l0             0x4400087           71303303
 l1             0xe5e00b48          -438301880
 l2             0xe5e00b4c          -438301876
 l3             0xfc1               4033
 l4             0x1                 1
 l5             0x2                 2
 l6             0xf50d5000          -183676928
 --Type <RET> for more, q to quit, c to continue without paging--
 l7             0xe5ea3b78          -437634184
 i0             0x1                 1
 i1             0xe7fff574          -402655884
 i2             0xe7fff57c          -402655876
 i3             0x1                 1
 i4             0x0                 0
 i5             0xe5ea3b5c          -437634212
 fp             0xe7fff4b8          0xe7fff4b8
 i7             0x106d4             67284
 y              0x0                 0
 psr            0x4400086           [ S ]
 wim            <unavailable>
 tbr            <unavailable>
 pc             0x10748             0x10748 <main+12>
 npc            0x1074c             0x1074c <main+16>
 fsr            0x0                 [ ]
 csr            <unavailable>
 (gdb) p argv[0]
 $1 = 0xe7fffa7c "/home/uwe/hello"
 
 
 But then stepping into libc:
 
 (gdb) s
 
 Program received signal SIGBUS, Bus error.
 0xe5ed13a4 in _rtld_bind () from /usr/libexec/ld.elf_so
 (gdb)
 
 
 -uwe
 


Home | Main Index | Thread Index | Old Index