hi,
brian poole took wcobb@'s gdb5.2 port and updated to 5.3, attached is
the result.
this is not a "port" per se. it has only been tested on sparc64, out of
the objdir. it doesn't load corefiles, but if an app dies under
gdb, you can get a decent backtrace some of the time. below is an
example.
sent here in case i lose it or if any brave soul wants to try and make
it work on more archs.
Program received signal SIGSEGV, Segmentation fault.
0x0000000000234734 in CharHashTable_find (hashTable=0xde6300,
key=0xfffffffffffef620 "usr") at
src/sc2code/libs/uio/hashtable.c:143
143 entry = hashTable->entries[hash & hashTable->hashMask];
(gdb) bt
#0 0x0000000000234734 in CharHashTable_find (hashTable=0xde6300,
key=0xfffffffffffef620 "usr") at src/sc2code/libs/uio/hashtable.c:143
#1 0x00000000002364d8 in uio_GPDir_getGPDirEntry (gPDir=0xddeac0,
name=0xfffffffffffef620 "usr") at src/sc2code/libs/uio/gphys.c:180
#2 0x000000000023650c in uio_GPDir_getPDirEntryHandle (pDirHandle=0xddeb00,
name=0xfffffffffffef620 "usr") at src/sc2code/libs/uio/gphys.c:189
#3 0x0000000000244d34 in stdio_getPDirEntryHandle (pDirHandle=0xddeb00,
name=0xfffffffffffef620 "usr") at src/sc2code/libs/uio/stdio/stdio.c:304
#4 0x000000000023a990 in uio_getPDirEntryHandle (dirHandle=0xddeb00,
name=0xfffffffffffef620 "usr") at src/sc2code/libs/uio/io.c:1164
#5 0x000000000023b28c in uio_walkPhysicalPath (startPDirHandle=0xddeb00,
path=0xfffffffffffef971 "usr/home/jolan/tmp/sc2/content", pathLen=30,
endPDirHandle=0xfffffffffffef780, pathRest=0xfffffffffffef778)
at src/sc2code/libs/uio/ioaux.c:72
#6 0x00000000002385d8 in uio_mountDir (destRep=0xddea40,
mountPoint=0x3ac219 "", fsType=1, sourceDir=0x0, sourcePath=0x0,
inPath=0xfffffffffffef971 "usr/home/jolan/tmp/sc2/content",
autoMount=0x4b4e60, flags=6, relative=0x0) at src/sc2code/libs/uio/io.c:242
#7 0x0000000000103864 in mountContentDir (repository=0xddea40,
contentPath=0xfffffffffffef970 "/usr/home/jolan/tmp/sc2/content")
at src/options.c:169
#8 0x00000000001032d4 in prepareContentDir (
contentDirName=0xfffffffffffefe60 "/usr/local/games/lib/uqm/content")
at src/options.c:75
#9 0x0000000000104bc0 in main (argc=1, argv=0xffffffffffff03d8)
at src/starcon2.c:311
#10 0x0000000000103044 in ___start ()
Attachment:
gdb-port.tar.gz
Description: application/tar-gz