2009-09-27 Hui Zhu <teawater@gmail.com>
* record.c (record_open): Change "query" to "error". (cmd_record_stop): Change "query" to "printf_unfiltered".
This commit is contained in:
parent
d8c8c4064b
commit
5d40bb8544
2 changed files with 10 additions and 9 deletions
|
@ -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>
|
2009-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
* i386-nat.c (i386_stopped_data_address): Also check that
|
* i386-nat.c (i386_stopped_data_address): Also check that
|
||||||
|
|
14
gdb/record.c
14
gdb/record.c
|
@ -496,12 +496,8 @@ record_open (char *name, int from_tty)
|
||||||
|
|
||||||
/* Check if record target is already running. */
|
/* Check if record target is already running. */
|
||||||
if (current_target.to_stratum == record_stratum)
|
if (current_target.to_stratum == record_stratum)
|
||||||
{
|
error (_("Process record target already running. Use \"record stop\" to "
|
||||||
if (!query
|
"stop record target first."));
|
||||||
(_("Process record target already running, do you want to delete "
|
|
||||||
"the old record log?")))
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*Reset the beneath function pointers. */
|
/*Reset the beneath function pointers. */
|
||||||
record_beneath_to_resume = NULL;
|
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 (current_target.to_stratum == record_stratum)
|
||||||
{
|
{
|
||||||
if (!record_list || !from_tty || query (_("Delete recorded log and "
|
unpush_target (&record_ops);
|
||||||
"stop recording?")))
|
printf_unfiltered (_("Process record is stoped and all execution "
|
||||||
unpush_target (&record_ops);
|
"log is deleted.\n"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
printf_unfiltered (_("Process record is not started.\n"));
|
printf_unfiltered (_("Process record is not started.\n"));
|
||||||
|
|
Loading…
Reference in a new issue