NetBSD-Users archive

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

Re: Debugging Firefox



In article <20160330223837.GA1446@neva>,
Alexander Nasonov  <alnsn%yandex.ru@localhost> wrote:
>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).

Yes, that should help, but you are better off using gdb from current which
handles pie.

christos



Home | Main Index | Thread Index | Old Index