Skip to content

Conversation

@cfernald
Copy link
Collaborator

@cfernald cfernald commented Jan 8, 2026

Add refresh option to !findall command to reduce memory usage

Currently !findall will, starting from scratch, lookup system table, find the debug table configuration table, scan through all image, and try to load each symbol. This is fine for manual invocation but is not ideal for automated use as it results in a lot of memory use. This change creates a "refresh" option (!findall -r) that will re-use the system table and/or debug table pointer. It also cleans up some of the code for readability.

Automatically check for new images when breaking

This changes introduces a callback into the UefiExt for state transitions. Using this, it will track breaks that occur after a resume (not a step) and will automatically check the debug table for new images loaded since the last break. This commit makes it so !findall shouldn't need to be called automatically after the initial connection. This leverages the refresh option for find all to optimize memory use.

Update RUST environment to PATINA

Updates the RUST tag to PATINA to more accurately reflect the intended environment. Additionally adds the "Patina Debugger" tag check for future changes in Patina.

@cfernald cfernald force-pushed the auto_findall branch 2 times, most recently from 26ebf8d to 4c10be9 Compare January 14, 2026 23:25
Currently `!findall` will, starting from scratch, lookup system table, find
the debug table configuration table, scan through all image, and try to load
each symbol. This is fine for manual invocation but is not ideal for automated
use as it results in a lot of memory use. This change creates a "refresh"
option (`!findall -r`) that will re-use the system table and/or debug table
pointer. It also cleans up some of the code for readability.
This changes introduces a callback into the UefiExt for state transitions.
Using this, it will track breaks that occur after a resume (not a step)
and will automatically check the debug table for new images loaded since
the last break. This commit makes it so `!findall` shouldn't need to be
called automatically after the initial connection. This leverages the
refresh option for find all to optimize memory use.
Updates the RUST tag to PATINA to more accurately reflect the intended
environment. Additionally adds the "Patina Debugger" tag check for future
changes in Patina.
@cfernald cfernald merged commit 15c0afb into microsoft:main Jan 14, 2026
5 checks passed
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.

3 participants