summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugcmd.h
diff options
context:
space:
mode:
author Jacob <bombzj@gmail.com>2020-06-22 07:28:21 +0800
committer GitHub <noreply@github.com>2020-06-21 19:28:21 -0400
commit669b0fd4754d895f9c7ab32ce19ce957001cdf5e (patch)
tree8362f6339e19d8a78f7a437a51c74df8c4f50c00 /src/emu/debug/debugcmd.h
parentec55387d2b251635a0ba8ca4460f13c60260bb1a (diff)
add saver to operate memory region (#6837)
* add debugger command saver for memory region * added debugger command loadr for memory region
Diffstat (limited to 'src/emu/debug/debugcmd.h')
-rw-r--r--src/emu/debug/debugcmd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/debug/debugcmd.h b/src/emu/debug/debugcmd.h
index a47378765ff..04f54a4d75d 100644
--- a/src/emu/debug/debugcmd.h
+++ b/src/emu/debug/debugcmd.h
@@ -34,6 +34,9 @@ public:
/* validates a parameter as a cpu and retrieves the given address space */
bool validate_cpu_space_parameter(const char *param, int spacenum, address_space *&result);
+ /* validates a parameter as a memory region name and retrieves the given region */
+ bool validate_memory_region_parameter(const std::string &param, memory_region *&result);
+
private:
struct global_entry
{
@@ -139,7 +142,9 @@ private:
void execute_stateload(int ref, const std::vector<std::string> &params);
void execute_rewind(int ref, const std::vector<std::string> &params);
void execute_save(int ref, const std::vector<std::string> &params);
+ void execute_saveregion(int ref, const std::vector<std::string> &params);
void execute_load(int ref, const std::vector<std::string> &params);
+ void execute_loadregion(int ref, const std::vector<std::string> &params);
void execute_dump(int ref, const std::vector<std::string> &params);
void execute_cheatinit(int ref, const std::vector<std::string> &params);
void execute_cheatnext(int ref, const std::vector<std::string> &params);