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 287116 070e28f591b68baa2faf93c69b7f191ead4a6f02
parent 287115 5bcb60614d0149f744ead7dfc351f37358b5960b
child 287117 722fb8b4213bca2b78d8f50e0e397f7115022c2a
push id73062
push userjwatt@jwatt.org
push dateTue, 08 Mar 2016 01:56:46 +0000
treeherdermozilla-inbound@070e28f591b6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssparky
bugs1254128
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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