Skip to content

Conversation

@mkeeter
Copy link
Contributor

@mkeeter mkeeter commented Aug 25, 2025

Previously, humility map would work in two configurations:

  • If there was no debugger present
  • If the debugger was connected to a system running the same image as the archive

This is annoying, so I'm fixing it: a command can now specify CommandKind::Unattached { archive: Archive::Required } to run with an ArchiveCore.

@mkeeter mkeeter force-pushed the mkeeter/humility-map branch from 9fa56bd to 17d26ff Compare August 25, 2025 16:43
@mkeeter
Copy link
Contributor Author

mkeeter commented Aug 25, 2025

CI fix: this adds humility: attached to dump messages to a bunch of unit tests, which isn't a big deal.

Comment on lines +101 to +108
CommandKind::Unattached { archive } => {
if let Some(h) = &context.archive
&& context.core.is_none()
&& *archive == Archive::Required
{
// we'll try both `attach_dump` and `attach_archive` for maximum
// flexibility; they're allowed to fail, in which case the
// `core` will be left as `None`.
Copy link
Contributor

Choose a reason for hiding this comment

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

it feels a little strange to have have Archive::Required but it is still allowed to fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the semantics here are awkward. Archive::Required means you must pass in a Humility archive, but does not mean that that archive must be attachable as an in-memory core. In practice, I don't think there are any cases where it can't be attached; I'll add some debug logging to warn if that happens.

@mkeeter mkeeter force-pushed the mkeeter/humility-map branch from c71f8b2 to 2c67016 Compare September 2, 2025 15:37
@mkeeter mkeeter enabled auto-merge (squash) September 2, 2025 15:38
@mkeeter mkeeter merged commit c41c962 into master Sep 2, 2025
11 checks passed
@mkeeter mkeeter deleted the mkeeter/humility-map branch September 18, 2025 15:02
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