Commit 23115bf4 authored by Sebastien Granjoux's avatar Sebastien Granjoux

gdb: Support faster pending breakpoints, handled by gdb

parent 7d5cfe48
......@@ -4361,7 +4361,8 @@ interface IAnjutaDebugger
WITH_IGNORE = 1 << 15,
WITH_TIME = 1 << 11,
WITH_CONDITION = 1 << 12,
WITH_TEMPORARY = 1 << 13
WITH_TEMPORARY = 1 << 13,
WITH_PENDING = 1 << 14,
}
struct Item
......@@ -4377,6 +4378,7 @@ interface IAnjutaDebugger
guint times;
gchar *condition;
gboolean temporary;
gboolean pending;
}
enum Method
......
......@@ -180,6 +180,10 @@ breakpoint_item_update_from_debugger (BreakpointItem *bi, const IAnjutaDebuggerB
{
bi->bp.temporary = bp->temporary;
}
if (bp->type & IANJUTA_DEBUGGER_BREAKPOINT_WITH_PENDING)
{
bi->bp.pending = bp->pending;
}
if ((bp->type & IANJUTA_DEBUGGER_BREAKPOINT_WITH_ENABLE) &&
!(bi->changed & IANJUTA_DEBUGGER_BREAKPOINT_WITH_ENABLE))
{
......@@ -448,6 +452,10 @@ breakpoints_dbase_update_in_treeview (BreakpointsDBase *bd, BreakpointItem *bi)
{
format = "temporary (%d)";
}
else if (bi->bp.pending)
{
format = "pending (%d)";
}
else
{
format = "permanent (%d)";
......
This diff is collapsed.
......@@ -51,11 +51,18 @@ typedef void (*DebuggerParserFunc) (Debugger *debugger,
const GList *cli_result,
GError* error);
typedef enum
{
DEBUGGER_COMMAND_NO_ERROR = 1 << 0,
DEBUGGER_COMMAND_KEEP_RESULT = 1 << 1,
DEBUGGER_COMMAND_PREPEND = 1 << 2,
} DebuggerCommandFlags;
struct _DebuggerCommand
{
gchar *cmd;
gboolean suppress_error;
gboolean keep_result;
DebuggerCommandFlags flags;
DebuggerParserFunc parser;
IAnjutaDebuggerCallback callback;
gpointer user_data;
......
......@@ -9,5 +9,4 @@ set height 0
set width 0
set breakpoint pending on
set backtrace limit 0
set stop-on-solib-events 1
handle SIGINT stop print nopass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment