This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Use gdb to debug gdb on Solaris 10(X86) failed
- From: "Nan Xiao" <xiaonan19830818 at qq dot com>
- To: "gdb" <gdb at sourceware dot org>
- Date: Tue, 16 Dec 2014 14:20:56 +0800
- Subject: Use gdb to debug gdb on Solaris 10(X86) failed
- Authentication-results: sourceware.org; auth=none
Hi all,
I am trying to use gdb to debug gdb on Solaris 10(X86). when the debugee gdb ran to bindtextdomain, the error occured:
(gdb) b main.c:470
Breakpoint 1 at 0x8202d28: file ../../gdb-7.8.1/gdb/main.c, line 470.
(gdb) r
Starting program: /data/local/bin/gdb
[Thread debugging using libthread_db enabled]
[New Thread 1 (LWP 1)]
[Switching to Thread 1 (LWP 1)]
Breakpoint 1, captured_main (data=0x8047704) at ../../gdb-7.8.1/gdb/main.c:470
470 bindtextdomain (PACKAGE, LOCALEDIR);
(gdb) n
[New LWP 2 ]
[LWP 2 exited]
[New Thread 2 ]
thread_to_lwp: td_ta_map_id2thr Debugger service failed
After checking the bindtextdomain code, it seems just "while (0)" and does nothing. Could anyone give some clues about this issue? Thanks very much in advance!
Best Regards
Nan Xiao