diff options
author | Hui Zhu <teawater@gmail.com> | 2009-09-29 01:53:24 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2009-09-29 01:53:24 +0000 |
commit | 7f6b4fdd6b63a5d768440afb7a76b9ef4f828c5d (patch) | |
tree | 31df64ff42d7d0384b3d185eba5389fc510b42e3 /gdb/record.c | |
parent | 60e851a44030347fa86baef84682b822d4affc94 (diff) | |
download | gdb-7f6b4fdd6b63a5d768440afb7a76b9ef4f828c5d.tar.gz |
2009-09-29 Hui Zhu <teawater@gmail.com>
* record.c (record_open): Change "query" to "error".
(cmd_record_stop): Change "query" to "printf_unfiltered".
Diffstat (limited to 'gdb/record.c')
-rw-r--r-- | gdb/record.c | 14 |
1 files changed, 5 insertions, 9 deletions
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")); |