From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23576 invoked by alias); 26 Feb 2003 05:55:46 -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 23562 invoked from network); 26 Feb 2003 05:55:45 -0000 Received: from unknown (HELO sohm.kpit.com) (203.129.230.82) by 172.16.49.205 with SMTP; 26 Feb 2003 05:55:45 -0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [RFA/PATCH]: H8/300 - Update the generated debug information X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Wed, 26 Feb 2003 05:55:00 -0000 Message-ID: <69595093233BB547BB70CF5E492B63F2DA6B7C@sohm.kpit.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Shrinivas Atre" To: "Jim Wilson" , , X-SW-Source: 2003-02/txt/msg00696.txt.bz2 Hi Jim, Thank you for review and suggestions. > The SDB/coff debug format is old, limited, and unextensible. It is=20 > almost always wrong to use it. Since you are using gdb, a better=20 > solution is to use stabs which doesn't have this problem. >=20 Yes. This is problem of the COFF format. This is not observed in stabs or E= LF. > Or, alternatively, if you must fix the SDB/coff debug info, I suggest=20 > doing the same thing Andrew Cagney suggested. Make gcc emit a special > directive (.int32) and/or pass an option to gas. Have gas set an ELF=20 > section header flag when it sees the directive or the option. Then=20 > modify gdb to set the int size appropriately depending on the ELF=20 > section header flags. >=20 I will try to implement this. > > * gcc/sdbout.c (plain_type_1): Update COFF debug output=20 > information. > > Output "short int" if=20 > integer size is 16 bit. >=20 > This isn't OK. It is wrong to emit a type of "short int" for=20 > an "int" even if they are the same size, because they aren't the same=20 > type. This will break the gdb testsuite. Thanks. I missed it out. Regards, Shrinivas