From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18762 invoked by alias); 3 Jun 2002 14:18:20 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18720 invoked from network); 3 Jun 2002 14:18:16 -0000 Received: from unknown (HELO branoic) (66.19.120.62) by sources.redhat.com with SMTP; 3 Jun 2002 14:18:16 -0000 Received: from drow by branoic with local (Exim 3.35 #1 (Debian)) id 17Esew-0006HS-00; Mon, 03 Jun 2002 10:18:10 -0400 Date: Mon, 03 Jun 2002 07:18:00 -0000 From: Daniel Jacobowitz To: "H . J . Lu" Cc: GDB , gcc@gcc.gnu.org, binutils@sources.redhat.com Subject: Re: Does gdb 5.2 support gcc 3.1.1 on Linux/mips? Message-ID: <20020603141808.GA24114@branoic.them.org> Mail-Followup-To: "H . J . Lu" , GDB , gcc@gcc.gnu.org, binutils@sources.redhat.com References: <20020602143627.A10506@lucon.org> <20020603010003.GA16363@branoic.them.org> <20020602194326.A14976@lucon.org> <20020603050101.GA18906@branoic.them.org> <20020602220534.B17122@lucon.org> <20020603050906.GA19164@branoic.them.org> <20020602224240.A17723@lucon.org> <20020602230331.A18107@lucon.org> <20020602231016.A18236@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020602231016.A18236@lucon.org> User-Agent: Mutt/1.3.28i X-SW-Source: 2002-06/txt/msg00024.txt.bz2 On Sun, Jun 02, 2002 at 11:10:16PM -0700, H . J . Lu wrote: > On Sun, Jun 02, 2002 at 11:03:31PM -0700, H . J . Lu wrote: > > > > DW_CFA_17 is DW_CFA_offset_extended_sf, which was added to gcc on > > 2002-01-30. I have verifed that gcc 3.1.1 does generate it for mips. > > It looks like we have at least 2 bugs. First, readelf doesn't handle > > DW_CFA_offset_extended_sf and maybe other DAWRF debug info generated > > by gcc 3.1.1. Secondly, gdb 5.2 doesn't work with gcc 3.1.1 for > > Linux/mips. > > dwarf2cfi.c in gdb 5.2 seems to support DW_CFA_offset_extended_sf. But > that file is not used anywhere, at least not for Linux/x86 nor > Linux/mips. Did I miss something? Shouldn't we fix gdb 5.2 and > binutils for gcc 3.1.1? GDB doesn't need the CFA info on MIPS (although I'll try soon to let GDB use it). Is that really what's making GDB choke? Have you looked at Jakub's suggestion about gas and -gdwarf-2? -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer