mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
luaengine: Back out part of unrelated WIP I didn't mean to commit (nw)
This commit is contained in:
parent
94c03c61ee
commit
1cdce11726
@ -1535,7 +1535,7 @@ void lua_engine::initialize()
|
||||
dev.single_step(steps);
|
||||
});
|
||||
device_debug_type.set("go", &device_debug::go);
|
||||
device_debug_type.set("bpset", [](device_debug &dev, offs_t addr) { return dev.breakpoint_set(addr); });
|
||||
device_debug_type.set("bpset", [](device_debug &dev, offs_t addr, const char *cond, const char *act) { return dev.breakpoint_set(addr, cond, act); });
|
||||
device_debug_type.set("bpclr", &device_debug::breakpoint_clear);
|
||||
device_debug_type.set("bplist", [this](device_debug &dev) {
|
||||
sol::table table = sol().create_table();
|
||||
@ -1550,13 +1550,13 @@ void lua_engine::initialize()
|
||||
}
|
||||
return table;
|
||||
});
|
||||
device_debug_type.set("wpset", [](device_debug &dev, addr_space &sp, const std::string &type, offs_t addr, offs_t len) {
|
||||
device_debug_type.set("wpset", [](device_debug &dev, addr_space &sp, const std::string &type, offs_t addr, offs_t len, const char *cond, const char *act) {
|
||||
read_or_write wptype = read_or_write::READ;
|
||||
if(type == "w")
|
||||
wptype = read_or_write::WRITE;
|
||||
else if((type == "rw") || (type == "wr"))
|
||||
wptype = read_or_write::READWRITE;
|
||||
return dev.watchpoint_set(sp.space, wptype, addr, len);
|
||||
return dev.watchpoint_set(sp.space, wptype, addr, len, cond, act);
|
||||
});
|
||||
device_debug_type.set("wpclr", &device_debug::watchpoint_clear);
|
||||
device_debug_type.set("wplist", [this](device_debug &dev, addr_space &sp) {
|
||||
|
Loading…
Reference in New Issue
Block a user