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 /gdb/ChangeLog | |
parent | cc6563d29b6f86b23c4f9a8ea73dabf9f7fc0d91 (diff) | |
download | binutils-gdb-8981c75857ec8ef645ccb4f7ccc70fccc609085d.tar.gz |
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 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e6f56c0a004..deccd3199b3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +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. + 2014-07-30 Yao Qi <yao@codesourcery.com> * parser-defs.h (struct exp_descriptor) <operator_check>: Update |