Current-Users archive

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

gdb + pthread



I thought gdb + pthread was fixed/improved some time ago, but it
doesn't work for me.  For example:

bighill% uname -spr
NetBSD 5.99.52 i386
bighill% /usr/tests/kernel/tty/t_pr ptyioctl
passed
bighill% cat t_pr.gdb
set args ptyioctl
run
backtrace
bighill% gdb -batch -n -x t_pr.gdb /usr/tests/kernel/tty/t_pr
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGTRAP, Trace/breakpoint trap.
0xbbabd8d0 in pthread_setcancelstate () from /usr/lib/libpthread.so.1
#0  0xbbabd8d0 in pthread_setcancelstate () from /usr/lib/libpthread.so.1
#1  0xbbabcac6 in pthread_create () from /usr/lib/libpthread.so.1
#2  0x000000d4 in ?? ()
#3  0xbbbeb000 in ?? ()
#4  0x0000a300 in ?? ()
#5  0xbbbf62a0 in _rtld_find_plt_symdef () from /usr/libexec/ld.elf_so
#6  0x00000001 in ?? ()
#7  0xbbbf2c86 in _rtld_exclusive_enter () from /usr/libexec/ld.elf_so
#8  0xbbbfebc8 in _rtld_mutex_may_recurse () from /usr/libexec/ld.elf_so
#9  0xbbbfebc8 in _rtld_mutex_may_recurse () from /usr/libexec/ld.elf_so
#10 0x80000001 in ?? ()
#11 0xffffffff in ?? ()
#12 0xffffffff in ?? ()
#13 0xffffffff in ?? ()
#14 0xffffffff in ?? ()
#15 0xbbbfe96c in ?? () from /usr/libexec/ld.elf_so
#16 0x00000008 in ?? ()
#17 0xbbbe9100 in ?? ()
#18 0xbbbeb808 in ?? ()
#19 0xbbbf4984 in dlopen () from /usr/libexec/ld.elf_so
#20 0xbbbeb0a4 in ?? ()
#21 0xbfbfd418 in ?? ()
#22 0xbfbfd3bc in ?? ()
#23 0x00000000 in ?? ()
bighill%


Home | Main Index | Thread Index | Old Index