diff options
author | Tom Tromey <tromey@redhat.com> | 2012-03-01 19:26:12 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-03-01 19:26:12 +0000 |
commit | ad26b564b6127d039cb6dc50ddf6e00bb7a55bbb (patch) | |
tree | edcdd265a8d641f86b21215f33528f85d745c068 /gdb/c-valprint.c | |
parent | 7a5bc8ff981bf778bb2ab405d61832c4994dcfd4 (diff) | |
download | gdb-ad26b564b6127d039cb6dc50ddf6e00bb7a55bbb.tar.gz |
* valprint.c (val_print): Update.
* p-valprint (pascal_val_print): Return void.
* p-lang.h (pascal_val_print): Return void.
* m2-valprint.c (m2_val_print): Return void.
* m2-lang.h (m2_val_print): Return void.
* language.h (struct language_defn) <la_val_print>: Return void.
* language.c (unk_lang_val_print): Return void.
* jv-valprint.c (java_val_print): Return void.
* jv-lang.h (java_val_print): Return void.
* f-valprint.c (f_val_print): Return void.
* f-lang.h (f_val_print): Return void.
* d-valprint.c (d_val_print): Return void.
(dynamic_array_type): Update.
* d-lang.h (d_val_print): Return void.
* c-valprint.c (c_val_print): Return void.
* c-lang.h (c_val_print): Return void.
* ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
void.
* ada-lang.h (ada_val_print): Return void.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r-- | gdb/c-valprint.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index 98901ce5a8e..12cbb9cd7e1 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -117,10 +117,9 @@ c_textual_element_type (struct type *type, char format) } /* See val_print for a description of the various parameters of this - function; they are identical. The semantics of the return value is - also identical to val_print. */ + function; they are identical. */ -int +void c_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int recurse, @@ -262,9 +261,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, /* Try to print what function it points to. */ print_function_pointer_address (gdbarch, addr, stream, options->addressprint); - /* Return value is irrelevant except for string - pointers. */ - return (0); + return; } if (options->addressprint) @@ -328,12 +325,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr, } } } - - /* Return number of characters printed, including the - terminating '\0' if we reached the end. val_print_string - takes care including the terminating '\0' if - necessary. */ - return i; + return; } break; @@ -641,7 +633,6 @@ c_val_print (struct type *type, const gdb_byte *valaddr, TYPE_CODE (type)); } gdb_flush (stream); - return (0); } void |