* dwarf2read.c (load_partial_dies): Change condition to assert.
authorDoug Evans <dje@google.com>
Sat, 7 Apr 2012 19:35:17 +0000 (19:35 +0000)
committerDoug Evans <dje@google.com>
Sat, 7 Apr 2012 19:35:17 +0000 (19:35 +0000)
gdb/ChangeLog
gdb/dwarf2read.c

index 897fe88..481ea23 100644 (file)
@@ -1,3 +1,7 @@
+2012-04-07  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (load_partial_dies): Change condition to assert.
+
 2012-04-06  Doug Evans  <dje@google.com>
 
        * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
index 4b49484..9ec3d8e 100644 (file)
@@ -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