38 #define DEBUG_MARKER 6 39 #define DEBUG_STYLE wxSCI_MARK_ARROW 56 m_pCode->SetReadOnly(
true);
57 m_pCode->SetCaretWidth(0);
58 m_pCode->SetMarginWidth(0, 0);
60 m_pCode->SetMarginSensitive(1, 0);
84 m_MixedModeCB = (
wxCheckBox*)FindWindow(XRCID(
"chkMode"));
85 m_MixedModeCB->SetValue(
Manager::Get()->GetDebuggerManager()->IsDisassemblyMixedMode());
162 if (lineno > los / 2)
163 firstdispline = lineno - (los/2) ;
190 if (lineaddr > 0 && (lineaddr == addr))
234 _(
"Save as text file"),
235 _T(
"assembly_dump.txt"),
247 output <<
_(
"Project title : ") << prj->
GetTitle() <<
_T(
'\n');
248 output <<
_(
"Project path : ") << prj->
GetBasePath() <<
_T(
'\n') <<
_T(
'\n');
253 output <<
wxString(_T(
'-'), 80) << _T(
'\n');
uint64_t m_LastActiveAddr
cbDebuggerPlugin * GetActiveDebugger()
bool IsDisassemblyMixedMode()
std::vector< char > m_LineTypes
bool SetActiveAddress(uint64_t addr)
void EnableWindow(bool enable)
bool FromString(const wxString &s)
ConfigManager * GetConfigManager(const wxString &name_space) const
void AddSourceLine(int lineno, const wxString &line)
Base class for debugger plugins.
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
#define wxSCI_MARGIN_SYMBOL
void OnRefresh(wxCommandEvent &event)
class WXDLLIMPEXP_SCI wxScintilla
void AppendText(const wxString &text)
Append a string to the end of the document without changing the selection.
void OnSave(wxCommandEvent &event)
void SetText(const wxString &text)
Replace the contents of the document with the argument text.
wxString GetLine(int line) const
Retrieve the contents of a line.
void SetReadOnly(bool readOnly)
Set to read only or read write.
DLLIMPORT wxString GetFilterAll()
Generates a simple special filter "All files".
wxString AfterFirst(wxUniChar ch) const
EditorManager * GetEditorManager() const
void SetDisassemblyMixedMode(bool mixed)
wxString BeforeFirst(wxUniChar ch, wxString *rest=NULL) const
ProjectManager * GetProjectManager() const
Functions returning pointers to the respective sub-manager instances.
void OnAdjustLine(wxCommandEvent &event)
DebuggerManager * GetDebuggerManager() const
void CenterLine(int lineno)
Represents a Code::Blocks project.
int GetCurrentLine()
Manually declared methods.
wxCheckBox * m_MixedModeCB
bool SetNativeFontInfo(const wxString &info)
virtual const wxString & GetTitle() const
Read the target's title.
void MarkerDeleteAll(int markerNumber)
Delete all markers with a particular number from all lines.
const wxPoint wxDefaultPosition
void OnMixedModeCB(wxCommandEvent &event)
cbProject * GetActiveProject()
Retrieve the active project.
wxString Read(const wxString &key, const wxString &defaultVal=wxEmptyString)
virtual wxString GetBasePath() const
Read the target's base path, e.g. if GetFilename() returns "/usr/local/bin/xxx", base path will retur...
const wxString & GetSymbol() const
virtual wxString GetPath() const
DLLIMPORT uint64_t cbDebuggerStringToAddress(const wxString &address)
Convert a string in hex form to a uint64_t number.
const wxString & _(const wxString &string)
#define wxSCI_STYLE_DEFAULT
Styles in range 32..38 are predefined for parts of the UI and are not used as normal styles...
EditorColourSet * GetColourSet()
wxString GetAddressAsString() const
void Clear(const cbStackFrame &frame)
DLLIMPORT void PlaceWindow(wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
bool GetLineVisible(int line) const
Is a line visible?
bool AttachUnknownControl(const wxString &name, wxWindow *control, wxWindow *parent=NULL)
void ClearAll()
Delete all text in the document.
int MarkerAdd(int line, int markerNumber)
Add a marker to a line, returning an ID which can be used to find or delete the marker.
DLLIMPORT bool cbSaveToFile(const wxString &filename, const wxString &contents, wxFontEncoding encoding=wxFONTENCODING_SYSTEM, bool bom=false)
Writes a wxString to a file.
virtual bool IsRunning() const =0
Is the plugin currently debugging?
void AddAssemblerLine(uint64_t addr, const wxString &line)
int GetLineCount() const
Returns the number of lines in the document. There is always at least one.
DLLIMPORT wxString cbDebuggerAddressToString(uint64_t address)
Convert a uint64_t variable to a hex string that will look like an address.
wxString GetText() const
Retrieve all the text in the document.
int LinesOnScreen() const
Retrieves the number of lines completely visible.
static wxXmlResource * Get()
HighlightLanguage Apply(cbEditor *editor, HighlightLanguage lang, bool colourise)
void SetFirstVisibleLine(int displayLine)
Scroll so that a display line is at the top of the display.
int Printf(const wxString &pszFormat,...)
virtual void SetValue(bool state)
void GotoLine(int line)
Set caret to start of a line and ensure it is visible.
virtual void RequestUpdate(DebugWindows window)=0
DLLIMPORT int cbMessageBox(const wxString &message, const wxString &caption=wxEmptyString, int style=wxOK, wxWindow *parent=NULL, int x=-1, int y=-1)
wxMessageBox wrapper.
HighlightLanguage GetHighlightLanguage(int lexer)
int GetFirstVisibleLine() const
Retrieve the display line at the top of the display.