Fix PR threads/19422 - show which thread caused stop
[deliverable/binutils-gdb.git] / gdb / jv-valprint.c
index 9fc8f50ed8ff1e279997df402106bfc7bab418e3..6f7ef4b3bf1f4b7190a2a3e56a1bc76c135878c2 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));
 
This page took 0.024136 seconds and 4 git commands to generate.