<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Toru Maesaka &#187; gdb</title>
	<atom:link href="http://torum.net/tag/gdb/feed/" rel="self" type="application/rss+xml" />
	<link>http://torum.net</link>
	<description>Hackaholic and a Web Addict based in Tokyo</description>
	<lastBuildDate>Fri, 27 Aug 2010 15:13:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Debugging Drizzle with GDB remotely from OS X</title>
		<link>http://torum.net/2009/03/drizzle-gdb-osx/</link>
		<comments>http://torum.net/2009/03/drizzle-gdb-osx/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 03:37:19 +0000</pubDate>
		<dc:creator>Toru Maesaka</dc:creator>
				<category><![CDATA[drizzle]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[gdb]]></category>

		<guid isPermaLink="false">http://torum.net/?p=799</guid>
		<description><![CDATA[If you&#8217;re a Mac user and often work remotely on Drizzle with Linux via SSH, this post is for you. At some stage in your development process, you might come across a situation where you want to use GDB to see what&#8217;s going on inside the server process. Doing this is really simple as described [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a Mac user and often work remotely on <a href="https://launchpad.net/drizzle">Drizzle</a> with Linux via SSH, this post is for you.</p>
<p>At some stage in your development process, you might come across a situation where you want to use <a href="http://www.gnu.org/software/gdb/">GDB</a> to see what&#8217;s going on inside the server process. Doing this is really simple as <a href="http://drizzle.org/wiki/Debugging_Drizzle_with_GDB">described in the Drizzle wiki</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">$ cd /path/to/drizzle_source/tests
$ ./dtr --start-and-exit --gdb</pre></div></div>

<p>However, you will find that the Server process will always fail to start. Don&#8217;t stress yet, the issue is simple. The &#45;&#45;gdb startup routine fails because it tries to interact with  a X server which you haven&#8217;t loaded.</p>
<p>Does this sound familiar? what you want to do in this case is use <a href="http://en.wikipedia.org/wiki/Apple_X11">X11.app</a> instead of <a href="http://en.wikipedia.org/wiki/Apple_Terminal">Terminal.app</a> (or <a href="http://iterm.sourceforge.net/">iTerm</a>) and ssh into the remote box with the -X option. You should then be able to simply follow the instructions on the Drizzle wiki.</p>
<p>That&#8217;s it, easy :)</p>
]]></content:encoded>
			<wfw:commentRss>http://torum.net/2009/03/drizzle-gdb-osx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
