objcopy/strip: Add option --remove-relocations=SECTIONPATTERN
[deliverable/binutils-gdb.git] / gdb / jv-valprint.c
index 1ad599bfa8041b777408085dfd5364bf189a7e36..29887376eb1f028e4543f211ca70825f7b08ba6a 100644 (file)
@@ -1,6 +1,6 @@
 /* Support for printing Java values for GDB, the GNU debugger.
 
-   Copyright (C) 1997-2015 Free Software Foundation, Inc.
+   Copyright (C) 1997-2016 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -99,7 +99,8 @@ java_value_print (struct value *val, struct ui_file *stream,
            {
              gdb_byte *buf;
 
-             buf = alloca (gdbarch_ptr_bit (gdbarch) / HOST_CHAR_BIT);
+             buf = ((gdb_byte *)
+                    alloca (gdbarch_ptr_bit (gdbarch) / HOST_CHAR_BIT));
              fputs_filtered (", ", stream);
              wrap_here (n_spaces (2));
 
@@ -265,7 +266,7 @@ java_value_print (struct value *val, struct ui_file *stream,
 
 static void
 java_print_value_fields (struct type *type, const gdb_byte *valaddr,
-                        int offset,
+                        LONGEST offset,
                         CORE_ADDR address, struct ui_file *stream,
                         int recurse,
                         const struct value *val,
@@ -273,7 +274,7 @@ java_print_value_fields (struct type *type, const gdb_byte *valaddr,
 {
   int i, len, n_baseclasses;
 
-  CHECK_TYPEDEF (type);
+  type = check_typedef (type);
 
   fprintf_filtered (stream, "{");
   len = TYPE_NFIELDS (type);
@@ -462,7 +463,7 @@ java_val_print (struct type *type, const gdb_byte *valaddr,
   struct type *target_type;
   CORE_ADDR addr;
 
-  CHECK_TYPEDEF (type);
+  type = check_typedef (type);
   switch (TYPE_CODE (type))
     {
     case TYPE_CODE_PTR:
This page took 0.027933 seconds and 4 git commands to generate.