tbreak

Set a temporary breakpoint.

tbreak [LOCATION] [thread THREADNUM] [if CONDITION]

Like “break” except the breakpoint is only temporary, so it will be deleted when hit.

Equivalent to “break” followed by using “enable delete” on the breakpoint number.

  • LOCATION – may be a line number, function name, or “*” and an address.
    • If a line number is specified, break at start of code for that line.
    • If a function is specified, break at start of code for that function.
    • If an address is specified, break at that exact address.

    See “help break” for a full description of what “LOCATION” stands for.

  • THREADNUM is the number from “info threads”.

  • CONDITION is a boolean expression.

Multiple breakpoints at one place are permitted, and useful if their conditions are different.

Do “help breakpoints” for info on other commands dealing with breakpoints.