Message ID | CAGyQ6gw6pPYQoF-eyc44Kv2r-YonPhzaFkFDaAr8+7CeVR00NQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Sat, 29 Nov 2014 11:16:08 +0100, Siva Chandra wrote: > can I ask you to test the attached patch which should fix this (and > hopefully fix the regression)? Confirming it fixes the regression on {x86_64,x86_64-m32,i686}-fedora21-linux-gnu and I see no other regressions there. Thanks, Jan
diff --git a/gdb/eval.c b/gdb/eval.c index a13793c..c2ab879 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -69,7 +69,8 @@ evaluate_subexp (struct type *expect_type, struct expression *exp, int cleanup_temps = 0; if (*pos == 0 && target_has_execution - && exp->language_defn->la_language == language_cplus) + && exp->language_defn->la_language == language_cplus + && !thread_stack_temporaries_enabled_p (inferior_ptid)) { cleanups = enable_thread_stack_temporaries (inferior_ptid); cleanup_temps = 1;