* 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:
Jan Kratochvil
2012-03-03 14:21:04 +00:00
parent a06715f8dd
commit abf1152ad7
4 changed files with 39 additions and 16 deletions

View File

@ -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