1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/.lldbinit Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +# .lldbinit file for debugging Mozilla 1.5 + 1.6 +# ----------------------------------------------------------------------------- 1.7 +# For documentation on all of the commands and type summaries defined here 1.8 +# and in the accompanying Python scripts, see python/lldbutils/README.txt. 1.9 +# ----------------------------------------------------------------------------- 1.10 + 1.11 +# Import the module that defines complex Gecko debugging commands. This assumes 1.12 +# you are either running lldb from the top level source directory, the objdir, 1.13 +# or the dist/bin directory. (.lldbinit files in the objdir and dist/bin set 1.14 +# topsrcdir appropriately.) 1.15 +script topsrcdir = topsrcdir if locals().has_key("topsrcdir") else "."; sys.path.append(os.path.join(topsrcdir, "python/lldbutils")); import lldbutils; lldbutils.init() 1.16 + 1.17 +# Mozilla's use of UNIFIED_SOURCES to include multiple source files into a 1.18 +# single compiled file breaks lldb breakpoint setting. This works around that. 1.19 +# See http://lldb.llvm.org/troubleshooting.html for more info. 1.20 +settings set target.inline-breakpoint-strategy always 1.21 + 1.22 +# Show the dynamic type of an object when using "expr". This, for example, 1.23 +# will show a variable declared as "nsIFrame *" that points to an nsBlockFrame 1.24 +# object as being of type "nsBlockFrame *" rather than "nsIFrame *". 1.25 +settings set target.prefer-dynamic-value run-target 1.26 + 1.27 +# Show the string value in atoms. 1.28 +type summary add nsIAtom --summary-string "${var.mString}" 1.29 + 1.30 +# Show the value of text nodes. 1.31 +type summary add nsTextNode --summary-string "${var.mText}" 1.32 + 1.33 +# Dump the current JS stack. 1.34 +command alias js expr DumpJSStack()