Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 5b2fa6c

Browse files
committed
fix on spawn_console_at_addr()
1 parent 476c493 commit 5b2fa6c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ impl Emu {
9797
self.emu.cfg.reg_names.clear();
9898
}
9999

100+
/// inspect sequence
101+
fn inspect_seq(&mut self, s:&str) {
102+
self.emu.cfg.inspect = true;
103+
self.emu.cfg.inspect_seq = s.to_string();
104+
}
105+
100106
/// address to api name
101107
fn api_addr_to_name(&mut self, addr:u64) -> String {
102108
return self.emu.api_addr_to_name(addr);
@@ -133,6 +139,7 @@ impl Emu {
133139
fn spawn_console_at_addr(&mut self, addr:u64) {
134140
self.emu.cfg.console2 = true;
135141
self.emu.cfg.console_addr = addr;
142+
self.emu.cfg.console_enabled = true;
136143
}
137144

138145
/// disable the console spawning.

0 commit comments

Comments
 (0)