From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32504 invoked by alias); 25 Feb 2003 16:55:43 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32497 invoked from network); 25 Feb 2003 16:55:43 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 25 Feb 2003 16:55:43 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 3594A2A9C; Tue, 25 Feb 2003 11:57:59 -0500 (EST) Message-ID: <3E5BA097.8090003@redhat.com> Date: Tue, 25 Feb 2003 16:55:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Shrinivas Atre Cc: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com Subject: Re: [RFA/PATCH]: H8/300 - Update the generated debug information References: <69595093233BB547BB70CF5E492B63F2DA6751@sohm.kpit.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-02/txt/msg00643.txt.bz2 > gdb/ChangeLog > 2003-02-24 Shrinivas Atre > > * gdb/h8300-tdep.c (h8300_gdbarch_init): Make default integer size as 32 bits. > > > GDB Patch - > > --- gdb/h8300-tdep.orig.c Mon Feb 24 16:47:05 2003 > +++ gdb/h8300-tdep.c Mon Feb 24 16:47:45 2003 > @@ -1170,7 +1170,7 @@ h8300_gdbarch_init (struct gdbarch_info > set_gdbarch_fix_call_dummy (gdbarch, generic_fix_call_dummy); > set_gdbarch_breakpoint_from_pc (gdbarch, h8300_breakpoint_from_pc); > > - set_gdbarch_int_bit (gdbarch, 2 * TARGET_CHAR_BIT); > + set_gdbarch_int_bit (gdbarch, 4 * TARGET_CHAR_BIT); > set_gdbarch_long_bit (gdbarch, 4 * TARGET_CHAR_BIT); > set_gdbarch_ptr_bit (gdbarch, BINWORD * TARGET_CHAR_BIT); > set_gdbarch_addr_bit (gdbarch, BINWORD * TARGET_CHAR_BIT); > Just FYI, while the above is apparently trivial, the required change isn't. GCC should be providing information (either via special headers or via other debug info or magic sections) that informs GDB of the selected size of an int. GDB can then adjust its configuration accordingly. See other GDB architectures (MIPS, PPC, SH, ...) that do this. Andrew