From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17031 invoked by alias); 9 Oct 2013 17:18:12 -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 16951 invoked by uid 89); 9 Oct 2013 17:18:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS 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 ESMTP; Wed, 09 Oct 2013 17:18:10 +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 r99HI9f3008420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 Oct 2013 13:18:09 -0400 Received: from redhat.brq.redhat.com (unused-4-133.brq.redhat.com [10.34.4.133]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r99HHgcN010424; Wed, 9 Oct 2013 13:18:08 -0400 From: Ondrej Oprala To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 17/18] fix gdbarch buglet Date: Wed, 09 Oct 2013 17:18:00 -0000 Message-Id: <1381339053-14519-18-git-send-email-ooprala@redhat.com> In-Reply-To: <1381339053-14519-1-git-send-email-ooprala@redhat.com> References: <1381339053-14519-1-git-send-email-ooprala@redhat.com> X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00305.txt.bz2 From: Tom Tromey * gdbarch.c (byte_order) : Change type. (byte_order_for_code) : Likewise. (gdbarch_byte_order) : Change type of the return value. (gdbarch_byte_order_for_code) : Likewise. * gdbarch.h (gdbarch_byte_order) : Change type of the return value. (gdbarch_byte_order_for_code) : Likewise. * gdbarch.sh (byte_order) : Change description. (byte_order_for_code) : Likewise. --- gdb/ChangeLog | 11 +++++++++++ gdb/gdbarch.c | 8 ++++---- gdb/gdbarch.h | 4 ++-- gdb/gdbarch.sh | 4 ++-- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7552cc7..802cc88 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -17,6 +17,17 @@ 2013-10-09 Tom Tromey + * gdbarch.c (byte_order) : Change type. + (byte_order_for_code) : Likewise. + (gdbarch_byte_order) : Change type of the return value. + (gdbarch_byte_order_for_code) : Likewise. + * gdbarch.h (gdbarch_byte_order) : Change type of the return value. + (gdbarch_byte_order_for_code) : Likewise. + * gdbarch.sh (byte_order) : Change description. + (byte_order_for_code) : Likewise. + +2013-10-09 Tom Tromey + * gdbtypes.h : Unbundle structures nested in union flds_bnds. 2013-10-09 Tom Tromey diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 396bb67..3b82605 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -99,8 +99,8 @@ struct gdbarch /* basic architectural information. */ const struct bfd_arch_info * bfd_arch_info; - int byte_order; - int byte_order_for_code; + enum bfd_endian byte_order; + enum bfd_endian byte_order_for_code; enum gdb_osabi osabi; const struct target_desc * target_desc; @@ -1444,7 +1444,7 @@ gdbarch_bfd_arch_info (struct gdbarch *gdbarch) return gdbarch->bfd_arch_info; } -int +enum bfd_endian gdbarch_byte_order (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); @@ -1453,7 +1453,7 @@ gdbarch_byte_order (struct gdbarch *gdbarch) return gdbarch->byte_order; } -int +enum bfd_endian gdbarch_byte_order_for_code (struct gdbarch *gdbarch) { gdb_assert (gdbarch != NULL); diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 5d20ea6..408788b 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -91,10 +91,10 @@ typedef int (iterate_over_objfiles_in_search_order_cb_ftype) extern const struct bfd_arch_info * gdbarch_bfd_arch_info (struct gdbarch *gdbarch); /* set_gdbarch_bfd_arch_info() - not applicable - pre-initialized. */ -extern int gdbarch_byte_order (struct gdbarch *gdbarch); +extern enum bfd_endian gdbarch_byte_order (struct gdbarch *gdbarch); /* set_gdbarch_byte_order() - not applicable - pre-initialized. */ -extern int gdbarch_byte_order_for_code (struct gdbarch *gdbarch); +extern enum bfd_endian gdbarch_byte_order_for_code (struct gdbarch *gdbarch); /* set_gdbarch_byte_order_for_code() - not applicable - pre-initialized. */ extern enum gdb_osabi gdbarch_osabi (struct gdbarch *gdbarch); diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index e24b6b5..e361ff3 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -340,8 +340,8 @@ function_list () cat <printable_name # -i:int:byte_order:::BFD_ENDIAN_BIG -i:int:byte_order_for_code:::BFD_ENDIAN_BIG +i:enum bfd_endian:byte_order:::BFD_ENDIAN_BIG +i:enum bfd_endian:byte_order_for_code:::BFD_ENDIAN_BIG # i:enum gdb_osabi:osabi:::GDB_OSABI_UNKNOWN # -- 1.8.3.1