chronoxor / CppServer

Ultra fast and low latency asynchronous socket server & client C++ library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
MIT License
1.4k stars 282 forks source link

Build Error in CppCommon #92

Open qqnzhyxxx opened 9 months ago

qqnzhyxxx commented 9 months ago

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);
    }