vla: update type from newly created value
[deliverable/binutils-gdb.git] / gdb / jv-valprint.c
index f465ca09e35ca2b3d382fb705b78825b99b06c40..a7bb4944f62969174402280c0cb7843dd495403b 100644 (file)
@@ -1,6 +1,6 @@
 /* Support for printing Java values for GDB, the GNU debugger.
 
-   Copyright (C) 1997-2013 Free Software Foundation, Inc.
+   Copyright (C) 1997-2014 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -65,6 +65,7 @@ java_value_print (struct value *val, struct ui_file *stream,
          type = lookup_pointer_type (type);
 
          val = value_at (type, address);
+         type = value_type (val);
        }
     }
 
This page took 0.023055 seconds and 4 git commands to generate.