aboutsummaryrefslogtreecommitdiff
path: root/include/symcat.h
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-09-26 15:51:27 +0200
committerTom de Vries <tdevries@suse.de>2023-09-26 15:51:27 +0200
commitfc21e0f029c51687c2b4ca686d0b773ad5efeff4 (patch)
tree948fcfcc2008492779fab21734c34ac261dfe811 /include/symcat.h
parentd5fa6e8c6cb82b03f20dd521f70dcc7fefe573dc (diff)
downloadgdb-fc21e0f029c51687c2b4ca686d0b773ad5efeff4.zip
gdb-fc21e0f029c51687c2b4ca686d0b773ad5efeff4.tar.gz
gdb-fc21e0f029c51687c2b4ca686d0b773ad5efeff4.tar.bz2
[gdb/dap] Fix dap for python < 3.8
With any gdb.dap test and python 3.6 I run into: ... Error occurred in Python: 'code' object has no attribute 'co_posonlyargcount' ERROR: eof reading json header ... The attribute is not supported before python 3.8, which introduced the "Positional−only Parameters" concept. Fix this by using try/except AttributeError. Tested on x86_64-linux: - openSUSE Leap 15.4 with python 3.6, and - openSUSE Tumbleweed with python 3.11.5. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'include/symcat.h')
0 files changed, 0 insertions, 0 deletions