Skip to content

Conversation

@mykola-lysenko
Copy link
Contributor

Currently only supported for user-space crash dumps. E.g. no support
for live user-space application debugging of kernel debugging

Closes #144

Signed-off-by: Mykola Lysenko [email protected]

@mykola-lysenko mykola-lysenko marked this pull request as ready for review February 8, 2022 23:02
Copy link
Owner

@osandov osandov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this! The scaffolding all looks right here, but I commented on where we should be getting the main TID from.

@mykola-lysenko mykola-lysenko force-pushed the issue_144 branch 2 times, most recently from 04241e6 to 2d69fd9 Compare February 9, 2022 00:49
Copy link
Owner

@osandov osandov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more minor things, thanks!

Copy link
Owner

@osandov osandov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this all looks functionally correct, I just had a few final nitpicks.

Currently only supported for user-space crash dumps. E.g. no support for
live user-space application debugging or kernel debugging.

Closes osandov#144.

Signed-off-by: Mykola Lysenko <[email protected]>
Copy link
Owner

@osandov osandov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some copy editing, added some trivial Linux kernel test cases that assert that main_thread() raises an exception, and added a reference to main_thread() to the user guide. Once the test cases pass, I'll merge this. Thanks!

@mykola-lysenko
Copy link
Contributor Author

I did some copy editing, added some trivial Linux kernel test cases that assert that main_thread() raises an exception, and added a reference to main_thread() to the user guide. Once the test cases pass, I'll merge this. Thanks!

Thanks a lot @osandov for the review and all the guidance! I have learned a lot

@osandov osandov merged commit 7580fff into osandov:main Feb 10, 2022
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.

Add drgn.Program.main_thread()

2 participants