Current-Users archive

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

gdb fun



Wondering why compiling a GENERIC kernel didn't complete with ctfmerge using
100% cpu, I tried:

# pwd
/usr/src/sys/arch/amd64/compile/GENERIC
# gdb `which ld`
GNU gdb (GDB) 8.3
...
Reading symbols from /usr/bin/ld...
(No debugging symbols found in /usr/bin/ld)
(gdb) run -Map netbsd.map --cref -T netbsd.ldscript -Ttext 0xffffffff80200000 -e start -z max-page-size=0x200000 -X -o netbsd ${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o
Starting program: /usr/bin/ld -Map netbsd.map --cref -T netbsd.ldscript -Ttext 0xffffffff80200000 -e start -z max-page-size=0x200000 -X -o netbsd ${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o
sh: 1: Syntax error: Bad substitution
/usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/target.c:2170: internal-error: void target_mourn_inferior(ptid_t): Assertion `ptid == inferior_ptid' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.


I should have replaced the $variables, but the gdb error is impressive...


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index