mail-archives/mono-osx/2010-August/003042.html

98 строки
3.5 KiB
HTML
Исходник Постоянная ссылка Обычный вид История

2019-06-06 22:05:17 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] MonoMac: mono_backtrace
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20MonoMac%3A%20mono_backtrace&In-Reply-To=AANLkTinAjAKCu6e5bELGt7jqvF3XwbbRdqpd0BV2Ls%3D3%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="003040.html">
<LINK REL="Next" HREF="003044.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] MonoMac: mono_backtrace</H1>
<B>Duane Wandless</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20MonoMac%3A%20mono_backtrace&In-Reply-To=AANLkTinAjAKCu6e5bELGt7jqvF3XwbbRdqpd0BV2Ls%3D3%40mail.gmail.com"
TITLE="[Mono-osx] MonoMac: mono_backtrace">duane at wandless.net
</A><BR>
<I>Wed Aug 4 07:06:52 EDT 2010</I>
<P><UL>
<LI>Previous message: <A HREF="003040.html">[Mono-osx] MonoMac: mono_backtrace
</A></li>
<LI>Next message: <A HREF="003044.html">[Mono-osx] MonoMac: mono_backtrace
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3042">[ date ]</a>
<a href="thread.html#3042">[ thread ]</a>
<a href="subject.html#3042">[ subject ]</a>
<a href="author.html#3042">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>I modified the mono backtrace macro to be this:
define monobacktrace
select-frame 0
set $i = 0
while ($i &lt; $arg0)
*set $foo = (char*)mono_pmip ($pc)*
* if ($foo)*
* printf &quot;#%d %p in %s\n&quot;, $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 &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">duane at wandless.net</A>&gt; wrote:
&gt;<i> I had been using mono_backtrace as described here,
</I>&gt;<i> <A HREF="http://www.mono-project.com/Debugging.">http://www.mono-project.com/Debugging.</A>
</I>&gt;<i>
</I>&gt;<i> When I use 2.6.7 with MonoMac I receive this error:
</I>&gt;<i> Invalid type combination in equality test.
</I>&gt;<i>
</I>&gt;<i> My guess is mono_pmip is not working as expected.
</I>&gt;<i>
</I>&gt;<i> If there is a simple answer, let me know. I use this a lot in debugging my
</I>&gt;<i> embedded app.
</I>&gt;<i>
</I>&gt;<i> Thanks,
</I>&gt;<i> Duane
</I>&gt;<i>
</I>-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20100804/312d15c3/attachment-0001.html">http://lists.ximian.com/pipermail/mono-osx/attachments/20100804/312d15c3/attachment-0001.html</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="003040.html">[Mono-osx] MonoMac: mono_backtrace
</A></li>
<LI>Next message: <A HREF="003044.html">[Mono-osx] MonoMac: mono_backtrace
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3042">[ date ]</a>
<a href="thread.html#3042">[ thread ]</a>
<a href="subject.html#3042">[ subject ]</a>
<a href="author.html#3042">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>