Home | History | Annotate | Download | only in Commands

Lines Matching refs:Watchpoint

23 #include "lldb/Breakpoint/Watchpoint.h"
44 "Add a set of commands to a watchpoint, to be executed whenever the watchpoint is hit.",
49 "\nGeneral information about entering watchpoint commands \n\
53 of commands you wish to be executed when the specified watchpoint is \n\
56 a watchpoint is hit, you will continue to be prompted after each \n\
58 cause the commands you have entered to be stored with the watchpoint \n\
59 and executed when the watchpoint is hit. \n\
61 Syntax checking is not necessarily done when watchpoint commands are \n\
62 entered. An improperly written watchpoint command will attempt to get \n\
63 executed when the watchpoint gets hit, and usually silently fail. If \n\
64 your watchpoint command does not appear to be getting executed, go \n\
68 Special information about PYTHON watchpoint commands \n\
74 'as is' when the watchpoint gets hit. If you enter function \n\
76 you finish entering the watchpoint command, and they can be called \n\
78 the watchpoint is hit). If you enter multiple lines of Python that \n\
81 generated function will be attached to the watchpoint. \n\
85 frame: an SBFrame object representing the frame which hit the watchpoint. \n\
87 wp: the watchpoint that was hit. \n\
93 watchpoint commands. \n\
96 and that function will be attached to the watchpoint. It will get passed the \n\
99 Example Python one-line watchpoint command: \n\
101 (lldb) watchpoint command add -s python 1 \n\
103 > print \"Hit this watchpoint!\" \n\
107 (lldb) watchpoint command add -s python 1 -o \"import time; print time.asctime()\" \n\
112 * thread #1: tid = 0x2e03, 0x0000000100000de8 a.out`c + 7 at main.c:39, stop reason = watchpoint 1.1, queue = com.apple.main-thread \n\
122 Example multiple line Python watchpoint command, using function definition: \n\
124 (lldb) watchpoint command add -s python 1 \n\
127 > out_string = \"Hit watchpoint number \" + repr (wp_no) \n\
134 Example multiple line Python watchpoint command, using 'loose' Python: \n\
136 (lldb) watchpoint command add -s p 1 \n\
140 > print \"Hit this watchpoint \" + repr(wp_count) + \" times!\" \n\
154 Final Note: If you get a warning that no watchpoint command was generated, \n\
158 Special information about debugger command watchpoint commands \n\
224 /// Set a one-liner as the callback for the watchpoint.
232 // The former is used to generate callback description (as in watchpoint command list)
300 // Finish, and cancel the watchpoint command.
314 out_stream->Printf ("Warning: No command attached to watchpoint.\n");
509 result.AppendError ("need to enable scripting to have a function run as a watchpoint command");
529 Watchpoint *wp = target->GetWatchpointList().FindByID (cur_wp_id).get();
534 // Skip this watchpoint if wp_options is not good.
549 // instead of extending the watchpoint callback data structures, we just automatize
550 // what the user would do manually: make their watchpoint command be a function call
605 "Specify a one-line watchpoint command inline. Be sure to surround it with quotes." },
608 "Specify whether watchpoint command execution should terminate on error." },
614 "Give the name of a Python function to run as command for this watchpoint. Be sure to give a module name if appropriate."},
629 "Delete the set of commands from a watchpoint.",
675 result.AppendError ("No watchpoint specified from which to delete the commands");
695 Watchpoint *wp = target->GetWatchpointList().FindByID (cur_wp_id).get();
701 result.AppendErrorWithFormat("Invalid watchpoint ID: %u.\n",
721 "List the script or set of commands to be executed when the watchpoint is hit.",
767 result.AppendError ("No watchpoint specified for which to list the commands");
787 Watchpoint *wp = target->GetWatchpointList().FindByID (cur_wp_id).get();
794 // Get the callback baton associated with the current watchpoint.
798 result.GetOutputStream().Printf ("Watchpoint %u:\n", cur_wp_id);
805 result.AppendMessageWithFormat ("Watchpoint %u does not have an associated command.\n",
813 result.AppendErrorWithFormat("Invalid watchpoint ID: %u.\n", cur_wp_id);
830 "A set of commands for adding, removing and examining bits of code to be executed when the watchpoint is hit (watchpoint 'commmands').",
831 "command <sub-command> [<sub-command-options>] <watchpoint-id>")
837 add_command_object->SetCommandName ("watchpoint command add");
838 delete_command_object->SetCommandName ("watchpoint command delete");
839 list_command_object->SetCommandName ("watchpoint command list");