gdb_assert (inferior == -1 || inferior > 0);
gdb_assert (thread == -1 || inferior == -1);
+ /* If PARSE_EXTRA is true then the thread and inferior details will be
+ parsed from the EXTRA_STRING, the THREAD and INFERIOR arguments
+ should be -1. */
+ gdb_assert (!parse_extra || thread == -1);
+ gdb_assert (!parse_extra || inferior == -1);
+
gdb_assert (ops != NULL);
/* If extra_string isn't useful, set it to NULL. */
the FORCE_CONDITION parameter is ignored and the corresponding argument
is parsed from EXTRA_STRING.
+ The THREAD should be a global thread number, the created breakpoint will
+ only apply for that thread. If the breakpoint should apply for all
+ threads then pass -1. However, if PARSE_EXTRA is non-zero then the
+ THREAD parameter is ignored and an optional thread number will be parsed
+ from EXTRA_STRING.
+
+ The INFERIOR should be a global inferior number, the created breakpoint
+ will only apply for that inferior. If the breakpoint should apply for
+ all inferiors then pass -1. However, if PARSE_EXTRA is non-zero then
+ the INFERIOR parameter is ignored and an optional inferior number will
+ be parsed from EXTRA_STRING.
+
+ At most one of THREAD and INFERIOR should be set to a value other than
+ -1; breakpoints can be thread specific, or inferior specific, but not
+ both.
+
If INTERNAL is non-zero, the breakpoint number will be allocated
from the internal breakpoint count.