mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-16 23:06:48 +08:00
gdb/
* breakpoint.c (set_condition_evaluation_mode): Set CONDITION_EVALUATION_MODE unconditionally. gdb/testsuite/ Implement testsuite workaround for PR breakpoints/13781. * gdb.cp/mb-templates.exp: New loop with variable $workaround. (set breakpoint condition-evaluation host): New conditional command.
This commit is contained in:
@ -761,6 +761,10 @@ set_condition_evaluation_mode (char *args, int from_tty,
|
||||
new_mode = translate_condition_evaluation_mode (condition_evaluation_mode_1);
|
||||
old_mode = translate_condition_evaluation_mode (condition_evaluation_mode);
|
||||
|
||||
/* Flip the switch. Flip it even if OLD_MODE == NEW_MODE as one of the
|
||||
settings was "auto". */
|
||||
condition_evaluation_mode = condition_evaluation_mode_1;
|
||||
|
||||
/* Only update the mode if the user picked a different one. */
|
||||
if (new_mode != old_mode)
|
||||
{
|
||||
@ -772,9 +776,6 @@ set_condition_evaluation_mode (char *args, int from_tty,
|
||||
"target" -> "host": Remove all the conditions from the target.
|
||||
*/
|
||||
|
||||
/* Flip the switch. */
|
||||
condition_evaluation_mode = condition_evaluation_mode_1;
|
||||
|
||||
if (new_mode == condition_evaluation_target)
|
||||
{
|
||||
/* Mark everything modified and synch conditions with the
|
||||
|
Reference in New Issue
Block a user