summaryrefslogtreecommitdiff
path: root/other/Kermit/doc/API_doc/html/SymbolTable_8hpp-source.html
blob: 04dadd86e8919710f577dd5cd7f50c1933f2909f (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>SymbolTable.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.9.1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><h1>SymbolTable.hpp</h1><div class="fragment"><pre>00001 <font class="comment">/*</font>
00002 <font class="comment"> * SymbolTable.hpp:</font>
00003 <font class="comment"> * a container for "on-demand" symbol address fetching</font>
00004 <font class="comment"> * written by palmers / teso</font>
00005 <font class="comment"> */</font>
00006 <font class="preprocessor">#ifndef __SYMBOL_TABLE_C</font>
00007 <font class="preprocessor"></font><font class="preprocessor">#define __SYMBOL_TABLE_C</font>
00008 <font class="preprocessor"></font>
00009 <font class="preprocessor">#include &lt;SymbolFingp.hpp&gt;</font>
00010 <font class="preprocessor">#include &lt;SystemMap.hpp&gt;</font>
00011 <font class="preprocessor">#include &lt;DevMemPatt.hpp&gt;</font>
00012 <font class="preprocessor">#include &lt;rwKernel.hpp&gt;</font>
00013 <font class="preprocessor">#include &lt;list&gt;</font>
00014 <font class="preprocessor">#include &lt;string&gt;</font>
00015 <font class="preprocessor">#include &lt;iostream&gt;</font>
00016 <font class="preprocessor">#include &lt;fstream&gt;</font>
00017 <font class="preprocessor">#include &lt;algorithm&gt;</font>
00018 <font class="preprocessor">#include &lt;iterator&gt;</font>
00019 
00020 <font class="preprocessor">#define DEFAULTDUMP             "SymbolTableDump"</font>
00021 <font class="preprocessor"></font><font class="preprocessor">#define DEFAULTSYSTEMMAP        "System.map"</font>
00022 <font class="preprocessor"></font>
00023 <font class="keyword">typedef</font> <font class="keyword">struct</font>
00024 <font class="keyword">  </font>{
00025     string Name;
00026     <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> Address;
00027   } zzSym;
00028 <font class="keyword">typedef</font> list&lt;zzSym *&gt; zzSymList;
00029 
00030 
<a name="l00034"></a><a class="code" href="classSymbolTable.html">00034</a> <font class="keyword">class </font><a class="code" href="classSymbolTable.html">SymbolTable</a>
00035 {
00036 <font class="keyword">private</font>:
00037   <a class="code" href="classSymbolFingp.html">SymbolFingp</a> *fing;
00038   <a class="code" href="classDevMemPatt.html">DevMemPatt</a> *patt;
00039   <a class="code" href="classSystemMap.html">SystemMap</a> exported;
00040   <a class="code" href="classSystemMap.html">SystemMap</a> mapp;
00041   <a class="code" href="classSystemMap.html">SystemMap</a> rest;
00042   string dump_file;
00043 
00044   <font class="keywordtype">bool</font> createObjects (<a class="code" href="classrwKernel.html">rwKernel</a> *);
00045   <font class="keywordtype">bool</font> loadFiles (string, string);
00046 
00047 <font class="keyword">public</font>:
<a name="l00051"></a><a class="code" href="classSymbolTable.html#m0">00051</a>   zzSymList symList;
00052 
00056   <a class="code" href="classSymbolTable.html#a0">SymbolTable</a> ();
00057 
00063   <a class="code" href="classSymbolTable.html#a0">SymbolTable</a> (string res, string sys);
00064 
00069   <a class="code" href="classSymbolTable.html#a0">SymbolTable</a> (<a class="code" href="classrwKernel.html">rwKernel</a> *);
00070 
00074   <a class="code" href="classSymbolTable.html#a3">~SymbolTable</a> ();
00075 
00080   <font class="keywordtype">void</font> <a class="code" href="classSymbolTable.html#a4">setSaveFile</a> (string);
00081 
00088   <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> <a class="code" href="classSymbolTable.html#a5">getSymbol</a> (string);
00089 
00096   <font class="keywordtype">bool</font> <a class="code" href="classSymbolTable.html#a6">findSymbol</a> (string);
00097 
00101   <font class="keywordtype">void</font> <a class="code" href="classSymbolTable.html#a7">addSymbolToCache</a> (string, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>);
00102 
00106   <font class="keywordtype">void</font> <a class="code" href="classSymbolTable.html#a8">clearCache</a> ();
00107 
00111   <font class="keywordtype">bool</font> <a class="code" href="classSymbolTable.html#a9">saveCache</a> ();
00112 };
00113 <font class="preprocessor">#endif </font><font class="comment">/* __SYMBOL_TABLE_C */</font>
</pre></div><hr><address><small>Generated at Tue Aug 14 18:04:51 2001 for Kermit by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.9.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>