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 v4 0/2] Improve corefile generation by using /proc/PID/coredump_filter (PR corefile/16902)


This version of the patches incorporates changes suggested by Pedro.

I simplified the patch a lot, and withdrawed some parts of it.  For
example, I am not including a new 'enum memory_mapping_state', nor am I
changing the current behavior/implementation of gcore_create_callback.
IOW, I focused my changes on the Linux portion of the patch, and on the
problem that I am trying to solve: make GDB take the value of
/proc/PID/coredump_filter into consideration when dumping a corefile.

As I explained in
<https://sourceware.org/ml/gdb-patches/2015-03/msg00607.html>, I still
think gcore_create_callback and its callers should be updated, but I
am not proposing this here anymore.  Hopefully, this will make the patch
easier to be approved.

Comments?

Sergio Durigan Junior (2):
  Implement support for checking /proc/PID/coredump_filter
  Documentation and testcase

 gdb/doc/gdb.texinfo                        |  33 +++
 gdb/linux-tdep.c                           | 408 +++++++++++++++++++++++++++--
 gdb/testsuite/gdb.base/coredump-filter.c   |  61 +++++
 gdb/testsuite/gdb.base/coredump-filter.exp | 128 +++++++++
 4 files changed, 602 insertions(+), 28 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/coredump-filter.c
 create mode 100644 gdb/testsuite/gdb.base/coredump-filter.exp

-- 
1.9.3


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