From patchwork Thu Nov 20 18:36:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Durigan Junior X-Patchwork-Id: 3817 Received: (qmail 14043 invoked by alias); 20 Nov 2014 18:36:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 14026 invoked by uid 89); 20 Nov 2014 18:36:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL, BAYES_00, SPF_HELO_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, 20 Nov 2014 18:36:19 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sAKIaIXv006169 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 20 Nov 2014 13:36:18 -0500 Received: from psique.yyz.redhat.com (dhcp-10-15-16-169.yyz.redhat.com [10.15.16.169]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sAKIaIvw028742; Thu, 20 Nov 2014 13:36:18 -0500 From: Sergio Durigan Junior To: GDB Patches Cc: Sergio Durigan Junior Subject: [commit/obvious] Fix build breakage from previous commit Date: Thu, 20 Nov 2014 13:36:15 -0500 Message-Id: <1416508575-7587-1-git-send-email-sergiodj@redhat.com> X-IsSubscribed: yes In the previous commit, I forgot to adjust the prototypes of the functions inside gdb/xml-syscall.c for the case when GDB is compiled without XML support. gdb/ 2014-11-20 Sergio Durigan Junior PR breakpoints/10737 * xml-syscall.c (set_xml_syscall_file_name): Remove "const" modifier from "struct gdbarch" when compiling without Expat (XML) support. (get_syscall_by_number): Likewise. (get_syscall_by_name): Likewise. (get_syscall_names): Likewise. --- gdb/ChangeLog | 10 ++++++++++ gdb/xml-syscall.c | 11 +++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 828f491..a716030 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,6 +1,16 @@ 2014-11-20 Sergio Durigan Junior PR breakpoints/10737 + * xml-syscall.c (set_xml_syscall_file_name): Remove "const" + modifier from "struct gdbarch" when compiling without Expat (XML) + support. + (get_syscall_by_number): Likewise. + (get_syscall_by_name): Likewise. + (get_syscall_names): Likewise. + +2014-11-20 Sergio Durigan Junior + + PR breakpoints/10737 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to set_xml_syscall_file_name to provide gdbarch. * arm-linux-tdep.c (arm_linux_init_abi): Likewise. diff --git a/gdb/xml-syscall.c b/gdb/xml-syscall.c index 1da6932..987fe7a 100644 --- a/gdb/xml-syscall.c +++ b/gdb/xml-syscall.c @@ -47,14 +47,13 @@ syscall_warn_user (void) } void -set_xml_syscall_file_name (const struct gdbarch *gdbarch, - const char *name) +set_xml_syscall_file_name (struct gdbarch *gdbarch, const char *name) { return; } void -get_syscall_by_number (const struct gdbarch *gdbarch, +get_syscall_by_number (struct gdbarch *gdbarch, int syscall_number, struct syscall *s) { syscall_warn_user (); @@ -63,8 +62,8 @@ get_syscall_by_number (const struct gdbarch *gdbarch, } void -get_syscall_by_name (const struct gdbarch *gdbarch, - const char *syscall_name, struct syscall *s) +get_syscall_by_name (struct gdbarch *gdbarch, const char *syscall_name, + struct syscall *s) { syscall_warn_user (); s->number = UNKNOWN_SYSCALL; @@ -72,7 +71,7 @@ get_syscall_by_name (const struct gdbarch *gdbarch, } const char ** -get_syscall_names (const struct gdbarch *gdbarch) +get_syscall_names (struct gdbarch *gdbarch) { syscall_warn_user (); return NULL;