[Mono-devel-list] Re: mono-debugger 0.9
alex
alexstreng at t-online.de
Wed Jul 7 15:42:42 EDT 2004
Am Mittwoch, 7. Juli 2004 13:06 schrieb Norbert Berzen:
> Hi Alex,
>
> you may want to try the following patch:
>
> ---<cut here>---<cut here>---<cut here>---<cut here>---<cut here>
>
> --- ./mono-debugger-0.9/wrapper/wrapper.c.orig 2004-04-26
> 21:14:27.000000000 +0200
> +++ ./mono-debugger-0.9/wrapper/wrapper.c 2004-07-06 16:37:28.000000000
> +0200
> @@ -118,7 +118,7 @@
> {
> MonoClass *klass = GUINT_TO_POINTER ((guint32) value);
> MonoVTable *vtable = mono_class_vtable (mono_domain_get (), klass);
> - return GPOINTER_TO_UINT (vtable->data);
> + return GPOINTER_TO_UINT (mono_vtable_get_static_field_data (vtable));
> }
>
> static void
> @@ -223,7 +223,9 @@
> */
>
> debugger_main_method = mono_get_method (
> - assembly->image, mono_image_get_entry_point (assembly->image), NULL);
> + mono_assembly_get_image(assembly),
> + mono_image_get_entry_point (mono_assembly_get_image(assembly)),
> + NULL);
> MONO_DEBUGGER__manager.main_function = mono_compile_method
> (debugger_main_method);
>
> /*
>
> ---<cut here>---<cut here>---<cut here>---<cut here>---<cut here>
*************************************************************************************************
thank you for quickly answer.
i have insert the patch but compile error with:
...
/usr/bin/mcs /target:library /out:Mono.Debugger.dll -g -keyfile:../wrapper/
mono.snk -r Mono.GetOptions -r Mono.CSharp.Debugger ../interfaces/*.cs ../
classes/*.cs ../backends/*.cs ../backends/classes/*.cs ../backends/ptrace/
*.cs ../backends/mono-csharp/*.cs ../backends/native/*.cs ../arch/*.cs
AssemblyInfo.cs
../classes/TargetAddress.cs(20) warning CS0660: `Mono.Debugger.TargetAddress'
defines operator == or operator != but does not override Object.Equals
(object o)
../classes/TargetAddress.cs(20) warning CS0661: `Mono.Debugger.TargetAddress'
defines operator == or operator != but does not override Object.GetHashCode
()
Compilation succeeded - 2 warning(s)
/usr/bin/mcs -o mdb.exe -r Mono.GetOptions -r Mono.CSharp.Debugger -r
Mono.Debugger.dll ../frontends/command-line/DebuggerTextWriter.cs ../
frontends/command-line/GnuReadLine.cs ../frontends/command-line/Main.cs ../
frontends/command-line/CL.cs ../frontends/command-line/
ExpressionParser.cs ../frontends/command-line/Tokenizer.cs ../frontends/
scripting/Command.cs ../frontends/scripting/Expression.cs ../frontends/
scripting/Interpreter.cs ../frontends/scripting/MyTextReader.cs ../frontends/
scripting/ScriptingContext.cs ../frontends/scripting/Session.cs ../frontends/
scripting/Style.cs -g
../frontends/scripting/Interpreter.cs(49) error CS0246: Cannot find type
`DebuggerBackend'
../frontends/scripting/Interpreter.cs(51) error CS0246: Cannot find type
`ProcessStart'
../frontends/scripting/Interpreter.cs(81) error CS0246: Cannot find type
`DebuggerOptions'
../frontends/scripting/Interpreter.cs(116) error CS0246: Cannot find type
`DebuggerBackend'
../frontends/scripting/Interpreter.cs(292) error CS0246: Cannot find type
`ProcessStart'
../frontends/scripting/Interpreter.cs(302) error CS0246: Cannot find type
`Process'
../frontends/scripting/Interpreter.cs(318) error CS0246: Cannot find type
`Process'
../frontends/scripting/Interpreter.cs(334) error CS0246: Cannot find type
`ThreadManager'
../frontends/scripting/Interpreter.cs(334) error CS0246: Cannot find type
`Process'
../frontends/scripting/Interpreter.cs(340) error CS0246: Cannot find type
`ThreadManager'
../frontends/scripting/Interpreter.cs(340) error CS0246: Cannot find type
`Process'
../frontends/scripting/Interpreter.cs(652) error CS0246: Cannot find type
`Process'
../frontends/scripting/Interpreter.cs(144) error CS0246: Cannot find type
`ProcessStart'
../frontends/scripting/Interpreter.cs(166) error CS0246: Cannot find type
`DebuggerBackend'
../frontends/command-line/Main.cs(62) error CS0246: Cannot find type
`DebuggerOptions'
../frontends/scripting/ScriptingContext.cs(245) error CS0246: Cannot find type
`Process'
../frontends/scripting/ScriptingContext.cs(251) error CS0246: Cannot find type
`Process'
../frontends/scripting/ScriptingContext.cs(267) error CS0246: Cannot find type
`Process'
../frontends/scripting/ScriptingContext.cs(281) error CS0246: Cannot find type
`Process'
../frontends/scripting/Command.cs(8) error CS0246: The namespace
`Mono.Debugger.Languages' can not be found (missing assembly reference?)
../frontends/scripting/Expression.cs(8) error CS0246: The namespace
`Mono.Debugger.Languages' can not be found (missing assembly reference?)
../frontends/scripting/Interpreter.cs(11) error CS0246: The namespace
`Mono.Debugger.Languages' can not be found (missing assembly reference?)
../frontends/scripting/ScriptingContext.cs(10) error CS0246: The namespace
`Mono.Debugger.Languages' can not be found (missing assembly reference?)
../frontends/scripting/Style.cs(10) error CS0246: The namespace
`Mono.Debugger.Languages' can not be found (missing assembly reference?)
Compilation failed: 24 error(s), 0 warnings
make[2]: *** [mdb.exe] Error 1
...
now i check out the sources form cvs and insert the patch again...
More information about the Mono-devel-list
mailing list