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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [gdbtcl/] [debugwin.ith] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Debug window class definition for GDBtk.
2
# Copyright 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
# -----------------------------------------------------------------------------
16
# NAME:
17
#       class DebugWin
18
#
19
# DESC:
20
#       This class implements a debug output window to display internal
21
#       debugging information. It can handle debugging messages, tracing,
22
#       and eventually profiling.
23
#
24
# NOTES:
25
#       This window is for developers.
26
#
27
# -----------------------------------------------------------------------------
28
class DebugWin {
29
  inherit ManagedWin
30
 
31
  private {
32
    variable _t
33
    variable _colors {
34
      {I green}
35
      {W yellow}
36
      {E orange}
37
      {X red}
38
    }
39
    variable _bigstr "                                                                                                                                                                                                             "
40
    method build_win {}
41
    method _source_all {}
42
    method _clear {}
43
    method _mark_old {}
44
    method _save_contents {}
45
  }
46
 
47
  public {
48
    method constructor {args}
49
    method destructor {}
50
    method puts {level cls func msg}
51
    method put_trace {enter level func ar}
52
    method loadlog {}
53
  }
54
}
55
 
56
# -----------------------------------------------------------------------------
57
# NAME:
58
#       class DebugWinDOpts
59
#
60
# DESC:
61
#       This class implements a debug options dialog for the DebugWin.
62
#       Currently this consists os a selection dialog to choose which
63
#       messages to print. Eventually it could also include a filter
64
#       for different priorities and color selections.
65
#
66
# NOTES:
67
#       This window is for developers.
68
#
69
# -----------------------------------------------------------------------------
70
class DebugWinDOpts {
71
  inherit ManagedWin
72
 
73
  public {
74
    method constructor {args} {}
75
    method destructor {}
76
  }
77
 
78
  private {
79
    variable _classes
80
    method build_win {}
81
    method _all {}
82
    method _apply {}
83
  }
84
 
85
}

powered by: WebSVN 2.1.0

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