]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dwarf2read.c (free_comp_units_worker): Remove incorrect aging.
authorDaniel Jacobowitz <drow@false.org>
Mon, 19 Apr 2004 22:36:24 +0000 (22:36 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 19 Apr 2004 22:36:24 +0000 (22:36 +0000)
(_initialize_dwarf2_read): Use var_zinteger.

gdb/ChangeLog.intercu
gdb/dwarf2read.c

index fe009de3c882c0b9f356a3f1a767afb2d2a6a866..2ce2da29ae3c6bb7defdace8fe3d134d82b3b8a1 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
+
+       * dwarf2read.c (free_comp_units_worker): Remove incorrect aging.
+       (_initialize_dwarf2_read): Use var_zinteger.
+
 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
 
        * Makefile.in (dwarf2read.o): Update dependencies.
index da20e0ccdfca6f7d43a4e9a1478d1461bcf4bfba..4b3f97b5b88f923e24852a7a96702fcf52e8b048 100644 (file)
@@ -9177,10 +9177,7 @@ free_comp_units_worker (struct dwarf2_cu *target_cu, int aging)
          *last_chain = next_cu;
        }
       else
-       {
-         per_cu->cu->last_used++;
-         last_chain = &per_cu->cu->read_in_chain;
-       }
+       last_chain = &per_cu->cu->read_in_chain;
 
       per_cu = next_cu;
     }
@@ -9453,17 +9450,17 @@ _initialize_dwarf2_read (void)
                   &show_dwarf2_cmdlist, "maintenance show dwarf2 ",
                   0/*allow-unknown*/, &maintenance_show_cmdlist);
 
-  add_setshow_uinteger_cmd ("max-cache-age", class_obscure,
-                            &dwarf2_max_cache_age,
-                           "Set an upper bound on the age of cached "
-                           "compilation units.\n"
-                           "A higher limit means that cached "
-                           "compilation units will be stored\n"
-                           "in memory longer, and more total memory will "
-                           "be used.  Zero disables\n"
-                           "caching, which can slow down startup.",
-                           "Show the upper bound on the age of cached "
-                           "dwarf2 compilation units.",
-                            NULL, NULL, &set_dwarf2_cmdlist,
-                            &show_dwarf2_cmdlist);
+  add_setshow_cmd ("max-cache-age", class_obscure, var_zinteger,
+                  &dwarf2_max_cache_age,
+                  "Set an upper bound on the age of cached "
+                  "compilation units.\n"
+                  "A higher limit means that cached "
+                  "compilation units will be stored\n"
+                  "in memory longer, and more total memory will "
+                  "be used.  Zero disables\n"
+                  "caching, which can slow down startup.",
+                  "Show the upper bound on the age of cached "
+                  "dwarf2 compilation units.",
+                  NULL, NULL, &set_dwarf2_cmdlist,
+                  &show_dwarf2_cmdlist);
 }