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]

[PATCH 0/4] C++: handle ptrace(enum __ptrace_request, ...)


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

 gdb/aarch64-linux-nat.c           |   2 +-
 gdb/acinclude.m4                  |   3 +
 gdb/alpha-linux-nat.c             |   2 +-
 gdb/amd64-linux-nat.c             |   2 +-
 gdb/arm-linux-nat.c               |   2 +-
 gdb/config.in                     |   3 +
 gdb/configure                     | 109 +++++++++++++--
 gdb/configure.ac                  |  71 +---------
 gdb/gdb_ptrace.h                  | 149 ---------------------
 gdb/gdbserver/acinclude.m4        |   3 +
 gdb/gdbserver/config.in           |  25 ++++
 gdb/gdbserver/configure           | 272 +++++++++++++++++++++++++++++++++++++-
 gdb/gdbserver/configure.ac        |   3 +
 gdb/gdbserver/linux-aarch64-low.c |   2 +-
 gdb/gdbserver/linux-arm-low.c     |   2 +-
 gdb/gdbserver/linux-cris-low.c    |   2 +-
 gdb/gdbserver/linux-crisv32-low.c |   2 +-
 gdb/gdbserver/linux-low.c         |   2 +-
 gdb/gdbserver/linux-m68k-low.c    |   2 +-
 gdb/gdbserver/linux-mips-low.c    |   2 +-
 gdb/gdbserver/linux-nios2-low.c   |   2 +-
 gdb/gdbserver/linux-s390-low.c    |   2 +-
 gdb/gdbserver/linux-sparc-low.c   |   2 +-
 gdb/gdbserver/linux-tic6x-low.c   |   2 +-
 gdb/gdbserver/linux-tile-low.c    |   2 +-
 gdb/gdbserver/linux-x86-low.c     |   3 +-
 gdb/hppa-linux-nat.c              |   2 +-
 gdb/i386-linux-nat.c              |   2 +-
 gdb/ia64-linux-nat.c              |   2 +-
 gdb/inf-ptrace.c                  |   2 +-
 gdb/linux-fork.c                  |   2 +-
 gdb/linux-nat.c                   |   2 +-
 gdb/m32r-linux-nat.c              |   2 +-
 gdb/m68klinux-nat.c               |   2 +-
 gdb/mips-linux-nat.c              |   2 +-
 gdb/nat/gdb_ptrace.h              | 153 +++++++++++++++++++++
 gdb/nat/linux-btrace.c            |   2 +-
 gdb/nat/linux-ptrace.c            |   1 +
 gdb/nat/linux-ptrace.h            |   2 +-
 gdb/nat/mips-linux-watch.c        |   2 +-
 gdb/nat/x86-linux-dregs.c         |   2 +-
 gdb/ppc-linux-nat.c               |   2 +-
 gdb/ptrace.m4                     | 104 +++++++++++++++
 gdb/s390-linux-nat.c              |   2 +-
 gdb/spu-linux-nat.c               |   2 +-
 gdb/tilegx-linux-nat.c            |   2 +-
 gdb/x86-linux-nat.c               |   2 +-
 gdb/xtensa-linux-nat.c            |   2 +-
 48 files changed, 702 insertions(+), 267 deletions(-)
 delete mode 100644 gdb/gdb_ptrace.h
 create mode 100644 gdb/nat/gdb_ptrace.h
 create mode 100644 gdb/ptrace.m4

-- 
1.9.3


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