* Re: Strange error message from gdb
[not found] ` <20071219190450.GA11655@caradoc.them.org>
@ 2007-12-19 20:27 ` Andrew Haley
0 siblings, 0 replies; only message in thread
From: Andrew Haley @ 2007-12-19 20:27 UTC (permalink / raw)
To: gcc-patches, java-patches; +Cc: Daniel Jacobowitz
At the present time gdb can't cope with interface types, so it doesn't
make any sense for gcj to emit them in debuginfo. This small change
means we can debug code that contains interface types.
Longer term, we should perhaps fix gdb.
Andrew.
2007-12-19 Andrew Haley <aph@redhat.com>
* lang.c (java_classify_record): Don't return RECORD_IS_INTERFACE.
Index: java/lang.c
===================================================================
--- java/lang.c (revision 131034)
+++ java/lang.c (working copy)
@@ -965,8 +965,12 @@
if (! CLASS_P (type))
return RECORD_IS_STRUCT;
- if (CLASS_INTERFACE (TYPE_NAME (type)))
- return RECORD_IS_INTERFACE;
+ /* All versions of gdb at the time of writing have no support for
+ DW_TAG_interface_type, so there's no point in using it. At some
+ time in the future it might be worth revisiting this
+ decision. */
+/* if (CLASS_INTERFACE (TYPE_NAME (type))) */
+/* return RECORD_IS_INTERFACE; */
return RECORD_IS_CLASS;
}
--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-19 20:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <18281.21294.238761.442229@zebedee.pink>
[not found] ` <20071219172943.GA5939@caradoc.them.org>
[not found] ` <18281.23234.151870.816362@zebedee.pink>
[not found] ` <20071219185517.GA10986@caradoc.them.org>
[not found] ` <18281.27225.249982.220171@zebedee.pink>
[not found] ` <20071219190450.GA11655@caradoc.them.org>
2007-12-19 20:27 ` Strange error message from gdb Andrew Haley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).