<?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>multiprocessing &#8211; Luxing Huang</title>
	<atom:link href="https://luxing.im/tag/multiprocessing/feed/" rel="self" type="application/rss+xml" />
	<link>https://luxing.im</link>
	<description>Thoughs and things</description>
	<lastBuildDate>Wed, 29 Oct 2014 19:10:49 +0000</lastBuildDate>
	<language>en-CA</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
<site xmlns="com-wordpress:feed-additions:1">58771605</site>	<item>
		<title>Multi Process Debugging</title>
		<link>https://luxing.im/multi-process-debugging/</link>
					<comments>https://luxing.im/multi-process-debugging/#respond</comments>
		
		<dc:creator><![CDATA[Luxing Huang]]></dc:creator>
		<pubDate>Wed, 29 Oct 2014 19:10:49 +0000</pubDate>
				<category><![CDATA[Learning Notes]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[gdb]]></category>
		<category><![CDATA[multiprocessing]]></category>
		<category><![CDATA[multithreaded]]></category>
		<guid isPermaLink="false">https://luxing.im/?p=444</guid>

					<description><![CDATA[It bugs me to debug multiprocess C programs by using GDB. Here is a note for multi processing, and multithreaded debugging. gdb a.out Multi processes: Then: set follow-fork-mode child set schedule-multiple on set detach-on-fork off b ## r ## means a number, in this case, line number. Switching between processes: info inferiors inferior # In &#8230; <p class="link-more"><a href="https://luxing.im/multi-process-debugging/" class="more-link">Continue reading<span class="screen-reader-text"> "Multi Process Debugging"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>It bugs me to debug multiprocess C programs by using GDB. Here is a note for multi processing, and multithreaded debugging.</p>
<p><span id="more-444"></span></p>
<pre>
gdb a.out
</pre>
<p><strong>Multi processes:</strong></p>
<p>Then:</p>
<pre>
set follow-fork-mode child
set schedule-multiple on
set detach-on-fork off
b ##
r
</pre>
<p>## means a number, in this case, line number.</p>
<p>Switching between processes:</p>
<pre>
info inferiors
inferior #
</pre>
<p>In this case, # means process number.</p>
<p><strong>Multi Threads:</strong></p>
<pre>
info threads
thread #
</pre>
<p>Please consult the official docs for more features.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://luxing.im/multi-process-debugging/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">444</post-id>	</item>
	</channel>
</rss>
