This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB for multiple targets
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: marc dot khouzam at ericsson dot com (Marc Khouzam)
- Cc: msnyder at vmware dot com (Michael Snyder), gdb at sourceware dot org
- Date: Tue, 9 Dec 2008 19:43:12 +0100 (CET)
- Subject: Re: GDB for multiple targets
Marc Khouzam wrote:
> > From: Ulrich Weigand [mailto:uweigand@de.ibm.com]=20
> > Sent: Tuesday, December 09, 2008 1:11 PM
> >
> > 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.
>
> When using the 'attach' command to debug a process, GDB is able to=20
> find the executable automatically. So, I don't actually use the 'file'
> command in those cases. Would GDB still be able to determine the
> endianness in those cases?
Yes, it would.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com