[RFA] Check for null arguments when interpreting static methods

Kyle Galloway kgallowa@redhat.com
Mon Apr 9 17:38:00 GMT 2007


If _Jv_CompileMethod is called while debugging with a static method, the 
debugging code that finds the "this" pointer in _Jv_InterpMethod::run 
will attempt to dereference args, but this is set to NULL when the call 
is made.  This patch checks if args is NULL before attempting to 
retrieve the "this" pointer.

ChangeLog
2007-04-09  Kyle Galloway  <kgallowa@redhat.com>

    * interpret-run.cc: If debugging, check if args is NULL before 
getting the "this" pointer.

Questions/comments/concerns?

Thanks,
Kyle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: checkargs.patch
Type: text/x-patch
Size: 780 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20070409/82b909ef/attachment.bin>


More information about the Java-patches mailing list