This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb "automation" question
>>>>> "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