Skip to content

StackTrace returns next line of execution (with code) not the current #31

@SoLaRGit

Description

@SoLaRGit

call to following code can return several lines below actual line:
if (SymGetLineFromAddr64(this->m_hProcess, s.AddrPC.Offset, &(csEntry.offsetFromLine), &Line) != FALSE)

but if we try following before above code:

if (SymGetLineFromAddr64(this->m_hProcess, s.AddrPC.Offset - 1, &(csEntry.offsetFromLine), &Line) != FALSE)

We can get actual line of execution in stacktrace.
Only column offset (offsetFromLine) is incorrect, not sure how to fix that one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions