aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-03-25 11:45:53 +0000
committerPedro Alves <palves@redhat.com>2014-03-25 11:45:53 +0000
commitd3839ede057ef077667978dbd065e7b5702c9176 (patch)
treef6b662ebdd81841755771ff5eec833e2c05932f1 /gdb/ChangeLog
parentc955de363b91edba8a92877f97b1be68357d9582 (diff)
downloadfsf-binutils-gdb-d3839ede057ef077667978dbd065e7b5702c9176.zip
fsf-binutils-gdb-d3839ede057ef077667978dbd065e7b5702c9176.tar.gz
fsf-binutils-gdb-d3839ede057ef077667978dbd065e7b5702c9176.tar.bz2
"source", foreground execution commands, and target-async
Sourcing a GDB script that runs foreground execution commands in succession fails if the target can async: Breakpoint 1, main () at ../../../src/gdb/testsuite/gdb.base/source-execution.c:36 36 func1 (); (gdb) source ../../../src/gdb/testsuite/gdb.base/source-execution.gdb ../../../src/gdb/testsuite/gdb.base/source-execution.gdb:21: Error in sourced command file: Cannot execute this command while the selected thread is running. (gdb) FAIL: gdb.base/source-execution.exp: source source-execution.gdb That is, after a foreground execution command, GDB moves on to the following command immediately before waiting for the previous command to complete. https://sourceware.org/ml/gdb-patches/2011-09/msg00037.html (b4a14fd0) addressed this for command lists, Python's gdb.execute, etc., but missed "source". Fixed now in the same way. gdb/ 2014-03-25 Pedro Alves <palves@redhat.com> * cli/cli-script.c (script_from_file): Force the interpreter to sync mode. gdb/testsuite/ 2014-03-25 Pedro Alves <palves@redhat.com> Doug Evans <dje@google.com> * gdb.base/source-execution.c: New file. * gdb.base/source-execution.exp: New file. * gdb.base/source-execution.gdb: New file.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c1231ca..74e20a4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-25 Pedro Alves <palves@redhat.com>
+
+ * cli/cli-script.c (script_from_file): Force the interpreter to
+ sync mode.
+
2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
* avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for