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

Subversion Repositories or1k

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Class definitions for blocks and frames 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
class Block {
15
 
16
  public {
17
    method constructor {start end args}
18
    method destructor {}
19
    method variables {}
20
    method update {}
21
    method info {}
22
  }
23
 
24
  private {
25
    # Start and end address for this block
26
    variable _start
27
    variable _end
28
 
29
    # List of variables (new) variables defined in this block
30
    variable _variables
31
 
32
    method _findVariables {}
33
  }
34
}
35
 
36
class Frame {
37
 
38
  public {
39
    method constructor {addr}
40
    method destructor {}
41
    method variables {}
42
    method update {}
43
    method new {}
44
    method old {}
45
    method deleteOld {}
46
    method address {} { return $_addr }
47
  }
48
 
49
  private {
50
    method _createBlocks {blocks}
51
    method _addBlock {block}
52
    method _findBlock {block}
53
    method _findBlockIndex {block}
54
    method _removeBlock {blockObj}
55
    method _oldBlocks {}
56
 
57
    # Our address
58
    variable _addr
59
 
60
    # A list of all blocks
61
    variable _blocks
62
  }
63
}

powered by: WebSVN 2.1.0

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