- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 762
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
Fix searching when connected to qemu-system
instance
#906
Conversation
I noticed that the code for detecting if we're in a qemu/qemu-system context already exists, so I've removed my duplicated code. The code added is mainly just invoking and parsing |
Because of a typo ( |
69f1653
to
a5b62eb
Compare
As a side note, it looks like the search command buffers the output til completion. Having it print as items are discovered (or at least having that as an option) would help when the search takes a long time (i.e. traversing the large memory space of the kernel) |
Looks good, a few comments, and I'll have to figure out how to test it.
Yes, good call. Go ahead and file a ticket if you don't mind. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to submit my review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just more nitpicking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another great PR @clubby789 , again some small stuff to fix.
BTW you should be able to merge the latest changes from Cheers! |
Tests look okay locally and on Ubuntu 20, probably random failure? |
It can happen, I just relaunched the tests. |
@clubby789 |
360e3b9
to
e58e615
Compare
Description/Motivation/Screenshots
Fixes #905
Detects when we're connected to a QEMU kernel instance, and uses
monitor info mem
to retrieve the real kernel memory mappings for searching within.Against which architecture was this tested ?
"Tested" indicates that the PR works and the unit test (see
docs/testing.md
) run passes without issue.Checklist
dev
branch, notmain
.I will add tests shortly, just leaving this initial draft.