From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26216 invoked by alias); 24 Aug 2003 19:42:37 -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 26196 invoked from network); 24 Aug 2003 19:42:25 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.115.144) by sources.redhat.com with SMTP; 24 Aug 2003 19:42:25 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p2/8.12.5) with ESMTP id h7OJgGIW000359; Sun, 24 Aug 2003 21:42:16 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p2/8.12.6) with ESMTP id h7OJgGpF000920; Sun, 24 Aug 2003 21:42:16 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p2/8.12.6/Submit) id h7OJgG0c000917; Sun, 24 Aug 2003 21:42:16 +0200 (CEST) To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: Fix Java PR gdb/1322 (was Re: [rfa/doc] Document pr gdb/1322 in PROBLEMS) References: <200308181832.h7IIWKUx004464@duracef.shout.net> <20030824165607.GC17841@nevyn.them.org> From: Mark Kettenis Date: Sun, 24 Aug 2003 19:42:00 -0000 In-Reply-To: Daniel Jacobowitz's message of "Sun, 24 Aug 2003 12:56:07 -0400" Message-ID: <8665kmg7vr.fsf@elgar.kettenis.dyndns.org> X-SW-Source: 2003-08/txt/msg00426.txt.bz2 Daniel Jacobowitz writes: > On Mon, Aug 18, 2003 at 02:32:20PM -0400, Michael Elizabeth Chastain wrote: > > + > > + gdb/1322: "internal-error: sect_index_text not initialized" after printing a java type > > + > > + When gdb debugs a Java program which uses shared libraries, it can > > + generate this internal error. > > + > > + If you get this error when debugging Java, you can try working around > > + the problem by relinking your program with no shared libraries at all > > + (even the standard C library). With the GNU linker, use the "-static" > > + argument to do this. > > + > > + You can also try this patch for gdb: > > + > > + http://sources.redhat.com/ml/gdb-prs/2003-q3/msg00190.html > > How about we fix it instead? This patch depends on Mark K's > per-objfile-data patch, but only because it touches the same area, I > think. > > Dwarf maintainers, is this OK? Could someone test that it fixes the > Java problems on HEAD? I'm not exactly a DWARF maintainer, but since I wrote the code in that file I assume I can approve your patch :-). I'll do so if you'll add a gdb_assert (objfile->section_offsets); just before the offset = ANOFFSET (... to check the assumption you're making that the section offsets will be available when we have DWARF2 CFI. Oh, and change the PR first line of the ChangeLog into java/1322 such that GNATS will notice your patch. I believe it will ignore it if you use gdb/1322. Mark