aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-01-25 17:59:00 +0000
committerPedro Alves <palves@redhat.com>2011-01-25 17:59:00 +0000
commitab2188aa2a7958d3954f98229002036867278636 (patch)
treedecbfba60b0a7e0f21b6b3f5362675a349aad13b /gdb/valprint.h
parent66d61a4cabfc231963c2d901d345198498d9aa21 (diff)
downloadgdb-ab2188aa2a7958d3954f98229002036867278636.zip
gdb-ab2188aa2a7958d3954f98229002036867278636.tar.gz
gdb-ab2188aa2a7958d3954f98229002036867278636.tar.bz2
* printcmd.c (print_formatted): Use val_print_scalar_formatted
instead of print_scalar_formatted. (print_scalar_formatted): Don't handle 's' format strings here, and add an assertion that we never see such format here. * valprint.h (val_print_scalar_formatted): Declare. * valprint.c (val_print_scalar_formatted): New. * c-valprint.c (c_val_print): Use val_print_scalar_formatted instead of print_scalar_formatted. * jv-valprint.c (java_val_print): Ditto. * p-valprint.c (pascal_val_print): Ditto. * ada-valprint.c (ada_val_print_1): Ditto. * f-valprint.c (f_val_print): Ditto. * infcmd.c (registers_info): Ditto. * m2-valprint.c (m2_val_print): Ditto.
Diffstat (limited to 'gdb/valprint.h')
-rw-r--r--gdb/valprint.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/valprint.h b/gdb/valprint.h
index ee9830a..3ad3545 100644
--- a/gdb/valprint.h
+++ b/gdb/valprint.h
@@ -126,6 +126,13 @@ extern void val_print_type_code_flags (struct type *type,
const gdb_byte *valaddr,
struct ui_file *stream);
+extern void val_print_scalar_formatted (struct type *,
+ const gdb_byte *, int,
+ const struct value *,
+ const struct value_print_options *,
+ int,
+ struct ui_file *);
+
extern void print_binary_chars (struct ui_file *, const gdb_byte *,
unsigned int, enum bfd_endian);