aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2009-09-27 02:49:34 +0000
committerHui Zhu <teawater@gmail.com>2009-09-27 02:49:34 +0000
commit5d40bb85448aeaf7aaa5f9c13e0aafc6d506c296 (patch)
treef35d2d25ff067dd2fa906be9ee465262a0f0fcca /gdb
parentd8c8c4064b1f2f47604c28181764162b0f7ce36e (diff)
downloadgdb-5d40bb85448aeaf7aaa5f9c13e0aafc6d506c296.zip
gdb-5d40bb85448aeaf7aaa5f9c13e0aafc6d506c296.tar.gz
gdb-5d40bb85448aeaf7aaa5f9c13e0aafc6d506c296.tar.bz2
2009-09-27 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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/record.c14
2 files changed, 10 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 25964d3..0ce3fe8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2009-09-27 Hui Zhu <teawater@gmail.com>
+
+ * record.c (record_open): Change "query" to "error".
+ (cmd_record_stop): Change "query" to "printf_unfiltered".
+
2009-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
* i386-nat.c (i386_stopped_data_address): Also check that
diff --git a/gdb/record.c b/gdb/record.c
index c675e34..8b56010 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"));