Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: psmith@gnu.org
Cc: gdb@sourceware.org
Subject: Re: Debugging 32bit apps with 64bit target gdb
Date: Sun, 22 May 2011 22:40:00 -0000	[thread overview]
Message-ID: <201105222240.p4MMeAfF013279@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <1306103110.2776.93.camel@homebase> (message from Paul Smith on	Sun, 22 May 2011 18:25:10 -0400)

> 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.


  reply	other threads:[~2011-05-22 22:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-19 20:18 Paul Smith
2011-05-22 22:25 ` Paul Smith
2011-05-22 22:40   ` Mark Kettenis [this message]
2011-05-22 22:55     ` Paul Smith
2011-05-22 23:10       ` Mark Kettenis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201105222240.p4MMeAfF013279@glazunov.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=gdb@sourceware.org \
    --cc=psmith@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox