[RFA] parse and eval breakpoint conditions with correct language

Andrew Cagney ac131313@redhat.com
Fri Sep 12 01:33:00 GMT 2003


> The following patch seems to be fixing it, but I would need more
> time to really think about it more thouroughly. 
> 
> --- breakpoint.c        5 Sep 2003 21:51:24 -0000       1.4
> +++ breakpoint.c        11 Sep 2003 19:23:08 -0000
> @@ -7089,6 +7089,7 @@ breakpoint_re_set_one (PTR bint)
>        /* So for now, just use a global context.  */
>        if (b->exp)
>         xfree (b->exp);
> +      set_language (b->language);
>        b->exp = parse_expression (b->exp_string);
>        b->exp_valid_block = innermost_block;
>        mark = value_mark ();

BTW, this setting of the global current_language all also worries me :-) 
  Should parse_expression take an explict language?

Andrew




More information about the Gdb-patches mailing list