mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: Allow conditional breakpoints
git-svn-id: svn://ultimatepp.org/upp/trunk@2975 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
58e7b05bae
commit
4cac6b88d8
2 changed files with 5 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue