This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] make "set debug target" take effect immediately
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>, gdb-patches at sourceware dot org
- Date: Tue, 29 Jul 2014 11:27:50 +0100
- Subject: Re: [PATCH] make "set debug target" take effect immediately
- Authentication-results: sourceware.org; auth=none
- References: <1406574267-5212-1-git-send-email-tromey at redhat dot com>
On 07/28/2014 08:04 PM, Tom Tromey wrote:
> Right now, "set debug target" acts a bit strangely.
>
> Most target APIs only notice that it has changed when the target stack
> is changed in some way. This is because many methods implement the
> setting using the special debug target. However, a few spots do
> change their behavior immediately -- any place explicitly checking
> "targetdebug".
>
> Some of this peculiar behavior is documented. However, I think that
> it just isn't very useful for it to work this way. So, This patch
> changes "set debug target" to take effect immediately in all cases.
Definitely. Thanks!
> This is done by simply calling update_current_target when the setting
> is changed.
Pedro Alves