This is the mail archive of the gdb-patches@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: [PATCH v2 3/4] gdbserver: Add powerpc fast tracepoint support.


On 16-03-30 10:57 AM, Ulrich Weigand wrote:
> Hi Marcin,
> 
>> This gives me an error when building on the gcc compile farm machine gcc110.
>> I just applied your patches on today's master.
> 
>> linux-ppc-low.c: In function 'is_elfv2_inferior':
>> linux-ppc-low.c:774:26: error: 'EF_PPC64_ABI' undeclared (f=
>> irst use in this function)
>>    return (ehdr.e_flags & EF_PPC64_ABI) == 2;
> 
> You probably should add
> 
> #include "elf/ppc64.h"
> 
> to make sure you always got the latest defines from the in-tree
> BFD headers, and not the (possibly outdated) system headers.
> 
> Bye,
> Ulrich

I now get this:

In file included from ./../../include/elf/ppc64.h:24:0,
                 from linux-ppc-low.c:30:
./../../include/elf/ppc64.h:28:17: error: expected identifier before numeric constant
   RELOC_NUMBER (R_PPC64_NONE,       0)
                 ^
./../../include/elf/reloc-macros.h:122:37: note: in definition of macro ‘RELOC_NUMBER’
 #define RELOC_NUMBER(name, number)  name = number,
                                     ^
In file included from linux-ppc-low.c:30:0:
./../../include/elf/ppc64.h:240:0: error: "DT_PPC64_GLINK" redefined [-Werror]
 #define DT_PPC64_GLINK  DT_LOPROC
 ^
In file included from linux-ppc-low.c:23:0:
/usr/include/elf.h:2264:0: note: this is the location of the previous definition
 #define DT_PPC64_GLINK  (DT_LOPROC + 0)
 ^

Simon


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