summaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-04-03 12:07:25 -0700
committerDoug Evans <dje@google.com>2014-04-03 12:07:25 -0700
commitb0aeadb398e0cea7a7f0ff3e6fb20c9aea98453c (patch)
tree8bc94b66978294e6ae335670c412fbdd53bae947 /gdb/dwarf2read.c
parentb69c87280595b7ce4e956cb2a62278412f0722f7 (diff)
downloadbinutils-gdb-b0aeadb398e0cea7a7f0ff3e6fb20c9aea98453c.tar.gz
* dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
of stub_comp_unit_die, stub_comp_dir is non-NULL.
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 3e77cf8350d..103219c9416 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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.