Comments (8)
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.
if I dont the version of the gdb which uses libpython2.x then should I need to use python3.x ?
from pyringe.
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.
is there any way to find a suitable gdb for that ??
from pyringe.
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.
Thank you, let me try it.
from pyringe.
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.
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)
- gdb: unrecognised option '--nh' HOT 6
- attach(): AttributeError: 'module' object has no attribute 'poll' HOT 6
- Python 3 friendly? HOT 3
- Immediate SyntaxError on attach HOT 9
- Pyringe falls over if something (GdbProxy?) reports a non-numeric version HOT 5
- Debug Symbols on Ubuntu HOT 7
- No way to set log level from debugger repl HOT 1
- Failed to automatically load symbol file HOT 1
- attach failed HOT 1
- WindowsError: [Error 2] The system cannot find the file specified HOT 3
- attach failed with TimeoutError exception HOT 1
- ModuleNotFoundError: No module named 'inferior' HOT 2
- Git tags missing?
- Fix simple typo: currenly -> currently
- Arch Linux not supported HOT 3
- Fall back to signal injection if symbol info is partial.
- payload directory should be in setup.py as data files, not submodule
- Support for debugging other versions of cpython
- Investigate PyFrame_FastToLocals
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyringe.