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 31/03/16 13:39, Ulrich Weigand wrote:
There's no equivalent to ELFMAG in the BFD headers, and getting to
e_flags requires more work too (you need elf/external.h and manually
assemble the word from bytes).

Huh, that's indeed annoying.

Perhaps it'd be simpler to just define
EF_PPC64_ABI manually if it's not defined?

This is fine with me too.

Bye,
Ulrich


Thanks, I pushed the patch with this fragment added before is_elfv2_inferior:

+/* Older glibc doesn't provide this.  */
+
+#ifndef EF_PPC64_ABI
+#define EF_PPC64_ABI 3
+#endif


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