lttng: Handle unknown line numbers in addr2line output
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 5 May 2016 02:54:11 +0000 (22:54 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Mon, 9 May 2016 20:11:14 +0000 (16:11 -0400)
commit1da28b13e6d9d7d5dd4f7b83ae6bc765417c0189
treeb8124329c1079aadc0b8c2ca671e2f712e686fed
parente55bb5d9dd99efd10f99d2dec8298f44d20f0b0c
lttng: Handle unknown line numbers in addr2line output

addr2line can return "filename.c:?" when it knows a file name
but not its number. Do not attempt to parse "?" as a Long, you
will fail miserably.

Also change the odd/even flip to the start of the loop: the
presence of "continue" statements could skip that operation.

Change-Id: Ia685e91833c6c472decfd3fd21acf7ad70d1ae34
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/72118
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
lttng/org.eclipse.tracecompass.lttng2.ust.core/src/org/eclipse/tracecompass/internal/lttng2/ust/core/analysis/debuginfo/FileOffsetMapper.java
This page took 0.024344 seconds and 5 git commands to generate.