[Bug] File "~/.gef-2025.01.py", line 11490 match self: ^ SyntaxError: invalid syntax
not-a-bug
### GEF+GDB version
```shell
root@:~# gdb -nx -ex 'pi print(sys.version)' -ex quit
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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".
3.9.2 (default, Mar 20 2025, 02:07:39)
[GCC 10.2.1 20210110]
```
### Operating System
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11 Codename: bullseye
### Describe the issue you encountered
i suggest i have 3.9 python , that is why i got error?
it happens in docker image
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
any advice?
### Do you read the docs and look at previously closed issues/PRs for similar cases?
No
### Architecture impacted
- [ ] X86
- [ ] X64
- [ ] ARM
- [ ] ARM64
- [ ] MIPS
- [ ] MIPS64
- [ ] PPC
- [ ] PPC64
- [ ] RISCV
### Describe your issue. Without a proper reproduction step-by-step, your issue will be ignored.
Provide a step-by-step to reproduce your issue.
### Minimalist test case
```
root@:~# gdb
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 "~/.gef-2025.01.py", line 11490
match self:
^
SyntaxError: invalid syntax
```
You can also provide a Dockerfile if you prefer
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
### Additional context?
- Screenshots
- Callstack
- Coredumps
- If possible and useful, please upload the binary
关闭于 2025-09-14 4 条评论