Caspar Schutijser <[email protected]> writes: > On Sunday, 12 June 2016 02:44:54 CEST, Jeremie Courreges-Anglas wrote: >> I bumped into this problem using gdb: >> >> (gdb) r >> Starting program: /usr/obj/pobj/surf-0.7/surf-0.7/surf www.google.fr >> symfile.c:973: internal-error: sect_index_text not initialized >> A problem internal to GDB has been detected, >> further debugging may prove unreliable. >> Quit this debugging session? (y or n) n >> >> The issue is that gdb assumes that it can find an entry point in >> a shared library, but libicudata.so doesn't have a .text section, only >> data. >> >> There are other SECT_OFF_TEXT assumptions in dwarf2read.c that >> prevent egdb from being useful on a shared lib built with debug symbols. >> But the patch below should at least help running egdb against all >> programs that link against libicudata.so. Tested against www/surf, >> www/vimb and sysutils/dwdiff. >> >> Comments / ok? > > FWIW, I ran into this problem a little while ago and with your patch > applied, the problem is gone. Thank you! >
Late to the party as usual, but FWIW I had the same issue debugging the tor-browser port yesterday and this patch made egdb work for me. Thanks a lot. > Best regards, > Caspar Schutijser Pax, -A -- http://haqistan.net/~attila | [email protected] | 0x62A729CF
