diff options
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 98901ce..12cbb9c 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 |