[gdb/symtab] Add get/set functions for per_cu->lang/unit_type
[binutils-gdb.git] / gdb / ada-lang.c
index 6ab01fd27d4f9021e1d0220dafb599ac1b76680f..93e0c67613f0a927416d5618abacce71013b65de 100644 (file)
@@ -12144,8 +12144,8 @@ struct ada_catchpoint : public code_breakpoint
 
     enable_state = enabled ? bp_enabled : bp_disabled;
     disposition = tempflag ? disp_del : disp_donttouch;
-    location = string_to_event_location (&addr_string_,
-                                        language_def (language_ada));
+    locspec = string_to_location_spec (&addr_string_,
+                                      language_def (language_ada));
     language = language_ada;
   }