Lines Matching defs:breakpoint
72 // Normally an empty breakpoint condition marks is as unset. But we need
244 interpreter, "breakpoint set",
245 "Sets a breakpoint or set of breakpoints in the executable.",
246 "breakpoint set <cmd-options>"),
247 m_python_class_options("scripted breakpoint", true, 'P') {
321 error_context = "Unknown language type for exception breakpoint";
331 error_context = "Unsupported language type for exception breakpoint";
422 "Invalid breakpoint name"));
552 // 1). -f -l -p [-s -g] (setting breakpoint by source location)
553 // 2). -a [-s -g] (setting breakpoint by address)
554 // 3). -n [-s -g] (setting breakpoint by function name)
555 // 4). -r [-s -g] (setting breakpoint by function name regular
557 // 5). -p -f (setting a breakpoint by comparing a reg-exp
559 // 6). -E [-w -h] (setting a breakpoint for exceptions for a
619 // with the library, and use that. That way the address breakpoint
743 result.AppendErrorWithFormat("Invalid breakpoint name: %s",
763 // set the breakpoint till we run.
765 output_stream.Printf("WARNING: Unable to resolve breakpoint to any "
771 result.AppendError("Breakpoint creation failed: No breakpoint created.");
823 : CommandObjectParsed(interpreter, "breakpoint modify",
824 "Modify the options on a breakpoint or set of "
826 "If no breakpoint is specified, acts on the last "
827 "created breakpoint. "
900 "Enable the specified disabled breakpoint(s). If "
932 // No breakpoint selected; enable all currently set breakpoints.
939 // Particular breakpoint selected; enable that breakpoint.
953 Breakpoint *breakpoint =
957 breakpoint->FindLocationByID(cur_bp_id.GetLocationID()).get();
963 breakpoint->SetEnabled(true);
983 interpreter, "breakpoint disable",
984 "Disable the specified breakpoint(s) without deleting "
989 "Disable the specified breakpoint(s) without deleting them. \
994 "Note: disabling a breakpoint will cause none of its locations to be hit \
1007 "The first command disables all locations for breakpoint 1, \
1037 // No breakpoint selected; disable all currently set breakpoints.
1044 // Particular breakpoint selected; disable that breakpoint.
1059 Breakpoint *breakpoint =
1063 breakpoint->FindLocationByID(cur_bp_id.GetLocationID()).get();
1069 breakpoint->SetEnabled(false);
1094 interpreter, "breakpoint list",
1180 // No breakpoint selected; show info about all currently set breakpoints.
1183 Breakpoint *breakpoint = breakpoints.GetBreakpointAtIndex(i).get();
1184 if (breakpoint->AllowList())
1185 AddBreakpointDescription(&output_stream, breakpoint,
1190 // Particular breakpoints selected; show info about that breakpoint.
1199 Breakpoint *breakpoint =
1201 AddBreakpointDescription(&output_stream, breakpoint,
1206 result.AppendError("Invalid breakpoint ID.");
1228 : CommandObjectParsed(interpreter, "breakpoint clear",
1231 "breakpoint clear <cmd-options>") {}
1285 // 1). -f -l (clearing breakpoint by source location)
1298 // Early return if there's no breakpoint at all.
1300 result.AppendError("Breakpoint clear: No breakpoint cleared.");
1324 // remove the breakpoint.
1346 result.AppendError("Breakpoint clear: No breakpoint cleared.");
1363 : CommandObjectParsed(interpreter, "breakpoint delete",
1364 "Delete the specified breakpoint(s). If no "
1455 "All breakpoints removed. (%" PRIu64 " breakpoint%s)\n",
1462 // Either we have some kind of breakpoint specification(s),
1505 Breakpoint *breakpoint =
1508 breakpoint->FindLocationByID(cur_bp_id.GetLocationID()).get();
1522 "%d breakpoints deleted; %d breakpoint locations disabled.\n",
1665 "Configure the options for the breakpoint"
1667 "If you provide a breakpoint id, the options will be copied from "
1668 "the breakpoint, otherwise only the options specified will be set "
1670 "breakpoint name configure <command-options> "
1671 "<breakpoint-name-list>") {
1704 result.AppendErrorWithFormat("Invalid breakpoint name: %s - %s",
1717 result.AppendErrorWithFormatv("Could not find specified breakpoint {0}",
1757 "breakpoint name add <command-options> <breakpoint-id-list>") {
1796 // Particular breakpoint selected; disable that breakpoint.
1831 "breakpoint name delete <command-options> <breakpoint-id-list>") {
1870 // Particular breakpoint selected; disable that breakpoint.
1901 "List either the names for a breakpoint or info "
1904 "breakpoint name list <command-options>") {
1928 result.AppendMessage("No breakpoint names found.");
1976 interpreter, "name", "Commands to manage breakpoint names") {
1982 breakpoint name can be added to any number of breakpoints, and each breakpoint
1983 can have any number of breakpoint names attached to it. For instance:
1991 adds two names to the breakpoint set at myFunc.
1995 1) They provide a stable way to refer to a breakpoint (e.g. in another
1996 breakpoint's action). Using the breakpoint ID for this purpose is fragile, since
1997 it depends on the order of breakpoint creation. Giving a name to the breakpoint
2003 2) This is actually just a specific use of a more general feature of breakpoint
2006 breakpoint names. That allows you to refer to one breakpoint in a stable
2015 3) But breakpoint names are also entities in their own right, and can be
2016 configured with all the modifiable attributes of a breakpoint. Then when you
2017 add a breakpoint name to a breakpoint, the breakpoint will be configured to
2018 match the state of the breakpoint name. The link between the name and the
2034 Options that are not configured on a breakpoint name don't affect the value of
2037 breakpoint will set the -i option from Name1 and the -c option from Name2, and
2040 If you add multiple names to a breakpoint which have configured values for
2043 The "liveness" of these settings is one way, from name to breakpoint.
2045 which that breakpoint has, the "break modify" command will override the setting
2046 for that breakpoint, but won't change the value configured in the name or on the
2050 breakpoint to another. Using the -B option to "breakpoint name configure" makes
2051 a name configured with all the options of the original breakpoint. Then
2052 adding that name to another breakpoint copies over all the values from the
2053 original breakpoint to the new one.
2055 5) You can also use breakpoint names to hide breakpoints from the breakpoint
2058 --allow-{list,delete,disable} options to "breakpoint name configure" and then
2059 adding that name to a breakpoint.
2061 This won't keep the breakpoint from being deleted or disabled if you refer to it
2097 : CommandObjectParsed(interpreter, "breakpoint read",
2099 "a file with \"breakpoint write\". ",
2250 // No breakpoint selected; show info about all currently set breakpoints.
2277 : CommandObjectParsed(interpreter, "breakpoint write",
2279 "be read in with \"breakpoint read\". "
2374 interpreter, "breakpoint",
2376 "breakpoint <subcommand> [<command-options>]") {
2400 list_command_object->SetCommandName("breakpoint list");
2401 enable_command_object->SetCommandName("breakpoint enable");
2402 disable_command_object->SetCommandName("breakpoint disable");
2403 clear_command_object->SetCommandName("breakpoint clear");
2404 delete_command_object->SetCommandName("breakpoint delete");
2405 set_command_object->SetCommandName("breakpoint set");
2406 command_command_object->SetCommandName("breakpoint command");
2407 modify_command_object->SetCommandName("breakpoint modify");
2408 name_command_object->SetCommandName("breakpoint name");
2409 write_command_object->SetCommandName("breakpoint write");
2410 read_command_object->SetCommandName("breakpoint read");
2431 // args can be strings representing 1). integers (for breakpoint ids)
2432 // 2). the full breakpoint & location
2438 // 4). A breakpoint name
2439 // If args is empty, we will use the last created breakpoint (if there is
2451 "No breakpoint specified and no last created breakpoint.");
2456 // Create a new Args variable to use; copy any non-breakpoint-id-ranges stuff
2457 // directly from the old ARGS to the new TEMP_ARGS. Do not copy breakpoint
2459 // breakpoint ids in the range, and shove all of those breakpoint id strings
2469 // NOW, convert the list of breakpoint id strings in TEMP_ARGS into an actual
2476 // At this point, all of the breakpoint ids that the user passed in have
2477 // been converted to breakpoint IDs and put into valid_ids.
2479 // Now that we've converted everything from args into a list of breakpoint
2480 // ids, go through our tentative list of breakpoint id's and verify that
2486 Breakpoint *breakpoint =
2488 if (breakpoint != nullptr) {
2489 const size_t num_locations = breakpoint->GetNumLocations();
2496 "'%s' is not a currently valid breakpoint/location id.\n",
2502 "'%d' is not a currently valid breakpoint ID.\n",