This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] make "set debug target" take effect immediately


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]