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 314222 070e28f591b68baa2faf93c69b7f191ead4a6f02
parent 314221 5bcb60614d0149f744ead7dfc351f37358b5960b
child 314223 722fb8b4213bca2b78d8f50e0e397f7115022c2a
push idunknown
push userunknown
push dateunknown
reviewerssparky
bugs1254128
milestone47.0a1
Bug 1254128 - Make the Mozilla .lldbinit use the full path for topsrcdir. r=sparky MozReview-Commit-ID: wBrUd7qFy1
.lldbinit
--- 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