mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
* c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
* NEWS: Describe CHAR array vs. string identifcation rules.
This commit is contained in:
parent
3a60f64edd
commit
e1f48eadc1
@ -1,3 +1,8 @@
|
||||
2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
|
||||
* NEWS: Describe CHAR array vs. string identifcation rules.
|
||||
|
||||
2007-01-25 Paul Brook <paul@codesourcery.com>
|
||||
|
||||
* arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
|
||||
|
3
gdb/NEWS
3
gdb/NEWS
@ -15,6 +15,9 @@ frequency signals (e.g. SIGALRM) via the QPassSignals packet.
|
||||
target's overall architecture. GDB can read a description from
|
||||
a local file or over the remote serial protocol.
|
||||
|
||||
* Arrays of explicitly SIGNED or UNSIGNED CHARs are now printed as arrays
|
||||
of numbers.
|
||||
|
||||
* New commands
|
||||
|
||||
set mem inaccessible-by-default
|
||||
|
@ -96,7 +96,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
|
||||
}
|
||||
/* For an array of chars, print with string syntax. */
|
||||
if (eltlen == 1 &&
|
||||
((TYPE_CODE (elttype) == TYPE_CODE_INT)
|
||||
((TYPE_CODE (elttype) == TYPE_CODE_INT && TYPE_NOSIGN (elttype))
|
||||
|| ((current_language->la_language == language_m2)
|
||||
&& (TYPE_CODE (elttype) == TYPE_CODE_CHAR)))
|
||||
&& (format == 0 || format == 's'))
|
||||
|
Loading…
Reference in New Issue
Block a user