diff options
author | Enrico Granata <egranata@apple.com> | 2013-05-16 01:24:29 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-05-16 01:24:29 +0000 |
commit | 15a501b04ddb65d9979a9d098d60b053e8062cf0 (patch) | |
tree | f5d84cf7e1d4c73ca0379375b71acfadd50ccdaf /lldb/source/Interpreter/ScriptInterpreterPython.cpp | |
parent | c8adfc8957e5c3a270eacfc78b986ced9665b7f6 (diff) | |
download | bcm5719-llvm-15a501b04ddb65d9979a9d098d60b053e8062cf0.tar.gz bcm5719-llvm-15a501b04ddb65d9979a9d098d60b053e8062cf0.zip |
<rdar://problem/11158023>
Make type summary add and breakpoint command add show an helpful prototype + argument reference when manually typing Python code for these elements
llvm-svn: 181968
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
-rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index 5b6e0f5d80e..b54ef1ca901 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -1248,6 +1248,12 @@ ScriptInterpreterPython::ExecuteMultipleLines (const char *in_string, const Exec static const char *g_reader_instructions = "Enter your Python command(s). Type 'DONE' to end."; +static const char *g_bkpt_command_reader_instructions = "Enter your Python command(s). Type 'DONE' to end.\n" + "def function(frame,bp_loc,internal_dict):\n" + " \"\"\"frame: the SBFrame for the location at which you stopped\n" + " bp_loc: an SBBreakpointLocation for the breakpoint location information\n" + " internal_dict: an LLDB support object not to be used\"\"\""; + size_t ScriptInterpreterPython::GenerateBreakpointOptionsCommandCallback ( @@ -1270,7 +1276,7 @@ ScriptInterpreterPython::GenerateBreakpointOptionsCommandCallback commands_in_progress.Clear(); if (!batch_mode) { - out_stream->Printf ("%s\n", g_reader_instructions); + out_stream->Printf ("%s\n", g_bkpt_command_reader_instructions); if (reader.GetPrompt()) out_stream->Printf ("%s", reader.GetPrompt()); out_stream->Flush (); @@ -1497,7 +1503,7 @@ ScriptInterpreterPython::CollectDataForBreakpointCommandCallback (BreakpointOpti bp_options, // baton eInputReaderGranularityLine, // token size, for feeding data to callback function "DONE", // end token - "> ", // prompt + " ", // prompt true); // echo input if (err.Success()) |