* dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after

function comment.
	(dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
	(create_cus_from_index, create_addrmap_from_index): Ditto.
	(mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
	(dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
	(dw2_do_expand_symtabs_matching): Ditto.
This commit is contained in:
Doug Evans
2010-10-05 02:56:36 +00:00
parent e2be17a6d9
commit 2fdf6df643
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,13 @@
2010-10-04 Doug Evans <dje@google.com>
* dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
function comment.
(dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
(create_cus_from_index, create_addrmap_from_index): Ditto.
(mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
(dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
(dw2_do_expand_symtabs_matching): Ditto.
2010-10-04 Joel Brobecker <brobecker@adacore.com> 2010-10-04 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c: #include "value.h". * ada-lang.c: #include "value.h".

View File

@ -1638,6 +1638,7 @@ dwarf2_get_section_info (struct objfile *objfile, const char *section_name,
/* Read in the symbols for PER_CU. OBJFILE is the objfile from which /* Read in the symbols for PER_CU. OBJFILE is the objfile from which
this CU came. */ this CU came. */
static void static void
dw2_do_instantiate_symtab (struct objfile *objfile, dw2_do_instantiate_symtab (struct objfile *objfile,
struct dwarf2_per_cu_data *per_cu) struct dwarf2_per_cu_data *per_cu)
@ -1665,6 +1666,7 @@ dw2_do_instantiate_symtab (struct objfile *objfile,
/* Ensure that the symbols for PER_CU have been read in. OBJFILE is /* Ensure that the symbols for PER_CU have been read in. OBJFILE is
the objfile from which this CU came. Returns the resulting symbol the objfile from which this CU came. Returns the resulting symbol
table. */ table. */
static struct symtab * static struct symtab *
dw2_instantiate_symtab (struct objfile *objfile, dw2_instantiate_symtab (struct objfile *objfile,
struct dwarf2_per_cu_data *per_cu) struct dwarf2_per_cu_data *per_cu)
@ -1680,6 +1682,7 @@ dw2_instantiate_symtab (struct objfile *objfile,
} }
/* Return the CU given its index. */ /* Return the CU given its index. */
static struct dwarf2_per_cu_data * static struct dwarf2_per_cu_data *
dw2_get_cu (int index) dw2_get_cu (int index)
{ {
@ -1694,6 +1697,7 @@ dw2_get_cu (int index)
/* A helper function that knows how to read a 64-bit value in a way /* A helper function that knows how to read a 64-bit value in a way
that doesn't make gdb die. Returns 1 if the conversion went ok, 0 that doesn't make gdb die. Returns 1 if the conversion went ok, 0
otherwise. */ otherwise. */
static int static int
extract_cu_value (const char *bytes, ULONGEST *result) extract_cu_value (const char *bytes, ULONGEST *result)
{ {
@ -1716,6 +1720,7 @@ extract_cu_value (const char *bytes, ULONGEST *result)
/* Read the CU list from the mapped index, and use it to create all /* Read the CU list from the mapped index, and use it to create all
the CU objects for this objfile. Return 0 if something went wrong, the CU objects for this objfile. Return 0 if something went wrong,
1 if everything went ok. */ 1 if everything went ok. */
static int static int
create_cus_from_index (struct objfile *objfile, const gdb_byte *cu_list, create_cus_from_index (struct objfile *objfile, const gdb_byte *cu_list,
offset_type cu_list_elements) offset_type cu_list_elements)
@ -1806,6 +1811,7 @@ create_signatured_type_table_from_index (struct objfile *objfile,
/* Read the address map data from the mapped index, and use it to /* Read the address map data from the mapped index, and use it to
populate the objfile's psymtabs_addrmap. */ populate the objfile's psymtabs_addrmap. */
static void static void
create_addrmap_from_index (struct objfile *objfile, struct mapped_index *index) create_addrmap_from_index (struct objfile *objfile, struct mapped_index *index)
{ {
@ -1848,6 +1854,7 @@ create_addrmap_from_index (struct objfile *objfile, struct mapped_index *index)
maintain control over the implementation. This is necessary maintain control over the implementation. This is necessary
because the hash function is tied to the format of the mapped index because the hash function is tied to the format of the mapped index
file. */ file. */
static hashval_t static hashval_t
mapped_index_string_hash (const void *p) mapped_index_string_hash (const void *p)
{ {
@ -1864,6 +1871,7 @@ mapped_index_string_hash (const void *p)
/* Find a slot in the mapped index INDEX for the object named NAME. /* Find a slot in the mapped index INDEX for the object named NAME.
If NAME is found, set *VEC_OUT to point to the CU vector in the If NAME is found, set *VEC_OUT to point to the CU vector in the
constant pool and return 1. If NAME cannot be found, return 0. */ constant pool and return 1. If NAME cannot be found, return 0. */
static int static int
find_slot_in_mapped_hash (struct mapped_index *index, const char *name, find_slot_in_mapped_hash (struct mapped_index *index, const char *name,
offset_type **vec_out) offset_type **vec_out)
@ -1896,6 +1904,7 @@ find_slot_in_mapped_hash (struct mapped_index *index, const char *name,
/* Read the index file. If everything went ok, initialize the "quick" /* Read the index file. If everything went ok, initialize the "quick"
elements of all the CUs and return 1. Otherwise, return 0. */ elements of all the CUs and return 1. Otherwise, return 0. */
static int static int
dwarf2_read_index (struct objfile *objfile) dwarf2_read_index (struct objfile *objfile)
{ {
@ -1977,6 +1986,7 @@ dwarf2_read_index (struct objfile *objfile)
/* A helper for the "quick" functions which sets the global /* A helper for the "quick" functions which sets the global
dwarf2_per_objfile according to OBJFILE. */ dwarf2_per_objfile according to OBJFILE. */
static void static void
dw2_setup (struct objfile *objfile) dw2_setup (struct objfile *objfile)
{ {
@ -1986,6 +1996,7 @@ dw2_setup (struct objfile *objfile)
/* A helper for the "quick" functions which attempts to read the line /* A helper for the "quick" functions which attempts to read the line
table for THIS_CU. */ table for THIS_CU. */
static void static void
dw2_require_line_header (struct objfile *objfile, dw2_require_line_header (struct objfile *objfile,
struct dwarf2_per_cu_data *this_cu) struct dwarf2_per_cu_data *this_cu)
@ -2072,6 +2083,7 @@ dw2_require_line_header (struct objfile *objfile,
real path for a given file name from the line table. real path for a given file name from the line table.
dw2_require_line_header must have been called before this is dw2_require_line_header must have been called before this is
invoked. */ invoked. */
static const char * static const char *
dw2_require_full_path (struct objfile *objfile, dw2_require_full_path (struct objfile *objfile,
struct dwarf2_per_cu_data *per_cu, struct dwarf2_per_cu_data *per_cu,
@ -2210,6 +2222,7 @@ dw2_lookup_symbol (struct objfile *objfile, int block_index,
/* A helper function that expands all symtabs that hold an object /* A helper function that expands all symtabs that hold an object
named NAME. */ named NAME. */
static void static void
dw2_do_expand_symtabs_matching (struct objfile *objfile, const char *name) dw2_do_expand_symtabs_matching (struct objfile *objfile, const char *name)
{ {