<?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: 9. Scripting gdb</title>
	<atom:link href="http://tromey.com/blog/?feed=rss2&#038;p=548" rel="self" type="application/rss+xml" />
	<link>http://tromey.com/blog/?p=548&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=9-scripting-gdb</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=548&#038;cpage=1#comment-157963</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Wed, 15 May 2013 18:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=548#comment-157963</guid>
		<description><![CDATA[@Michael - there may not be a way right now.  I think symbol table iteration is not very well supported yet.  Please file a bug.]]></description>
		<content:encoded><![CDATA[<p>@Michael &#8211; there may not be a way right now.  I think symbol table iteration is not very well supported yet.  Please file a bug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael K</title>
		<link>http://tromey.com/blog/?p=548&#038;cpage=1#comment-157956</link>
		<dc:creator>Michael K</dc:creator>
		<pubDate>Wed, 24 Apr 2013 06:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=548#comment-157956</guid>
		<description><![CDATA[Hello Tom,

first of all thank you for your great work, python scripting is a great feature in GDB!

I have a question which I would like to ask you at this place: How can I get an iterator over the global symbol table without having a valid stack frame? I want to write a script which prints out some information on global symbols from within .gdbinit, before execution has been started. I am using GDB 7.5.

Any hint on this would be greatly appreciated!

Michael.]]></description>
		<content:encoded><![CDATA[<p>Hello Tom,</p>
<p>first of all thank you for your great work, python scripting is a great feature in GDB!</p>
<p>I have a question which I would like to ask you at this place: How can I get an iterator over the global symbol table without having a valid stack frame? I want to write a script which prints out some information on global symbols from within .gdbinit, before execution has been started. I am using GDB 7.5.</p>
<p>Any hint on this would be greatly appreciated!</p>
<p>Michael.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scripting GDB Links &#171; Constantly Underwhelmed</title>
		<link>http://tromey.com/blog/?p=548&#038;cpage=1#comment-157896</link>
		<dc:creator>Scripting GDB Links &#171; Constantly Underwhelmed</dc:creator>
		<pubDate>Fri, 09 Mar 2012 07:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=548#comment-157896</guid>
		<description><![CDATA[[...] http://tromey.com/blog/?p=548 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] <a href="http://tromey.com/blog/?p=548" rel="nofollow">http://tromey.com/blog/?p=548</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Cliffs of Inanity &#8250; 12. Events</title>
		<link>http://tromey.com/blog/?p=548&#038;cpage=1#comment-157748</link>
		<dc:creator>The Cliffs of Inanity &#8250; 12. Events</dc:creator>
		<pubDate>Fri, 06 Jan 2012 15:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=548#comment-157748</guid>
		<description><![CDATA[[...] wrote a little about events in gdb-python post #9 &#8212; but a lot has changed since then.  A Google SoC student, Oguz Kayral, wrote better support [...]]]></description>
		<content:encoded><![CDATA[<p>[...] wrote a little about events in gdb-python post #9 &#8212; but a lot has changed since then.  A Google SoC student, Oguz Kayral, wrote better support [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://tromey.com/blog/?p=548&#038;cpage=1#comment-157498</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Mon, 09 Nov 2009 06:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=548#comment-157498</guid>
		<description><![CDATA[Unless I am mistaken it seems that support for controlling processes and catching events has not yet been merged.

The closest I can find is the patches submitted by Oguz Kayral in August http://sourceware.org/ml/archer/2009-q3/msg00148.html which do not seem to be merged into git yet.  I will be looking forward to this getting added. :)]]></description>
		<content:encoded><![CDATA[<p>Unless I am mistaken it seems that support for controlling processes and catching events has not yet been merged.</p>
<p>The closest I can find is the patches submitted by Oguz Kayral in August <a href="http://sourceware.org/ml/archer/2009-q3/msg00148.html" rel="nofollow">http://sourceware.org/ml/archer/2009-q3/msg00148.html</a> which do not seem to be merged into git yet.  I will be looking forward to this getting added. <img src='http://tromey.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erik</title>
		<link>http://tromey.com/blog/?p=548&#038;cpage=1#comment-156838</link>
		<dc:creator>erik</dc:creator>
		<pubDate>Mon, 27 Jul 2009 08:29:53 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=548#comment-156838</guid>
		<description><![CDATA[I was trying out the python support in gdb today. Great work so far! At last we will be able to do the custom debugger for our platform that we have wanted for a while. &quot;GDB as a module&quot; makes a lot of sense. 

I tried running our old python hack that communicates with gdb through a subprocess through gdb -P just to see what would happen and it immediatly stumbled upon the fact that argv[0] is not set to the script name. This makes it incompatible with some pretty useful modules like the OptionParser.

And by the way, if there is a better way to report a bug, please let me know! :)

As I said, great work so far!]]></description>
		<content:encoded><![CDATA[<p>I was trying out the python support in gdb today. Great work so far! At last we will be able to do the custom debugger for our platform that we have wanted for a while. &#8220;GDB as a module&#8221; makes a lot of sense. </p>
<p>I tried running our old python hack that communicates with gdb through a subprocess through gdb -P just to see what would happen and it immediatly stumbled upon the fact that argv[0] is not set to the script name. This makes it incompatible with some pretty useful modules like the OptionParser.</p>
<p>And by the way, if there is a better way to report a bug, please let me know! <img src='http://tromey.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As I said, great work so far!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://tromey.com/blog/?p=548&#038;cpage=1#comment-156707</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Fri, 13 Feb 2009 16:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=548#comment-156707</guid>
		<description><![CDATA[Right, you have to use git and you must check out the correct branch.
See the archer pages on the gdb wiki for more information on how to do that.]]></description>
		<content:encoded><![CDATA[<p>Right, you have to use git and you must check out the correct branch.<br />
See the archer pages on the gdb wiki for more information on how to do that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yzc</title>
		<link>http://tromey.com/blog/?p=548&#038;cpage=1#comment-156706</link>
		<dc:creator>yzc</dc:creator>
		<pubDate>Fri, 13 Feb 2009 00:51:15 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=548#comment-156706</guid>
		<description><![CDATA[I first tried to use the git client, but it didn&#039;t 
work when I tried &quot;git clone git://sourceware.org/git/archer.git&quot;
or &quot;git clone ssh://sourceware.org/git/archer.git&quot;.
Then I went to http://sourceware.org/git/gitweb.cgi?p=archer.git,
picked http://sourceware.org/git/gitweb.cgi?p=archer.git;a=snapshot;h=ad88187efac2686ec0b15c558e05262a003ba504;sf=tbz2

So, guess the one with python support can only be
obtained with git?]]></description>
		<content:encoded><![CDATA[<p>I first tried to use the git client, but it didn&#8217;t<br />
work when I tried &#8220;git clone git://sourceware.org/git/archer.git&#8221;<br />
or &#8220;git clone ssh://sourceware.org/git/archer.git&#8221;.<br />
Then I went to <a href="http://sourceware.org/git/gitweb.cgi?p=archer.git" rel="nofollow">http://sourceware.org/git/gitweb.cgi?p=archer.git</a>,<br />
picked <a href="http://sourceware.org/git/gitweb.cgi?p=archer.git;a=snapshot;h=ad88187efac2686ec0b15c558e05262a003ba504;sf=tbz2" rel="nofollow">http://sourceware.org/git/gitweb.cgi?p=archer.git;a=snapshot;h=ad88187efac2686ec0b15c558e05262a003ba504;sf=tbz2</a></p>
<p>So, guess the one with python support can only be<br />
obtained with git?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tom</title>
		<link>http://tromey.com/blog/?p=548&#038;cpage=1#comment-156705</link>
		<dc:creator>tom</dc:creator>
		<pubDate>Fri, 13 Feb 2009 00:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=548#comment-156705</guid>
		<description><![CDATA[yzc - I don&#039;t think we&#039;ve made an &quot;archer gdb tarball&quot;.
Where did you get it?

Also, for best results, send email to the archer list.
You don&#039;t have to be a member.]]></description>
		<content:encoded><![CDATA[<p>yzc &#8211; I don&#8217;t think we&#8217;ve made an &#8220;archer gdb tarball&#8221;.<br />
Where did you get it?</p>
<p>Also, for best results, send email to the archer list.<br />
You don&#8217;t have to be a member.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yzc</title>
		<link>http://tromey.com/blog/?p=548&#038;cpage=1#comment-156704</link>
		<dc:creator>yzc</dc:creator>
		<pubDate>Thu, 12 Feb 2009 22:48:06 +0000</pubDate>
		<guid isPermaLink="false">http://tromey.com/blog/?p=548#comment-156704</guid>
		<description><![CDATA[Very interesting! I tried to build the archer gdb tarball
with &quot;./configure --with-python&quot;; but the produced gdb
doesn&#039;t recognize &quot;-P&quot; or “--python&quot; option. What might be
missing? Thanks, -Yan

-----------------------------------------------------
$ ./gdb -P    
./gdb: unrecognized option `-P&#039;
Use `./gdb --help&#039; for a complete list of options.
$ ./gdb --python                                                                     [1]
./gdb: unrecognized option `--python&#039;
Use `./gdb --help&#039; for a complete list of options.]]></description>
		<content:encoded><![CDATA[<p>Very interesting! I tried to build the archer gdb tarball<br />
with &#8220;./configure &#8211;with-python&#8221;; but the produced gdb<br />
doesn&#8217;t recognize &#8220;-P&#8221; or “&#8211;python&#8221; option. What might be<br />
missing? Thanks, -Yan</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
$ ./gdb -P<br />
./gdb: unrecognized option `-P&#8217;<br />
Use `./gdb &#8211;help&#8217; for a complete list of options.<br />
$ ./gdb &#8211;python                                                                     [1]<br />
./gdb: unrecognized option `&#8211;python&#8217;<br />
Use `./gdb &#8211;help&#8217; for a complete list of options.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
