From: Tom Tromey <tromey@redhat.com>
To: Steffen Dettmer <steffen.dettmer@googlemail.com>
Cc: gdb@sourceware.org
Subject: Re: gdb "automation" question
Date: Wed, 23 Jun 2010 20:59:00 -0000 [thread overview]
Message-ID: <m31vbxbh36.fsf@fleche.redhat.com> (raw)
In-Reply-To: <AANLkTimFWaNrDHMvzM9meZRGhHdo92OrMuWH3UzTL_iI@mail.gmail.com> (Steffen Dettmer's message of "Wed, 23 Jun 2010 19:11:55 +0200")
>>>>> "Steffen" == Steffen Dettmer <steffen.dettmer@googlemail.com> writes:
Steffen> Ohh, until now I did not even knew that there is a
Steffen> python-enabled gdb. I found
Steffen> http://sourceware.org/gdb/current/onlinedocs/gdb/Python.html.
Steffen> http://sourceware.org/gdb/wiki/PythonGdb sounds as this would
Steffen> be an experimental feature. Are the parts I need stable?
Steffen> Should I work on branch origin/archer-tromey-python on a git
Steffen> clone?
You don't need the git branch; you can probably do what you want with
the 7.1 release, or current gdb CVS.
>> What you do is write a new convenience function in Python.
Steffen> sounds promising.
Steffen> Where can I learn more?
Convenience functions are documented in the manual.
>> This is ugly, but it does seem to work.
Steffen> (python extended gdb seems as it could become a lovely feature! :))
Steffen> I'd have interesting things to learn (GIT, python, gdb...).
Steffen> Is there some recommended tutorial?
I wrote a series about it on my blog. A lot of that is still relevant,
though some details have changed, and not all the changes have been
merged.
Start here: http://tromey.com/blog/?p=494
>> define target ours
>> target remote etc
[...]
Steffen> (the "target" inside the define uses the original "target"?
Steffen> Shouldn't it recurse...)
This define adds a new subcommand to target, called "ours".
It doesn't override "target" itself.
Tom
next prev parent reply other threads:[~2010-06-23 20:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-22 14:51 Steffen Dettmer
2010-06-22 16:09 ` Tom Tromey
2010-06-23 17:12 ` Steffen Dettmer
2010-06-23 20:59 ` Tom Tromey [this message]
2010-06-23 18:21 ` Steffen Dettmer
2010-06-23 21:01 ` Tom Tromey
2010-06-24 10:33 ` Steffen Dettmer
2010-06-24 18:19 ` Tom Tromey
2010-06-28 15:11 ` Steffen Dettmer
2010-06-28 15:21 ` Pedro Alves
2010-06-28 20:25 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m31vbxbh36.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb@sourceware.org \
--cc=steffen.dettmer@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox