NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-sparc64/58976: sparc64 gdb cannot debug 32-bit binaries
>Number: 58976
>Category: port-sparc64
>Synopsis: sparc64 gdb cannot debug 32-bit binaries
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-sparc64-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 08 12:55:00 +0000 2025
>Originator: Valery Ushakov
>Release: NetBSD current
>Organization:
>Environment:
NetBSD aurinko 10.99.12 NetBSD 10.99.12 (ULTRA1) #0: Sat Nov 9 00:23:25 MSK 2024 uwe@majava:/home/uwe/work/netbsd/cvs/src/sys/arch/sparc64/compile/ULTRA1 sparc64
>Description:
sparc64 gdb cannot debug programs compiled on that same sparc64 in
32-bit mode with -m32. I use sparc64 for some 32-bit sparc work and
no working debugger is a problem (sparc gdb doesn't work either b/c of
port-sparc64/58975).
>How-To-Repeat:
<uwe@aurinko:~> (1022) cat > hello.c
#include <stdio.h>
int
main()
{
printf("hello, world\n");
return 0;
}
<uwe@aurinko:~> (1023) cc -m32 -o hello -g hello.c
<uwe@aurinko:~> (1024) ./hello
hello, world
<uwe@aurinko:~> (1025) gdb -q ./hello
Reading symbols from ./hello...
(gdb) b main
Breakpoint 1 at 0x10784: file hello.c, line 6.
(gdb) r
Starting program: /home/uwe/hello
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000a06 in ?? ()
(gdb) bt
#0 0x00000a06 in ?? ()
(gdb)
>Fix:
Home |
Main Index |
Thread Index |
Old Index