diff options
author | Tom Tromey <tromey@redhat.com> | 2008-12-22 23:11:56 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-12-22 23:11:56 +0000 |
commit | aad95b57c5c4f5f11bd45e848a3ff3bafff1bfc5 (patch) | |
tree | 0c907e97881028948a90872f193ed997e014853b /gdb/stack.c | |
parent | 1446eb676faa451b31f37766f758d2c7df1ac26e (diff) | |
download | gdb-aad95b57c5c4f5f11bd45e848a3ff3bafff1bfc5.zip gdb-aad95b57c5c4f5f11bd45e848a3ff3bafff1bfc5.tar.gz gdb-aad95b57c5c4f5f11bd45e848a3ff3bafff1bfc5.tar.bz2 |
* stack.c (print_block_frame_locals): Print spaces, not tabs.
Update for call to print_variable_and_value.
(print_frame_arg_vars): Update.
* value.h (print_variable_and_value): Rename from
print_variable_value. Add 'name' and 'indent' parameters.
* printcmd.c (print_variable_and_value): Rename from
print_variable_value. Add 'name' and 'indent' parameters. Use
common_val_print.
* f-valprint.c (info_common_command): Update.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index 3c1019b..51dd1bc 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -1374,12 +1374,7 @@ print_block_frame_locals (struct block *b, struct frame_info *frame, if (SYMBOL_IS_ARGUMENT (sym)) break; values_printed = 1; - for (j = 0; j < num_tabs; j++) - fputs_filtered ("\t", stream); - fputs_filtered (SYMBOL_PRINT_NAME (sym), stream); - fputs_filtered (" = ", stream); - print_variable_value (sym, frame, stream); - fprintf_filtered (stream, "\n"); + print_variable_and_value (NULL, sym, frame, stream, 4 * num_tabs); break; default: @@ -1575,8 +1570,6 @@ print_frame_arg_vars (struct frame_info *frame, struct ui_file *stream) if (SYMBOL_IS_ARGUMENT (sym)) { values_printed = 1; - fputs_filtered (SYMBOL_PRINT_NAME (sym), stream); - fputs_filtered (" = ", stream); /* We have to look up the symbol because arguments can have two entries (one a parameter, one a local) and the one we @@ -1591,8 +1584,8 @@ print_frame_arg_vars (struct frame_info *frame, struct ui_file *stream) sym2 = lookup_symbol (SYMBOL_LINKAGE_NAME (sym), b, VAR_DOMAIN, NULL); - print_variable_value (sym2, frame, stream); - fprintf_filtered (stream, "\n"); + print_variable_and_value (SYMBOL_PRINT_NAME (sym), sym2, + frame, stream, 0); } } |