From 09314f260becbee2ec69323d37d55b53783fa855 Mon Sep 17 00:00:00 2001 From: iaz1607 Date: Tue, 1 Aug 2023 21:40:04 +0300 Subject: Fix gdb shell --- library/python/cores/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'library/python') diff --git a/library/python/cores/__init__.py b/library/python/cores/__init__.py index f8c54b8fd33..7197a40553c 100644 --- a/library/python/cores/__init__.py +++ b/library/python/cores/__init__.py @@ -125,6 +125,8 @@ def recover_core_dump_file(binary_path, cwd, pid, core_pattern=None): def get_gdb_full_backtrace(binary, core, gdb_path): + # XXX ya tool gdb uses shell script as wrapper so we need directory with shell binary in PATH + os.environ["PATH"] = os.pathsep.join(filter(None, [os.environ.get("PATH"), "/bin"])) cmd = [ gdb_path, binary, core, "--eval-command", "set print thread-events off", -- cgit v1.3