diff options
author | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2018-05-24 23:19:05 +0200 |
---|---|---|
committer | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2018-05-24 23:19:05 +0200 |
commit | d392224a0942df2f23b1149a71f62afc7f34beb8 (patch) | |
tree | 5d706d11d3d9dda9be66c332a3ffffe6870b75c7 /gdb/stack.c | |
parent | a974b5ec9a253d330290d132098065b77f29bd36 (diff) | |
download | gdb-d392224a0942df2f23b1149a71f62afc7f34beb8.zip gdb-d392224a0942df2f23b1149a71f62afc7f34beb8.tar.gz gdb-d392224a0942df2f23b1149a71f62afc7f34beb8.tar.bz2 |
PATCH (obvious): Fix a comment, and pass stream to cb_data.
iterate_over_block_arg_vars is a void function, so does
not return 1 or 0.
print_frame_arg_vars tells it prints on STREAM,
so pass STREAM in the cb_data, not gdb_stdout.
gdb/ChangeLog
2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* stack.c (iterate_over_block_arg_vars): Fix comment.
(print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index 98a2184..016ee1d 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -2059,9 +2059,7 @@ info_locals_command (const char *args, int from_tty) 0, gdb_stdout); } -/* Iterate over all the argument variables in block B. - - Returns 1 if any argument was walked; 0 otherwise. */ +/* Iterate over all the argument variables in block B. */ void iterate_over_block_arg_vars (const struct block *b, @@ -2121,7 +2119,7 @@ print_frame_arg_vars (struct frame_info *frame, struct ui_file *stream) cb_data.frame_id = get_frame_id (frame); cb_data.num_tabs = 0; - cb_data.stream = gdb_stdout; + cb_data.stream = stream; cb_data.values_printed = 0; iterate_over_block_arg_vars (SYMBOL_BLOCK_VALUE (func), |