gdbserver: set ptrace flags after creating inferiors
[deliverable/binutils-gdb.git] / gdb / break-catch-throw.c
index 9449aa5f38131e50b99f3586aee10317dd2174d6..1ba505b6e49071c0752763e28c04c2d5624b5ec6 100644 (file)
@@ -216,9 +216,8 @@ re_set_exception_catchpoint (struct breakpoint *self)
   /* We first try to use the probe interface.  */
   TRY
     {
-      char *spec = ASTRDUP (exception_functions[kind].probe);
-
-      location = new_linespec_location (&spec);
+      location
+       = new_probe_location (exception_functions[kind].probe);
       cleanup = make_cleanup_delete_event_location (location);
       sals = parse_probes (location, NULL);
       do_cleanups (cleanup);
@@ -230,9 +229,12 @@ re_set_exception_catchpoint (struct breakpoint *self)
         catchpoint mode.  */
       TRY
        {
-         char *spec = ASTRDUP (exception_functions[kind].function);
+         struct explicit_location explicit_loc;
 
-         location = new_linespec_location (&spec);
+         initialize_explicit_location (&explicit_loc);
+         explicit_loc.function_name
+           = ASTRDUP (exception_functions[kind].function);
+         location = new_explicit_location (&explicit_loc);
          cleanup = make_cleanup_delete_event_location (location);
          self->ops->decode_location (self, location, &sals);
          do_cleanups (cleanup);
This page took 0.024788 seconds and 4 git commands to generate.