Bug 1254128 - Make the Mozilla .lldbinit use the full path for topsrcdir. r=sparky
authorJonathan Watt <jwatt@jwatt.org>
Tue, 01 Mar 2016 16:36:08 +0000
changeset 287526 070e28f591b68baa2faf93c69b7f191ead4a6f02
parent 287525 5bcb60614d0149f744ead7dfc351f37358b5960b
child 287527 722fb8b4213bca2b78d8f50e0e397f7115022c2a
push id19612
push usergwagner@mozilla.com
push dateWed, 09 Mar 2016 16:35:37 +0000
treeherderb2g-inbound@3e95b2a351a4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
Bug 1254128 - Make the Mozilla .lldbinit use the full path for topsrcdir. r=sparky MozReview-Commit-ID: wBrUd7qFy1
--- a/.lldbinit
+++ b/.lldbinit
@@ -4,17 +4,17 @@
 # For documentation on all of the commands and type summaries defined here
 # and in the accompanying Python scripts, see python/lldbutils/README.txt.
 # -----------------------------------------------------------------------------
 # Import the module that defines complex Gecko debugging commands.  This assumes
 # you are either running lldb from the top level source directory, the objdir,
 # or the dist/bin directory.  (.lldbinit files in the objdir and dist/bin set
 # topsrcdir appropriately.)
-script topsrcdir = topsrcdir if locals().has_key("topsrcdir") else "."; sys.path.append(os.path.join(topsrcdir, "python/lldbutils")); import lldbutils; lldbutils.init()
+script topsrcdir = topsrcdir if locals().has_key("topsrcdir") else os.getcwd(); sys.path.append(os.path.join(topsrcdir, "python/lldbutils")); import lldbutils; lldbutils.init()
 # Mozilla's use of UNIFIED_SOURCES to include multiple source files into a
 # single compiled file breaks lldb breakpoint setting. This works around that.
 # See http://lldb.llvm.org/troubleshooting.html for more info.
 settings set target.inline-breakpoint-strategy always
 # Show the dynamic type of an object when using "expr".  This, for example,
 # will show a variable declared as "nsIFrame *" that points to an nsBlockFrame