X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgdbserver%2Fmem-break.h;h=bb2aa039240429be32edf591e26be9ea6532c071;hb=d3ce09f5bf7a7e8f97c3f1c9888e886ee267c2f2;hp=c5cb20cf22a3bd85ce2e792318c2ef0a82fd591c;hpb=b9fd179153353a88a34dd97a03ee698376212d29;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbserver/mem-break.h b/gdb/gdbserver/mem-break.h index c5cb20cf22..bb2aa03924 100644 --- a/gdb/gdbserver/mem-break.h +++ b/gdb/gdbserver/mem-break.h @@ -1,6 +1,5 @@ /* Memory breakpoint interfaces for the remote server for GDB. - Copyright (C) 2002, 2005, 2007, 2008, 2009, 2010, 2011 - Free Software Foundation, Inc. + Copyright (C) 2002, 2005, 2007-2012 Free Software Foundation, Inc. Contributed by MontaVista Software. @@ -26,6 +25,11 @@ struct breakpoint; struct fast_tracepoint_jump; +/* Locate a breakpoint placed at address WHERE and return a pointer + to its structure. */ + +struct breakpoint *find_gdb_breakpoint_at (CORE_ADDR where); + /* Create a new GDB breakpoint at WHERE. Returns -1 if breakpoints are not supported on this target, 0 otherwise. */ @@ -40,6 +44,27 @@ int breakpoint_here (CORE_ADDR addr); int breakpoint_inserted_here (CORE_ADDR addr); +/* Clear all breakpoint conditions associated with this address. */ + +void clear_gdb_breakpoint_conditions (CORE_ADDR addr); + +/* Set target-side condition CONDITION to the breakpoint at ADDR. */ + +int add_breakpoint_condition (CORE_ADDR addr, char **condition); + +int add_breakpoint_commands (CORE_ADDR addr, char **commands, int persist); + +int any_persistent_commands (void); + +/* Evaluation condition (if any) at breakpoint BP. Return 1 if + true and 0 otherwise. */ + +int gdb_condition_true_at_breakpoint (CORE_ADDR where); + +int gdb_no_commands_at_breakpoint (CORE_ADDR where); + +void run_breakpoint_commands (CORE_ADDR where); + /* Returns TRUE if there's a GDB breakpoint set at ADDR. */ int gdb_breakpoint_here (CORE_ADDR where); @@ -137,6 +162,9 @@ struct fast_tracepoint_jump *set_fast_tracepoint_jump (CORE_ADDR where, unsigned char *insn, ULONGEST length); +/* Increment reference counter of JP. */ +void inc_ref_fast_tracepoint_jump (struct fast_tracepoint_jump *jp); + /* Delete fast tracepoint jump TODEL from our tables, and uninsert if from memory. */