From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: marc.khouzam@ericsson.com (Marc Khouzam)
Cc: msnyder@vmware.com (Michael Snyder), gdb@sourceware.org
Subject: Re: GDB for multiple targets
Date: Tue, 09 Dec 2008 18:12:00 -0000 [thread overview]
Message-ID: <200812091811.mB9IBQYV032215@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA069B9C67@ecamlmw720.eamcs.ericsson.se> from "Marc Khouzam" at Dec 09, 2008 09:41:51 AM
Marc Khouzam wrote:
> What we are hoping for is to use the same GDB binary on a host
> to debug many different targets such as:
> x86 Linux and non-linux
> powerPC linux and non-linux
> powerPC Linux and x86 non-linux
> ...
> Emulator e.g. QEMU, Simics,
Yes, it was certainly the intent that the --enable-targets options
should make such a use case possible.
> From what has been said, I believe this is possible, as long as
> the user specifies the osabi using the 'set oasbi' command.
> If the osabi was automatically set by GDB, as you suggest above,
> is there anything else to worry about to allow the
> same GDB binary to be able to automatically be ready to debug the
> many different targets above?
Except for the target architecture (which is already provided as
part of the target description) and the osabi, the only remaining
feature that falls back to a compile-time default is the target
byte order (as far as I can see). Now, the byte order fallback
is only used if the endianness cannot be determined from the
executable file being debugged, so this should be a rare case.
However, it would certainly make sense to allow the target to
provide byte order information in the target description as well.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2008-12-09 18:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-21 17:09 Marc Khouzam
2008-11-21 19:07 ` Michael Snyder
2008-11-22 15:26 ` Ulrich Weigand
2008-12-09 14:42 ` Marc Khouzam
2008-12-09 18:12 ` Ulrich Weigand [this message]
2008-12-09 18:40 ` Marc Khouzam
2008-12-09 18:44 ` Ulrich Weigand
2008-11-24 16:36 Duane Ellis
2008-11-24 22:03 ` Daniel Jacobowitz
2008-11-25 0:04 ` Duane Ellis
2008-11-25 4:06 ` Daniel Jacobowitz
2008-11-25 17:48 ` Duane Ellis
2008-11-26 2:51 ` Daniel Jacobowitz
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=200812091811.mB9IBQYV032215@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=gdb@sourceware.org \
--cc=marc.khouzam@ericsson.com \
--cc=msnyder@vmware.com \
/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