mono.git
15 years ago* Engine.cs (BuildProjectFile): Set project's GlobalProperties to the
Ankit Jain [Mon, 27 Apr 2009 16:20:09 +0000 (16:20 -0000)]
* Engine.cs (BuildProjectFile): Set project's GlobalProperties to the
one passed as argument.

svn path=/trunk/mcs/; revision=132763

15 years ago2009-04-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 27 Apr 2009 15:56:10 +0000 (15:56 -0000)]
2009-04-27  Atsushi Enomoto  <atsushi@ximian.com>

* TcpDuplexSessionChannel.cs : implemented some channel methods.

svn path=/trunk/mcs/; revision=132757

15 years ago2009-04-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 27 Apr 2009 15:54:40 +0000 (15:54 -0000)]
2009-04-27  Atsushi Enomoto  <atsushi@ximian.com>

* BinaryMessageEncoder.cs : use XmlDictionary specified as [MC-NBFS].

svn path=/trunk/mcs/; revision=132756

15 years ago2009-04-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 27 Apr 2009 14:40:43 +0000 (14:40 -0000)]
2009-04-27  Atsushi Enomoto  <atsushi@ximian.com>

* DispatchRuntime.cs : some comment.
* ChannelDispatcher.cs : ongoing changes to handle listeners and
  accepted channels at more precise state. Listeners are opened,
  without accepting channels. Some setup code is done at OnOpen(),
  while some are done at OnOpened().

* ServiceHost.cs : split dispatcher open from dispatcher loop start.
  Use DispatchRuntime.Type to specify service type.

* ChannelDispatcherTest.cs : added a couple of EndpointDispatcher
  state tests.

svn path=/trunk/mcs/; revision=132739

15 years ago2009-04-27 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 27 Apr 2009 14:33:12 +0000 (14:33 -0000)]
2009-04-27  Jb Evain  <jbevain@novell.com>

* sync with CodePlex r10923.

svn path=/trunk/mcs/; revision=132736

15 years agoImprove support for compiling vb.net projects.
Ankit Jain [Mon, 27 Apr 2009 11:42:12 +0000 (11:42 -0000)]
Improve support for compiling vb.net projects.

In class/Microsoft.Build.Tasks:

* Microsoft.Build.Tasks_test.dll.sources: Added
CreateVisualBasicManifestResourceNameTest.cs .

In class/Microsoft.Build.Tasks/Microsoft.Build.Tasks:

* CreateCSharpManifestResourceName.cs (GetResourceIdFromFileName): Move
to ..
* CreateManifestResourceName.cs: .. here.
* CreateVisualBasicManifestResourceName.cs: Implement.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

* CreateVisualBasicManifestResourceNameTest.cs: New.

In class/Microsoft.Build.Tasks/Test/resources:

* Sample.vb: New.

In tools/xbuild:

* xbuild/Microsoft.VisualBasic.targets: Update to use
CreateVisualBasicManifestResourceName task, and fix compiler params.

svn path=/trunk/mcs/; revision=132723

15 years ago* Vbc.cs (AddResponseFileCommands): Escape DefineConstants as it can
Ankit Jain [Mon, 27 Apr 2009 11:41:53 +0000 (11:41 -0000)]
* Vbc.cs (AddResponseFileCommands): Escape DefineConstants as it can
contain double quotes itself. Fix /doc switch.
(EscapeDoubleQuotes): New.

svn path=/trunk/mcs/; revision=132722

15 years ago* TaskEngine.cs (Prepare): Emit a useful error message property value
Ankit Jain [Mon, 27 Apr 2009 11:41:38 +0000 (11:41 -0000)]
* TaskEngine.cs (Prepare): Emit a useful error message property value
can't be converted to required type.

svn path=/trunk/mcs/; revision=132721

15 years ago* ExpressionCollection.cs (ConvertToObject): Allow true/on/yes
Ankit Jain [Mon, 27 Apr 2009 11:41:06 +0000 (11:41 -0000)]
* ExpressionCollection.cs (ConvertToObject): Allow true/on/yes
as valid true values for bool, and corresponding for false.

svn path=/trunk/mcs/; revision=132720

15 years ago2009-04-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 27 Apr 2009 08:28:29 +0000 (08:28 -0000)]
2009-04-27  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelManagerBase.cs : implement Open/CloseTimeout correctly.

svn path=/trunk/mcs/; revision=132711

15 years ago2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 27 Apr 2009 06:09:22 +0000 (06:09 -0000)]
2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* XplatUIX11.cs: Properly support UTF8 when handling the
SelectionRequest event - this is helpful supporting some window
managers, such KDE, that explictly request the text in utf8, as
opposed to gnome, that supports ascii.
Fixes #489393.

svn path=/trunk/mcs/; revision=132698

15 years ago2009-04-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 27 Apr 2009 02:05:40 +0000 (02:05 -0000)]
2009-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripDropDownItem.cs: When assigning a new
ToolStripDropDownMenu, let it know we are its OwnerItem. This way the
Capture duties performed by Application/ToolStripManager are handled
nicely and we don't end up in an inconsisten stat.
Fixes #492815.

svn path=/trunk/mcs/; revision=132696

15 years ago2009-04-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 26 Apr 2009 22:39:33 +0000 (22:39 -0000)]
2009-04-27  Zoltan Varga  <vargaz@gmail.com>

* mini-llvm.c (mono_llvm_emit_method): Implement OP_CHECK_THIS using
a volatile load. Get rid of get_tempname (), llvm assigns names
automatically.

* mini-llvm-cpp.cpp (mono_llvm_build_volatile_load): New instruction
builder function.

svn path=/trunk/mono/; revision=132691

15 years ago2009-04-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 26 Apr 2009 22:27:03 +0000 (22:27 -0000)]
2009-04-27  Zoltan Varga  <vargaz@gmail.com>

* mini-llvm.c (mono_llvm_emit_method): Don't call LLVMGetParam on
a value.

* abcremoval.c (REPORT_ABC_REMOVAL): Don't output messages at verbose
level 1.

svn path=/trunk/mono/; revision=132690

15 years ago2009-04-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 26 Apr 2009 22:13:51 +0000 (22:13 -0000)]
2009-04-27  Zoltan Varga  <vargaz@gmail.com>

* mini-codegen.c (mono_local_regalloc): Prevent sreg1/dreg to be allocated
to the same register as a fixed sreg2. Fixes #497271.

* iltests.il.in: Add a new test.

svn path=/trunk/mono/; revision=132689

15 years ago2009-04-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 26 Apr 2009 18:34:15 +0000 (18:34 -0000)]
2009-04-26  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c: Use moves instead of pushes for passing arguments on the
stack, since pushes complicate exception handling.

* exceptions-amd64.c (mono_arch_find_jit_info): Don't pop the arguments of
the stack if they are passed using moves.

svn path=/trunk/mono/; revision=132687

15 years ago2009-04-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 26 Apr 2009 18:31:57 +0000 (18:31 -0000)]
2009-04-26  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_llvm_vcall_trampoline): Add an assert.

* method-to-ir.c (mono_method_to_ir): Disable fast virtual generic methods
when using llvm.

* mini-llvm.c (mono_llvm_emit_method): Call jit icall wrappers, not the
icalls themselves. Convert arguments of FCOMPARE. Convert the destination
of FMOVE if it is an R4.

svn path=/trunk/mono/; revision=132686

15 years agoDisable track resurrection hashes if using SGen.
Mark Probst [Sun, 26 Apr 2009 10:04:27 +0000 (10:04 -0000)]
Disable track resurrection hashes if using SGen.

2009-04-26  Mark Probst  <mark.probst@gmail.com>

        * domain.c, domain-internals.h: Disable
        track_resurrection_{objects,handles}_hash in MonoDomain if using
        SGen.

svn path=/trunk/mono/; revision=132681

15 years agoAdd comment after much debate
Miguel de Icaza [Sat, 25 Apr 2009 19:34:34 +0000 (19:34 -0000)]
Add comment after much debate

svn path=/trunk/mcs/; revision=132672

15 years ago2009-04-25 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 25 Apr 2009 19:32:34 +0000 (19:32 -0000)]
2009-04-25  Miguel de Icaza  <miguel@novell.com>

* TermInfoDriver.cs: Use the new StreamReader.DataAvailable to
load all the data that was added into the `stdin' stream when we
did the `Read'.

2009-04-25  Miguel de Icaza  <miguel@novell.com>

* StreamReader.cs (DataAvailable): New internal function to work
around the fact that StreamReaders are now blocking on Peek(), and
that our own Console.TermInfoDriver used Peek() as a way of
probing if there was data on a stream before to avoid blocking. o

svn path=/trunk/mcs/; revision=132670

15 years agoApply Gonzalo's patch to fix TermInfoDriver after his StreamReader changes
Miguel de Icaza [Sat, 25 Apr 2009 19:00:32 +0000 (19:00 -0000)]
Apply Gonzalo's patch to fix TermInfoDriver after his StreamReader changes

svn path=/trunk/mcs/; revision=132667

15 years agoReapply
Miguel de Icaza [Sat, 25 Apr 2009 18:59:23 +0000 (18:59 -0000)]
Reapply

svn path=/trunk/mcs/; revision=132666

15 years ago2009-04-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 25 Apr 2009 18:47:02 +0000 (18:47 -0000)]
2009-04-25  Zoltan Varga  <vargaz@gmail.com>

* mini-ops.h: Add OP_LLVM_OUTARG_VT opcode.

* mini.h (LLVMCallInfo): New structure to store calling convention
information for the LLVM back end similar to the CallInfo structures in
the back-ends.

* mini-amd64.c (mono_arch_get_llvm_call_info): New arch function to return
call information in a format usable by LLVM.
(mono_arch_emit_call): Move the LLVM handling code to mono_llvm_emit_call ().

* method-to-ir.c (mono_emit_call_args): Emit calls using
mono_llvm_emit_call () when compiling using LLVM.

* mini-llvm.c: Implement support for passing/receiving valuetypes. Add
comments to all functions. Fix memory leaks. Add a public init/cleanup
function.

* mini.c: Call the llvm init/cleanup functions in mini_init()/cleanup().

* method-to-ir.c (handle_array_new): Disable llvm when calling the vararg
mono_array_new_va () jit icall.

svn path=/trunk/mono/; revision=132665

15 years ago2009-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sat, 25 Apr 2009 16:50:06 +0000 (16:50 -0000)]
2009-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStrip.cs: Even if we are not exactly a MenuStrip instance, close
any ToolStripDropDownItem when receiving a mouse down event in an
empty area.

svn path=/trunk/mcs/; revision=132664

15 years ago2009-04-25 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 25 Apr 2009 15:57:46 +0000 (15:57 -0000)]
2009-04-25  Sebastien Pouliot  <sebastien@ximian.com>

* *.cs: Exclude the files for the NET_2_1 profile, since they are
unneeded and adds a bunch (23) [SecuritySafeCritical] to audit for
Moonlight

svn path=/trunk/mcs/; revision=132663

15 years ago2009-04-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 25 Apr 2009 15:20:12 +0000 (15:20 -0000)]
2009-04-24  Sebastien Pouliot  <sebastien@ximian.com>

* Environment.cs: #ifdef out code that use the registry for the
NET_2_1 profile and some other properties (2) that added
[SecuritySafeCritical] methods to audit inside Moonlight.

svn path=/trunk/mcs/; revision=132662

15 years ago2009-04-25 Daniel Nauck <dna@mono-project.de>
Daniel Nauck [Sat, 25 Apr 2009 14:43:42 +0000 (14:43 -0000)]
2009-04-25 Daniel Nauck <dna@mono-project.de>

        Fix bug #484649:
        * LoggerInfo.cs: fixed the parsing of the /logger: argument as described in
        http://msdn.microsoft.com/en-us/library/ms164311.aspx
        Added logger class detection if it's not explicit specified in the argument.

svn path=/trunk/mcs/; revision=132660

15 years ago2009-04-25 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Sat, 25 Apr 2009 11:48:33 +0000 (11:48 -0000)]
2009-04-25  Jonathan Chambers  <joncham@gmail.com>

        * Makefile: Add Microsoft.Build.* to 3.5 profile.

svn path=/trunk/mcs/; revision=132649

15 years ago2009-04-24 Kostyantyn Gushtin, Yevgen Kiruha, Serhiy Naumenko, Serhiy Stetskovych...
Zoltan Varga [Sat, 25 Apr 2009 03:39:40 +0000 (03:39 -0000)]
2009-04-24  Kostyantyn Gushtin, Yevgen Kiruha, Serhiy Naumenko, Serhiy Stetskovych and Ian Dichkovsky <mono@n-ix.com.ua>

* include/private/gcconfig.h: Changes to support 64-bit ABI on MIPS.
Add an additional condition for a proper defining of  ALIGNMENT
and CPP_WORDSZ.

svn path=/trunk/mono/; revision=132645

15 years ago * src/**/*: Add missing files (doh!). Fixes the build.
Jonathan Pryor [Sat, 25 Apr 2009 00:52:17 +0000 (00:52 -0000)]
* src/**/*: Add missing files (doh!).  Fixes the build.

svn path=/trunk/mcs/; revision=132643

15 years ago2009-04-24 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 25 Apr 2009 00:21:08 +0000 (00:21 -0000)]
2009-04-24  Miguel de Icaza  <miguel@novell.com>

* complete.cs: No idea how gonzalo got a null in the list, but
avoid crashing.

svn path=/trunk/mcs/; revision=132641

15 years ago * src/**/*: Flush; syncs to DbLinq r1053. Adds
Jonathan Pryor [Fri, 24 Apr 2009 23:47:48 +0000 (23:47 -0000)]
* src/**/*: Flush; syncs to DbLinq r1053.  Adds
  DataContext(string,MappingSource) support, the beginnings of object
  tracking, more tests...

svn path=/trunk/mcs/; revision=132640

15 years agoRevert 132601, 132602 as it made the csharp console stop working
Miguel de Icaza [Fri, 24 Apr 2009 23:43:12 +0000 (23:43 -0000)]
Revert 132601, 132602 as it made the csharp console stop working

svn path=/trunk/mcs/; revision=132638

15 years agoWithout this I am unable to install
Miguel de Icaza [Fri, 24 Apr 2009 22:38:55 +0000 (22:38 -0000)]
Without this I am unable to install

svn path=/trunk/mono/; revision=132637

15 years ago2009-04-24 Rodrigo Kumpera <kumpera@gmail.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 22:32:18 +0000 (22:32 -0000)]
2009-04-24  Rodrigo Kumpera  <kumpera@gmail.com>

* get.c (dis_stringify_method_signature_full): Don't assert
if no marshal info is found.

svn path=/trunk/mono/; revision=132636

15 years ago2009-04-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 22:31:54 +0000 (22:31 -0000)]
2009-04-24 Rodrigo Kumpera  <rkumpera@novell.com>

* assembly-with-params.cs: New test file with all sort of param kinds.

* assembly-with-methods.cs: Added more stuff to test paramlist.

* Makefile: Add new dependencies.

* cli-tables-tests.md: Tests for methoddef's paramlist.
Tests for the param table.

svn path=/trunk/mono/; revision=132635

15 years ago2009-04-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 22:31:39 +0000 (22:31 -0000)]
2009-04-24 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Verify the param table.

svn path=/trunk/mono/; revision=132634

15 years ago2009-04-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 22:31:09 +0000 (22:31 -0000)]
2009-04-24 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_typedef_table): Range check FieldList and
MethodList.

* metadata-verify.c (verify_method_table): Proper check the ParamList
field.

svn path=/trunk/mono/; revision=132633

15 years ago2009-04-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 22:30:34 +0000 (22:30 -0000)]
2009-04-24 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c (verify_method_table): Check for runtime
implemented functions such as delegate .ctors. Remove spurious
printf.

svn path=/trunk/mono/; revision=132632

15 years ago2009-04-24 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 22:29:52 +0000 (22:29 -0000)]
2009-04-24 Rodrigo Kumpera  <rkumpera@novell.com>

* pedump.c: Proper initialize the runtime forcing the 2.0 profile.

svn path=/trunk/mono/; revision=132631

15 years agoUpdate this
Miguel de Icaza [Fri, 24 Apr 2009 21:41:32 +0000 (21:41 -0000)]
Update this

svn path=/trunk/mcs/; revision=132627

15 years agoReapply this patch, but keep in mind, it does introduce
Miguel de Icaza [Fri, 24 Apr 2009 21:30:34 +0000 (21:30 -0000)]
Reapply this patch, but keep in mind, it does introduce
a new shift/reduce conflict which is bothering me:

625: shift/reduce conflict (shift 452, reduce 890) on COMPLETE_COMPLETION
state 625
member_initializer : non_assignment_expression . opt_COMPLETE_COMPLETION  (452)
opt_COMPLETE_COMPLETION : .  (890)

COMPLETE_COMPLETION  shift 452
CLOSE_BRACE  reduce 890
COMMA  reduce 890

opt_COMPLETE_COMPLETION  goto 807

2009-04-24  Miguel de Icaza  <miguel@novell.com>

* complete.cs (CompletionElementInitializer): New completion class
to support completing inside a C# 3 element initializer, so this
allows completion for Silverlight situations where it is very
common to do:

new TextBlock () { Fo<TAB>

(CompletionSimpleName): Expose the prefix that was
passed to the simple name.

* cs-parser.jay (object_or_collection_initializer): Add support
for element_initializers.

* expression.cs (CollectionOrObjectInitializers.DoResolve):
special case completion expressions as this method aggressively
collects data before it operates, and errors were being thrown
earlier than we were able to complete.

svn path=/trunk/mcs/; revision=132626

15 years ago2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
Andrés G. Aragoneses [Fri, 24 Apr 2009 21:27:27 +0000 (21:27 -0000)]
2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>

        * ToolBarButton.cs: add UIA events for style and dropdownmenu changes.

svn path=/trunk/mcs/; revision=132625

15 years ago2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
Andrés G. Aragoneses [Fri, 24 Apr 2009 21:23:28 +0000 (21:23 -0000)]
2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>

        * ToolBarButton.cs: rename a method to include UIA prefix.

svn path=/trunk/mcs/; revision=132624

15 years agodoh, fix build
Andrés G. Aragoneses [Fri, 24 Apr 2009 21:21:31 +0000 (21:21 -0000)]
doh, fix build

svn path=/trunk/mcs/; revision=132623

15 years ago2009-04-24 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Fri, 24 Apr 2009 21:20:07 +0000 (21:20 -0000)]
2009-04-24  Bill Holmes  <billholmes54@gmail.com>

Fixing the glib targets for Winx64.

* libmono.vcproj, mono.vcproj: Correcting the ProgramDatabaseFile
  value for the Winx64 glib build.

* mono.sln: Enabling the glib targets for Winx64.

Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=132622

15 years ago2009-04-24 Andrés G. Aragoneses <aaragoneses@novell.com>
Andrés G. Aragoneses [Fri, 24 Apr 2009 21:19:25 +0000 (21:19 -0000)]
2009-04-24  Andrés G. Aragoneses  <aaragoneses@novell.com>

        * ToolBarButton.cs: change visibility of some UIA methods to private.

svn path=/trunk/mcs/; revision=132621

15 years ago2009-04-24 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 24 Apr 2009 20:55:22 +0000 (20:55 -0000)]
2009-04-24  Marek Habersack  <mhabersack@novell.com>

* TemplateParser.cs:
AddImport ignores null/empty namespaces. Fixes bug #498118

svn path=/trunk/mcs/; revision=132619

15 years ago2009-04-24 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 24 Apr 2009 20:44:18 +0000 (20:44 -0000)]
2009-04-24  Marek Habersack  <mhabersack@novell.com>

* HtmlizedException.cs: make HtmlException derive from
HttpException. System.Web.Mvc relies upon compile and parse
exception being descendants of HttpException or otherwise it will
catch and ignore compilation/parsing errors.

svn path=/trunk/mcs/; revision=132617

15 years agoReverted r132592
Marek Safar [Fri, 24 Apr 2009 20:05:01 +0000 (20:05 -0000)]
Reverted r132592

svn path=/trunk/mcs/; revision=132616

15 years ago2009-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 24 Apr 2009 19:20:09 +0000 (19:20 -0000)]
2009-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripDropDown.cs: In OnVisibleChanged, if we have an OwnerItem,
fire OnDropDownOpened/OnDropDownClosed depending on the new
visibility. This also ensures that any direct access to this instance
will fire the mentioned events for the OwnerItem.
* ToolStripDropDownItem.cs: Remove the invocations to
OnDropDownOpened/OnDropDownClosed, since they are handled in
ToolStripDropDown, as well as updating the
OnDropDownHide/OnDropDownShow calls to be in the right order.
Fixes #496193.

svn path=/trunk/mcs/; revision=132611

15 years ago2009-04-24 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Fri, 24 Apr 2009 19:10:39 +0000 (19:10 -0000)]
2009-04-24  Bill Holmes  <billholmes54@gmail.com>

* libmono.vcproj: Adding metadata/metadata-verify.c to the project.

* runmdesc.bat: Fixing the argument order to genmdesc.

Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=132610

15 years ago2009-04-24 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 24 Apr 2009 18:54:29 +0000 (18:54 -0000)]
2009-04-24  Marek Habersack  <mhabersack@novell.com>

* System.Web_test.dll.sources: added
System.Web.UI/PageParserFilterTest.cs

2009-04-24  Marek Habersack  <mhabersack@novell.com>

* TemplateParser.cs: PageParserFilter.Initialize now takes just
one parameter.

* PageParserFilter.cs: a few alignments for .NET compatibility in
the default behavior.

2009-04-24  Marek Habersack  <mhabersack@novell.com>

* AspGenerator.cs: ProcessCode should _not_ stop processing the
passed code string if the filter's ProcessCodeConstruct returns
false. Fixes bug #497775

2009-04-24  Marek Habersack  <mhabersack@novell.com>

* PageParserFilterTest.cs: added

svn path=/trunk/mcs/; revision=132607

15 years ago2009-04-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Fri, 24 Apr 2009 16:46:27 +0000 (16:46 -0000)]
2009-04-24 Gonzalo Paniagua Javier <gonzalo@novell.com>

* StreamReaderTest.cs: new test. Using Peek() when we did a short read
should block if needed.

svn path=/trunk/mcs/; revision=132602

15 years ago2009-04-24 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Fri, 24 Apr 2009 16:46:19 +0000 (16:46 -0000)]
2009-04-24 Gonzalo Paniagua Javier <gonzalo@novell.com>

* StreamReader.cs: if Peek() needs to block, do it.
Fixes bug #496905.

svn path=/trunk/mcs/; revision=132601

15 years agoRemove debugging ToString, it did not compile with mcs anyways
Miguel de Icaza [Fri, 24 Apr 2009 15:32:41 +0000 (15:32 -0000)]
Remove debugging ToString, it did not compile with mcs anyways

svn path=/trunk/mcs/; revision=132598

15 years agoAdd tutorial for adding more completion types and added new completion
Miguel de Icaza [Fri, 24 Apr 2009 15:04:11 +0000 (15:04 -0000)]
Add tutorial for adding more completion types and added new completion
types:

2009-04-24  Miguel de Icaza  <miguel@novell.com>

* complete.cs (CompletionElementInitializer): New completion class
to support completing inside a C# 3 element initializer, so this
allows completion for Silverlight situations where it is very
common to do:

new TextBlock () { Fo<TAB>

(CompletionSimpleName): Expose the prefix that was
passed to the simple name.

* cs-parser.jay (object_or_collection_initializer): Add support
for element_initializers.

* expression.cs (CollectionOrObjectInitializers.DoResolve):
special case completion expressions as this method aggressively
collects data before it operates, and errors were being thrown
earlier than we were able to complete.

svn path=/trunk/mcs/; revision=132592

15 years agoFri Apr 24 16:44:08 CEST 2009 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 24 Apr 2009 14:46:07 +0000 (14:46 -0000)]
Fri Apr 24 16:44:08 CEST 2009 Paolo Molaro <lupus@ximian.com>

* Makefile.am, genmdesc.c, genmdesc.pl: tiny refactor to allow
multiple machine description files to be specified.
* mini-ops.h: fixes for cross-compilation.

svn path=/trunk/mono/; revision=132588

15 years agoDon't allocate MonoGenericInfo for ownerless generic params.
Raja R Harinath [Fri, 24 Apr 2009 13:38:59 +0000 (13:38 -0000)]
Don't allocate MonoGenericInfo for ownerless generic params.

* class-internals.h (MonoGenericParam::info): Move field to ...
(MonoGenericParamFull): ... this.  New struct.
(MonoGenericContainer::type_params): Change type to
MonoGenericParamFull.
(MonoGenericParam, MonoGenericContainer): Update accessors.
* metadata.c (mono_metadata_parse_generic_param): Don't initialize
'info' field for ownerless generic param.
(mono_metadata_load_generic_params): Update to changes.
* reflection.c (mono_reflection_create_generic_class): Likewise.
(reflection_methodbuilder_to_mono_method): Likewise.
(mono_reflection_initialize_generic_parameter): Likewise.

svn path=/trunk/mono/; revision=132583

15 years ago2009-04-24 Jb Evain <jbevain@novell.com>
Jb Evain [Fri, 24 Apr 2009 13:18:23 +0000 (13:18 -0000)]
2009-04-24  Jb Evain  <jbevain@novell.com>

* Mono.Tuner.dll.sources: adjusted
* Mono.Tuner/FilterAttributes.cs: new step to remove some known
undesirable custom attributes.

svn path=/trunk/mcs/; revision=132582

15 years ago* ToolTask.cs (RealExecute): Handle TypeLoadExceptions, compiler
Ankit Jain [Fri, 24 Apr 2009 11:21:00 +0000 (11:21 -0000)]
* ToolTask.cs (RealExecute): Handle TypeLoadExceptions, compiler
crashes and report them. Borrow some tricks from md.
(LogEventsFromTextOutput): Ignore known non-error messages. Don't
log unknown lines, crashes get handled elsewhere.

svn path=/trunk/mcs/; revision=132569

15 years agoDon't use MonoGenericParamInfo for ownerless generic params.
Raja R Harinath [Fri, 24 Apr 2009 05:52:34 +0000 (05:52 -0000)]
Don't use MonoGenericParamInfo for ownerless generic params.

* class.c (get_anon_gparam_class, set_anon_gparam_class): New.  Don't
use ParamInfo class at all.
(mono_class_from_generic_parameter): Use them.
(make_generic_param_class): Fix a couple of instances where 'pinfo
== NULL' wasn't handle.

svn path=/trunk/mono/; revision=132549

15 years agoRefactor 'mono_class_from_generic_parameter'
Raja R Harinath [Fri, 24 Apr 2009 05:52:11 +0000 (05:52 -0000)]
Refactor 'mono_class_from_generic_parameter'

* class.c (make_generic_param_class): Carve out of ...
(mono_class_from_generic_parameter): ... here.

svn path=/trunk/mono/; revision=132548

15 years agoSimplify mono_class_from_generic_parameter
Raja R Harinath [Fri, 24 Apr 2009 05:51:47 +0000 (05:51 -0000)]
Simplify mono_class_from_generic_parameter

* class-internals.h (MonoGenericParamInfo::token): New field.
* metadata.c (mono_metadata_load_generic_params): Initialize it
from metadata.
* class.c (mono_class_from_generic_parameter): Use it instead of
searching through metadata.

svn path=/trunk/mono/; revision=132547

15 years agoadd a few files back for S.R.S.dll - don't trust changes without a full, long and...
Sebastien Pouliot [Fri, 24 Apr 2009 00:55:48 +0000 (00:55 -0000)]
add a few files back for S.R.S.dll - don't trust changes without a full, long and boring 'make clean'.

svn path=/trunk/mcs/; revision=132537

15 years ago2009-04-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 00:36:44 +0000 (00:36 -0000)]
2009-04-23 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Add verification of the method table.

svn path=/trunk/mono/; revision=132536

15 years ago2009-04-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 00:36:19 +0000 (00:36 -0000)]
2009-04-23 Rodrigo Kumpera  <rkumpera@novell.com>

* assembly-with-methods.cs:
* assembly-with-global-method.il: New test files with a global method.

* assembly-with-complex-type.cs: Add more types and methods to be used generating tests.

* cli-tables-tests.md: Tests for the methoddef table.

* Makefile: Add new dependencies.

svn path=/trunk/mono/; revision=132535

15 years ago2009-04-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 00:36:06 +0000 (00:36 -0000)]
2009-04-23 Rodrigo Kumpera  <rkumpera@novell.com>

* gen-md-tests.c: Add read.ushort.

svn path=/trunk/mono/; revision=132534

15 years ago2009-04-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 00:35:51 +0000 (00:35 -0000)]
2009-04-23 Rodrigo Kumpera  <rkumpera@novell.com>

* shared.c: Fix a bunch of memleaks.

svn path=/trunk/mono/; revision=132533

15 years ago2009-04-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 00:35:28 +0000 (00:35 -0000)]
2009-04-23 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_Type_GetMethodsByName): Fix memleak for the
Delegate::Invoke optimization.

svn path=/trunk/mono/; revision=132532

15 years ago2009-04-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 00:34:59 +0000 (00:34 -0000)]
2009-04-23 Rodrigo Kumpera  <rkumpera@novell.com>

* appdomain.c (mono_domain_create_appdomain_internal): Free the
string returned by get_shadow_assembly_location_base.

* appdomain.c (get_shadow_assembly_location_base): Add a comment
about caller's ownership.

svn path=/trunk/mono/; revision=132531

15 years ago2009-04-23 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 00:34:35 +0000 (00:34 -0000)]
2009-04-23 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c: Add mono_reflection_cleanup_domain to cleanup
reflection memory on domain unload.

* domain.c (mono_domain_free): Don't free refobject_hash, let the
reflection cleanup code do it.

* domain-internals.h: Add mono_reflection_cleanup_domain.

This fixes a memory leak for managed mirrors of reflection objects
on domain unload.

svn path=/trunk/mono/; revision=132530

15 years ago2009-04-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 00:34:11 +0000 (00:34 -0000)]
2009-04-22 Rodrigo Kumpera  <rkumpera@novell.com>

* cli-tables-tests.md: More tests for the field table.

svn path=/trunk/mono/; revision=132529

15 years ago2009-04-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 00:33:59 +0000 (00:33 -0000)]
2009-04-22 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Implement more verification of the field table.

svn path=/trunk/mono/; revision=132528

15 years ago2009-04-22 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 00:33:30 +0000 (00:33 -0000)]
2009-04-22 Rodrigo Kumpera  <rkumpera@novell.com>

* pedump.c (main): Init mono with mscorlib so it defaults to 2.0 and
doesn't try to parse the input assembly, which can be broken.

svn path=/trunk/mono/; revision=132527

15 years ago2009-04-21 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 24 Apr 2009 00:32:59 +0000 (00:32 -0000)]
2009-04-21 Rodrigo Kumpera  <rkumpera@novell.com>

* pedump.c: Fix a warning.

svn path=/trunk/mono/; revision=132526

15 years agoadd back duplicated files since the circular, bootstrap, build needs them somehow
Sebastien Pouliot [Thu, 23 Apr 2009 23:31:39 +0000 (23:31 -0000)]
add back duplicated files since the circular, bootstrap, build needs them somehow

svn path=/trunk/mcs/; revision=132525

15 years agoAdd man page
Miguel de Icaza [Thu, 23 Apr 2009 20:15:47 +0000 (20:15 -0000)]
Add man page

svn path=/trunk/mono/; revision=132512

15 years ago2009-04-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 23 Apr 2009 19:41:14 +0000 (19:41 -0000)]
2009-04-23  Sebastien Pouliot  <sebastien@ximian.com>

* TimezoneInfo.cs: TimeZoneDirectory property should not be public

svn path=/trunk/mcs/; revision=132509

15 years ago* linker/Mono.Linker/Driver.cs: Report error and exit if it cannot
Andrés G. Aragoneses [Thu, 23 Apr 2009 19:30:58 +0000 (19:30 -0000)]
* linker/Mono.Linker/Driver.cs: Report error and exit if it cannot
resolve some type (useful to avoid an ugly TypeLoadException when
specifying an erroneus custom step).

svn path=/trunk/mcs/; revision=132508

15 years ago2009-04-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 23 Apr 2009 18:23:09 +0000 (18:23 -0000)]
2009-04-23  Atsushi Enomoto  <atsushi@ximian.com>

* BinaryMessageEncoder.cs : use quotas in binding element.
  Implement WriteMessage().

svn path=/trunk/mcs/; revision=132501

15 years ago2009-04-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 23 Apr 2009 17:34:48 +0000 (17:34 -0000)]
2009-04-23  Sebastien Pouliot  <sebastien@ximian.com>

* net_2_1_raw_System.dll.sources: Remove some unneeded files.

svn path=/trunk/mcs/; revision=132492

15 years ago2009-04-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 23 Apr 2009 17:34:25 +0000 (17:34 -0000)]
2009-04-23  Sebastien Pouliot  <sebastien@ximian.com>

* Regex.cs: Remove Compiler-related support for NET_2_1
* RegexOptions.cs: Remove Compile from values available on NET_2_1

svn path=/trunk/mcs/; revision=132491

15 years ago2009-04-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 23 Apr 2009 17:33:38 +0000 (17:33 -0000)]
2009-04-23  Sebastien Pouliot  <sebastien@ximian.com>

* UriParser.cs: Don't use compiled regex on NET_2_1 (feature is
not available)

svn path=/trunk/mcs/; revision=132490

15 years ago2009-04-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 23 Apr 2009 17:23:35 +0000 (17:23 -0000)]
2009-04-23  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Remove InternalsVisibleTo on Mono.Moonlight
since it does not exists anymore

svn path=/trunk/mcs/; revision=132489

15 years agoTrack resurrection GCHandles in SGen.
Mark Probst [Thu, 23 Apr 2009 16:55:42 +0000 (16:55 -0000)]
Track resurrection GCHandles in SGen.

2009-04-23  Mark Probst  <mark.probst@gmail.com>

        * boehm-gc.c, gc-internal.h, gc.c, monitor.c, null-gc.c,
        sgen-gc.c: Implement track resurrection in weak GC handles in SGen
        by using the lowest bit in the link to store whether the link is
        tracked.  Move the track_resurrection hashes into boehm-gc.c.

svn path=/trunk/mono/; revision=132485

15 years ago2009-04-23 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 23 Apr 2009 16:47:52 +0000 (16:47 -0000)]
2009-04-23  Marek Habersack  <mhabersack@novell.com>

* AsyncPostBackTrigger.cs: HasTriggered () must look up the
UniqueID of the control specified in the ControlID property or
otherwise it may miss certain triggers.

svn path=/trunk/mcs/; revision=132482

15 years agodelete unused file
Jb Evain [Thu, 23 Apr 2009 13:59:38 +0000 (13:59 -0000)]
delete unused file

svn path=/trunk/mcs/; revision=132468

15 years ago2009-04-23 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 23 Apr 2009 13:56:00 +0000 (13:56 -0000)]
2009-04-23  Jb Evain  <jbevain@novell.com>

* scripts/Makefile.am: add a pdb2mdb script.

svn path=/trunk/mono/; revision=132466

15 years ago2009-04-23 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 23 Apr 2009 13:48:27 +0000 (13:48 -0000)]
2009-04-23  Jb Evain  <jbevain@novell.com>

* Makefile: add pdb2mdb to the build.

svn path=/trunk/mcs/; revision=132464

15 years ago2009-04-23 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 23 Apr 2009 13:47:06 +0000 (13:47 -0000)]
2009-04-23  Jb Evain  <jbevain@novell.com>

* Makefile: disable moon. Tuning is done by moonlight, which
will populate back the mcs tree with tuned assemblies for tests.

svn path=/trunk/mcs/; revision=132462

15 years agoadd license file
Jb Evain [Thu, 23 Apr 2009 13:43:04 +0000 (13:43 -0000)]
add license file

svn path=/trunk/mcs/; revision=132461

15 years ago2009-04-23 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 23 Apr 2009 13:41:49 +0000 (13:41 -0000)]
2009-04-23  Jb Evain  <jbevain@novell.com>

* pdb2mdb.exe.sources: added.
* Makefile: update to the mcs build system.

svn path=/trunk/mcs/; revision=132460

15 years agoMove managed version of pdb2mdb in mcs.
Jb Evain [Thu, 23 Apr 2009 13:30:25 +0000 (13:30 -0000)]
Move managed version of pdb2mdb in mcs.

svn path=/trunk/mcs/; revision=132458

15 years agofix typo
Raja R Harinath [Thu, 23 Apr 2009 12:57:07 +0000 (12:57 -0000)]
fix typo

svn path=/trunk/mcs/; revision=132456

15 years ago2009-04-23 Jb Evain <jbevain@novell.com>
Jb Evain [Thu, 23 Apr 2009 11:11:57 +0000 (11:11 -0000)]
2009-04-23  Jb Evain  <jbevain@novell.com>

* Mono.Tuner/CheckVisibility.cs: check deep nested types.

svn path=/trunk/mcs/; revision=132449

15 years ago2009-04-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 23 Apr 2009 11:09:11 +0000 (11:09 -0000)]
2009-04-23  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelFactory.cs : reordered preferrence of created channel types,
  and fixed to allow duplex channels without CallbackContractType
  (which does not always exist for duplex channels).

svn path=/trunk/mcs/; revision=132448

15 years ago2009-04-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 23 Apr 2009 11:06:40 +0000 (11:06 -0000)]
2009-04-23  Atsushi Enomoto  <atsushi@ximian.com>

* DispatchOperation.cs : implement GetFormatter() at service side too.

svn path=/trunk/mcs/; revision=132447

15 years ago2009-04-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 23 Apr 2009 11:05:23 +0000 (11:05 -0000)]
2009-04-22  Atsushi Enomoto  <atsushi@ximian.com>

* ClientRuntimeChannel.cs : now Request() supports duplex ones too.

svn path=/trunk/mcs/; revision=132446

15 years ago2009-04-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 23 Apr 2009 11:02:02 +0000 (11:02 -0000)]
2009-04-22  Atsushi Enomoto  <atsushi@ximian.com>

* DuplexChannelFactory.cs : remove todos. Implement CreateChannel().

svn path=/trunk/mcs/; revision=132445