This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: breakpoint in gdbserver


Amol Dixit wrote:

Michael Snyder wrote:
Dixit, Amol wrote:
Hi,
I am attempting to port gdbserver for freebsd (libpthread/libthr). While
I may have complex doubts later, I will start with a simple one.
I need to look at some gdbserver code path on Linux, and while I can set
breakpoints and these functions are entered, gdb doesn't break at all.
Gdbserver is compiled w/ symbols and I am using gdb6.8 to debug it.
Any idea what I am missing here?

(gdb) i b
Num     Type           Disp Enb Address    What
1       breakpoint     keep y   0x0804f214 in main at ../server.c:1230
        breakpoint already hit 1 time
2       breakpoint     keep y   0x0804d560 in start_inferior at
../server.c:91
3       breakpoint     keep y   0x0804b460 in add_thread at
../inferiors.c:101

I can hit 1, but not 2 & 3 for example.
I assume you are using one gdb to debug gdbserver,
and a second gdb to talk to gdbserver's socket?

Correct.
I can break in freebsd gdbserver build, but not linux (functions or line
nos.).

How curious...



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]