This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 8bc2fe488957946d2cdccda3ce8d4f39e4003ea0
- From: palves at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 12 Mar 2014 20:33:45 -0000
- Subject: gdb and binutils branch master updated. 8bc2fe488957946d2cdccda3ce8d4f39e4003ea0
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 8bc2fe488957946d2cdccda3ce8d4f39e4003ea0 (commit)
from 638c5f496205e1209547f3f6303f773270882173 (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=8bc2fe488957946d2cdccda3ce8d4f39e4003ea0
commit 8bc2fe488957946d2cdccda3ce8d4f39e4003ea0
Author: Pedro Alves <palves@redhat.com>
Date: Wed Mar 12 20:32:53 2014 +0000
Factor out foreground/background execution command preparation.
All execution commands currently have this pattern:
/* If we must run in the background, but the target can't do it,
error out. */
if (async_exec && !target_can_async_p ())
error (_("Asynchronous execution not supported on this target."));
/* If we are not asked to run in the bg, then prepare to run in the
foreground, synchronously. */
if (!async_exec && target_can_async_p ())
{
/* Simulate synchronous execution. */
async_disable_stdin ();
}
This patch factors that into a shared function.
attach_command installs a cleanup to re-enable stdin, but that's not
necessary, as per the comment in prepare_execution_command. In any
case, if someday it turns out necessary, we have a single place to
install it now.
Tested on x86_64 Fedora 17, sync and async modes.
gdb/
2014-03-12 Pedro Alves <palves@redhat.com>
* infcmd.c (prepare_execution_command): New function, factored out
from several execution commands.
(run_command_1, continue_command, step_1, jump_command)
(signal_command, until_command, advance_command, finish_command)
(attach_command): Use prepare_execution_command.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 8 +++
gdb/infcmd.c | 189 ++++++++++++++++-----------------------------------------
2 files changed, 61 insertions(+), 136 deletions(-)
hooks/post-receive
--
gdb and binutils