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 0/4] C++: handle ptrace(enum __ptrace_request, ...)


On 07/10/2015 10:52 PM, Pedro Alves wrote:
> Building GDB on GNU/Linux in C++ mode issues ~40 ptrace-related
> -fpermissive warnings like this:
> 
> ../../src/gdb/linux-nat.c: In function âint linux_handle_extended_wait(lwp_info*, int, int)â:
> ../../src/gdb/linux-nat.c:2016:51: warning: invalid conversion from âintâ to â__ptrace_requestâ [-fpermissive]
>    ptrace (PTRACE_GETEVENTMSG, pid, 0, &new_pid);
> 
> This series fixes them all.
> 
> No regressions on x86_64 Fedora 20.
> 
> Pedro Alves (4):
>   make gdbserver use the same ptrace autoconf checks as gdb
>   Move gdb_ptrace.h to nat/
>   C++: handle glibc's ptrace(enum __ptrace_request, ...)
>   Linux: sys/ptrace.h -> nat/gdb_ptrace.h everywhere

FYI, I pushed these in.

-- 
Pedro Alves


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