You are not logged in.

#1 2017-11-29 10:54:09

buovjaga
Member
Registered: 2016-04-16
Posts: 17

Debugging with GDB: unwind-pe.h: No such file or directory

I am trying to debug a failing LibreOffice unit test (I am in the QA team). First there was trouble with libstdc++ not finding stuff, but I worked around it by stripping symbols with sudo strip /usr/lib/libstdc++.so.6

Now I was stepping ahead in GDB, when I finally hit this:

Single stepping until exit from function _ZNSt6localeC2EPKc,
which has no line number information.
read_uleb128 (val=<optimized out>, p=<optimized out>)
    at /build/gcc/src/gcc/libgcc/unwind-pe.h:137
137     /build/gcc/src/gcc/libgcc/unwind-pe.h: No such file or directory.

Any idea how I could solve this problem? I have an up-to-date system, gcc 7.2.0, gdb 8.0.1.

Offline

#2 2017-11-30 11:00:47

buovjaga
Member
Registered: 2016-04-16
Posts: 17

Re: Debugging with GDB: unwind-pe.h: No such file or directory

I worked around it by downloading the source of gcc 7.2.0 and using this command in gdb:
set substitute-path /build/gcc/src/gcc/libgcc/unwind-pe.h /home/user/gcc-gcc-7_2_0-release/libgcc/unwind-pe.h

Would still be interesting to know, if there is a non-hacky way of solving this.

Offline

Board footer

Powered by FluxBB