aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-break.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-09-26 23:53:53 +0000
committerYao Qi <yao@codesourcery.com>2012-09-26 23:53:53 +0000
commit19ca11c580c52654a537a0967ad28c0aff723d9b (patch)
tree88d17681084a5609645dc72e9b26389a08fe8d2a /gdb/mi/mi-cmd-break.c
parent9210735600dd82ece7bb84bc48d4a73167a6cef2 (diff)
downloadgdb-19ca11c580c52654a537a0967ad28c0aff723d9b.zip
gdb-19ca11c580c52654a537a0967ad28c0aff723d9b.tar.gz
gdb-19ca11c580c52654a537a0967ad28c0aff723d9b.tar.bz2
gdb/
PR breakpoints/13898 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration. * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops per breakpoint type.
Diffstat (limited to 'gdb/mi/mi-cmd-break.c')
-rw-r--r--gdb/mi/mi-cmd-break.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c
index 5a64bf1..2fe84dc 100644
--- a/gdb/mi/mi-cmd-break.c
+++ b/gdb/mi/mi-cmd-break.c
@@ -76,6 +76,7 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
int tracepoint = 0;
struct cleanup *back_to;
enum bptype type_wanted;
+ struct breakpoint_ops *ops;
enum opt
{
@@ -162,6 +163,7 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
type_wanted = (tracepoint
? (hardware ? bp_fast_tracepoint : bp_tracepoint)
: (hardware ? bp_hardware_breakpoint : bp_breakpoint));
+ ops = tracepoint ? &tracepoint_breakpoint_ops : &bkpt_breakpoint_ops;
create_breakpoint (get_current_arch (), address, condition, thread,
NULL,
@@ -169,7 +171,7 @@ mi_cmd_break_insert (char *command, char **argv, int argc)
temp_p, type_wanted,
ignore_count,
pending ? AUTO_BOOLEAN_TRUE : AUTO_BOOLEAN_FALSE,
- &bkpt_breakpoint_ops, 0, enabled, 0, 0);
+ ops, 0, enabled, 0, 0);
do_cleanups (back_to);
}