gdb/stack.c: Remove unused mem_fileopen
gdb/ChangeLog: 2017-01-31 Pedro Alves <palves@redhat.com> * stack.c (print_frame_args): Remove local mem_fileopen stream, not used.
This commit is contained in:
parent
b47413b47e
commit
289b5b2421
2 changed files with 5 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2017-01-31 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* stack.c (print_frame_args): Remove local mem_fileopen stream,
|
||||||
|
not used.
|
||||||
|
|
||||||
2017-01-31 Pedro Alves <palves@redhat.com>
|
2017-01-31 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* varobj.c (varobj_value_get_print_value): Remove xstrdup call.
|
* varobj.c (varobj_value_get_print_value): Remove xstrdup call.
|
||||||
|
|
|
@ -553,14 +553,9 @@ print_frame_args (struct symbol *func, struct frame_info *frame,
|
||||||
long highest_offset = -1;
|
long highest_offset = -1;
|
||||||
/* Number of ints of arguments that we have printed so far. */
|
/* Number of ints of arguments that we have printed so far. */
|
||||||
int args_printed = 0;
|
int args_printed = 0;
|
||||||
struct cleanup *old_chain;
|
|
||||||
struct ui_file *stb;
|
|
||||||
/* True if we should print arguments, false otherwise. */
|
/* True if we should print arguments, false otherwise. */
|
||||||
int print_args = strcmp (print_frame_arguments, "none");
|
int print_args = strcmp (print_frame_arguments, "none");
|
||||||
|
|
||||||
stb = mem_fileopen ();
|
|
||||||
old_chain = make_cleanup_ui_file_delete (stb);
|
|
||||||
|
|
||||||
if (func)
|
if (func)
|
||||||
{
|
{
|
||||||
const struct block *b = SYMBOL_BLOCK_VALUE (func);
|
const struct block *b = SYMBOL_BLOCK_VALUE (func);
|
||||||
|
@ -730,8 +725,6 @@ print_frame_args (struct symbol *func, struct frame_info *frame,
|
||||||
print_frame_nameless_args (frame, start, num - args_printed,
|
print_frame_nameless_args (frame, start, num - args_printed,
|
||||||
first, stream);
|
first, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
do_cleanups (old_chain);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the current source and line to the location given by frame
|
/* Set the current source and line to the location given by frame
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue