From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29499 invoked by alias); 1 Feb 2003 00:09:14 -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 29492 invoked from network); 1 Feb 2003 00:09:14 -0000 Received: from unknown (HELO jackfruit.Stanford.EDU) (171.64.38.136) by 172.16.49.205 with SMTP; 1 Feb 2003 00:09:14 -0000 Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id h11098216287; Fri, 31 Jan 2003 16:09:08 -0800 X-Authentication-Warning: jackfruit.Stanford.EDU: carlton set sender to carlton@math.stanford.edu using -f To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Relocate debug information in object files (e.g. add-symbol-file) [take 2] References: <20020404170610.A3717@nevyn.them.org> <20021011144448.GA31467@nevyn.them.org> <15929.47017.286393.193280@localhost.redhat.com> <20030131192707.GA23658@nevyn.them.org> From: David Carlton Date: Sat, 01 Feb 2003 00:09:00 -0000 In-Reply-To: <20030131192707.GA23658@nevyn.them.org> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2003-02/txt/msg00001.txt.bz2 On Fri, 31 Jan 2003 14:27:07 -0500, Daniel Jacobowitz sai= d: > Much thanks; checked in with better comments. I think there are problems here: my test runs are failing. E.g. when I run GDB on gdb.c++/misc and run to main, I get a crash with a backtrace starting with this: #0 symfile_relocate_debug_section (abfd=3D0x82e4718, sectp=3D0x0,=20 buf=3D0x830e6f8 "x=B0\f@=AC=B0\f@=E0=B0\f@\024=B1\f@H=B1\f@|=B1\f@=B0= =B1\f@=E4=B1\f@\030=B2\f@L=B2\f@\200=B2\f@=B4=B2\f@=E8=B2\f@\034=B3\f@P=B3\= f@\204=B3\f@=B8=B3\f@=EC=B3\f@ =B4\f@T=B4\f@\210=B4\f@=BC=B4\f@=F0=B4\f@$= =B5\f@X=B5\f@\214=B5\f@=C0=B5\f@=F4=B5\f@(=B6\f@\\=B6\f@\220=B6\f@=C4=B6\f@= =F8=B6\f@,=B7\f@`=B7\f@\224=B7\f@=C8=B7\f@=FC=B7\f@0=B8\f@d=B8\f@\230=B8\f@= =CC=B8\f@") at symfile.c:3594 #1 0x0813e488 in dwarf2_read_section (objfile=3D0x830e6f8, offset=3D0,=20 size=3D137422584, sectp=3D0x0) at dwarf2read.c:3627 #2 0x0813a6ae in dwarf2_build_psymtabs (objfile=3D0x0, mainline=3D13725058= 4) at dwarf2read.c:1050 I haven't looked at it at all closely; but dwarf2_read_section (and hence symfile_relocate_debug_section) is getting passed a NULL section from this part of dwarf2_build_psymtabs: if (dwarf_ranges_offset) dwarf_ranges_buffer =3D dwarf2_read_section (objfile, dwarf_ranges_offset, dwarf_ranges_size, dwarf_ranges_section); else dwarf_ranges_buffer =3D NULL; It's been long enough since I looked at this code that I have no idea if a NULL section is allowed here or not. David Carlton carlton@math.stanford.edu