|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gnu.glib.Struct org.gnu.glib.GObject org.gnu.gtk.GtkObject org.gnu.gtk.Widget org.gnu.gtk.Container org.gnu.gtk.Bin org.gnu.gtk.Window frysk.gui.srcwin.SourceWindow
public class SourceWindow
The SourceWindow displays the source or assembly level view of a Task's current state of execution. It has the ability to display code that has been inlined as well as optimized out by the compiler. It also provides an interface to allow to user to query for variable values, set traces on variables, and perform other such traditional debugging tasks.
Nested Class Summary | |
---|---|
private class |
SourceWindow.LockObserver
Local Observer class used to poke this window from RunState when all the Tasks belonging to this window's Proc have been blocked. |
private class |
SourceWindow.SourceWindowListener
SourceWindow Listener And Observer Implementations |
private class |
SourceWindow.StackMouseListener
Listens for mouse right-clicks on the stack view, and eventually generates a menu for the user. |
Field Summary | |
---|---|
private SourceWindowFactory.AttachedObserver |
addedAttachedObserver
|
private org.gnu.gtk.Action |
attach_proc
|
private SourceWindowFactory.AttachedObserver |
attachedObserver
|
static String |
CASE_FIND
|
private org.gnu.gtk.FileChooserDialog |
chooser
|
private org.gnu.gtk.Action |
close
|
static String |
CLOSE_FIND
|
private org.gnu.gtk.Action |
cont
|
private ConsoleWindow |
conWin
|
private org.gnu.gtk.Action |
copy
|
private int |
current
|
private DebugInfoFrame |
currentFrame
|
private Task |
currentTask
|
private DOMFrysk[] |
dom
|
private org.gnu.gtk.FileChooserDialog |
fc
|
private FrameIdentifier |
fi
|
static String |
FILE_SELECTOR
|
static String |
FILECHOOSER_GLADE
|
private org.gnu.gtk.ToggleAction |
find
|
static String |
FIND_BOX
|
static String |
FIND_LABEL
|
static String |
FIND_TEXT
|
private org.gnu.gtk.Action |
finish
|
private DebugInfoFrame[][] |
frames
|
private org.gnu.glade.LibGlade |
glade
|
private org.gnu.glade.LibGlade |
glade_fc
|
static String |
GLADE_FILE
|
static String |
GLADE_TOOLBAR_NAME
|
static String |
HIGHLIGHT_FIND
|
static String |
LINE_ENTRY
|
static String |
LINE_LABEL
|
private SourceWindow.SourceWindowListener |
listener
|
private SourceWindow.LockObserver |
lock
|
private Logger |
logger
|
private SourceWindow.StackMouseListener |
mouseListener
|
private org.gnu.gtk.Action |
next
|
static String |
NEXT_FIND
|
private org.gnu.gtk.Action |
nextAsm
|
private int |
numProcs
|
private org.gnu.gtk.Action |
open_core
|
private org.gnu.gtk.Action |
open_executable
|
private org.gnu.gtk.Action |
prefsLaunch
|
static String |
PREV_FIND
|
static String |
PROC_LIST_GLADE
|
private org.gnu.gtk.Action |
run
|
static String |
SOURCE_WINDOW
|
private org.gnu.gtk.Action |
stackDown
|
private org.gnu.gtk.Action |
stackTop
|
private org.gnu.gtk.Action |
stackUp
|
private CurrentStackView |
stackView
|
private org.gnu.gtk.Action |
step
|
private org.gnu.gtk.Action |
stepAsm
|
private StepDialog |
stepDialog
|
private org.gnu.gtk.Action |
stepInDialog
|
private org.gnu.gtk.Action |
stepInstructionDialog
|
private org.gnu.gtk.Action |
stepInstructionNextDialog
|
private org.gnu.gtk.Action |
stepOutDialog
|
private org.gnu.gtk.Action |
stepOverDialog
|
private SteppingEngine |
steppingEngine
|
private org.gnu.gtk.Action |
stop
|
protected boolean |
SW_active
|
private boolean |
SW_add
|
private Proc[] |
swProc
|
private HashMap |
termHash
|
private org.gnu.gtk.Action |
terminate
|
private TermWindow |
termWin
|
static String |
TEXT_WINDOW
|
private ThreadSelectionDialog |
threadDialog
|
private org.gnu.gtk.ToolTips |
tips
|
private org.gnu.gtk.ToggleAction |
toggleConsoleWindow
|
private org.gnu.gtk.ToggleAction |
toggleDisassemblyWindow
|
private org.gnu.gtk.ToggleAction |
toggleMemoryWindow
|
private org.gnu.gtk.ToggleAction |
toggleRegisterWindow
|
private org.gnu.gtk.ToggleAction |
toggleStepDialog
|
private org.gnu.gtk.ToggleAction |
toggleThreadDialog
|
private View |
view
|
static String |
VIEW_COMBO_BOX
|
private org.gnu.gtk.ComboBox |
viewPicker
|
private VariableWatchView |
watchView
|
Fields inherited from class org.gnu.glib.GObject |
---|
eventsInitialized |
Constructor Summary | |
---|---|
SourceWindow(org.gnu.glade.LibGlade glade,
DebugInfoFrame trace)
Creates a new source window with the given properties. |
|
SourceWindow(org.gnu.glade.LibGlade glade,
DebugInfoFrame[] traces)
Creates a new source window with the given properties. |
|
SourceWindow(org.gnu.glade.LibGlade glade,
Proc proc)
Creates a new source window with the given properties. |
|
SourceWindow(org.gnu.glade.LibGlade glade,
Proc[] procs)
Creates a new source window with the given properties. |
|
SourceWindow(org.gnu.glade.LibGlade glade,
Proc proc,
SourceWindowFactory.AttachedObserver ao)
Creates a new source window with the given properties. |
Method Summary | |
---|---|
void |
activateProc()
activateProc is called when the user has selected an executable from the FileChooserDialog. |
protected void |
addProc(String exe,
String env_variables,
String options,
String stdin,
String stdout,
String stderr)
Called when a new executable has been selected to run and add to the window. |
void |
addVariableTrace(String var)
Adds the selected variable to the variable trace window |
private void |
allProcsExited()
Cleans up the SourceWindow after all observed processes have exited. |
protected void |
appendProc(Task task)
Appends a new Proc object to this window's data structures and interface |
void |
appendTask(Proc proc)
|
private void |
attachEvents()
Assigns Listeners to the widgets that we need to listen for events from |
private void |
createActions(org.gnu.gtk.AccelGroup ag)
Creates the menus and assigns hotkeys |
private void |
createMenus()
Creates the toolbar menus with initialized Actions. |
private void |
createSearchBar()
Adds icons, text, and tooltips to the widgets in the search bar |
private void |
createTags()
|
private String[] |
createTermWindow(String filepath)
Creates the TermWindow that a process will have STDIN/STDOUT/STDERR assigned to |
private void |
createToolBar()
Adds the icons and assigns tooltips to the toolbar items |
private void |
desensitize()
Desensitizes all Action-related widgets on the window, except for the 'stop' Action. |
private void |
detachProc(boolean kill)
|
protected void |
doAdvance()
|
private void |
doAsmNext()
Tells the debugger to execute the next assembly instruction |
protected void |
doAsmNext(LinkedList tasks)
|
private void |
doAsmStep()
Tells the debugger to step an assembly instruction |
private void |
doContinue()
Tells the debugger to continue execution |
private void |
doFindNext()
|
private void |
doFindPrev()
|
private void |
doFinish()
Tells the debugger to finish executing the current function "Step out" |
protected void |
doFinish(LinkedList tasks)
|
private void |
doHighlightAll()
|
private void |
doJumpToFunction(String name)
|
private void |
doNext()
"Step-over" |
protected void |
doNext(LinkedList tasks)
|
private void |
doRun()
Tells the debugger to run the program |
private void |
doStackDown()
Tells the debugger to move to the following stack frame |
private void |
doStackTop()
Tells the debugger to move to the newest stack frame |
private void |
doStackUp()
Tells the debugger to move to the previous stack frame |
private void |
doStep()
Tells the debugger to step the program |
protected void |
doStep(LinkedList tasks)
|
protected void |
doStepAsm(LinkedList tasks)
A request for an instruction step on one or more tasks. |
private void |
doStop()
|
private void |
doTerminate()
Tells the debugger to terminate the program being debugged |
private void |
examineCoreFile(String filename)
This method will activate a window to allow the user to exemaine a core file |
private void |
executeTasks(LinkedList tasks)
|
private void |
finishSourceWin()
Initializes the rest of the members of the SourceWindow not handled by the constructor. |
private DebugInfoFrame[] |
generateProcStackTrace(Proc proc,
int current)
Generates a new stack trace for each of the Tasks belonging to the given Proc. |
private DebugProcess |
getCurrentDebugProcess()
Returns the DebugProcess from the SessionManager corresponding to the current Proc |
DOMFrysk |
getDOM()
|
SourceWindow.LockObserver |
getLockObserver()
|
CurrentStackView |
getStackView()
|
SteppingEngine |
getSteppingEngine()
|
Proc |
getSwProc()
Getters and Setters |
View |
getView()
|
private void |
gotoLine(int line)
|
private void |
handleDialog(int type)
Creates and toggles the display of the thread dialog. |
private void |
hideFindBox()
|
boolean |
isRunning()
|
private void |
launchPreferencesWindow()
Displays the preference window, or creates it if it is the first time this method is called |
private void |
menuEvent(org.gnu.gtk.event.MouseEvent event)
Handles right-clicks on the stack view, signifying the user wishes to perform some sort of Proc-removal operation. |
void |
populateStackBrowser(DebugInfoFrame[][] frames)
Populates the stack browser window |
protected void |
procReblocked()
Called from SourceWindowFactory when all Tasks have notified that they are blocked and new stack traces have been generated. |
void |
removeDisplay(UpdatingDisplayValue disp)
Removes the given display from the list of watched expressions |
protected void |
removeProc(boolean kill)
Removes the currently selected process from SourceWindow data structures and the interface. |
private void |
removeTags()
Line Highlighting |
void |
removeVariableTrace(String var)
Removes the given variable from the list of watched variables. |
private void |
resensitize()
Resensitizes all Action-related widgets on the window, except for the 'stop' Action. |
private void |
resetSearchBox()
Resets the search box to its original state. |
void |
setShowToolbar(boolean value)
Toggles whether the toolbar is visible |
private void |
setSourceLabel(String header,
String task,
int pid,
int tid,
boolean noDOMFunction,
DOMSource source)
This method actually sets the sourceLabel widget with the info provided. |
private void |
showFindBox()
|
private void |
switchToAsmMode()
Switches the SourceWindow to displaying assembly-only information. |
private void |
switchToMixedMode()
Switches the SourceWindow to displaying combined assembly and source information. |
private void |
switchToSourceAsmMode()
Has the SourceWindow split into two panes, one displaying source code, the other displaying assembly information. |
private void |
switchToSourceMode()
Switches the SourceWindow to dislaying source-only information |
private void |
toggleConsoleWindow()
Creates and toggles the display of the ConsoleWindow. |
private void |
toggleDisassemblyWindow()
Creates and toggles the display of the DisassemblyWindow. |
private void |
toggleMemoryWindow()
Creates and toggles the display of the MemoryWindow. |
private void |
toggleRegisterWindow()
Creates and toggles the display of the RegisterWindow. |
private void |
toggleStepDialog()
|
private void |
toggleThreadDialog()
|
private void |
updateShownStackFrame(DebugInfoFrame selected,
int current)
Main logic for determining what to display after a new StackFrame is selected from the stack view. |
private void |
updateSourceLabel(DebugInfoFrame sf)
This method updates the label at the top of the debug window frame whenever a stack frame is selected. |
void |
updateThreads()
|
Methods inherited from class org.gnu.gtk.Window |
---|
addAccelGroup, checkState, deiconify, destroy, finalize, fullscreen, getAcceptFocus, getDefaultIconList, getFocusOnMap, getFocusWidget, getGravity, getIcon, getIconList, getIconName, getPosition, getScreen, getSize, getSkipPagerHint, getSkipTaskbarHint, getTitle, getTransientParent, getType, getWindow, gtk_window_activate_default, gtk_window_activate_focus, gtk_window_add_accel_group, gtk_window_add_mnemonic, gtk_window_begin_move_drag, gtk_window_begin_resize_drag, gtk_window_deiconify, gtk_window_fullscreen, gtk_window_get_accept_focus, gtk_window_get_decorated, gtk_window_get_default_icon_list, gtk_window_get_default_size, gtk_window_get_destroy_with_parent, gtk_window_get_focus, gtk_window_get_frame_dimensions, gtk_window_get_gravity, gtk_window_get_has_frame, gtk_window_get_icon_list, gtk_window_get_icon, gtk_window_get_mnemonic_modifier, gtk_window_get_modal, gtk_window_get_position, gtk_window_get_resizable, gtk_window_get_role, gtk_window_get_screen, gtk_window_get_size, gtk_window_get_skip_pager_hint, gtk_window_get_skip_taskbar_hint, gtk_window_get_title, gtk_window_get_transient_for, gtk_window_get_type_hint, gtk_window_get_type, gtk_window_has_toplevel_focus, gtk_window_iconify, gtk_window_is_active, gtk_window_list_toplevels, gtk_window_maximize, gtk_window_mnemonic_activate, gtk_window_move, gtk_window_new, gtk_window_parse_geometry, gtk_window_present, gtk_window_remove_accel_group, gtk_window_remove_mnemonic, gtk_window_resize, gtk_window_set_accept_focus, gtk_window_set_auto_startup_notification, gtk_window_set_decorated, gtk_window_set_default_icon_from_file, gtk_window_set_default_icon_list, gtk_window_set_default_icon, gtk_window_set_default_size, gtk_window_set_default, gtk_window_set_destroy_with_parent, gtk_window_set_focus, gtk_window_set_frame_dimensions, gtk_window_set_geometry_hints, gtk_window_set_gravity, gtk_window_set_has_frame, gtk_window_set_icon_from_file, gtk_window_set_icon_list, gtk_window_set_icon, gtk_window_set_keep_above, gtk_window_set_keep_below, gtk_window_set_mnemonic_modifier, gtk_window_set_modal, gtk_window_set_position, gtk_window_set_resizable, gtk_window_set_role, gtk_window_set_screen, gtk_window_set_skip_pager_hint, gtk_window_set_skip_taskbar_hint, gtk_window_set_title, gtk_window_set_transient_for, gtk_window_set_type_hint, gtk_window_set_wmclass, gtk_window_stick, gtk_window_unfullscreen, gtk_window_unmaximize, gtk_window_unstick, hasToplevelFocus, iconify, isActive, isDestroyed, listToplevelWindows, maximize, move, present, removeAccelGroup, resize, setAcceptFocus, setAutoStartupNotification, setDecorated, setDefaultIcon, setDefaultIconFromFile, setDefaultIconList, setDefaultIconName, setDefaultSize, setDefaultWidget, setFocusOnMap, setFocusWidget, setGeometryHints, setGravity, setIcon, setIconFromFile, setIconList, setIconName, setKeepAbove, setKeepBelow, setModal, setPosition, setResizable, setScreen, setSkipPagerHint, setSkipTaskbarHint, setTitle, setTransientParent, stick, unfullscreen, unmaximize, unstick |
Methods inherited from class org.gnu.gtk.Bin |
---|
getBin, getChild, gtk_bin_get_child, gtk_bin_get_type |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, fireContainerEvent, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getContainer, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, gtk_container_add, gtk_container_check_resize, gtk_container_child_get_property, gtk_container_child_set_property, gtk_container_child_type, gtk_container_get_border_width, gtk_container_get_children, gtk_container_get_focus_chain, gtk_container_get_focus_hadjustment, gtk_container_get_focus_vadjustment, gtk_container_get_resize_mode, gtk_container_get_type, gtk_container_propagate_expose, gtk_container_remove, gtk_container_resize_children, gtk_container_set_border_width, gtk_container_set_focus_chain, gtk_container_set_focus_child, gtk_container_set_focus_hadjustment, gtk_container_set_focus_vadjustment, gtk_container_set_reallocate_redraws, gtk_container_set_resize_mode, gtk_container_unset_focus_chain, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.Widget |
---|
activate, addAccelerator, addEvents, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, canActivateAccel, createContext, createLayout, draw, drawArea, drawArea, findListener, finish, fireBooleanLifeCycleEvent, fireConfigureEvent, fireDeleteDragDataEvent, fireDragMotionEvent, fireDropDragEvent, fireEndDragEvent, fireExposeEvent, fireFocusEvent, fireKeyEvent, fireLeaveDragDestinationEvent, fireLifeCycleEvent, fireMouseEvent, fireMouseMotionEvent, fireReceiveDragDataEvent, fireRequestDragDataEvent, fireStartDragEvent, getAccessible, getAllocation, getCanFocus, getColormap, getContext, getData, getDisplay, getDragData, getExtensionEvents, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getSensitive, getStyle, getToplevel, getWidget, getWindow, grabDefault, grabFocus, gtk_drag_dest_set, gtk_drag_dest_unset, gtk_drag_finish, gtk_drag_get_data, gtk_drag_highlight, gtk_drag_source_set_icon_pixbuf, gtk_drag_source_set_icon_stock, gtk_drag_source_set_icon, gtk_drag_source_set, gtk_drag_source_unset, gtk_drag_unhighlight, gtk_widget_activate, gtk_widget_add_accelerator, gtk_widget_add_events, gtk_widget_add_mnemonic_label, gtk_widget_can_activate_accel, gtk_widget_child_focus, gtk_widget_child_notify, gtk_widget_class_path, gtk_widget_create_pango_context, gtk_widget_create_pango_layout, gtk_widget_destroy, gtk_widget_destroyed, gtk_widget_ensure_style, gtk_widget_event, gtk_widget_freeze_child_notify, gtk_widget_get_accessible, gtk_widget_get_allocation, gtk_widget_get_ancestor, gtk_widget_get_child_requisition, gtk_widget_get_child_visible, gtk_widget_get_colormap, gtk_widget_get_composite_name, gtk_widget_get_default_colormap, gtk_widget_get_default_direction, gtk_widget_get_default_style, gtk_widget_get_default_visual, gtk_widget_get_direction, gtk_widget_get_display, gtk_widget_get_events, gtk_widget_get_extension_events, gtk_widget_get_modifier_style, gtk_widget_get_name, gtk_widget_get_pango_context, gtk_widget_get_parent_window, gtk_widget_get_parent, gtk_widget_get_pointer, gtk_widget_get_root_window, gtk_widget_get_screen, gtk_widget_get_sensitive, gtk_widget_get_settings, gtk_widget_get_size_request, gtk_widget_get_style, gtk_widget_get_toplevel, gtk_widget_get_type, gtk_widget_get_visual, gtk_widget_get_window, gtk_widget_grab_default, gtk_widget_grab_focus, gtk_widget_has_screen, gtk_widget_hide_all, gtk_widget_hide_on_delete, gtk_widget_hide, gtk_widget_intersect, gtk_widget_is_ancestor, gtk_widget_is_focus, gtk_widget_list_accel_closures, gtk_widget_list_mnemonic_labels, gtk_widget_map, gtk_widget_mnemonic_activate, gtk_widget_modify_base, gtk_widget_modify_bg, gtk_widget_modify_fg, gtk_widget_modify_font, gtk_widget_modify_style, gtk_widget_modify_text, gtk_widget_path, gtk_widget_pop_colormap, gtk_widget_pop_composite_child, gtk_widget_push_colormap, gtk_widget_push_composite_child, gtk_widget_queue_draw_area, gtk_widget_queue_draw, gtk_widget_queue_resize, gtk_widget_realize, gtk_widget_region_intersect, gtk_widget_remove_accelerator, gtk_widget_remove_mnemonic_label, gtk_widget_render_icon, gtk_widget_reparent, gtk_widget_reset_rc_styles, gtk_widget_send_expose, gtk_widget_set_accel_path, gtk_widget_set_app_paintable, gtk_widget_set_child_visible, gtk_widget_set_colormap, gtk_widget_set_composite_name, gtk_widget_set_default_colormap, gtk_widget_set_default_direction, gtk_widget_set_direction, gtk_widget_set_double_buffered, gtk_widget_set_events, gtk_widget_set_extension_events, gtk_widget_set_name, gtk_widget_set_parent_window, gtk_widget_set_parent, gtk_widget_set_redraw_on_allocate, gtk_widget_set_scroll_adjustments, gtk_widget_set_sensitive, gtk_widget_set_size_request, gtk_widget_set_state, gtk_widget_set_style, gtk_widget_shape_combine_mask, gtk_widget_show_all, gtk_widget_show_now, gtk_widget_show, gtk_widget_size_allocate, gtk_widget_size_request, gtk_widget_style_get_property, gtk_widget_thaw_child_notify, gtk_widget_translate_coordinates, gtk_widget_unmap, gtk_widget_unparent, gtk_widget_unrealize, handleButtonPressed, handleButtonReleased, handleConfigure, handleDelete, handleDestroy, handleDragDataDeleted, handleDragDataReceived, handleDragDataRequested, handleDragDestinationLeft, handleDragDropped, handleDragEnded, handleDragMotionOccurred, handleDragStarted, handleExpose, handleFocusIn, handleFocusOut, handleHide, handleKeyPressed, handleKeyReleased, handleMap, handleMouseEnter, handleMouseLeave, handleMouseMotion, handleNoExpose, handleRealize, handleScroll, handleShow, handleUnmap, handleUnrealize, hasFocus, hasScreen, hide, hideAll, highlight, highlight, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeAccelerator, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setCanFocus, setColormap, setDoubleBuffered, setDragDestination, setDragIcon, setDragIconPixbuf, setDragIconStock, setDragSource, setEvents, setExtensionEvents, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll, unHighlight, unHighlight |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
getFlags, gtk_object_destroy, gtk_object_get_type, gtk_object_sink, setFlags, sink |
Methods inherited from class org.gnu.glib.GObject |
---|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getPixbufProperty, getProperty, getStringFromHandle, getStringProperty, hasProperty, instantiateJGObjectFromGType, notify, removeEventHandler, removeListener, retrieveGObject, setBooleanProperty, setData, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode, setHandle |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.gnu.glade.LibGlade glade
private org.gnu.glade.LibGlade glade_fc
private View view
private org.gnu.gtk.Action close
private org.gnu.gtk.Action open_core
private org.gnu.gtk.Action open_executable
private org.gnu.gtk.Action attach_proc
private org.gnu.gtk.Action copy
private org.gnu.gtk.ToggleAction find
private org.gnu.gtk.Action prefsLaunch
private org.gnu.gtk.Action run
private org.gnu.gtk.Action stop
private org.gnu.gtk.Action step
private org.gnu.gtk.Action next
private org.gnu.gtk.Action cont
private org.gnu.gtk.Action finish
private org.gnu.gtk.Action terminate
private org.gnu.gtk.Action stepAsm
private org.gnu.gtk.Action nextAsm
private org.gnu.gtk.Action stackUp
private org.gnu.gtk.Action stackDown
private org.gnu.gtk.Action stackTop
private org.gnu.gtk.Action stepInDialog
private org.gnu.gtk.Action stepOverDialog
private org.gnu.gtk.Action stepOutDialog
private org.gnu.gtk.Action stepInstructionDialog
private org.gnu.gtk.Action stepInstructionNextDialog
private org.gnu.gtk.ToggleAction toggleRegisterWindow
private org.gnu.gtk.ToggleAction toggleMemoryWindow
private org.gnu.gtk.ToggleAction toggleDisassemblyWindow
private org.gnu.gtk.ToggleAction toggleConsoleWindow
private org.gnu.gtk.ToggleAction toggleThreadDialog
private org.gnu.gtk.ToggleAction toggleStepDialog
private org.gnu.gtk.ComboBox viewPicker
private ThreadSelectionDialog threadDialog
private StepDialog stepDialog
private DOMFrysk[] dom
private Proc[] swProc
private int current
private int numProcs
private CurrentStackView stackView
private VariableWatchView watchView
private ConsoleWindow conWin
private TermWindow termWin
private HashMap termHash
protected boolean SW_active
private DebugInfoFrame currentFrame
private Task currentTask
private FrameIdentifier fi
private DebugInfoFrame[][] frames
private org.gnu.gtk.ToolTips tips
private SteppingEngine steppingEngine
private SourceWindow.SourceWindowListener listener
private SourceWindow.StackMouseListener mouseListener
private SourceWindowFactory.AttachedObserver attachedObserver
private SourceWindowFactory.AttachedObserver addedAttachedObserver
private SourceWindow.LockObserver lock
private org.gnu.gtk.FileChooserDialog chooser
private org.gnu.gtk.FileChooserDialog fc
private Logger logger
public static final String LINE_ENTRY
public static final String FIND_TEXT
public static final String FIND_BOX
public static final String FIND_LABEL
public static final String LINE_LABEL
public static final String NEXT_FIND
public static final String PREV_FIND
public static final String HIGHLIGHT_FIND
public static final String CASE_FIND
public static final String CLOSE_FIND
public static final String GLADE_TOOLBAR_NAME
public static final String FILE_SELECTOR
public static final String VIEW_COMBO_BOX
public static final String TEXT_WINDOW
public static final String SOURCE_WINDOW
public static final String GLADE_FILE
public static final String FILECHOOSER_GLADE
public static final String PROC_LIST_GLADE
private boolean SW_add
Constructor Detail |
---|
public SourceWindow(org.gnu.glade.LibGlade glade, Proc proc)
SourceWindowFactory
class.
glade
- The LibGlade object that contains the window for this
instanceproc
- The Proc to have this SourceWindow observepublic SourceWindow(org.gnu.glade.LibGlade glade, Proc[] procs)
SourceWindowFactory
class.
glade
- The LibGlade object that contains the window for this
instanceprocs
- The array of Procs to have this new SourceWindow
observespublic SourceWindow(org.gnu.glade.LibGlade glade, DebugInfoFrame trace)
SourceWindowFactory
class.
glade
- The LibGlade object that contains the window for this
instancetrace
- The stack frame that represents the current state of
executionpublic SourceWindow(org.gnu.glade.LibGlade glade, DebugInfoFrame[] traces)
SourceWindowFactory
class.
glade
- The LibGlade object that contains the window for this
instancetraces
- The stack frames that represents the current state of
executionpublic SourceWindow(org.gnu.glade.LibGlade glade, Proc proc, SourceWindowFactory.AttachedObserver ao)
SourceWindowFactory
class.
glade
- The LibGlade object that contains the window for this
instanceproc
- The Proc to have this SourceWindow observeao
- The AttachedObserver currently blocking the given ProcMethod Detail |
---|
private void finishSourceWin()
public void populateStackBrowser(DebugInfoFrame[][] frames)
frames
- An array of DebugInfoFrames used to popuate information
inside the stack frame window.private void allProcsExited()
public void addVariableTrace(String var)
var
- The variable to tracepublic void removeVariableTrace(String var)
var
- The value to removepublic void removeDisplay(UpdatingDisplayValue disp)
disp
- The display to removepublic void updateThreads()
protected void procReblocked()
protected void addProc(String exe, String env_variables, String options, String stdin, String stdout, String stderr)
exe
- -
the executable's path to startenv_variables
- -
reserved for future use, will be used to pass the
environment arguments to the executableoptions
- -
options to pass to tDEBUG_WINDOW_MODEhe task on the
command linestdin
- -
device to point the executed task's stdin tostdout
- -
device to point the executed task's stdout tostserr
- -
device to point the executed task's stderr topublic void appendTask(Proc proc)
protected void appendProc(Task task)
task
- The Task whose Proc is to be appended to this windowprotected void removeProc(boolean kill)
kill
- Whether or not the process should be killed after a
detach is performed.public Proc getSwProc()
public DOMFrysk getDOM()
public View getView()
public CurrentStackView getStackView()
public boolean isRunning()
public SourceWindow.LockObserver getLockObserver()
public SteppingEngine getSteppingEngine()
private DebugProcess getCurrentDebugProcess()
private void resetSearchBox()
private void createActions(org.gnu.gtk.AccelGroup ag)
public void activateProc()
private void examineCoreFile(String filename)
filename
- -
String containing the path to the core fileprivate void createMenus()
private void createToolBar()
private void desensitize()
private void resensitize()
public void setShowToolbar(boolean value)
value
- Whether or not to show the toolbarprivate void createSearchBar()
private void attachEvents()
private void launchPreferencesWindow()
private void showFindBox()
private void hideFindBox()
private void gotoLine(int line)
private void doFindNext()
private void doFindPrev()
private void doHighlightAll()
private void switchToSourceMode()
private void switchToAsmMode()
private void switchToMixedMode()
private void switchToSourceAsmMode()
private void setSourceLabel(String header, String task, int pid, int tid, boolean noDOMFunction, DOMSource source)
task_name
- is a string containing the command used to start the
task.proc_id
- is an integer containing the PID of the task being
displayed.tid
- is an integer with the thread id being displayednoDOMFunction
- is a boolean indicating whether or not the parser
could find the function the process is currently executing insource
- is the DOMSource of the source code being displayedprivate void updateSourceLabel(DebugInfoFrame sf)
sf
- is the StackFrame that has been selected for viewing
in the source frame.private void updateShownStackFrame(DebugInfoFrame selected, int current)
selected
- The selected StackFramecurrent
- The index of the currently selected Procprivate void menuEvent(org.gnu.gtk.event.MouseEvent event)
event
- The generated MouseEventprivate void detachProc(boolean kill)
private void removeTags()
private void createTags()
private void doRun()
private void doStop()
private void toggleThreadDialog()
private void toggleStepDialog()
private void doStep()
protected void doStep(LinkedList tasks)
private void doNext()
protected void doNext(LinkedList tasks)
private void doContinue()
private void doFinish()
protected void doFinish(LinkedList tasks)
protected void doAdvance()
private void doTerminate()
private void doAsmStep()
protected void doStepAsm(LinkedList tasks)
tasks
- The list of tasks to step.private void doAsmNext()
protected void doAsmNext(LinkedList tasks)
private void doStackUp()
private void doStackDown()
private void doStackTop()
private void doJumpToFunction(String name)
private void toggleRegisterWindow()
private void toggleMemoryWindow()
private void toggleDisassemblyWindow()
private void toggleConsoleWindow()
private String[] createTermWindow(String filepath)
private void handleDialog(int type)
private void executeTasks(LinkedList tasks)
private DebugInfoFrame[] generateProcStackTrace(Proc proc, int current)
proc
- The Proc to be updatedcurrent
- The new Proc array index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |