- char *spec = ASTRDUP (exception_functions[kind].function);
-
- self->ops->decode_linespec (self, &spec, &sals);
+ struct explicit_location explicit_loc;
+
+ initialize_explicit_location (&explicit_loc);
+ explicit_loc.function_name
+ = ASTRDUP (exception_functions[kind].function);
+ event_location_up location = new_explicit_location (&explicit_loc);
+ sals = self->ops->decode_location (self, location.get (),
+ filter_pspace);