@@ -265,35 +265,35 @@ class SimpleDebugger : public SST::InteractiveConsole
265265 std::vector<std::string> name_stack;
266266
267267 SST::Core::Serialization::ObjectMap* obj_ = nullptr;
268- bool done = false;
268+ bool done = false;
269269 int retState = -1; // -1 DONE, -2 SUMAMRY, positive number is threadID
270270
271- bool autoCompleteEnable = true;
271+ static bool autoCompleteEnable; //skk = true;
272272
273273 // gdb/lldb thread spin support
274274 uint64_t spinner = 1;
275275
276276 // logging support
277- std::ofstream loggingFile;
278- std::ifstream replayFile;
279- std::string loggingFilePath = " sst-console.out" ;
280- std::string replayFilePath = " sst-console.in" ;
281- bool enLogging = false;
277+ static std::ofstream loggingFile;
278+ static std::ifstream replayFile;
279+ static std::string loggingFilePath; //skk = " sst-console.out" ;
280+ static std::string replayFilePath; //skk = " sst-console.in" ;
281+ static bool enLogging; //skk = false;
282282
283283 // command injection (for sst --replay option)
284- std::stringstream injectedCommand;
284+ static std::stringstream injectedCommand;
285285
286286 // execution state management for nested user commands
287- ExecState eState = {};
288- std::stack<ExecState> eStack = {};
287+ static ExecState eState; //skk = {};
288+ static std::stack<ExecState> eStack; //skk = {};
289289
290290 // Keep a pointer to the ObjectMap for the top level Component
291291 SST::Core::Serialization::ObjectMapDeferred<BaseComponent>* base_comp_ = nullptr;
292292
293293 // Keep track of all the WatchPoints
294294 std::vector<std::pair<WatchPoint*, BaseComponent*>> watch_points_;
295295 bool clear_watchlist();
296- bool confirm = true; // Ask for confirmation to clear watchlist
296+ static bool confirm; //skk = true; // Ask for confirmation to clear watchlist
297297
298298 std::vector<std::string> tokenize(std::vector<std::string>& tokens, const std::string& input);
299299
@@ -353,17 +353,17 @@ class SimpleDebugger : public SST::InteractiveConsole
353353 void dispatch_cmd(std::string& cmd);
354354
355355 // Command Registry
356- CommandRegistry cmdRegistry;
356+ static CommandRegistry cmdRegistry;
357357
358358 // Command History
359- CommandHistoryBuffer cmdHistoryBuf;
359+ static CommandHistoryBuffer cmdHistoryBuf;
360360
361361 // Command Line Editor
362- CmdLineEditor cmdLineEditor;
363- LINE_ENTRY_MODE line_entry_mode = LINE_ENTRY_MODE::NORMAL;
362+ static CmdLineEditor cmdLineEditor;
363+ static LINE_ENTRY_MODE line_entry_mode; //skk = LINE_ENTRY_MODE::NORMAL;
364364
365365 // Verbosity controlled console printing
366- uint32_t verbosity = 0;
366+ static uint32_t verbosity; //skk = 0;
367367 void msg(VERBOSITY_MASK mask, std::string message);
368368};
369369
0 commit comments