1 2005-09-05 Martin Baulig <martin@ximian.com>
3 * MonoSymbolFile.cs (MonoDebuggerSupport): Make this internal and
4 move everything we don't need here into the debugger.
6 2005-06-20 Chris Toshok <toshok@ximian.com>
8 * MonoSymbolFile.cs (MonoSymbolFile.Dispose): make public.
10 2005-05-25 Lluis Sanchez Gual <lluis@novell.com>
12 * SymbolWriterImpl.cs: An implementation of ISymbolWriter. It is just a
13 wrapper for the MonoSymbolWriter class that mcs is using.
15 2005-04-04 Marek Safar <marek.safar@seznam.cz>
17 * MonoSymbolFile.cs: Removed unused fields.
19 2005-02-10 Martin Baulig <martin@ximian.com>
22 (MonoDebuggerSupport.MakeArrayType): New public method.
23 (MonoDebuggerSupport.ResolveType): New public method.
24 (MonoDebuggerSupport.GetTypeToken): New public method.
26 2005-02-10 Martin Baulig <martin@ximian.com>
28 * MonoSymbolFile.cs (MonoDebuggerSupport.GetMethodIndex): New
31 2004-11-23 Ben Maurer <bmaurer@ximian.com>
33 * MonoSymbolFile.cs (CreateSymbolFile): Take a filestream to
34 write to. Do not return a byte array.
36 (MyMemoryStream): Unused now.
38 * MonoSymbolWriter.cs: Take advantage of the api change above.
40 Overall, this prevents us from having to allocate the debug file
41 in ram. For corlib, the debug file is about 1.5 mb. So it takes up
42 over 3 mb (you must write it in chunks then get the big array)
44 With the file stream, it takes up 4 kb or so for the buffer.
46 2004-10-20 Martin Baulig <martin@ximian.com>
48 * MonoSymbolFile.cs (MonoSymbolFile.Write): Sort the method table
49 before actually writing it to disk and update MethodEntry.Index.
51 * MonoSymbolTable.cs (MethodEntry.Index): Make this a writable
52 property; set it after creating all the methods and sorting the
55 2004-09-21 Martin Baulig <martin@ximian.com>
57 * MonoSymbolFile.cs (MonoDebuggerSupport.CheckRuntimeVersion): New
60 2004-08-27 Martin Baulig <martin@ximian.com>
62 * MonoSymbolFile.cs (MonoSymbolFile..ctor): Read the GUID from the
63 symbol file before reading the OffsetTable.
65 2004-08-27 Chris Toshok <toshok@ximian.com>
67 * MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): pass name to
68 MonoSymbolFile.ctor, not filename, so we load the .mdb file
70 (MonoSymbolFile.ctor): pass FileAccess.Read to the FileStream
73 2004-08-27 Martin Baulig <martin@ximian.com>
75 * MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): The function is
76 called Module.Mono_GetGuid(), not Module.MonoDebugger_GetGuid().
78 2004-07-30 Martin Baulig <martin@ximian.com>
80 The library is now called Mono.CompilerServices.SymbolWriter.dll
81 and is in the Mono.CompilerServices.SymbolWriter namespace.
83 * MonoSymbolFile.cs (MonoDebuggerSupport.GetGuid): New public
85 (MonoSymbolFile.WriteString): Use the BinaryWriter's method.
86 (MonoSymbolFile.ReadString): Use the BinaryReader's method.
87 (MonoSymbolFile.Write): Write the module's Guid into the symbol
90 * MonoSymbolTable.cs, MonoSymbolWriter.cs: Reworked the API.
92 2004-07-27 Martin Baulig <martin@ximian.com>
94 * MonoSymbolFile.cs (MonoSymbolFile.Write): Sort the methods
95 according to their token values.
96 (MonoSymbolFile.ReadSymbolFile): Support reading the debugging
97 information from an external ".mdb" file.
100 (SourceFileEntry): Make the .ctor protected, not internal.
101 (SourceFileEntry.DefineMethod): This is no longer specific to
102 System.Reflection(.Emit).
103 (MethodEntry): We don't need the class and parameter types, the
104 JIT is already getting this information automatically.
105 (MethodEntry.ClassTypeIndex): Make this obsolete.
106 (MethodEntry.ParamTypeIndicies): Likewise.
108 2004-07-02 Raja R Harinath <rharinath@novell.com>
110 * Makefile (LIBRARY_USE_INTERMEDIATE_FILE): Define.
111 (LIBRARY_COMPILE): Simplify.
113 2004-06-24 Raja R Harinath <rharinath@novell.com>
115 * Makefile (LIBRARY_COMPILE): Only define for W32.
117 2004-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
119 * Makefile: build using mcs on windows.
121 2004-06-19 Martin Baulig <martin@ximian.com>
124 (SourceFileTable.Namespaces): New public property.
126 2004-06-02 Martin Baulig <martin@ximian.com>
128 Set version number to 37.
130 2004-05-23 Ben Maurer <bmaurer@users.sourceforge.net>
132 * MonoSymbolTable.cs (BuildLineNumberTable): Avoid arraylist.
134 2004-01-16 Martin Baulig <martin@ximian.com>
136 Set version number to 36.
138 * MonoSymbolFile.cs (MonoSymbolFile): Removed 'FindMethod' and
141 * MonoSymbolTable.cs (MethodEntry): Don't write the method's full
142 name into the symbol file.
144 2004-01-16 Martin Baulig <martin@ximian.com>
146 * MonoSymbolFile.cs (MonoDebuggerSupport): As suggested by Ben
147 Maurer, create a delegate type for each of the methods and then
150 2004-01-15 Martin Baulig <martin@ximian.com>
152 * MonoSymbolFile.cs (MonoDebuggerSupport): New public class
153 containing static wrappers for calling the `MonoDebugger_*'
154 function in S.R.Assembly.
156 2004-01-13 Martin Baulig <martin@ximian.com>
158 * MonoSymbolTable.cs: Added more #region's and a comment at the
161 * MonoSymbolWriter.cs (SourceMethod.BuildLineNumberTable): Removed
162 it here since it's in MethodEntry again.
164 2004-01-13 Martin Baulig <martin@ximian.com>
166 * ChangeLog, MonoSymbolTable.cs: Reviewed Ben's patches. For
167 those which are not ok, I'll add detailed comments to the source
170 2003-12-28 Ben Maurer <bmaurer@users.sourceforge.net>
172 [Revision 1.41, not approved. Martin]
173 * MonoSymbolTable.cs (MethodEntry): kill more
176 2003-12-28 Ben Maurer <bmaurer@users.sourceforge.net>
178 [Revision 1.40, not approved. Martin]
179 * MonoSymbolTable.cs (MethodEntry): Remove the
180 SourceFileIndex field, we already have the info.
182 2003-12-28 Ben Maurer <bmaurer@users.sourceforge.net>
184 [Revision 1.39, approved. Martin]
185 * MonoSymbolTable.cs: Don't make the MethodIndexEntry
186 part of the method entry class, because it just
187 takes up extra space.
189 2003-12-28 Ben Maurer <bmaurer@users.sourceforge.net>
191 [Revisions 1.37 and 1.38; not approved. Martin]
192 * MonoSymbolTable.cs (MethodEntry.BuildLineNumberTable): Removed.
194 * MonoSymbolTable.cs, MonoSymbolWriter.cs: Use
195 fewer arrays, dont use arraylists with structs.
197 2003-12-27 Ben Maurer <bmaurer@users.sourceforge.net>
199 * MonoSymbolFile.cs: Much, much better string writing.
201 2003-12-20 Ben Maurer <bmaurer@users.sourceforge.net>
203 [Revision 1.36, approved. Martin]
204 * MonoSymbolTable.cs: Fewer StringBuilder allocs.
206 2003-12-08 Zoltan Varga <vargaz@freemail.hu>
208 * MonoSymbolWriter.cs: Create ArrayLists only when needed.
210 2003-12-07 Ben Maurer <bmaurer@users.sourceforge.net>
212 [Revision 1.35, approved. Martin]
213 * MonoSymbolTable.cs: It is faster to do a linear search
214 than it is to make a hashtable. Even though the linear
215 search is O(n^2) while the hashtable is O(n), the allocation
216 cost for a hashtable is *very* high, especially when only
217 a few members will be added.
219 2003-09-06 Martin Baulig <martin@ximian.com>
221 * MonoSymbolFile.cs: Removed debugging output.
223 2003-08-05 Martin Baulig <martin@ximian.com>
225 * MonoSymbolTable.cs (MethodEntry.Index): New public field.
227 2003-06-27 Zoltan Varga <vargaz@freemail.hu>
229 * MonoSymbolWriter.cs: Enable calling of DefineDocument multiple
230 times with the same URL.
232 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
234 * MonoSymbolFile.cs: Fix off-by-one error.
236 2003-03-22 Martin Baulig <martin@ximian.com>
238 * MonoSymbolTable.cs (MethodEntry.LocalNamesAmbiguous): New public
239 field. Specifies whether two local variables have the same name.
241 2003-03-13 Martin Baulig <martin@ximian.com>
243 Added basic support for lexical scopes. This is just to tell a
244 debugger that a local variable is only available in a specific
245 lexical scope and that another variable of the same name may exist
246 in another lexical scope. See debugger/test/TestLexicalScope.cs
249 * MonoSymbolTable.cs (LexicalScopeEntry): New class.
250 (LocalVariableEntry): Added `BlockIndex' field which specifies the
251 lexical scope of this variable.
253 * MonoSymbolWriter.cs (SourceBlock): Removed, we're now using
254 LexicalScopeEntry instead.
256 2003-02-22 Martin Baulig <martin@ximian.com>
258 * MonoSymbolTable.cs: Incremented version number.
260 2003-02-22 Martin Baulig <martin@ximian.com>
262 * MonoSymbolFile.cs (MonoSymbolFile.FindMethod): Fixed a bug.
263 (MonoSymbolFile.MethodLookup): New method.
265 2003-02-18 Martin Baulig <martin@ximian.com>
267 * MonoSymbolFile.cs (MonoSymbolFile.GetMethod): Added overloaded
268 version which takes a MethodBase.
270 2003-02-18 Martin Baulig <martin@ximian.com>
272 * MonoSymbolTable.cs (MethodIndexEntry): New public struct.
274 * MonoSymbolFile.cs (MonoSymbolFile.GetMethodByToken): New method.
276 2003-02-18 Martin Baulig <martin@ximian.com>
278 * MonoSymbolFile.cs (MonoSymbolFile.Assembly): New public property.
280 * MonoSymbolTable.cs (MethodEntry.MethodBase): New public property.
281 (MethodEntry.LocalTypes): New public variable.
283 2003-02-18 Martin Baulig <martin@ximian.com>
285 * MonoSymbolFile.cs (MethodEntry.ThisTypeIndex): Renamed to
286 ClassTypeIndex; provide this for all methods so we can get the
287 class of static methods.
289 2003-02-10 Nick Drochak <ndrochak@gol.com>
291 * Mono.CSharp.Debugger.build: passing the /r using an 'arg' node works.
292 The <include> node wasn't getting to the compiler. This fixes build
295 * MonoSymbolFile.cs: Qualify which Min method. Fixes build breakage
298 2003-02-09 Martin Baulig <martin@ximian.com>
300 * MonoSymbolWriter.cs (MonoSymbolWriter.ctor): We don't need the
301 `mbuilder_array' anymore.
303 2003-02-09 Martin Baulig <martin@ximian.com>
305 * MonoSymbolWriter.cs (SourceFile): Derive from SourceFileEntry.
306 (SourceBlock): We don't need source lines here.
307 (SourceMethod): We're always constructed with source info.
309 * MonoSymbolTable.cs: Added support for namespaces.
310 (NamespaceEntry): New struct.
311 (SourceFileEntry.DefineNamespace): New method.
312 (MethodEntry.BuildLineNumberTable): The table is already sorted,
313 so we don't need to do this here.
315 2003-02-09 Martin Baulig <martin@ximian.com>
317 * IMonoSymbolWriter.cs: Ooops, I forgot to remove this.
319 2003-02-08 Martin Baulig <martin@ximian.com>
321 * MonoSymbolDocumentWriter.cs: Removed.
323 * MonoSymbolWriter.cs (SourceFile): Implement ISymbolDocumentWriter.
325 2003-02-08 Martin Baulig <martin@ximian.com>
327 * MonoSymbolFile.cs (GetMethodSource): New public method.
328 (FindMethod): Return the correct index.
330 2003-02-07 Martin Baulig <martin@ximian.com>
332 * MonoSymbolFile.cs (Methods, Sources): New public properties.
334 2003-02-07 Martin Baulig <martin@ximian.com>
336 * MonoSymbolFile.cs (MonoSymbolFile.ReadSymbolFile): New public
337 static method, returns null (without throwing an exception) if the
338 assembly doesn't have any debugging info.
340 2003-02-07 Martin Baulig <martin@ximian.com>
342 * MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Removed the
343 custom initialization function.
345 * MonoSymbolTableWriter.cs: Removed; the code is now in
346 MonoSymbolFile.cs and MonoSymbolWriter.cs.
348 2003-02-07 Martin Baulig <martin@ximian.com>
350 * MonoSymbolFile.cs: The symbol file is now a resource in the
351 assembly instead of a separate file.
353 * MonoSymbolTable.cs: Did a few more cleanups, sort the line
354 number table and remove duplicate line numbers.
356 2003-02-05 Martin Baulig <martin@ximian.com>
358 Modified the symbol file format to speed up method looks by name
359 and cleaned this up a lot.
361 * MonoSymbolFile.cs: New public class. This is now a public class
362 and writes and reads the symbol file.
364 * IMonoBinaryReader.cs: Removed.
366 * MonoSymbolTable.cs: Set version number to 29.
368 2003-01-17 Zoltan Varga <vargaz@freemail.hu>
370 * MonoSymbolWriter.cs (OpenMethod): Make it work on constructors.
372 2002-10-13 Martin Baulig <martin@gnome.org>
374 * MonoSymbolTable.cs: Set version number to 28.
375 (SourceFileEntry): Read the methods when they're needed.
376 (MethodSourceEntry): Made this a struct, not a class.
378 2002-10-13 Martin Baulig <martin@gnome.org>
380 * MonoSymbolTable.cs: Set version number to 27. Added a source
381 file table which is used to search a method by source file + line number.
383 2002-09-21 Martin Baulig <martin@gnome.org>
385 * MonoSymbolTable.cs: Set version number to 26. Removed all the dynamic
386 stuff, this library now just deals with the compiler generated symbol table.
387 The dynamic stuff is private between the JIT and the debugger.
389 2002-09-21 Martin Baulig <martin@gnome.org>
391 * MonoSymbolTable.cs: Set version number to 25. Added information about
394 2002-09-20 Martin Baulig <martin@gnome.org>
396 * MonoSymbolTable.cs: Set version number to 24. Added a type index
397 table. Write the type of a local variable or a parameter as an index
400 2002-09-20 Martin Baulig <martin@gnome.org>
402 * IMonoSymbolWriter.cs: Remove all the unused interfaces.
404 2002-09-20 Martin Baulig <martin@gnome.org>
406 * MonoSymbolTable.cs: Set version number to 23, include the size
409 2002-09-20 Martin Baulig <martin@gnome.org>
411 * MonoSymbolTable.cs: Set version number to 22. Provide information
412 about parameters and local variables.
414 2002-09-20 Martin Baulig <martin@gnome.org>
416 * IMonoSymbolWriter.cs: Use fullly qualified name for
417 System.Diagnostics.SymbolStore.ISymbolWriter rather than `using' this
418 namespace. This allows us to use the name `ISymbolWriter' in our own
421 2002-09-18 Martin Baulig <martin@gnome.org>
423 * MonoSymbolTable.cs: Set version number to 21. Encode the source file
424 as a 4-byte length field followed by the UTF8 encoded string.
426 2002-09-18 Martin Baulig <martin@gnome.org>
428 * IMonoBinaryReader.cs: New interface.
430 * MonoSymbolTable.cs: Use IMonoBinaryReader instead of binary reader.
432 2002-09-16 Martin Baulig <martin@gnome.org>
434 * MonoSymbolTable.cs: Set version number to 20.
436 2002-09-14 Martin Baulig <martin@gnome.org>
438 * MonoSymbolWriter.cs, IMonoSymbolWriter.cs, MonoSymbolTableWriter.cs:
439 Make all classes and interfaces which don't need to be public internal.
441 2002-09-14 Martin Baulig <martin@gnome.org>
443 * MonoSymbolTable.cs: Use only CLS-compliant types here, bumped version
446 * MonoSymbolTableReader.cs: Removed, this is now in the debugger.
448 2002-09-03 Martin Baulig <martin@gnome.org>
450 * AssemblerWriterI386.cs, IAssemblerWriter.cs, MonoDwarfFileWriter.cs,
451 README, README.relocation-table, csharp-lang.[ch], gdb-csharp-support.patch,
452 gdb-variable-scopes.patch: Removed.
454 2002-09-03 Martin Baulig <martin@gnome.org>
456 * MonoSymbolTableReader.cs (MonoSymbolTableReader.ImageFile): New
459 * MonoSymbolTable.cs: Bumped version number to 18.
461 2002-08-27 Martin Baulig <martin@gnome.org>
463 * MonoSymbolTable.cs (MethodAddress): Removed `TrampolineAddress'.
465 2002-08-27 Martin Baulig <martin@gnome.org>
467 * MonoSymbolTable.cs: Changed the file format in a way that allows us
468 open it read-only and to use a specially malloced area for all the
471 2002-08-25 Martin Baulig <martin@gnome.org>
473 * MonoSymbolTableReader.cs: New file. This is the reader for the
474 new symbol file format.
476 2002-08-24 Martin Baulig <martin@gnome.org>
478 * MonoSymbolTable.cs, MonoSymbolTableWriter.cs: New files. This
479 creates a binary application.dbg file which will be used by the
480 JIT to display source lines for exceptions.
482 * list.unix: Disabled the dwarf file writer in the build.
484 2002-08-23 Martin Baulig <martin@gnome.org>
486 * MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Added
487 assembly name argument. Since the symbol writer needs to read the
488 final assembly, we need to give it its full pathname.
490 2002-08-23 Martin Baulig <martin@gnome.org>
492 * makefile.gnu, list.unix: Added.
494 2002-07-05 Martin Baulig <martin@gnome.org>
496 * MonoDwarfFileWriter.cs: Added support for types in referenced assemblies.
498 2002-07-05 Martin Baulig <martin@gnome.org>
500 * MonoDwarfFileWriter.cs: Added support for arrays.
502 * gdb-csharp-support.patch: Updated.
504 2002-06-29 Martin Baulig <martin@gnome.org>
506 * MonoDwarfFileWriter.cs (DieInheritance): Make this actually work.
508 2002-06-29 Martin Baulig <martin@gnome.org>
510 * MonoDwarfFileWriter.cs, MonoSymbolWriter.cs: Put all TAG_subprogram's into their
511 corresponding struct/class declarations.
513 2002-06-28 Martin Baulig <martin@gnome.org>
515 * gdb-csharp-support.patch: Updated.
517 2002-06-28 Martin Baulig <martin@gnome.org>
519 * MonoDwarfFileWriter.cs: Use a TAG_string_type when we're using GNU extensions.
520 Make static struct/class fields actually work. Provide a TAG_typedef for struct's
523 2002-05-30 Martin Baulig <martin@gnome.org>
525 * IMonoSymbolWriter (IMonoSymbolWriter): Added custom `Initialize' method.
527 * MonoSymbolWriter.cs (Initialize): The ISymbolWriter's `Initialize' method
528 is no longer supported and throws an exception.
529 (Initialize (string, string[])): New custom initialization function.
531 * MonoDwarfFileWriter.cs (DwarfFileWriter): Added `string[] args' argument
532 to the constructor to pass command line arguments.
534 * gdb-csharp-support.patch: Updated for GDB 5.2.
536 2002-05-30 Martin Baulig <martin@gnome.org>
538 * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now get's the
539 AssemblyBuilder's `methods' array as third argument.
540 (OpenMethod): Use this array to get the method builder rather than using an
542 (get_method_builder): Removed this interncall.
544 2002-05-25 Martin Baulig <martin@gnome.org>
546 * MonoDwarfFileWriter.cs: Finished the type rewrite, put back strings and arrays.
548 2002-05-24 Martin Baulig <martin@gnome.org>
550 * IMonoSymbolWriter.cs (ISourceMethod): Added `FullName' and `Parameters'.
551 (ITypeHandle): New interface.
553 * DwarfFileWriter.cs: Largely reorganized the type writing code. Types are
554 now represented by ITypeHandle objects which are stored in a per-dwarf-writer
555 hash table. At the moment, all types still need to be in one compile unit due
556 to lacking support in gdb - but this new type code here already supports this.
558 * MonoSymbolWriter.cs: Moved all the subclasses to the top-level and made them
559 public, cleaned up the code, put everything into one compile unit.
560 (DefineLocalVariable): Added a version of this function which takes useful args.
562 2002-05-22 Martin Baulig <martin@gnome.org>
564 * IMonoSymbolWriter.cs (IMonoSymbolWriter): Added `Sources' and `Methods'
567 * MonoDwarfFileWriter.cs (WriteSymbolTable): New public method. Moved the
568 code that writes the "mono_line_numbers" section here from the LineNumberEngine.
570 2002-05-22 Martin Baulig <martin@gnome.org>
572 * IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'.
574 * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now has an additional
575 ModuleBuilder argument.
576 (OpenMethod): Immediately call the `get_method' interncall to get the MethodBase
577 from the token, then store the MethodBase instead of the token. The token may
578 still change during the metadata library's fixup process.
579 (DoFixups): When the image has been written to disk, call the GetToken () method
580 on all MethodBuilders and all ConstructorBuilders to get the final metadata tokens.
582 2002-05-22 Martin Baulig <martin@gnome.org>
584 * AssemblerWriterI386.cs: Don't use GNU extensions and produce assembler
585 output which is free of comments and extra whitespaces so that it's suitable
588 2002-05-22 Martin Baulig <martin@gnome.org>
590 * IMonoSymbolWriter.cs (ISourceMethod): Replaced `MethodInfo MethodInfo' with
591 `MethodBase MethodBase' and added `Type ReturnType'. We're now correctly
592 dealing with constructors and not crashing anymore.
594 2002-05-21 Martin Baulig <martin@gnome.org>
596 * MonoDwarfFileWriter.cs: Write a special line number table which can be read
597 in by the metadata library to get line number information in backtraces.
599 2002-05-06 Martin Baulig <martin@gnome.org>
601 * MonoSymbolWriter.cs (MonoSymbolWriter.Close): Use Assembly.LoadFrom (), not
602 AppDomain.Load () to load the assembly.
604 2002-04-26 Martin Baulig <martin@gnome.org>
606 * gdb-csharp-support.patch: A patch for GDB (against the latest CVS version)
607 to implement C# support.
609 * csharp-lang.c, csharp-lang.h, csharp-mono-lang.c: Copy these into your GDB
610 source directory after applying the patch.
612 2002-04-26 Martin Baulig <martin@gnome.org>
614 * MonoDwarfFileWriter.cs (DieInternalString): Removed.
616 2002-04-25 Martin Baulig <martin@gnome.org>
618 * MonoDwarfFileWriter.cs: Reflect latest MonoString changes.
620 2002-04-13 Martin Baulig <martin@gnome.org>
622 * IMonoSymbolWriter.cs (ISourceBlock): Added `Blocks' property and `AddBlock'
623 method to support nested blocks.
625 * MonoSymbolWriter.cs: Correctly handle nested blocks.
627 * MonoDwarfFileWriter.cs (DieMember): Provide info for all fields, not just for
628 public ones; also added DW_AT_accessibility.
629 (DieVariable): Reflected latest debug-symfile.c changes.
631 2002-04-12 Martin Baulig <martin@gnome.org>
633 * gdb-variable-scopes.patch: A patch for GDB (against the latest CVS version)
634 to implement variable lifetimes.
636 2002-04-12 Martin Baulig <martin@gnome.org>
638 * MonoDwarfFileWriter.cs (DieVariable): Provide info about the variable's
639 lifetime using DW_AT_begin_scope and a new baulig extension DW_AT_end_scope.
641 2002-03-29 Martin Baulig <martin@gnome.org>
643 * AssemblerWriterI386.cs: Rewrote most of the string output function, do the
644 number->string conversion manually. It's now taking about 15 seconds to write
645 a symbol file for MCS, no longer more than a minute.
647 * MonoDwarfFileWriter.cs: Added some profiling code, speeded things up, fixed
650 2002-03-25 Martin Baulig <martin@gnome.org>
652 * MonoDwarfFileWriter.cs (CreateType): Return a `DieType'.
653 (RegisterType): Add the type to the type hash before creating dependency types
654 so we don't get recursion loops.
655 (RegisterPointerType): New func to register a "pointer to type" type.
656 (DieTypeDef, DiePointerType, DieArrayType, DieStringType, DieClassType): New
657 types; added support for strings, arrays and basic support for classes.
659 2002-03-24 Martin Baulig <martin@gnome.org>
661 * IMonoSymbolWriter.cs: Killed all methods in this interface, no longer needed.
663 * MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now takes a string
664 argument which is the full pathname of the assembly - you must call Close()
665 after the assembly has been written to disk since the symbol writer needs to
666 load the finished assembly to get its metadata.
668 * MonoDwarfFileWriter.cs: Added support for enums and structs.
670 2002-03-24 Martin Baulig <martin@gnome.org>
672 * MonoDwarfFileWriter.cs: Added support for method parameters.
674 2002-03-24 Martin Baulig <martin@gnome.org>
676 * IMonoSymbolWriter.cs (IMonoSymbolWriter): Removed my custom OpenMethod(),
677 we're now using the ISymbolWriter's method.
678 (IVariable): Added `byte[] Signature' property.
680 * MonoSymbolWriter.cs (SetAssembly): New method. This must be called before
681 Close(); the assembly parameter is the already-written assembly, ie. it must
682 contain the full metadata.
683 (OpenMethod): Only take the token argument and set MethodInfo later in DoFixups.
684 (SetMethodSourceRange): You must call this function to tell the symbol writer
685 in which source file the method is defined.
686 (DefineLocal): Store the signature in the local.
687 (DoFixups): Use two new interncalls to set the SourceMethod's MethodInfo field
688 and the LocalVariable's Type field.
690 2002-03-23 Martin Baulig <martin@gnome.org>
692 * IMonoSymbolWriter.cs (ISourceBlock): New interface.
693 (ILocalVariable): Renamed this interface to IVariable.
694 (IVariable): Added Line, Type, Token.
695 (ILocalVariable, IMethodParameter): New interfaces, derive from IVariable.
696 (ISourceMethod): Added Blocks. Renamed FirstLine and LastLine to Start and End,
697 changed their type to ISourceLine. Removed CodeSize.
698 (ISourceLine): Renamed Line to Row, added Column. Added OffsetType and Offset.
700 * MonoDwarfFileWriter.cs (MonoDwarfFileWriter.DieLexicalBlock): New class.
701 (MonoDwarfFileWriter.DieMethodVariable): New class.
703 * MonoSymbolWriter.cs (OpenScope, CloseScope): Implemented.
704 Reflected latest IMonoSymbolWriter interface changes.
706 2002-03-20 Martin Baulig <martin@gnome.org>
708 * IAssemblerWriter.cs: New interface.
710 * AssemblerWriterI386.cs: New class.
712 * MonoDwarfFileWriter.cs: Use the IAssemblerWriter interface to make this class
713 platform and assembler independent.
715 2002-03-20 Martin Baulig <martin@gnome.org>
717 * IMonoSymbolWriter.cs (ISourceMethod): Added FirstLine, LastLine, CodeSize and
720 * MonoDwarfFileWriter.cs: Implemented line number support.
722 2002-03-19 Martin Baulig <martin@gnome.org>
724 * IMonoSymbolWriter.cs (ISourceFile, ISourceMethod, ISourceLine, ILocalVariable):
727 * IMonoSymbolWriter.cs (OpenMethod): Take a System.Reflection.MethodInfo, not
730 2002-03-19 Martin Baulig <martin@gnome.org>
732 This is an implementation of the System.Diagnostics.SymbolStore.SymbolWriter
733 interface. It's still work in progress and not yet used anywhere.
735 There is some preliminary documentation in the source files and some more
736 docu in the README and README.relocation-table files.
738 * IMonoSymbolWriter.cs: New file.
739 * MonoDwarfFileWriter.cs: New file.
740 * MonoSymbolDocumentWriter.cs: New file.
741 * MonoSymbolWriter.cs: New file.
743 * README, README.relocation-table: Documentation.