* infrun.c (follow_fork): Initialize new step_* locals
[deliverable/binutils-gdb.git] / gdb / jv-valprint.c
index d3606fd6878939eabb3915b61655a9b160fc62bb..a1b8a715174844622b04a51f75e33aae03ac6f90 100644 (file)
@@ -230,7 +230,7 @@ java_value_print (struct value *val, struct ui_file *stream,
 
       value_free_to_mark (mark);       /* Release unnecessary values */
 
-      val_print_string (data + boffset, count, 2, stream, options);
+      val_print_string (java_char_type, data + boffset, count, stream, options);
 
       return 0;
     }
@@ -520,7 +520,7 @@ java_val_print (struct type *type, const gdb_byte *valaddr,
               || (TYPE_CODE (type) == TYPE_CODE_INT
                   && TYPE_LENGTH (type) == 2
                   && strcmp (TYPE_NAME (type), "char") == 0))
-       LA_PRINT_CHAR ((int) unpack_long (type, valaddr), stream);
+       LA_PRINT_CHAR ((int) unpack_long (type, valaddr), type, stream);
       else
        val_print_type_code_int (type, valaddr, stream);
       break;
This page took 0.024234 seconds and 4 git commands to generate.