<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: 2. Writing a new gdb command</title>
	<atom:link href="http://tromey.com/blog/?feed=rss2&#038;p=501" rel="self" type="application/rss+xml" />
	<link>http://tromey.com/blog/?p=501&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=2-writing-a-new-gdb-command</link>
	<description></description>
	<lastBuildDate>Wed, 15 May 2013 18:03:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: tom</title>
		<link>http://tromey.com/blog/?p=501&#038;cpage=1#comment-157962</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Wed, 15 May 2013 18:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=501#comment-157962</guid>
		<description><![CDATA[@Haitham - I&#039;m not actually sure.  I suggest filing a bug report.]]></description>
		<content:encoded><![CDATA[<p>@Haitham &#8211; I&#8217;m not actually sure.  I suggest filing a bug report.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haitham Gad</title>
		<link>http://tromey.com/blog/?p=501&#038;cpage=1#comment-157950</link>
		<dc:creator>Haitham Gad</dc:creator>
		<pubDate>Wed, 13 Mar 2013 02:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=501#comment-157950</guid>
		<description><![CDATA[I have a question regarding prefix commands. I know that the gdb &quot;logging&quot; command is a prefix command:

set logging file &quot;/tmp/log&quot;
set logging overwrite on

But at the same time, you can give it values independently like:

set logging on
set logging off

In python, if I need to get the value of a sub-parameter, I use:

gdb.parameter(&quot;logging file&quot;)
gdb.parameter(&quot;logging overwrite&quot;)

But how to get the value of the &quot;logging&quot; parameter itself? I tried:

gdb.parameter(&quot;logging&quot;)

but it didn&#039;t work.

Thanks,
Haitham]]></description>
		<content:encoded><![CDATA[<p>I have a question regarding prefix commands. I know that the gdb &#8220;logging&#8221; command is a prefix command:</p>
<p>set logging file &#8220;/tmp/log&#8221;<br />
set logging overwrite on</p>
<p>But at the same time, you can give it values independently like:</p>
<p>set logging on<br />
set logging off</p>
<p>In python, if I need to get the value of a sub-parameter, I use:</p>
<p>gdb.parameter(&#8220;logging file&#8221;)<br />
gdb.parameter(&#8220;logging overwrite&#8221;)</p>
<p>But how to get the value of the &#8220;logging&#8221; parameter itself? I tried:</p>
<p>gdb.parameter(&#8220;logging&#8221;)</p>
<p>but it didn&#8217;t work.</p>
<p>Thanks,<br />
Haitham</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GDB???? &#124; ????</title>
		<link>http://tromey.com/blog/?p=501&#038;cpage=1#comment-157919</link>
		<dc:creator>GDB???? &#124; ????</dc:creator>
		<pubDate>Sun, 01 Jul 2012 14:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=501#comment-157919</guid>
		<description><![CDATA[[...] Writing a new gdb command [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Writing a new gdb command [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://tromey.com/blog/?p=501&#038;cpage=1#comment-157894</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Tue, 06 Mar 2012 14:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=501#comment-157894</guid>
		<description><![CDATA[At least with GDB 7.2 I&#039;ve discovered that the source command shown above does not work.  Instead you need to use the .py file extension and emit the -p, i.e.

(gdb) source /tmp/example.py

I guess things have moved on since this tutorial was written, but I still found it very helpful.]]></description>
		<content:encoded><![CDATA[<p>At least with GDB 7.2 I&#8217;ve discovered that the source command shown above does not work.  Instead you need to use the .py file extension and emit the -p, i.e.</p>
<p>(gdb) source /tmp/example.py</p>
<p>I guess things have moved on since this tutorial was written, but I still found it very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://tromey.com/blog/?p=501&#038;cpage=1#comment-157671</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Tue, 23 Nov 2010 18:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=501#comment-157671</guid>
		<description><![CDATA[@JK - I suggest the gdb documentation.  Most of the gdb module is defined in C code.]]></description>
		<content:encoded><![CDATA[<p>@JK &#8211; I suggest the gdb documentation.  Most of the gdb module is defined in C code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JK</title>
		<link>http://tromey.com/blog/?p=501&#038;cpage=1#comment-157670</link>
		<dc:creator>JK</dc:creator>
		<pubDate>Tue, 23 Nov 2010 13:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=501#comment-157670</guid>
		<description><![CDATA[I am trying to extend gdb by creating custom commands using python. Can you please tell me where I can find the gdb class definition. I could not find all the methods available in gdb class.]]></description>
		<content:encoded><![CDATA[<p>I am trying to extend gdb by creating custom commands using python. Can you please tell me where I can find the gdb class definition. I could not find all the methods available in gdb class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Freitas</title>
		<link>http://tromey.com/blog/?p=501&#038;cpage=1#comment-157599</link>
		<dc:creator>Eric Freitas</dc:creator>
		<pubDate>Fri, 16 Jul 2010 18:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=501#comment-157599</guid>
		<description><![CDATA[Thanks for getting this functionality into gdb.  It works really great.  You really need to make it easier to install/use though.  I have been searching and downloading and building gdb and archer to no avail until I found a note for Chromium that explained how to get the python pretty printing to work when debugging Chromium.  It was simple and to the point.  

http://code.google.com/p/chromium/wiki/LinuxDebugging

I think the main issue here is that there is a lot that you take for granted that a Linux dev should just know before trying to delve into the deep innards of simply modifying the .gdbinit file.  I think that having a short, simple example of how to get it working with gdb 7+ would be great.  The website above did that.  It may not be perfect, but it works.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Thanks for getting this functionality into gdb.  It works really great.  You really need to make it easier to install/use though.  I have been searching and downloading and building gdb and archer to no avail until I found a note for Chromium that explained how to get the python pretty printing to work when debugging Chromium.  It was simple and to the point.  </p>
<p><a href="http://code.google.com/p/chromium/wiki/LinuxDebugging" rel="nofollow">http://code.google.com/p/chromium/wiki/LinuxDebugging</a></p>
<p>I think the main issue here is that there is a lot that you take for granted that a Linux dev should just know before trying to delve into the deep innards of simply modifying the .gdbinit file.  I think that having a short, simple example of how to get it working with gdb 7+ would be great.  The website above did that.  It may not be perfect, but it works.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://tromey.com/blog/?p=501&#038;cpage=1#comment-156375</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Sat, 29 Nov 2008 21:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=501#comment-156375</guid>
		<description><![CDATA[Daniel -- I don&#039;t recall seeing the patch, though I could have missed it, particularly if it was sent before June or so. 

It definitely is not in the tree:

(gdb) define delete foo
Junk in argument list: &quot; foo&quot;]]></description>
		<content:encoded><![CDATA[<p>Daniel &#8212; I don&#8217;t recall seeing the patch, though I could have missed it, particularly if it was sent before June or so. </p>
<p>It definitely is not in the tree:</p>
<p>(gdb) define delete foo<br />
Junk in argument list: &#8221; foo&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jacobowitz</title>
		<link>http://tromey.com/blog/?p=501&#038;cpage=1#comment-156374</link>
		<dc:creator>Daniel Jacobowitz</dc:creator>
		<pubDate>Sat, 29 Nov 2008 19:39:14 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=501#comment-156374</guid>
		<description><![CDATA[Mostly unrelated, but have we not posted the patch to add subcommands using define?  If so, it&#039;s not on purpose.  It&#039;s a handy and quite simple patch.

That doesn&#039;t make this any less useful, mind!]]></description>
		<content:encoded><![CDATA[<p>Mostly unrelated, but have we not posted the patch to add subcommands using define?  If so, it&#8217;s not on purpose.  It&#8217;s a handy and quite simple patch.</p>
<p>That doesn&#8217;t make this any less useful, mind!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
