From: Daniel Jacobowitz Date: Mon, 19 Apr 2004 22:36:24 +0000 (+0000) Subject: * dwarf2read.c (free_comp_units_worker): Remove incorrect aging. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41a176ab1c4f2144bfa1ebf6fae118b3f69618d1;p=thirdparty%2Fbinutils-gdb.git * dwarf2read.c (free_comp_units_worker): Remove incorrect aging. (_initialize_dwarf2_read): Use var_zinteger. --- diff --git a/gdb/ChangeLog.intercu b/gdb/ChangeLog.intercu index fe009de3c88..2ce2da29ae3 100644 --- a/gdb/ChangeLog.intercu +++ b/gdb/ChangeLog.intercu @@ -1,3 +1,8 @@ +2004-04-19 Daniel Jacobowitz + + * dwarf2read.c (free_comp_units_worker): Remove incorrect aging. + (_initialize_dwarf2_read): Use var_zinteger. + 2004-04-19 Daniel Jacobowitz * Makefile.in (dwarf2read.o): Update dependencies. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index da20e0ccdfc..4b3f97b5b88 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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); }