simulator: Implement Simulator.dumpFiles to easily inspect the in-memory file system's state

This commit is contained in:
2026-05-23 17:13:39 +02:00
parent c2c7a3ac83
commit f50f17f1e0
3 changed files with 30 additions and 0 deletions
+6
View File
@@ -77,6 +77,12 @@ pub fn scheduleOne(self: *Simulator) bool {
return self.scheduler.scheduleOne();
}
pub fn dumpFiles(self: *Simulator) void {
for (self.nodes.items) |node| {
node.dumpFiles();
}
}
// Reads the first word of a command
// "program arg1 arg2 arg3" -> "program"
fn extractProgramNameFromCommand(command: []const u8) ?[]const u8 {