--- nono/debugger/debugger.h 2026/04/29 17:05:16 1.1.1.9 +++ nono/debugger/debugger.h 2026/04/29 17:05:32 1.1.1.11 @@ -11,8 +11,8 @@ #pragma once #include "debugger_defs.h" +#include "bus.h" #include "monitor.h" -#include "saddr.h" #include "textscreen.h" #include "thread.h" #include @@ -145,7 +145,6 @@ class Debugger : public ThreadDevice CmdAct cmd_c(); CmdAct cmd_ct(); CmdAct cmd_d(); - CmdAct cmd_dt(); CmdAct cmd_D(); CmdAct cmd_disp(); CmdAct cmd_exhist(); @@ -154,7 +153,6 @@ class Debugger : public ThreadDevice CmdAct cmd_hr(); CmdAct cmd_L(); CmdAct cmd_m(); - CmdAct cmd_mt(); CmdAct cmd_mpu(); CmdAct cmd_M(); CmdAct cmd_minus(); @@ -175,10 +173,10 @@ class Debugger : public ThreadDevice DebuggerMD *ParseCPU(const std::string&) const; int AddBreakpoint(const breakpoint_t&, const std::string&); void RecalcInstMask(); - bool GetAddr(saddr_t *addr, bool); - CmdAct cmd_d_common(MemoryMode access_mode, MMULookupMode lookup_mode); + bool GetAddr(busaddr *addr, bool); + CmdAct cmd_d_common(busaddr access_mode); CmdAct cmd_hist_common(BranchHistory& hist); - CmdAct cmd_m_common(MemoryMode access_mode, MMULookupMode lookup_mode); + CmdAct cmd_m_common(busaddr access_mode); CmdAct cmd_n_common(bool); CmdAct cmd_s_common(bool); CmdAct cmd_so_common(bool); @@ -199,7 +197,7 @@ class Debugger : public ThreadDevice std::string HelpConvert(const std::string& msg); // モニタを更新して表示 - void ShowMonitor(Monitor& monitor); + void ShowMonitor(Monitor *monitor); // テキストスクリーンを表示 void ShowTextScreen(TextScreen& screen); @@ -234,8 +232,8 @@ class Debugger : public ThreadDevice int bi_inst_bytes {}; int bi_need_bytes {}; uint64 ct_timespan {}; - saddr_t d_last_addr {}; - saddr_t m_last_addr {}; + busaddr d_last_addr {}; + busaddr m_last_addr {}; StepType step_type {}; // ステップ実行種別 DebuggerMD *step_md {}; // ステップ実行中の CPU uint32 step_count {}; @@ -259,7 +257,7 @@ class Debugger : public ThreadDevice // ブレークポイントモニタ DECLARE_MONITOR_CALLBACK(MonitorUpdateBpoint); - Monitor bpoint_monitor { this }; + Monitor *bpoint_monitor {}; // 逆アセンブルとメモリダンプモニタ std::array, MAX_MEMDUMP_MONITOR>