OpenASIP
2.0
|
#include <ProximBreakpointWindow.hh>
Public Member Functions | |
ProximBreakpointWindow (ProximMainFrame *parent, wxWindowID id) | |
virtual | ~ProximBreakpointWindow () |
virtual void | reset () |
Private Types | |
enum | { ID_NOTEBOOK = 10000, ID_HELP, ID_CLOSE, ID_LINE, ID_LOOKUP_BREAKPOINT, ID_BREAKPOINT_PROPERTIES, ID_DELETE_BREAKPOINT, ID_ADD_BREAKPOINT, ID_BREAKPOINT_ENABLED, ID_WATCH_PROPERTIES, ID_DELETE_WATCH, ID_ADD_WATCH, ID_WATCH_ENABLED, ID_BREAKPOINT_LIST, ID_WATCH_LIST } |
Widget IDs. More... | |
Private Member Functions | |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
wxSizer * | createBreakpointTab (wxWindow *parent, bool call_fit=true, bool set_sizer=true) |
wxSizer * | createWatchTab (wxWindow *parent, bool call_fit=true, bool set_sizer=true) |
void | refreshStopPoints () |
void | onClose (wxCommandEvent &event) |
void | onBreakpointsModified (SimulatorEvent &event) |
void | onDeleteBreakpoint (wxCommandEvent &event) |
void | onDeleteWatch (wxCommandEvent &event) |
void | onBreakpointLookup (wxCommandEvent &event) |
void | onBreakpointProperties (wxCommandEvent &event) |
void | onBreakpointSelection (wxListEvent &event) |
void | onAddBreakpoint (wxCommandEvent &event) |
void | onAddWatch (wxCommandEvent &event) |
void | onWatchProperties (wxCommandEvent &event) |
Private Attributes | |
wxListCtrl * | breakpointList_ |
List widget for breakpoints. More... | |
wxListCtrl * | watchList_ |
List widget for watches. More... | |
std::map< unsigned, unsigned > | bpListItemHandle_ |
Map for translating breakpoint list item numbers to stop point handles. More... | |
std::map< unsigned, unsigned > | watchListItemHandle_ |
Map for translating watch list item numbers to stop point handles. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ProximSimulatorWindow | |
ProximSimulatorWindow (ProximMainFrame *mainFrame, wxWindowID id=-1, wxPoint pos=wxDefaultPosition, wxSize size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
virtual | ~ProximSimulatorWindow () |
Proxim window for managing simulation breakpoints and watches.
Definition at line 47 of file ProximBreakpointWindow.hh.
|
private |
Widget IDs.
Definition at line 83 of file ProximBreakpointWindow.hh.
ProximBreakpointWindow::ProximBreakpointWindow | ( | ProximMainFrame * | parent, |
wxWindowID | id | ||
) |
The Constructor.
parent | Parent window of the frame. |
id | Window ID. |
Definition at line 80 of file ProximBreakpointWindow.cc.
References ProximToolbox::frontend(), SimulatorFrontend::hasSimulationEnded(), SimulatorFrontend::isSimulationInitialized(), SimulatorFrontend::isSimulationRunning(), and SimulatorFrontend::isSimulationStopped().
|
virtual |
|
private |
Creates the breakpoint tab.
Definition at line 483 of file ProximBreakpointWindow.cc.
References breakpointList_, ID_ADD_BREAKPOINT, ID_BREAKPOINT_ENABLED, ID_BREAKPOINT_LIST, ID_BREAKPOINT_PROPERTIES, ID_DELETE_BREAKPOINT, and ID_LOOKUP_BREAKPOINT.
Referenced by createContents().
|
private |
Creates the window contents.
Definition at line 434 of file ProximBreakpointWindow.cc.
References createBreakpointTab(), createWatchTab(), FALSE, ID_CLOSE, ID_HELP, ID_LINE, and ID_NOTEBOOK.
|
private |
Creates the watches tab.
Definition at line 528 of file ProximBreakpointWindow.cc.
References ID_ADD_WATCH, ID_DELETE_WATCH, ID_WATCH_ENABLED, ID_WATCH_LIST, ID_WATCH_PROPERTIES, and watchList_.
Referenced by createContents().
|
private |
Opens a dialog for adding a new breakpoint.
Definition at line 388 of file ProximBreakpointWindow.cc.
References ProximToolbox::frontend(), SimulatorFrontend::isSimulationInitialized(), SimulatorFrontend::isSimulationRunning(), and SimulatorFrontend::isSimulationStopped().
|
private |
Opens a dialog for adding a new watch.
Definition at line 409 of file ProximBreakpointWindow.cc.
References ProximToolbox::frontend(), SimulatorFrontend::isSimulationInitialized(), SimulatorFrontend::isSimulationRunning(), SimulatorFrontend::isSimulationStopped(), and refreshStopPoints().
|
private |
Shows the selected breakpoint location in the program disassembly window.
Definition at line 365 of file ProximBreakpointWindow.cc.
References Breakpoint::address(), bpListItemHandle_, breakpointList_, ProximToolbox::disassemblyWindow(), ProximDisassemblyWindow::showAddress(), and StopPointManager::stopPointWithHandleConst().
|
private |
Opens dialog displaying properties of the selected breakpoint when the Properties-button is pressed.
Definition at line 138 of file ProximBreakpointWindow.cc.
References bpListItemHandle_, breakpointList_, and refreshStopPoints().
|
private |
Enables and disables delete buttons for stop points according to stop point list selections.
Definition at line 305 of file ProximBreakpointWindow.cc.
References breakpointList_, ID_BREAKPOINT_PROPERTIES, ID_DELETE_BREAKPOINT, ID_DELETE_WATCH, ID_LOOKUP_BREAKPOINT, ID_WATCH_PROPERTIES, and watchList_.
Referenced by refreshStopPoints().
|
private |
Refreshes the breakpoint list when breakpoints are modified.
event | Event to handle. |
Definition at line 333 of file ProximBreakpointWindow.cc.
References refreshStopPoints().
|
private |
Event handler for the close button.
Closes the window.
Definition at line 128 of file ProximBreakpointWindow.cc.
|
private |
Deletes the breakpoint selected in the breakpoint list.
Definition at line 282 of file ProximBreakpointWindow.cc.
References bpListItemHandle_, breakpointList_, StopPointManager::deleteStopPoint(), and refreshStopPoints().
|
private |
Deletes the watch selected in the watch list.
Definition at line 344 of file ProximBreakpointWindow.cc.
References StopPointManager::deleteStopPoint(), refreshStopPoints(), watchList_, and watchListItemHandle_.
|
private |
Opens dialog displaying properties of the selected watch when the Properties-button is pressed in the watches tab.
Definition at line 171 of file ProximBreakpointWindow.cc.
References refreshStopPoints(), watchList_, and watchListItemHandle_.
|
private |
Updates the lists of breakpoints and watches.
Definition at line 195 of file ProximBreakpointWindow.cc.
References Breakpoint::address(), bpListItemHandle_, breakpointList_, dummy, Watch::expression(), ProximToolbox::frontend(), SimulatorFrontend::hasSimulationEnded(), StopPoint::isEnabled(), SimulatorFrontend::isSimulationInitialized(), SimulatorFrontend::isSimulationRunning(), SimulatorFrontend::isSimulationStopped(), onBreakpointSelection(), Script::script(), StopPointManager::stopPointCount(), StopPointManager::stopPointHandle(), SimulatorFrontend::stopPointManager(), StopPointManager::stopPointWithHandleConst(), WxConversion::toWxString(), watchList_, and watchListItemHandle_.
Referenced by onAddWatch(), onBreakpointProperties(), onBreakpointsModified(), onDeleteBreakpoint(), onDeleteWatch(), onWatchProperties(), and reset().
|
virtual |
Called when the simulator resets program, machine or memory model.
Reimplemented from ProximSimulatorWindow.
Definition at line 162 of file ProximBreakpointWindow.cc.
References refreshStopPoints().
|
private |
Map for translating breakpoint list item numbers to stop point handles.
Definition at line 78 of file ProximBreakpointWindow.hh.
Referenced by onBreakpointLookup(), onBreakpointProperties(), onDeleteBreakpoint(), and refreshStopPoints().
|
private |
List widget for breakpoints.
Definition at line 73 of file ProximBreakpointWindow.hh.
Referenced by createBreakpointTab(), onBreakpointLookup(), onBreakpointProperties(), onBreakpointSelection(), onDeleteBreakpoint(), and refreshStopPoints().
|
private |
List widget for watches.
Definition at line 75 of file ProximBreakpointWindow.hh.
Referenced by createWatchTab(), onBreakpointSelection(), onDeleteWatch(), onWatchProperties(), and refreshStopPoints().
|
private |
Map for translating watch list item numbers to stop point handles.
Definition at line 80 of file ProximBreakpointWindow.hh.
Referenced by onDeleteWatch(), onWatchProperties(), and refreshStopPoints().