summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenan Le Padellec2012-10-09 03:19:07 (EDT)
committer Eugene Tarassov2012-10-09 12:52:54 (EDT)
commit9757ebd8f87fc87ed52dd0c21ac85d0ed122c621 (patch)
treefadfeab638a9072d5e095452081ed925adffc87f
parent919707a9a2c4c3fa16a136a90a5a65861b6cb973 (diff)
downloadorg.eclipse.tcf.agent-9757ebd8f87fc87ed52dd0c21ac85d0ed122c621.zip
org.eclipse.tcf.agent-9757ebd8f87fc87ed52dd0c21ac85d0ed122c621.tar.gz
org.eclipse.tcf.agent-9757ebd8f87fc87ed52dd0c21ac85d0ed122c621.tar.bz2
Bug 391392 - Fix address computation of next code area
-rw-r--r--agent/tcf/services/linenumbers_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/services/linenumbers_elf.c b/agent/tcf/services/linenumbers_elf.c
index a7ace9d..0767a7f 100644
--- a/agent/tcf/services/linenumbers_elf.c
+++ b/agent/tcf/services/linenumbers_elf.c
@@ -160,7 +160,7 @@ static void call_client(CompUnit * unit, LineNumbersState * state,
area.file_size = file_info->mSize;
area.start_address = state_addr;
area.end_address = code_next->mAddress - state->mAddress + state_addr;
- if (text_next != NULL) area.next_address = text_next->mAddress;
+ if (text_next != NULL) area.next_address = text_next->mAddress - state->mAddress + state_addr;
area.isa = state->mISA;
area.is_statement = (state->mFlags & LINE_IsStmt) != 0;
area.basic_block = (state->mFlags & LINE_BasicBlock) != 0;