Use string_to_event_location_basic in guile.
[deliverable/binutils-gdb.git] / gdb / guile / scm-breakpoint.c
index 716fe4cbe8e69b8e55a3c07500d1a45508127a84..baecf011d16f3530f7627d946748835d53ef2854 100644 (file)
@@ -425,8 +425,8 @@ gdbscm_register_breakpoint_x (SCM self)
 
   pending_breakpoint_scm = self;
   location = bp_smob->spec.location;
-  copy = location;
-  eloc = new_linespec_location (&copy);
+  copy = skip_spaces (location);
+  eloc = string_to_event_location_basic (&copy, current_language);
   cleanup = make_cleanup_delete_event_location (eloc);
 
   TRY
This page took 0.023931 seconds and 4 git commands to generate.