public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/16439] gcj generates wrong line number for static function breakpoint
       [not found] <bug-16439-8907@http.gcc.gnu.org/bugzilla/>
@ 2005-11-23  4:14 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-23  4:14 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-11-23 04:14 -------
Reconfirm (it is a little easlier to see with the tree dumps):
jmain.main(java.lang.String[]) (args)
{
  [jmain.java : 4] _Jv_InitClass (&jmain.class);
  [jmain.java : 4] {
    [jmain.java : 5] return;
  }
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-07-23 02:07:31         |2005-11-23 04:14:24
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16439


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug java/16439] gcj generates wrong line number for static function breakpoint
  2004-07-08 18:11 [Bug java/16439] New: gcj doesn't generate proper debugging line number info jjohnstn at redhat dot com
@ 2004-07-23  2:07 ` mckinlay at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: mckinlay at redhat dot com @ 2004-07-23  2:07 UTC (permalink / raw)
  To: java-prs


------- 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-23  4:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16439-8907@http.gcc.gnu.org/bugzilla/>
2005-11-23  4:14 ` [Bug java/16439] gcj generates wrong line number for static function breakpoint pinskia at gcc dot gnu dot org
2004-07-08 18:11 [Bug java/16439] New: gcj doesn't generate proper debugging line number info jjohnstn at redhat dot com
2004-07-23  2:07 ` [Bug java/16439] gcj generates wrong line number for static function breakpoint mckinlay at redhat dot com

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).