--- a/gdbtk/generic/gdbtk-bp.c +++ b/gdbtk/generic/gdbtk-bp.c @@ -530,16 +530,20 @@ gdb_set_bp (ClientData clientData, Tcl_I TRY_CATCH (e, RETURN_MASK_ALL) { - create_breakpoint (get_current_arch (), address, condition, thread, - NULL, - 0 /* condition and thread are valid */, - temp, - bp_breakpoint /* type wanted */, - ignore_count, - (pending ? AUTO_BOOLEAN_TRUE : AUTO_BOOLEAN_FALSE), - &bkpt_breakpoint_ops, - 0 /* from_tty */, - enabled, 0, 0); + struct create_breakpoint_s cb; + + create_breakpoint_init (&cb); + cb.gdbarch = get_current_arch (); + cb.arg = address; + cb.cond_string = condition; + cb.thread = thread; + cb.tempflag = temp; + cb.ignore_count = ignore_count; + cb.pending_break_support = pending ? AUTO_BOOLEAN_TRUE + : AUTO_BOOLEAN_FALSE; + cb.ops = &bkpt_breakpoint_ops; + cb.enabled = enabled; + create_breakpoint (&cb); } if (e.reason < 0)