Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error in CppCommon #92

Open
qqnzhyxxx opened this issue Dec 11, 2023 · 0 comments
Open

Build Error in CppCommon #92

qqnzhyxxx opened this issue Dec 11, 2023 · 0 comments

Comments

@qqnzhyxxx
Copy link

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);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant