mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-26 04:25:51 +08:00
interpret-run.cc: If debugging, check if args is NULL before getting the "this" pointer.
2007-04-09 Kyle Galloway <kgallowa@redhat.com> * interpret-run.cc: If debugging, check if args is NULL before getting the "this" pointer. From-SVN: r123681
This commit is contained in:
parent
aa2473e4fc
commit
b1bdab7eb5
@ -1,3 +1,8 @@
|
||||
2007-04-09 Kyle Galloway <kgallowa@redhat.com>
|
||||
|
||||
* interpret-run.cc: If debugging, check if args is NULL before
|
||||
getting the "this" pointer.
|
||||
|
||||
2007-04-09 Kyle Galloway <kgallowa@redhat.com>
|
||||
|
||||
* classpath/gnu/classpath/jdwp/value/ArrayValue.java: New file.
|
||||
|
@ -46,9 +46,13 @@ details. */
|
||||
// If the method is non-static, we need to set the type for the "this" pointer.
|
||||
if ((method->accflags & java::lang::reflect::Modifier::STATIC) == 0)
|
||||
{
|
||||
// Set the "this" pointer for this frame
|
||||
_Jv_word *this_ptr = reinterpret_cast<_Jv_word *> (args);
|
||||
frame_desc.obj_ptr = this_ptr[0].o;
|
||||
if (args)
|
||||
{
|
||||
// Set the "this" pointer for this frame.
|
||||
_Jv_word *this_ptr = reinterpret_cast<_Jv_word *> (args);
|
||||
frame_desc.obj_ptr = this_ptr[0].o;
|
||||
}
|
||||
|
||||
frame_desc.locals_type[0] = 'o';
|
||||
type_ctr++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user