mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 04:14:03 +08:00
Add the ability to tag one or more breakpoints with a name. These
names can then be used in place of breakpoint id's or breakpoint id ranges in all the commands that operate on breakpoints. <rdar://problem/10103959> llvm-svn: 224392
This commit is contained in:
@@ -747,6 +747,22 @@ BreakpointIDRangeHelpTextCallback ()
|
||||
" is legal; 2 - 5 is legal; but 3.2 - 4.4 is not legal.";
|
||||
}
|
||||
|
||||
static const char *
|
||||
BreakpointNameHelpTextCallback ()
|
||||
{
|
||||
return "A name that can be added to a breakpoint when it is created, or later "
|
||||
"on with the \"breakpoint name add\" command. "
|
||||
"Breakpoint names can be used to specify breakpoints in all the places breakpoint ID's "
|
||||
"and breakpoint ID ranges can be used. As such they provide a convenient way to group breakpoints, "
|
||||
"and to operate on breakpoints you create without having to track the breakpoint number. "
|
||||
"Note, the attributes you set when using a breakpoint name in a breakpoint command don't "
|
||||
"adhere to the name, but instead are set individually on all the breakpoints currently tagged with that name. Future breakpoints "
|
||||
"tagged with that name will not pick up the attributes previously given using that name. "
|
||||
"In order to distinguish breakpoint names from breakpoint ID's and ranges, "
|
||||
"names must start with a letter from a-z or A-Z and cannot contain spaces, \".\" or \"-\". "
|
||||
"Also, breakpoint names can only be applied to breakpoints, not to breakpoint locations.";
|
||||
}
|
||||
|
||||
static const char *
|
||||
GDBFormatHelpTextCallback ()
|
||||
{
|
||||
@@ -1112,6 +1128,7 @@ CommandObject::g_arguments_data[] =
|
||||
{ eArgTypeBoolean, "boolean", CommandCompletions::eNoCompletion, { nullptr, false }, "A Boolean value: 'true' or 'false'" },
|
||||
{ eArgTypeBreakpointID, "breakpt-id", CommandCompletions::eNoCompletion, { BreakpointIDHelpTextCallback, false }, nullptr },
|
||||
{ eArgTypeBreakpointIDRange, "breakpt-id-list", CommandCompletions::eNoCompletion, { BreakpointIDRangeHelpTextCallback, false }, nullptr },
|
||||
{ eArgTypeBreakpointName, "breakpoint-name", CommandCompletions::eNoCompletion, { BreakpointNameHelpTextCallback, false }, nullptr },
|
||||
{ eArgTypeByteSize, "byte-size", CommandCompletions::eNoCompletion, { nullptr, false }, "Number of bytes to use." },
|
||||
{ eArgTypeClassName, "class-name", CommandCompletions::eNoCompletion, { nullptr, false }, "Then name of a class from the debug information in the program." },
|
||||
{ eArgTypeCommandName, "cmd-name", CommandCompletions::eNoCompletion, { nullptr, false }, "A debugger command (may be multiple words), without any options or arguments." },
|
||||
|
||||
Reference in New Issue
Block a user