From 3084c8320e6441823db359c48a5168c9a6891f67 Mon Sep 17 00:00:00 2001 From: devans Date: Tue, 26 May 2009 21:24:06 +0000 Subject: [PATCH] * dwarf2read.c (follow_die_ref): Add comment. (dwarf2_mark_helper): Tweak comment. (dwarf2_mark): Move description to its proper place. --- gdb/ChangeLog | 6 ++++++ gdb/dwarf2read.c | 13 +++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 70951eac57..f2c897ec19 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-05-26 Doug Evans + + * dwarf2read.c (follow_die_ref): Add comment. + (dwarf2_mark_helper): Tweak comment. + (dwarf2_mark): Move description to its proper place. + 2009-05-25 Pierre Muller * procfs.c (procfs_wait): Add options parameter. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index bcfbb1b691..a6f2741e6f 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -9577,6 +9577,10 @@ maybe_queue_comp_unit (struct dwarf2_cu *this_cu, queue_comp_unit (per_cu, this_cu->objfile); } +/* Follow reference attribute ATTR of SRC_DIE. + On entry *REF_CU is the CU of SRC_DIE. + On exit *REF_CU is the CU of the result. */ + static struct die_info * follow_die_ref (struct die_info *src_die, struct attribute *attr, struct dwarf2_cu **ref_cu) @@ -10830,9 +10834,6 @@ get_die_type (struct die_info *die, struct dwarf2_cu *cu) return NULL; } -/* Set the mark field in CU and in every other compilation unit in the - cache that we must keep because we are keeping CU. */ - /* Add a dependence relationship from CU to REF_PER_CU. */ static void @@ -10853,7 +10854,8 @@ dwarf2_add_dependence (struct dwarf2_cu *cu, *slot = ref_per_cu; } -/* Set the mark field in CU and in every other compilation unit in the +/* Subroutine of dwarf2_mark to pass to htab_traverse. + Set the mark field in every compilation unit in the cache that we must keep because we are keeping CU. */ static int @@ -10872,6 +10874,9 @@ dwarf2_mark_helper (void **slot, void *data) return 1; } +/* Set the mark field in CU and in every other compilation unit in the + cache that we must keep because we are keeping CU. */ + static void dwarf2_mark (struct dwarf2_cu *cu) { -- 2.11.0