[Bug 35061] New: [lldb] python scripts contain duplicated copies of basic utilities

Bug ID 35061
Summary [lldb] python scripts contain duplicated copies of basic utilities
Product lldb
Version unspecified
Hardware PC
OS Windows NT
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter davide@freebsd.org
CC llvm-bugs@lists.llvm.org

Forked from the mailing list discussion. At least is_exe and which are repeated
many times (some of these  are symlinks).

[davide@cupiditate lldb]$ grep -R 'def is_exe' *
packages/Python/lldbsuite/test/dotest.py:def is_exe(fpath):
packages/Python/lldbsuite/test/lldbtest.py:def is_exe(fpath):
packages/Python/lldbsuite/test/benchmarks/disassembly/TestDisassembly.py:def
is_exe(fpath):
packages/Python/lldbsuite/test/lldbutil.py:def is_exe(fpath):
scripts/Xcode/build-llvm.py:def is_executable(path):
test/testcases/dotest.py:def is_exe(fpath):
test/testcases/lldbtest.py:def is_exe(fpath):
test/testcases/benchmarks/disassembly/TestDisassembly.py:def is_exe(fpath):
test/testcases/lldbutil.py:def is_exe(fpath):
utils/test/llvm-mc-shell.py:def is_exe(fpath):
utils/test/disasm.py:def is_exe(fpath):
utils/test/run-until-faulted.py:def is_exe(fpath):
utils/lui/lldbutil.py:def is_exe(fpath):
[davide@cupiditate lldb]$ grep -R 'def is_exe' * |wc -l
13

We should have a single implementation in utils/ and include it from
everywhere.