Currently spawnLldbMi accepts both lldb-mi options and executable to debug as a single parameter. Split them.
As in the next patch we will need to execute one lldb-mi command before loading the exe. Therefore we can no longer use the exe as lldb-mi command-line parameter as then there is no way to execute a command before loading exe specified as lldb-mi command-line parameter.
LocateExecutableSymbolFileDsym should be static, that is also a little refactorization.
Details
Details
- Reviewers
labath - Group Reviewers
Restricted Project - Commits
- rG9a33a15766e1: refactor testsuite spawnLldbMi args->exe+args
rLLDB349607: refactor testsuite spawnLldbMi args->exe+args
rL349607: refactor testsuite spawnLldbMi args->exe+args
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
packages/Python/lldbsuite/test/tools/lldb-mi/lldbmi_testcase.py | ||
---|---|---|
53 ↗ | (On Diff #178796) | Shouldn't you also expect the ^done response here or something similar? |
Comment Actions
Thanks for the review!
packages/Python/lldbsuite/test/tools/lldb-mi/lldbmi_testcase.py | ||
---|---|---|
53 ↗ | (On Diff #178796) | This would break compatibility with previous behavior of this function, see my test_lldbmi_specialchars comment below. |
packages/Python/lldbsuite/test/tools/lldb-mi/syntax/TestMiSyntax.py | ||
63 ↗ | (On Diff #178796) | Here you can see just by passing complicated_myexe as spawnLldbMi parameter the code still expects to be able to match the -file-exec-and-symbols command. |
Comment Actions
I have put there a comment:
self.runCmd("-file-exec-and-symbols \"%s\"" % exe) + # Testcases expect to be able to match output of this command, + # see test_lldbmi_specialchars.