mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
gdb/
2012-01-23 Pedro Alves <palves@redhat.com> * top.c (caution): Update comment. (execute_command): Don't consider the current value of `caution'. gdb/testsuite/ 2012-01-23 Pedro Alves <palves@redhat.com> * gdb.base/call-signal-resume.exp: Allow output after "return".
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2012-01-23 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* top.c (caution): Update comment.
|
||||||
|
(execute_command): Don't consider the current value of `caution'.
|
||||||
|
|
||||||
2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
* cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
|
* cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2012-01-23 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* gdb.base/call-signal-resume.exp: Allow output after "return".
|
||||||
|
|
||||||
2012-01-20 Pedro Alves <palves@redhat.com>
|
2012-01-20 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* gdb.python/py-finish-breakpoint.py: Fix typo.
|
* gdb.python/py-finish-breakpoint.py: Fix typo.
|
||||||
|
@ -99,7 +99,7 @@ if { "$frame_number" == "" } {
|
|||||||
# Pop the dummy frame.
|
# Pop the dummy frame.
|
||||||
gdb_test "frame $frame_number" ".*"
|
gdb_test "frame $frame_number" ".*"
|
||||||
gdb_test_no_output "set confirm off"
|
gdb_test_no_output "set confirm off"
|
||||||
gdb_test_no_output "return"
|
gdb_test "return" ""
|
||||||
|
|
||||||
# Resume execution, the program should continue without any signal.
|
# Resume execution, the program should continue without any signal.
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ if { "$frame_number" == "" } {
|
|||||||
# Pop the dummy frame.
|
# Pop the dummy frame.
|
||||||
gdb_test "frame $frame_number" ".*"
|
gdb_test "frame $frame_number" ".*"
|
||||||
gdb_test_no_output "set confirm off"
|
gdb_test_no_output "set confirm off"
|
||||||
gdb_test_no_output "return"
|
gdb_test "return" ""
|
||||||
|
|
||||||
# Continue again, this time we should get to the signal handler.
|
# Continue again, this time we should get to the signal handler.
|
||||||
|
|
||||||
|
12
gdb/top.c
12
gdb/top.c
@ -98,9 +98,11 @@ int use_windows = 0;
|
|||||||
|
|
||||||
extern char lang_frame_mismatch_warn[]; /* language.c */
|
extern char lang_frame_mismatch_warn[]; /* language.c */
|
||||||
|
|
||||||
/* Flag for whether we want all the "from_tty" gubbish printed. */
|
/* Flag for whether we want to confirm potentially dangerous
|
||||||
|
operations. Default is yes. */
|
||||||
|
|
||||||
|
int caution = 1;
|
||||||
|
|
||||||
int caution = 1; /* Default is yes, sigh. */
|
|
||||||
static void
|
static void
|
||||||
show_caution (struct ui_file *file, int from_tty,
|
show_caution (struct ui_file *file, int from_tty,
|
||||||
struct cmd_list_element *c, const char *value)
|
struct cmd_list_element *c, const char *value)
|
||||||
@ -471,13 +473,13 @@ execute_command (char *p, int from_tty)
|
|||||||
if (c->class == class_user)
|
if (c->class == class_user)
|
||||||
execute_user_command (c, arg);
|
execute_user_command (c, arg);
|
||||||
else if (c->type == set_cmd || c->type == show_cmd)
|
else if (c->type == set_cmd || c->type == show_cmd)
|
||||||
do_setshow_command (arg, from_tty & caution, c);
|
do_setshow_command (arg, from_tty, c);
|
||||||
else if (!cmd_func_p (c))
|
else if (!cmd_func_p (c))
|
||||||
error (_("That is not a command, just a help topic."));
|
error (_("That is not a command, just a help topic."));
|
||||||
else if (deprecated_call_command_hook)
|
else if (deprecated_call_command_hook)
|
||||||
deprecated_call_command_hook (c, arg, from_tty & caution);
|
deprecated_call_command_hook (c, arg, from_tty);
|
||||||
else
|
else
|
||||||
cmd_func (c, arg, from_tty & caution);
|
cmd_func (c, arg, from_tty);
|
||||||
|
|
||||||
/* If the interpreter is in sync mode (we're running a user
|
/* If the interpreter is in sync mode (we're running a user
|
||||||
command's list, running command hooks or similars), and we
|
command's list, running command hooks or similars), and we
|
||||||
|
Reference in New Issue
Block a user