Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifications for old lldb version. #3757

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

bernhardu
Copy link
Contributor

I received a failure with the new test alternate_thread_diversion when running below my Debian Bookworm system.
This not overly elegant modifications would make the test work with this old lldb version.

Another option would be to define a minimum lldb version and check this before running the tests?

bernhardu added 2 commits June 3, 2024 22:32
Older versions of lldb seem to have an issue with the `test_setup.lldb`
script, or at least the `process handle` commands.

Therefore the test hangs because the output
does not contain the `received signal: SIGKILL`.

lldb version 14.0.6
In old versions of lldb the output format of the `print` command was
different, it shows a value history identifier.

Therefore the output of `print get_value()` is not recognized
in the alternate_thread_diversion test and the test times out.

lldb version 14.0.6
'print' is an abbreviation for 'expression --'
(rr) print get_value()
(int) $0 = 1

lldb version 18.1.3
'print' is an abbreviation for 'dwim-print --'
(rr) print get_value()
(int) 1
@rocallahan
Copy link
Collaborator

This looks good to me. It's reasonably elegant :-)

@rocallahan rocallahan marked this pull request as ready for review June 4, 2024 07:23
@rocallahan rocallahan merged commit d971587 into rr-debugger:master Jun 4, 2024
5 checks passed
@bernhardu
Copy link
Contributor Author

Thank you.

@bernhardu bernhardu deleted the old-lldb branch June 4, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants