This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug remote/7250] Fix implementation of ``target xxx''.
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 30 Jul 2014 13:55:28 +0000
- Subject: [Bug remote/7250] Fix implementation of ``target xxx''.
- Auto-submitted: auto-generated
- References: <bug-7250-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=7250
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
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 8981c75857ec8ef645ccb4f7ccc70fccc609085d (commit)
from cc6563d29b6f86b23c4f9a8ea73dabf9f7fc0d91 (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=8981c75857ec8ef645ccb4f7ccc70fccc609085d
commit 8981c75857ec8ef645ccb4f7ccc70fccc609085d
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Jul 21 14:32:43 2014 -0600
fix to_open debug setting
This is a follow-on to the patch to auto-generate target debug methods.
While working on that patch I noticed that the to_open debug setting
will never work. There is no path by which debug_to_open can be
called.
This patch fixes the problem by using a generic function as the
implementation of the various "target" subcommands, and then putting
the debug printing there.
This is also a tiny step toward fixing PR 7250 (and apparently why
command contexts were introduced).
Built and regtested on x86-64 Fedora 20.
2014-07-30 Tom Tromey <tromey@redhat.com>
* target.c (open_target): New function.
(add_target_with_completer, add_deprecated_target_alias): Use
set_cmd_sfunc, set_cmd_context.
(debug_to_open): Remove.
(setup_target_debug): Update.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 8 ++++++++
gdb/target.c | 37 ++++++++++++++++++++++++-------------
2 files changed, 32 insertions(+), 13 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.