1 2003-02-08 Martin Baulig <martin@ximian.com>
3 * MonoSymbolFile.cs (GetMethodSource): New public method.
4 (FindMethod): Return the correct index.
6 2003-02-07 Martin Baulig <martin@ximian.com>
8 * MonoSymbolFile.cs (Methods, Sources): New public properties.
10 2003-02-07 Martin Baulig <martin@ximian.com>
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.
16 2003-02-07 Martin Baulig <martin@ximian.com>
18 * MonoSymbolWriter.cs (MonoSymbolWriter.Initialize): Removed the
19 custom initialization function.
21 * MonoSymbolTableWriter.cs: Removed; the code is now in
22 MonoSymbolFile.cs and MonoSymbolWriter.cs.
24 2003-02-07 Martin Baulig <martin@ximian.com>
26 * MonoSymbolFile.cs: The symbol file is now a resource in the
27 assembly instead of a separate file.
29 * MonoSymbolTable.cs: Did a few more cleanups, sort the line
30 number table and remove duplicate line numbers.
32 2003-02-05 Martin Baulig <martin@ximian.com>
34 Modified the symbol file format to speed up method looks by name
35 and cleaned this up a lot.
37 * MonoSymbolFile.cs: New public class. This is now a public class
38 and writes and reads the symbol file.
40 * IMonoBinaryReader.cs: Removed.
42 * MonoSymbolTable.cs: Set version number to 29.
44 2003-01-17 Zoltan Varga <vargaz@freemail.hu>
46 * MonoSymbolWriter.cs (OpenMethod): Make it work on constructors.
48 2002-10-13 Martin Baulig <martin@gnome.org>
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.
54 2002-10-13 Martin Baulig <martin@gnome.org>
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.
59 2002-09-21 Martin Baulig <martin@gnome.org>
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.
65 2002-09-21 Martin Baulig <martin@gnome.org>
67 * MonoSymbolTable.cs: Set version number to 25. Added information about
70 2002-09-20 Martin Baulig <martin@gnome.org>
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
76 2002-09-20 Martin Baulig <martin@gnome.org>
78 * IMonoSymbolWriter.cs: Remove all the unused interfaces.
80 2002-09-20 Martin Baulig <martin@gnome.org>
82 * MonoSymbolTable.cs: Set version number to 23, include the size
85 2002-09-20 Martin Baulig <martin@gnome.org>
87 * MonoSymbolTable.cs: Set version number to 22. Provide information
88 about parameters and local variables.
90 2002-09-20 Martin Baulig <martin@gnome.org>
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
97 2002-09-18 Martin Baulig <martin@gnome.org>
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.
102 2002-09-18 Martin Baulig <martin@gnome.org>
104 * IMonoBinaryReader.cs: New interface.
106 * MonoSymbolTable.cs: Use IMonoBinaryReader instead of binary reader.
108 2002-09-16 Martin Baulig <martin@gnome.org>
110 * MonoSymbolTable.cs: Set version number to 20.
112 2002-09-14 Martin Baulig <martin@gnome.org>
114 * MonoSymbolWriter.cs, IMonoSymbolWriter.cs, MonoSymbolTableWriter.cs:
115 Make all classes and interfaces which don't need to be public internal.
117 2002-09-14 Martin Baulig <martin@gnome.org>
119 * MonoSymbolTable.cs: Use only CLS-compliant types here, bumped version
122 * MonoSymbolTableReader.cs: Removed, this is now in the debugger.
124 2002-09-03 Martin Baulig <martin@gnome.org>
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.
130 2002-09-03 Martin Baulig <martin@gnome.org>
132 * MonoSymbolTableReader.cs (MonoSymbolTableReader.ImageFile): New
135 * MonoSymbolTable.cs: Bumped version number to 18.
137 2002-08-27 Martin Baulig <martin@gnome.org>
139 * MonoSymbolTable.cs (MethodAddress): Removed `TrampolineAddress'.
141 2002-08-27 Martin Baulig <martin@gnome.org>
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
147 2002-08-25 Martin Baulig <martin@gnome.org>
149 * MonoSymbolTableReader.cs: New file. This is the reader for the
150 new symbol file format.
152 2002-08-24 Martin Baulig <martin@gnome.org>
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.
158 * list.unix: Disabled the dwarf file writer in the build.
160 2002-08-23 Martin Baulig <martin@gnome.org>
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.
166 2002-08-23 Martin Baulig <martin@gnome.org>
168 * makefile.gnu, list.unix: Added.
170 2002-07-05 Martin Baulig <martin@gnome.org>
172 * MonoDwarfFileWriter.cs: Added support for types in referenced assemblies.
174 2002-07-05 Martin Baulig <martin@gnome.org>
176 * MonoDwarfFileWriter.cs: Added support for arrays.
178 * gdb-csharp-support.patch: Updated.
180 2002-06-29 Martin Baulig <martin@gnome.org>
182 * MonoDwarfFileWriter.cs (DieInheritance): Make this actually work.
184 2002-06-29 Martin Baulig <martin@gnome.org>
186 * MonoDwarfFileWriter.cs, MonoSymbolWriter.cs: Put all TAG_subprogram's into their
187 corresponding struct/class declarations.
189 2002-06-28 Martin Baulig <martin@gnome.org>
191 * gdb-csharp-support.patch: Updated.
193 2002-06-28 Martin Baulig <martin@gnome.org>
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
199 2002-05-30 Martin Baulig <martin@gnome.org>
201 * IMonoSymbolWriter (IMonoSymbolWriter): Added custom `Initialize' method.
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.
207 * MonoDwarfFileWriter.cs (DwarfFileWriter): Added `string[] args' argument
208 to the constructor to pass command line arguments.
210 * gdb-csharp-support.patch: Updated for GDB 5.2.
212 2002-05-30 Martin Baulig <martin@gnome.org>
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
218 (get_method_builder): Removed this interncall.
220 2002-05-25 Martin Baulig <martin@gnome.org>
222 * MonoDwarfFileWriter.cs: Finished the type rewrite, put back strings and arrays.
224 2002-05-24 Martin Baulig <martin@gnome.org>
226 * IMonoSymbolWriter.cs (ISourceMethod): Added `FullName' and `Parameters'.
227 (ITypeHandle): New interface.
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.
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.
238 2002-05-22 Martin Baulig <martin@gnome.org>
240 * IMonoSymbolWriter.cs (IMonoSymbolWriter): Added `Sources' and `Methods'
243 * MonoDwarfFileWriter.cs (WriteSymbolTable): New public method. Moved the
244 code that writes the "mono_line_numbers" section here from the LineNumberEngine.
246 2002-05-22 Martin Baulig <martin@gnome.org>
248 * IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'.
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.
258 2002-05-22 Martin Baulig <martin@gnome.org>
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
264 2002-05-22 Martin Baulig <martin@gnome.org>
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.
270 2002-05-21 Martin Baulig <martin@gnome.org>
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.
275 2002-05-06 Martin Baulig <martin@gnome.org>
277 * MonoSymbolWriter.cs (MonoSymbolWriter.Close): Use Assembly.LoadFrom (), not
278 AppDomain.Load () to load the assembly.
280 2002-04-26 Martin Baulig <martin@gnome.org>
282 * gdb-csharp-support.patch: A patch for GDB (against the latest CVS version)
283 to implement C# support.
285 * csharp-lang.c, csharp-lang.h, csharp-mono-lang.c: Copy these into your GDB
286 source directory after applying the patch.
288 2002-04-26 Martin Baulig <martin@gnome.org>
290 * MonoDwarfFileWriter.cs (DieInternalString): Removed.
292 2002-04-25 Martin Baulig <martin@gnome.org>
294 * MonoDwarfFileWriter.cs: Reflect latest MonoString changes.
296 2002-04-13 Martin Baulig <martin@gnome.org>
298 * IMonoSymbolWriter.cs (ISourceBlock): Added `Blocks' property and `AddBlock'
299 method to support nested blocks.
301 * MonoSymbolWriter.cs: Correctly handle nested blocks.
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.
307 2002-04-12 Martin Baulig <martin@gnome.org>
309 * gdb-variable-scopes.patch: A patch for GDB (against the latest CVS version)
310 to implement variable lifetimes.
312 2002-04-12 Martin Baulig <martin@gnome.org>
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.
317 2002-03-29 Martin Baulig <martin@gnome.org>
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.
323 * MonoDwarfFileWriter.cs: Added some profiling code, speeded things up, fixed
326 2002-03-25 Martin Baulig <martin@gnome.org>
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.
335 2002-03-24 Martin Baulig <martin@gnome.org>
337 * IMonoSymbolWriter.cs: Killed all methods in this interface, no longer needed.
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.
344 * MonoDwarfFileWriter.cs: Added support for enums and structs.
346 2002-03-24 Martin Baulig <martin@gnome.org>
348 * MonoDwarfFileWriter.cs: Added support for method parameters.
350 2002-03-24 Martin Baulig <martin@gnome.org>
352 * IMonoSymbolWriter.cs (IMonoSymbolWriter): Removed my custom OpenMethod(),
353 we're now using the ISymbolWriter's method.
354 (IVariable): Added `byte[] Signature' property.
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.
366 2002-03-23 Martin Baulig <martin@gnome.org>
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.
376 * MonoDwarfFileWriter.cs (MonoDwarfFileWriter.DieLexicalBlock): New class.
377 (MonoDwarfFileWriter.DieMethodVariable): New class.
379 * MonoSymbolWriter.cs (OpenScope, CloseScope): Implemented.
380 Reflected latest IMonoSymbolWriter interface changes.
382 2002-03-20 Martin Baulig <martin@gnome.org>
384 * IAssemblerWriter.cs: New interface.
386 * AssemblerWriterI386.cs: New class.
388 * MonoDwarfFileWriter.cs: Use the IAssemblerWriter interface to make this class
389 platform and assembler independent.
391 2002-03-20 Martin Baulig <martin@gnome.org>
393 * IMonoSymbolWriter.cs (ISourceMethod): Added FirstLine, LastLine, CodeSize and
396 * MonoDwarfFileWriter.cs: Implemented line number support.
398 2002-03-19 Martin Baulig <martin@gnome.org>
400 * IMonoSymbolWriter.cs (ISourceFile, ISourceMethod, ISourceLine, ILocalVariable):
403 * IMonoSymbolWriter.cs (OpenMethod): Take a System.Reflection.MethodInfo, not
406 2002-03-19 Martin Baulig <martin@gnome.org>
408 This is an implementation of the System.Diagnostics.SymbolStore.SymbolWriter
409 interface. It's still work in progress and not yet used anywhere.
411 There is some preliminary documentation in the source files and some more
412 docu in the README and README.relocation-table files.
414 * IMonoSymbolWriter.cs: New file.
415 * MonoDwarfFileWriter.cs: New file.
416 * MonoSymbolDocumentWriter.cs: New file.
417 * MonoSymbolWriter.cs: New file.
419 * README, README.relocation-table: Documentation.