.lldbinit 1.6 KB

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