This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: x86_64-elf gdb
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: Jan-Benedict Glaw <jbglaw at lug-owl dot de>
- Cc: Joel Brobecker <brobecker at adacore dot com>, "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 31 Mar 2015 09:39:41 -0500
- Subject: Re: x86_64-elf gdb
- Authentication-results: sourceware.org; auth=none
- References: <55171834 dot 40509 at oarcorp dot com> <20150330163952 dot GE12083 at adacore dot com> <5B7C7627-4AA7-4276-B2EB-A9E5C170CBAA at oarcorp dot com> <20150330205442 dot GG12083 at adacore dot com> <5519B945 dot 8030605 at oarcorp dot com> <20150331024600 dot GJ4243 at lug-owl dot de>
On 3/30/2015 9:46 PM, Jan-Benedict Glaw wrote:
> On Mon, 2015-03-30 15:59:49 -0500, Joel Sherrill <joel.sherrill@oarcorp.com> wrote:
>> On 3/30/2015 3:54 PM, Joel Brobecker wrote:
>>>> It built for me. But I don't have any way to test it. Is that
>>>> enough to submit a patch for the elf stanza addition?
>>> That seems odd to me. What would be the advantage of pushing that
>>> patch if it's a configuration that you can't test?
>> At the moment, x86_64-elf doesn't even build for binutils-gdb. It
>> fails due to a missing gdb configuration.
>>
>> And if binutils-gdb doesn't complete successfully, that means gcc
>> can't be built for this target.
>>
>> Jan.. do you build binutils-gdb and gcc for this target?
> I didn't build it until a minute ago, just x86_64-linux was on the
> list. It's added now, so let's wait for the first build to take place
> and see how well that works.
This is the patch I posted before I dragged you into this. It includes
both -elf
and -rtems targets. If you use this, just drop the -rtems target. I was just
experimenting and realized the -elf target didn't build. With this, it
built.
$ git diff gdb
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index 8feda7c..bd03600 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -664,6 +664,9 @@ x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
bsd-uthread.o fbsd-tdep.o solib-svr4.o"
;;
+x86_64-*-elf* | x86_64-*-rtems*)
+ gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o i386bsd-tdep.o"
+ ;;
x86_64-*-mingw* | x86_64-*-cygwin*)
# Target: MingW/amd64
gdb_target_obs="amd64-tdep.o amd64-windows-tdep.o \
> MfG, JBG
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985