Change increment_reading_symtab to return a scoped_restore
[deliverable/binutils-gdb.git] / gdb / psymtab.c
index bdce8f239aa999f8fda242979e74983d27e4f929..bb482ee2cb4afac36fff5b496474cc8e87f7f76e 100644 (file)
@@ -770,10 +770,9 @@ psymtab_to_symtab (struct objfile *objfile, struct partial_symtab *pst)
   /* If it has not yet been read in, read it.  */
   if (!pst->readin)
     {
-      struct cleanup *back_to = increment_reading_symtab ();
+      scoped_restore decrementer = increment_reading_symtab ();
 
       (*pst->read_symtab) (pst, objfile);
-      do_cleanups (back_to);
     }
 
   return pst->compunit_symtab;
This page took 0.02448 seconds and 4 git commands to generate.