Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb python setup problem
@ 2010-03-17 21:19 Yogesh Mundada
  2010-03-17 21:27 ` Zi Shen Lim
  2010-03-18 15:55 ` Tom Tromey
  0 siblings, 2 replies; 7+ messages in thread
From: Yogesh Mundada @ 2010-03-17 21:19 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-03-23 15:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-17 21:19 gdb python setup problem Yogesh Mundada
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox