receiving SIGTRAP from /lib/ld-linux.so.2 when using GDB in remote debugging
Hi,
I am having a hard time getting GDB to work for remote debugging. I am running RedHat Enterprise Linux 5.1 (2.6.18-53.el5), gcc 4.1.2, and gdb 6.5-25.el5rh) on x86 platform. I do not generate any signals in my application and my application works fine. I am able to attach gdb to my remote process, but I never get to the breakpoints in the application becasue the program receives SIGTRAPS pretty much at every instruction from /bin/ld-linux.so.2
GNU gdb Red Hat Linux (6.5-25.el5rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". Here is what I get:
(gdb) target remote 192.168.10.110:2345
Remote debugging using 192.168.10.110:2345
0x0067e810 in ?? ()
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0068c793 in _dl_debug_state () from /lib/ld-linux.so.2
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0068c794 in _dl_debug_state () from /lib/ld-linux.so.2
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00681379 in dl_main () from /lib/ld-linux.so.2
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0068137f in dl_main () from /lib/ld-linux.so.2
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00681381 in dl_main () from /lib/ld-linux.so.2
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00681387 in dl_main () from /lib/ld-linux.so.2
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0068138d in dl_main () from /lib/ld-linux.so.2
(gdb)
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00681397 in dl_main () from /lib/ld-linux.so.2
(gdb)
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00681399 in dl_main () from /lib/ld-linux.so.2
(gdb)
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0068139f in dl_main () from /lib/ld-linux.so.2
(gdb)
Continuing.
Has anyone seen this problem before?
Thanks
|