Skip to content

Commit

Permalink
std.debug: add module lookup function prototype for uefi
Browse files Browse the repository at this point in the history
  • Loading branch information
RossComputerGuy committed Feb 8, 2025
1 parent c51587b commit 31ebae5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/std/debug/SelfInfo.zig
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ pub fn getModuleForAddress(self: *SelfInfo, address: usize) !*Module {
return self.lookupModuleWin32(address);
} else if (native_os == .haiku) {
return self.lookupModuleHaiku(address);
} else if (native_os == .uefi) {
return self.lookupModuleUefi(address);
} else if (builtin.target.isWasm()) {
return self.lookupModuleWasm(address);
} else {
Expand Down Expand Up @@ -494,6 +496,12 @@ fn lookupModuleHaiku(self: *SelfInfo, address: usize) !*Module {
@panic("TODO implement lookup module for Haiku");
}

fn lookupModuleUefi(self: *SelfInfo, address: usize) !*Module {
_ = self;
_ = address;
@panic("TODO implement lookup module for UEFI");
}

fn lookupModuleWasm(self: *SelfInfo, address: usize) !*Module {
_ = self;
_ = address;
Expand Down

0 comments on commit 31ebae5

Please sign in to comment.