From: Hui Zhu Date: Tue, 29 Sep 2009 01:53:26 +0000 (+0000) Subject: 2009-09-29 Hui Zhu X-Git-Tag: gdb_7_0-2009-10-06-release~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3303929955608b26ba2810c1ea232ad79e097f6;p=thirdparty%2Fbinutils-gdb.git 2009-09-29 Hui Zhu * record.c (record_open): Change "query" to "error". (cmd_record_stop): Change "query" to "printf_unfiltered". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 33d74dfad54..85caa563467 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-09-29 Hui Zhu + + * record.c (record_open): Change "query" to "error". + (cmd_record_stop): Change "query" to "printf_unfiltered". + 2009-09-29 Joel Brobecker * ia64-tdep.c: Update the comments on how we insert/remove diff --git a/gdb/record.c b/gdb/record.c index c675e344450..f71f3fffd06 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -496,12 +496,8 @@ record_open (char *name, int from_tty) /* Check if record target is already running. */ if (current_target.to_stratum == record_stratum) - { - if (!query - (_("Process record target already running, do you want to delete " - "the old record log?"))) - return; - } + error (_("Process record target already running. Use \"record stop\" to " + "stop record target first.")); /*Reset the beneath function pointers. */ record_beneath_to_resume = NULL; @@ -1249,9 +1245,9 @@ cmd_record_stop (char *args, int from_tty) { if (current_target.to_stratum == record_stratum) { - if (!record_list || !from_tty || query (_("Delete recorded log and " - "stop recording?"))) - unpush_target (&record_ops); + unpush_target (&record_ops); + printf_unfiltered (_("Process record is stoped and all execution " + "log is deleted.\n")); } else printf_unfiltered (_("Process record is not started.\n"));