This is the mail archive of the gdb@sources.redhat.com 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: remote_debug defined in m68k-stub.c and top.c


Bob Rossi wrote:

Hi,

Does m68k-stub.c and top.c ever get linked into the same exe?
Or do you just get one or the other?

I am noticing that the global remote_debug is defined in both of these files.

They're different variables - m68k-stub.c is for a debugging stub that
gets linked into your program, while top.c is part of GDB proper.
It *is* a little confusing to have stubs, which are as much example
code as anything else, mixed in with GDB sources.

Stan


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