* dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
authorDoug Evans <dje@google.com>
Thu, 3 Apr 2014 19:07:25 +0000 (12:07 -0700)
committerDoug Evans <dje@google.com>
Thu, 3 Apr 2014 19:07:25 +0000 (12:07 -0700)
of stub_comp_unit_die, stub_comp_dir is non-NULL.

gdb/ChangeLog
gdb/dwarf2read.c

index b9539403fc92f7f66e5eded91b5c81447d10567e..ea3d9763a6ecf869b48e7cd819e814275cdabae5 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-03  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
+       of stub_comp_unit_die, stub_comp_dir is non-NULL.
+
 2014-04-02  Alan Modra  <amodra@gmail.com>
 
        * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
index 3e77cf8350db17cccd57e5c29c847fdda3084899..103219c941683aebab9b922a86fecd2bfb0d283b 100644 (file)
@@ -4977,8 +4977,8 @@ read_cutu_die_from_dwo (struct dwarf2_per_cu_data *this_cu,
   struct attribute *attr;
   struct die_info *comp_unit_die;
 
-  /* Exactly one of these must be provided.  */
-  gdb_assert ((stub_comp_unit_die != NULL) + (stub_comp_dir != NULL) == 1);
+  /* At most one of these may be provided.  */
+  gdb_assert ((stub_comp_unit_die != NULL) + (stub_comp_dir != NULL) <= 1);
 
   /* These attributes aren't processed until later:
      DW_AT_stmt_list, DW_AT_low_pc, DW_AT_high_pc, DW_AT_ranges.
This page took 0.034828 seconds and 4 git commands to generate.