diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-03-03 14:21:04 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-03-03 14:21:04 +0000 |
commit | abf1152ad77baabd40d8c62324e5de922db246a5 (patch) | |
tree | 8ea95f72c6ac12da6c411d727550eb2b760b6b38 /gdb/breakpoint.c | |
parent | a06715f8dd489123b4850b9e3560addf38a2c720 (diff) | |
download | gdb-abf1152ad77baabd40d8c62324e5de922db246a5.zip gdb-abf1152ad77baabd40d8c62324e5de922db246a5.tar.gz gdb-abf1152ad77baabd40d8c62324e5de922db246a5.tar.bz2 |
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.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 3decd92..5388a4e 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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 |