public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] C++: handle ptrace(enum __ptrace_request, ...)
@ 2015-07-10 21:52 Pedro Alves
  2015-07-10 21:52 ` [PATCH 3/4] C++: handle glibc's " Pedro Alves
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Pedro Alves @ 2015-07-10 21:52 UTC (permalink / raw)
  To: gdb-patches

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-24 14:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-10 21:52 [PATCH 0/4] C++: handle ptrace(enum __ptrace_request, ...) Pedro Alves
2015-07-10 21:52 ` [PATCH 3/4] C++: handle glibc's " Pedro Alves
2015-07-10 21:52 ` [PATCH 1/4] make gdbserver use the same ptrace autoconf checks as gdb Pedro Alves
2015-07-10 21:52 ` [PATCH 2/4] Move gdb_ptrace.h to nat/ Pedro Alves
2015-07-10 22:00 ` [PATCH 4/4] Linux: sys/ptrace.h -> nat/gdb_ptrace.h everywhere Pedro Alves
2015-07-24 14:22 ` [PATCH 0/4] C++: handle ptrace(enum __ptrace_request, ...) Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).