Git Product home page Git Product logo

Comments (8)

TehMillhouse avatar TehMillhouse commented on May 4, 2024

As a first piece of information: Though you've correctly installed the pyringe package (i.e. you've installed it as a python2.7 package), as the README states, this isn't the only thing that must be in python2.

I don't have a Ubuntu VM handy right now, but from looking at the current Ubuntu Trusty gdb 7.7.1 package I can tell it depends on libpython3.4, which means point 3 of that listing in the README is the pain point for you.

To get pyringe to work on that Ubuntu release, you'll need to find a version of gdb that still uses libpython2.x.

from pyringe.

sdharav avatar sdharav commented on May 4, 2024

if I dont the version of the gdb which uses libpython2.x then should I need to use python3.x ?

from pyringe.

TehMillhouse avatar TehMillhouse commented on May 4, 2024

You can't use python3.x with pyringe either, since no part of it is written with python3 support in mind. Neither the part running in the local python process, nor the stubs running within gdb, nor the debugging library (libpython.py from the cpython project) in the version included with pyringe.

It's a shame, but it was only ever intended to debug python2 programs. If you can't find a suitable build of gdb, you're out of luck and can't use pyringe. :(

from pyringe.

sdharav avatar sdharav commented on May 4, 2024

is there any way to find a suitable gdb for that ??

from pyringe.

TehMillhouse avatar TehMillhouse commented on May 4, 2024

You'll have to do that yourself. While the Ubuntu package listing usually lists dependencies for each package (you'll need one that depends on libpython2), I'm not sure whether they even list old versions of packages.

I found this listing by googling, but I don't know which one's the latest that still links to libpython2. Godspeed.

from pyringe.

sdharav avatar sdharav commented on May 4, 2024

Thank you, let me try it.

from pyringe.

Mofef avatar Mofef commented on May 4, 2024

In case someone runs into this nowadays:

Debian has a gdb-python2 package that is just gdb linked against python 2.7. On Ubuntu 16.04 I could install the jesse-backport version with dpkg and resolve dependencies afterwards by doing apt-get install -f.
It might as well work on other Ubuntu versions. Otherwise, try a different version or install dependencies from the same debian source and try again apt-get install -f until it can resolve the rest for you.

Good luck!

from pyringe.

nzjrs avatar nzjrs commented on May 4, 2024

If anyone finds this bug, and you want this to work with Python 2.7.15 then you should replace libpython.py in the source tree with the copy from https://github.com/python/cpython/blob/2.7/Tools/gdb/libpython.py

(tested Ubuntu 18.04.3)

from pyringe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.