blob: 1a38f3321e3d187b7e7ce45ec2c51cb5d6bec2d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Register display window class definition for Insight.
# Copyright 1998, 1999, 2001 Red Hat, Inc.
#
# Written by Keith Seitz (keiths@redhat.com)
# based on work by Martin Hunt (hunt@redhat.com)
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License (GPL) as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
class RegWin {
inherit EmbeddedWin GDBWin
private {
variable _change_list {}
variable _menuitems
# Display data for the table
variable _data
# Mapping of table cell index to register number
variable _register
# Mapping of register number to table cell index. "hidden" if
# the register was "removed" from the display.
variable _cell
# Display formats for the registers (indexed by regnum)
variable _format
# Is REGNUM editable?
variable _editable
# Is REGNUM typed?
variable _typed
# The list of registers we're displaying
variable _reg_display_list {}
# Size of columns
variable _col_size
# Fencepost
variable _running 0
# Table layout/display methods
method _build_win {}
method _dimensions {}
method _layout_table {}
method _prefs_changed {pref value}
method _size_cell_column {cell down}
method _size_column {col down}
# Table event handlers and related methods
method _accept_edit {}
method _add_to_watch {rn}
method _but3 {x y X Y}
method _delete_from_display {rn}
method _display_all {}
method _edit {x y}
method _edit_menu {rn}
method _move {direction}
method _post_menu {}
method _select {x y}
method _select_cell {cell}
method _unedit {}
# Register operations
method _get_value {rn}
method _change_format {rn}
method _update_register {rn}
}
public {
method constructor {args}
method destructor {}
#
# Gdb Events
#
method busy {event}
method idle {event}
method set_variable {event}
method update {event}
method arch_changed {event}
}
}
|