[Mono-osx] MonoMac: mono_backtrace

Duane Wandless duane at wandless.net
Wed Aug 4 07:06:52 EDT 2010


I modified the mono backtrace macro to be this:
define monobacktrace
 select-frame 0
 set $i = 0
 while ($i < $arg0)
   *set $foo = (char*)mono_pmip ($pc)*
  * if ($foo)*
*     printf "#%d %p in %s\n", $i, $pc, $foo*
*   else*
*     frame*
*   end*
   up-silently
   set $i = $i + 1
 end
end

The change is to cast the result of mono_pmip to (char*) and to check if
($foo) rather than if ($foo == 0x00).

Duane

On Tue, Aug 3, 2010 at 9:06 AM, Duane Wandless <duane at wandless.net> wrote:

> I had been using mono_backtrace as described here,
> http://www.mono-project.com/Debugging.
>
> When I use 2.6.7 with MonoMac I receive this error:
> Invalid type combination in equality test.
>
> My guess is mono_pmip is not working as expected.
>
> If there is a simple answer, let me know.  I use this a lot in debugging my
> embedded app.
>
> Thanks,
> Duane
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20100804/312d15c3/attachment-0001.html 


More information about the Mono-osx mailing list