NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Debugging Firefox



Andreas Gustafsson wrote:
> Hi all,
> 
> I'm trying to run Firefox under gdb on NetBSD 7.0/amd64, but I'm not
> having much luck.
> 
> I found a set of instructions at
> 
>   https://wiki.netbsd.org/tutorials/pkgsrc/debugging_firefox/
> 
> but when I follow them, gdb behaves stranegly, like being unable to
> set a breakpoint in main(), and getting SIGTRAPs seemingly at random:
> 
>   $ /usr/pkgsrc/www/firefox/work/build/dist/bin $ ./run-mozilla.sh -g ./firefox
>   [...]
>   (gdb) break main
>   Breakpoint 1 at 0x11be0: file /usr/pkgsrc/www/firefox/work/firefox-45.0.1/browser/app/nsBrowserApp.cpp, line 287.
>   (gdb) run
>   Starting program: /usr/pkgsrc/www/firefox/work/build/dist/bin/firefox 
>   Error in re-setting breakpoint 1: Cannot access memory at address 0x11be0
>   Error in re-setting breakpoint 1: Cannot access memory at address 0x11be0

I don't know if it will help but try building without -pie (--disable-pie).

Alex


Home | Main Index | Thread Index | Old Index