Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax errors when sourcing peda.py #147

Open
CaptainTux opened this issue Dec 6, 2019 · 4 comments
Open

syntax errors when sourcing peda.py #147

CaptainTux opened this issue Dec 6, 2019 · 4 comments

Comments

@CaptainTux
Copy link

CaptainTux commented Dec 6, 2019

So recently, when I do source peda.py in gdb, I get some syntax warnings
image
It did never happen to me until a new weeks ago.
It probably started after I did some updates, so maybe some syntax checks in the new python versions.
My python versions are

$ python3 -V
  Python 3.8.0
$ python2 -V
  Python 2.7.17
$ python -V
  Python 3.8.0

It is not a major issue, but maybe this should be fixed, as I do not see any specific python version requirements for peda.

@Emilio66
Copy link

Emilio66 commented Jan 3, 2020

Same issue.
source is a bash command for importing Bash script, how could that be legally used to 'source' a Python script?
PS: my GDB version is v8.3

@growlnx
Copy link

growlnx commented Jan 7, 2020

So recently, when I do source peda.py in gdb, I get some syntax warnings
image
It did never happen to me until a new weeks ago.
It probably started after I did some updates, so maybe some syntax checks in the new python versions.
My python versions are

$ python3 -V
  Python 3.8.0
$ python2 -V
  Python 2.7.17
$ python -V
  Python 3.8.0

It is not a major issue, but maybe this should be fixed, as I do not see any specific python version requirements for peda.

The same thing happened here.
I replaced "is" with "==" on these lines and the warning apparently disappeared.

@growlnx
Copy link

growlnx commented Jan 7, 2020

Same issue.
source is a bash command for importing Bash script, how could that be legally used to 'source' a Python script?
PS: my GDB version is v8.3

https://sourceware.org/gdb/current/onlinedocs/gdb/Extending-GDB.html#Extending-GDB

@CaptainTux
Copy link
Author

CaptainTux commented Jan 7, 2020

apparently there are already two pull requests for this issue
#145
#149
god what have I done 👀
I didn't mean to close this :/
although it could probably be closed if someone merged that pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants