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] gdb: xtensa: fix linux ptrace includes


On 01/19/2014 07:53 AM, Baruch Siach wrote:
> Currently, xtensa code using the Linux ptrace interface only include
> sys/ptrace.h. This file comes from the C library (glibc and uClibc, at least),
> and includes a declaration of the ptrace() functions, along with some cross
> architecture constants that are mostly copied from the file located at
> include/uapi/linux/ptrace.h in recent Linux kernels.
> 
> For xtensa specific constants like PTRACE_GETXTREGS and PTRACE_SETXTREGS the
> asm/ptrace.h include from the Linux kernel UAPI is needed. The code in
> gdbserver xtensa specific part doesn't call ptrace() directly, so we can
> remove the unneeded sys/ptrace.h include. The gdb xtensa specific code needs
> both headers, since it calls ptrace().
> 

Pushed, thanks.

-- 
Pedro Alves


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