diff options
Diffstat (limited to 'gdb/jv-lang.c')
-rw-r--r-- | gdb/jv-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c index 17516e0..fb2b419 100644 --- a/gdb/jv-lang.c +++ b/gdb/jv-lang.c @@ -591,7 +591,7 @@ get_java_object_header_size (void) { struct type *objtype = get_java_object_type (); if (objtype == NULL) - return (2 * TARGET_PTR_BIT / TARGET_CHAR_BIT); + return (2 * gdbarch_ptr_bit (current_gdbarch) / TARGET_CHAR_BIT); else return TYPE_LENGTH (objtype); } |