diff options
author | Tom Tromey <tromey@redhat.com> | 2014-07-21 14:32:43 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-07-30 07:51:08 -0600 |
commit | 8981c75857ec8ef645ccb4f7ccc70fccc609085d (patch) | |
tree | 1f4ed9a9b62ec436d21bedd02a104f7ef25a8b1e /ld/ldfile.h | |
parent | cc6563d29b6f86b23c4f9a8ea73dabf9f7fc0d91 (diff) | |
download | gdb-8981c75857ec8ef645ccb4f7ccc70fccc609085d.zip gdb-8981c75857ec8ef645ccb4f7ccc70fccc609085d.tar.gz gdb-8981c75857ec8ef645ccb4f7ccc70fccc609085d.tar.bz2 |
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.
Diffstat (limited to 'ld/ldfile.h')
0 files changed, 0 insertions, 0 deletions