1 2005-06-20 Chris Toshok <toshok@ximian.com>
3 * MonoSymbolFile.cs (MonoSymbolFile.Dispose): make public.
5 2005-05-25 Lluis Sanchez Gual <lluis@novell.com>
7 * SymbolWriterImpl.cs: An implementation of ISymbolWriter. It is just a
8 wrapper for the MonoSymbolWriter class that mcs is using.
10 2005-04-04 Marek Safar <marek.safar@seznam.cz>
12 * MonoSymbolFile.cs: Removed unused fields.
14 2005-02-10 Martin Baulig <martin@ximian.com>
17 (MonoDebuggerSupport.MakeArrayType): New public method.
18 (MonoDebuggerSupport.ResolveType): New public method.
19 (MonoDebuggerSupport.GetTypeToken): New public method.
21 2005-02-10 Martin Baulig <martin@ximian.com>
23 * MonoSymbolFile.cs (MonoDebuggerSupport.GetMethodIndex): New
26 2004-11-23 Ben Maurer <bmaurer@ximian.com>
28 * MonoSymbolFile.cs (CreateSymbolFile): Take a filestream to
29 write to. Do not return a byte array.
31 (MyMemoryStream): Unused now.
33 * MonoSymbolWriter.cs: Take advantage of the api change above.
35 Overall, this prevents us from having to allocate the debug file
36 in ram. For corlib, the debug file is about 1.5 mb. So it takes up
37 over 3 mb (you must write it in chunks then get the big array)
39 With the file stream, it takes up 4 kb or so for the buffer.
41 2004-10-20 Martin Baulig <martin@ximian.com>
43 * MonoSymbolFile.cs (MonoSymbolFile.Write): Sort the method table
44 before actually writing it to disk and update MethodEntry.Index.
46 * MonoSymbolTable.cs (MethodEntry.Index): Make this a writable
47 property; set it after creating all the methods and sorting the
50 2004-09-21 Martin Baulig <martin@ximian.com>
52 * MonoSymbolFile.cs (MonoDebuggerSupport.CheckRuntimeVersion): New
55 2004-08-27 Martin Baulig <martin@ximian.com>
57 * MonoSymbolFile.cs (MonoSymbolFile..ctor): Read the GUID from the
58 symbol file before reading the OffsetTable.
60 2004-08-27 Chris Toshok <toshok@ximian.com>
62 * MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): pass name to
63 MonoSymbolFile.ctor, not filename, so we load the .mdb file
65 (MonoSymbolFile.ctor): pass FileAccess.Read to the FileStream
68 2004-08-27 Martin Baulig <martin@ximian.com>
70 * MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): The function is
71 called Module.Mono_GetGuid(), not Module.MonoDebugger_GetGuid().
73 2004-07-30 Martin Baulig <martin@ximian.com>
75 The library is now called Mono.CompilerServices.SymbolWriter.dll
76 and is in the Mono.CompilerServices.SymbolWriter namespace.
78 * MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): New public
80 (MonoSymbolFile.WriteString): Use the BinaryWriter's method.
81 (MonoSymbolFile.ReadString): Use the BinaryReader's method.
82 (MonoSymbolFile.Write): Write the module's Guid into the symbol
85 * MonoSymbolTable.cs, MonoSymbolWriter.cs: Reworked the API.
87 2004-07-27 Martin Baulig <martin@ximian.com>
89 * MonoSymbolFile.cs (MonoSymbolFile.Write): Sort the methods
90 according to their token values.
91 (MonoSymbolFile.ReadSymbolFile): Support reading the debugging
92 information from an external ".mdb" file.
95 (SourceFileEntry): Make the .ctor protected, not internal.
96 (SourceFileEntry.DefineMethod): This is no longer specific to
97 System.Reflection(.Emit).
98 (MethodEntry): We don't need the class and parameter types, the
99 JIT is already getting this information automatically.
100 (MethodEntry.ClassTypeIndex): Make this obsolete.
101 (MethodEntry.ParamTypeIndicies): Likewise.
103 2004-07-02 Raja R Harinath <rharinath@novell.com>
105 * Makefile (LIBRARY_USE_INTERMEDIATE_FILE): Define.
106 (LIBRARY_COMPILE): Simplify.
108 2004-06-24 Raja R Harinath <rharinath@novell.com>
110 * Makefile (LIBRARY_COMPILE): Only define for W32.
112 2004-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
114 * Makefile: build using mcs on windows.
116 2004-06-19 Martin Baulig <martin@ximian.com>
119 (SourceFileTable.Namespaces): New public property.
121 2004-06-02 Martin Baulig <martin@ximian.com>
123 Set version number to 37.
125 2004-05-23 Ben Maurer <bmaurer@users.sourceforge.net>
127 * MonoSymbolTable.cs (BuildLineNumberTable): Avoid arraylist.
129 2004-01-16 Martin Baulig <martin@ximian.com>
131 Set version number to 36.
133 * MonoSymbolFile.cs (MonoSymbolFile): Removed 'FindMethod' and
136 * MonoSymbolTable.cs (MethodEntry): Don't write the method's full
137 name into the symbol file.
139 2004-01-16 Martin Baulig <martin@ximian.com>
141 * MonoSymbolFile.cs (MonoDebuggerSupport): As suggested by Ben
142 Maurer, create a delegate type for each of the methods and then
145 2004-01-15 Martin Baulig <martin@ximian.com>
147 * MonoSymbolFile.cs (MonoDebuggerSupport): New public class
148 containing static wrappers for calling the `MonoDebugger_*'
149 function in S.R.Assembly.
151 2004-01-13 Martin Baulig <martin@ximian.com>
153 * MonoSymbolTable.cs: Added more #region's and a comment at the
156 * MonoSymbolWriter.cs (SourceMethod.BuildLineNumberTable): Removed
157 it here since it's in MethodEntry again.
159 2004-01-13 Martin Baulig <martin@ximian.com>
161 * ChangeLog, MonoSymbolTable.cs: Reviewed Ben's patches. For
162 those which are not ok, I'll add detailed comments to the source
165 2003-12-28 Ben Maurer <bmaurer@users.sourceforge.net>
167 [Revision 1.41, not approved. Martin]
168 * MonoSymbolTable.cs (MethodEntry): kill more
171 2003-12-28 Ben Maurer <bmaurer@users.sourceforge.net>
173 [Revision 1.40, not approved. Martin]
174 * MonoSymbolTable.cs (MethodEntry): Remove the
175 SourceFileIndex field, we already have the info.
177 2003-12-28 Ben Maurer <bmaurer@users.sourceforge.net>
179 [Revision 1.39, approved. Martin]
180 * MonoSymbolTable.cs: Don't make the MethodIndexEntry
181 part of the method entry class, because it just
182 takes up extra space.
184 2003-12-28 Ben Maurer <bmaurer@users.sourceforge.net>
186 [Revisions 1.37 and 1.38; not approved. Martin]
187 * MonoSymbolTable.cs (MethodEntry.BuildLineNumberTable): Removed.
189 * MonoSymbolTable.cs, MonoSymbolWriter.cs: Use
190 fewer arrays, dont use arraylists with structs.
192 2003-12-27 Ben Maurer <bmaurer@users.sourceforge.net>
194 * MonoSymbolFile.cs: Much, much better string writing.
196 2003-12-20 Ben Maurer <bmaurer@users.sourceforge.net>
198 [Revision 1.36, approved. Martin]
199 * MonoSymbolTable.cs: Fewer StringBuilder allocs.
201 2003-12-08 Zoltan Varga <vargaz@freemail.hu>
203 * MonoSymbolWriter.cs: Create ArrayLists only when needed.
205 2003-12-07 Ben Maurer <bmaurer@users.sourceforge.net>
207 [Revision 1.35, approved. Martin]
208 * MonoSymbolTable.cs: It is faster to do a linear search
209 than it is to make a hashtable. Even though the linear
210 search is O(n^2) while the hashtable is O(n), the allocation
211 cost for a hashtable is *very* high, especially when only
212 a few members will be added.
214 2003-09-06 Martin Baulig <martin@ximian.com>
216 * MonoSymbolFile.cs: Removed debugging output.
218 2003-08-05 Martin Baulig <martin@ximian.com>
220 * MonoSymbolTable.cs (MethodEntry.Index): New public field.
222 2003-06-27 Zoltan Varga <vargaz@freemail.hu>
224 * MonoSymbolWriter.cs: Enable calling of DefineDocument multiple
225 times with the same URL.
227 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
229 * MonoSymbolFile.cs: Fix off-by-one error.
231 2003-03-22 Martin Baulig <martin@ximian.com>
233 * MonoSymbolTable.cs (MethodEntry.LocalNamesAmbiguous): New public
234 field. Specifies whether two local variables have the same name.
236 2003-03-13 Martin Baulig <martin@ximian.com>
238 Added basic support for lexical scopes. This is just to tell a
239 debugger that a local variable is only available in a specific
240 lexical scope and that another variable of the same name may exist
241 in another lexical scope. See debugger/test/TestLexicalScope.cs
244 * MonoSymbolTable.cs (LexicalScopeEntry): New class.
245 (LocalVariableEntry): Added `BlockIndex' field which specifies the
246 lexical scope of this variable.
248 * MonoSymbolWriter.cs (SourceBlock): Removed, we're now using
249 LexicalScopeEntry instead.
251 2003-02-22 Martin Baulig <martin@ximian.com>
253 * MonoSymbolTable.cs: Incremented version number.
255 2003-02-22 Martin Baulig <martin@ximian.com>
257 * MonoSymbolFile.cs (MonoSymbolFile.FindMethod): Fixed a bug.
258 (MonoSymbolFile.MethodLookup): New method.
260 2003-02-18 Martin Baulig <martin@ximian.com>
262 * MonoSymbolFile.cs (MonoSymbolFile.GetMethod): Added overloaded
263 version which takes a MethodBase.
265 2003-02-18 Martin Baulig <martin@ximian.com>
267 * MonoSymbolTable.cs (MethodIndexEntry): New public struct.
269 * MonoSymbolFile.cs (MonoSymbolFile.GetMethodByToken): New method.
271 2003-02-18 Martin Baulig <martin@ximian.com>
273 * MonoSymbolFile.cs (MonoSymbolFile.Assembly): New public property.
275 * MonoSymbolTable.cs (MethodEntry.MethodBase): New public property.
276 (MethodEntry.LocalTypes): New public variable.
278 2003-02-18 Martin Baulig <martin@ximian.com>
280 * MonoSymbolFile.cs (MethodEntry.ThisTypeIndex): Renamed to
281 ClassTypeIndex; provide this for all methods so we can get the
282 class of static methods.
284 2003-02-10 Nick Drochak <ndrochak@gol.com>
286 * Mono.CSharp.Debugger.build: passing the /r using an 'arg' node works.
287 The <include> node wasn't getting to the compiler. This fixes build
290 * MonoSymbolFile.cs: Qualify which Min method. Fixes build breakage
293 2003-02-09 Martin Baulig <martin@ximian.com>
295 * MonoSymbolWriter.cs (MonoSymbolWriter.ctor): We don't need the
296 `mbuilder_array' anymore.
298 2003-02-09 Martin Baulig <martin@ximian.com>
300 * MonoSymbolWriter.cs (SourceFile): Derive from SourceFileEntry.
301 (SourceBlock): We don't need source lines here.
302 (SourceMethod): We're always constructed with source info.
304 * MonoSymbolTable.cs: Added support for namespaces.
305 (NamespaceEntry): New struct.
306 (SourceFileEntry.DefineNamespace): New method.
307 (MethodEntry.BuildLineNumberTable): The table is already sorted,
308 so we don't need to do this here.
310 2003-02-09 Martin Baulig <martin@ximian.com>
312 * IMonoSymbolWriter.cs: Ooops, I forgot to remove this.
314 2003-02-08 Martin Baulig <martin@ximian.com>
316 * MonoSymbolDocumentWriter.cs: Removed.
318 * MonoSymbolWriter.cs (SourceFile): Implement ISymbolDocumentWriter.
320 2003-02-08 Martin Baulig <martin@ximian.com>
322 * MonoSymbolFile.cs (GetMethodSource): New public method.
323 (FindMethod): Return the correct index.
325 2003-02-07 Martin Baulig <martin@ximian.com>
327 * MonoSymbolFile.cs (Methods, Sources): New public properties.
329 2003-02-07 Martin Baulig <martin@ximian.com>
331 * MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): New public
332 static method, returns null (without throwing an exception) if the
333 assembly doesn't have any debugging info.
335 2003-02-07 Martin Baulig <martin@ximian.com>
337 * MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Removed the
338 custom initialization function.
340 * MonoSymbolTableWriter.cs: Removed; the code is now in
341 MonoSymbolFile.cs and MonoSymbolWriter.cs.
343 2003-02-07 Martin Baulig <martin@ximian.com>
345 * MonoSymbolFile.cs: The symbol file is now a resource in the
346 assembly instead of a separate file.
348 * MonoSymbolTable.cs: Did a few more cleanups, sort the line
349 number table and remove duplicate line numbers.
351 2003-02-05 Martin Baulig <martin@ximian.com>
353 Modified the symbol file format to speed up method looks by name
354 and cleaned this up a lot.
356 * MonoSymbolFile.cs: New public class. This is now a public class
357 and writes and reads the symbol file.
359 * IMonoBinaryReader.cs: Removed.
361 * MonoSymbolTable.cs: Set version number to 29.
363 2003-01-17 Zoltan Varga <vargaz@freemail.hu>
365 * MonoSymbolWriter.cs (OpenMethod): Make it work on constructors.
367 2002-10-13 Martin Baulig <martin@gnome.org>
369 * MonoSymbolTable.cs: Set version number to 28.
370 (SourceFileEntry): Read the methods when they're needed.
371 (MethodSourceEntry): Made this a struct, not a class.
373 2002-10-13 Martin Baulig <martin@gnome.org>
375 * MonoSymbolTable.cs: Set version number to 27. Added a source
376 file table which is used to search a method by source file + line number.
378 2002-09-21 Martin Baulig <martin@gnome.org>
380 * MonoSymbolTable.cs: Set version number to 26. Removed all the dynamic
381 stuff, this library now just deals with the compiler generated symbol table.
382 The dynamic stuff is private between the JIT and the debugger.
384 2002-09-21 Martin Baulig <martin@gnome.org>
386 * MonoSymbolTable.cs: Set version number to 25. Added information about
389 2002-09-20 Martin Baulig <martin@gnome.org>
391 * MonoSymbolTable.cs: Set version number to 24. Added a type index
392 table. Write the type of a local variable or a parameter as an index
395 2002-09-20 Martin Baulig <martin@gnome.org>
397 * IMonoSymbolWriter.cs: Remove all the unused interfaces.
399 2002-09-20 Martin Baulig <martin@gnome.org>
401 * MonoSymbolTable.cs: Set version number to 23, include the size
404 2002-09-20 Martin Baulig <martin@gnome.org>
406 * MonoSymbolTable.cs: Set version number to 22. Provide information
407 about parameters and local variables.
409 2002-09-20 Martin Baulig <martin@gnome.org>
411 * IMonoSymbolWriter.cs: Use fullly qualified name for
412 System.Diagnostics.SymbolStore.ISymbolWriter rather than `using' this
413 namespace. This allows us to use the name `ISymbolWriter' in our own
416 2002-09-18 Martin Baulig <martin@gnome.org>
418 * MonoSymbolTable.cs: Set version number to 21. Encode the source file
419 as a 4-byte length field followed by the UTF8 encoded string.
421 2002-09-18 Martin Baulig <martin@gnome.org>
423 * IMonoBinaryReader.cs: New interface.
425 * MonoSymbolTable.cs: Use IMonoBinaryReader instead of binary reader.
427 2002-09-16 Martin Baulig <martin@gnome.org>
429 * MonoSymbolTable.cs: Set version number to 20.
431 2002-09-14 Martin Baulig <martin@gnome.org>
433 * MonoSymbolWriter.cs, IMonoSymbolWriter.cs, MonoSymbolTableWriter.cs:
434 Make all classes and interfaces which don't need to be public internal.
436 2002-09-14 Martin Baulig <martin@gnome.org>
438 * MonoSymbolTable.cs: Use only CLS-compliant types here, bumped version
441 * MonoSymbolTableReader.cs: Removed, this is now in the debugger.
443 2002-09-03 Martin Baulig <martin@gnome.org>
445 * AssemblerWriterI386.cs, IAssemblerWriter.cs, MonoDwarfFileWriter.cs,
446 README, README.relocation-table, csharp-lang.[ch], gdb-csharp-support.patch,
447 gdb-variable-scopes.patch: Removed.
449 2002-09-03 Martin Baulig <martin@gnome.org>
451 * MonoSymbolTableReader.cs (MonoSymbolTableReader.ImageFile): New
454 * MonoSymbolTable.cs: Bumped version number to 18.
456 2002-08-27 Martin Baulig <martin@gnome.org>
458 * MonoSymbolTable.cs (MethodAddress): Removed `TrampolineAddress'.
460 2002-08-27 Martin Baulig <martin@gnome.org>
462 * MonoSymbolTable.cs: Changed the file format in a way that allows us
463 open it read-only and to use a specially malloced area for all the
466 2002-08-25 Martin Baulig <martin@gnome.org>
468 * MonoSymbolTableReader.cs: New file. This is the reader for the
469 new symbol file format.
471 2002-08-24 Martin Baulig <martin@gnome.org>
473 * MonoSymbolTable.cs, MonoSymbolTableWriter.cs: New files. This
474 creates a binary application.dbg file which will be used by the
475 JIT to display source lines for exceptions.
477 * list.unix: Disabled the dwarf file writer in the build.
479 2002-08-23 Martin Baulig <martin@gnome.org>
481 * MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Added
482 assembly name argument. Since the symbol writer needs to read the
483 final assembly, we need to give it its full pathname.
485 2002-08-23 Martin Baulig <martin@gnome.org>
487 * makefile.gnu, list.unix: Added.
489 2002-07-05 Martin Baulig <martin@gnome.org>
491 * MonoDwarfFileWriter.cs: Added support for types in referenced assemblies.
493 2002-07-05 Martin Baulig <martin@gnome.org>
495 * MonoDwarfFileWriter.cs: Added support for arrays.
497 * gdb-csharp-support.patch: Updated.
499 2002-06-29 Martin Baulig <martin@gnome.org>
501 * MonoDwarfFileWriter.cs (DieInheritance): Make this actually work.
503 2002-06-29 Martin Baulig <martin@gnome.org>
505 * MonoDwarfFileWriter.cs, MonoSymbolWriter.cs: Put all TAG_subprogram's into their
506 corresponding struct/class declarations.
508 2002-06-28 Martin Baulig <martin@gnome.org>
510 * gdb-csharp-support.patch: Updated.
512 2002-06-28 Martin Baulig <martin@gnome.org>
514 * MonoDwarfFileWriter.cs: Use a TAG_string_type when we're using GNU extensions.
515 Make static struct/class fields actually work. Provide a TAG_typedef for struct's
518 2002-05-30 Martin Baulig <martin@gnome.org>
520 * IMonoSymbolWriter (IMonoSymbolWriter): Added custom `Initialize' method.
522 * MonoSymbolWriter.cs (Initialize): The ISymbolWriter's `Initialize' method
523 is no longer supported and throws an exception.
524 (Initialize (string, string[])): New custom initialization function.
526 * MonoDwarfFileWriter.cs (DwarfFileWriter): Added `string[] args' argument
527 to the constructor to pass command line arguments.
529 * gdb-csharp-support.patch: Updated for GDB 5.2.
531 2002-05-30 Martin Baulig <martin@gnome.org>
533 * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now get's the
534 AssemblyBuilder's `methods' array as third argument.
535 (OpenMethod): Use this array to get the method builder rather than using an
537 (get_method_builder): Removed this interncall.
539 2002-05-25 Martin Baulig <martin@gnome.org>
541 * MonoDwarfFileWriter.cs: Finished the type rewrite, put back strings and arrays.
543 2002-05-24 Martin Baulig <martin@gnome.org>
545 * IMonoSymbolWriter.cs (ISourceMethod): Added `FullName' and `Parameters'.
546 (ITypeHandle): New interface.
548 * DwarfFileWriter.cs: Largely reorganized the type writing code. Types are
549 now represented by ITypeHandle objects which are stored in a per-dwarf-writer
550 hash table. At the moment, all types still need to be in one compile unit due
551 to lacking support in gdb - but this new type code here already supports this.
553 * MonoSymbolWriter.cs: Moved all the subclasses to the top-level and made them
554 public, cleaned up the code, put everything into one compile unit.
555 (DefineLocalVariable): Added a version of this function which takes useful args.
557 2002-05-22 Martin Baulig <martin@gnome.org>
559 * IMonoSymbolWriter.cs (IMonoSymbolWriter): Added `Sources' and `Methods'
562 * MonoDwarfFileWriter.cs (WriteSymbolTable): New public method. Moved the
563 code that writes the "mono_line_numbers" section here from the LineNumberEngine.
565 2002-05-22 Martin Baulig <martin@gnome.org>
567 * IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'.
569 * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now has an additional
570 ModuleBuilder argument.
571 (OpenMethod): Immediately call the `get_method' interncall to get the MethodBase
572 from the token, then store the MethodBase instead of the token. The token may
573 still change during the metadata library's fixup process.
574 (DoFixups): When the image has been written to disk, call the GetToken () method
575 on all MethodBuilders and all ConstructorBuilders to get the final metadata tokens.
577 2002-05-22 Martin Baulig <martin@gnome.org>
579 * AssemblerWriterI386.cs: Don't use GNU extensions and produce assembler
580 output which is free of comments and extra whitespaces so that it's suitable
583 2002-05-22 Martin Baulig <martin@gnome.org>
585 * IMonoSymbolWriter.cs (ISourceMethod): Replaced `MethodInfo MethodInfo' with
586 `MethodBase MethodBase' and added `Type ReturnType'. We're now correctly
587 dealing with constructors and not crashing anymore.
589 2002-05-21 Martin Baulig <martin@gnome.org>
591 * MonoDwarfFileWriter.cs: Write a special line number table which can be read
592 in by the metadata library to get line number information in backtraces.
594 2002-05-06 Martin Baulig <martin@gnome.org>
596 * MonoSymbolWriter.cs (MonoSymbolWriter.Close): Use Assembly.LoadFrom (), not
597 AppDomain.Load () to load the assembly.
599 2002-04-26 Martin Baulig <martin@gnome.org>
601 * gdb-csharp-support.patch: A patch for GDB (against the latest CVS version)
602 to implement C# support.
604 * csharp-lang.c, csharp-lang.h, csharp-mono-lang.c: Copy these into your GDB
605 source directory after applying the patch.
607 2002-04-26 Martin Baulig <martin@gnome.org>
609 * MonoDwarfFileWriter.cs (DieInternalString): Removed.
611 2002-04-25 Martin Baulig <martin@gnome.org>
613 * MonoDwarfFileWriter.cs: Reflect latest MonoString changes.
615 2002-04-13 Martin Baulig <martin@gnome.org>
617 * IMonoSymbolWriter.cs (ISourceBlock): Added `Blocks' property and `AddBlock'
618 method to support nested blocks.
620 * MonoSymbolWriter.cs: Correctly handle nested blocks.
622 * MonoDwarfFileWriter.cs (DieMember): Provide info for all fields, not just for
623 public ones; also added DW_AT_accessibility.
624 (DieVariable): Reflected latest debug-symfile.c changes.
626 2002-04-12 Martin Baulig <martin@gnome.org>
628 * gdb-variable-scopes.patch: A patch for GDB (against the latest CVS version)
629 to implement variable lifetimes.
631 2002-04-12 Martin Baulig <martin@gnome.org>
633 * MonoDwarfFileWriter.cs (DieVariable): Provide info about the variable's
634 lifetime using DW_AT_begin_scope and a new baulig extension DW_AT_end_scope.
636 2002-03-29 Martin Baulig <martin@gnome.org>
638 * AssemblerWriterI386.cs: Rewrote most of the string output function, do the
639 number->string conversion manually. It's now taking about 15 seconds to write
640 a symbol file for MCS, no longer more than a minute.
642 * MonoDwarfFileWriter.cs: Added some profiling code, speeded things up, fixed
645 2002-03-25 Martin Baulig <martin@gnome.org>
647 * MonoDwarfFileWriter.cs (CreateType): Return a `DieType'.
648 (RegisterType): Add the type to the type hash before creating dependency types
649 so we don't get recursion loops.
650 (RegisterPointerType): New func to register a "pointer to type" type.
651 (DieTypeDef, DiePointerType, DieArrayType, DieStringType, DieClassType): New
652 types; added support for strings, arrays and basic support for classes.
654 2002-03-24 Martin Baulig <martin@gnome.org>
656 * IMonoSymbolWriter.cs: Killed all methods in this interface, no longer needed.
658 * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now takes a string
659 argument which is the full pathname of the assembly - you must call Close()
660 after the assembly has been written to disk since the symbol writer needs to
661 load the finished assembly to get its metadata.
663 * MonoDwarfFileWriter.cs: Added support for enums and structs.
665 2002-03-24 Martin Baulig <martin@gnome.org>
667 * MonoDwarfFileWriter.cs: Added support for method parameters.
669 2002-03-24 Martin Baulig <martin@gnome.org>
671 * IMonoSymbolWriter.cs (IMonoSymbolWriter): Removed my custom OpenMethod(),
672 we're now using the ISymbolWriter's method.
673 (IVariable): Added `byte[] Signature' property.
675 * MonoSymbolWriter.cs (SetAssembly): New method. This must be called before
676 Close(); the assembly parameter is the already-written assembly, ie. it must
677 contain the full metadata.
678 (OpenMethod): Only take the token argument and set MethodInfo later in DoFixups.
679 (SetMethodSourceRange): You must call this function to tell the symbol writer
680 in which source file the method is defined.
681 (DefineLocal): Store the signature in the local.
682 (DoFixups): Use two new interncalls to set the SourceMethod's MethodInfo field
683 and the LocalVariable's Type field.
685 2002-03-23 Martin Baulig <martin@gnome.org>
687 * IMonoSymbolWriter.cs (ISourceBlock): New interface.
688 (ILocalVariable): Renamed this interface to IVariable.
689 (IVariable): Added Line, Type, Token.
690 (ILocalVariable, IMethodParameter): New interfaces, derive from IVariable.
691 (ISourceMethod): Added Blocks. Renamed FirstLine and LastLine to Start and End,
692 changed their type to ISourceLine. Removed CodeSize.
693 (ISourceLine): Renamed Line to Row, added Column. Added OffsetType and Offset.
695 * MonoDwarfFileWriter.cs (MonoDwarfFileWriter.DieLexicalBlock): New class.
696 (MonoDwarfFileWriter.DieMethodVariable): New class.
698 * MonoSymbolWriter.cs (OpenScope, CloseScope): Implemented.
699 Reflected latest IMonoSymbolWriter interface changes.
701 2002-03-20 Martin Baulig <martin@gnome.org>
703 * IAssemblerWriter.cs: New interface.
705 * AssemblerWriterI386.cs: New class.
707 * MonoDwarfFileWriter.cs: Use the IAssemblerWriter interface to make this class
708 platform and assembler independent.
710 2002-03-20 Martin Baulig <martin@gnome.org>
712 * IMonoSymbolWriter.cs (ISourceMethod): Added FirstLine, LastLine, CodeSize and
715 * MonoDwarfFileWriter.cs: Implemented line number support.
717 2002-03-19 Martin Baulig <martin@gnome.org>
719 * IMonoSymbolWriter.cs (ISourceFile, ISourceMethod, ISourceLine, ILocalVariable):
722 * IMonoSymbolWriter.cs (OpenMethod): Take a System.Reflection.MethodInfo, not
725 2002-03-19 Martin Baulig <martin@gnome.org>
727 This is an implementation of the System.Diagnostics.SymbolStore.SymbolWriter
728 interface. It's still work in progress and not yet used anywhere.
730 There is some preliminary documentation in the source files and some more
731 docu in the README and README.relocation-table files.
733 * IMonoSymbolWriter.cs: New file.
734 * MonoDwarfFileWriter.cs: New file.
735 * MonoSymbolDocumentWriter.cs: New file.
736 * MonoSymbolWriter.cs: New file.
738 * README, README.relocation-table: Documentation.