2004-08-27 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / class / Mono.CSharp.Debugger / ChangeLog
1 2004-08-27  Martin Baulig  <martin@ximian.com>
2
3         * MonoSymbolFile.cs (MonoSymbolFile..ctor): Set
4         `reader.BaseStream.Position' to 12 before reading the GUID so we
5         actually read it from the correct file offset.
6
7 2004-08-27  Chris Toshok  <toshok@ximian.com>
8
9         * MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): pass name to
10         MonoSymbolFile.ctor, not filename, so we load the .mdb file
11         instead of the .dll.
12         (MonoSymbolFile.ctor): pass FileAccess.Read to the FileStream
13         ctor.
14
15 2004-08-27  Martin Baulig  <martin@ximian.com>
16
17         * MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): The function is
18         called Module.Mono_GetGuid(), not Module.MonoDebugger_GetGuid().
19
20 2004-07-30  Martin Baulig  <martin@ximian.com>
21
22         The library is now called Mono.CompilerServices.SymbolWriter.dll
23         and is in the Mono.CompilerServices.SymbolWriter namespace.
24
25         * MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): New public
26         static method.
27         (MonoSymbolFile.WriteString): Use the BinaryWriter's method.
28         (MonoSymbolFile.ReadString): Use the BinaryReader's method.
29         (MonoSymbolFile.Write): Write the module's Guid into the symbol
30         file.
31
32         * MonoSymbolTable.cs, MonoSymbolWriter.cs: Reworked the API.
33
34 2004-07-27  Martin Baulig  <martin@ximian.com>
35
36         * MonoSymbolFile.cs (MonoSymbolFile.Write): Sort the methods
37         according to their token values.
38         (MonoSymbolFile.ReadSymbolFile): Support reading the debugging
39         information from an external ".mdb" file.
40
41         * MonoSymbolTable.cs
42         (SourceFileEntry): Make the .ctor protected, not internal.
43         (SourceFileEntry.DefineMethod): This is no longer specific to
44         System.Reflection(.Emit).
45         (MethodEntry): We don't need the class and parameter types, the
46         JIT is already getting this information automatically.
47         (MethodEntry.ClassTypeIndex): Make this obsolete.
48         (MethodEntry.ParamTypeIndicies): Likewise.
49
50 2004-07-02  Raja R Harinath  <rharinath@novell.com>
51
52         * Makefile (LIBRARY_USE_INTERMEDIATE_FILE): Define.
53         (LIBRARY_COMPILE): Simplify.
54
55 2004-06-24  Raja R Harinath  <rharinath@novell.com>
56
57         * Makefile (LIBRARY_COMPILE): Only define for W32.
58
59 2004-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
60
61         * Makefile: build using mcs on windows.
62
63 2004-06-19  Martin Baulig  <martin@ximian.com>
64
65         * MonoSymbolTable.cs
66         (SourceFileTable.Namespaces): New public property.
67
68 2004-06-02  Martin Baulig  <martin@ximian.com>
69
70         Set version number to 37.
71
72 2004-05-23 Ben Maurer  <bmaurer@users.sourceforge.net>
73
74         * MonoSymbolTable.cs (BuildLineNumberTable): Avoid arraylist.
75
76 2004-01-16  Martin Baulig  <martin@ximian.com>
77
78         Set version number to 36.
79
80         * MonoSymbolFile.cs (MonoSymbolFile): Removed 'FindMethod' and
81         'MethodLookup'.
82
83         * MonoSymbolTable.cs (MethodEntry): Don't write the method's full
84         name into the symbol file.
85
86 2004-01-16  Martin Baulig  <martin@ximian.com>
87
88         * MonoSymbolFile.cs (MonoDebuggerSupport): As suggested by Ben
89         Maurer, create a delegate type for each of the methods and then
90         store the method.
91
92 2004-01-15  Martin Baulig  <martin@ximian.com>
93
94         * MonoSymbolFile.cs (MonoDebuggerSupport): New public class
95         containing static wrappers for calling the `MonoDebugger_*'
96         function in S.R.Assembly.
97
98 2004-01-13  Martin Baulig  <martin@ximian.com>
99
100         * MonoSymbolTable.cs: Added more #region's and a comment at the
101         top of the file.
102
103         * MonoSymbolWriter.cs (SourceMethod.BuildLineNumberTable): Removed
104         it here since it's in MethodEntry again.
105
106 2004-01-13  Martin Baulig  <martin@ximian.com>
107
108         * ChangeLog, MonoSymbolTable.cs: Reviewed Ben's patches.  For
109         those which are not ok, I'll add detailed comments to the source
110         code.   
111
112 2003-12-28 Ben Maurer  <bmaurer@users.sourceforge.net>
113
114         [Revision 1.41, not approved.  Martin]
115         * MonoSymbolTable.cs (MethodEntry): kill more
116         useless fields.
117
118 2003-12-28 Ben Maurer  <bmaurer@users.sourceforge.net>
119
120         [Revision 1.40, not approved.  Martin]
121         * MonoSymbolTable.cs (MethodEntry): Remove the
122         SourceFileIndex field, we already have the info.
123
124 2003-12-28 Ben Maurer  <bmaurer@users.sourceforge.net>
125
126         [Revision 1.39, approved.  Martin]
127         * MonoSymbolTable.cs: Don't make the MethodIndexEntry
128         part of the method entry class, because it just
129         takes up extra space.
130
131 2003-12-28 Ben Maurer  <bmaurer@users.sourceforge.net>
132
133         [Revisions 1.37 and 1.38; not approved.  Martin]
134         * MonoSymbolTable.cs (MethodEntry.BuildLineNumberTable): Removed.
135
136         * MonoSymbolTable.cs, MonoSymbolWriter.cs: Use
137         fewer arrays, dont use arraylists with structs.
138
139 2003-12-27 Ben Maurer  <bmaurer@users.sourceforge.net>
140
141         * MonoSymbolFile.cs: Much, much better string writing.
142
143 2003-12-20 Ben Maurer  <bmaurer@users.sourceforge.net>
144
145         [Revision 1.36, approved.  Martin]
146         * MonoSymbolTable.cs: Fewer StringBuilder allocs.
147
148 2003-12-08  Zoltan Varga  <vargaz@freemail.hu>
149
150         * MonoSymbolWriter.cs: Create ArrayLists only when needed.
151
152 2003-12-07 Ben Maurer  <bmaurer@users.sourceforge.net>
153
154         [Revision 1.35, approved.  Martin]
155         * MonoSymbolTable.cs: It is faster to do a linear search
156         than it is to make a hashtable. Even though the linear
157         search is O(n^2) while the hashtable is O(n), the allocation
158         cost for a hashtable is *very* high, especially when only
159         a few members will be added.
160
161 2003-09-06  Martin Baulig  <martin@ximian.com>
162
163         * MonoSymbolFile.cs: Removed debugging output.
164
165 2003-08-05  Martin Baulig  <martin@ximian.com>
166
167         * MonoSymbolTable.cs (MethodEntry.Index): New public field.
168
169 2003-06-27  Zoltan Varga  <vargaz@freemail.hu>
170
171         * MonoSymbolWriter.cs: Enable calling of DefineDocument multiple
172         times with the same URL.
173
174 2003-06-10  Zoltan Varga  <vargaz@freemail.hu>
175
176         * MonoSymbolFile.cs: Fix off-by-one error.
177
178 2003-03-22  Martin Baulig  <martin@ximian.com>
179
180         * MonoSymbolTable.cs (MethodEntry.LocalNamesAmbiguous): New public
181         field.  Specifies whether two local variables have the same name.
182
183 2003-03-13  Martin Baulig  <martin@ximian.com>
184
185         Added basic support for lexical scopes.  This is just to tell a
186         debugger that a local variable is only available in a specific
187         lexical scope and that another variable of the same name may exist
188         in another lexical scope.  See debugger/test/TestLexicalScope.cs
189         for examples.
190
191         * MonoSymbolTable.cs (LexicalScopeEntry): New class.
192         (LocalVariableEntry): Added `BlockIndex' field which specifies the
193         lexical scope of this variable.
194
195         * MonoSymbolWriter.cs (SourceBlock): Removed, we're now using
196         LexicalScopeEntry instead.
197
198 2003-02-22  Martin Baulig  <martin@ximian.com>
199
200         * MonoSymbolTable.cs: Incremented version number.
201
202 2003-02-22  Martin Baulig  <martin@ximian.com>
203
204         * MonoSymbolFile.cs (MonoSymbolFile.FindMethod): Fixed a bug.
205         (MonoSymbolFile.MethodLookup): New method.
206
207 2003-02-18  Martin Baulig  <martin@ximian.com>
208
209         * MonoSymbolFile.cs (MonoSymbolFile.GetMethod): Added overloaded
210         version which takes a MethodBase.
211
212 2003-02-18  Martin Baulig  <martin@ximian.com>
213
214         * MonoSymbolTable.cs (MethodIndexEntry): New public struct.
215
216         * MonoSymbolFile.cs (MonoSymbolFile.GetMethodByToken): New method.
217
218 2003-02-18  Martin Baulig  <martin@ximian.com>
219
220         * MonoSymbolFile.cs (MonoSymbolFile.Assembly): New public property.
221
222         * MonoSymbolTable.cs (MethodEntry.MethodBase): New public property.
223         (MethodEntry.LocalTypes): New public variable.
224
225 2003-02-18  Martin Baulig  <martin@ximian.com>
226
227         * MonoSymbolFile.cs (MethodEntry.ThisTypeIndex): Renamed to
228         ClassTypeIndex; provide this for all methods so we can get the
229         class of static methods.
230
231 2003-02-10  Nick Drochak  <ndrochak@gol.com>
232
233         * Mono.CSharp.Debugger.build: passing the /r using an 'arg' node works.
234         The <include> node wasn't getting to the compiler. This fixes build
235         breakage on cygwin.
236
237         * MonoSymbolFile.cs: Qualify which Min method. Fixes build breakage
238         on cygwin.
239
240 2003-02-09  Martin Baulig  <martin@ximian.com>
241
242         * MonoSymbolWriter.cs (MonoSymbolWriter.ctor): We don't need the
243         `mbuilder_array' anymore.
244
245 2003-02-09  Martin Baulig  <martin@ximian.com>
246
247         * MonoSymbolWriter.cs (SourceFile): Derive from SourceFileEntry.
248         (SourceBlock): We don't need source lines here.
249         (SourceMethod): We're always constructed with source info.
250
251         * MonoSymbolTable.cs: Added support for namespaces.
252         (NamespaceEntry): New struct.
253         (SourceFileEntry.DefineNamespace): New method.
254         (MethodEntry.BuildLineNumberTable): The table is already sorted,
255         so we don't need to do this here.
256
257 2003-02-09  Martin Baulig  <martin@ximian.com>
258
259         * IMonoSymbolWriter.cs: Ooops, I forgot to remove this.
260
261 2003-02-08  Martin Baulig  <martin@ximian.com>
262
263         * MonoSymbolDocumentWriter.cs: Removed.
264
265         * MonoSymbolWriter.cs (SourceFile): Implement ISymbolDocumentWriter.
266
267 2003-02-08  Martin Baulig  <martin@ximian.com>
268
269         * MonoSymbolFile.cs (GetMethodSource): New public method.
270         (FindMethod): Return the correct index.
271
272 2003-02-07  Martin Baulig  <martin@ximian.com>
273
274         * MonoSymbolFile.cs (Methods, Sources): New public properties.
275
276 2003-02-07  Martin Baulig  <martin@ximian.com>
277
278         * MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): New public
279         static method, returns null (without throwing an exception) if the
280         assembly doesn't have any debugging info.
281
282 2003-02-07  Martin Baulig  <martin@ximian.com>
283
284         * MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Removed the
285         custom initialization function.
286
287         * MonoSymbolTableWriter.cs: Removed; the code is now in
288         MonoSymbolFile.cs and MonoSymbolWriter.cs.
289
290 2003-02-07  Martin Baulig  <martin@ximian.com>
291
292         * MonoSymbolFile.cs: The symbol file is now a resource in the
293         assembly instead of a separate file.
294
295         * MonoSymbolTable.cs: Did a few more cleanups, sort the line
296         number table and remove duplicate line numbers.
297
298 2003-02-05  Martin Baulig  <martin@ximian.com>
299
300         Modified the symbol file format to speed up method looks by name
301         and cleaned this up a lot.
302
303         * MonoSymbolFile.cs: New public class.  This is now a public class
304         and writes and reads the symbol file.
305
306         * IMonoBinaryReader.cs: Removed.
307
308         * MonoSymbolTable.cs: Set version number to 29.
309
310 2003-01-17  Zoltan Varga  <vargaz@freemail.hu>
311
312         * MonoSymbolWriter.cs (OpenMethod): Make it work on constructors.
313
314 2002-10-13  Martin Baulig  <martin@gnome.org>
315
316         * MonoSymbolTable.cs: Set version number to 28.
317         (SourceFileEntry): Read the methods when they're needed.
318         (MethodSourceEntry): Made this a struct, not a class.
319
320 2002-10-13  Martin Baulig  <martin@gnome.org>
321
322         * MonoSymbolTable.cs: Set version number to 27.  Added a source
323         file table which is used to search a method by source file + line number.
324
325 2002-09-21  Martin Baulig  <martin@gnome.org>
326
327         * MonoSymbolTable.cs: Set version number to 26.  Removed all the dynamic
328         stuff, this library now just deals with the compiler generated symbol table.
329         The dynamic stuff is private between the JIT and the debugger.
330
331 2002-09-21  Martin Baulig  <martin@gnome.org>
332
333         * MonoSymbolTable.cs: Set version number to 25.  Added information about
334         local variables.
335
336 2002-09-20  Martin Baulig  <martin@gnome.org>
337
338         * MonoSymbolTable.cs: Set version number to 24.  Added a type index
339         table.  Write the type of a local variable or a parameter as an index
340         into this table.
341
342 2002-09-20  Martin Baulig  <martin@gnome.org>
343
344         * IMonoSymbolWriter.cs: Remove all the unused interfaces.
345
346 2002-09-20  Martin Baulig  <martin@gnome.org>
347
348         * MonoSymbolTable.cs: Set version number to 23, include the size
349         of a variable.
350
351 2002-09-20  Martin Baulig  <martin@gnome.org>
352
353         * MonoSymbolTable.cs: Set version number to 22.  Provide information
354         about parameters and local variables.
355
356 2002-09-20  Martin Baulig  <martin@gnome.org>
357
358         * IMonoSymbolWriter.cs: Use fullly qualified name for
359         System.Diagnostics.SymbolStore.ISymbolWriter rather than `using' this
360         namespace.  This allows us to use the name `ISymbolWriter' in our own
361         code.
362
363 2002-09-18  Martin Baulig  <martin@gnome.org>
364
365         * MonoSymbolTable.cs: Set version number to 21.  Encode the source file
366         as a 4-byte length field followed by the UTF8 encoded string.
367
368 2002-09-18  Martin Baulig  <martin@gnome.org>
369
370         * IMonoBinaryReader.cs: New interface.
371
372         * MonoSymbolTable.cs: Use IMonoBinaryReader instead of binary reader.
373
374 2002-09-16  Martin Baulig  <martin@gnome.org>
375
376         * MonoSymbolTable.cs: Set version number to 20.
377
378 2002-09-14  Martin Baulig  <martin@gnome.org>
379
380         * MonoSymbolWriter.cs, IMonoSymbolWriter.cs, MonoSymbolTableWriter.cs:
381         Make all classes and interfaces which don't need to be public internal.
382
383 2002-09-14  Martin Baulig  <martin@gnome.org>
384
385         * MonoSymbolTable.cs: Use only CLS-compliant types here, bumped version
386         number to 19.
387
388         * MonoSymbolTableReader.cs: Removed, this is now in the debugger.
389
390 2002-09-03  Martin Baulig  <martin@gnome.org>
391
392         * AssemblerWriterI386.cs, IAssemblerWriter.cs, MonoDwarfFileWriter.cs,
393         README, README.relocation-table, csharp-lang.[ch], gdb-csharp-support.patch,
394         gdb-variable-scopes.patch: Removed.
395
396 2002-09-03  Martin Baulig  <martin@gnome.org>
397
398         * MonoSymbolTableReader.cs (MonoSymbolTableReader.ImageFile): New
399         public property.
400
401         * MonoSymbolTable.cs: Bumped version number to 18.
402
403 2002-08-27  Martin Baulig  <martin@gnome.org>
404
405         * MonoSymbolTable.cs (MethodAddress): Removed `TrampolineAddress'.
406
407 2002-08-27  Martin Baulig  <martin@gnome.org>
408
409         * MonoSymbolTable.cs: Changed the file format in a way that allows us
410         open it read-only and to use a specially malloced area for all the
411         dynamic data.   
412
413 2002-08-25  Martin Baulig  <martin@gnome.org>
414
415         * MonoSymbolTableReader.cs: New file.  This is the reader for the
416         new symbol file format.
417
418 2002-08-24  Martin Baulig  <martin@gnome.org>
419
420         * MonoSymbolTable.cs, MonoSymbolTableWriter.cs: New files.  This
421         creates a binary application.dbg file which will be used by the
422         JIT to display source lines for exceptions.
423
424         * list.unix: Disabled the dwarf file writer in the build.
425
426 2002-08-23  Martin Baulig  <martin@gnome.org>
427
428         * MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Added
429         assembly name argument.  Since the symbol writer needs to read the
430         final assembly, we need to give it its full pathname.
431
432 2002-08-23  Martin Baulig  <martin@gnome.org>
433
434         * makefile.gnu, list.unix: Added.
435
436 2002-07-05  Martin Baulig  <martin@gnome.org>
437
438         * MonoDwarfFileWriter.cs: Added support for types in referenced assemblies.
439
440 2002-07-05  Martin Baulig  <martin@gnome.org>
441
442         * MonoDwarfFileWriter.cs: Added support for arrays.
443
444         * gdb-csharp-support.patch: Updated.
445
446 2002-06-29  Martin Baulig  <martin@gnome.org>
447
448         * MonoDwarfFileWriter.cs (DieInheritance): Make this actually work.
449
450 2002-06-29  Martin Baulig  <martin@gnome.org>
451
452         * MonoDwarfFileWriter.cs, MonoSymbolWriter.cs: Put all TAG_subprogram's into their
453         corresponding struct/class declarations.
454
455 2002-06-28  Martin Baulig  <martin@gnome.org>
456
457         * gdb-csharp-support.patch: Updated.
458
459 2002-06-28  Martin Baulig  <martin@gnome.org>
460
461         * MonoDwarfFileWriter.cs: Use a TAG_string_type when we're using GNU extensions.
462         Make static struct/class fields actually work.  Provide a TAG_typedef for struct's
463         and classes.
464
465 2002-05-30  Martin Baulig  <martin@gnome.org>
466
467         * IMonoSymbolWriter (IMonoSymbolWriter): Added custom `Initialize' method.
468
469         * MonoSymbolWriter.cs (Initialize): The ISymbolWriter's `Initialize' method
470         is no longer supported and throws an exception.
471         (Initialize (string, string[])): New custom initialization function.
472
473         * MonoDwarfFileWriter.cs (DwarfFileWriter): Added `string[] args' argument
474         to the constructor to pass command line arguments.
475
476         * gdb-csharp-support.patch: Updated for GDB 5.2.
477
478 2002-05-30  Martin Baulig  <martin@gnome.org>
479
480         * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now get's the
481         AssemblyBuilder's `methods' array as third argument.
482         (OpenMethod): Use this array to get the method builder rather than using an
483         interncall for it.
484         (get_method_builder): Removed this interncall.
485
486 2002-05-25  Martin Baulig  <martin@gnome.org>
487
488         * MonoDwarfFileWriter.cs: Finished the type rewrite, put back strings and arrays.
489
490 2002-05-24  Martin Baulig  <martin@gnome.org>
491
492         * IMonoSymbolWriter.cs (ISourceMethod): Added `FullName' and `Parameters'.
493         (ITypeHandle): New interface.
494
495         * DwarfFileWriter.cs: Largely reorganized the type writing code.  Types are
496         now represented by ITypeHandle objects which are stored in a per-dwarf-writer
497         hash table.  At the moment, all types still need to be in one compile unit due
498         to lacking support in gdb - but this new type code here already supports this.
499
500         * MonoSymbolWriter.cs: Moved all the subclasses to the top-level and made them
501         public, cleaned up the code, put everything into one compile unit.
502         (DefineLocalVariable): Added a version of this function which takes useful args.
503
504 2002-05-22  Martin Baulig  <martin@gnome.org>
505
506         * IMonoSymbolWriter.cs (IMonoSymbolWriter): Added `Sources' and `Methods'
507         properties.
508
509         * MonoDwarfFileWriter.cs (WriteSymbolTable): New public method.  Moved the
510         code that writes the "mono_line_numbers" section here from the LineNumberEngine.
511
512 2002-05-22  Martin Baulig  <martin@gnome.org>
513
514         * IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'.
515
516         * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now has an additional
517         ModuleBuilder argument.
518         (OpenMethod): Immediately call the `get_method' interncall to get the MethodBase
519         from the token, then store the MethodBase instead of the token.  The token may
520         still change during the metadata library's fixup process.
521         (DoFixups): When the image has been written to disk, call the GetToken () method
522         on all MethodBuilders and all ConstructorBuilders to get the final metadata tokens.
523
524 2002-05-22  Martin Baulig  <martin@gnome.org>
525
526         * AssemblerWriterI386.cs: Don't use GNU extensions and produce assembler
527         output which is free of comments and extra whitespaces so that it's suitable
528         for `as -f'.
529
530 2002-05-22  Martin Baulig  <martin@gnome.org>
531
532         * IMonoSymbolWriter.cs (ISourceMethod): Replaced `MethodInfo MethodInfo' with
533         `MethodBase MethodBase' and added `Type ReturnType'.  We're now correctly
534         dealing with constructors and not crashing anymore.
535
536 2002-05-21  Martin Baulig  <martin@gnome.org>
537
538         * MonoDwarfFileWriter.cs: Write a special line number table which can be read
539         in by the metadata library to get line number information in backtraces.
540
541 2002-05-06  Martin Baulig  <martin@gnome.org>
542
543         * MonoSymbolWriter.cs (MonoSymbolWriter.Close): Use Assembly.LoadFrom (), not
544         AppDomain.Load () to load the assembly.
545
546 2002-04-26  Martin Baulig  <martin@gnome.org>
547
548         * gdb-csharp-support.patch: A patch for GDB (against the latest CVS version)
549         to implement C# support.
550
551         * csharp-lang.c, csharp-lang.h, csharp-mono-lang.c: Copy these into your GDB
552         source directory after applying the patch.
553
554 2002-04-26  Martin Baulig  <martin@gnome.org>
555
556         * MonoDwarfFileWriter.cs (DieInternalString): Removed.
557
558 2002-04-25  Martin Baulig  <martin@gnome.org>
559
560         * MonoDwarfFileWriter.cs: Reflect latest MonoString changes.
561
562 2002-04-13  Martin Baulig  <martin@gnome.org>
563
564         * IMonoSymbolWriter.cs (ISourceBlock): Added `Blocks' property and `AddBlock'
565         method to support nested blocks.
566
567         * MonoSymbolWriter.cs: Correctly handle nested blocks.
568
569         * MonoDwarfFileWriter.cs (DieMember): Provide info for all fields, not just for
570         public ones; also added DW_AT_accessibility.
571         (DieVariable): Reflected latest debug-symfile.c changes.
572
573 2002-04-12  Martin Baulig  <martin@gnome.org>
574
575         * gdb-variable-scopes.patch: A patch for GDB (against the latest CVS version)
576         to implement variable lifetimes.
577
578 2002-04-12  Martin Baulig  <martin@gnome.org>
579
580         * MonoDwarfFileWriter.cs (DieVariable): Provide info about the variable's
581         lifetime using DW_AT_begin_scope and a new baulig extension DW_AT_end_scope.
582
583 2002-03-29  Martin Baulig  <martin@gnome.org>
584
585         * AssemblerWriterI386.cs: Rewrote most of the string output function, do the
586         number->string conversion manually. It's now taking about 15 seconds to write
587         a symbol file for MCS, no longer more than a minute.
588
589         * MonoDwarfFileWriter.cs: Added some profiling code, speeded things up, fixed
590         a few bugs.
591
592 2002-03-25  Martin Baulig  <martin@gnome.org>
593
594         * MonoDwarfFileWriter.cs (CreateType): Return a `DieType'.
595         (RegisterType): Add the type to the type hash before creating dependency types
596         so we don't get recursion loops.
597         (RegisterPointerType): New func to register a "pointer to type" type.
598         (DieTypeDef, DiePointerType, DieArrayType, DieStringType, DieClassType): New
599         types; added support for strings, arrays and basic support for classes.
600         
601 2002-03-24  Martin Baulig  <martin@gnome.org>
602
603         * IMonoSymbolWriter.cs: Killed all methods in this interface, no longer needed.
604
605         * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now takes a string
606         argument which is the full pathname of the assembly - you must call Close()
607         after the assembly has been written to disk since the symbol writer needs to
608         load the finished assembly to get its metadata.
609
610         * MonoDwarfFileWriter.cs: Added support for enums and structs.
611         
612 2002-03-24  Martin Baulig  <martin@gnome.org>
613
614         * MonoDwarfFileWriter.cs: Added support for method parameters.
615
616 2002-03-24  Martin Baulig  <martin@gnome.org>
617
618         * IMonoSymbolWriter.cs (IMonoSymbolWriter): Removed my custom OpenMethod(),
619         we're now using the ISymbolWriter's method.
620         (IVariable): Added `byte[] Signature' property.
621
622         * MonoSymbolWriter.cs (SetAssembly): New method. This must be called before
623         Close(); the assembly parameter is the already-written assembly, ie. it must
624         contain the full metadata.
625         (OpenMethod): Only take the token argument and set MethodInfo later in DoFixups.
626         (SetMethodSourceRange): You must call this function to tell the symbol writer
627         in which source file the method is defined.
628         (DefineLocal): Store the signature in the local.
629         (DoFixups): Use two new interncalls to set the SourceMethod's MethodInfo field
630         and the LocalVariable's Type field.
631
632 2002-03-23  Martin Baulig  <martin@gnome.org>
633
634         * IMonoSymbolWriter.cs (ISourceBlock): New interface.
635         (ILocalVariable): Renamed this interface to IVariable.
636         (IVariable): Added Line, Type, Token.
637         (ILocalVariable, IMethodParameter): New interfaces, derive from IVariable.
638         (ISourceMethod): Added Blocks. Renamed FirstLine and LastLine to Start and End,
639         changed their type to ISourceLine. Removed CodeSize.
640         (ISourceLine): Renamed Line to Row, added Column. Added OffsetType and Offset.
641
642         * MonoDwarfFileWriter.cs (MonoDwarfFileWriter.DieLexicalBlock): New class.
643         (MonoDwarfFileWriter.DieMethodVariable): New class.
644
645         * MonoSymbolWriter.cs (OpenScope, CloseScope): Implemented.
646         Reflected latest IMonoSymbolWriter interface changes.
647
648 2002-03-20  Martin Baulig  <martin@gnome.org>
649
650         * IAssemblerWriter.cs: New interface.
651
652         * AssemblerWriterI386.cs: New class.
653
654         * MonoDwarfFileWriter.cs: Use the IAssemblerWriter interface to make this class
655         platform and assembler independent.
656
657 2002-03-20  Martin Baulig  <martin@gnome.org>
658
659         * IMonoSymbolWriter.cs (ISourceMethod): Added FirstLine, LastLine, CodeSize and
660         Token properties.
661
662         * MonoDwarfFileWriter.cs: Implemented line number support.
663
664 2002-03-19  Martin Baulig  <martin@gnome.org>
665
666         * IMonoSymbolWriter.cs (ISourceFile, ISourceMethod, ISourceLine, ILocalVariable):
667         New interfaces.
668
669         * IMonoSymbolWriter.cs (OpenMethod): Take a System.Reflection.MethodInfo, not
670         a string.
671
672 2002-03-19  Martin Baulig  <martin@gnome.org>
673
674         This is an implementation of the System.Diagnostics.SymbolStore.SymbolWriter
675         interface. It's still work in progress and not yet used anywhere.
676
677         There is some preliminary documentation in the source files and some more
678         docu in the README and README.relocation-table files.
679
680         * IMonoSymbolWriter.cs: New file.
681         * MonoDwarfFileWriter.cs: New file.
682         * MonoSymbolDocumentWriter.cs: New file.
683         * MonoSymbolWriter.cs: New file.
684
685         * README, README.relocation-table: Documentation.
686