bp_fast_tracepoint,
bp_static_tracepoint,
+ /* A dynamic printf stops at the given location, does a formatted
+ print, then automatically continues. (Although this is sort of
+ like a macro packaging up standard breakpoint functionality,
+ GDB doesn't have a way to construct types of breakpoint from
+ elements of behavior.) */
+ bp_dprintf,
+
/* Event for JIT compiled code generation or deletion. */
bp_jit_event,
processor's architectual constraints. */
CORE_ADDR requested_address;
+ /* An additional address assigned with this location. This is currently
+ only used by STT_GNU_IFUNC resolver breakpoints to hold the address
+ of the resolver function. */
+ CORE_ADDR related_address;
+
+ /* If the location comes from a probe point, this is the probe associated
+ with it. */
+ struct probe *probe;
+
char *function_name;
/* Details of the placed breakpoint, when inserted. */
void (*create_breakpoints_sal) (struct gdbarch *,
struct linespec_result *,
struct linespec_sals *, char *,
+ char *,
enum bptype, enum bpdisp, int, int,
int, const struct breakpoint_ops *,
- int, int, int);
+ int, int, int, unsigned);
/* Given the address string (second parameter), this method decodes it
and provides the SAL locations related to it. For ordinary breakpoints,
watch_triggered_yes
};
-/* This is used to declare the VEC syscalls_to_be_caught. */
-DEF_VEC_I(int);
-
typedef struct bp_location *bp_location_p;
DEF_VEC_P(bp_location_p);
/* String form of the breakpoint condition (malloc'd), or NULL if
there is no condition. */
char *cond_string;
- /* String form of exp to use for displaying to the user
- (malloc'd), or NULL if none. */
+
+ /* String form of extra parameters, or NULL if there are none. */
+ char *extra_string;
/* Holds the address of the related watchpoint_scope breakpoint
when using watchpoints on local variables (might the concept of
extern void breakpoint_auto_delete (bpstat);
+typedef void (*walk_bp_location_callback) (struct bp_location *, void *);
+
+extern void iterate_over_bp_locations (walk_bp_location_callback);
+
/* Return the chain of command lines to execute when this breakpoint
is hit. */
extern struct command_line *breakpoint_commands (struct breakpoint *b);
extern void install_breakpoint (int internal, struct breakpoint *b,
int update_gll);
+/* Flags that can be passed down to create_breakpoint, etc., to affect
+ breakpoint creation in several ways. */
+
+enum breakpoint_create_flags
+ {
+ /* We're adding a breakpoint to our tables that is already
+ inserted in the target. */
+ CREATE_BREAKPOINT_FLAGS_INSERTED = 1 << 0
+ };
+
extern int create_breakpoint (struct gdbarch *gdbarch, char *arg,
char *cond_string, int thread,
+ char *extra_string,
int parse_condition_and_thread,
int tempflag, enum bptype wanted_type,
int ignore_count,
const struct breakpoint_ops *ops,
int from_tty,
int enabled,
- int internal);
+ int internal, unsigned flags);
extern void insert_breakpoints (void);
extern void disable_breakpoints_in_shlibs (void);
/* This function returns TRUE if ep is a catchpoint. */
-extern int ep_is_catchpoint (struct breakpoint *);
+extern int is_catchpoint (struct breakpoint *);
/* Enable breakpoints and delete when hit. Called with ARG == NULL
deletes all breakpoints. */