aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-03-28 17:35:01 +0000
committerDoug Evans <dje@google.com>2013-03-28 17:35:01 +0000
commitca69b9e6ad8db3203eb42bbe4402b7a0b24dce7e (patch)
tree5b13e1c0498f20fb954cc352d2deb95e32fdeeaa
parenta9375afe328f7d180c1dcc5fa23ab9be2e014784 (diff)
downloadfsf-binutils-gdb-ca69b9e6ad8db3203eb42bbe4402b7a0b24dce7e.zip
fsf-binutils-gdb-ca69b9e6ad8db3203eb42bbe4402b7a0b24dce7e.tar.gz
fsf-binutils-gdb-ca69b9e6ad8db3203eb42bbe4402b7a0b24dce7e.tar.bz2
* dwarf2read.c (dwarf2_physname): Move declaration to better spot.
(compute_symtab_includes): Remove unnecessary forward declaration. (die_needs_namespace): Add comment marking group of functions for dwarf2 name computation.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 71e6170..1baa365 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2013-03-28 Doug Evans <dje@google.com>
+ * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
+ (compute_symtab_includes): Remove unnecessary forward declaration.
+ (die_needs_namespace): Add comment marking group of functions for
+ dwarf2 name computation.
+
* typeprint.c (_initialize_typeprint): Improve type help text.
* python/python.c (finish_python_initialization): Provide suggestion
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 4c24462..a23b579 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -1554,6 +1554,9 @@ static const char *dwarf2_full_name (const char *name,
struct die_info *die,
struct dwarf2_cu *cu);
+static const char *dwarf2_physname (const char *name, struct die_info *die,
+ struct dwarf2_cu *cu);
+
static struct die_info *dwarf2_extension (struct die_info *die,
struct dwarf2_cu **);
@@ -1765,9 +1768,6 @@ byte_swap (offset_type value)
/* The suffix for an index file. */
#define INDEX_SUFFIX ".gdb-index"
-static const char *dwarf2_physname (const char *name, struct die_info *die,
- struct dwarf2_cu *cu);
-
/* Try to locate the sections we need for DWARF 2 debugging
information and return true if we have enough to do something.
NAMES points to the dwarf2 section names, or is NULL if the standard
@@ -6867,8 +6867,6 @@ fixup_go_packaging (struct dwarf2_cu *cu)
}
}
-static void compute_symtab_includes (struct dwarf2_per_cu_data *per_cu);
-
/* Return the symtab for PER_CU. This works properly regardless of
whether we're using the index or psymtabs. */
@@ -7279,6 +7277,8 @@ process_die (struct die_info *die, struct dwarf2_cu *cu)
break;
}
}
+
+/* DWARF name computation. */
/* A helper function for dwarf2_compute_name which determines whether DIE
needs to have the name of the scope prepended to the name listed in the