mirror of
https://git.rtems.org/rtems-tools/
synced 2025-05-17 05:02:24 +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);
|
||||
if (r)
|
||||
{
|
||||
if (match.valid () &&
|
||||
(match.is_an_end_sequence () || !!line.is_an_end_sequence ()))
|
||||
if (!match.valid ())
|
||||
{
|
||||
match = line;
|
||||
}
|
||||
else
|
||||
else if (match.is_an_end_sequence () || !line.is_an_end_sequence ())
|
||||
{
|
||||
match = line;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user