0
|
1 /**
|
|
2 Common interfaces for the debugging package.
|
|
3
|
|
4 Authors:
|
|
5 Jeremie Pelletier
|
|
6 */
|
|
7 module dbg.Debug;
|
|
8
|
|
9 interface IExecutableImage {
|
|
10 uint codeOffset() const;
|
|
11
|
|
12 ISymbolicDebugInfo debugInfo();
|
|
13 }
|
|
14
|
|
15 interface ISymbolicDebugInfo {
|
|
16 SymbolInfo ResolveSymbol(size_t rva) const;
|
|
17 FileLineInfo ResolveFileLine(size_t rva) const;
|
|
18 }
|
|
19
|
|
20 struct SymbolInfo {
|
|
21 string name;
|
|
22 uint offset;
|
|
23 }
|
|
24
|
|
25 struct FileLineInfo {
|
|
26 string file;
|
|
27 uint line;
|
|
28 }
|
|
29
|
|
30 void SystemException()
|
|
31 {
|
|
32 throw new Exception("SystemException");
|
|
33 } |