From 380bca9753e8dbdf31754e2f135b6e7a9c81bfd2 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 18 Apr 2012 06:21:09 +0000 Subject: [PATCH] * dwarf2read.c: Whitespace fixes. (lookup_signatured_type): Tweak comment. (get_die_type_at_offset): Fix comment. --- gdb/ChangeLog | 6 ++++++ gdb/dwarf2read.c | 9 +++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0da4042..93aca70 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-04-17 Doug Evans + + * dwarf2read.c: Whitespace fixes. + (lookup_signatured_type): Tweak comment. + (get_die_type_at_offset): Fix comment. + 2012-04-17 Joel Brobecker * xcoffread.c (xcoff_secnum_to_sections): New function. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index eec52fb..47c36c3 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -3350,7 +3350,7 @@ create_all_type_units (struct objfile *objfile) return 1; } -/* Lookup a signature based type. +/* Lookup a signature based type for DW_FORM_ref_sig8. Returns NULL if signature SIG is not present in the table. */ static struct signatured_type * @@ -6600,6 +6600,7 @@ dwarf2_ranges_read (unsigned offset, CORE_ADDR *low_return, /* Get low and high pc attributes from a die. Return 1 if the attributes are present and valid, otherwise, return 0. Return -1 if the range is discontinuous, i.e. derived from DW_AT_ranges information. */ + static int dwarf2_get_pc_bounds (struct die_info *die, CORE_ADDR *lowpc, CORE_ADDR *highpc, struct dwarf2_cu *cu, @@ -6757,6 +6758,7 @@ get_scope_pc_bounds (struct die_info *die, /* Record the address ranges for BLOCK, offset by BASEADDR, as given in DIE. */ + static void dwarf2_record_block_ranges (struct die_info *die, struct block *block, CORE_ADDR baseaddr, struct dwarf2_cu *cu) @@ -15670,6 +15672,7 @@ dwarf_decode_macros (struct line_header *lh, unsigned int offset, /* Check if the attribute's form is a DW_FORM_block* if so return true else false. */ + static int attr_form_is_block (struct attribute *attr) { @@ -15689,6 +15692,7 @@ attr_form_is_block (struct attribute *attr) may have a value that belongs to more than one of these classes; it would be ambiguous if we did, because we use the same forms for all of them. */ + static int attr_form_is_section_offset (struct attribute *attr) { @@ -15710,6 +15714,7 @@ attr_form_is_section_offset (struct attribute *attr) that, if an attribute's can be either a constant or one of the section offset classes, DW_FORM_data4 and DW_FORM_data8 should be taken as section offsets, not constants. */ + static int attr_form_is_constant (struct attribute *attr) { @@ -16231,7 +16236,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) return type; } -/* Look up the type for the die at DIE_OFFSET in the appropriate type_hash +/* Look up the type for the die at OFFSET in the appropriate type_hash table, or return NULL if the die does not have a saved type. */ static struct type * -- 2.7.4