aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-03-13 13:30:42 +0000
committerPedro Alves <palves@redhat.com>2012-03-13 13:30:42 +0000
commit44f238bb633edb3694f64cb6d3b60c510b2fb714 (patch)
tree2ee05ab5b352806836dcec688cbe1eb51a0317ab /gdb/breakpoint.h
parent1e51243a97c3b50ae80b54b4d3d54720e36ba0dc (diff)
downloadgdb-44f238bb633edb3694f64cb6d3b60c510b2fb714.zip
gdb-44f238bb633edb3694f64cb6d3b60c510b2fb714.tar.gz
gdb-44f238bb633edb3694f64cb6d3b60c510b2fb714.tar.bz2
2012-03-13 Hui Zhu <teawater@gmail.com>
Pedro Alves <palves@redhat.com> * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle CREATE_BREAKPOINT_FLAGS_INSERTED. (create_breakpoint_sal, create_breakpoints_sal) (base_breakpoint_create_breakpoints_sal) (tracepoint_create_breakpoints_sal) (strace_marker_create_breakpoints_sal): New flags parameter. Pass down. (break_command_1, handle_gnu_v3_exceptions, trace_command) (ftrace_command, strace_command): Adjust. (create_tracepoint_from_upload): Pass CREATE_BREAKPOINT_FLAGS_INSERTED. * breakpoint.h (enum breakpoint_create_flags): New. (create_breakpoint): New flags parameter. * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust. * python/py-breakpoint.c (bppy_init): Adjust. * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust. * spu-tdep.c (spu_catch_start): Adjust.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index b92b72c..e0eeeaa 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -550,7 +550,7 @@ struct breakpoint_ops
struct linespec_sals *, 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,
@@ -1190,6 +1190,16 @@ extern void
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,
int parse_condition_and_thread,
@@ -1199,7 +1209,7 @@ extern int create_breakpoint (struct gdbarch *gdbarch, char *arg,
const struct breakpoint_ops *ops,
int from_tty,
int enabled,
- int internal);
+ int internal, unsigned flags);
extern void insert_breakpoints (void);