aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-04-07 19:35:17 +0000
committerDoug Evans <dje@google.com>2012-04-07 19:35:17 +0000
commit7adf1e79ca95ceb29be120c0e8f72102b8ce960f (patch)
treef6fbf39da46dc4620a81b9570e0f9058a5fe3daf /gdb/dwarf2read.c
parentbe16f589256fd2323f3b8d76ba2b90083a3a2588 (diff)
downloadgdb-7adf1e79ca95ceb29be120c0e8f72102b8ce960f.zip
gdb-7adf1e79ca95ceb29be120c0e8f72102b8ce960f.tar.gz
gdb-7adf1e79ca95ceb29be120c0e8f72102b8ce960f.tar.bz2
* dwarf2read.c (load_partial_dies): Change condition to assert.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 4b49484..9ec3d8e 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -9522,7 +9522,8 @@ load_partial_dies (bfd *abfd, gdb_byte *buffer, gdb_byte *info_ptr,
parent_die = NULL;
last_die = NULL;
- if (cu->per_cu && cu->per_cu->load_all_dies)
+ gdb_assert (cu->per_cu != NULL);
+ if (cu->per_cu->load_all_dies)
load_all = 1;
cu->partial_dies