[lldb] Use internal_dict name over dict in python examples
authorDave Lee <davelee.com@gmail.com>
Wed, 10 Feb 2021 22:28:13 +0000 (14:28 -0800)
committerDave Lee <davelee.com@gmail.com>
Wed, 10 Feb 2021 23:11:00 +0000 (15:11 -0800)
Follow up to https://reviews.llvm.org/rG483ec136da7193de781a5284f1c37929cc27c05c

lldb/bindings/interface/SBBreakpoint.i
lldb/bindings/interface/SBBreakpointLocation.i
lldb/source/Commands/CommandObjectTarget.cpp
lldb/source/Commands/CommandObjectType.cpp

index 37fcc7f..a704830 100644 (file)
@@ -184,7 +184,7 @@ public:
 
     %feature("docstring", "
     Set the name of the script function to be called when the breakpoint is hit.
-    To use this variant, the function should take (frame, bp_loc, extra_args, dict) and
+    To use this variant, the function should take (frame, bp_loc, extra_args, internal_dict) and
     when the breakpoint is hit the extra_args will be passed to the callback function.") SetScriptCallbackFunction;
     SBError
     SetScriptCallbackFunction (const char *callback_function_name,
index fc37475..354737b 100644 (file)
@@ -74,13 +74,13 @@ public:
 
     %feature("docstring", "
     Set the callback to the given Python function name.
-    The function takes three arguments (frame, bp_loc, dict).") SetScriptCallbackFunction;
+    The function takes three arguments (frame, bp_loc, internal_dict).") SetScriptCallbackFunction;
     void
     SetScriptCallbackFunction (const char *callback_function_name);
 
     %feature("docstring", "
     Set the name of the script function to be called when the breakpoint is hit.
-    To use this variant, the function should take (frame, bp_loc, extra_args, dict) and
+    To use this variant, the function should take (frame, bp_loc, extra_args, internal_dict) and
     when the breakpoint is hit the extra_args will be passed to the callback function.") SetScriptCallbackFunction;
     SBError
     SetScriptCallbackFunction (const char *callback_function_name,
index 1cb2138..f8d3a79 100644 (file)
@@ -4602,7 +4602,7 @@ Python Based Stop Hooks:
   
   When the stop hook is added, the class is initialized by calling:
   
-    def __init__(self, target, extra_args, dict):
+    def __init__(self, target, extra_args, internal_dict):
     
     target: The target that the stop hook is being added to.
     extra_args: An SBStructuredData Dictionary filled with the -key -value 
index 004c066..8002b87 100644 (file)
@@ -270,7 +270,7 @@ protected:
 static const char *g_synth_addreader_instructions =
     "Enter your Python command(s). Type 'DONE' to end.\n"
     "You must define a Python class with these methods:\n"
-    "    def __init__(self, valobj, dict):\n"
+    "    def __init__(self, valobj, internal_dict):\n"
     "    def num_children(self):\n"
     "    def get_child_at_index(self, index):\n"
     "    def get_child_index(self, name):\n"