Restrict ia64_convert_register_p
[deliverable/binutils-gdb.git] / gdb / linespec.c
index acf4900d456439077ce6cf17d5d4d7d7fcc00e92..4c076fea3eb46020dd0bc5d651213855c2b7a188 100644 (file)
@@ -2554,7 +2554,8 @@ decode_line_full (const struct event_location *location, int flags,
                       search_pspace, default_symtab,
                       default_line, canonical);
   cleanups = make_cleanup (linespec_parser_delete, &parser);
-  save_current_program_space ();
+
+  scoped_restore_current_program_space restore_pspace;
 
   result = event_location_to_sals (&parser, location);
   state = PARSER_STATE (&parser);
@@ -2616,7 +2617,8 @@ decode_line_1 (const struct event_location *location, int flags,
                       search_pspace, default_symtab,
                       default_line, NULL);
   cleanups = make_cleanup (linespec_parser_delete, &parser);
-  save_current_program_space ();
+
+  scoped_restore_current_program_space restore_pspace;
 
   result = event_location_to_sals (&parser, location);
 
This page took 0.023584 seconds and 4 git commands to generate.