aboutsummaryrefslogtreecommitdiff
path: root/gdb/m2-valprint.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-07-09 16:57:09 +0000
committerDoug Evans <dje@google.com>2013-07-09 16:57:09 +0000
commit2a998fc0370ac0b32051eb31238699d92e1dd81a (patch)
treee84ac72afb7db0f40bab18d8676db0ecbe25cd47 /gdb/m2-valprint.c
parent564027b8a9792a79467d4d9d972ee0c46d82fd11 (diff)
downloadgdb-2a998fc0370ac0b32051eb31238699d92e1dd81a.zip
gdb-2a998fc0370ac0b32051eb31238699d92e1dd81a.tar.gz
gdb-2a998fc0370ac0b32051eb31238699d92e1dd81a.tar.bz2
* defs.h (enum val_prettyformat): Renamed from val_prettyprint.
Enum values rename as well. All uses updated. * valprint.h (value_print_options): Rename member pretty to pretty format. Rename member prettyprint_arrays to prettyformat_arrays. Rename member prettyprint_structs to prettyformat_structs. All uses updated. (get_no_prettyformat_print_options): Renamed from get_raw_print_options. * valprint.c (get_no_prettyformat_print_options): Renamed from get_raw_print_options. All callers updated. (show_prettyformat_structs): Renamed from show_prettyprint_structs. All callers updated. (show_prettyformat_arrays): Renamed from show_prettyprint_arrays. All callers updated. (_initialize_valprint): Improve help text for "set print pretty" and "set print arrays". testsuite/ * gdb.base/default.exp: Update expected output of "show print array" and "show print pretty".
Diffstat (limited to 'gdb/m2-valprint.c')
-rw-r--r--gdb/m2-valprint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/m2-valprint.c b/gdb/m2-valprint.c
index b5cfaed..f8a8f75 100644
--- a/gdb/m2-valprint.c
+++ b/gdb/m2-valprint.c
@@ -272,7 +272,7 @@ m2_print_array_contents (struct type *type, const gdb_byte *valaddr,
if (TYPE_LENGTH (type) > 0)
{
- if (options->prettyprint_arrays)
+ if (options->prettyformat_arrays)
print_spaces_filtered (2 + 2 * recurse, stream);
/* For an array of chars, print with string syntax. */
if (TYPE_LENGTH (type) == 1 &&
@@ -327,7 +327,7 @@ m2_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset,
{
elttype = check_typedef (TYPE_TARGET_TYPE (type));
len = TYPE_LENGTH (type) / TYPE_LENGTH (elttype);
- if (options->prettyprint_arrays)
+ if (options->prettyformat_arrays)
print_spaces_filtered (2 + 2 * recurse, stream);
/* For an array of chars, print with string syntax. */
if (TYPE_LENGTH (elttype) == 1 &&