2003-02-08 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / class / Mono.CSharp.Debugger / ChangeLog
1 2003-02-08  Martin Baulig  <martin@ximian.com>
2
3         * MonoSymbolFile.cs (GetMethodSource): New public method.
4         (FindMethod): Return the correct index.
5
6 2003-02-07  Martin Baulig  <martin@ximian.com>
7
8         * MonoSymbolFile.cs (Methods, Sources): New public properties.
9
10 2003-02-07  Martin Baulig  <martin@ximian.com>
11
12         * MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): New public
13         static method, returns null (without throwing an exception) if the
14         assembly doesn't have any debugging info.
15
16 2003-02-07  Martin Baulig  <martin@ximian.com>
17
18         * MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Removed the
19         custom initialization function.
20
21         * MonoSymbolTableWriter.cs: Removed; the code is now in
22         MonoSymbolFile.cs and MonoSymbolWriter.cs.
23
24 2003-02-07  Martin Baulig  <martin@ximian.com>
25
26         * MonoSymbolFile.cs: The symbol file is now a resource in the
27         assembly instead of a separate file.
28
29         * MonoSymbolTable.cs: Did a few more cleanups, sort the line
30         number table and remove duplicate line numbers.
31
32 2003-02-05  Martin Baulig  <martin@ximian.com>
33
34         Modified the symbol file format to speed up method looks by name
35         and cleaned this up a lot.
36
37         * MonoSymbolFile.cs: New public class.  This is now a public class
38         and writes and reads the symbol file.
39
40         * IMonoBinaryReader.cs: Removed.
41
42         * MonoSymbolTable.cs: Set version number to 29.
43
44 2003-01-17  Zoltan Varga  <vargaz@freemail.hu>
45
46         * MonoSymbolWriter.cs (OpenMethod): Make it work on constructors.
47
48 2002-10-13  Martin Baulig  <martin@gnome.org>
49
50         * MonoSymbolTable.cs: Set version number to 28.
51         (SourceFileEntry): Read the methods when they're needed.
52         (MethodSourceEntry): Made this a struct, not a class.
53
54 2002-10-13  Martin Baulig  <martin@gnome.org>
55
56         * MonoSymbolTable.cs: Set version number to 27.  Added a source
57         file table which is used to search a method by source file + line number.
58
59 2002-09-21  Martin Baulig  <martin@gnome.org>
60
61         * MonoSymbolTable.cs: Set version number to 26.  Removed all the dynamic
62         stuff, this library now just deals with the compiler generated symbol table.
63         The dynamic stuff is private between the JIT and the debugger.
64
65 2002-09-21  Martin Baulig  <martin@gnome.org>
66
67         * MonoSymbolTable.cs: Set version number to 25.  Added information about
68         local variables.
69
70 2002-09-20  Martin Baulig  <martin@gnome.org>
71
72         * MonoSymbolTable.cs: Set version number to 24.  Added a type index
73         table.  Write the type of a local variable or a parameter as an index
74         into this table.
75
76 2002-09-20  Martin Baulig  <martin@gnome.org>
77
78         * IMonoSymbolWriter.cs: Remove all the unused interfaces.
79
80 2002-09-20  Martin Baulig  <martin@gnome.org>
81
82         * MonoSymbolTable.cs: Set version number to 23, include the size
83         of a variable.
84
85 2002-09-20  Martin Baulig  <martin@gnome.org>
86
87         * MonoSymbolTable.cs: Set version number to 22.  Provide information
88         about parameters and local variables.
89
90 2002-09-20  Martin Baulig  <martin@gnome.org>
91
92         * IMonoSymbolWriter.cs: Use fullly qualified name for
93         System.Diagnostics.SymbolStore.ISymbolWriter rather than `using' this
94         namespace.  This allows us to use the name `ISymbolWriter' in our own
95         code.
96
97 2002-09-18  Martin Baulig  <martin@gnome.org>
98
99         * MonoSymbolTable.cs: Set version number to 21.  Encode the source file
100         as a 4-byte length field followed by the UTF8 encoded string.
101
102 2002-09-18  Martin Baulig  <martin@gnome.org>
103
104         * IMonoBinaryReader.cs: New interface.
105
106         * MonoSymbolTable.cs: Use IMonoBinaryReader instead of binary reader.
107
108 2002-09-16  Martin Baulig  <martin@gnome.org>
109
110         * MonoSymbolTable.cs: Set version number to 20.
111
112 2002-09-14  Martin Baulig  <martin@gnome.org>
113
114         * MonoSymbolWriter.cs, IMonoSymbolWriter.cs, MonoSymbolTableWriter.cs:
115         Make all classes and interfaces which don't need to be public internal.
116
117 2002-09-14  Martin Baulig  <martin@gnome.org>
118
119         * MonoSymbolTable.cs: Use only CLS-compliant types here, bumped version
120         number to 19.
121
122         * MonoSymbolTableReader.cs: Removed, this is now in the debugger.
123
124 2002-09-03  Martin Baulig  <martin@gnome.org>
125
126         * AssemblerWriterI386.cs, IAssemblerWriter.cs, MonoDwarfFileWriter.cs,
127         README, README.relocation-table, csharp-lang.[ch], gdb-csharp-support.patch,
128         gdb-variable-scopes.patch: Removed.
129
130 2002-09-03  Martin Baulig  <martin@gnome.org>
131
132         * MonoSymbolTableReader.cs (MonoSymbolTableReader.ImageFile): New
133         public property.
134
135         * MonoSymbolTable.cs: Bumped version number to 18.
136
137 2002-08-27  Martin Baulig  <martin@gnome.org>
138
139         * MonoSymbolTable.cs (MethodAddress): Removed `TrampolineAddress'.
140
141 2002-08-27  Martin Baulig  <martin@gnome.org>
142
143         * MonoSymbolTable.cs: Changed the file format in a way that allows us
144         open it read-only and to use a specially malloced area for all the
145         dynamic data.   
146
147 2002-08-25  Martin Baulig  <martin@gnome.org>
148
149         * MonoSymbolTableReader.cs: New file.  This is the reader for the
150         new symbol file format.
151
152 2002-08-24  Martin Baulig  <martin@gnome.org>
153
154         * MonoSymbolTable.cs, MonoSymbolTableWriter.cs: New files.  This
155         creates a binary application.dbg file which will be used by the
156         JIT to display source lines for exceptions.
157
158         * list.unix: Disabled the dwarf file writer in the build.
159
160 2002-08-23  Martin Baulig  <martin@gnome.org>
161
162         * MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Added
163         assembly name argument.  Since the symbol writer needs to read the
164         final assembly, we need to give it its full pathname.
165
166 2002-08-23  Martin Baulig  <martin@gnome.org>
167
168         * makefile.gnu, list.unix: Added.
169
170 2002-07-05  Martin Baulig  <martin@gnome.org>
171
172         * MonoDwarfFileWriter.cs: Added support for types in referenced assemblies.
173
174 2002-07-05  Martin Baulig  <martin@gnome.org>
175
176         * MonoDwarfFileWriter.cs: Added support for arrays.
177
178         * gdb-csharp-support.patch: Updated.
179
180 2002-06-29  Martin Baulig  <martin@gnome.org>
181
182         * MonoDwarfFileWriter.cs (DieInheritance): Make this actually work.
183
184 2002-06-29  Martin Baulig  <martin@gnome.org>
185
186         * MonoDwarfFileWriter.cs, MonoSymbolWriter.cs: Put all TAG_subprogram's into their
187         corresponding struct/class declarations.
188
189 2002-06-28  Martin Baulig  <martin@gnome.org>
190
191         * gdb-csharp-support.patch: Updated.
192
193 2002-06-28  Martin Baulig  <martin@gnome.org>
194
195         * MonoDwarfFileWriter.cs: Use a TAG_string_type when we're using GNU extensions.
196         Make static struct/class fields actually work.  Provide a TAG_typedef for struct's
197         and classes.
198
199 2002-05-30  Martin Baulig  <martin@gnome.org>
200
201         * IMonoSymbolWriter (IMonoSymbolWriter): Added custom `Initialize' method.
202
203         * MonoSymbolWriter.cs (Initialize): The ISymbolWriter's `Initialize' method
204         is no longer supported and throws an exception.
205         (Initialize (string, string[])): New custom initialization function.
206
207         * MonoDwarfFileWriter.cs (DwarfFileWriter): Added `string[] args' argument
208         to the constructor to pass command line arguments.
209
210         * gdb-csharp-support.patch: Updated for GDB 5.2.
211
212 2002-05-30  Martin Baulig  <martin@gnome.org>
213
214         * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now get's the
215         AssemblyBuilder's `methods' array as third argument.
216         (OpenMethod): Use this array to get the method builder rather than using an
217         interncall for it.
218         (get_method_builder): Removed this interncall.
219
220 2002-05-25  Martin Baulig  <martin@gnome.org>
221
222         * MonoDwarfFileWriter.cs: Finished the type rewrite, put back strings and arrays.
223
224 2002-05-24  Martin Baulig  <martin@gnome.org>
225
226         * IMonoSymbolWriter.cs (ISourceMethod): Added `FullName' and `Parameters'.
227         (ITypeHandle): New interface.
228
229         * DwarfFileWriter.cs: Largely reorganized the type writing code.  Types are
230         now represented by ITypeHandle objects which are stored in a per-dwarf-writer
231         hash table.  At the moment, all types still need to be in one compile unit due
232         to lacking support in gdb - but this new type code here already supports this.
233
234         * MonoSymbolWriter.cs: Moved all the subclasses to the top-level and made them
235         public, cleaned up the code, put everything into one compile unit.
236         (DefineLocalVariable): Added a version of this function which takes useful args.
237
238 2002-05-22  Martin Baulig  <martin@gnome.org>
239
240         * IMonoSymbolWriter.cs (IMonoSymbolWriter): Added `Sources' and `Methods'
241         properties.
242
243         * MonoDwarfFileWriter.cs (WriteSymbolTable): New public method.  Moved the
244         code that writes the "mono_line_numbers" section here from the LineNumberEngine.
245
246 2002-05-22  Martin Baulig  <martin@gnome.org>
247
248         * IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'.
249
250         * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now has an additional
251         ModuleBuilder argument.
252         (OpenMethod): Immediately call the `get_method' interncall to get the MethodBase
253         from the token, then store the MethodBase instead of the token.  The token may
254         still change during the metadata library's fixup process.
255         (DoFixups): When the image has been written to disk, call the GetToken () method
256         on all MethodBuilders and all ConstructorBuilders to get the final metadata tokens.
257
258 2002-05-22  Martin Baulig  <martin@gnome.org>
259
260         * AssemblerWriterI386.cs: Don't use GNU extensions and produce assembler
261         output which is free of comments and extra whitespaces so that it's suitable
262         for `as -f'.
263
264 2002-05-22  Martin Baulig  <martin@gnome.org>
265
266         * IMonoSymbolWriter.cs (ISourceMethod): Replaced `MethodInfo MethodInfo' with
267         `MethodBase MethodBase' and added `Type ReturnType'.  We're now correctly
268         dealing with constructors and not crashing anymore.
269
270 2002-05-21  Martin Baulig  <martin@gnome.org>
271
272         * MonoDwarfFileWriter.cs: Write a special line number table which can be read
273         in by the metadata library to get line number information in backtraces.
274
275 2002-05-06  Martin Baulig  <martin@gnome.org>
276
277         * MonoSymbolWriter.cs (MonoSymbolWriter.Close): Use Assembly.LoadFrom (), not
278         AppDomain.Load () to load the assembly.
279
280 2002-04-26  Martin Baulig  <martin@gnome.org>
281
282         * gdb-csharp-support.patch: A patch for GDB (against the latest CVS version)
283         to implement C# support.
284
285         * csharp-lang.c, csharp-lang.h, csharp-mono-lang.c: Copy these into your GDB
286         source directory after applying the patch.
287
288 2002-04-26  Martin Baulig  <martin@gnome.org>
289
290         * MonoDwarfFileWriter.cs (DieInternalString): Removed.
291
292 2002-04-25  Martin Baulig  <martin@gnome.org>
293
294         * MonoDwarfFileWriter.cs: Reflect latest MonoString changes.
295
296 2002-04-13  Martin Baulig  <martin@gnome.org>
297
298         * IMonoSymbolWriter.cs (ISourceBlock): Added `Blocks' property and `AddBlock'
299         method to support nested blocks.
300
301         * MonoSymbolWriter.cs: Correctly handle nested blocks.
302
303         * MonoDwarfFileWriter.cs (DieMember): Provide info for all fields, not just for
304         public ones; also added DW_AT_accessibility.
305         (DieVariable): Reflected latest debug-symfile.c changes.
306
307 2002-04-12  Martin Baulig  <martin@gnome.org>
308
309         * gdb-variable-scopes.patch: A patch for GDB (against the latest CVS version)
310         to implement variable lifetimes.
311
312 2002-04-12  Martin Baulig  <martin@gnome.org>
313
314         * MonoDwarfFileWriter.cs (DieVariable): Provide info about the variable's
315         lifetime using DW_AT_begin_scope and a new baulig extension DW_AT_end_scope.
316
317 2002-03-29  Martin Baulig  <martin@gnome.org>
318
319         * AssemblerWriterI386.cs: Rewrote most of the string output function, do the
320         number->string conversion manually. It's now taking about 15 seconds to write
321         a symbol file for MCS, no longer more than a minute.
322
323         * MonoDwarfFileWriter.cs: Added some profiling code, speeded things up, fixed
324         a few bugs.
325
326 2002-03-25  Martin Baulig  <martin@gnome.org>
327
328         * MonoDwarfFileWriter.cs (CreateType): Return a `DieType'.
329         (RegisterType): Add the type to the type hash before creating dependency types
330         so we don't get recursion loops.
331         (RegisterPointerType): New func to register a "pointer to type" type.
332         (DieTypeDef, DiePointerType, DieArrayType, DieStringType, DieClassType): New
333         types; added support for strings, arrays and basic support for classes.
334         
335 2002-03-24  Martin Baulig  <martin@gnome.org>
336
337         * IMonoSymbolWriter.cs: Killed all methods in this interface, no longer needed.
338
339         * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now takes a string
340         argument which is the full pathname of the assembly - you must call Close()
341         after the assembly has been written to disk since the symbol writer needs to
342         load the finished assembly to get its metadata.
343
344         * MonoDwarfFileWriter.cs: Added support for enums and structs.
345         
346 2002-03-24  Martin Baulig  <martin@gnome.org>
347
348         * MonoDwarfFileWriter.cs: Added support for method parameters.
349
350 2002-03-24  Martin Baulig  <martin@gnome.org>
351
352         * IMonoSymbolWriter.cs (IMonoSymbolWriter): Removed my custom OpenMethod(),
353         we're now using the ISymbolWriter's method.
354         (IVariable): Added `byte[] Signature' property.
355
356         * MonoSymbolWriter.cs (SetAssembly): New method. This must be called before
357         Close(); the assembly parameter is the already-written assembly, ie. it must
358         contain the full metadata.
359         (OpenMethod): Only take the token argument and set MethodInfo later in DoFixups.
360         (SetMethodSourceRange): You must call this function to tell the symbol writer
361         in which source file the method is defined.
362         (DefineLocal): Store the signature in the local.
363         (DoFixups): Use two new interncalls to set the SourceMethod's MethodInfo field
364         and the LocalVariable's Type field.
365
366 2002-03-23  Martin Baulig  <martin@gnome.org>
367
368         * IMonoSymbolWriter.cs (ISourceBlock): New interface.
369         (ILocalVariable): Renamed this interface to IVariable.
370         (IVariable): Added Line, Type, Token.
371         (ILocalVariable, IMethodParameter): New interfaces, derive from IVariable.
372         (ISourceMethod): Added Blocks. Renamed FirstLine and LastLine to Start and End,
373         changed their type to ISourceLine. Removed CodeSize.
374         (ISourceLine): Renamed Line to Row, added Column. Added OffsetType and Offset.
375
376         * MonoDwarfFileWriter.cs (MonoDwarfFileWriter.DieLexicalBlock): New class.
377         (MonoDwarfFileWriter.DieMethodVariable): New class.
378
379         * MonoSymbolWriter.cs (OpenScope, CloseScope): Implemented.
380         Reflected latest IMonoSymbolWriter interface changes.
381
382 2002-03-20  Martin Baulig  <martin@gnome.org>
383
384         * IAssemblerWriter.cs: New interface.
385
386         * AssemblerWriterI386.cs: New class.
387
388         * MonoDwarfFileWriter.cs: Use the IAssemblerWriter interface to make this class
389         platform and assembler independent.
390
391 2002-03-20  Martin Baulig  <martin@gnome.org>
392
393         * IMonoSymbolWriter.cs (ISourceMethod): Added FirstLine, LastLine, CodeSize and
394         Token properties.
395
396         * MonoDwarfFileWriter.cs: Implemented line number support.
397
398 2002-03-19  Martin Baulig  <martin@gnome.org>
399
400         * IMonoSymbolWriter.cs (ISourceFile, ISourceMethod, ISourceLine, ILocalVariable):
401         New interfaces.
402
403         * IMonoSymbolWriter.cs (OpenMethod): Take a System.Reflection.MethodInfo, not
404         a string.
405
406 2002-03-19  Martin Baulig  <martin@gnome.org>
407
408         This is an implementation of the System.Diagnostics.SymbolStore.SymbolWriter
409         interface. It's still work in progress and not yet used anywhere.
410
411         There is some preliminary documentation in the source files and some more
412         docu in the README and README.relocation-table files.
413
414         * IMonoSymbolWriter.cs: New file.
415         * MonoDwarfFileWriter.cs: New file.
416         * MonoSymbolDocumentWriter.cs: New file.
417         * MonoSymbolWriter.cs: New file.
418
419         * README, README.relocation-table: Documentation.
420