This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: displaced stepping and remote targets
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: "taylor, david" <david dot taylor at emc dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 29 Mar 2016 10:16:33 +0100 (BST)
- Subject: Re: displaced stepping and remote targets
- Authentication-results: sourceware.org; auth=none
- References: <63F1AEE13FAE864586D589C671A6E18B04304B at MX203CL03 dot corp dot emc dot com>
On Mon, 28 Mar 2016, taylor, david wrote:
> When building GDB for an embedded target, oftentimes there
> will be an existing target configuration that is 'close enough' to
> the desired configuration that rather than create a new config
> triplet, you just reuse the existing one.
[...]
> And, other than displaced stepping, the x86_64-pc-linux-gnu configuration
> appears to work just fine.
[...]
> I would expect that for popular processors such as x86, powerpc, arm,
> probably others, reusing an existing configuration would be common.
You're using a bare-metal target, so it looks to me like you need to
configure for the `x86_64-elf' target or suchlike; this is what the `elf'
"OS" is for (with some exceptions). If there's none currently supported
for the x86_64 architecture, then you may have to fiddle with the sources
and/or build scriptery a bit. Given the similarity of the architectures
using `i386-elf' as a reference might be a good starting point.
Maciej