[Sergio - a change in dtrace-probe.c needs your approval, I think. Also, if you have a chance to double-check the rest of the patch, that'd be a much appreciated second pair of eyes!] > > Well, the TRY..CATCH in your prototype would catch any error that may be > > thrown in parse_expression, and the `set_language' must take care of > > changing the language, so I would say that is enough... > > OK - I will send an updated patch that makes things a little cleaner. > I didn't know whether it was OK to default to type long makes much > sense when the probe says the parameter should be using type "mutex_t". Here it is. gdb/ChangeLog: * dtrace-probe.c (dtrace_process_dof_probe): Contain any exception raised while parsing the probe arguments. Force parsing to be done using the C language parser. * expression.h (parse_expression_with_language): Declare. * parse.c (parse_expression_with_language): New function. Tested on sparc-solaris. -- Joel