aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-01-02 00:29:19 +0000
committerDoug Evans <dje@google.com>2012-01-02 00:29:19 +0000
commit2dc860c0ac0ac359574f9ca150566618bc222db0 (patch)
tree85ccd95b6080b4c31855e7715fccb610e102a233 /gdb/dwarf2read.c
parent68dc6402dcfed1d694572f8f20b4773c32c745a3 (diff)
downloadgdb-2dc860c0ac0ac359574f9ca150566618bc222db0.zip
gdb-2dc860c0ac0ac359574f9ca150566618bc222db0.tar.gz
gdb-2dc860c0ac0ac359574f9ca150566618bc222db0.tar.bz2
* dwarf2read.c (load_cu): Move assert to more useful location.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index b0c4dd0..359d8ac 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -1833,9 +1833,9 @@ load_cu (struct dwarf2_per_cu_data *per_cu)
else
load_full_comp_unit (per_cu, per_cu->objfile);
- dwarf2_find_base_address (per_cu->cu->dies, per_cu->cu);
-
gdb_assert (per_cu->cu != NULL);
+
+ dwarf2_find_base_address (per_cu->cu->dies, per_cu->cu);
}
/* Read in the symbols for PER_CU. OBJFILE is the objfile from which