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: Random gdbserver question (x86)


Daniel Jacobowitz wrote:
On Wed, Mar 31, 2010 at 10:35:29AM -0700, Michael Snyder wrote:
Actually, I phrase it as a question even though I am pretty sure it
is true.  My real question is "Why?".  It seems to me that if we just
included amd64-linux-nat.o and amd64-*-tdep.o in the build, then
32-bit gdb should be able to debug 64-bit native apps.

I don't think the necessary kernel interfaces exist. Or at least, we aren't using them. Compare the offsets in the two nat files.


Hmmm, but both nat files get linked in when we do a 64 bit build.


Suppose I wanted to build gdb on a 32 bit host, but use it on a
64 bit host.  If I specify "target=x86_64-linux", then my gdb will
not work natively on *either* host, because it will be built as a
cross-only debugger.


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