OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [gdbtk/] [library/] [targetselection.ith] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Target selection dialog class definition for GDBtk.
2
# Copyright 1997, 1998, 1999 Cygnus Solutions
3
#
4
# This program is free software; you can redistribute it and/or modify it
5
# under the terms of the GNU General Public License (GPL) as published by
6
# the Free Software Foundation; either version 2 of the License, or (at
7
# your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
 
14
 
15
class TargetSelection {
16
  inherit ModalDialog ManagedWin
17
 
18
  private {
19
    variable f
20
    variable fr
21
    variable target
22
    variable saved_baud
23
    variable saved_port
24
    variable saved_main
25
    variable saved_exit
26
    variable saved_check
27
    variable saved_verb
28
    variable saved_portname
29
    variable saved_hostname
30
    variable saved_attach
31
    variable saved_load
32
    variable saved_run
33
    variable saved_cont
34
    variable saved_options
35
    variable saved_after_attaching
36
    variable _after_entry
37
    variable changes 0
38
    variable target_list ""
39
 
40
    common db_inited    0
41
    common prefs_inited 0
42
    common trace_inited 0
43
 
44
    # The Connection frame has three "sections"; the first contains
45
    # a combobox with all the targets. The second can either be
46
    # a combobox listing available baud rates or an entry for specifying
47
    # the hostname of a TCP connection. The actual widget mapped onto the
48
    # screen is saved in MAPPED1. The third section contains either a
49
    # combobox for the serial port or an entry for the portnumber. The
50
    # widget actually mapped onto the screen is saved in MAPPED2.
51
    variable mapped1
52
    variable mapped2
53
 
54
    variable Width 20
55
    variable MoreButton
56
    variable MoreFrame
57
    variable MoreLabel
58
 
59
    variable RunMethod
60
 
61
    proc _init_prefs {}
62
    proc default_port {}
63
 
64
    method build_win {}
65
    method cancel {}
66
    method change_baud {w {baud ""}}
67
    method change_target {w {name ""}}
68
    method config_dialog {t}
69
    method fill_rates {}
70
    method fill_targets {}
71
    method get_target {name}
72
    method help {}
73
    method _init {}
74
    method _init_target {}
75
    method port_list {}
76
    method save {}
77
    method set_check_button {name}
78
    method set_run {check_which}
79
    method set_saved {}
80
    method target_trace {variable index op}
81
    method toggle_more_options {}
82
    method valid_target {target}
83
    method write_saved {}
84
  }
85
 
86
  public {
87
    variable exportcancel 0
88
 
89
    method constructor {args}
90
    method reconfig {}
91
 
92
    proc get_target_list {}
93
    proc native_debugging {}
94
    proc getname {target name}
95
    proc init_target_db {}
96
  }
97
 
98
  protected common gdb_target
99
 
100
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.