Closed dhe090 closed 8 months ago
gdb -nx -ex 'pi print(sys.version)' -ex quit GNU gdb (GDB) 8.2 3.6.10 (default, Dec 19 2019, 23:04:32) [GCC 5.4.0 20160609]
x86 ubuntu 16.0.4
gdb -q Traceback (most recent call last): File "~/.gef-.py", line 86, in <module> ImportError: cannot import name 'Literal' <pi import urllib.request as u, tempfile as t; g=t.NamedTemporaryFile(suffix='-gef.py'); open(g.name, 'wb+').write(u.urlopen('https://tinyurl.com/gef-main').read()); gdb.execute('source %s' % g.name) 415592 File "<fstring>", line 1 (arena_addr=) ^ SyntaxError: invalid syntax
I was able to install inside gdb last week, but now neither inside gdb nor outside gdb installations are working. What could be the reason?
No
Use this field for a minimal code to compile and spot the issue:
// compile with gcc -fPIE -pic -o my_issue.out my_issue.c int main(){ return 0; }
You can also provide a Dockerfile if you prefer
You'll need to either update gdb or downgrade gef. The compatibility matrix needs to be updated. You should be able to go to a release from mid-2022 at least.
Should be fixed by #1061 (at least on 18.04)
GEF+GDB version
Operating System
x86 ubuntu 16.0.4
Describe the issue you encountered
I was able to install inside gdb last week, but now neither inside gdb nor outside gdb installations are working. What could be the reason?
Do you read the docs and look at previously closed issues/PRs for similar cases?
No
Architecture impacted
Minimalist test case
Use this field for a minimal code to compile and spot the issue:
You can also provide a Dockerfile if you prefer
Additional context?