diff options
author | Caroline Tice <ctice@apple.com> | 2010-09-15 18:29:06 +0000 |
---|---|---|
committer | Caroline Tice <ctice@apple.com> | 2010-09-15 18:29:06 +0000 |
commit | 3f12e8efc1dfefd01998cb863381adb5d29d7cec (patch) | |
tree | 4812b450b1f2fc3e2e204cabbb8cc658e75ed1af /lldb/source/API/SBThread.cpp | |
parent | 46b96c4ba0b3720d26683e3fc1b7f7aed5c8405a (diff) | |
download | bcm5719-llvm-3f12e8efc1dfefd01998cb863381adb5d29d7cec.tar.gz bcm5719-llvm-3f12e8efc1dfefd01998cb863381adb5d29d7cec.zip |
Remove unnecessary/inappropriate output-printing functions from
the API.
llvm-svn: 113993
Diffstat (limited to 'lldb/source/API/SBThread.cpp')
-rw-r--r-- | lldb/source/API/SBThread.cpp | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp index 705f08ce6e4..3c75e4d682a 100644 --- a/lldb/source/API/SBThread.cpp +++ b/lldb/source/API/SBThread.cpp @@ -219,106 +219,6 @@ SBThread::GetQueueName () const void -SBThread::DisplayFramesForSelectedContext (FILE *out, - FILE *err, - uint32_t first_frame, - uint32_t num_frames, - bool show_frame_info, - uint32_t num_frames_with_source, - uint32_t source_lines_before, - uint32_t source_lines_after) -{ - if ((out == NULL) || (err == NULL)) - return; - - if (m_opaque_sp) - { - uint32_t num_stack_frames = m_opaque_sp->GetStackFrameCount (); - StackFrameSP frame_sp; - uint32_t frame_idx = 0; - - for (frame_idx = first_frame; frame_idx < first_frame + num_frames; ++frame_idx) - { - if (frame_idx >= num_stack_frames) - break; - - frame_sp = m_opaque_sp->GetStackFrameAtIndex (frame_idx); - if (!frame_sp) - break; - - SBFrame sb_frame (frame_sp); - if (DisplaySingleFrameForSelectedContext (out, - err, - sb_frame, - show_frame_info, - num_frames_with_source > first_frame - frame_idx, - source_lines_before, - source_lines_after) == false) - break; - } - } -} - -bool -SBThread::DisplaySingleFrameForSelectedContext (FILE *out, - FILE *err, - SBFrame &frame, - bool show_frame_info, - bool show_source, - uint32_t source_lines_after, - uint32_t source_lines_before) -{ - bool success = false; - - if ((out == NULL) || (err == NULL)) - return false; - - if (m_opaque_sp && frame.IsValid()) - { - StreamFile str (out); - - SBSymbolContext sc(frame.GetSymbolContext(eSymbolContextEverything)); - - if (show_frame_info && sc.IsValid()) - { - user_id_t frame_idx = (user_id_t) frame.GetFrameID(); - lldb::addr_t pc = frame.GetPC(); - ::fprintf (out, - " frame #%u: tid = 0x%4.4x, pc = 0x%llx ", - frame_idx, - GetThreadID(), - (long long)pc); - sc->DumpStopContext (&str, &m_opaque_sp->GetProcess(), *frame.GetPCAddress(), false, true, false); - fprintf (out, "\n"); - success = true; - } - - SBCompileUnit comp_unit(sc.GetCompileUnit()); - if (show_source && comp_unit.IsValid()) - { - success = false; - SBLineEntry line_entry; - if (line_entry.IsValid()) - { - SourceManager& source_manager = m_opaque_sp->GetProcess().GetTarget().GetDebugger().GetSourceManager(); - SBFileSpec line_entry_file_spec (line_entry.GetFileSpec()); - - if (line_entry_file_spec.IsValid()) - { - source_manager.DisplaySourceLinesWithLineNumbers (line_entry_file_spec.ref(), - line_entry.GetLine(), - source_lines_after, - source_lines_before, "->", - &str); - success = true; - } - } - } - } - return success; -} - -void SBThread::StepOver (lldb::RunMode stop_other_threads) { if (m_opaque_sp) |