Skip to content

Build Error in CppCommon #92

Open
Open
@qqnzhyxxx

Description

@qqnzhyxxx

In modules\CppCommon\source\system\stack_trace.cpp (line 162-179)

Right Code ;
for (asection* section = abfd->sections; section != nullptr; section = section->next)
{
if (found)
break;

        if ((bfd_get_section_flags(abfd, section) & SEC_ALLOC) == 0)
            continue;

        bfd_vma vma = bfd_section_vma(abfd, section);
        if (pc < vma)
            continue;

        bfd_size_type secsize = bfd_section_size(abfd, section);
        if (pc >= vma + secsize)
            continue;

        found = bfd_find_nearest_line(abfd, section, syms, pc - vma, &filename, &functionname, &line);
    }

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