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: Debugging 32bit apps with 64bit target gdb


> From: Paul Smith <psmith@gnu.org>
> Date: Sun, 22 May 2011 18:25:10 -0400
> 
> Anyone have any help for me?
> 
> A short summary, I'm trying to see if I can build one GDB executable
> with all these properties:
> 
>       * Is a 32bit application so it can run on both 32bit and 64bit
>         systems
>       * Can debug 32bit applications
>       * Can debug 64bit applications (when run on a 64bit system
>         obviously)
>       * If I can get it to debug a 64bit core file when running on a
>         32bit system (with --sysroot pointing to a 64bit sysroot of
>         course) that would be awesome.
> 
> I'm only concerned with x86 architectures (for now?)
> 
> Is such a thing possible?

I believe this is possible on Solaris.  It is possible on powerpc
Linux.  It is *not* possible on Linux.  Not GDB's fault.  The x86
Linux kernel simply doesn't provide the necessary support.


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