mirror of
https://github.com/transistorfet/moa.git
synced 2024-12-11 13:50:46 +00:00
Re-add inspect code in debugger
This commit is contained in:
parent
6e154bdcba
commit
7930d9369b
@ -132,13 +132,13 @@ impl Debugger {
|
||||
if args.len() < 2 {
|
||||
println!("Usage: inspect <device_name> [<device specific arguments>]");
|
||||
} else {
|
||||
// let device = system.get_dyn_device(args[1])?;
|
||||
// let subargs = if args.len() > 2 { &args[2..] } else { &[""] };
|
||||
// device
|
||||
// .borrow_mut()
|
||||
// .as_inspectable()
|
||||
// .ok_or_else(|| Error::new("That device is not inspectable"))?
|
||||
// .inspect(system, subargs)?;
|
||||
let device = system.get_dyn_device_by_name(args[1])?;
|
||||
let subargs = if args.len() > 2 { &args[2..] } else { &[""] };
|
||||
device
|
||||
.borrow_mut()
|
||||
.as_inspectable()
|
||||
.ok_or_else(|| Error::new("That device is not inspectable"))?
|
||||
.inspect(system, subargs)?;
|
||||
}
|
||||
},
|
||||
"dis" | "disassemble" => {
|
||||
|
Loading…
Reference in New Issue
Block a user