This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Random gdbserver question (x86)
On Wednesday 31 March 2010 18:35:29, Michael Snyder wrote:
> And is that more-or-less true of gdb as well? I.e., if host/target
> is x86_64-linux, then gdb can debug both 32 and 64 bit apps, but if
> host/target is i386-linux, then gdb can only debug 32 bit apps?
Native gdb yes. A 32-bit GDB should still be able to debug a
remote/gdbserver 64-bit inferior.
>
> 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.
Wouldn't work. The limitation is on ptrace.
--
Pedro Alves