This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/16439] gcj generates wrong line number for static function breakpoint


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]