mirror of
https://git.rtems.org/rtems-tools/
synced 2025-05-17 19:21:50 +08:00
rld-dwarf: Fix file::get_source
The file::get_source method was giving "unknown:-1" for valid addresses. This has been fixed.
This commit is contained in:
parent
85eb59e217
commit
0fe7902aee
@ -2167,12 +2167,11 @@ namespace rld
|
|||||||
r = cu.get_source (addr, line);
|
r = cu.get_source (addr, line);
|
||||||
if (r)
|
if (r)
|
||||||
{
|
{
|
||||||
if (match.valid () &&
|
if (!match.valid ())
|
||||||
(match.is_an_end_sequence () || !!line.is_an_end_sequence ()))
|
|
||||||
{
|
{
|
||||||
match = line;
|
match = line;
|
||||||
}
|
}
|
||||||
else
|
else if (match.is_an_end_sequence () || !line.is_an_end_sequence ())
|
||||||
{
|
{
|
||||||
match = line;
|
match = line;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user