From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42319 invoked by alias); 11 May 2015 00:28:05 -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 42305 invoked by uid 89); 11 May 2015 00:28:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY,URIBL_DBL_SPAM autolearn=no version=3.3.2 X-HELO: layla.krisman.be Received: from layla.krisman.be (HELO layla.krisman.be) (176.31.208.35) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 11 May 2015 00:28:04 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (envelope-from ) id 1YrbNC-0008Q2-EU; Mon, 11 May 2015 02:15:07 +0200 From: Gabriel Krisman Bertazi To: sergiodj@redhat.com Cc: palves@redhat.com, gdb-patches@sourceware.org, dje@google.com, Gabriel Krisman Bertazi Subject: [PATCH v4 0/4] catch syscall group Date: Mon, 11 May 2015 00:28:00 -0000 Message-Id: <1431304069-19647-1-git-send-email-gabriel@krisman.be> In-Reply-To: <87wq0gtfxu.fsf@redhat.com> References: <87wq0gtfxu.fsf@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00232.txt.bz2 Thank you both for your review. This version has the following improvements: * Apply fixes suggested by Sergio in the testsuite. * Use xsltproc to generate the xml files. Regarding the last change, it allowed me to identify inconsistencies in groups for some architectures. The current design makes sure these inconsistencies are fixed by centralizing the group information in a single file. Also, this patch series *does not* include the generated files because they are too big and can get in the way of code review. Reviewers must generate those files by hand by entering the gdb/syscalls directory and running the makefile there. Build will fail if reviewer don't do this! Once we get this approved, I'll make sure to include the generated files in the commit before pushing. Hopefully this will make code review easier. Also, I generated this format-patch with --find-renames. If it gets in the way of git am/git apply, please let me know and I'll resend it. As usual, I'm not resending the documentation patch again because it was already approved by Eli. Thanks! Gabriel Krisman Bertazi (4): Implemement support for groups of syscalls in the xml-syscall interface. Add support to catch groups of syscalls. Add tests for catching groups of syscalls on supported architectures. Include group information in xml syscall files. gdb/break-catch-syscall.c | 94 +++++++- gdb/syscalls/Makefile | 42 ++++ .../{aarch64-linux.xml => aarch64-linux.xml.in} | 0 .../{amd64-linux.xml => amd64-linux.xml.in} | 0 gdb/syscalls/apply-defaults.xsl | 27 +++ gdb/syscalls/{arm-linux.xml => arm-linux.xml.in} | 0 gdb/syscalls/{bfin-linux.xml => bfin-linux.xml.in} | 0 gdb/syscalls/gdb-syscalls.dtd | 3 +- gdb/syscalls/{i386-linux.xml => i386-linux.xml.in} | 0 gdb/syscalls/linux-defaults.xml.in | 243 +++++++++++++++++++++ .../{mips-n32-linux.xml => mips-n32-linux.xml.in} | 0 .../{mips-n64-linux.xml => mips-n64-linux.xml.in} | 0 .../{mips-o32-linux.xml => mips-o32-linux.xml.in} | 0 gdb/syscalls/{ppc-linux.xml => ppc-linux.xml.in} | 0 .../{ppc64-linux.xml => ppc64-linux.xml.in} | 0 gdb/syscalls/{s390-linux.xml => s390-linux.xml.in} | 0 .../{s390x-linux.xml => s390x-linux.xml.in} | 0 .../{sparc-linux.xml => sparc-linux.xml.in} | 0 .../{sparc64-linux.xml => sparc64-linux.xml.in} | 0 gdb/testsuite/gdb.base/catch-syscall.exp | 39 ++++ gdb/xml-syscall.c | 231 +++++++++++++++++++- gdb/xml-syscall.h | 16 ++ 22 files changed, 683 insertions(+), 12 deletions(-) create mode 100644 gdb/syscalls/Makefile rename gdb/syscalls/{aarch64-linux.xml => aarch64-linux.xml.in} (100%) rename gdb/syscalls/{amd64-linux.xml => amd64-linux.xml.in} (100%) create mode 100644 gdb/syscalls/apply-defaults.xsl rename gdb/syscalls/{arm-linux.xml => arm-linux.xml.in} (100%) rename gdb/syscalls/{bfin-linux.xml => bfin-linux.xml.in} (100%) rename gdb/syscalls/{i386-linux.xml => i386-linux.xml.in} (100%) create mode 100644 gdb/syscalls/linux-defaults.xml.in rename gdb/syscalls/{mips-n32-linux.xml => mips-n32-linux.xml.in} (100%) rename gdb/syscalls/{mips-n64-linux.xml => mips-n64-linux.xml.in} (100%) rename gdb/syscalls/{mips-o32-linux.xml => mips-o32-linux.xml.in} (100%) rename gdb/syscalls/{ppc-linux.xml => ppc-linux.xml.in} (100%) rename gdb/syscalls/{ppc64-linux.xml => ppc64-linux.xml.in} (100%) rename gdb/syscalls/{s390-linux.xml => s390-linux.xml.in} (100%) rename gdb/syscalls/{s390x-linux.xml => s390x-linux.xml.in} (100%) rename gdb/syscalls/{sparc-linux.xml => sparc-linux.xml.in} (100%) rename gdb/syscalls/{sparc64-linux.xml => sparc64-linux.xml.in} (100%) -- 2.1.0