aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-09-20 22:26:21 +0000
committerDaniel Jacobowitz <drow@false.org>2004-09-20 22:26:21 +0000
commitae038cb03ce649030717a9e6ea7914214371e67e (patch)
tree5147d9b2ef221de0cf5aea79b876e051cd767163 /gdb/doc
parent987504bb93b4da9529d309ee545de78bc082fab2 (diff)
downloadgdb-ae038cb03ce649030717a9e6ea7914214371e67e.zip
gdb-ae038cb03ce649030717a9e6ea7914214371e67e.tar.gz
gdb-ae038cb03ce649030717a9e6ea7914214371e67e.tar.bz2
gdb/doc/
* gdb.texinfo (Maintenance Commands): Document "maint set dwarf2 max-cache-age" and "maint show dwarf2 max-cache-age". gdb/ * Makefile.in (dwarf2read.o): Update dependencies. * dwarf2read.c: Include "command.h" and "gdbcmd.h". (struct dwarf2_per_objfile): Add all_comp_units, n_comp_units, and read_in_chain. (struct dwarf2_cu): Add read_in_chain, per_cu, last_used, mark, and has_form_ref_addr. (struct dwarf2_per_cu_data): New. (dwarf2_max_cache_age): New. (dwarf2_build_psymtabs_hard): Free cached compilation units after loading. Create and manage the list of compilation units. Remove unnecessary NULL initialization. Fix indentation. (psymtab_to_symtab_1): Initialize all of CU. (dwarf2_read_abbrevs): Set has_form_ref_addr. (find_partial_die): Use dwarf2_find_containing_comp_unit and load_comp_unit. (free_stack_comp_unit): Update comments. Clear the per-cu pointer. Handle aging. (dwarf2_find_containing_comp_unit, free_cached_comp_units) (age_cached_comp_units, free_one_cached_comp_unit) (dwarf2_mark, dwarf2_clear_marks, create_all_comp_units) (load_comp_unit, dwarf2_find_comp_unit, free_one_comp_unit) (set_dwarf2_cmdlist, show_dwarf2_cmdlist, set_dwarf2_cmd) (show_dwarf2_cmd): New. (_initialize_dwarf2_read): Provide "maint set dwarf2 max-cache-age" and "maint show dwarf2 max-cache-age". * gdbcmd.h (maintenance_set_cmdlist, maintenance_show_cmdlist): New externs. * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): Make global.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo13
2 files changed, 18 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 7e25a19..67bcf52 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-20 Daniel Jacobowitz <dan@debian.org>
+
+ * gdb.texinfo (Maintenance Commands): Document "maint set dwarf2
+ max-cache-age" and "maint show dwarf2 max-cache-age".
+
2004-09-16 Eli Zaretskii <eliz@gnu.org>
* gdb.texinfo (Set Breaks): Add index entry for setting
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index cd859e9..d2174ec 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -19551,6 +19551,19 @@ data in a @file{gmon.out} file, be sure to move it to a safe location.
Configuring with @samp{--enable-profiling} arranges for @value{GDBN} to be
compiled with the @samp{-pg} compiler option.
+@kindex maint set dwarf2 max-cache-age
+@kindex maint show dwarf2 max-cache-age
+@item maint set dwarf2 max-cache-age
+@itemx maint show dwarf2 max-cache-age
+Control the DWARF 2 compilation unit cache.
+
+In object files with inter-compilation-unit references, such as those
+produced by the GCC option @samp{-feliminate-dwarf2-dups}, the DWARF 2
+reader needs to frequently refer to previously read compilation units.
+This setting controls how long a compilation unit will remain in the cache
+if it is not referenced. Setting it to zero disables caching, which will
+slow down @value{GDBN} startup but reduce memory consumption.
+
@end table