This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/43260] New: Java static class members lack DWARF location info
- From: "keiths at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2010 17:34:38 -0000
- Subject: [Bug debug/43260] New: Java static class members lack DWARF location info
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Consider:
class jvstatic
{
public static int STATIC = 1;
public static final int CONST_STATIC = 2;
public static void main (String[] args)
{
int i;
for (i = 0; i < STATIC + CONST_STATIC; ++i)
System.out.println ("Hi!");
}
}
The DWARF debug info for either jvstatic.STATIC or jvstatic.CONST_STATIC don't
seem to include any hint at where these live in memory:
<0><ed>: Abbrev Number: 1 (DW_TAG_compile_unit)
<ee> DW_AT_producer : (indirect string, offset: 0x8a): GNU Java 4.5.0
20100302 (experimental)
<f2> DW_AT_language : 11 (Java)
<f3> DW_AT_name : (indirect string, offset: 0x16a): jvstatic.java
<f7> DW_AT_comp_dir : (indirect string, offset: 0x19d):
/home/keiths/tmp
<fb> DW_AT_low_pc : 0x80488a4
<ff> DW_AT_high_pc : 0x804895b
<103> DW_AT_stmt_list : 0x41
<1><107>: Abbrev Number: 2 (DW_TAG_class_type)
<108> DW_AT_name : (indirect string, offset: 0xdf): jvstatic
<10c> DW_AT_byte_size : 4
<10d> DW_AT_decl_file : 1
<10e> DW_AT_decl_line : 0
<10f> DW_AT_containing_type: <0x17b>
<113> DW_AT_sibling : <0x17b>
<2><117>: Abbrev Number: 3 (DW_TAG_inheritance)
<118> DW_AT_type : <0x17b>
<11c> DW_AT_data_member_location: 2 byte block: 23 0
(DW_OP_plus_uconst: 0)
<11f> DW_AT_accessibility: 1 (public)
<2><120>: Abbrev Number: 4 (DW_TAG_member)
<121> DW_AT_name : (indirect string, offset: 0x123): STATIC
<125> DW_AT_decl_file : 1
<126> DW_AT_decl_line : 0
<127> DW_AT_MIPS_linkage_name: (indirect string, offset: 0xca):
_ZN8jvstatic6STATICE
<12b> DW_AT_type : <0x181>
<12f> DW_AT_external : 1
<130> DW_AT_declaration : 1
<2><131>: Abbrev Number: 4 (DW_TAG_member)
<132> DW_AT_name : (indirect string, offset: 0x11d): CONST_STATIC
<136> DW_AT_decl_file : 1
<137> DW_AT_decl_line : 0
<138> DW_AT_MIPS_linkage_name: (indirect string, offset: 0x181):
_ZN8jvstatic12CONST_STATICE
<13c> DW_AT_type : <0x181>
<140> DW_AT_external : 1
<141> DW_AT_declaration : 1
<2><142>: Abbrev Number: 5 (DW_TAG_subprogram)
<143> DW_AT_external : 1
<144> DW_AT_name : (indirect string, offset: 0x178): <clinit>
<148> DW_AT_decl_file : 1
<149> DW_AT_decl_line : 1
<14a> DW_AT_MIPS_linkage_name: (indirect string, offset: 0xe8):
_ZN8jvstatic18__U3c_clinit__U3e_EJvv
<14e> DW_AT_declaration : 1
<2><14f>: Abbrev Number: 6 (DW_TAG_subprogram)
<150> DW_AT_external : 1
<151> DW_AT_name : (indirect string, offset: 0x1c1): <init>
<155> DW_AT_decl_file : 1
<156> DW_AT_decl_line : 1
<157> DW_AT_MIPS_linkage_name: (indirect string, offset: 0x1c8):
_ZN8jvstaticC1Ev
<15b> DW_AT_declaration : 1
<15c> DW_AT_sibling : <0x167>
<3><160>: Abbrev Number: 7 (DW_TAG_formal_parameter)
<161> DW_AT_type : <0x188>
<165> DW_AT_artificial : 1
<2><167>: Abbrev Number: 8 (DW_TAG_subprogram)
<168> DW_AT_external : 1
<169> DW_AT_name : (indirect string, offset: 0x70): main
<16d> DW_AT_decl_file : 1
<16e> DW_AT_decl_line : 9
<16f> DW_AT_MIPS_linkage_name: (indirect string, offset: 0x137):
_ZN8jvstatic4mainEJvP6JArrayIPN4java4lang6StringEE
<173> DW_AT_declaration : 1
<3><174>: Abbrev Number: 9 (DW_TAG_formal_parameter)
<175> DW_AT_type : <0x18e>
--
Summary: Java static class members lack DWARF location info
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: keiths at redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43260