From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46672 invoked by alias); 19 Mar 2015 23:22:48 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 46659 invoked by uid 89); 19 Mar 2015 23:22:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 19 Mar 2015 23:22:46 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t2JNMjxo018746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 19 Mar 2015 19:22:45 -0400 Received: from psique.yyz.redhat.com (unused-10-15-17-126.yyz.redhat.com [10.15.17.126]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2JNMigP009833; Thu, 19 Mar 2015 19:22:44 -0400 From: Sergio Durigan Junior To: GDB Patches Cc: Pedro Alves , Sergio Durigan Junior Subject: [PATCH v4 0/2] Improve corefile generation by using /proc/PID/coredump_filter (PR corefile/16902) Date: Thu, 19 Mar 2015 23:22:00 -0000 Message-Id: <1426807358-18295-1-git-send-email-sergiodj@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00610.txt.bz2 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 , 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