diff options
author | Tom Tromey <tromey@redhat.com> | 2000-12-07 20:14:02 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2000-12-07 20:14:02 +0000 |
commit | 2dabfe8f7cbfe1cf3bb36745f9197c2c59382090 (patch) | |
tree | d439533b1b44fa0c5453685cc4a9c62f62782185 /gdb/gdbtk/library/srcwin.ith | |
parent | 792ea30b38e03a95ed414cd627f188f9403210d6 (diff) | |
download | gdb-2dabfe8f7cbfe1cf3bb36745f9197c2c59382090.tar.gz |
* bpwin.itb (BpWin::goto_bp): Handle multiple source windows.
* srctextwin.itb (SrcTextWin::get_file): New method.
(SrcTextWin::set_tag_to_stack): New method.
* srctextwin.ith (get_file): Declare.
* srcwin.ith (update_hook_init, window_list, pc_window): New
common variables.
(_choose_window, choose_and_update, is_fixed, get_file): Declare.
* srcwin.itb (SrcWin::_choose_window): New method.
(SrcWin::choose_and_update): Likewise.
(SrcWin::_update): Renamed from update. Now private. Added `loc'
argument.
(SrcWin::get_file): New method.
(SrcWin::is_fixed): Likewise.
(SrcWin::constructor): Only add update hook once. Append this
object to window list.
(SrcWin::destructor): Don't add update hook. Remove this object
from window list. Clear pc_window if necessary.
(SrcWin::get_top): New method.
(SrcWin::_set_tag_to_stack): New method.
(SrcWin::choose_and_display): New method.
Diffstat (limited to 'gdb/gdbtk/library/srcwin.ith')
-rw-r--r-- | gdb/gdbtk/library/srcwin.ith | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/gdb/gdbtk/library/srcwin.ith b/gdb/gdbtk/library/srcwin.ith index f955158d445..5ad1da70a51 100644 --- a/gdb/gdbtk/library/srcwin.ith +++ b/gdb/gdbtk/library/srcwin.ith @@ -48,11 +48,14 @@ class SrcWin { method stack {cmd} method test_get {var {private_func 0}} method toggle_updates {value} - method update {} method toolbar {state} method inferior {action} method clear_file {} + method get_file {} + method is_fixed {} + proc choose_and_update {} + proc choose_and_display {tag linespec} proc point_to_main {} } @@ -64,6 +67,10 @@ class SrcWin { method _set_name { val {found 1} } method _set_state {varname} method _update_title {name} + method _update {loc} + method get_top {} + method _set_tag_to_stack {} + proc _choose_window {file} variable _statbar variable _status variable _toolbar @@ -75,12 +82,18 @@ class SrcWin { variable _mangled_func variable Tracing variable saved_msg "" ;# static - + # statics used for downloads variable last_section "" variable last_section_start 0 variable last_done 0 - + + # These keep track of the current PC window and the list of all + # source windows. + common window_list "" + common pc_window "" + common update_hook_init 0 + # fenceposts variable Running 0 variable NoRun 0 |