This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/16439] gcj generates wrong line number for static function breakpoint
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 23 Jul 2004 02:07:32 -0000
- Subject: [Bug java/16439] gcj generates wrong line number for static function breakpoint
- References: <20040708181125.16439.jjohnstn@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mckinlay at redhat dot com 2004-07-23 02:07 -------
This occurs for "static" and maybe "synchronized" methods. What happens is gcj
inserts some prologue code to check the class initialization status (in the case
of a static method), or in the case of a synchronized method, to aquire the
lock. The line number it uses for the inserted prologue code is that of the
current parser context when starting the method, which points to the method's
opening brace ("{").
It could be changed to instead look for the first non-synthetic code in the
method and use the line number from that.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-07-23 02:07:31
date| |
Summary|gcj doesn't generate proper |gcj generates wrong line
|debugging line number info |number for static function
| |breakpoint
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16439