2002-08-23 Martin Baulig <martin@gnome.org>
[mono.git] / mcs / class / Mono.CSharp.Debugger / ChangeLog
1 2002-08-23  Martin Baulig  <martin@gnome.org>
2
3         * MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Added
4         assembly name argument.  Since the symbol writer needs to read the
5         final assembly, we need to give it its full pathname.
6
7 2002-08-23  Martin Baulig  <martin@gnome.org>
8
9         * makefile.gnu, list.unix: Added.
10
11 2002-07-05  Martin Baulig  <martin@gnome.org>
12
13         * MonoDwarfFileWriter.cs: Added support for types in referenced assemblies.
14
15 2002-07-05  Martin Baulig  <martin@gnome.org>
16
17         * MonoDwarfFileWriter.cs: Added support for arrays.
18
19         * gdb-csharp-support.patch: Updated.
20
21 2002-06-29  Martin Baulig  <martin@gnome.org>
22
23         * MonoDwarfFileWriter.cs (DieInheritance): Make this actually work.
24
25 2002-06-29  Martin Baulig  <martin@gnome.org>
26
27         * MonoDwarfFileWriter.cs, MonoSymbolWriter.cs: Put all TAG_subprogram's into their
28         corresponding struct/class declarations.
29
30 2002-06-28  Martin Baulig  <martin@gnome.org>
31
32         * gdb-csharp-support.patch: Updated.
33
34 2002-06-28  Martin Baulig  <martin@gnome.org>
35
36         * MonoDwarfFileWriter.cs: Use a TAG_string_type when we're using GNU extensions.
37         Make static struct/class fields actually work.  Provide a TAG_typedef for struct's
38         and classes.
39
40 2002-05-30  Martin Baulig  <martin@gnome.org>
41
42         * IMonoSymbolWriter (IMonoSymbolWriter): Added custom `Initialize' method.
43
44         * MonoSymbolWriter.cs (Initialize): The ISymbolWriter's `Initialize' method
45         is no longer supported and throws an exception.
46         (Initialize (string, string[])): New custom initialization function.
47
48         * MonoDwarfFileWriter.cs (DwarfFileWriter): Added `string[] args' argument
49         to the constructor to pass command line arguments.
50
51         * gdb-csharp-support.patch: Updated for GDB 5.2.
52
53 2002-05-30  Martin Baulig  <martin@gnome.org>
54
55         * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now get's the
56         AssemblyBuilder's `methods' array as third argument.
57         (OpenMethod): Use this array to get the method builder rather than using an
58         interncall for it.
59         (get_method_builder): Removed this interncall.
60
61 2002-05-25  Martin Baulig  <martin@gnome.org>
62
63         * MonoDwarfFileWriter.cs: Finished the type rewrite, put back strings and arrays.
64
65 2002-05-24  Martin Baulig  <martin@gnome.org>
66
67         * IMonoSymbolWriter.cs (ISourceMethod): Added `FullName' and `Parameters'.
68         (ITypeHandle): New interface.
69
70         * DwarfFileWriter.cs: Largely reorganized the type writing code.  Types are
71         now represented by ITypeHandle objects which are stored in a per-dwarf-writer
72         hash table.  At the moment, all types still need to be in one compile unit due
73         to lacking support in gdb - but this new type code here already supports this.
74
75         * MonoSymbolWriter.cs: Moved all the subclasses to the top-level and made them
76         public, cleaned up the code, put everything into one compile unit.
77         (DefineLocalVariable): Added a version of this function which takes useful args.
78
79 2002-05-22  Martin Baulig  <martin@gnome.org>
80
81         * IMonoSymbolWriter.cs (IMonoSymbolWriter): Added `Sources' and `Methods'
82         properties.
83
84         * MonoDwarfFileWriter.cs (WriteSymbolTable): New public method.  Moved the
85         code that writes the "mono_line_numbers" section here from the LineNumberEngine.
86
87 2002-05-22  Martin Baulig  <martin@gnome.org>
88
89         * IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'.
90
91         * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now has an additional
92         ModuleBuilder argument.
93         (OpenMethod): Immediately call the `get_method' interncall to get the MethodBase
94         from the token, then store the MethodBase instead of the token.  The token may
95         still change during the metadata library's fixup process.
96         (DoFixups): When the image has been written to disk, call the GetToken () method
97         on all MethodBuilders and all ConstructorBuilders to get the final metadata tokens.
98
99 2002-05-22  Martin Baulig  <martin@gnome.org>
100
101         * AssemblerWriterI386.cs: Don't use GNU extensions and produce assembler
102         output which is free of comments and extra whitespaces so that it's suitable
103         for `as -f'.
104
105 2002-05-22  Martin Baulig  <martin@gnome.org>
106
107         * IMonoSymbolWriter.cs (ISourceMethod): Replaced `MethodInfo MethodInfo' with
108         `MethodBase MethodBase' and added `Type ReturnType'.  We're now correctly
109         dealing with constructors and not crashing anymore.
110
111 2002-05-21  Martin Baulig  <martin@gnome.org>
112
113         * MonoDwarfFileWriter.cs: Write a special line number table which can be read
114         in by the metadata library to get line number information in backtraces.
115
116 2002-05-06  Martin Baulig  <martin@gnome.org>
117
118         * MonoSymbolWriter.cs (MonoSymbolWriter.Close): Use Assembly.LoadFrom (), not
119         AppDomain.Load () to load the assembly.
120
121 2002-04-26  Martin Baulig  <martin@gnome.org>
122
123         * gdb-csharp-support.patch: A patch for GDB (against the latest CVS version)
124         to implement C# support.
125
126         * csharp-lang.c, csharp-lang.h, csharp-mono-lang.c: Copy these into your GDB
127         source directory after applying the patch.
128
129 2002-04-26  Martin Baulig  <martin@gnome.org>
130
131         * MonoDwarfFileWriter.cs (DieInternalString): Removed.
132
133 2002-04-25  Martin Baulig  <martin@gnome.org>
134
135         * MonoDwarfFileWriter.cs: Reflect latest MonoString changes.
136
137 2002-04-13  Martin Baulig  <martin@gnome.org>
138
139         * IMonoSymbolWriter.cs (ISourceBlock): Added `Blocks' property and `AddBlock'
140         method to support nested blocks.
141
142         * MonoSymbolWriter.cs: Correctly handle nested blocks.
143
144         * MonoDwarfFileWriter.cs (DieMember): Provide info for all fields, not just for
145         public ones; also added DW_AT_accessibility.
146         (DieVariable): Reflected latest debug-symfile.c changes.
147
148 2002-04-12  Martin Baulig  <martin@gnome.org>
149
150         * gdb-variable-scopes.patch: A patch for GDB (against the latest CVS version)
151         to implement variable lifetimes.
152
153 2002-04-12  Martin Baulig  <martin@gnome.org>
154
155         * MonoDwarfFileWriter.cs (DieVariable): Provide info about the variable's
156         lifetime using DW_AT_begin_scope and a new baulig extension DW_AT_end_scope.
157
158 2002-03-29  Martin Baulig  <martin@gnome.org>
159
160         * AssemblerWriterI386.cs: Rewrote most of the string output function, do the
161         number->string conversion manually. It's now taking about 15 seconds to write
162         a symbol file for MCS, no longer more than a minute.
163
164         * MonoDwarfFileWriter.cs: Added some profiling code, speeded things up, fixed
165         a few bugs.
166
167 2002-03-25  Martin Baulig  <martin@gnome.org>
168
169         * MonoDwarfFileWriter.cs (CreateType): Return a `DieType'.
170         (RegisterType): Add the type to the type hash before creating dependency types
171         so we don't get recursion loops.
172         (RegisterPointerType): New func to register a "pointer to type" type.
173         (DieTypeDef, DiePointerType, DieArrayType, DieStringType, DieClassType): New
174         types; added support for strings, arrays and basic support for classes.
175         
176 2002-03-24  Martin Baulig  <martin@gnome.org>
177
178         * IMonoSymbolWriter.cs: Killed all methods in this interface, no longer needed.
179
180         * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now takes a string
181         argument which is the full pathname of the assembly - you must call Close()
182         after the assembly has been written to disk since the symbol writer needs to
183         load the finished assembly to get its metadata.
184
185         * MonoDwarfFileWriter.cs: Added support for enums and structs.
186         
187 2002-03-24  Martin Baulig  <martin@gnome.org>
188
189         * MonoDwarfFileWriter.cs: Added support for method parameters.
190
191 2002-03-24  Martin Baulig  <martin@gnome.org>
192
193         * IMonoSymbolWriter.cs (IMonoSymbolWriter): Removed my custom OpenMethod(),
194         we're now using the ISymbolWriter's method.
195         (IVariable): Added `byte[] Signature' property.
196
197         * MonoSymbolWriter.cs (SetAssembly): New method. This must be called before
198         Close(); the assembly parameter is the already-written assembly, ie. it must
199         contain the full metadata.
200         (OpenMethod): Only take the token argument and set MethodInfo later in DoFixups.
201         (SetMethodSourceRange): You must call this function to tell the symbol writer
202         in which source file the method is defined.
203         (DefineLocal): Store the signature in the local.
204         (DoFixups): Use two new interncalls to set the SourceMethod's MethodInfo field
205         and the LocalVariable's Type field.
206
207 2002-03-23  Martin Baulig  <martin@gnome.org>
208
209         * IMonoSymbolWriter.cs (ISourceBlock): New interface.
210         (ILocalVariable): Renamed this interface to IVariable.
211         (IVariable): Added Line, Type, Token.
212         (ILocalVariable, IMethodParameter): New interfaces, derive from IVariable.
213         (ISourceMethod): Added Blocks. Renamed FirstLine and LastLine to Start and End,
214         changed their type to ISourceLine. Removed CodeSize.
215         (ISourceLine): Renamed Line to Row, added Column. Added OffsetType and Offset.
216
217         * MonoDwarfFileWriter.cs (MonoDwarfFileWriter.DieLexicalBlock): New class.
218         (MonoDwarfFileWriter.DieMethodVariable): New class.
219
220         * MonoSymbolWriter.cs (OpenScope, CloseScope): Implemented.
221         Reflected latest IMonoSymbolWriter interface changes.
222
223 2002-03-20  Martin Baulig  <martin@gnome.org>
224
225         * IAssemblerWriter.cs: New interface.
226
227         * AssemblerWriterI386.cs: New class.
228
229         * MonoDwarfFileWriter.cs: Use the IAssemblerWriter interface to make this class
230         platform and assembler independent.
231
232 2002-03-20  Martin Baulig  <martin@gnome.org>
233
234         * IMonoSymbolWriter.cs (ISourceMethod): Added FirstLine, LastLine, CodeSize and
235         Token properties.
236
237         * MonoDwarfFileWriter.cs: Implemented line number support.
238
239 2002-03-19  Martin Baulig  <martin@gnome.org>
240
241         * IMonoSymbolWriter.cs (ISourceFile, ISourceMethod, ISourceLine, ILocalVariable):
242         New interfaces.
243
244         * IMonoSymbolWriter.cs (OpenMethod): Take a System.Reflection.MethodInfo, not
245         a string.
246
247 2002-03-19  Martin Baulig  <martin@gnome.org>
248
249         This is an implementation of the System.Diagnostics.SymbolStore.SymbolWriter
250         interface. It's still work in progress and not yet used anywhere.
251
252         There is some preliminary documentation in the source files and some more
253         docu in the README and README.relocation-table files.
254
255         * IMonoSymbolWriter.cs: New file.
256         * MonoDwarfFileWriter.cs: New file.
257         * MonoSymbolDocumentWriter.cs: New file.
258         * MonoSymbolWriter.cs: New file.
259
260         * README, README.relocation-table: Documentation.
261