LLDB-BreakPoint 原文

原文

Command

breakpoint -- Commands for operating on breakpoints (see 'help b' for shorthand.)

Action

Commands for operating on breakpoints (see 'help b' for shorthand.)

Syntax: breakpoint

The following subcommands are supported:

clear -- Delete or disable breakpoints matching the specified source
file and line.

command -- Commands for adding, removing and listing LLDB commands
executed when a breakpoint is hit.

delete -- Delete the specified breakpoint(s). If no breakpoints are
specified, delete them all.

disable -- Disable the specified breakpoint(s) without deleting them. If
none are specified, disable all breakpoints.

enable -- Enable the specified disabled breakpoint(s). If no breakpoints
are specified, enable all of them.

list -- List some or all breakpoints at configurable levels of detail.

modify -- Modify the options on a breakpoint or set of breakpoints in
the executable. If no breakpoint is specified, acts on the
last created breakpoint. With the exception of -e, -d and -i,
passing an empty argument clears the modification.

name -- Commands to manage name tags for breakpoints

read -- Read and set the breakpoints previously saved to a file with "breakpoint write".

set -- Sets a breakpoint or set of breakpoints in the executable.

write -- Write the breakpoints listed to a file that can be read in with "breakpoint read". If given no arguments, writes all breakpoints.

For more help on any particular subcommand, type 'help '.

option - set

Sets a breakpoint or set of breakpoints in the executable.

Syntax: breakpoint set 

Command Options Usage:
  breakpoint set [-DHd] -l  [-i ] [-o ] [-x ] [-t ] [-T ] [-q ] [-c ] [-G ] [-C ] [-s ] [-f ] [-K ] [-N ] [-R 
] [-m ] breakpoint set [-DHd] -a [-i ] [-o ] [-x ] [-t ] [-T ] [-q ] [-c ] [-G ] [-C ] [-s ] [-N ] breakpoint set [-DHd] -n [-i ] [-o ] [-x ] [-t ] [-T ] [-q ] [-c ] [-G ] [-C ] [-s ] [-f ] [-L ] [-K ] [-N ] [-R
] breakpoint set [-DHd] -F [-i ] [-o ] [-x ] [-t ] [-T ] [-q ] [-c ] [-G ] [-C ] [-s ] [-f ] [-L ] [-K ] [-N ] [-R
] breakpoint set [-DHd] -S [-i ] [-o ] [-x ] [-t ] [-T ] [-q ] [-c ] [-G ] [-C ] [-s ] [-f ] [-L ] [-K ] [-N ] [-R
] breakpoint set [-DHd] -M [-i ] [-o ] [-x ] [-t ] [-T ] [-q ] [-c ] [-G ] [-C ] [-s ] [-f ] [-L ] [-K ] [-N ] [-R
] breakpoint set [-DHd] -r [-i ] [-o ] [-x ] [-t ] [-T ] [-q ] [-c ] [-G ] [-C ] [-s ] [-f ] [-L ] [-K ] [-N ] [-R
] breakpoint set [-DHd] -b [-i ] [-o ] [-x ] [-t ] [-T ] [-q ] [-c ] [-G ] [-C ] [-s ] [-f ] [-L ] [-K ] [-N ] [-R
] breakpoint set [-ADHd] -p [-i ] [-o ] [-x ] [-t ] [-T ] [-q ] [-c ] [-G ] [-C ] [-s ] [-f ] [-X ] [-N ] [-m ] breakpoint set [-DHd] -E [-i ] [-o ] [-x ] [-t ] [-T ] [-q ] [-c ] [-G ] [-C ] [-w ] [-h ] [-O ] [-N ] -A ( --all-files ) All files are searched for source pattern matches. -C ( --command ) A command to run when the breakpoint is hit, can be provided more than once, the commands will get run in order left to right. -D ( --dummy-breakpoints ) Act on Dummy breakpoints - i.e. breakpoints set before a file is provided, which prime new targets. -E ( --language-exception ) Set the breakpoint on exceptions thrown by the specified language (without options, on throw but not catch.) -F ( --fullname ) Set the breakpoint by fully qualified function names. For C++ this means namespaces and all arguments, and for Objective C this means a full function prototype with class and selector. Can be repeated multiple times to make one breakpoint for multiple names. -G ( --auto-continue ) The breakpoint will auto-continue after running its commands. -H ( --hardware ) Require the breakpoint to use hardware breakpoints. -K ( --skip-prologue ) sKip the prologue if the breakpoint is at the beginning of a function. If not set the target.skip-prologue setting is used. -L ( --language ) Specifies the Language to use when interpreting the breakpoint's expression (note: currently only implemented for setting breakpoints on identifiers). If not set the target.language setting is used. -M ( --method ) Set the breakpoint by C++ method names. Can be repeated multiple times to make one breakpoint for multiple methods. -N ( --breakpoint-name ) Adds this to the list of names for this breakpoint. -O ( --exception-typename ) The breakpoint will only stop if an exception Object of this type is thrown. Can be repeated multiple times to stop for multiple object types. If you just specify the type's base name it will match against that type in all modules, or you can specify the full type name including modules. Other submatches are not supported at present.Only supported for Swift at present. -R
( --address-slide
) Add the specified offset to whatever address(es) the breakpoint resolves to. At present this applies the offset directly as given, and doesn't try to align it to instruction boundaries. -S ( --selector ) Set the breakpoint by ObjC selector name. Can be repeated multiple times to make one breakpoint for multiple Selectors. -T ( --thread-name ) The breakpoint stops only for the thread whose thread name matches this argument. -X ( --source-regexp-function ) When used with '-p' limits the source regex to source contained in the named functions. Can be repeated multiple times. -a ( --address ) Set the breakpoint at the specified address. If the address maps uniquely to a particular binary, then the address will be converted to a "file" address, so that the breakpoint will track that binary+offset no matter where the binary eventually loads. Alternately, if you also specify the module - with the -s option - then the address will be treated as a file address in that module, and resolved accordingly. Again, this will allow lldb to track that offset on subsequent reloads. The module need not have been loaded at the time you specify this breakpoint, and will get resolved when the module is loaded. -b ( --basename ) Set the breakpoint by function basename (C++ namespaces and arguments will be ignored). Can be repeated multiple times to make one breakpoint for multiple symbols. -c ( --condition ) The breakpoint stops only if this condition expression evaluates to true. -d ( --disable ) Disable the breakpoint. -f ( --file ) Specifies the source file in which to set this breakpoint. Note, by default lldb only looks for files that are #included if they use the standard include file extensions. To set breakpoints on .c/.cpp/.m/.mm files that are #included, set target.inline-breakpoint-strategy to "always". -h ( --on-catch ) Set the breakpoint on exception catcH. -i ( --ignore-count ) Set the number of times this breakpoint is skipped before stopping. -l ( --line ) Specifies the line number on which to set this breakpoint. -m ( --move-to-nearest-code ) Move breakpoints to nearest code. If not set the target.move-to-nearest-code setting is used. -n ( --name ) Set the breakpoint by function name. Can be repeated multiple times to make one breakpoint for multiple names -o ( --one-shot ) The breakpoint is deleted the first time it stop causes a stop. -p ( --source-pattern-regexp ) Set the breakpoint by specifying a regular expression which is matched against the source text in a source file or files specified with the -f option. The -f option can be specified more than once. If no source files are specified, uses the current "default source file". If you want to match against all source files, pass the "--all-files" option. -q ( --queue-name ) The breakpoint stops only for threads in the queue whose name is given by this argument. -r ( --func-regex ) Set the breakpoint by function name, evaluating a regular-expression to find the function name(s). -s ( --shlib ) Set the breakpoint only in this shared library. Can repeat this option multiple times to specify multiple shared libraries. -t ( --thread-id ) The breakpoint stops only for the thread whose TID matches this argument. -w ( --on-throw ) Set the breakpoint on exception throW. -x ( --thread-index ) The breakpoint stops only for the thread whose index matches this argument.

你可能感兴趣的:(LLDB-BreakPoint 原文)