Compile a simple java program: public class s { public static void main(String[] args) { } }
gcj -c -g s.java Then examine the .debug_pubnames section: Contents of the .debug_pubnames section: Length: 52 Version: 2 Offset into .debug_info section: 0x0 Size of area in .debug_info section: 221 Offset Name 80 () bc s.main(java.lang.String[]) It seems wrong to me that the entry includes the argument types. I'm using the F11 gcj, based on 4.4. But, I doubt this is a distro-specific bug. -- Summary: bad .debug_pubnames entry from gcj Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tromey at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40990