From a52cf5339f7f308ed2c0ac7cb9f08c8747a65ea8 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Tue, 1 Mar 2016 16:36:08 +0000 Subject: [PATCH] Bug 1254128 - Make the Mozilla .lldbinit use the full path for topsrcdir. r=sparky MozReview-Commit-ID: wBrUd7qFy1 --- .lldbinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.lldbinit b/.lldbinit index b5cc7e7f11a4..5284f42ac72d 100644 --- a/.lldbinit +++ b/.lldbinit @@ -9,7 +9,7 @@ # 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.