/
ChangeLog
3771 lines (2439 loc) · 128 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2002-10-01 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Don't emit methods and line numbers for
the dynamic symbol file, just write the type table. We can easily
have an external helper program which creates a symbol file for an
IL file.
2002-10-01 Dick Porter <dick@ximian.com>
* threads.c (ves_icall_System_Threading_Thread_Start_internal):
Only add the handle to the cleanup array when we're about to
launch the thread. Bug 31425 deadlocked when the test was run on
mono under w32.
2002-10-01 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Added support for properties.
Fri Sep 27 18:55:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c: unaligned store fix from Mark Crichton
<crichton@gimp.org>.
2002-09-27 Martin Baulig <martin@gnome.org>
* icall.c ("System.Reflection.Assembly::GetReferencedAssemblies"):
New interncall.
Fri Sep 27 15:38:31 CEST 2002 Paolo Molaro <lupus@ximian.com>
* assembly.h, assembly.c: use a sane API to hook into the assembly
loading process instead of a useless special-purpouse hack
(ngen needs a hook, too, for example).
2002-09-27 Dick Porter <dick@ximian.com>
* threads.c (mono_thread_init): Call GetCurrentProcess() so
io-layer can set up some process handle info. Not needed on w32,
but doesn't hurt either.
* process.c: Pass the program name in the second parameter to
CreateProcess, so the path is searched. Include the working
directory. Implemented process name, process enumeration, and some
process detail internal calls.
* icall.c: Added internal calls for process lookup, and some
process details
2002-09-26 Martin Baulig <martin@gnome.org>
* assembly.c (mono_install_open_assembly_hook): New global
function to install a function to be invoked each time a new
assembly is loaded.
(mono_assembly_open): Run this callback function if set.
* debug-mono-symfile.c: Put back line numbers for the dynamic
symbol file and also record the .il file as source file. This
allows us to install the temporary symbol file as `file.dbg' just
like a compiler-generated one.
2002-09-26 Nick Zigarovich <nick@chemlab.org>
* Corrected typo in gc.c (BOHEM vs BOEHM).
2002-09-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* icall.c: fixed bug #31235 by copying a few lines from GetMethods to
GetProperties. Also avoid calling g_slist_length in GetProperties and
GetMethods.
Wed Sep 25 22:18:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c: avoid unaligned stores (bug spotted by
Mark Crichton <crichton@gimp.org>).
2002-09-25 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.h (MonoSymbolFileMethodAddress): Use pointers
instead of guint64 for addresses and added prologue/epilogue info.
2002-09-25 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.h (MonoDebugLineNumberEntry): New type to
store line number info. For the dynamic symbol file, we only need
to provide the JIT generated dynamic line number info for the dynamic
symbol file.
2002-09-25 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.h: Incremented version number.
2002-09-24 Martin Baulig <martin@gnome.org>
* class.c (mono_debugger_class_init_func): New global function
pointer variable.
(mono_class_init): If mono_debugger_class_init_func is non-NULL,
call it.
* debug-mono-symfile.c (mono_debug_symfile_add_type): New
function. This is called via the mono_debugger_class_init_func
hook to add all types to the dynamic type table.
(ves_icall_MonoDebugger_GetType): New interncall to get a class
from its metadata token.
* icall.c ("System.Reflection.Assembly::MonoDebugger_GetType"):
New interncall for the debugger.
2002-09-24 Nick Drochak <ndrochak@gol.com>
* icall.c (ves_icall_System_Enum_ToObject): validate the type parameter
before using it in case it is null.
Tue Sep 24 13:24:56 CEST 2002 Paolo Molaro <lupus@ximian.com>
* metadata.c: allow custom modifiers in local var signatures
(bug spotted by Zoltan Varga).
Tue Sep 24 12:12:16 CEST 2002 Paolo Molaro <lupus@ximian.com>
* class.c: deal with the <Module> class that may have a NULL vtable.
Eliminate warnings.
Tue Sep 24 11:28:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
* image.c, image.h: more strong name helpers.
* monosn.c: more work: convert pem keys to cryptoapi format.
Tue Sep 24 11:27:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
* string-icalls.c: speedup IndexOf.
Tue Sep 24 11:17:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c: updates from Zoltan.2.Varga@nokia.com.
Tue Sep 24 11:09:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c: cleanup: use mono_object_domain ().
2002-09-23 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Improved type support.
2002-09-22 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Added support for reference types and strings.
2002-09-22 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Started to work on the type table.
2002-09-21 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Largely reworked the symbol table format.
The symbol table is now incrementally updated each time a new
method is added. We're now also using our own magic and version
so that you don't need to recompile all your classes if the
dynamic table changes.
(mono_debug_update_mono_symbol_file): Removed.
(mono_debug_symfile_add_method): New function to add a method.
2002-09-21 Martin Baulig <martin@gnome.org>
* icall.c
("System.Reflection.Assembly::MonoDebugger_GetLocalTypeFromSignature"):
New interncall.
* debug-mono-symfile.c (ves_icall_MonoDebugger_GetLocalTypeFromSignature):
New interncall to get a method from its metadata token.
2002-09-21 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Create type table.
2002-09-20 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Reflect latest Mono.CSharp.Debugger changes.
2002-09-20 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Provide information about params and locals.
2002-09-20 Martin Baulig <martin@gnome.org>
* icall.c ("System.Reflection.Assembly::MonoDebugger_GetMethod"):
New interncall.
* debug-mono-symfile.c (ves_icall_MonoDebugger_GetMethod): New
interncall to get a method from its metadata token.
2002-09-20 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Added a few checks for method->header
being non-NULL. This should never happen, but for the moment
let's use a g_warning() rather than a g_assert().
2002-09-19 Mark Crichton <crichton@gimp.org>
* gc.c: ves_icall_System_GCHandle_FreeHandle made a call to libgc
even if support for it isn't present. Added an #ifdef to fix this.
* socket-io.c: Added checks back for Solaris support.
2002-09-19 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c (read_string, write_string): Reflect latest
changes in the symbol file format.
2002-09-18 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Set version number to 21.
2002-09-18 Dick Porter <dick@ximian.com>
* threads.c (mon_new): Use the GC_MALLOC macro to hide differences
on netbsd. Fixes bug 30051.
2002-09-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* reflection.c:
(set_version_from_string): little fix.
Mon Sep 16 18:57:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
* monosn.c, Makefile.am: added strong name utility.
* reflection.h, reflection.c: implemented delayed signing,
locale, version and hash id assembly attributes.
Mon Sep 16 18:51:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
* loader.c, metadata.c: load param attributes in signatures.
2002-09-16 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Added string table with all method names.
2002-09-14 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.h (MonoSymbolFile): Added method range table for
fast method lookup.
Fri Sep 13 16:04:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c: record the public key token of referenced assemblies.
Fri Sep 13 15:41:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
* image.c, image.h: added functions to get the strong name and the
public key of an assembly.
* pedump.c: use them.
2002-09-12 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (emit_str_to_ptr_conv): support marshalling of delegates.
2002-09-12 Miguel de Icaza <miguel@ximian.com>
* marshal.c (mono_marshal_get_managed_wrapper): Added
MONO_TYPE_BOOLEAN
2002-09-11 Martin Baulig <martin@gnome.org>
* gc.c: Call GC_unregister_disappearing_link() on all links when
finalizing them, this is necessary to aviod a crash in boehm's
finalize handler.
Wed Sep 11 17:06:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
* gc.c: handle GetTarget for finalized objects spotted and fixed by
nick@chemlab.org.
Wed Sep 11 15:27:20 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c: implemented MonoType::Module.
* reflection.c, reflection.h: mono_module_get_object () from
Tomi Pakarinen <tomi.pakarinen@welho.com>.
Wed Sep 11 12:53:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c: ignore overridden methods in GetMethods ().
Fix for FieldInfo::SetValue().
* object.c: handle float/double in runtime invoke.
Tue Sep 10 15:51:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
* object.c: allow a constructor to be called again on an object.
Tue Sep 10 11:58:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
* class.h, class.c: move field layout code to it's own function and
export it. Get an interface id earlier. Move fields in MonoClass
so they are more cache friendly and align the bitfields.
* loader.c: temporary handle get_param_names() for a runtime method.
* reflection.c, reflection.h: more code to handle runtime creation of
types.
2002-09-09 Martin Baulig <martin@gnome.org>
* marshal.c (mono_marshal_get_native_wrapper): We need to use a special
signature with the pinvoke field being set for the actual call.
Sat Sep 7 10:12:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c: removed some unused icalls. Start of map of glib charsets
to corlib names. Implemented RuntimeMethod::GetFunctionPointer ().
Fri Sep 6 16:08:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
* debug-helpers.c: break infinite loop (found and fixed by
Holger Arnold <harnold@gmx.de>).
Thu Sep 5 18:50:54 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c: target may be null in create_delegate.
Thu Sep 5 17:42:13 CEST 2002 Paolo Molaro <lupus@ximian.com>
* marshal.c: handle a boolean return type.
Thu Sep 5 13:09:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
* gc.c: put HIDE_POINTER/REVEAL_POINTER only here.
Wed Sep 4 19:23:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
* gc.c: fix weakreferences.
Wed Sep 4 13:59:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c: added icall to get default codepage.
2002-09-03 Dick Porter <dick@ximian.com>
* threads.h:
* threads.c: Use MonoThread instead of MonoObject where
apropriate.
Store running thread objects in a hash table, so that we have all
the info to hand when waiting for them to finish
(means we don't need OpenThread() any more, so mingw builds should
be fully functional again.)
* verify.c:
* object.h: Added thread ID to MonoThread
2002-09-03 Martin Baulig <martin@gnome.org>
* icall.c (System.Reflection.Assembly::get_location): New interncall.
2002-09-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* icall.c: fixed leak in get_temp_path. Thanks lupus.
2002-09-03 Martin Baulig <martin@gnome.org>
* debug-helpers.c (mono_disasm_code_one): Added `const guchar **endp'
argument to store the end address of the disassembled instruction.
* debug-mono-symfile.h (MonoDebugMethodInfo, MonoDebugVarInfo): Moved
here from debug-symfile.h.
(MonoDebugMethodJitInfo): Moved all fields which are filled out by the
JIT into this struct.
(MonoSymbolFile): Added `char *image_file' field.
(MonoDebugGetMethodFunc): Removed.
(mono_debug_update_mono_symbol_file): Removed the hash table argument.
(mono_debug_create_mono_symbol_file): Removed the `source_file' argument.
(mono_debug_find_method): New method.
* debug-mono-symfile.c (mono_debug_create_mono_symbol_file): Always
create a full symbol file.
(mono_debug_update_mono_symbol_file): Don't distinguish between dynamic
and static symbol files.
(mono_debug_find_method): The symbol file keeps an internal method hash,
call this to get a MonoDebugMethodInfo from a MonoMethod.
* debug-symfile.[ch]: Removed.
2002-08-29 Miguel de Icaza <miguel@ximian.com>
* image.c (do_mono_image_open): Remove linker version check.
2002-08-29 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_marshal_get_managed_wrapper): don't cache
wrappers for instance methods.
2002-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* icall.c: added ves_icall_System_IO_Path_get_temp_path.
2002-08-28 Dick Porter <dick@ximian.com>
* Makefile.am: Export HOST_CC for w32 builds
Tue Aug 27 18:34:51 CEST 2002 Paolo Molaro <lupus@ximian.com>
* file-io.c process.c: MonoString are null terminated, no
need for mono_string_to_utf16() anymore.
Tue Aug 27 17:51:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c, unicode.h, unicode.c: removed unused iconv stuff.
Tue Aug 27 16:38:58 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c, reflection.h: speedup System.MonoType.
Tue Aug 27 16:37:01 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c: allow null as the value of a string argument in
custom attributes constructors.
2002-08-27 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.h (MonoSymbolFileMethodAddress): Removed the
`trampoline_address' field.
2002-08-27 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_marshal_get_native_wrapper): removed wrong null
check (fixes bug #29486)
2002-08-27 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c: Changed the file format in a way that allows us
open it read-only and to use a specially malloced area for all the
dynamic data. We can now also generate a symbol file on-the-fly if we're
debugging IL code and there is no MCS generated symbol file for it.
Mon Aug 26 16:47:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
* object.c: added a define for a good string and array
creation speedup (not enabled by default because we need to deal with
the synch stuff).
2002-08-26 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c (mono_debug_create_mono_symbol_file): New
function to create a dynamic symbol file. This is used by the
debugger to create a symbol file for IL code on-the-fly.
2002-08-26 Martin Baulig <martin@gnome.org>
* loader.c (mono_lookup_pinvoke_call): Include the error message
from g_module_error() in the error message.
2002-08-24 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.c (mono_debug_update_mono_symbol_file): New
function to update the symbol file. The symbol file is mmap()ed
writable, but private. This allows us to install the symbol file
together with the assembly.
2002-08-24 Martin Baulig <martin@gnome.org>
* debug-mono-symfile.[ch]: New files. Similar to debug-symfile.[ch]
but they can read the new symbol file format which mcs is now creating.
* debug-symfile.c (mono_debug_find_source_location): Moved to
debug-mono-symfile.c; this is now operating on the new symbol file.
2002-08-23 Martin Baulig <martin@gnome.org>
* debug-helpers.c (mono_method_desc_from_method): New function to get
a MonoMethodDesc from a MonoMethod.
Fri Aug 23 15:54:09 CEST 2002 Paolo Molaro <lupus@ximian.com>
* object.c: fixes assertion failure caused by multiple ExecuteAssembly
calls for same domain (patch by Tomi Pakarinen <Tomi.Pakarinen@iki.fi>).
Fri Aug 23 12:14:45 CEST 2002 Paolo Molaro <lupus@ximian.com>
* string-icalls.[ch]: make helper methods static.
2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* icall.c: re-applied patch to GetValueInternal. Also added R4 and R8
types to it and to SetValueInternal.
* object.c: Moved handle_enum label to its proper place. This was the
f... bug! ;-)
This time i compiled mcs and gtk-sharp and they both work.
2002-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* icall.c: reverted partially my previous patch until
object.c:set_value handles enums correcly.
2002-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* icall.c:
(ves_icall_MonoField_GetValue): changed to use mono_field_get_value.
(ves_icall_System_Environment_get_MachineName): removed warning when
compiling under cygwin.
Thu Aug 22 18:49:11 CEST 2002 Paolo Molaro <lupus@ximian.com>
* object.c: fixed field_get_value() for reference types.
2002-08-22 Dick Porter <dick@ximian.com>
* socket-io.c (ves_icall_System_Net_Sockets_Socket_RecvFrom_internal):
Don't free a buffer while it's still needed. Patch from Jonathan
Liger <Jonathan.liger@wanadoo.fr>
2002-08-21 Miguel de Icaza <miguel@ximian.com>
* icall.c (ves_icall_System_Environment_get_Platform): Add new
internal call.
2002-08-21 Dietmar Maurer <dietmar@ximian.com>
* icall.c (ves_icall_get_method_info): s/MonoMethod/MonoReflectionMethod/
(ves_icall_get_parameter_info): s/MonoMethod/MonoReflectionMethod/
* marshal.c (mono_marshal_get_remoting_invoke): save lmf, because
we call unmanaged code which throws exceptions.
Wed Aug 21 12:56:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
* appdomain.h: added per-domain entry_assembly.
* appdomain.c: ensure mono_runtime_exec_main () gets non-null
arguments.
* icall.c: Assembly::GetEntryAssembly icall.
* object.c: set domain->entry_assembly in mono_runtime_exec_main().
Changes above from a patch by Tomi Pakarinen <tomi.pakarinen@welho.com>.
Tue Aug 20 15:42:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
* appdomain.h, gc.c: added mono_domain_finalize ().
2002-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* object.c:
(mono_print_unhandled_exception): changed g_warning by g_printerr
because g_log has a 1024 characters limit (yeah, i got a big stack
trace). Don't print exception name, that should be in ToString
returned string.
2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* icall.c: added ves_icall_FieldInfo_SetValueInternal.
* object.c: added missing MONO_TYPE_ARRAY in mono_runtime_invoke_array.
2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* object.c:
(mono_print_unhandled_exception): after previous commit, i realized
that MS calls ToString on the exception. I changed this function to
do that. This way we get stack_trace for free.
2002-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* object.c:
(mono_print_unhandled_exception): invoke Message property instead of
getting 'message' field from Exception. Don't allocate memory for
'trace' and 'message' if not needed.
2002-08-18 Dick Porter <dick@ximian.com>
* unicode.c: Fix asserts to match Encoder.cs checks
Fri Aug 16 21:42:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
* marshal.c: fix unaligned store issue and a few wrong
opcode argument types.
2002-08-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* icall.c: added GetUninitializedObjectInternal internal call.
2002-08-16 Dietmar Maurer <dietmar@ximian.com>
* appdomain.c (mono_runtime_invoke_in_domain): transfer Exception
to the right domain.
2002-08-14 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_marshal_get_runtime_invoke): unbox value types
* class.c (class_compute_field_layout): set blittable to false for Strings
* appdomain.c (mono_domain_transfer_object): added support for ISerializable
Wed Aug 14 17:26:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
* appdomain.h, reflection.c, icall.c, object.c, reflection.h:
first chunk of code to create types at runtime. Code to
handle ReflectedType/DeclaringType. Make reflection handles
domain specific.
Wed Aug 14 17:24:21 CEST 2002 Paolo Molaro <lupus@ximian.com>
* class.c: set correct name in arrays.
2002-08-13 Dietmar Maurer <dietmar@ximian.com>
* appdomain.c (mono_domain_transfer_object): make it work with
valuetypes. bug fixes.
2002-08-12 Dick Porter <dick@ximian.com>
* object.h: Rename some parameters to avoid c++ keywords (Patch
from Joseph Wenninger <kde@jowenn.at>)
Thu Aug 8 13:04:18 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c: added icall to implement Assembly.GetFile*.
Thu Aug 8 10:18:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.h, reflection.c: code to embed managed resources.
Tue Aug 6 17:59:44 CEST 2002 Paolo Molaro <lupus@ximian.com>
* class.c: move all the type size stuff into
class_compute_field_layout().
Tue Aug 6 11:20:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
* class.c: ensure enums have always the correct instance size.
* unicode.c: remove wrong assert.
Mon Aug 5 19:30:04 CEST 2002 Paolo Molaro <lupus@ximian.com>
* assembly.c: fix mem corruption issue.
* image.h, image.c: added mono_image_get_resource () to access
managed resources.
* icall.c: implemented Assembly.EntryPoint property and some
Managed Resources related internalcalls.
Mon Aug 5 18:18:03 CEST 2002 Paolo Molaro <lupus@ximian.com>
* image.c, image.h: impemented mono_image_get_entry_point ().
* appdomain.c: use mono_image_get_entry_point.
Mon Aug 5 13:08:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c: support the object type argument when loading
custom attributes.
2002-08-05 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_marshal_get_managed_wrapper): add suppport for
String as return type.
Fri Aug 2 21:15:42 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c: fix encoding of named args for custom attrs to match
the ms implementation. Read them back when instantiating custom
attributes.
2002-08-02 Radek Doulik <rodo@ximian.com>
* marshal.c (mono_mb_add_data): convert ret value to LE, suggested
by Dietmar as quick fix
(mono_marshal_get_delegate_begin_invoke): use sig->param_count +
16 as stack size, used on more places as quick fix before Dietmar
will fix it properly
Fri Aug 2 17:48:17 CEST 2002 Paolo Molaro <lupus@ximian.com>
* object.h, object.c: added accessors for fields and properties.
Fri Aug 2 17:45:15 CEST 2002 Paolo Molaro <lupus@ximian.com>
* class.c, class.h: made mono_class_get_field_from_name ()
loop on parent types.
Added mono_class_get_property_from_name ().
Fri Aug 2 11:40:32 CEST 2002 Paolo Molaro <lupus@ximian.com>
* class.c, class.h: move the code to setup the type vtable in its own
function so that it can be reused also for types created at runtime.
Eliminate the "class" identifier from the header file.
* reflection.c: setup the vtable for enums so that we can create
objects for use in SetConstant ().
2002-08-02 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_delegate_to_ftnptr): pass delegate->target
instead of the delegate itself as this pointer (bug #28383)
2002-08-01 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_marshal_get_managed_wrapper): added return type
conversions.
Wed Jul 31 16:49:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
* loader.c: don't set the pinvoke bit on icalls.
2002-07-31 Dietmar Maurer <dietmar@ximian.com>
* debug-helpers.c (mono_method_full_name): only print a number to
indicate wrapper type (so that the output is more readable in traces).
2002-07-30 Dietmar Maurer <dietmar@ximian.com>
* class.c (mono_class_init): include method override patch from Paolo
Tue Jul 30 15:20:08 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c: fixed GetTypeCode().
2002-07-29 Dietmar Maurer <dietmar@ximian.com>
* threads.c (ves_icall_System_Threading_Thread_Thread_internal):
use real delegate invoke function to make it work with multicast
delegates (fix bug# 28291).
Fri Jul 26 11:58:22 CEST 2002 Paolo Molaro <lupus@ximian.com>
* object.c: load constant strings.
Fri Jul 26 11:36:14 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c: no magic numbers.
* tabledefs.h: security action enum.
Fri Jul 26 11:22:52 CEST 2002 Paolo Molaro <lupus@ximian.com>
* assembly.c: fix possible memory corruption.
Thu Jul 25 13:58:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.h, reflection.c: added support for linking resources.
* verify.c: check we have an updated corlib.
2002-07-25 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_marshal_get_native_wrapper): correctly marshal
string arrays.
(mono_marshal_string_array): null terminate unmanaged string arrays.
(mono_marshal_get_managed_wrapper): print warning for arrays (not implemented)
Wed Jul 24 13:32:36 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.c: Type.GetType () can now return also types from the
calling assembly.
Wed Jul 24 13:04:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
* loader.h, loader.c: stack walking support.
* icall.c: implemented GetCurrentMethod, GetExecutingAssembly,
GetCallingAssembly.
2002-07-24 Dietmar Maurer <dietmar@ximian.com>
* marshal.c: added optimisations for blittable types
* class.c (mono_array_class_get): do not set blittable attribute on arrays
(mono_class_setup_mono_type): set blittable attribute for single
and double.
* marshal.c (mono_string_utf8_to_builder): impl.
(mono_string_builder_to_utf8): impl.
(mono_marshal_get_native_wrapper): impl. StringBuilder marshaling
2002-07-23 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_marshal_get_native_wrapper): impl. byref types
(mono_marshal_get_managed_wrapper): impl. byref types
2002-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* icall.c:
(search_method): don't display debug message.
2002-07-22 Dietmar Maurer <dietmar@ximian.com>
* metadata.c (mono_type_stack_size): removed temporary fix for new gcc
Mon Jul 22 18:17:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
* appdomain.c: set the missing filename when throwing exception.
2002-07-22 Dietmar Maurer <dietmar@ximian.com>
* metadata.c (mono_type_size): code cleanup
(mono_type_stack_size): removed some test code
2002-07-21 Miguel de Icaza <miguel@ximian.com>
* appdomain.c (ves_icall_System_Reflection_Assembly_LoadFrom): Use
mono_get_exception_file_not_found now.
* exception.c (mono_exception_from_name_two_strings): New version
that will call a constructor with two string arguments.
(mono_get_exception_file_not_found): New helper routine, used to
report file-not-found errors.
2002-07-20 Dick Porter <dick@ximian.com>
* process.h:
* process.c: Pass file handles to CreateProcess
* icall.c:
* file-io.h:
* file-io.c: Implemented CreatePipe
2002-07-19 Dietmar Maurer <dietmar@ximian.com>
* metadata.c (mono_get_param_info): set alignment for value types
Fri Jul 19 18:58:27 CEST 2002 Paolo Molaro <lupus@ximian.com>
* appdomain.h, domain.c, threads-types.h: don't include config.h in headers.
Constify mono_domain_assembly_open().
* loader.c: handle null namespace in icalls.
2002-07-19 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (emit_ptr_to_str_conv): marshal object as structs
(emit_str_to_ptr_conv): marshal object as structs
* metadata.c (mono_type_to_unmanaged): marshal object as structs
* marshal.c (mono_marshal_get_runtime_invoke): support value types
2002-07-18 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_marshal_get_runtime_invoke): use exception filters
(mono_marshal_get_native_wrapper): we an now return value types
Wed Jul 17 18:21:29 CEST 2002 Paolo Molaro <lupus@ximian.com>
* verify.c: more checks implemented.
2002-07-17 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_delegate_to_ftnptr): invoke the right method
(fix bug #27695)
(mono_marshal_get_native_wrapper): allow byref arguments
(ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringXXX):
impl. PtrToStringXXX methods
(ves_icall_System_Runtime_InteropServices_Marshal_PtrToStructure_type): impl.
(ves_icall_System_Runtime_InteropServices_Marshal_OffsetOf): impl.
(ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi): impl.
(ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalUni): impl.
(ves_icall_System_Runtime_InteropServices_Marshal_DestroyStructure): impl.
Tue Jul 16 19:00:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c: fix buglet in parsing an assembly name.
2002-07-16 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (emit_ptr_to_str_conv): first impl.
Tue Jul 16 12:39:33 CEST 2002 Paolo Molaro <lupus@ximian.com>
* object.c, class.h: cache the vtable in the class as suggested by
vargaz@freemail.hu (Zoltan Varga).
Tue Jul 16 11:27:57 CEST 2002 Paolo Molaro <lupus@ximian.com>
* class.h, loader.c: added mono_field_from_token().
* verify.c: first cut of type checking code.
2002-07-16 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_marshal_get_native_wrapper): support valuetypes
2002-07-15 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_marshal_get_native_wrapper): handle enum types
(fix bug #27782)
(mono_marshal_get_remoting_invoke): impl.
(mono_delegate_begin_invoke): impl.
(mono_mb_emit_save_args): impl.
(mono_delegate_end_invoke): impl.
(mono_marshal_get_delegate_begin_invoke):
(mono_marshal_get_delegate_end_invoke):
(mono_marshal_get_delegate_invoke): generate a special name for
those methods (including the signature) and associate them whith
the delegate class.
2002-07-13 Gonzalo Paniagua Javier <gonzalo@gnome-db.org>
* reflection.[ch]:
(mono_reflection_type_from_name): now it has a MonoImage parameter
which is used as the default image to search the type in. If the image
is NULL or getting the type from it fails, it defaults to corlib.
* icall.c: changed 1 call to mono_reflection_type_from_name to match
new parameter.
Sat Jul 13 19:32:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c: update the parameter table index.
Sat Jul 13 17:34:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
* domain.c: don't include the mark byte in the string hash.
Sat Jul 13 15:06:23 CEST 2002 Paolo Molaro <lupus@ximian.com>
* icall.cs: icall for Type.GetTypeCode ().
* verify: a couple of fixes and disabled local initialization checks.
2002-07-12 Dietmar Maurer <dietmar@ximian.com>
* marshal.c: better debugging support (DEBUG_RUNTIME_CODE)
* debug-helpers.c (mono_method_full_name): print the type of the
runtime wrapper
* metadata.c (mono_signature_hash): a hash function for signatures
(mono_signature_hash): better hash algorithm
* marshal.c (mono_marshal_get_delegate_invoke): cache methods by signature
* debug-helpers.c (mono_method_full_name): this can now generate
method names with signatures
* marshal.c (mono_marshal_get_managed_wrapper): bug fix: unmanaged
method dont have this pointers.
Fri Jul 12 11:35:48 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c: fixup typebuilder tokens.
* image.c: fix buglet.
* marshal.h: remove whitespace.
* metadata.h, metadata.c: reinstate code that was removed.
* verify.c: handle catch directives and fix another couple of bugs.
2002-07-11 Dietmar Maurer <dietmar@ximian.com>
* marshal.c (mono_marshal_get_native_wrapper): support BOOLEAN
(mono_marshal_get_native_wrapper): make it comp. with the old code
(mono_marshal_get_native_wrapper): support boolean
(mono_marshal_get_managed_wrapper): support more types
2002-06-25 Dietmar Maurer <dietmar@ximian.com>
* class.c (class_compute_field_layout): compute class->blittable attribute.
2002-07-09 Dick Porter <dick@ximian.com>
* threads.c: Make the thread cleaning up cope with threads that
call ExitThread()
2002-07-08 Radek Doulik <rodo@ximian.com>
* reflection.c (method_encode_code): use non-translated values to
compute finally_start, this fixes exception handling on ppc, yay!
* decimal.h (struct signscale): fix endianess
2002-07-07 Radek Doulik <rodo@ximian.com>
* reflection.c: swap box_val and not val
Mon Jul 8 15:18:59 CEST 2002 Paolo Molaro <lupus@ximian.com>
* reflection.c, reflection.h: handle full assembly info in type name.
Handle Type arguments when loading custom attributes.
* icall.c: updated to use new mono_reflection_type_from_name () method.
2002-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* loader.c:
(method_from_memberref): also print assembly name when method not found.
2002-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* icall.c:
(ves_icall_TypeGetProperties): fixed bug #27473.
2002-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* reflection.c: display image name and token when cannot find the
.ctor for an attribute.
2002-07-05 Martin Baulig <martin@gnome.org>
* debug-symfile.c: Reflect latest MonoDwarfFileWriter changes.
2002-07-04 Dick Porter <dick@ximian.com>
* threads.c (mono_thread_cleanup): Nasty kludge to get this to
compile on mingw. This will cause mingw builds to not wait for
subthreads to terminate after the main thread does. I've lodged a
bug with the mingw developers for them to wrap OpenThread().
2002-07-03 Dick Porter <dick@ximian.com>
* threads.c: Store thread IDs instead of handles, because
GetCurrentThread() returns a pseudohandle and therefore stores
useless values. mono_thread_cleanup() continues checking the
array of threads until it is empty, to cope with subthreads
spawning new threads after the main thread has finished.
* profiler.h:
* profiler.c:
* profiler-private.h: Pass the thread ID to thread profiler