aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-01-28 04:02:52 +0000
committerJim Blandy <jimb@codesourcery.com>2004-01-28 04:02:52 +0000
commit086ed43dbdd81f1dfbbfd3b8d77ee42e6e56afff (patch)
tree5126085e7135b2e976059d3afb661c95682861c7 /gdb
parenta355c7de35096f1abdcb632f75f4354842f57e45 (diff)
downloadgdb-086ed43dbdd81f1dfbbfd3b8d77ee42e6e56afff.zip
gdb-086ed43dbdd81f1dfbbfd3b8d77ee42e6e56afff.tar.gz
gdb-086ed43dbdd81f1dfbbfd3b8d77ee42e6e56afff.tar.bz2
Clean up misapplied patch:
* dwarf2read.c (determine_prefix): Change one of the two forward declarations for 'determine_prefix_aux' to a declaration for this. (read_func_scope): Use cu->language, not cu_language. Pass 'cu' argument to 'die_specification'.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/dwarf2read.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3fa492d..c939ebf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2004-01-27 Jim Blandy <jimb@redhat.com>
+
+ Clean up misapplied patch:
+ * dwarf2read.c (determine_prefix): Change one of the two forward
+ declarations for 'determine_prefix_aux' to a declaration for this.
+ (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
+ argument to 'die_specification'.
+
2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
* breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 0991aae..94d210c 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -765,7 +765,7 @@ static struct type *tag_type_to_type (struct die_info *, struct dwarf2_cu *);
static void read_type_die (struct die_info *, struct dwarf2_cu *);
-static char *determine_prefix_aux (struct die_info *die, struct dwarf2_cu *);
+static char *determine_prefix (struct die_info *die, struct dwarf2_cu *);
static char *determine_prefix_aux (struct die_info *die, struct dwarf2_cu *);
@@ -2169,9 +2169,9 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu)
if (name == NULL || !dwarf2_get_pc_bounds (die, &lowpc, &highpc, cu))
return;
- if (cu_language == language_cplus)
+ if (cu->language == language_cplus)
{
- struct die_info *spec_die = die_specification (die);
+ struct die_info *spec_die = die_specification (die, cu);
/* NOTE: carlton/2004-01-23: We have to be careful in the
presence of DW_AT_specification. For example, with GCC