Re: gdb python setup problem

Yogesh Mundada
2010-03-23T06:26:32Z

I followed instructions from http://sourceware.org/gdb/wiki/PythonGdb.
But I don't think I am getting the correct branch.
Here are commands for your reference:

yogesh@destiny:~$ git clone git://sourceware.org/git/archer.git
git: /usr/local/lib/libidn.so.11: no version information available
(required by /usr/lib/libcurl-gnutls.so.4)
Initialized empty Git repository in /home/yogesh/archer/.git/
git: /usr/local/lib/libidn.so.11: no version information available
(required by /usr/lib/libcurl-gnutls.so.4)
git-index-pack: /usr/local/lib/libidn.so.11: no version information
available (required by /usr/lib/libcurl-gnutls.so.4)
remote: Counting objects: 309735, done.
remote: Compressing objects: 100% (57761/57761), done.
Receiving objects: 100% (309735/309735), 116.01 MiB | 758 KiB/s, done.
remote: Total 309735 (delta 245181), reused 309056 (delta 244653)
Resolving deltas: 100% (245181/245181), done.
Checking out files: 100% (7324/7324), done.
yogesh@destiny:~$
yogesh@destiny:~$ ls -ltr
total 708
-rw-r--r-- 1 yogesh yogesh 668436 2010-03-08 09:46
ws7_replay_linux_technote.pdf
-rw-r--r-- 1 yogesh yogesh 63 2010-03-17 17:43 gp-cont.py
drwxr-xr-x 3 yogesh yogesh 4096 2010-03-22 23:48 vmware
drwxr-xr-x 4 yogesh yogesh 4096 2010-03-23 01:07 Downloads
drwxr-xr-x 2 yogesh yogesh 4096 2010-03-23 01:12 Desktop
drwxr-xr-x 16 yogesh yogesh 4096 2010-03-23 01:15 archer
yogesh@destiny:~$
yogesh@destiny:~$ cd archer; git checkout --track -b python
origin/archer-tromey-python
git: /usr/local/lib/libidn.so.11: no version information available
(required by /usr/lib/libcurl-gnutls.so.4)
Branch python set up to track remote branch archer-tromey-python from origin.
Switched to a new branch 'python'
yogesh@destiny:~/archer$

I think that libidn related messages are harmless. I've the blog
entries from "The Cliffs of Inanity" and I really want to try this gdb
scripting feature. What can I do to checkout the correct branch?

Any help is greatly appreciated.

On Thu, Mar 18, 2010 at 11:55 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Yogesh" == Yogesh Mundada <yogesh.mundada@gmail.com> writes:
>
> A few things that the other responses didn't cover...
>
> Yogesh> #!/home/yogesh/build/gdb/gdb -P
>
> We haven't submitted the -P patch yet.
>
> Yogesh> Then I got the source code from archer-tromey-python branch as
> Yogesh> mentioned in http://sourceware.org/gdb/wiki/PythonGdb. I compiled that
> Yogesh> source code but still it did not have any -P option for python
> Yogesh> scripting.
>
> Make sure you are on the right branch -- archer-tromey-python.
>
> Tom
>