mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1923502 - Fix JS GDB Loading r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D224998
This commit is contained in:
parent
a07c8ba5b2
commit
ac55ef7b7d
@ -14,8 +14,8 @@ from os.path import abspath, dirname
|
||||
import gdb
|
||||
|
||||
devel_objdir = abspath(os.path.join(dirname(__file__), "..", ".."))
|
||||
m = re.search(r"[\w ]+: (.*)", gdb.execute("show dir", False, True))
|
||||
m = re.search(r"[\w ]+: (.*)", gdb.execute("show directories", False, True))
|
||||
if m and devel_objdir not in m.group(1).split(":"):
|
||||
gdb.execute("set dir {}:{}".format(devel_objdir, m.group(1)))
|
||||
gdb.execute("set directories {}:{}".format(devel_objdir, m.group(1)))
|
||||
|
||||
gdb.execute("source -s build/.gdbinit.loader")
|
||||
|
Loading…
Reference in New Issue
Block a user