Now data-info-line command uses SB API instead of HandleCommand.
Details
Diff Detail
Event Timeline
packages/Python/lldbsuite/test/tools/lldb-mi/data/TestMiData.py | ||
---|---|---|
376 | Why are you changing the regexp here? '.' matches any character, so to match the literal . you need to escape it with a backslash. | |
tools/lldb-mi/MICmdCmdData.cpp | ||
28 | I don't think that comment is necessary. | |
1691 | @clayborg: Is there something better we could do instead of doing a linear search through all debug line entries? |
Returned accidentally removed backslashes in self.expect pattern, removed comment from:
#include <string> // For std::to_string.
tools/lldb-mi/MICmdCmdData.cpp | ||
---|---|---|
1691 | I think we can get rid of this by adding a new method to SBModule - ResolveSymbolContextsForFileSpec, which will use a method with the same from Module. |
packages/Python/lldbsuite/test/tools/lldb-mi/data/TestMiData.py | ||
---|---|---|
22 | It would be *awesome* if we could also convert this entire to a lit/FileCheck. Looks like all the tests in this file are basically skipped everywhere because it's so unreliable... |
packages/Python/lldbsuite/test/tools/lldb-mi/data/TestMiData.py | ||
---|---|---|
22 | It's problematic to convert data-info-line test to a lit one since we don't know addresses of a source lines. It means that we can't do this: |
packages/Python/lldbsuite/test/tools/lldb-mi/data/TestMiData.py | ||
---|---|---|
22 | I see. You are right, we can't change make one command input depend on previous output in a LIT-based test. But it looks like this is only needed for testing one form of the data-info-line command. We could extract everything else into a LIT-based test that runs on every platform and still greatly improve the test coverage. |
It would be good to convert to LIT as more tests as we can. I'll do this in one of a next patches. Let's continue with this one?
It would be *awesome* if we could also convert this entire to a lit/FileCheck. Looks like all the tests in this file are basically skipped everywhere because it's so unreliable...