From: Joel Brobecker Date: Mon, 3 Jan 2011 07:53:06 +0000 (+0000) Subject: prevent the "load" command from repeating X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5cc9f32cdebeda14cca3948b18e06c926112a6a;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6d984d2c1a5..08b2b096dc5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-01-03 Joel Brobecker + + * symfile.c (find_sym_fns): Add call to dont_repeat. + 2011-01-01 Joel Brobecker Copyright year update in most files (performed by copyright.sh). diff --git a/gdb/symfile.c b/gdb/symfile.c index d33318989b1..260aff39a9f 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 ();