On Thu, 28 Apr 2016, Gabriele Bulfon wrote:
Hi,
I need to use gdb against Firefox, to try and solve a problem around
spellchecking.
Through simple debug output I found the point where the code returns
"isMisspelled", but now I would like to start using gdb and follow the code
step by step. Never did this before :)
I built XStream Desktop firefox component with debug on, and now I can run a
gdb session on firefox.
With "list" I only get the code of the main app source.
Anyone out there has experience with gdb and large source trees?
I need to mark a breakpoint inside the firefox-44.0.2/extensions/spellcheck/src
cpp files, run firefox, open a page with an html editor and wait for gdb to
stop there, then stop into the code...
You would need to do something like
b functionname
where 'functionname' is the function that you hope to break on. If
the symbol is not currently defined (common when shared
libraries/modules are used), then you would need to respond to gdb's
question about a deferred breakpoint based on a future shared library
load. If you are luckly, the breakpoint will be hit after the Firefox
module is loaded and the function is finally encountered.
Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription:
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com