aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-01-03 07:53:06 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-01-03 07:53:06 +0000
commite5cc9f32cdebeda14cca3948b18e06c926112a6a (patch)
treeb9eee78c7fd42242058f6459d9ecd79bab2a1824 /gdb/symfile.c
parent8a541dfccfc1ee0fdacf0e8f6d29f3cddd1d3915 (diff)
downloadgdb-e5cc9f32cdebeda14cca3948b18e06c926112a6a.zip
gdb-e5cc9f32cdebeda14cca3948b18e06c926112a6a.tar.gz
gdb-e5cc9f32cdebeda14cca3948b18e06c926112a6a.tar.bz2
prevent the "load" command from repeating
This makes sure that the `load' command does not repeat when the user presses Return again, as documented in the GDB User's Manual. gdb/ChangeLog: * symfile.c (find_sym_fns): Add call to dont_repeat.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index d333189..260aff3 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1742,6 +1742,8 @@ find_sym_fns (bfd *abfd)
static void
load_command (char *arg, int from_tty)
{
+ dont_repeat ();
+
/* The user might be reloading because the binary has changed. Take
this opportunity to check. */
reopen_exec_file ();