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

arm-none-eabi-gdb-py can not run #513

Closed
SourceLink opened this issue Mar 23, 2020 · 3 comments
Closed

arm-none-eabi-gdb-py can not run #513

SourceLink opened this issue Mar 23, 2020 · 3 comments
Labels

Comments

@SourceLink
Copy link

SourceLink commented Mar 23, 2020

Your issue will be closed unless you confirm the following (insert x in the brackets if done/agreed):

  • [x ] Did you use the latest version of GEF from master branch?
  • [x ] Did you read the documentation first?
  • [ x] Did you check closed issues?

Step 1: Describe your environment

Step 2: Describe your problem

➜  arm-none-eabi-gdb-py 
GNU gdb (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 8.3.0.20190709-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
  File "/home/sourcelink/.gdbinit-gef.py", line 908
    pattern_libc_ver = re.compile(rb"glibc (\d+)\.(\d+)")
                                                       ^
SyntaxError: invalid syntax

Type "apropos word" to search for commands related to "word".
File "/home/sourcelink/.gdbinit-gef.py", line 908
pattern_libc_ver = re.compile(rb"glibc (\d+).(\d+)")

is pyhton version problem?

@yehorcc
Copy link

yehorcc commented Mar 25, 2020

Same situation. I am on Debian Strech host, trying to use gef with arm-none-eabi-gdb-py or arm-none-eabi-gdb. Error is the same for both of them. Host gdb loads gef with no problems.
Output of arm-none-eabi-gdb 1.bin:

GNU gdb (7.12-6+9+b2) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
...
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
...
File "/home/yehor/gef/gef.py", line 908
pattern_libc_ver = re.compile(rb"glibc (\d+).(\d+)")
^
SyntaxError: invalid syntax
Reading symbols from 1.bin...done.

@SourceLink
Copy link
Author

SourceLink commented Mar 25, 2020

Same situation. I am on Debian Strech host, trying to use gef with arm-none-eabi-gdb-py or arm-none-eabi-gdb. Error is the same for both of them. Host gdb loads gef with no problems.
Output of arm-none-eabi-gdb 1.bin:

GNU gdb (7.12-6+9+b2) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
...
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
...
File "/home/yehor/gef/gef.py", line 908
pattern_libc_ver = re.compile(rb"glibc (\d+).(\d+)")
^
SyntaxError: invalid syntax
Reading symbols from 1.bin...done.

arm-none-eabi-gdb-py it only supports python2.7, so should modified gdbinit-gef.py:

https://github.com/hugsy/gef-legacy

@hugsy
Copy link
Owner

hugsy commented Mar 25, 2020

arm-none-eabi-gdb-py it only supports python2.7, so should modified gdbinit-gef.py:

https://github.com/hugsy/gef-legacy

Yeah, it looks like a Python2 related thing, and since last Jan. we don't support Python2 any longer I'm closing this issue.
Re-open with more information about your setup if you think it's a mistake.

@hugsy hugsy closed this as completed Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants