+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>
* ada-lang.c: #include "value.h".
/* Read in the symbols for PER_CU. OBJFILE is the objfile from which
this CU came. */
+
static void
dw2_do_instantiate_symtab (struct objfile *objfile,
struct dwarf2_per_cu_data *per_cu)
/* Ensure that the symbols for PER_CU have been read in. OBJFILE is
the objfile from which this CU came. Returns the resulting symbol
table. */
+
static struct symtab *
dw2_instantiate_symtab (struct objfile *objfile,
struct dwarf2_per_cu_data *per_cu)
}
/* Return the CU given its index. */
+
static struct dwarf2_per_cu_data *
dw2_get_cu (int index)
{
/* 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
otherwise. */
+
static int
extract_cu_value (const char *bytes, ULONGEST *result)
{
/* 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,
1 if everything went ok. */
+
static int
create_cus_from_index (struct objfile *objfile, const gdb_byte *cu_list,
offset_type cu_list_elements)
/* Read the address map data from the mapped index, and use it to
populate the objfile's psymtabs_addrmap. */
+
static void
create_addrmap_from_index (struct objfile *objfile, struct mapped_index *index)
{
maintain control over the implementation. This is necessary
because the hash function is tied to the format of the mapped index
file. */
+
static hashval_t
mapped_index_string_hash (const void *p)
{
/* 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
constant pool and return 1. If NAME cannot be found, return 0. */
+
static int
find_slot_in_mapped_hash (struct mapped_index *index, const char *name,
offset_type **vec_out)
/* Read the index file. If everything went ok, initialize the "quick"
elements of all the CUs and return 1. Otherwise, return 0. */
+
static int
dwarf2_read_index (struct objfile *objfile)
{
/* A helper for the "quick" functions which sets the global
dwarf2_per_objfile according to OBJFILE. */
+
static void
dw2_setup (struct objfile *objfile)
{
/* A helper for the "quick" functions which attempts to read the line
table for THIS_CU. */
+
static void
dw2_require_line_header (struct objfile *objfile,
struct dwarf2_per_cu_data *this_cu)
real path for a given file name from the line table.
dw2_require_line_header must have been called before this is
invoked. */
+
static const char *
dw2_require_full_path (struct objfile *objfile,
struct dwarf2_per_cu_data *per_cu,
/* A helper function that expands all symtabs that hold an object
named NAME. */
+
static void
dw2_do_expand_symtabs_matching (struct objfile *objfile, const char *name)
{