This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. d3839ede057ef077667978dbd065e7b5702c9176
- From: palves at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 25 Mar 2014 12:27:33 -0000
- Subject: gdb and binutils branch master updated. d3839ede057ef077667978dbd065e7b5702c9176
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via d3839ede057ef077667978dbd065e7b5702c9176 (commit)
from c955de363b91edba8a92877f97b1be68357d9582 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d3839ede057ef077667978dbd065e7b5702c9176
commit d3839ede057ef077667978dbd065e7b5702c9176
Author: Pedro Alves <palves@redhat.com>
Date: Tue Mar 25 11:45:53 2014 +0000
"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.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 5 +++
gdb/cli/cli-script.c | 3 ++
gdb/testsuite/ChangeLog | 7 ++++
gdb/testsuite/gdb.base/source-execution.c | 41 +++++++++++++++++++++++++++
gdb/testsuite/gdb.base/source-execution.exp | 33 +++++++++++++++++++++
gdb/testsuite/gdb.base/source-execution.gdb | 21 ++++++++++++++
6 files changed, 110 insertions(+), 0 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/source-execution.c
create mode 100644 gdb/testsuite/gdb.base/source-execution.exp
create mode 100644 gdb/testsuite/gdb.base/source-execution.gdb
hooks/post-receive
--
gdb and binutils