From 44f238bb633edb3694f64cb6d3b60c510b2fb714 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 13 Mar 2012 13:30:42 +0000 Subject: 2012-03-13 Hui Zhu Pedro Alves * 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. --- gdb/breakpoint.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'gdb/breakpoint.h') diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index b92b72ccf6a..e0eeeaa950e 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); -- cgit v1.2.1