mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-22 13:42:55 +08:00
* jv-valprint.c (java_val_print): Handle `char' as a special case
of TYPE_CODE_INT.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2002-05-09 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* jv-valprint.c (java_val_print): Handle `char' as a special case
|
||||||
|
of TYPE_CODE_INT.
|
||||||
|
|
||||||
2002-05-09 Michael Snyder <msnyder@redhat.com>
|
2002-05-09 Michael Snyder <msnyder@redhat.com>
|
||||||
|
|
||||||
* arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
|
* arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
|
||||||
|
@ -497,18 +497,17 @@ java_val_print (struct type *type, char *valaddr, int embedded_offset,
|
|||||||
return i;
|
return i;
|
||||||
|
|
||||||
case TYPE_CODE_CHAR:
|
case TYPE_CODE_CHAR:
|
||||||
format = format ? format : output_format;
|
|
||||||
if (format)
|
|
||||||
print_scalar_formatted (valaddr, type, format, 0, stream);
|
|
||||||
else
|
|
||||||
LA_PRINT_CHAR ((int) unpack_long (type, valaddr), stream);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case TYPE_CODE_INT:
|
case TYPE_CODE_INT:
|
||||||
/* Can't just call c_val_print because that print bytes as C chars. */
|
/* Can't just call c_val_print because that prints bytes as C
|
||||||
|
chars. */
|
||||||
format = format ? format : output_format;
|
format = format ? format : output_format;
|
||||||
if (format)
|
if (format)
|
||||||
print_scalar_formatted (valaddr, type, format, 0, stream);
|
print_scalar_formatted (valaddr, type, format, 0, stream);
|
||||||
|
else if (TYPE_CODE (type) == TYPE_CODE_CHAR
|
||||||
|
|| (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);
|
||||||
else
|
else
|
||||||
val_print_type_code_int (type, valaddr, stream);
|
val_print_type_code_int (type, valaddr, stream);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user