From: Yogesh Mundada <yogesh.mundada@gmail.com>
To: gdb@sourceware.org
Subject: gdb python setup problem
Date: Wed, 17 Mar 2010 21:19:00 -0000 [thread overview]
Message-ID: <1957618c1003171419q24c02ee7vdf293b210bbba849@mail.gmail.com> (raw)
Hi,
I am trying to use gdb scripting using python on karmic. My gdb
version is 7.0-ubuntu. If I start gdb and execute python command then
I get a python prompt (making me think that python patch is accepted
in gdb mainline now). However, if I write following script
(http://tromey.com/blog/?p=548):
----------------------
#!/home/yogesh/build/gdb/gdb -P
import sys
import gdb
print "Here"
----------------------
and execute it, I get following error:
----------------------
/home/yogesh/build/gdb/gdb: unrecognized option '-P'
Use `/home/yogesh/build/gdb/gdb --help' for a complete list of options.
----------------------
Then I got the source code from archer-tromey-python branch as
mentioned in http://sourceware.org/gdb/wiki/PythonGdb. I compiled that
source code but still it did not have any -P option for python
scripting.
What should I do to get python scripting working with gdb?
-Yogesh
next reply other threads:[~2010-03-17 21:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-17 21:19 Yogesh Mundada [this message]
2010-03-17 21:27 ` Zi Shen Lim
2010-03-17 21:52 ` Joel Brobecker
2010-03-18 15:55 ` Tom Tromey
2010-03-23 6:26 ` Yogesh Mundada
2010-03-23 15:31 ` Tom Tromey
2010-03-23 15:42 ` Yogesh Mundada
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=1957618c1003171419q24c02ee7vdf293b210bbba849@mail.gmail.com \
--to=yogesh.mundada@gmail.com \
--cc=gdb@sourceware.org \
/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