diff options
author | Doug Evans <dje@google.com> | 2013-07-09 16:57:09 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-07-09 16:57:09 +0000 |
commit | 2a998fc0370ac0b32051eb31238699d92e1dd81a (patch) | |
tree | e84ac72afb7db0f40bab18d8676db0ecbe25cd47 | |
parent | 564027b8a9792a79467d4d9d972ee0c46d82fd11 (diff) | |
download | gdb-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".
-rw-r--r-- | gdb/ChangeLog | 19 | ||||
-rw-r--r-- | gdb/ada-valprint.c | 10 | ||||
-rw-r--r-- | gdb/c-valprint.c | 4 | ||||
-rw-r--r-- | gdb/cp-valprint.c | 8 | ||||
-rw-r--r-- | gdb/defs.h | 10 | ||||
-rw-r--r-- | gdb/expprint.c | 6 | ||||
-rw-r--r-- | gdb/infcmd.c | 2 | ||||
-rw-r--r-- | gdb/jv-valprint.c | 8 | ||||
-rw-r--r-- | gdb/m2-valprint.c | 4 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-stack.c | 2 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 4 | ||||
-rw-r--r-- | gdb/p-valprint.c | 12 | ||||
-rw-r--r-- | gdb/python/py-prettyprint.c | 8 | ||||
-rw-r--r-- | gdb/stack.c | 2 | ||||
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/default.exp | 4 | ||||
-rw-r--r-- | gdb/valprint.c | 46 | ||||
-rw-r--r-- | gdb/valprint.h | 16 | ||||
-rw-r--r-- | gdb/value.h | 2 |
19 files changed, 98 insertions, 74 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f31edc5..c4d3870 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,22 @@ +2013-07-09 Doug Evans <dje@google.com> + + * 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". + 2013-07-09 Andrew Burgess <aburgess@broadcom.com> * value.c (value_bits_valid): Revert previous change, and change diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index 5287ce5..4a04d28 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -171,7 +171,7 @@ val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr, if (i != 0) { - if (options->prettyprint_arrays) + if (options->prettyformat_arrays) { fprintf_filtered (stream, ",\n"); print_spaces_filtered (2 + 2 * recurse, stream); @@ -227,7 +227,7 @@ val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr, { if (j > i0) { - if (options->prettyprint_arrays) + if (options->prettyformat_arrays) { fprintf_filtered (stream, ",\n"); print_spaces_filtered (2 + 2 * recurse, stream); @@ -600,7 +600,7 @@ ada_val_print_array (struct type *type, const gdb_byte *valaddr, eltlen = TYPE_LENGTH (elttype); len = TYPE_LENGTH (type) / eltlen; - if (options->prettyprint_arrays) + if (options->prettyformat_arrays) print_spaces_filtered (2 + 2 * recurse, stream); /* If requested, look for the first null char and only print @@ -1001,7 +1001,7 @@ print_record (struct type *type, const gdb_byte *valaddr, if (print_field_values (type, valaddr, offset, stream, recurse, val, options, - 0, type, offset) != 0 && options->pretty) + 0, type, offset) != 0 && options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 * recurse, stream); @@ -1067,7 +1067,7 @@ print_field_values (struct type *type, const gdb_byte *valaddr, fprintf_filtered (stream, ", "); comma_needed = 1; - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 + 2 * recurse, stream); diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index ce2c29d..3466df0 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -161,7 +161,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, eltlen = TYPE_LENGTH (elttype); len = high_bound - low_bound + 1; - if (options->prettyprint_arrays) + if (options->prettyformat_arrays) { print_spaces_filtered (2 + 2 * recurse, stream); } @@ -353,7 +353,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, vt_val = value_at (wtype, vt_address); common_val_print (vt_val, stream, recurse + 1, options, current_language); - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 + 2 * recurse, stream); diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 0871848..e83d979 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -239,7 +239,7 @@ cp_print_value_fields (struct type *type, struct type *real_type, fprintf_filtered (stream, ", "); else if (n_baseclasses > 0) { - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 + 2 * recurse, stream); @@ -250,7 +250,7 @@ cp_print_value_fields (struct type *type, struct type *real_type, } fields_seen = 1; - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 + 2 * recurse, stream); @@ -407,7 +407,7 @@ cp_print_value_fields (struct type *type, struct type *real_type, } } - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 * recurse, stream); @@ -568,7 +568,7 @@ cp_print_value (struct type *type, struct type *real_type, } /* Now do the printing. */ - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 * recurse, stream); @@ -483,18 +483,18 @@ extern char *current_directory; extern unsigned input_radix; extern unsigned output_radix; -/* Possibilities for prettyprint parameters to routines which print +/* Possibilities for prettyformat parameters to routines which print things. Like enum language, this should be in value.h, but needs to be here for the same reason. FIXME: If we can eliminate this as an arg to LA_VAL_PRINT, then we can probably move it back to value.h. */ -enum val_prettyprint +enum val_prettyformat { - Val_no_prettyprint = 0, - Val_prettyprint, + Val_no_prettyformat = 0, + Val_prettyformat, /* Use the default setting which the user has specified. */ - Val_pretty_default + Val_prettyformat_default }; /* Optional native machine support. Non-native (and possibly pure diff --git a/gdb/expprint.c b/gdb/expprint.c index ea9b560..648e66a 100644 --- a/gdb/expprint.c +++ b/gdb/expprint.c @@ -99,7 +99,7 @@ print_subexp_standard (struct expression *exp, int *pos, { struct value_print_options opts; - get_raw_print_options (&opts); + get_no_prettyformat_print_options (&opts); (*pos) += 3; value_print (value_from_longest (exp->elts[pc + 1].type, exp->elts[pc + 2].longconst), @@ -111,7 +111,7 @@ print_subexp_standard (struct expression *exp, int *pos, { struct value_print_options opts; - get_raw_print_options (&opts); + get_no_prettyformat_print_options (&opts); (*pos) += 3; value_print (value_from_double (exp->elts[pc + 1].type, exp->elts[pc + 2].doubleconst), @@ -448,7 +448,7 @@ print_subexp_standard (struct expression *exp, int *pos, (*pos) += 4; val = value_at_lazy (exp->elts[pc + 1].type, (CORE_ADDR) exp->elts[pc + 5].longconst); - get_raw_print_options (&opts); + get_no_prettyformat_print_options (&opts); value_print (val, stream, &opts); } else diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 30621e4..10a589e 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1506,7 +1506,7 @@ print_return_value (struct value *function, struct type *value_type) ui_out_field_fmt (uiout, "gdb-result-var", "$%d", record_latest_value (value)); ui_out_text (uiout, " = "); - get_raw_print_options (&opts); + get_no_prettyformat_print_options (&opts); value_print (value, stb, &opts); ui_out_field_stream (uiout, "return-value", stb); ui_out_text (uiout, "\n"); diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c index 6cdceb0..3b90e54 100644 --- a/gdb/jv-valprint.c +++ b/gdb/jv-valprint.c @@ -299,7 +299,7 @@ java_print_value_fields (struct type *type, const gdb_byte *valaddr, boffset = 0; - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 * (recurse + 1), stream); @@ -341,7 +341,7 @@ java_print_value_fields (struct type *type, const gdb_byte *valaddr, fprintf_filtered (stream, ", "); else if (n_baseclasses > 0) { - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 + 2 * recurse, stream); @@ -352,7 +352,7 @@ java_print_value_fields (struct type *type, const gdb_byte *valaddr, } fields_seen = 1; - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 + 2 * recurse, stream); @@ -451,7 +451,7 @@ java_print_value_fields (struct type *type, const gdb_byte *valaddr, annotate_field_end (); } - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 * recurse, stream); 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 && diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index 4b21015..1f1068c 100644 --- a/gdb/mi/mi-cmd-stack.c +++ b/gdb/mi/mi-cmd-stack.c @@ -428,7 +428,7 @@ list_arg_or_local (const struct frame_arg *arg, enum what_to_list what, { struct value_print_options opts; - get_raw_print_options (&opts); + get_no_prettyformat_print_options (&opts); opts.deref_ref = 1; common_val_print (arg->val, stb, 0, &opts, language_def (SYMBOL_LANGUAGE (arg->sym))); diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index d6c763e..6289143 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -2627,7 +2627,7 @@ print_variable_or_computed (char *expression, enum print_values values) { struct value_print_options opts; - get_raw_print_options (&opts); + get_no_prettyformat_print_options (&opts); opts.deref_ref = 1; common_val_print (val, stb, 0, &opts, current_language); ui_out_field_stream (uiout, "value", stb); @@ -2637,7 +2637,7 @@ print_variable_or_computed (char *expression, enum print_values values) { struct value_print_options opts; - get_raw_print_options (&opts); + get_no_prettyformat_print_options (&opts); opts.deref_ref = 1; common_val_print (val, stb, 0, &opts, current_language); ui_out_field_stream (uiout, "value", stb); diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c index d326dba..05d4c6f 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -83,7 +83,7 @@ pascal_val_print (struct type *type, const gdb_byte *valaddr, len = high_bound - low_bound + 1; elttype = check_typedef (TYPE_TARGET_TYPE (type)); eltlen = TYPE_LENGTH (elttype); - if (options->prettyprint_arrays) + if (options->prettyformat_arrays) { print_spaces_filtered (2 + 2 * recurse, stream); } @@ -263,7 +263,7 @@ pascal_val_print (struct type *type, const gdb_byte *valaddr, vt_val = value_at (wtype, vt_address); common_val_print (vt_val, stream, recurse + 1, options, current_language); - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 + 2 * recurse, stream); @@ -575,7 +575,7 @@ pascal_object_print_value_fields (struct type *type, const gdb_byte *valaddr, fprintf_filtered (stream, ", "); else if (n_baseclasses > 0) { - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 + 2 * recurse, stream); @@ -586,7 +586,7 @@ pascal_object_print_value_fields (struct type *type, const gdb_byte *valaddr, } fields_seen = 1; - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 + 2 * recurse, stream); @@ -688,7 +688,7 @@ pascal_object_print_value_fields (struct type *type, const gdb_byte *valaddr, dont_print_statmem_obstack = tmp_obstack; } - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 * recurse, stream); @@ -787,7 +787,7 @@ pascal_object_print_value (struct type *type, const gdb_byte *valaddr, base_valaddr = valaddr; } - if (options->pretty) + if (options->prettyformat) { fprintf_filtered (stream, "\n"); print_spaces_filtered (2 * recurse, stream); diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c index 47e9826..2825582 100644 --- a/gdb/python/py-prettyprint.c +++ b/gdb/python/py-prettyprint.c @@ -511,16 +511,16 @@ print_children (PyObject *printer, const char *hint, } make_cleanup_py_decref (iter); - /* Use the prettyprint_arrays option if we are printing an array, + /* Use the prettyformat_arrays option if we are printing an array, and the pretty option otherwise. */ if (is_array) - pretty = options->prettyprint_arrays; + pretty = options->prettyformat_arrays; else { - if (options->pretty == Val_prettyprint) + if (options->prettyformat == Val_prettyformat) pretty = 1; else - pretty = options->prettyprint_structs; + pretty = options->prettyformat_structs; } /* Manufacture a dummy Python frame to work around Python 2.4 bug, diff --git a/gdb/stack.c b/gdb/stack.c index 2462931..313d57f 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -275,7 +275,7 @@ print_frame_arg (const struct frame_arg *arg) else language = current_language; - get_raw_print_options (&opts); + get_no_prettyformat_print_options (&opts); opts.deref_ref = 1; /* True in "summary" mode, false otherwise. */ diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2c0f24b..5ea5f14 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-07-09 Doug Evans <dje@google.com> + + * gdb.base/default.exp: Update expected output of "show print array" + and "show print pretty". + 2013-07-08 Andreas Arnez <arnez@linux.vnet.ibm.com> * gdb.threads/wp-replication.exp: Stop counting available hardware diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp index e6fef15..e5194f7 100644 --- a/gdb/testsuite/gdb.base/default.exp +++ b/gdb/testsuite/gdb.base/default.exp @@ -667,7 +667,7 @@ gdb_test "show paths" "Executable and object file path:.*" "show paths" #test show print address gdb_test "show print address" "Printing of addresses is on." "show print address" #test show print array -gdb_test "show print array" "Prettyprinting of arrays is on." "show print array" +gdb_test "show print array" "Pretty formatting of arrays is on." "show print array" #test show print asm-demangle gdb_test "show print asm-demangle" "Demangling of C\[+\]+/ObjC names in disassembly listings is on." "show print asm-demangle" #test show print demangle @@ -677,7 +677,7 @@ gdb_test "show print elements" "Limit on string chars or array elements to print #test show print object gdb_test "show print object" "Printing of object's derived type based on vtable info is on." "show print object" #test show print pretty -gdb_test "show print pretty" "Prettyprinting of structures is on." "show print pretty" +gdb_test "show print pretty" "Pretty formatting of structures is on." "show print pretty" #test show print sevenbit-strings gdb_test "show print sevenbit-strings" "Printing of 8-bit characters in strings as .nnn is on." "show print sevenbit-strings" #test show print union diff --git a/gdb/valprint.c b/gdb/valprint.c index bc21f4f..184bab6 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -104,9 +104,9 @@ void _initialize_valprint (void); struct value_print_options user_print_options = { - Val_pretty_default, /* pretty */ - 0, /* prettyprint_arrays */ - 0, /* prettyprint_structs */ + Val_prettyformat_default, /* prettyformat */ + 0, /* prettyformat_arrays */ + 0, /* prettyformat_structs */ 0, /* vtblprint */ 1, /* unionprint */ 1, /* addressprint */ @@ -133,12 +133,12 @@ get_user_print_options (struct value_print_options *opts) } /* Initialize *OPTS to be a copy of the user print options, but with - pretty-printing disabled. */ + pretty-formatting disabled. */ void -get_raw_print_options (struct value_print_options *opts) +get_no_prettyformat_print_options (struct value_print_options *opts) { *opts = user_print_options; - opts->pretty = Val_no_prettyprint; + opts->prettyformat = Val_no_prettyformat; } /* Initialize *OPTS to be a copy of the user print options, but using @@ -221,19 +221,19 @@ show_stop_print_at_null (struct ui_file *file, int from_tty, /* Controls pretty printing of structures. */ static void -show_prettyprint_structs (struct ui_file *file, int from_tty, +show_prettyformat_structs (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - fprintf_filtered (file, _("Prettyprinting of structures is %s.\n"), value); + fprintf_filtered (file, _("Pretty formatting of structures is %s.\n"), value); } /* Controls pretty printing of arrays. */ static void -show_prettyprint_arrays (struct ui_file *file, int from_tty, +show_prettyformat_arrays (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - fprintf_filtered (file, _("Prettyprinting of arrays is %s.\n"), value); + fprintf_filtered (file, _("Pretty formatting of arrays is %s.\n"), value); } /* If nonzero, causes unions inside structures or other unions to be @@ -390,7 +390,7 @@ generic_val_print (struct type *type, const gdb_byte *valaddr, if (!get_array_bounds (type, &low_bound, &high_bound)) error (_("Could not determine the array high bound")); - if (options->prettyprint_arrays) + if (options->prettyformat_arrays) { print_spaces_filtered (2 + 2 * recurse, stream); } @@ -736,9 +736,9 @@ val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset, struct value_print_options local_opts = *options; struct type *real_type = check_typedef (type); - if (local_opts.pretty == Val_pretty_default) - local_opts.pretty = (local_opts.prettyprint_structs - ? Val_prettyprint : Val_no_prettyprint); + if (local_opts.prettyformat == Val_prettyformat_default) + local_opts.prettyformat = (local_opts.prettyformat_structs + ? Val_prettyformat : Val_no_prettyformat); QUIT; @@ -1642,7 +1642,7 @@ val_print_array_elements (struct type *type, { if (i != 0) { - if (options->prettyprint_arrays) + if (options->prettyformat_arrays) { fprintf_filtered (stream, ",\n"); print_spaces_filtered (2 + 2 * recurse, stream); @@ -2730,11 +2730,11 @@ Show threshold for repeated print elements."), _("\ &setprintlist, &showprintlist); add_setshow_boolean_cmd ("pretty", class_support, - &user_print_options.prettyprint_structs, _("\ -Set prettyprinting of structures."), _("\ -Show prettyprinting of structures."), NULL, + &user_print_options.prettyformat_structs, _("\ +Set pretty formatting of structures."), _("\ +Show pretty formatting of structures."), NULL, NULL, - show_prettyprint_structs, + show_prettyformat_structs, &setprintlist, &showprintlist); add_setshow_boolean_cmd ("union", class_support, @@ -2746,11 +2746,11 @@ Show printing of unions interior to structures."), NULL, &setprintlist, &showprintlist); add_setshow_boolean_cmd ("array", class_support, - &user_print_options.prettyprint_arrays, _("\ -Set prettyprinting of arrays."), _("\ -Show prettyprinting of arrays."), NULL, + &user_print_options.prettyformat_arrays, _("\ +Set pretty formatting of arrays."), _("\ +Show pretty formatting of arrays."), NULL, NULL, - show_prettyprint_arrays, + show_prettyformat_arrays, &setprintlist, &showprintlist); add_setshow_boolean_cmd ("address", class_support, diff --git a/gdb/valprint.h b/gdb/valprint.h index 7baef2f..3401afa 100644 --- a/gdb/valprint.h +++ b/gdb/valprint.h @@ -24,14 +24,14 @@ functions. */ struct value_print_options { - /* Pretty-printing control. */ - enum val_prettyprint pretty; + /* Pretty-formatting control. */ + enum val_prettyformat prettyformat; - /* Controls pretty printing of arrays. */ - int prettyprint_arrays; + /* Controls pretty formatting of arrays. */ + int prettyformat_arrays; - /* Controls pretty printing of structures. */ - int prettyprint_structs; + /* Controls pretty formatting of structures. */ + int prettyformat_structs; /* Controls printing of virtual tables. */ int vtblprint; @@ -101,8 +101,8 @@ extern struct value_print_options user_print_options; extern void get_user_print_options (struct value_print_options *opts); /* Initialize *OPTS to be a copy of the user print options, but with - pretty-printing disabled. */ -extern void get_raw_print_options (struct value_print_options *opts); + pretty-formatting disabled. */ +extern void get_no_prettyformat_print_options (struct value_print_options *); /* Initialize *OPTS to be a copy of the user print options, but using FORMAT as the formatting option. */ diff --git a/gdb/value.h b/gdb/value.h index 8a66aa4..44d2aa0 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -899,7 +899,7 @@ extern void value_print (struct value *val, struct ui_file *stream, extern void value_print_array_elements (struct value *val, struct ui_file *stream, int format, - enum val_prettyprint pretty); + enum val_prettyformat pretty); extern struct value *value_release_to_mark (struct value *mark); |