Re: [PATCH v2 3/4] gdbserver: Add powerpc fast tracepoint support.

Marcin Kościelnicki
2016-03-31T13:45:00Z

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