LLDB  mainline
Public Member Functions | Protected Types | Protected Attributes | List of all members
SourceFileWindowDelegate Class Reference
Inheritance diagram for SourceFileWindowDelegate:
Inheritance graph
[legend]
Collaboration diagram for SourceFileWindowDelegate:
Collaboration graph
[legend]

Public Member Functions

 SourceFileWindowDelegate (Debugger &debugger)
 
 ~SourceFileWindowDelegate () override=default
 
void Update (const SymbolContext &sc)
 
uint32_t NumVisibleLines () const
 
const char * WindowDelegateGetHelpText () override
 
KeyHelpWindowDelegateGetKeyHelp () override
 
bool WindowDelegateDraw (Window &window, bool force) override
 
size_t GetNumLines ()
 
size_t GetNumSourceLines () const
 
size_t GetNumDisassemblyLines () const
 
HandleCharResult WindowDelegateHandleChar (Window &window, int c) override
 
- Public Member Functions inherited from curses::WindowDelegate
virtual ~WindowDelegate ()=default
 

Protected Types

typedef std::set< uint32_tBreakpointLines
 
typedef std::set< lldb::addr_tBreakpointAddrs
 

Protected Attributes

Debuggerm_debugger
 
SymbolContext m_sc
 
SourceManager::FileSP m_file_sp
 
SymbolContextScopem_disassembly_scope
 
lldb::DisassemblerSP m_disassembly_sp
 
AddressRange m_disassembly_range
 
StreamString m_title
 
lldb::user_id_t m_tid
 
int m_line_width
 
uint32_t m_selected_line
 
uint32_t m_pc_line
 
uint32_t m_stop_id
 
uint32_t m_frame_idx
 
int m_first_visible_line
 
int m_min_x
 
int m_min_y
 
int m_max_x
 
int m_max_y
 

Detailed Description

Definition at line 3801 of file IOHandler.cpp.

Member Typedef Documentation

◆ BreakpointAddrs

Definition at line 4475 of file IOHandler.cpp.

◆ BreakpointLines

Definition at line 4474 of file IOHandler.cpp.

Constructor & Destructor Documentation

◆ SourceFileWindowDelegate()

SourceFileWindowDelegate::SourceFileWindowDelegate ( Debugger debugger)
inline

Definition at line 3803 of file IOHandler.cpp.

◆ ~SourceFileWindowDelegate()

SourceFileWindowDelegate::~SourceFileWindowDelegate ( )
overridedefault

Member Function Documentation

◆ GetNumDisassemblyLines()

size_t SourceFileWindowDelegate::GetNumDisassemblyLines ( ) const
inline

Definition at line 4267 of file IOHandler.cpp.

◆ GetNumLines()

size_t SourceFileWindowDelegate::GetNumLines ( )
inline

Definition at line 4254 of file IOHandler.cpp.

◆ GetNumSourceLines()

size_t SourceFileWindowDelegate::GetNumSourceLines ( ) const
inline

Definition at line 4261 of file IOHandler.cpp.

◆ NumVisibleLines()

uint32_t SourceFileWindowDelegate::NumVisibleLines ( ) const
inline

Definition at line 3814 of file IOHandler.cpp.

◆ Update()

void SourceFileWindowDelegate::Update ( const SymbolContext sc)
inline

Definition at line 3812 of file IOHandler.cpp.

◆ WindowDelegateDraw()

bool SourceFileWindowDelegate::WindowDelegateDraw ( Window window,
bool  force 
)
inlineoverridevirtual

Reimplemented from curses::WindowDelegate.

Definition at line 3844 of file IOHandler.cpp.

References curses::Window::AttributeOff(), curses::Window::AttributeOn(), lldb_private::StreamString::Clear(), curses::Window::DeferredRefresh(), curses::Window::DrawTitleBox(), curses::Window::Erase(), lldb_private::LineEntry::file, lldb_private::Instruction::GetAddress(), lldb_private::BreakpointList::GetBreakpointAtIndex(), lldb_private::Target::GetBreakpointList(), lldb_private::Instruction::GetComment(), lldb_private::ConstString::GetCString(), curses::Window::GetCursorX(), lldb_private::StreamString::GetData(), lldb_private::Address::GetFileAddress(), lldb_private::UserID::GetID(), lldb_private::Thread::GetIndexID(), lldb_private::InstructionList::GetIndexOfInstructionAtAddress(), lldb_private::InstructionList::GetInstructionAtIndex(), lldb_private::Address::GetLoadAddress(), curses::Window::GetMaxX(), curses::Window::GetMaxY(), lldb_private::Instruction::GetMnemonic(), lldb_private::Instruction::GetOperands(), lldb_private::ExecutionContext::GetProcessPtr(), lldb_private::Thread::GetSelectedFrame(), lldb_private::BreakpointList::GetSize(), lldb_private::Process::GetState(), lldb_private::Process::GetStopID(), lldb_private::Thread::GetStopInfo(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::ExecutionContext::GetThreadPtr(), curses::Window::GetWidth(), lldb_private::Process::IsAlive(), lldb_private::Address::IsValid(), lldb_private::LineEntry::line, LLDB_INVALID_ADDRESS, LLDB_INVALID_THREAD_ID, curses::HelpDialogDelegate::m_first_visible_line, curses::Window::MoveCursor(), lldb_private::Stream::Printf(), curses::Window::Printf(), curses::Window::PutChar(), curses::Window::PutCString(), curses::Window::PutCStringTruncated(), lldb_private::StateIsStoppedState(), and UINT32_MAX.

◆ WindowDelegateGetHelpText()

const char* SourceFileWindowDelegate::WindowDelegateGetHelpText ( )
inlineoverridevirtual

Reimplemented from curses::WindowDelegate.

Definition at line 3816 of file IOHandler.cpp.

◆ WindowDelegateGetKeyHelp()

KeyHelp* SourceFileWindowDelegate::WindowDelegateGetKeyHelp ( )
inlineoverridevirtual

Reimplemented from curses::WindowDelegate.

Definition at line 3820 of file IOHandler.cpp.

References KEY_RETURN.

◆ WindowDelegateHandleChar()

HandleCharResult SourceFileWindowDelegate::WindowDelegateHandleChar ( Window window,
int  c 
)
inlineoverridevirtual

Member Data Documentation

◆ m_debugger

Debugger& SourceFileWindowDelegate::m_debugger
protected

Definition at line 4477 of file IOHandler.cpp.

◆ m_disassembly_range

AddressRange SourceFileWindowDelegate::m_disassembly_range
protected

Definition at line 4482 of file IOHandler.cpp.

◆ m_disassembly_scope

SymbolContextScope* SourceFileWindowDelegate::m_disassembly_scope
protected

Definition at line 4480 of file IOHandler.cpp.

◆ m_disassembly_sp

lldb::DisassemblerSP SourceFileWindowDelegate::m_disassembly_sp
protected

Definition at line 4481 of file IOHandler.cpp.

◆ m_file_sp

SourceManager::FileSP SourceFileWindowDelegate::m_file_sp
protected

Definition at line 4479 of file IOHandler.cpp.

◆ m_first_visible_line

int SourceFileWindowDelegate::m_first_visible_line
protected

Definition at line 4490 of file IOHandler.cpp.

◆ m_frame_idx

uint32_t SourceFileWindowDelegate::m_frame_idx
protected

Definition at line 4489 of file IOHandler.cpp.

◆ m_line_width

int SourceFileWindowDelegate::m_line_width
protected

Definition at line 4485 of file IOHandler.cpp.

◆ m_max_x

int SourceFileWindowDelegate::m_max_x
protected

Definition at line 4493 of file IOHandler.cpp.

◆ m_max_y

int SourceFileWindowDelegate::m_max_y
protected

Definition at line 4494 of file IOHandler.cpp.

◆ m_min_x

int SourceFileWindowDelegate::m_min_x
protected

Definition at line 4491 of file IOHandler.cpp.

◆ m_min_y

int SourceFileWindowDelegate::m_min_y
protected

Definition at line 4492 of file IOHandler.cpp.

◆ m_pc_line

uint32_t SourceFileWindowDelegate::m_pc_line
protected

Definition at line 4487 of file IOHandler.cpp.

◆ m_sc

SymbolContext SourceFileWindowDelegate::m_sc
protected

Definition at line 4478 of file IOHandler.cpp.

◆ m_selected_line

uint32_t SourceFileWindowDelegate::m_selected_line
protected

Definition at line 4486 of file IOHandler.cpp.

◆ m_stop_id

uint32_t SourceFileWindowDelegate::m_stop_id
protected

Definition at line 4488 of file IOHandler.cpp.

◆ m_tid

lldb::user_id_t SourceFileWindowDelegate::m_tid
protected

Definition at line 4484 of file IOHandler.cpp.

◆ m_title

StreamString SourceFileWindowDelegate::m_title
protected

Definition at line 4483 of file IOHandler.cpp.


The documentation for this class was generated from the following file: