Slow symbol resolution in gdb 7.6 with C++

Sysprogs forums Forums VisualGDB Slow symbol resolution in gdb 7.6 with C++

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #911
    ikonst
    Participant

    Hey,

    Did anyone else notice *VERY* slow (> 30s) global symbol resolution when debugging with gdb 7.6 from NDK r10?

    e.g. “print some_global_func” takes > 30 seconds to complete, but only from within certain stack frames which are within a class member function. It seems to try to resolve it as a class member in some very inefficient way.

    Further proof:
    print ::some_global_func -> INSTANTANEOUS
    print this->some_global_func –> PAINFULLY SLOW (>30 s)

    Did someone try building GDB with this patch? It looks promising:
    https://sourceware.org/bugzilla/show_bug.cgi?id=15519

    If not, how easy is it to build GDB for Windows? Are there many Android patches that I should apply so it’ll play nice with Android’s weird libc/linker etc.?

    Thanks,
    Ilya

    #3388
    support
    Keymaster

    Hi,

    We did test this specific patch. Last time we built the Android GDB was around NDK 8 and the build process was fairly straight-forward using a MinGW/MSYS environment. Please feel free to give it a try and if you encounter strange problems, feel free to post here so that we can try to help you.

    #3389
    ikonst
    Participant
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.