aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-03-01 19:23:36 +0000
committerTom Tromey <tromey@redhat.com>2012-03-01 19:23:36 +0000
commita1f5dd1b0dfee18785876602080b0f15a1fe4573 (patch)
tree29c8b2d2a625a5f1673b8ef918741768b50fed8c /gdb
parent8e069a981cbb9b33ccfbdd82ad7da5ce8b0c35b2 (diff)
downloadgdb-a1f5dd1b0dfee18785876602080b0f15a1fe4573.zip
gdb-a1f5dd1b0dfee18785876602080b0f15a1fe4573.tar.gz
gdb-a1f5dd1b0dfee18785876602080b0f15a1fe4573.tar.bz2
* value.h (common_val_print): Return void.
* valprint.c (common_val_print): Return void.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/valprint.c15
-rw-r--r--gdb/value.h8
3 files changed, 15 insertions, 13 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 480aa16..643c49c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2012-03-01 Tom Tromey <tromey@redhat.com>
+ * value.h (common_val_print): Return void.
+ * valprint.c (common_val_print): Return void.
+
+2012-03-01 Tom Tromey <tromey@redhat.com>
+
* value.h (value_print): Return void.
* valprint.c (value_print): Return void.
* p-valprint.c (pascal_value_print): Return void.
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 9ff0f27..a543552 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -432,19 +432,16 @@ value_check_printable (struct value *val, struct ui_file *stream,
/* Print using the given LANGUAGE the value VAL onto stream STREAM according
to OPTIONS.
- If the data are a string pointer, returns the number of string characters
- printed.
-
This is a preferable interface to val_print, above, because it uses
GDB's value mechanism. */
-int
+void
common_val_print (struct value *val, struct ui_file *stream, int recurse,
const struct value_print_options *options,
const struct language_defn *language)
{
if (!value_check_printable (val, stream, options))
- return 0;
+ return;
if (language->la_language == language_ada)
/* The value might have a dynamic type, which would cause trouble
@@ -453,10 +450,10 @@ common_val_print (struct value *val, struct ui_file *stream, int recurse,
get a fixed representation of our value. */
val = ada_to_fixed_value (val);
- return val_print (value_type (val), value_contents_for_printing (val),
- value_embedded_offset (val), value_address (val),
- stream, recurse,
- val, options, language);
+ val_print (value_type (val), value_contents_for_printing (val),
+ value_embedded_offset (val), value_address (val),
+ stream, recurse,
+ val, options, language);
}
/* Print on stream STREAM the value VAL according to OPTIONS. The value
diff --git a/gdb/value.h b/gdb/value.h
index 9706e70..bb6f1f6 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -824,10 +824,10 @@ extern int val_print (struct type *type, const gdb_byte *valaddr,
const struct value_print_options *options,
const struct language_defn *language);
-extern int common_val_print (struct value *val,
- struct ui_file *stream, int recurse,
- const struct value_print_options *options,
- const struct language_defn *language);
+extern void common_val_print (struct value *val,
+ struct ui_file *stream, int recurse,
+ const struct value_print_options *options,
+ const struct language_defn *language);
extern int val_print_string (struct type *elttype, const char *encoding,
CORE_ADDR addr, int len,