2002-05-22 Martin Baulig <martin@gnome.org>
[mono.git] / mcs / class / Mono.CSharp.Debugger / ChangeLog
1 2002-05-22  Martin Baulig  <martin@gnome.org>
2
3         * IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'.
4
5         * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now has an additional
6         ModuleBuilder argument.
7         (OpenMethod): Immediately call the `get_method' interncall to get the MethodBase
8         from the token, then store the MethodBase instead of the token.  The token may
9         still change during the metadata library's fixup process.
10         (DoFixups): When the image has been written to disk, call the GetToken () method
11         on all MethodBuilders and all ConstructorBuilders to get the final metadata tokens.
12
13 2002-05-22  Martin Baulig  <martin@gnome.org>
14
15         * AssemblerWriterI386.cs: Don't use GNU extensions and produce assembler
16         output which is free of comments and extra whitespaces so that it's suitable
17         for `as -f'.
18
19 2002-05-22  Martin Baulig  <martin@gnome.org>
20
21         * IMonoSymbolWriter.cs (ISourceMethod): Replaced `MethodInfo MethodInfo' with
22         `MethodBase MethodBase' and added `Type ReturnType'.  We're now correctly
23         dealing with constructors and not crashing anymore.
24
25 2002-05-21  Martin Baulig  <martin@gnome.org>
26
27         * MonoDwarfFileWriter.cs: Write a special line number table which can be read
28         in by the metadata library to get line number information in backtraces.
29
30 2002-05-06  Martin Baulig  <martin@gnome.org>
31
32         * MonoSymbolWriter.cs (MonoSymbolWriter.Close): Use Assembly.LoadFrom (), not
33         AppDomain.Load () to load the assembly.
34
35 2002-04-26  Martin Baulig  <martin@gnome.org>
36
37         * gdb-csharp-support.patch: A patch for GDB (against the latest CVS version)
38         to implement C# support.
39
40         * csharp-lang.c, csharp-lang.h, csharp-mono-lang.c: Copy these into your GDB
41         source directory after applying the patch.
42
43 2002-04-26  Martin Baulig  <martin@gnome.org>
44
45         * MonoDwarfFileWriter.cs (DieInternalString): Removed.
46
47 2002-04-25  Martin Baulig  <martin@gnome.org>
48
49         * MonoDwarfFileWriter.cs: Reflect latest MonoString changes.
50
51 2002-04-13  Martin Baulig  <martin@gnome.org>
52
53         * IMonoSymbolWriter.cs (ISourceBlock): Added `Blocks' property and `AddBlock'
54         method to support nested blocks.
55
56         * MonoSymbolWriter.cs: Correctly handle nested blocks.
57
58         * MonoDwarfFileWriter.cs (DieMember): Provide info for all fields, not just for
59         public ones; also added DW_AT_accessibility.
60         (DieVariable): Reflected latest debug-symfile.c changes.
61
62 2002-04-12  Martin Baulig  <martin@gnome.org>
63
64         * gdb-variable-scopes.patch: A patch for GDB (against the latest CVS version)
65         to implement variable lifetimes.
66
67 2002-04-12  Martin Baulig  <martin@gnome.org>
68
69         * MonoDwarfFileWriter.cs (DieVariable): Provide info about the variable's
70         lifetime using DW_AT_begin_scope and a new baulig extension DW_AT_end_scope.
71
72 2002-03-29  Martin Baulig  <martin@gnome.org>
73
74         * AssemblerWriterI386.cs: Rewrote most of the string output function, do the
75         number->string conversion manually. It's now taking about 15 seconds to write
76         a symbol file for MCS, no longer more than a minute.
77
78         * MonoDwarfFileWriter.cs: Added some profiling code, speeded things up, fixed
79         a few bugs.
80
81 2002-03-25  Martin Baulig  <martin@gnome.org>
82
83         * MonoDwarfFileWriter.cs (CreateType): Return a `DieType'.
84         (RegisterType): Add the type to the type hash before creating dependency types
85         so we don't get recursion loops.
86         (RegisterPointerType): New func to register a "pointer to type" type.
87         (DieTypeDef, DiePointerType, DieArrayType, DieStringType, DieClassType): New
88         types; added support for strings, arrays and basic support for classes.
89         
90 2002-03-24  Martin Baulig  <martin@gnome.org>
91
92         * IMonoSymbolWriter.cs: Killed all methods in this interface, no longer needed.
93
94         * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now takes a string
95         argument which is the full pathname of the assembly - you must call Close()
96         after the assembly has been written to disk since the symbol writer needs to
97         load the finished assembly to get its metadata.
98
99         * MonoDwarfFileWriter.cs: Added support for enums and structs.
100         
101 2002-03-24  Martin Baulig  <martin@gnome.org>
102
103         * MonoDwarfFileWriter.cs: Added support for method parameters.
104
105 2002-03-24  Martin Baulig  <martin@gnome.org>
106
107         * IMonoSymbolWriter.cs (IMonoSymbolWriter): Removed my custom OpenMethod(),
108         we're now using the ISymbolWriter's method.
109         (IVariable): Added `byte[] Signature' property.
110
111         * MonoSymbolWriter.cs (SetAssembly): New method. This must be called before
112         Close(); the assembly parameter is the already-written assembly, ie. it must
113         contain the full metadata.
114         (OpenMethod): Only take the token argument and set MethodInfo later in DoFixups.
115         (SetMethodSourceRange): You must call this function to tell the symbol writer
116         in which source file the method is defined.
117         (DefineLocal): Store the signature in the local.
118         (DoFixups): Use two new interncalls to set the SourceMethod's MethodInfo field
119         and the LocalVariable's Type field.
120
121 2002-03-23  Martin Baulig  <martin@gnome.org>
122
123         * IMonoSymbolWriter.cs (ISourceBlock): New interface.
124         (ILocalVariable): Renamed this interface to IVariable.
125         (IVariable): Added Line, Type, Token.
126         (ILocalVariable, IMethodParameter): New interfaces, derive from IVariable.
127         (ISourceMethod): Added Blocks. Renamed FirstLine and LastLine to Start and End,
128         changed their type to ISourceLine. Removed CodeSize.
129         (ISourceLine): Renamed Line to Row, added Column. Added OffsetType and Offset.
130
131         * MonoDwarfFileWriter.cs (MonoDwarfFileWriter.DieLexicalBlock): New class.
132         (MonoDwarfFileWriter.DieMethodVariable): New class.
133
134         * MonoSymbolWriter.cs (OpenScope, CloseScope): Implemented.
135         Reflected latest IMonoSymbolWriter interface changes.
136
137 2002-03-20  Martin Baulig  <martin@gnome.org>
138
139         * IAssemblerWriter.cs: New interface.
140
141         * AssemblerWriterI386.cs: New class.
142
143         * MonoDwarfFileWriter.cs: Use the IAssemblerWriter interface to make this class
144         platform and assembler independent.
145
146 2002-03-20  Martin Baulig  <martin@gnome.org>
147
148         * IMonoSymbolWriter.cs (ISourceMethod): Added FirstLine, LastLine, CodeSize and
149         Token properties.
150
151         * MonoDwarfFileWriter.cs: Implemented line number support.
152
153 2002-03-19  Martin Baulig  <martin@gnome.org>
154
155         * IMonoSymbolWriter.cs (ISourceFile, ISourceMethod, ISourceLine, ILocalVariable):
156         New interfaces.
157
158         * IMonoSymbolWriter.cs (OpenMethod): Take a System.Reflection.MethodInfo, not
159         a string.
160
161 2002-03-19  Martin Baulig  <martin@gnome.org>
162
163         This is an implementation of the System.Diagnostics.SymbolStore.SymbolWriter
164         interface. It's still work in progress and not yet used anywhere.
165
166         There is some preliminary documentation in the source files and some more
167         docu in the README and README.relocation-table files.
168
169         * IMonoSymbolWriter.cs: New file.
170         * MonoDwarfFileWriter.cs: New file.
171         * MonoSymbolDocumentWriter.cs: New file.
172         * MonoSymbolWriter.cs: New file.
173
174         * README, README.relocation-table: Documentation.
175