ide: Allow conditional breakpoints

git-svn-id: svn://ultimatepp.org/upp/trunk@2975 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
dolik 2011-01-08 16:57:03 +00:00
parent 58e7b05bae
commit 4cac6b88d8
2 changed files with 5 additions and 4 deletions

View file

@ -74,11 +74,12 @@ bool Gdb::SetBreakpoint(const String& filename, int line, const String& bp)
String bi = Bpoint(*host, filename, line);
if(bp.IsEmpty())
FastCmd("clear " + bi);
else
else if(bp[0]==0xe)
FastCmd("b " + bi);
else
FastCmd("b " + bi + " if " + bp);
return true;
}
void Gdb::SetDisas(const String& text)
{
disas.Clear();

View file

@ -481,8 +481,8 @@ void Ide::DebugMenu(Bar& menu)
}
menu.Add(!editfile.IsEmpty() /*&& !debuglock*/, AK_BREAKPOINT, THISBACK(DebugToggleBreak))
.Help("Set / clear breakpoint on current line");
// menu.Add(!editfile.IsEmpty(), AK_CONDBREAKPOINT, THISBACK(ConditionalBreak))
// .Help("Edit conditional breakpoint");
menu.Add(!editfile.IsEmpty(), AK_CONDBREAKPOINT, THISBACK(ConditionalBreak))
.Help("Edit conditional breakpoint");
menu.Add(!editfile.IsEmpty() /*&& !debuglock*/, AK_CLEARBREAKPOINTS, THISBACK(DebugClearBreakpoints))
.Help("Clear all breakpoints");
menu.Separator();