<html>
<body>
  <div id="body" style="background-color:#ffffff;" >
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head" style="border-bottom-width:1px;border-bottom-style:solid;" ><td class="headtd" style="padding:0;padding-top:.2em;" colspan="4">Commit in <b><tt>lxdream/src</tt></b></td></tr>
<tr><td><tt><a href="#file1">util.c</a></tt></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+4</td><td></td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">e04e4af64626 -> 8e75fab17be8</td></tr>
</table>
<pre class="comment" style="white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd;" >
Add variant gdb invocation for OS X (which ships with a much older gdb).
TODO: detect gdb version at configure time and work off that instead
</pre>
<hr /><a name="file1" /><div class="file" style="border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;" >
<span class="pathname" style="font-family:monospace; float:right;" >lxdream/src</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>util.c</b></big> <small id="info" style="color: #888888;" >e04e4af64626 -> 8e75fab17be8</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/src/util.c
+++ lxdream/src/util.c
@@ -44,7 +44,11 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     fprintf( stderr, "--- Aborting with signal %d ---\n", signo );
     sh4_crashdump();
     // Get gdb to print a nice backtrace for us
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+#ifdef APPLE_BUILD
+    snprintf( buf, 128, "echo bt | gdb --quiet --pid=%d", getpid() );
+#else
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     snprintf( buf, 128, "gdb -batch -f --quiet --pid=%d -ex bt", getpid() );
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+#endif
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     system(buf);
 
     abort();
</pre></div>
<center><small>Chaos Theory</small></center>
</div></body></html>