Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-10-29 03:19:04 +0000
committerEugene Tarassov2014-10-29 06:46:32 +0000
commit5a4361b2c60f64107e4c0d40725946d4e1f429f0 (patch)
treeb325d442698bfaf4d7ea95bccc9fd373902f8aac
parentfaaa1c8aca8e6b10ea808fd6badfbd707ae9695b (diff)
downloadorg.eclipse.tcf.agent-5a4361b2c60f64107e4c0d40725946d4e1f429f0.tar.gz
org.eclipse.tcf.agent-5a4361b2c60f64107e4c0d40725946d4e1f429f0.tar.xz
org.eclipse.tcf.agent-5a4361b2c60f64107e4c0d40725946d4e1f429f0.zip
TCF Agent: fixed assertion failure when split debug info is loaded, but related executable file is not available
-rw-r--r--agent/tcf/services/tcf_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/services/tcf_elf.c b/agent/tcf/services/tcf_elf.c
index 2b0279c3..e12e111f 100644
--- a/agent/tcf/services/tcf_elf.c
+++ b/agent/tcf/services/tcf_elf.c
@@ -1389,7 +1389,7 @@ UnitAddressRange * elf_find_unit(Context * ctx, ContextAddress addr_min, Context
link_addr_max = (ContextAddress)(offs_max - p->offset + pheader_address);
if (link_addr_min < pheader_address) link_addr_min = (ContextAddress)pheader_address;
if (link_addr_max >= pheader_address + pheader_file_size) link_addr_max = (ContextAddress)(pheader_address + pheader_file_size - 1);
- sec = find_section_by_offset(file, offs_min);
+ if (!file->debug_info_file) sec = find_section_by_offset(file, offs_min);
range = find_comp_unit_addr_range(get_dwarf_cache(debug), sec, link_addr_min, link_addr_max);
if (range != NULL && range_rt_addr != NULL) {
*range_rt_addr = (ContextAddress)(range->mAddr - pheader_address + p->offset - r->file_offs + r->addr);

Back to the top