Bug 1923502 - Fix JS GDB Loading r=sfink

Differential Revision: https://phabricator.services.mozilla.com/D224998
This commit is contained in:
Matthew Gaudet 2024-10-09 21:01:15 +00:00
parent a07c8ba5b2
commit ac55ef7b7d

View File

@ -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")