From 258c00ccb0ca7ed81df2fd226ae2a36008b7df60 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 28 Feb 2008 17:43:47 +0000 Subject: * infcmd.c (notice_args_read): Print result of get_inferior_args. --- gdb/ChangeLog | 4 ++++ gdb/infcmd.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 18a4641..5be237f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-02-28 Tom Tromey + + * infcmd.c (notice_args_read): Print result of get_inferior_args. + 2008-02-28 Daniel Jacobowitz * infcmd.c (kill_if_already_running): Make static. Use diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 9d889b2..70bf695 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -273,9 +273,9 @@ static void notice_args_read (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - deprecated_show_value_hack (file, from_tty, c, value); - /* Might compute the value. */ - get_inferior_args (); + /* Note that we ignore the passed-in value in favor of computing it + directly. */ + deprecated_show_value_hack (file, from_tty, c, get_inferior_args ()); } -- cgit v1.1