This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: x86_64-elf gdb



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]