aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-01-31 17:56:36 +0000
committerPedro Alves <palves@redhat.com>2017-01-31 23:34:40 +0000
commit289b5b2421ca79324b7374492ea652aceb869a1d (patch)
treefef57c5205f08910af6ac84c029113fb190c2fc5
parentb47413b47e103677fedb7cd1301c62fee01ac4ba (diff)
downloadgdb-289b5b2421ca79324b7374492ea652aceb869a1d.zip
gdb-289b5b2421ca79324b7374492ea652aceb869a1d.tar.gz
gdb-289b5b2421ca79324b7374492ea652aceb869a1d.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/stack.c7
2 files changed, 5 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5e822f8..e3d3560 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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>
+
* varobj.c (varobj_value_get_print_value): Remove xstrdup call.
2017-01-31 Pedro Alves <palves@redhat.com>
diff --git a/gdb/stack.c b/gdb/stack.c
index e00e297..4c9e14e 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -553,14 +553,9 @@ print_frame_args (struct symbol *func, struct frame_info *frame,
long highest_offset = -1;
/* Number of ints of arguments that we have printed so far. */
int args_printed = 0;
- struct cleanup *old_chain;
- struct ui_file *stb;
/* True if we should print arguments, false otherwise. */
int print_args = strcmp (print_frame_arguments, "none");
- stb = mem_fileopen ();
- old_chain = make_cleanup_ui_file_delete (stb);
-
if (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,
first, stream);
}
-
- do_cleanups (old_chain);
}
/* Set the current source and line to the location given by frame