Logo Search packages:      
Sourcecode: ddd version File versions  Download package

Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Static Private Attributes

SourceView Class Reference

Collaboration diagram for SourceView:
Collaboration graph
[legend]

List of all members.

Public Types

enum  SearchDirection { forward, backward }

Public Member Functions

void create_shells ()
 SourceView (Widget parent)

Static Public Member Functions

static bool all_bps (const IntArray &nrs)
static string all_numbers (const IntArray &nrs)
static string bp_pos (int num)
static BreakPointbreakpoint_at (const string &pos)
static bool can_go_down ()
static bool can_go_up ()
static void check_remainder (string &info_output)
static string class_path ()
static void clear_bp (const string &a, Widget origin=0)
static void clear_code_cache ()
static string clear_command (string arg, bool clear_next=false, int first_bp=0)
static void clear_execution_position ()
static void clear_file_cache ()
static Widget code ()
static Widget code_form ()
static string command_list (const string &cmd)
static void create_bp (const string &a, Widget origin=0)
static void create_temp_bp (const string &a, Widget origin=0)
static void delete_bp (int nr, Widget origin=0)
static void delete_bps (const IntArray &nrs, Widget origin=0)
static string delete_command (int bp_nr)
static void disable_bp (int nr, Widget origin=0)
static void disable_bps (const IntArray &nrs, Widget origin=0)
static void edit_bp (int nr, Widget origin=0)
static void edit_bps (IntArray &nrs, Widget origin=0)
static void edit_breakpoint_properties (int bp_nr)
static void EditBreakpointsCB (Widget, XtPointer, XtPointer)
static void enable_bp (int nr, Widget origin=0)
static void enable_bps (const IntArray &nrs, Widget origin=0)
static string file_of_cursor ()
static void find (const string &s, SearchDirection direction=forward, bool words_only=false, bool case_sensitive=false, Time time=CurrentTime)
static string full_path (string file)
static int get_frame ()
static string get_line (string position)
static bool get_state (std::ostream &os)
static string get_word_at_event (Widget w, XEvent *event, XmTextPosition &first_pos, XmTextPosition &last_pos)
static string get_word_at_pos (Widget w, XmTextPosition pos, XmTextPosition &startpos, XmTextPosition &endpos)
static void goto_entry (const string &file, int line, const string &address, bool exec_pos)
static bool have_exec_pos ()
static bool have_pc ()
static bool have_selection ()
static bool have_source ()
static MString help_on_glyph (Widget glyph, bool detailed)
static MString help_on_pos (Widget w, XmTextPosition pos, XmTextPosition &ref, bool detailed)
static string line_of_cursor ()
static void lookup (string s, bool silent=false)
static bool move_pc (const string &address, Widget origin=0)
static string name_of_source ()
static bool need_pc ()
static int next_breakpoint_number ()
static string numbers (const IntArray &nrs)
static void process_breakpoints (string &info_breakpoints_output)
static void process_disassemble (const string &disassemble_output)
static void process_frame (int frame_nr)
static void process_frame (string &frame_output)
static void process_info_bp (string &info_output, const string &break_arg="")
static void process_info_line_main (string &info_output)
static void process_pwd (string &pwd_output)
static void process_registers (string &info_register_output)
static void process_threads (string &info_threads_output)
static void process_use (string &use_output)
static void process_where (const string &where_output)
static string pwd ()
static void read_file (string file_name, int initial_line=1, bool force_reload=false, bool silent=false)
static void refresh_registers ()
static string refresh_registers_command ()
static void refresh_stack_frames ()
static void refresh_threads (bool all_threadgroups)
static bool register_required ()
static void reload ()
static void reset ()
static void set_all_registers (bool value)
static void set_bp (const string &a, bool set, bool temp, const char *cond="", Widget origin=0)
static void set_bp_commands (int nr, const StringArray &commands, Widget origin=0)
static void set_bp_commands (IntArray &nrs, const StringArray &commands, Widget origin=0)
static void set_disassemble (bool value)
static void set_display_glyphs (bool value)
static void set_display_line_numbers (bool value)
static bool set_frame_func (const string &func)
static void set_frame_pos (int arg, int pos=0)
static void set_indent (int source_indent, int code_indent)
static void set_max_glyphs (int max_glyphs)
static void set_tab_width (int width)
static void show_execution_position (const string &position="", bool stopped=false, bool signaled=false, bool silent=false)
static void show_pc (const string &pc, XmHighlightMode mode=XmHIGHLIGHT_NORMAL, bool stopped=false, bool signaled=false)
static void show_position (string position, bool silent=false)
static void showing_earlier_state (bool set)
static Widget source ()
static Widget source_form ()
static void temp_n_cont (const string &a, Widget origin=0)
static bool thread_required ()
static void update_glyphs (Widget w=0)
static void ViewRegistersCB (Widget, XtPointer, XtPointer)
static void ViewStackFramesCB (Widget, XtPointer, XtPointer)
static void ViewThreadsCB (Widget, XtPointer, XtPointer)
static BreakPointwatchpoint_at (const string &expr)
static bool where_required ()

Static Public Attributes

static Position arrow_x_offset = -5
static bool cache_glyph_images = true
static bool cache_machine_code = true
static bool cache_source_files = true
static int code_indent_amount = 4
static int line_indent_amount = 4
static int lines_above_cursor = 2
static int lines_below_cursor = 3
static int max_breakpoint_number = 99
static int max_popup_expr_length = 20
static Position multiple_stop_x_offset = stop_width
static int script_indent_amount = 4
static int source_indent_amount = 4
static Position stop_x_offset = +6

Static Private Member Functions

static void _set_bps_cond (const IntArray &nrs, const string &cond, int make_false, Widget origin)
static void _show_execution_position (const string &file, int line, bool silent, bool stopped)
static void ActivateGlyphCB (Widget, XtPointer, XtPointer)
static void add_current_to_history ()
static void add_position_to_history (const string &file_name, int line, bool stopped)
static void ApplyBreakpointPropertiesCB (Widget, XtPointer, XtPointer)
static bool base_matches (const string &file1, const string &file2)
static bool bp_matches (BreakPoint *bp, int line=0)
static bool bp_matches (BreakPoint *bp, const string &file, int line=0)
static void bp_popup_deleteCB (Widget, XtPointer, XtPointer)
static void bp_popup_disableCB (Widget, XtPointer, XtPointer)
static void bp_popup_infoCB (Widget, XtPointer, XtPointer)
static void bp_popup_set_pcCB (Widget, XtPointer, XtPointer)
static int breakpoint_number (const string &bp_info, string &file)
static void BreakpointCmdCB (Widget, XtPointer, XtPointer)
static void CheckModificationCB (Widget, XtPointer, XtPointer)
static void CheckScrollCB (Widget, XtPointer, XtPointer)
static void CheckScrollWorkProc (XtPointer, XtIntervalId *)
static void clearBP (void *client_data, XtIntervalId *timer)
static void clearJumpBP (const string &answer, void *client_data)
static void CodeDialogPoppedDownCB (Widget, XtPointer, XtPointer)
static bool copy_bp (int nr, const string &address, Widget origin=0)
static void copy_breakpoint_properties (int old_bp, int new_bp)
static void copy_colors (Widget w, Widget origin)
static Widget create_glyph (Widget form_w, const _XtString name, unsigned char *bits, int width, int height)
static void create_text (Widget parent, const char *base, bool editable, Widget &form, Widget &text)
static Boolean CreateGlyphsWorkProc (XtPointer)
static string current_source_name ()
static stringcurrent_text (Widget w)
static void DeleteBreakpointsCB (Widget, XtPointer, XtPointer)
static void deleteGlyphAct (Widget, XEvent *, String *, Cardinal *)
static void DeleteInfoCB (Widget, XtPointer, XtPointer)
static void disable_bps_cond (const IntArray &nrs, Widget origin=0)
static void DisableBreakpointsCB (Widget, XtPointer, XtPointer)
static void doubleClickAct (Widget, XEvent *, String *, Cardinal *)
static void dragGlyphAct (Widget, XEvent *, String *, Cardinal *)
static void dropGlyphAct (Widget, XEvent *, String *, Cardinal *)
static void EditBreakpointCommandsCB (Widget, XtPointer, XtPointer)
static void EditBreakpointPropertiesCB (Widget, XtPointer, XtPointer)
static void enable_bps_cond (const IntArray &nrs, Widget origin=0)
static void EnableBreakpointsCB (Widget, XtPointer, XtPointer)
static void EndBreakpointCommandsCB (Widget, XtPointer, XtPointer)
static void endSelectWordAct (Widget, XEvent *, String *, Cardinal *)
static bool file_matches (const string &file1, const string &file2)
static XmTextPosition find_pc (const string &pc)
static void find_word_bounds (Widget w, const XmTextPosition pos, XmTextPosition &startpos, XmTextPosition &endpos)
static void followGlyphAct (Widget, XEvent *, String *, Cardinal *)
static bool function_is_larger_than (string pc, int max_size)
static void get_func_at (const string &address, string &func, int &offset)
static bool get_line_of_pos (Widget w, XmTextPosition pos, int &line_nr, string &address, bool &in_text, int &bp_nr)
static void getBreakpointNumbers (IntArray &numbers)
static bool glyph_pos_to_xy (Widget glyph, XmTextPosition pos, Position &x, Position &y)
static XmTextPosition glyph_position (Widget w, XEvent *e, bool normalize=true)
static const WidgetArrayglyphs_to_be_updated ()
static MString help_on_bp (int bp, bool detailed)
static int indent_amount (Widget w, int pos=-1)
static bool is_code_widget (Widget w)
static bool is_current_file (const string &file)
static bool is_source_widget (Widget w)
static int line_height (Widget text_w)
static void line_popup_set_pcCB (Widget, XtPointer, XtPointer)
static void line_popup_set_tempCB (Widget, XtPointer, XtPointer)
static void line_popup_setCB (Widget, XtPointer, XtPointer)
static void line_popup_temp_n_contCB (Widget, XtPointer, XtPointer)
static void log_glyph (Widget w, int n=-1)
static void log_glyphs ()
static void LookupBreakpointCB (Widget, XtPointer, XtPointer)
static string make_address (long address)
static void MakeBreakpointsTempCB (Widget, XtPointer, XtPointer)
static Widget map_arrow_at (Widget w, XmTextPosition pos)
static Widget map_drag_arrow_at (Widget w, XmTextPosition pos, Widget origin=0)
static Widget map_drag_stop_at (Widget w, XmTextPosition pos, Widget origin=0)
static void map_glyph (Widget &w, Position x, Position y)
static Widget map_stop_at (Widget w, XmTextPosition pos, WidgetArray &stops, int &count, TextPositionArray &positions)
static bool move_bp (int nr, const string &address, Widget origin=0, bool copy=false)
static void move_breakpoint_properties (int old_bp, int new_bp)
static bool new_bad_file (const string &file_name)
static void NewBreakpointCB (Widget, XtPointer, XtPointer)
static void NewBreakpointDCB (Widget, XtPointer, XtPointer)
static void NewWatchpointCB (Widget, XtPointer, XtPointer)
static void NewWatchpointDCB (Widget, XtPointer, XtPointer)
static void normalize_address (string &address)
static Pixmap pixmap (Widget w, unsigned char *bits, int width, int height)
static XmTextPosition pos_of_line (int line)
static void post_file_error (const string &file_name, const string &text, const _XtString name=0, Widget origin=0)
static void post_file_warning (const string &file_name, const string &text, const _XtString name=0, Widget origin=0)
static void PrintWatchpointCB (Widget, XtPointer, XtPointer)
static String read_class (const string &class_name, string &file_name, SourceOrigin &origin, long &length, bool silent)
static int read_current (string &file_name, bool force_reload=false, bool silent=false)
static String read_from_gdb (const string &source_name, long &length, bool silent)
static String read_indented (string &file_name, long &length, SourceOrigin &origin, bool silent=false)
static String read_local (const string &file_name, long &length, bool silent)
static String read_remote (const string &file_name, long &length, bool silent)
static void RecordBreakpointCommandsCB (Widget, XtPointer, XtPointer)
static void RecordingHP (Agent *, void *, void *)
static void refresh_bp_disp (bool reset=false)
static void refresh_code_bp_disp (bool reset=false)
static void refresh_codeOQC (const string &answer, void *data)
static void refresh_source_bp_disp (bool reset=false)
static void RefreshBreakpointsHP (Agent *, void *, void *)
static void RegisterDialogPoppedDownCB (Widget, XtPointer, XtPointer)
static void reset_done (const string &answer, void *data)
static void SelectFrameCB (Widget, XtPointer, XtPointer)
static void SelectRegisterCB (Widget, XtPointer, XtPointer)
static void SelectThreadCB (Widget, XtPointer, XtPointer)
static void set_bps_cond (const IntArray &nrs, const string &cond, Widget origin=0)
static void set_bps_cond_enabled (const IntArray &nrs, bool enabled, Widget origin=0)
static void set_code (const string &code, const string &start, const string &end)
static void set_source_argCB (Widget, XtPointer, XtPointer)
static void set_text_popup_label (int item, const string &arg, bool sens)
static void set_text_popup_resource (int item, const string &arg)
static void setArgAct (Widget, XEvent *, String *, Cardinal *)
static void SetBreakpointConditionCB (Widget, XtPointer, XtPointer)
static void SetBreakpointIgnoreCountCB (Widget, XtPointer, XtPointer)
static void SetBreakpointIgnoreCountNowCB (XtPointer, XtIntervalId *)
static void SetInsertionPosition (Widget w, XmTextPosition pos, bool fromTop=false)
static void setSelection (XtPointer client_data, XtIntervalId *timer)
static void setup_where_line (string &line)
static void SetWatchModeCB (Widget, XtPointer, XtPointer)
static void ShowPosition (Widget w, XmTextPosition pos, bool fromTop=false)
static void srcpopupAct (Widget, XEvent *, String *, Cardinal *)
static void StackDialogPoppedDownCB (Widget, XtPointer, XtPointer)
static void startSelectWordAct (Widget, XEvent *, String *, Cardinal *)
static void text_popup_breakCB (Widget, XtPointer, XtPointer)
static void text_popup_clearCB (Widget, XtPointer, XtPointer)
static void text_popup_disp_refCB (Widget, XtPointer, XtPointer)
static void text_popup_dispCB (Widget, XtPointer, XtPointer)
static void text_popup_lookupCB (Widget, XtPointer, XtPointer)
static void text_popup_print_refCB (Widget, XtPointer, XtPointer)
static void text_popup_printCB (Widget, XtPointer, XtPointer)
static void text_popup_watch_refCB (Widget, XtPointer, XtPointer)
static void text_popup_watchCB (Widget, XtPointer, XtPointer)
static void text_popup_whatisCB (Widget, XtPointer, XtPointer)
static void ThreadCommandCB (Widget, XtPointer, XtPointer)
static void ThreadDialogPoppedDownCB (Widget, XtPointer, XtPointer)
static void translate_glyph_pos (Widget glyph, Widget text, int &x, int &y)
static void unmap_drag_arrow (Widget w)
static void unmap_drag_stop (Widget w)
static void unmap_glyph (Widget w)
static void update_glyphs_now ()
static void update_properties_panel (BreakpointPropertiesInfo *info)
static void update_properties_panels ()
static void update_title ()
static void UpdateBreakpointButtonsCB (Widget, XtPointer, XtPointer)
static void updateGlyphsAct (Widget, XEvent *, String *, Cardinal *)
static void UpdateGlyphsWorkProc (XtPointer, XtIntervalId *)

Static Private Attributes

static TextPositionArray _pos_of_line
static XtActionsRec actions []
static MMDesc address_popup []
static bool all_registers = false
static Widget all_registers_w = 0
static bool at_lowest_frame = true
static StringArray bad_files
static StringArray bp_addresses
static MMDesc bp_area []
static BreakPointMap bp_map
static MMDesc bp_popup []
static IntIntArrayAssoc bps_in_line
static Widget breakpoint_list_w = 0
static bool change_glyphs = true
static WidgetArray changed_glyphs
static bool checking_scroll = false
static CodeCache code_cache
static Widget code_form_w = 0
static Widget code_text_w = 0
static string current_class_path = NO_GDB_ANSWER
static string current_code
static string current_code_end
static string current_code_start
static int current_drag_breakpoint = -1
static Widget current_drag_origin = 0
static string current_file_name = ""
static int current_frame = -1
static SourceOrigin current_origin = ORIGIN_NONE
static string current_pwd = cwd()
static string current_source
static string current_threadgroup = "system"
static bool disassemble = true
static bool display_glyphs = true
static bool display_line_numbers = false
static Widget down_w = 0
static Widget drag_arrows [2] = {0, 0}
static Widget drag_conds [2] = {0, 0}
static Widget drag_stops [2] = {0, 0}
static Widget drag_temps [2] = {0, 0}
static Widget edit_breakpoints_dialog_w = 0
static StringStringAssoc file_cache
static StringStringAssoc file_name_cache
static Widget frame_list_w = 0
static bool frame_pos_locked = false
static Widget grey_arrows [2] = {0, 0}
static WidgetArray grey_conds [2]
static WidgetArray grey_stops [2]
static WidgetArray grey_temps [2]
static Widget int_registers_w = 0
static XmTextPosition last_end_highlight = 0
static XmTextPosition last_end_highlight_pc = 0
static string last_execution_file = ""
static int last_execution_line = 0
static string last_execution_pc = ""
static int last_frame_pos = 0
static XmTextPosition last_pos = 0
static XmTextPosition last_pos_pc = 0
static string last_shown_pc = ""
static XmTextPosition last_start_highlight = 0
static XmTextPosition last_start_highlight_pc = 0
static XmTextPosition last_top = 0
static XmTextPosition last_top_pc = 0
static int line_count = 0
static MMDesc line_popup []
static int max_breakpoint_number_seen = 0
static StringOriginAssoc origin_cache
static Widget past_arrows [2] = {0, 0}
static Widget plain_arrows [2] = {0, 0}
static WidgetArray plain_conds [2]
static WidgetArray plain_stops [2]
static WidgetArray plain_temps [2]
static bool register_dialog_popped_up = false
static Widget register_dialog_w = 0
static Widget register_list_w = 0
static WatchMode selected_watch_mode = WATCH_CHANGE
static Widget signal_arrows [2] = {0, 0}
static bool signal_received = false
static Widget source_form_w = 0
static StringStringAssoc source_name_cache
static Widget source_text_w = 0
static bool stack_dialog_popped_up = false
static Widget stack_dialog_w = 0
static int tab_width = DEFAULT_TAB_WIDTH
static MMDesc text_popup []
static bool thread_dialog_popped_up = false
static Widget thread_dialog_w = 0
static Widget thread_list_w = 0
static Widget toplevel_w = 0
static Widget up_w = 0
static bool update_code_glyphs = false
static bool update_source_glyphs = false

Detailed Description

Definition at line 77 of file SourceView.h.


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

Generated by  Doxygen 1.6.0   Back to index