From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13757 invoked by alias); 26 May 2009 21:25:10 -0000 Received: (qmail 13743 invoked by uid 22791); 26 May 2009 21:25:08 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 May 2009 21:25:02 +0000 Received: from spaceape10.eur.corp.google.com (spaceape10.eur.corp.google.com [172.28.16.144]) by smtp-out.google.com with ESMTP id n4QLOxnC019040 for ; Tue, 26 May 2009 14:25:00 -0700 Received: from localhost (ruffy.mtv.corp.google.com [172.18.118.116]) by spaceape10.eur.corp.google.com with ESMTP id n4QLOw9p019580 for ; Tue, 26 May 2009 14:24:58 -0700 Received: by localhost (Postfix, from userid 67641) id 84236846C2; Tue, 26 May 2009 14:24:57 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [obv] minor comment cleanups in dwarf2read.c Message-Id: <20090526212457.84236846C2@localhost> Date: Tue, 26 May 2009 21:25:00 -0000 From: dje@google.com (Doug Evans) X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00577.txt.bz2 Hi. Checked in as obvious. 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. Index: dwarf2read.c =================================================================== RCS file: /cvs/src/src/gdb/dwarf2read.c,v retrieving revision 1.304 diff -u -p -r1.304 dwarf2read.c --- dwarf2read.c 21 May 2009 07:57:45 -0000 1.304 +++ dwarf2read.c 26 May 2009 21:21:05 -0000 @@ -9577,6 +9577,10 @@ maybe_queue_comp_unit (struct dwarf2_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, stru 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 *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 *d 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) {