aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2017-02-22 00:13:03 +0100
committerJan Kratochvil <jan.kratochvil@redhat.com>2017-02-22 00:13:03 +0100
commit58fdfd2c4a0d2a68c3c3cbe3a83a0386526a2b72 (patch)
treed80ca6243728a1ccb98ab707564a84c3653892ac
parent6528b6eba85f044667876a2ad77d4612a9e5fc65 (diff)
downloadgdb-58fdfd2c4a0d2a68c3c3cbe3a83a0386526a2b72.zip
gdb-58fdfd2c4a0d2a68c3c3cbe3a83a0386526a2b72.tar.gz
gdb-58fdfd2c4a0d2a68c3c3cbe3a83a0386526a2b72.tar.bz2
Fix a regression by: Code cleanup: Split dwarf2_ranges_read to a callback
On some Fedora 23 systems an internal error has been printed. gdb/ChangeLog 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/dwarf2read.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1e0e50e..3ac5170 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
+
2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
* common/enum-flags.h (enum_flags::enum_flags): Initialize
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 8a6e1f3..9654fa5 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -12577,6 +12577,8 @@ dwarf2_record_block_ranges (struct die_info *die, struct block *block,
dwarf2_ranges_process (offset, cu,
[&] (CORE_ADDR start, CORE_ADDR end)
{
+ start += baseaddr;
+ end += baseaddr;
start = gdbarch_adjust_dwarf2_addr (gdbarch, start);
end = gdbarch_adjust_dwarf2_addr (gdbarch, end);
record_block_range (block, start, end - 1);