Gdb: All visible GDB controls are now cleared properly when debugger is relunched.

git-svn-id: svn://ultimatepp.org/upp/trunk@12048 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2018-07-05 21:15:37 +00:00
parent b31d220e53
commit d46d4476fc
2 changed files with 18 additions and 3 deletions

View file

@ -192,7 +192,9 @@ public:
void SwitchFrame();
void SwitchThread();
void ClearCtrls();
static void ReadGdbValues(CParser& p, VectorMap<String, String>& val);
static void ReadGdbValues(const String& h, VectorMap<String, String>& val);

View file

@ -299,8 +299,7 @@ String Gdb::DoRun()
IdeSetBar();
}
threads.Clear();
disas.Clear();
ClearCtrls();
String s;
for(;;) {
@ -438,6 +437,20 @@ void Gdb::SwitchThread()
Cmdp("thread " + AsString(i));
}
void Gdb::ClearCtrls()
{
threads.Clear();
disas.Clear();
locals.Clear();
watches.Clear();
autos.Clear();
self.Clear();
cpu.Clear();
tree.Clear();
}
bool Gdb::Key(dword key, int count)
{
if(key >= 32 && key < 65535 && tab.Get() == 2) {