aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>2018-11-21 17:06:05 +0000
committerPedro Alves <palves@redhat.com>2018-11-21 17:06:05 +0000
commit1c97054b87495b008c6028d697deff61c9fb0b6e (patch)
treeb16455eea22893a8da4b3485dc247b7c5b301155 /gdb/ChangeLog
parentca94519e70c39fca1d6ea93b8604349111522a8b (diff)
downloadgdb-1c97054b87495b008c6028d697deff61c9fb0b6e.zip
gdb-1c97054b87495b008c6028d697deff61c9fb0b6e.tar.gz
gdb-1c97054b87495b008c6028d697deff61c9fb0b6e.tar.bz2
Make command-repeat work after gdb.execute
Since commit 56bcdbea2bed ("Let gdb.execute handle multi-line commands") command repetition after using the `gdb.execute` Python function fails (the previous command is not repeated anymore). This happens because read_command_lines_1 sets dont_repeat, but the call to prevent_dont_repeat in execute_gdb_command is later. The fix is to move the call to prevent_dont_repeat to the beginning of the function. Tested on my laptop (ArchLinux-x86_64). gdb/ChangeLog: PR python/23714 * gdb/python/python.c (execute_gdb_command): Call prevent_dont_repeat earlier to avoid affecting dont_repeat. gdb/testuite/ChangeLog: PR python/23714 * gdb.python/python.exp: Test command repetition after gdb.execute.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1630bd8..d562a4b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
+
+ PR python/23714
+ * gdb/python/python.c (execute_gdb_command): Call
+ prevent_dont_repeat earlier to avoid affecting dont_repeat.
+
2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
* Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.