From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7581 invoked by alias); 6 May 2002 22:36:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7533 invoked by uid 71); 6 May 2002 22:36:00 -0000 Resent-Date: 6 May 2002 22:36:00 -0000 Resent-Message-ID: <20020506223600.7532.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, java-prs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, tromey@redhat.com Received:(qmail 781 invoked by uid 61); 6 May 2002 22:26:36 -0000 Message-Id:<20020506222636.780.qmail@sources.redhat.com> Date: Mon, 06 May 2002 15:36:00 -0000 From: tromey@redhat.com Reply-To: tromey@redhat.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: java/6587: gcj generates incorrect debug output X-SW-Source: 2002-05/txt/msg00168.txt.bz2 List-Id: >Number: 6587 >Category: java >Synopsis: gcj generates incorrect debug output >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon May 06 15:36:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Tom Tromey >Release: current trunk >Organization: >Environment: x86 Red Hat Linux 6.2 >Description: Try compiling this file with "gcj -g": public class x { public static void main (String[] args) { char c = args[0].charAt(0); System.out.println(c); } } Using readelf you can see this: <2><184>: Abbrev Number: 4 (DW_TAG_subprogram) DW_AT_sibling : DW_AT_external : 1 DW_AT_name : x.main(java.lang.String[]) DW_AT_decl_file : 1 DW_AT_decl_line : 458756 DW_AT_MIPS_linkage_name: _ZN1x4mainEP6JArrayIPN4java4lang6StringEE DW_AT_declaration : 1 This confuses gdb. If you try: b 'x.main', gdb will tell you there is no such method. Also this appears for the constructor: <2><1db>: Abbrev Number: 6 (DW_TAG_subprogram) DW_AT_external : 1 DW_AT_name : () DW_AT_MIPS_linkage_name: _ZN1xC1Ev DW_AT_artificial : 1 DW_AT_declaration : 1 This is also clearly incorrect. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: