Jonathan Pryor [Thu, 16 Apr 2009 18:59:05 +0000 (18:59 -0000)]
* Mono.Documentation/monodocs2slashdoc.cs: Code refactor; use
EcmaDoc.GetCref() to generate //member/@name values.
* Mono.Documentation/dump.cs: Add -f=FORMAT support, so that we can
load an appropriate HelpSource (if supplied) so that an appropriate
Node.PublicUrl can be displayed in the output.
svn path=/trunk/mcs/; revision=131927
Sebastien Pouliot [Thu, 16 Apr 2009 18:51:35 +0000 (18:51 -0000)]
2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
* net_2_1_raw_System.Xml.dll.sources: Remove corlib's files since
System.Xml can now access, for 2.1 (moonlight) corlib's internals.
svn path=/trunk/mcs/; revision=131926
Sebastien Pouliot [Thu, 16 Apr 2009 18:50:47 +0000 (18:50 -0000)]
2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
* net_2_1_raw_System.dll.sources: Remove corlib's files since System
can now access, for 2.1 (moonlight) corlib's internals.
svn path=/trunk/mcs/; revision=131925
Sebastien Pouliot [Thu, 16 Apr 2009 18:48:43 +0000 (18:48 -0000)]
2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: allow System, System.Xml and Mono.
CompilerServices.SymbolWriter access to mscorlib internals
for 2.1 (Moonlight) so they can access internalized types
like non-generic System.Collections
svn path=/trunk/mcs/; revision=131924
Jonathan Pryor [Thu, 16 Apr 2009 18:42:32 +0000 (18:42 -0000)]
* Monodoc/provider.cs: Overview: MonoDevelop loads monodoc.dll into
it's own process, and spawns monodoc GUI into a separate process,
then sends Node.URL values (obtained from the MonoDevelop process)
to load the documentation into the monodoc GUI. Problem:
occasionally the requested documentation isn't loaded, but instead
some completely unrelated documentation is shown instead. This is
because the Node.URL value contains HelpSource-dependent data, e.g.
a Node.URL value of "ecma:0#Foo/" will specify the 1st file
within...whatever HelpSource is first consulted by monodoc (which
can vary between monodoc runs, the phase of the moon, etc.).
Solution: Add a Node.PublicUrl property which returns _stable_ URLs
which aren't specific to a given HelpSource.
- Add Node.PublicUrl property, which delegates to
Provider.GetPublicUrl(string), so that a Provider can generate a
Provider-independent URL (if possible).
- Print PublicUrl from Node.PrintTree().
- Add RootTree.GetSupportedFormats(), RootTree.GetProvider()
methods.
- Make RootTree.GetHelpSource() public.
* Monodoc/ecma-provider.cs: Add EcmaDoc.GetCref() method (generates an
XML documentation //see/@cref value), override
Provider.GetPublicUrl() (which will return cref's if possible).
svn path=/trunk/mcs/; revision=131923
Geoff Norton [Thu, 16 Apr 2009 17:50:38 +0000 (17:50 -0000)]
2009-04-16 Geoff Norton <gnorton@novell.com>
* ResourceWriter.cs: The magic internal type here is required to match
Microsofts for SL2 resource deserialization.
svn path=/trunk/mcs/; revision=131919
Zoltan Varga [Thu, 16 Apr 2009 15:44:11 +0000 (15:44 -0000)]
2009-04-16 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Move the calls to
mono_debug_add_delegate_trampoline () to get_delegate_invoke_impl ().
svn path=/trunk/mono/; revision=131908
Sebastien Pouliot [Thu, 16 Apr 2009 15:25:45 +0000 (15:25 -0000)]
In .:
2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
* corlib.dll.sources: Add System.IO.IsolatedStorage/
MoonIsolatedStorage.cs to the build
In System.IO.IsolatedStorage:
2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
* MoonIsolatedStorage.cs: New. Manage the shared (location, quota)
information about Moonlight isolated storage.
* MoonIsolatedStorageFile.cs: Adjust with new MoonIsolatedStorage.
Implement IncreaseQuotaTo UI.
* MoonIsolatedStorageFileStream.cs: Adjust with MoonIsolatedStorage.
svn path=/trunk/mcs/; revision=131903
Atsushi Eno [Thu, 16 Apr 2009 14:33:40 +0000 (14:33 -0000)]
2009-04-16 Atsushi Enomoto <atsushi@ximian.com>
* ClientRuntimeChannel.cs, ClientProxyGenerator.cs, ClientBase.cs,
ChannelFactory_1.cs :
Sort of reverted internal client channel type changes from
February, but to work fine in SL2 too. Now ChannelFactory<T>
can handle combined interface of IClientChannel and the contract.
svn path=/trunk/mcs/; revision=131899
Sebastien Pouliot [Thu, 16 Apr 2009 14:29:45 +0000 (14:29 -0000)]
2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebRequest_2_1.cs: Rework the throwing of NIE so gui-compare
does not report them (since they are the "right" behavior)
* WebClient_2_1.cs: Fix BaseAddress property to return the URI to
the XAP file. Implement protected GetWebRequest which will make an
absolute URI from a relative one (using BaseAddress). That remove
the need of the previous hack.
* WebRequest_2_1.cs: Remove previous hack
svn path=/trunk/mcs/; revision=131897
Sebastien Pouliot [Thu, 16 Apr 2009 13:01:04 +0000 (13:01 -0000)]
2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
* certmgr.cs: Don't throw if we're missing an argument. Fix by
Romain Tartiere (bug #464765). Updated help to specify that
"option type" is mandatory in some cases.
svn path=/trunk/mcs/; revision=131892
Marek Habersack [Thu, 16 Apr 2009 12:26:14 +0000 (12:26 -0000)]
2009-04-16 Marek Habersack <mhabersack@novell.com>
* HttpContext.cs: local resources code now uses the custom
resource provider factory, just like the global resources
code. Fixes bug #493263
2009-04-16 Marek Habersack <mhabersack@novell.com>
* TemplateControlCompiler.cs:
AssignPropertyFromResources now checks whether the field/property
passed to it is decorated with the Localizable custom attribute
and whether the resource provider contains an entry for that
property.
svn path=/trunk/mcs/; revision=131888
Sebastien Pouliot [Thu, 16 Apr 2009 12:03:19 +0000 (12:03 -0000)]
2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
* IsolatedStorageFile.cs: Fix thread-safety issue at creation time.
[Fix bug #431039]
* IsolatedStorageFileStream.cs: Fix missing path check in Verify.
[Fix bug #487659]
svn path=/trunk/mcs/; revision=131886
Marek Habersack [Thu, 16 Apr 2009 09:51:12 +0000 (09:51 -0000)]
2009-04-16 Marek Habersack <mhabersack@novell.com>
* TemplateControlCompiler.cs: using a regexp to check whether an
expression is a Bind one. Fixes bug #493639
2009-04-16 Marek Habersack <mhabersack@novell.com>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/NoBindForMethodsWithBindInName.aspx
2009-04-16 Marek Habersack <mhabersack@novell.com>
* TemplateControlCompilerTest.cs: added test for bug #493639
svn path=/trunk/mcs/; revision=131874
Atsushi Eno [Thu, 16 Apr 2009 09:42:47 +0000 (09:42 -0000)]
2009-04-16 Atsushi Enomoto <atsushi@ximian.com>
* DuplexChannelFactory.cs : a bit of constructor implementation.
svn path=/trunk/mcs/; revision=131872
Stephane Delcroix [Thu, 16 Apr 2009 09:18:28 +0000 (09:18 -0000)]
minor issues in documentation
svn path=/trunk/mcs/; revision=131870
Jonathan Pryor [Thu, 16 Apr 2009 03:08:40 +0000 (03:08 -0000)]
* Mono.Documentation/webdoc.cs: Remove console debug spew. If you run
with `mdoc -v`, each URL will be printed as it's processed.
svn path=/trunk/mcs/; revision=131858
Rodrigo Kumpera [Thu, 16 Apr 2009 01:40:02 +0000 (01:40 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* cli-tables-tests.md: Tests for the field list of the typedef table.
* assembly-with-complex-type.cs: New assembly source.
* Makefile: Compile the new assembly source.
svn path=/trunk/mono/; revision=131856
Rodrigo Kumpera [Thu, 16 Apr 2009 01:39:52 +0000 (01:39 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_typedef_table): Add tests for FieldList and
a missing of for interface types.
svn path=/trunk/mono/; revision=131855
Rodrigo Kumpera [Thu, 16 Apr 2009 01:39:36 +0000 (01:39 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_pe_optional_header): Add comment of why
the code is commented.
* metadata-verify.c (verify_resources_table): Remove spurious printf
and don't fail if there are unmanaged resources. Gmcs generates a useless
one for all assemblies - I bet it's some MS compatibility junk.
svn path=/trunk/mono/; revision=131854
Rodrigo Kumpera [Thu, 16 Apr 2009 01:39:21 +0000 (01:39 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* cli-tables-tests.md: Tests for the extends field of the typedef table.
svn path=/trunk/mono/; revision=131853
Rodrigo Kumpera [Thu, 16 Apr 2009 01:39:12 +0000 (01:39 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_typedef_table): Verify the extends field.
* metadata-verify.c (mono_image_verify): Add a is_corlib.
* verify-internals.h: Same.
* pedump.c: Fix for mono_image_verify new signature.
svn path=/trunk/mono/; revision=131852
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:53 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* cli-tables-tests.md: More tests for the typedef table.
svn path=/trunk/mono/; revision=131850
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:43 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_typedef_table): Verify for some invalid
flags combinations.
svn path=/trunk/mono/; revision=131849
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:29 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c (verify_module_table): Ignore the generation field.
svn path=/trunk/mono/; revision=131848
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:14 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* gen-md-tests.c: Add the or-uint effect.
svn path=/trunk/mono/; revision=131847
Rodrigo Kumpera [Thu, 16 Apr 2009 01:38:05 +0000 (01:38 -0000)]
2009-04-15 Rodrigo Kumpera <rkumpera@novell.com>
* data-directory-tests.md:
* header-tests.md:
* resources-tests.md: Add comments related to faulty verification
semantics on MS.
svn path=/trunk/mono/; revision=131846
Jonathan Pryor [Thu, 16 Apr 2009 00:45:43 +0000 (00:45 -0000)]
* Mono.Documentation/webdoc.cs: When extracting files from the .zip
file, ensure that the output file is closed. Properly pre-render
ecma namespace documentation.
svn path=/trunk/mcs/; revision=131845
Jonathan Pryor [Thu, 16 Apr 2009 00:41:28 +0000 (00:41 -0000)]
* Monodoc/ecma-provider.cs: EcmaHelpSource.GetText() doesn't need to
call GetCachedText() twice.
svn path=/trunk/mcs/; revision=131844
Jonathan Pryor [Thu, 16 Apr 2009 00:21:29 +0000 (00:21 -0000)]
* Monodoc/provider.cs: Correct UseWebdocCache logic.
* Monodoc/xhtml-provider.cs: Use GetCachedText().
svn path=/trunk/mcs/; revision=131843
Jonathan Pryor [Wed, 15 Apr 2009 21:12:18 +0000 (21:12 -0000)]
* Makefile: Add reference to ICSharpCode.SharpZipLib.dll.
* mdoc.exe.sources: Add Mono.Rocks/ObjectRocks.cs,
Mono.Rocks/StreamRocks.cs.
* Mono.Documentation/webdoc.cs: Refactor into smaller methods. Extract
ZIP file contents in addition to generating HTML output. Use
monodoc helper methods to determine cache directory.
* Mono.Documentation/ObjectRocks.cs: Rename to
Mono.Rocks/ObjectRocks.cs.
* Mono.Rocks/ObjectRocks.cs: Add Check.Destination().
* Mono.Rocks/StreamRocks.cs: Added; extension methods for Streams.
svn path=/trunk/mcs/; revision=131831
Jonathan Pryor [Wed, 15 Apr 2009 21:01:23 +0000 (21:01 -0000)]
* Monodoc/provider.cs: UseWebdocCache is a better name that
IgnoreCache (considering that cache is disabled by default).
svn path=/trunk/mcs/; revision=131829
Jonathan Pryor [Wed, 15 Apr 2009 20:59:04 +0000 (20:59 -0000)]
* Monodoc/provider.cs:
- Add HelpSource.IgnoreCache field, so that if the cache is present
it will be ignored. (Required by 'mdoc export-html-webdoc' so it
gets "fresh" content to generate the cache, and by monodoc GUI as
it can't use the cache'd HTML; cache'd HTML is for ASP.NET
webdoc only.)
- Alter the cache directory from e.g. sources/netdocs to
sources/cache/netdocs (as defined by
XmlDocUtils.GetCacheDirectory()).
- Add HelpSource.GetCachedText() method which will return the
contents of the cache for an id.
* Monodoc/addins-provider.cs, Monodoc/ecma-provider.cs,
Monodoc/error-provider.cs, Monodoc/man-provider.cs,
Monodoc/simple-provider.cs: Use GetCachedText().
* Mono.Documentation/XmlDocUtils.cs: Add GetCacheDirectory(),
GetCacheFileName() methods.
svn path=/trunk/mcs/; revision=131828
Martin Baulig [Wed, 15 Apr 2009 19:34:34 +0000 (19:34 -0000)]
Move 'ISourceFile', 'ICompileUnit' and 'IMethodDef' from MonoSymbolWriter.cs into MonoSymbolFile.cs.
svn path=/trunk/mcs/; revision=131819
Atsushi Eno [Wed, 15 Apr 2009 18:30:49 +0000 (18:30 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* XmlMtomDictionaryReader.cs : new.
* XmlDictionaryReader.cs : implemented CreateMtomReader().
* System.Runtime.Serialization.dll.sources : added mtom reader.
svn path=/trunk/mcs/; revision=131809
Martin Baulig [Wed, 15 Apr 2009 17:50:49 +0000 (17:50 -0000)]
Ignore unknown extended opcodes in the line number table if they're between 0x40 and 0x7f.
2009-04-15 Martin Baulig <martin@ximian.com>
* MonoSymbolTable.cs
(LineNumberTable.DW_LNE_MONO__extensions_start): New const.
(LineNumberTable.DW_LNE_MONO__extensions_end): New const.
(LineNumberTable.DoRead): Ignore unknown extended opcodes if
they're within the Mono extension range.
svn path=/trunk/mcs/; revision=131801
Martin Baulig [Wed, 15 Apr 2009 17:48:06 +0000 (17:48 -0000)]
Don't print a warning for unknown extended opcodes in the line number table if they're between 0x40 and 0x7f.
2009-04-15 Martin Baulig <martin@ximian.com>
* debug-mono-symfile.c
(mono_debug_symfile_lookup_location): Don't print a warning for
unknown extended opcodes if they're within 0x40 and 0x7f.
svn path=/trunk/mono/; revision=131800
Jonathan Pryor [Wed, 15 Apr 2009 14:30:49 +0000 (14:30 -0000)]
* Mono.Documentation/webdoc.cs: The timestamp logic was wrong it the
output directory didn't exist. Fix.
svn path=/trunk/mcs/; revision=131773
Jonathan Pryor [Wed, 15 Apr 2009 13:41:13 +0000 (13:41 -0000)]
* Mono.Documentation/webdoc.cs: Do as make(1) does: if the
target directory already exists and is newer than the source files,
don't regenerate output. (Greatly speeds things up if nothing has
changed.) Add a --force-update option to disable this behavior.
svn path=/trunk/mcs/; revision=131770
Marek Habersack [Wed, 15 Apr 2009 13:32:47 +0000 (13:32 -0000)]
2009-04-15 Marek Habersack <mhabersack@novell.com>
* TemplateParser.cs: use generic lists for import, namespace and
interface caches. If a namespace is added (e.g. by parsing the
Import directive), find the assembly in which namespace is
defined.
2009-04-15 Marek Habersack <mhabersack@novell.com>
* BuildManager.cs: do not add all assemblies in bin/ when serving
a precompiled site. Fixes bug #493873
When serving a precompiled site, check if the bin/ directory
contains certain well-known assemblies and load them if present.
svn path=/trunk/mcs/; revision=131768
Jonathan Pryor [Wed, 15 Apr 2009 13:09:33 +0000 (13:09 -0000)]
* Mono.Documentation/webdoc.cs: Change the default -o value to
include a "cache" intermediate directory. This makes it easier to
kill the entire cache at once.
svn path=/trunk/mcs/; revision=131765
Atsushi Eno [Wed, 15 Apr 2009 11:26:42 +0000 (11:26 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* jis.table : regenerated. Fixed bug #491799.
* I18N.CJK.Test.cs : added test for bug #491799.
svn path=/trunk/mcs/; revision=131758
Atsushi Eno [Wed, 15 Apr 2009 11:19:20 +0000 (11:19 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* uni2tab.c : don't use obsoleted shiftjis.txt.
svn path=/trunk/mcs/; revision=131755
Atsushi Eno [Wed, 15 Apr 2009 11:18:18 +0000 (11:18 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* table_from.cs, table_to.cs : fix misuse of indexers (invalid
code).
svn path=/trunk/mcs/; revision=131754
Marek Habersack [Wed, 15 Apr 2009 11:11:13 +0000 (11:11 -0000)]
2009-04-15 Marek Habersack <mhabersack@novell.com>
* HttpApplicationFactory.cs: if a notification is received from a
FileSystemWatcher which was configured to watch for
subdirectories, uses a filter (currently we have just one such
watcher - waiting for changes to '?eb.?onfig') and the event
doesn't match the filter, ignore the event. Fixes bug #495011
svn path=/trunk/mcs/; revision=131752
Atsushi Eno [Wed, 15 Apr 2009 08:56:38 +0000 (08:56 -0000)]
oops, I happened to commit every pending ones and missed ChangeLog here :(
svn path=/trunk/mcs/; revision=131739
Atsushi Eno [Wed, 15 Apr 2009 08:54:10 +0000 (08:54 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* Expression.cs : extensions could return null and it should be
regarded as empty node-set, not an error.
svn path=/trunk/mcs/; revision=131738
Atsushi Eno [Wed, 15 Apr 2009 08:18:12 +0000 (08:18 -0000)]
2009-04-15 Atsushi Enomoto <atsushi@ximian.com>
* ServiceDocument.cs : remove Utility class. It is not precise
implementation to write extensions.
* ServiceDocumentFormatter.cs : virtual extension writer methods
should call possibly overriden Write[Element/Attribute]Extensions()
in possibly derived document item classes.
Implemented LoadElementExtensions().
* AtomPub10CategoriesDocumentFormatter.cs,
AtomPub10ServiceDocumentFormatter.cs : Implemented GetSchema().
* AtomPub10CategoriesDocumentFormatterTest.cs,
AtomPub10ServiceDocumentFormatterTest.cs : aded GetSchema() and
WriteElementExtensions() tests.
svn path=/trunk/mcs/; revision=131737
Ankit Jain [Wed, 15 Apr 2009 07:56:30 +0000 (07:56 -0000)]
Fix bug #494219.
In ilasm/codegen:
* MethodDef.cs (GetNamedLocalSlot): Return -1 if local var not found.
In ilasm/parser:
* ILParser.jay (instr): Handle unidentified local var id.
In ilasm/scanner:
* StringHelper.cs (startIdChars): New. Set of chars that can start an
identifier.
(Start): Use startIdChars instead of idchars.
svn path=/trunk/mcs/; revision=131736
Marek Habersack [Wed, 15 Apr 2009 07:19:42 +0000 (07:19 -0000)]
Micro optimization - don't call Page twice
svn path=/trunk/mcs/; revision=131734
Gonzalo Paniagua Javier [Wed, 15 Apr 2009 05:41:41 +0000 (05:41 -0000)]
2009-04-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HtmlInputText.cs: make sure we're inside a Page before dereferencing
it.
svn path=/trunk/mcs/; revision=131730
Jonathan Pryor [Wed, 15 Apr 2009 04:58:07 +0000 (04:58 -0000)]
* Mono.Documentation/webdoc.cs: Provide nice default -o value.
svn path=/trunk/mcs/; revision=131729
Jonathan Pryor [Wed, 15 Apr 2009 04:43:40 +0000 (04:43 -0000)]
* Mono.Documentation/webdoc.cs: Load documentation through a
HelpSource, not through the RootTree, as URLs of the form
"ecma:0#AvoidExtensionMethodOnSystemObjectRule/" use the number (0
in this case) as a HelpSource-relative identifier. Result: you get
the wrong documentation if you go through RootTree.
svn path=/trunk/mcs/; revision=131728
Jonathan Pryor [Wed, 15 Apr 2009 04:19:02 +0000 (04:19 -0000)]
* Makefile: Add reference to System.Web.dll, for HttpUtility.
* mdoc.exe.sources: Add ObjectRocks.cs, webdoc.cs to the build.
* Mono.Documentation/mdoc.cs: Add export-html-webdoc command, which
"pre-renders" HTML for use by the webdoc ASP.NET renderer.
* Mono.Documentation/webdoc.cs: Added; MDocExportWebdocHtml
implementation; attempts to pre-render HTML based on .tree/.zip
file contents.
* Mono.Documentation/ObjectRocks.cs: Added; extension methods for tree
traversal (from Mono.Rocks). For use in webdoc.cs.
svn path=/trunk/mcs/; revision=131727
Rodrigo Kumpera [Wed, 15 Apr 2009 00:40:53 +0000 (00:40 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* cli-tables-tests.md: Initial tests for the typedef table.
svn path=/trunk/mono/; revision=131726
Rodrigo Kumpera [Wed, 15 Apr 2009 00:40:43 +0000 (00:40 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Initial code to verify the typedef table.
svn path=/trunk/mono/; revision=131725
Zoltan Varga [Tue, 14 Apr 2009 23:40:33 +0000 (23:40 -0000)]
2009-04-15 Zoltan Varga <vargaz@gmail.com>
* runtime-invoke.cs: Add a test for #494847.
svn path=/trunk/mono/; revision=131720
Zoltan Varga [Tue, 14 Apr 2009 23:40:24 +0000 (23:40 -0000)]
2009-04-15 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_get_runtime_invoke_sig): Don't share runtime
invoke signatures returning an enum. Fixes #494847.
svn path=/trunk/mono/; revision=131719
Rodrigo Kumpera [Tue, 14 Apr 2009 20:16:21 +0000 (20:16 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* valid_br_before_try_block.il: Regression test for #494812.
svn path=/trunk/mono/; revision=131705
Rodrigo Kumpera [Tue, 14 Apr 2009 20:15:59 +0000 (20:15 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (mono_method_verify): Don't fail if an unconditional branch
with non empty stack happens before the beginning of a try block.
Fixes #494812.
svn path=/trunk/mono/; revision=131704
Rodrigo Kumpera [Tue, 14 Apr 2009 20:15:38 +0000 (20:15 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* cli-tables-tests.md: More tests for the typeref table.
svn path=/trunk/mono/; revision=131703
Rodrigo Kumpera [Tue, 14 Apr 2009 20:15:18 +0000 (20:15 -0000)]
2009-04-14 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Verify typename and typenamespace fields of
the typeref table.
svn path=/trunk/mono/; revision=131701
Rodrigo Kumpera [Tue, 14 Apr 2009 20:14:51 +0000 (20:14 -0000)]
2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
* invalid_backward_branch.il: Fix typo.
svn path=/trunk/mono/; revision=131700
Rodrigo Kumpera [Tue, 14 Apr 2009 20:14:28 +0000 (20:14 -0000)]
2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
* Makefile: Fix build of gen-md-tests.
* cli-tables-tests.md: Tests for the typeref table.
svn path=/trunk/mono/; revision=131699
Rodrigo Kumpera [Tue, 14 Apr 2009 20:14:05 +0000 (20:14 -0000)]
2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
* metadata-verify.c: Initial code to verify the typeref table.
svn path=/trunk/mono/; revision=131698
Rodrigo Kumpera [Tue, 14 Apr 2009 20:13:33 +0000 (20:13 -0000)]
2009-04-13 Rodrigo Kumpera <rkumpera@novell.com>
* verify.c (verify_delegate_compatibility): Fix error message.
svn path=/trunk/mono/; revision=131697
Zoltan Varga [Tue, 14 Apr 2009 20:07:00 +0000 (20:07 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
printer.
svn path=/trunk/mono/; revision=131695
Zoltan Varga [Tue, 14 Apr 2009 19:10:14 +0000 (19:10 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c tramp-arm.c mini-arm.c: Implement static rgctx
trampolines for ARM. Add full-aot support for delegate invokes for ARM.
svn path=/trunk/mono/; revision=131688
Sebastien Pouliot [Tue, 14 Apr 2009 17:41:35 +0000 (17:41 -0000)]
2009-04-14 Sebastien Pouliot <sebastien@ximian.com>
* security-core-clr.c: Fix typo
svn path=/trunk/mono/; revision=131683
Sebastien Pouliot [Tue, 14 Apr 2009 17:35:01 +0000 (17:35 -0000)]
2009-04-14 Sebastien Pouliot <sebastien@ximian.com>
* UriTest2.cs: More test cases for the handling of %2f and %5c
svn path=/trunk/mcs/; revision=131682
Sebastien Pouliot [Tue, 14 Apr 2009 17:33:03 +0000 (17:33 -0000)]
2009-04-14 Sebastien Pouliot <sebastien@ximian.com>
* Uri.cs: Fix processing of %2f and %5c in paths. Avoid a few
computation where the result is not used (overwritten)
svn path=/trunk/mcs/; revision=131681
Jonathan Pryor [Tue, 14 Apr 2009 16:03:20 +0000 (16:03 -0000)]
* Monodoc/provider.cs: Fix NullReferenceException in 'mdoc dump-tree'.
svn path=/trunk/mcs/; revision=131678
Zoltan Varga [Tue, 14 Apr 2009 14:24:12 +0000 (14:24 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* marshal.c (delegate_hash_table_add): Make delegate_target_locations
a MonoGHashTable to keep its values alive.
(emit_marshal_boolean): Fix a warning.
svn path=/trunk/mono/; revision=131667
Carlos Alberto Cortez [Tue, 14 Apr 2009 12:03:28 +0000 (12:03 -0000)]
2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ThreadExceptionDialog.cs: Draw the error icon, previously missing.
Fixes #474253.
svn path=/trunk/mcs/; revision=131658
Carlos Alberto Cortez [Tue, 14 Apr 2009 11:15:03 +0000 (11:15 -0000)]
2009-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ContainerControl.cs: Implement support for Control.CausesValidation,
by adding a pending list of controls to be validated in the top
container control, and postpone validation as needed.
Also remove any control in the validation chain in case it gets removed
from its owner before the pending validation actually happens.
Fixes #457170.
svn path=/trunk/mcs/; revision=131656
Zoltan Varga [Tue, 14 Apr 2009 11:06:35 +0000 (11:06 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_delegate_to_ftnptr): Use mono_gc_alloc_fixed () for
allocating the location holding the this argument to prevent
'too many root sets' errors.
svn path=/trunk/mono/; revision=131655
Zoltan Varga [Tue, 14 Apr 2009 11:04:11 +0000 (11:04 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_magic_trampoline): Fix the build.
svn path=/trunk/mono/; revision=131654
Marek Safar [Tue, 14 Apr 2009 09:01:16 +0000 (09:01 -0000)]
New test.
svn path=/trunk/mcs/; revision=131652
Marek Safar [Tue, 14 Apr 2009 09:00:56 +0000 (09:00 -0000)]
2009-04-14 Marek Safar <marek.safar@gmail.com>
A fix for bug #494243
* report.cs (SymbolRelatedToPreviousError): Fixed NRE.
svn path=/trunk/mcs/; revision=131651
Gonzalo Paniagua Javier [Tue, 14 Apr 2009 03:36:16 +0000 (03:36 -0000)]
2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
* socket-io.c: don't return IPv4/IPv6 addresses if the machine does
not have any interface configured for IPv4/IPv6.
svn path=/trunk/mono/; revision=131639
Gonzalo Paniagua Javier [Tue, 14 Apr 2009 03:34:32 +0000 (03:34 -0000)]
2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
* assembly.c: fix typo in error message.
svn path=/trunk/mono/; revision=131638
Zoltan Varga [Mon, 13 Apr 2009 22:14:40 +0000 (22:14 -0000)]
.gitignore.
svn path=/trunk/mono/; revision=131626
Zoltan Varga [Mon, 13 Apr 2009 22:12:28 +0000 (22:12 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* thread-static.cs: Add a test for accesses through reflection.
svn path=/trunk/mono/; revision=131625
Zoltan Varga [Mon, 13 Apr 2009 22:12:21 +0000 (22:12 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* liveness.c (visit_bb): Remove a needless assert.
svn path=/trunk/mono/; revision=131624
Zoltan Varga [Mon, 13 Apr 2009 22:12:14 +0000 (22:12 -0000)]
2009-04-14 Zoltan Varga <vargaz@gmail.com>
* object.c (mono_class_create_runtime_vtable): Set field->offset to -1
to mark fields as special static.
(mono_field_static_get_value): Handle special static fields.
(mono_field_static_set_value): Ditto.
* class-internals.h (struct _MonoClassField): Document this.
svn path=/trunk/mono/; revision=131623
Bill Holmes [Mon, 13 Apr 2009 21:16:55 +0000 (21:16 -0000)]
2009-04-13 Bill Holmes <billholmes54@gmail.com>
* cominterop.c (mono_cominterop_emit_marshal_com_interface): Assigning
the argument a value of null for the MARSHAL_ACTION_MANAGED_CONV_OUT
case. This will handle when managed code returns null to native code.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131622
Bill Holmes [Mon, 13 Apr 2009 21:07:26 +0000 (21:07 -0000)]
2009-04-13 Bill Holmes <billholmes54@gmail.com>
* object.c (build_imt_slots): Changing a free to a g_free to match
the g_malloc0 in add_imt_builder_entry that allocated this memory.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131621
Bill Holmes [Mon, 13 Apr 2009 20:41:07 +0000 (20:41 -0000)]
2009-04-13 Bill Holmes <billholmes54@gmail.com>
* Makefile.am: Adding marshalbool.cs.
* libtest.c: Adding native code for marshalbool.cs tests.
* marshalbool.cs: Adding tests for emit_marshal_boolean.
Contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131619
Bill Holmes [Mon, 13 Apr 2009 20:38:45 +0000 (20:38 -0000)]
2009-04-13 Bill Holmes <billholmes54@gmail.com>
* marshal.c (emit_marshal_boolean): Adding code to ensure that
the correct TRUE value is passed through the marshaling layer.
Code is contributed under MIT/X11 license.
svn path=/trunk/mono/; revision=131618
Zoltan Varga [Mon, 13 Apr 2009 20:08:15 +0000 (20:08 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* pinvoke2.cs: Add a test for #492330.
svn path=/trunk/mono/; revision=131617
Zoltan Varga [Mon, 13 Apr 2009 20:08:08 +0000 (20:08 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_emit_managed_wrapper): Handle closed delegates
correctly. Fixes #492330.
svn path=/trunk/mono/; revision=131616
Zoltan Varga [Mon, 13 Apr 2009 19:51:41 +0000 (19:51 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.
svn path=/trunk/mono/; revision=131614
Zoltan Varga [Mon, 13 Apr 2009 19:51:32 +0000 (19:51 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* marshal.c: Fix the embedding of object pointers into JITted code in
the native-to-managed wrappers by allocating some GC tracked memory, and
embedding the address of that.
svn path=/trunk/mono/; revision=131613
Zoltan Varga [Mon, 13 Apr 2009 19:51:19 +0000 (19:51 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (mono_create_delegate_trampoline): Delegate the
full aot support to the arch specific code.
* mini-amd64.c (mono_arch_get_delegate_invoke_impl): Add full-aot support.
* aot-compiler.c (emit_trampolines): Emit delegate invoke impl trampolines.
* aot-compiler.c (emit_named_code): Rename this to 'emit_trampoline'.
* mini-amd64.c (mono_arch_get_delegate_invoke_impls): New function to
collect information about the delegate invoke impl trampolines.
* mini.h (MonoAotTrampInfo): New structure collecting the information needed
to save trampolines during full-aot mode.
svn path=/trunk/mono/; revision=131612
Jonathan Pryor [Mon, 13 Apr 2009 16:44:08 +0000 (16:44 -0000)]
* sys-time.c: Properly set the modification time, instead of using the
access time as the modification time. Fixes #494253.
svn path=/trunk/mono/; revision=131601
Gonzalo Paniagua Javier [Mon, 13 Apr 2009 16:28:20 +0000 (16:28 -0000)]
2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpUtility.cs: the collection returned from ParseQueryString knows
how to convert the key/value pairs to a string.
svn path=/trunk/mcs/; revision=131599
Marek Safar [Mon, 13 Apr 2009 13:19:38 +0000 (13:19 -0000)]
Better test.
svn path=/trunk/mcs/; revision=131589
Marek Safar [Mon, 13 Apr 2009 13:19:10 +0000 (13:19 -0000)]
2009-04-13 Marek Safar <marek.safar@gmail.com>
A fix for bug #493887
* statement.cs: Don't skip string multi-section with default or
null label when populating string hashtable.
svn path=/trunk/mcs/; revision=131588
Zoltan Varga [Mon, 13 Apr 2009 11:16:02 +0000 (11:16 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* configure.in: Quiet 'copying selected object files' messages from
newer libtool versions as well.
svn path=/trunk/mono/; revision=131570
Zoltan Varga [Mon, 13 Apr 2009 09:59:02 +0000 (09:59 -0000)]
2009-04-13 Zoltan Varga <vargaz@gmail.com>
* configure.in: Disable AC_PROG_CXX for now to fix the windows build.
In mono/mini:
* Makefile.am: Comment out the cpp files as f@#%$ automake complains even
if they are inside a conditional.
svn path=/trunk/mono/; revision=131565