Giter Site home page Giter Site logo

Ubuntu 13.10 about peda HOT 7 CLOSED

longld avatar longld commented on August 29, 2024
Ubuntu 13.10

from peda.

Comments (7)

danghvu avatar danghvu commented on August 29, 2024

maybe comming from the python version.

so which python version are you using ?

from peda.

shoxxdj avatar shoxxdj commented on August 29, 2024

python -v : 2.7
But i also have python 3.3 by default on my Ubuntu

from peda.

danghvu avatar danghvu commented on August 29, 2024

Looks like gdb in ubuntu 13.10 is shipped with python 3.0, I don't think peda support python 3 yet. Just to confirm,
You can try this:

(gdb) python print __import__('sys').version_info

If it's 3 I think the only way is to install gdb from source and link with python2 or wait until we have it supported for python3

from peda.

 avatar commented on August 29, 2024

" (gdb) print import('sys').version_info
Aucune table de symboles n'est chargée. Utiliser la commande " file "
(gdb) python print import('sys').version_info
File "", line 1
print import('sys').version_info
^
SyntaxError: invalid syntax
Error while executing Python code.
"

So, impossible to kown the version x)

from peda.

danghvu avatar danghvu commented on August 29, 2024

... ahh it could be print()... python 3 changes to the new print sorry. But i'm pretty sure it's python 3 anyway

from peda.

longld avatar longld commented on August 29, 2024

gdb on ubuntu-13.10 is compiled with python3 caused this problem as peda is only working with python2. Sample on Ubuntu-13.10:
(gdb) python print(sys.version)
3.3.2+ (default, Oct 9 2013, 14:53:41)
[GCC 4.8.1]

Workaround: downgrade your gdb or recompile with python2

from peda.

longld avatar longld commented on August 29, 2024

Raise error for Python3: d0bd978

from peda.

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.