aboutsummaryrefslogtreecommitdiff
path: root/gold/gdb-index.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-04-09 23:32:20 +0000
committerCary Coutant <ccoutant@google.com>2012-04-09 23:32:20 +0000
commit6782735d48b8b61e844861020f96e9c71cc45258 (patch)
tree4eb8ed6ddfc36c1d670704e15359b9dc1a90297f /gold/gdb-index.cc
parenta7aa5b8aef96aee20b1d0bd46c93a8d6f210d72f (diff)
downloadgdb-6782735d48b8b61e844861020f96e9c71cc45258.zip
gdb-6782735d48b8b61e844861020f96e9c71cc45258.tar.gz
gdb-6782735d48b8b61e844861020f96e9c71cc45258.tar.bz2
* gdb-index.cc (Gdb_index_info_reader::record_cu_ranges): Allow
low_pc == 0.
Diffstat (limited to 'gold/gdb-index.cc')
-rw-r--r--gold/gdb-index.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/gdb-index.cc b/gold/gdb-index.cc
index 11b732a..16e3871 100644
--- a/gold/gdb-index.cc
+++ b/gold/gdb-index.cc
@@ -825,7 +825,7 @@ Gdb_index_info_reader::record_cu_ranges(Dwarf_die* die)
off_t low_pc = die->ref_attribute(elfcpp::DW_AT_low_pc, &shndx);
off_t high_pc = die->ref_attribute(elfcpp::DW_AT_high_pc, &shndx2);
- if (low_pc != 0 && high_pc != 0 && low_pc != -1 && high_pc != -1)
+ if ((low_pc != 0 || high_pc != 0) && low_pc != -1 && high_pc != -1)
{
if (shndx != shndx2)
{