mono.git
22 years ago2002-05-24 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 24 May 2002 13:15:48 +0000 (13:15 -0000)]
2002-05-24  Martin Baulig  <martin@gnome.org>

* ParameterInfo.cs: Added internal constructor.

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

22 years ago2002-05-24 Martin Baulig <martin@gnome.org>
Martin Baulig [Fri, 24 May 2002 13:14:31 +0000 (13:14 -0000)]
2002-05-24  Martin Baulig  <martin@gnome.org>

* IMonoSymbolWriter.cs (ISourceMethod): Added `FullName' and `Parameters'.
(ITypeHandle): New interface.

* DwarfFileWriter.cs: Largely reorganized the type writing code.  Types are
now represented by ITypeHandle objects which are stored in a per-dwarf-writer
hash table.  At the moment, all types still need to be in one compile unit due
to lacking support in gdb - but this new type code here already supports this.

* MonoSymbolWriter.cs: Moved all the subclasses to the top-level and made them
public, cleaned up the code, put everything into one compile unit.
(DefineLocalVariable): Added a version of this function which takes useful args.

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

22 years ago2002-05-24 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Fri, 24 May 2002 10:18:16 +0000 (10:18 -0000)]
2002-05-24  Dietmar Maurer  <dietmar@ximian.com>

* jit.c (mono_analyze_stack): moved const. folding from x86.brg

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

22 years agoFri May 24 15:33:50 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 24 May 2002 09:47:13 +0000 (09:47 -0000)]
Fri May 24 15:33:50 CEST 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: added partial async delegate and remoting support.

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

22 years agofixed typo pointed out by Richard Torkar
Dietmar Maurer [Fri, 24 May 2002 07:20:02 +0000 (07:20 -0000)]
fixed typo pointed out by Richard Torkar

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

22 years ago2002-05-24 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Fri, 24 May 2002 07:05:59 +0000 (07:05 -0000)]
2002-05-24  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg: CPBLK impl.

* emit-x86.c (tree_emit): modified to support 3 nonterminals per
rule (used for CPBLK).

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

22 years ago2002-05-23 Tim Coleman <tim@timcoleman.com>
Tim Coleman [Thu, 23 May 2002 21:04:04 +0000 (21:04 -0000)]
2002-05-23  Tim Coleman <tim@timcoleman.com>
        * System.Data.SqlClient/SqlCommand.cs: include
        the BaseColumnName in the schema table.  Was missed before.
        * System.Data.Common/DbDataAdapter.cs: Use DataTable
        mappings so that the DataSet and DataTable are more closely tied.
        Get schema information from the DataTable using GetSchemaTable ()
        Various other little fixes
        * System.Data.Common/DataColumnMappingCollection.cs:
        * System.Data.Common/DataTableMapping.cs:
        * System.Data.Common/DataTableMappingCollection.cs: Some
        implementation, enough to be used by DbDataAdapter.

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

22 years ago2002-05-23 Duncan Mak <duncan@ximian.com>
Duncan Mak [Thu, 23 May 2002 20:22:24 +0000 (20:22 -0000)]
2002-05-23  Duncan Mak  <duncan@ximian.com>

* ArrayList.cs (Wrapper): Preliminary implementation of
ArrayList.Wrapper (IList).

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

22 years ago2002-05-23 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Thu, 23 May 2002 17:21:03 +0000 (17:21 -0000)]
2002-05-23  Daniel Morgan <danmorg@sc.rr.com>

* TestSqlParameters.cs: read and display the schema columns
correctly

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

22 years agoSome small updates and a new test for CreateInstance().
Paolo Molaro [Thu, 23 May 2002 13:03:04 +0000 (13:03 -0000)]
Some small updates and a new test for CreateInstance().

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

22 years agoThu May 23 18:43:07 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 23 May 2002 13:01:32 +0000 (13:01 -0000)]
Thu May 23 18:43:07 CEST 2002 Paolo Molaro <lupus@ximian.com>

* mono.c: remove generated code from hash when benchmarking/testing
method compilation.
* invoke.cs: special case string ctors.

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

22 years agoThu May 23 18:45:38 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 23 May 2002 13:00:46 +0000 (13:00 -0000)]
Thu May 23 18:45:38 CEST 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: special case string ctors in invoke.
Handle null object in throw. Misc integer type mismatch fixes.

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

22 years agoThu May 23 18:44:37 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 23 May 2002 13:00:19 +0000 (13:00 -0000)]
Thu May 23 18:44:37 CEST 2002 Paolo Molaro <lupus@ximian.com>

* object.c: special case string ctros in invoke.
* gc.c: silly whitespace changes.

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

22 years ago2002-05-23 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Thu, 23 May 2002 11:52:23 +0000 (11:52 -0000)]
2002-05-23  Dietmar Maurer  <dietmar@ximian.com>

* *.c: code cleanups - tried to separate architecture dependent things.

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

22 years agoThu May 23 17:18:46 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 23 May 2002 11:32:05 +0000 (11:32 -0000)]
Thu May 23 17:18:46 CEST 2002 Paolo Molaro <lupus@ximian.com>

* Assembly.cs: implemented CreateInstance ().

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

22 years agoThu May 23 17:17:28 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 23 May 2002 11:31:05 +0000 (11:31 -0000)]
Thu May 23 17:17:28 CEST 2002 Paolo Molaro <lupus@ximian.com>

* Activator.cs: implemented CreateInstance ().

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

22 years agoCommented out debugging message.
Martin Baulig [Thu, 23 May 2002 08:53:26 +0000 (08:53 -0000)]
Commented out debugging message.

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

22 years agocode cleanups
Dietmar Maurer [Thu, 23 May 2002 08:52:44 +0000 (08:52 -0000)]
code cleanups

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

22 years ago2002-05-23 Martin Baulig <martin@gnome.org>
Martin Baulig [Thu, 23 May 2002 08:52:06 +0000 (08:52 -0000)]
2002-05-23  Martin Baulig  <martin@gnome.org>

* debug.c (mono_debug_open): Don't call mono_debug_add_image().
(mono_debug_write_symbols): Only recreate the symbol file if
necessary.

* debug-private.h (MonoDebugHandle): Added `dirty' flag.

* mono.c (main): Call mono_debug_add_image() here.

* jit.c (mono_thread_abort): If we have debugging support, call
mono_debug_make_symbols() and G_BREAKPOINT().

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

22 years ago2002-05-23 Martin Baulig <martin@gnome.org>
Martin Baulig [Thu, 23 May 2002 08:33:09 +0000 (08:33 -0000)]
2002-05-23  Martin Baulig  <martin@gnome.org>

* exception.c (arch_handle_exception): Don't G_BREAKPOINT() if we get
an unhandled exception.

* jit.c (mono_thread_abort): G_BREAKPOINT() immediately before the
ExitThread().

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

22 years ago2002-05-23 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Thu, 23 May 2002 07:44:00 +0000 (07:44 -0000)]
2002-05-23  Dietmar Maurer  <dietmar@ximian.com>

* delegate.c: move the thread pool to metadata/threadpool.c, code
cleanup.

* threadpool.[ch]: impl. a threadpool that can
be used by mint and mono.

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

22 years agomake path handling better for windows
Johannes Roith [Thu, 23 May 2002 06:48:23 +0000 (06:48 -0000)]
make path handling better for windows

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

22 years ago2002-05-23 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Thu, 23 May 2002 00:28:02 +0000 (00:28 -0000)]
2002-05-23  Daniel Morgan <danmorg@sc.rr.com>

* System.Data.SqlClient/SqlCommand.cs: set
the "ProviderType" to the PostgreSQL type oid

* System.Data.SqlClient/SqlDataReader.cs: fix
for various properties and methods that
return meta data: Item indexers this[name] and this[index],
GetFieldType, GetName, and GetOrdinal.  SqlDataAdapter
should work again.

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

22 years ago2002-05-22 Duncan Mak <duncan@ximian.com>
Duncan Mak [Thu, 23 May 2002 00:12:56 +0000 (00:12 -0000)]
2002-05-22  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ConvertFromBase): Added additional test for
checking if the digits are valid. Thanks to Miguel for coming
up with this test.

This fixes bug 25071.

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

22 years ago2002-05-22 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 22 May 2002 22:29:26 +0000 (22:29 -0000)]
2002-05-22  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ConvertToBase): Add new 64bit version.
(BuildConvertedString64): New 64bit version of
BuildConvertedString.

This fixes bug 25068.

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

22 years ago2002-05-21 Duncan Mak <duncan@ximian.com>
Duncan Mak [Wed, 22 May 2002 19:59:35 +0000 (19:59 -0000)]
2002-05-21  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ToType): Rearranged to fit the new layout of
conversionTable.

(conversionTable): Rearranged to fit the layout of the
System.TypeCode enum.

This should fix bug 25075.

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

22 years ago2002-05-22 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Wed, 22 May 2002 19:33:52 +0000 (19:33 -0000)]
2002-05-22  Miguel de Icaza  <miguel@ximian.com>

* statement.cs: Track the result of the assignment.

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

22 years ago * Uri.cs: implemented MakeRelative, improved GetLeftPart
Lawrence Pit [Wed, 22 May 2002 18:57:49 +0000 (18:57 -0000)]
* Uri.cs: implemented MakeRelative, improved GetLeftPart
* UriBuilder.cs: removed Serializable attribute
* UriHostNameType.cs: added Basic

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

22 years ago2002-05-22 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Wed, 22 May 2002 17:59:12 +0000 (17:59 -0000)]
2002-05-22  Daniel Morgan <danmorg@sc.rr.com>

* System.Data/DataRow.cs: change suggested
by tim: in Item indexer, do an EndEdit()

* System.Data.SqlClient/SqlCommand.cs: more
fixes to SqlResult.  After setting each item in
the DataRow, do an AcceptChanges() to commit
the changes in the DataRow.  For DataType, use a Type
of System.String since System.Type nor System.Object
seems to work.

* Test/TestSqlDataReader.cs
* Test/PostgresTest.cs: updated to to be on
the way schema table is suppose to work

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

22 years agoReflected latest symbol writer changes.
Martin Baulig [Wed, 22 May 2002 17:09:21 +0000 (17:09 -0000)]
Reflected latest symbol writer changes.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 17:07:10 +0000 (17:07 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* IMonoSymbolWriter.cs (IMonoSymbolWriter): Added `Sources' and `Methods'
properties.

* MonoDwarfFileWriter.cs (WriteSymbolTable): New public method.  Moved the
code that writes the "mono_line_numbers" section here from the LineNumberEngine.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 16:28:18 +0000 (16:28 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* reflection.h (MonoArrayList): New typedef.
(MonoReflectionAssemblyBuilder): Added `table_indexes' and `methods'.

* debug-symfile.c (ves_icall_Debugger_MonoSymbolWriter_method_from_token):
The first argument is now a `MonoReflectionModuleBuilder *', the return
value is a `MonoReflectionModuleBuilder *'.  Use the AssemblyBuilder's
`methods' field to get the method builder.  The `token' argument is the
unfixed token.

* unicode.c (iconv_get_length, iconv_convert): Silently ignore all
invalid characters instead of g_assert_not_reached()ing.  This seems
to be the behaviour of mscorlib.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 16:22:43 +0000 (16:22 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* IMonoSymbolWriter.cs (IVariable): Replaced Token with `ISourceMethod Method'.

* MonoSymbolWriter.cs (MonoSymbolWriter): The constructor now has an additional
ModuleBuilder argument.
(OpenMethod): Immediately call the `get_method' interncall to get the MethodBase
from the token, then store the MethodBase instead of the token.  The token may
still change during the metadata library's fixup process.
(DoFixups): When the image has been written to disk, call the GetToken () method
on all MethodBuilders and all ConstructorBuilders to get the final metadata tokens.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 16:17:11 +0000 (16:17 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* ModuleBuilder.cs (GetSymbolWriter): Pass the this pointer to the
symbol writer's constructor.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 16:12:39 +0000 (16:12 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* MethodBase.cs (get_next_table_index): Added `object obj' argument.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 16:10:10 +0000 (16:10 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* AssemblyBuilder.cs (methods): New field.
(get_next_table_index): Record all methods and constructors
(table 0x06) in the `methods' array.  This is read by the
Mono.CSharp.Debugger.MonoSymbolWriter::get_method interncall to
get the MethodBuilder / ConstructorBuilder back from the token.

* *Builder.cs (get_next_table_index): Added `object obj' argument.
(<constructors>): pass the this pointer to get_next_table_index ().

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 16:05:09 +0000 (16:05 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* ArrayList.cs: Made count, capacity and dataArray the first three
fields in the class.  They're read by the reflection library.

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

22 years agocreate debugging symbols
Dietmar Maurer [Wed, 22 May 2002 10:33:13 +0000 (10:33 -0000)]
create debugging symbols

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

22 years ago2002-05-22 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Wed, 22 May 2002 08:50:11 +0000 (08:50 -0000)]
2002-05-22  Dietmar Maurer  <dietmar@ximian.com>

* exception.c (arch_exc_is_catched): impl. MS like exception
handling (added a check for unhandled exceptions)

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 08:23:36 +0000 (08:23 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* debug-dwarf2-plus.c (mono_debug_open_assembly_dwarf2_plus): Only run
the assembler if necessary, ie. the assembler file is newer than the
symbol file or the symbol file does not exist.

* debug.c: Added "update_on_exit" argument to recreate the symbol file
when the JIT exists.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 08:09:03 +0000 (08:09 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* AssemblerWriterI386.cs: Don't use GNU extensions and produce assembler
output which is free of comments and extra whitespaces so that it's suitable
for `as -f'.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 07:58:04 +0000 (07:58 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* debug-dwarf2.c: Produce assembler code which is free of comments and
extra whitespaces so that it's suitable for `as -f'.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Wed, 22 May 2002 07:49:07 +0000 (07:49 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* debug-dwarf2.c (dwarf2_write_section_end): Removed.  This is not needed
and not supported by all assemblers.
(dwarf2_write_2byte): Use ".word" instead of ".2byte" since ".2byte" is a
GNU extension.

* mono.c (--debug): Small fix in the argument parsing.

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

22 years agoWed May 22 12:42:06 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 22 May 2002 07:00:25 +0000 (07:00 -0000)]
Wed May 22 12:42:06 CEST 2002 Paolo Molaro <lupus@ximian.com>

* monobitset.c: use our own bit_nth_lsf since the glib one is buggy.
Add more tests. mono_bitset_find_first (set, -1) will work correctly
now.

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

22 years agoWed May 22 12:31:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 22 May 2002 06:45:53 +0000 (06:45 -0000)]
Wed May 22 12:31:40 CEST 2002 Paolo Molaro <lupus@ximian.com>

* interp.c: fixed finally handling. In trace mode show
exception handling operations and the contents of the stack in the same
line as the executing instruction.

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

22 years ago2002-05-22 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Wed, 22 May 2002 05:11:55 +0000 (05:11 -0000)]
2002-05-22  Dietmar Maurer  <dietmar@ximian.com>

* object.c (mono_runtime_invoke_array): applied patch from Rachel
Hestilow to fix bug #25104

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

22 years ago2002-05-22 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Wed, 22 May 2002 02:27:20 +0000 (02:27 -0000)]
2002-05-22  Daniel Morgan <danmorg@sc.rr.com>

* System.Data.SqlClient/SqlCommand.cs: more work on
building the schema table

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

22 years ago2002-05-22 Tim Coleman <tim@timcoleman.com>
Tim Coleman [Wed, 22 May 2002 00:34:14 +0000 (00:34 -0000)]
2002-05-22  Tim Coleman <tim@timcoleman.com>
        * System.Data.SqlClient/SqlCommand.cs: preliminary work
        on getting the schema table correctly built.

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

22 years ago2002-05-21 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 21 May 2002 23:32:29 +0000 (23:32 -0000)]
2002-05-21  Miguel de Icaza  <miguel@ximian.com>

* expression.cs (MemberAccess): Improved error reporting for
inaccessible members.

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

22 years agoAdd another error test case
Miguel de Icaza [Tue, 21 May 2002 23:31:38 +0000 (23:31 -0000)]
Add another error test case

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

22 years ago2002-05-21 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 21 May 2002 20:57:33 +0000 (20:57 -0000)]
2002-05-21  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ToByte)
(ToSByte): Fixed bug 25074. Added more bits to ConvertFromBase so
that we won't confuse FormatException with OverflowException.

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

22 years ago Implemented StackTrace, returning MachineName in UserDomainName
Lawrence Pit [Tue, 21 May 2002 19:27:33 +0000 (19:27 -0000)]
Implemented StackTrace, returning MachineName in UserDomainName
        instead of null

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 19:03:59 +0000 (19:03 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* makefile (mcs-mono2.exe): New target.  This is mcs compiled with
itself with debugging support.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 19:00:24 +0000 (19:00 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* typemanager.cs ("System.Runtime.InteropServices.StructLayoutAttribute"):
Removed, this isn't needed anymore.

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

22 years ago2002-05-21 Duncan Mak <duncan@ximian.com>
Duncan Mak [Tue, 21 May 2002 18:58:16 +0000 (18:58 -0000)]
2002-05-21  Duncan Mak  <duncan@ximian.com>

* Convert.cs (ToString): Fixed the ToString methods. Previously I had
mixed up the two code paths, one for converting to a specific base
(this case), another from converting from a foreign base to base10
(used by ToInt16|32|64 (string, int)).

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

22 years agoUpdated (--debug=[FORMAT]).
Martin Baulig [Tue, 21 May 2002 18:56:18 +0000 (18:56 -0000)]
Updated (--debug=[FORMAT]).

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 18:55:20 +0000 (18:55 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* debug.c: Added "dont_assemble" and "dont_precompile" argument for dwarf-plus.

* mono.c: Applied patch from Miguel:
(--debug): This is now a `--debug=[FORMAT]' argument where FORMAT defaults
to dwarf-plus.

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

22 years ago2002-05-22 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 18:34:32 +0000 (18:34 -0000)]
2002-05-22  Martin Baulig  <martin@gnome.org>

* IMonoSymbolWriter.cs (ISourceMethod): Replaced `MethodInfo MethodInfo' with
`MethodBase MethodBase' and added `Type ReturnType'.  We're now correctly
dealing with constructors and not crashing anymore.

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

22 years ago * Environment.cs: CommandLine missed spaces between arguments
Lawrence Pit [Tue, 21 May 2002 18:30:17 +0000 (18:30 -0000)]
* Environment.cs: CommandLine missed spaces between arguments

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

22 years ago * StreamWriter.cs: added ability to write null value
Lawrence Pit [Tue, 21 May 2002 18:17:22 +0000 (18:17 -0000)]
* StreamWriter.cs: added ability to write null value
        * ConsoleTest.cs: added test writing null

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

22 years ago2002-05-21 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Tue, 21 May 2002 16:45:48 +0000 (16:45 -0000)]
2002-05-21  Miguel de Icaza  <miguel@ximian.com>

* HtmlTextWriter.cs: Use this to change the member instances.

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

22 years ago2002-05-21 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 16:10:10 +0000 (16:10 -0000)]
2002-05-21  Martin Baulig  <martin@gnome.org>

* debug.c (mono_debug_source_location_from_address): Added support for the
dwarf2-plus format.

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

22 years ago2002-05-21 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 16:07:51 +0000 (16:07 -0000)]
2002-05-21  Martin Baulig  <martin@gnome.org>

* debug-symfile.c (mono_debug_find_source_location): New function.
Looks up an IL offset in the line number table and returns the source
location as a string.

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

22 years ago2002-05-21 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 16:04:49 +0000 (16:04 -0000)]
2002-05-21  Martin Baulig  <martin@gnome.org>

* MonoDwarfFileWriter.cs: Write a special line number table which can be read
in by the metadata library to get line number information in backtraces.

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

22 years ago * WebProxy.cs: more rigorous testing, fixed bug + had to change
Lawrence Pit [Tue, 21 May 2002 15:56:21 +0000 (15:56 -0000)]
* WebProxy.cs: more rigorous testing, fixed bug + had to change
        internal representation of bypasslist to ArrayList, different
        implementation of checking regex's.

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

22 years ago * ArrayList.cs: Fixed bug where a capacity of 0 could be reached,
Lawrence Pit [Tue, 21 May 2002 14:35:07 +0000 (14:35 -0000)]
* ArrayList.cs: Fixed bug where a capacity of 0 could be reached,
        thereby causing problems when trying to add elements.

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

22 years ago2002-05-21 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 21 May 2002 12:39:30 +0000 (12:39 -0000)]
2002-05-21  Dietmar Maurer  <dietmar@ximian.com>

* jit.c (mono_analyze_stack): LDARG uses 16bit argument (fix bug
#25058)

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

22 years ago2002-05-21 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 11:52:37 +0000 (11:52 -0000)]
2002-05-21  Martin Baulig  <martin@gnome.org>

* debug.c (mono_debug_source_location_from_address): New function.
(mono_debug_il_offset_from_address): New function.

* exception.c (arch_handle_exception): If we have debugging support, include
information about the source location and IL offset in the stack trace.

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

22 years agoTue May 21 17:25:49 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 21 May 2002 11:39:20 +0000 (11:39 -0000)]
Tue May 21 17:25:49 CEST 2002 Paolo Molaro <lupus@ximian.com>

* MonoCustomAttrs.cs: handle inherit argument.

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

22 years ago2002-05-22 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 21 May 2002 11:30:08 +0000 (11:30 -0000)]
2002-05-22  Nick Drochak  <ndrochak@gol.com>

* ResourceReaderTest.cs: Fix path name to resource files (again).

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

22 years agoMoved files to Test/resources
Nick Drochak [Tue, 21 May 2002 11:19:26 +0000 (11:19 -0000)]
Moved files to Test/resources

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

22 years agoMoved files here.
Nick Drochak [Tue, 21 May 2002 11:18:44 +0000 (11:18 -0000)]
Moved files here.

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

22 years ago2002-05-21 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 21 May 2002 11:15:58 +0000 (11:15 -0000)]
2002-05-21  Dietmar Maurer  <dietmar@ximian.com>

* x86.brg (stmt): removed unnecessary assertion

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

22 years ago2002-05-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Tue, 21 May 2002 10:57:10 +0000 (10:57 -0000)]
2002-05-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>

* icall.c:
(mono_double_ToStringImpl): changed %f by %g until we have something
better.

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

22 years ago2002-05-21 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 21 May 2002 10:56:53 +0000 (10:56 -0000)]
2002-05-21  Nick Drochak  <ndrochak@gol.com>

* MathTest.cs:
(TestPow): Add try-catch to determine where we are throwing.
(TestLog): Re-enable failing test
(TestLog2): same although this test still fails on mono. Not
sure what the proper value to use here. It works on MS.NET

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

22 years ago2002-05-21 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 21 May 2002 10:55:30 +0000 (10:55 -0000)]
2002-05-21  Nick Drochak  <ndrochak@gol.com>

* Math.cs (Pow): Change icall method name and insert parameter
checks in for infinities and NaN.

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

22 years ago2002-05-21 Nick Drochak <ndrochak@gol.com>
Nick Drochak [Tue, 21 May 2002 10:54:44 +0000 (10:54 -0000)]
2002-05-21  Nick Drochak  <ndrochak@gol.com>

* icall.c : Use different name for Math.Pow's icall.  Needed to check
parameters first in C#.

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

22 years ago2002-05-21 Dietmar Maurer <dietmar@ximian.com>
Dietmar Maurer [Tue, 21 May 2002 10:46:18 +0000 (10:46 -0000)]
2002-05-21  Dietmar Maurer  <dietmar@ximian.com>

* jit.c (check_inlining):  we cant inline throw instructions
(because it breaks some basic block requirements)

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

22 years agoTue May 21 12:07:40 CEST 2002 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 21 May 2002 10:40:54 +0000 (10:40 -0000)]
Tue May 21 12:07:40 CEST 2002 Paolo Molaro <lupus@ximian.com>

* EventInfo.cs: more implementation.

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

22 years ago2002-05-21 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 10:17:50 +0000 (10:17 -0000)]
2002-05-21  Martin Baulig  <martin@gnome.org>

* mono.1: Documented the "--debug-args" debugging arguments.

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

22 years ago2002-05-21 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 10:17:11 +0000 (10:17 -0000)]
2002-05-21  Martin Baulig  <martin@gnome.org>

* debug-private.h (MonoDebugFlags): New enum typedef.

* debug.c (mono_debug_open): Added a few useful arguments.  See the manpage
for details.

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

22 years agoOoops.
Martin Baulig [Tue, 21 May 2002 09:43:52 +0000 (09:43 -0000)]
Ooops.

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

22 years ago2002-05-21 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 09:21:41 +0000 (09:21 -0000)]
2002-05-21  Martin Baulig  <martin@gnome.org>

* mono.1: Updated to reflect my latest changes and beautified this a bit.
(FIXME: There are still command line argument which aren't documented here.)

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

22 years ago2002-05-21 Martin Baulig <martin@gnome.org>
Martin Baulig [Tue, 21 May 2002 09:20:45 +0000 (09:20 -0000)]
2002-05-21  Martin Baulig  <martin@gnome.org>

* debug.c (mono_debug_open_file): Renamed to mono_debug_open(), now takes
a `MonoAssembly *' argument instead of a `char *filename' one.  Also added
`const char **args' argument.

* mono.c (mono_jit_assembly): Renamed to mono_jit_compile_image(), added
`int verbose' argument and made it public.
(mono_jit_compile_class): New public function,  moved the code to compile
all methods in a class here from main().
(--compile): The argument can now also be an image (in `@imagename' format).
Updated documentation for this command line argument.
(--precompile): New command line argument to precompile an image/class/method
before executing the main app.  This argument can be given multiple times.
(--break): Renamed the "--debug" command line argument to "--break".
(--debug): New command line argument to specify the debugging format.
(--stabs, --dwarf, --dwarf-plus): Removed, obsoleted by "--debug".
(--debug-args): New command line argument.  This is a comma-separated list of
additional arguments for the symbol writer.
(usage): Beautified the help text a bit.

* debug-dwarf2-plus.c (mono_debug_open_assembly_dwarf2_plus): Use the new
public mono_jit_compile_image() function rather than duplication this
functionality here.

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

22 years ago * WebClient.cs: stubbed
Lawrence Pit [Tue, 21 May 2002 03:07:21 +0000 (03:07 -0000)]
* WebClient.cs: stubbed
* WebProxy.cs: fixed bug

* WebProxyTest.cs: added more ctor tests

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

22 years ago2002-05-21 Daniel Morgan <danmorg@sc.rr.com>
Daniel Morgan [Tue, 21 May 2002 01:29:30 +0000 (01:29 -0000)]
2002-05-21  Daniel Morgan <danmorg@sc.rr.com>

* System.Data.SqlClient/ParmUtil.cs: added file - to
provide utility for conversion of input parameters

* System.Data.SqlClient/PostgresTypes.cs: added file -
moved the PostgreHelper class to here.  May eventually
move the internal class PostgresTypes that's inside the
SqlConnection to here as well.
Handling of PostgreSQL <-> .NET types need to be though
out more. Also, the PostgreHelper has a method to convert
from .NET types to a string which can be put into used in
an SQL statement to execute against a PostgreSQL database.
This is the beginnings of parameters support.  It currently
only supports input parameters.  Still need to do output,
input/output, and return parameters.

* Test/TestSqlParameters.cs: new test to test the input
parameters in System.Data.SqlClient against a
PostgreSQL db.

* System.Data.SqlClient/PostgresLibrary.cs: moved
PostgresHelper class to file PostgresTypes.cs.  Also
moved struct PostgresType there too.

* System.Data.SqlClient/SqlCommand.cs: added input
parameters support

* System.Data.SqlClient/SqlParameter.cs: got
SqlParameter to work

* System.Data.SqlClient/SqlParameterCollection.cs: got
SqlParameterCollection to work

* Test/System.Data_test.build: added files to exclude
from test build

* System.Data.SqlClient/SqlConnection.cs: release resources
no longer used

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

22 years ago2002-05-21 Martin Baulig <martin@gnome.org>
Martin Baulig [Mon, 20 May 2002 23:37:05 +0000 (23:37 -0000)]
2002-05-21  Martin Baulig  <martin@gnome.org>

* debug-dwarf2-plus.c: This is now working again :-)

* debug.c (mono_debug_open_file): When using MONO_DEBUG_FORMAT_DWARF2_PLUS,
we create two MonoDebugHandles: one for MONO_DEBUG_FORMAT_DWARF2_PLUS and
one for the fallback MONO_DEBUG_FORMAT_DWARF2.

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

22 years agoUpdates
Miguel de Icaza [Mon, 20 May 2002 23:14:55 +0000 (23:14 -0000)]
Updates

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

22 years ago2002-05-21 Martin Baulig <martin@gnome.org>
Martin Baulig [Mon, 20 May 2002 23:05:53 +0000 (23:05 -0000)]
2002-05-21  Martin Baulig  <martin@gnome.org>

* jit.c (mono_debug_handle): Removed this global variable.

* debug.c (mono_debug_close): Removed.
(mono_debug_cleanup): New global function.
(mono_debug_add_image): New global function.
(mono_debug_handle_from_class): New global function.
(mono_debug_write_symbols): New global function.
(mono_debug_add_type): Removed `MonoDebugHandle *' argument.
(mono_debug_add_method): Likewise.

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

22 years agoFlush ChangeLog
Miguel de Icaza [Mon, 20 May 2002 22:44:08 +0000 (22:44 -0000)]
Flush ChangeLog

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

22 years agoFlush changes to ChangeLog
Miguel de Icaza [Mon, 20 May 2002 22:43:38 +0000 (22:43 -0000)]
Flush changes to ChangeLog

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

22 years agoAnother attempt
Miguel de Icaza [Mon, 20 May 2002 22:34:32 +0000 (22:34 -0000)]
Another attempt

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

22 years ago2002-05-21 Martin Baulig <martin@gnome.org>
Martin Baulig [Mon, 20 May 2002 21:45:11 +0000 (21:45 -0000)]
2002-05-21  Martin Baulig  <martin@gnome.org>

Work around a hard-to-fix bug in GDB and create a single dwarf/stabs
file for all assemblies.  Currently, the JIT doesn't put all methods
from a single assembly into a continuous region of memory.  We were
previously creating valid DWARF 2 files for this, but unfortunately
GDB's symbol tables get messed up when it reads more than one such file.

* debug-private.h (AssemblyDebugInfo): Moved `f', `producer_name',
`next_idx', `methods', `type_hash', `source_files' and `format'
into the MonoDebugHandle.

* debug.c (mono_debug_get_type): This now operates on the MonoDebugHandle,
not on the AssemblyDebugInfo.
(mono_debug_open_file): Moved some stuff here from mono_debug_open_assembly().

* debug-dwarf2.c (mono_debug_write_assembly_dwarf2): Renamed into
mono_debug_write_dwarf2().
(mono_debug_open_assembly_dwarf2): Removed.
(mono_debug_close_assembly_dwarf2): Removed.

* debug-stabs.c (mono_debug_write_assembly_stabs): Renamed into
mono_debug_write_stabs().
(mono_debug_open_assembly_stabs): Removed.
(mono_debug_close_assembly_stabs).

* debug-dwarf2-plus.c: This is currently broken. :-(

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

22 years agoSystem:
Lawrence Pit [Mon, 20 May 2002 18:49:03 +0000 (18:49 -0000)]
System:
* AllTests.cs: added call to System.Net.Sockets.AllTests.cs

System.Net:
* ServicePointTest.cs: added
* ServicePointManagerTest.cs: added
* WebProxyTest.cs: added
* AllTests.cs: added the above tests
* WebHeaderCollection.cs: added TestIndexers.

System.Net.Sockets:
* AllTests.cs: added

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

22 years ago * WebProxy.cs: added, implemented
Lawrence Pit [Mon, 20 May 2002 18:40:55 +0000 (18:40 -0000)]
* WebProxy.cs: added, implemented
* ServicePoint.cs: implemented most
* ServicePointManager.cs: implemented
* HttpWebRequest.cs: started implementation
* HttpWebResponse.cs: improved disposable routines
* FileWebRequest.cs: slight improvement of Close method

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

22 years ago2002-05-20 Martin Baulig <martin@gnome.org>
Martin Baulig [Mon, 20 May 2002 16:28:08 +0000 (16:28 -0000)]
2002-05-20  Martin Baulig  <martin@gnome.org>

* debug.h (mono_debug_format): New global variable.
(MonoDebugFormat): Added MONO_DEBUG_FORMAT_NONE.

* debug-private.h (MonoDebugHandle): Added `objfiles' field which is
a whitespace separated list of symbol files.
(AssemblyDebugInfo): Added `objfile' filed which is the name of the
symbol file.

* mono.c (main): Pass the assembly file name to mono_debug_open_file().

* debug.c (mono_debug_make_symbols): Link all symbol files into a big
`<assemblyname>.o' symbol file.

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

22 years ago2002-05-20 Martin Baulig <martin@gnome.org>
Martin Baulig [Mon, 20 May 2002 15:36:50 +0000 (15:36 -0000)]
2002-05-20  Martin Baulig  <martin@gnome.org>

* debug.c (debug_load_method_lines): Check whether the assembly file
is newer than the IL file and recreate the IL file if necessary.

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

22 years ago2002-05-20 Martin Baulig <martin@gnome.org>
Martin Baulig [Mon, 20 May 2002 15:19:19 +0000 (15:19 -0000)]
2002-05-20  Martin Baulig  <martin@gnome.org>

* main.c: Added `--output=FILENAME' command line option.

* monodis.1: Documented it here.

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

22 years ago2002-05-20 Miguel de Icaza <miguel@ximian.com>
Miguel de Icaza [Mon, 20 May 2002 14:47:12 +0000 (14:47 -0000)]
2002-05-20  Miguel de Icaza  <miguel@ximian.com>

* typemanager.cs (InitEnumUnderlyingTypes): New helper function
that splits out the loading of just the core types.

* rootcontext.cs (ResolveCore): Split the struct resolution in
two, so we can load the enumeration underlying types before any
enums are used.

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

22 years agoThis is so embarassing
Miguel de Icaza [Mon, 20 May 2002 14:28:15 +0000 (14:28 -0000)]
This is so embarassing

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