Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # .lldbinit file for debugging Mozilla |
michael@0 | 2 | |
michael@0 | 3 | # ----------------------------------------------------------------------------- |
michael@0 | 4 | # For documentation on all of the commands and type summaries defined here |
michael@0 | 5 | # and in the accompanying Python scripts, see python/lldbutils/README.txt. |
michael@0 | 6 | # ----------------------------------------------------------------------------- |
michael@0 | 7 | |
michael@0 | 8 | # Import the module that defines complex Gecko debugging commands. This assumes |
michael@0 | 9 | # you are either running lldb from the top level source directory, the objdir, |
michael@0 | 10 | # or the dist/bin directory. (.lldbinit files in the objdir and dist/bin set |
michael@0 | 11 | # topsrcdir appropriately.) |
michael@0 | 12 | script topsrcdir = topsrcdir if locals().has_key("topsrcdir") else "."; sys.path.append(os.path.join(topsrcdir, "python/lldbutils")); import lldbutils; lldbutils.init() |
michael@0 | 13 | |
michael@0 | 14 | # Mozilla's use of UNIFIED_SOURCES to include multiple source files into a |
michael@0 | 15 | # single compiled file breaks lldb breakpoint setting. This works around that. |
michael@0 | 16 | # See http://lldb.llvm.org/troubleshooting.html for more info. |
michael@0 | 17 | settings set target.inline-breakpoint-strategy always |
michael@0 | 18 | |
michael@0 | 19 | # Show the dynamic type of an object when using "expr". This, for example, |
michael@0 | 20 | # will show a variable declared as "nsIFrame *" that points to an nsBlockFrame |
michael@0 | 21 | # object as being of type "nsBlockFrame *" rather than "nsIFrame *". |
michael@0 | 22 | settings set target.prefer-dynamic-value run-target |
michael@0 | 23 | |
michael@0 | 24 | # Show the string value in atoms. |
michael@0 | 25 | type summary add nsIAtom --summary-string "${var.mString}" |
michael@0 | 26 | |
michael@0 | 27 | # Show the value of text nodes. |
michael@0 | 28 | type summary add nsTextNode --summary-string "${var.mText}" |
michael@0 | 29 | |
michael@0 | 30 | # Dump the current JS stack. |
michael@0 | 31 | command alias js expr DumpJSStack() |