When running stm8-gdb on Ubuntu 20.04 LTS with python 3.8.10, the following warnings are emitted:
/usr/local/share/gdb/python/gdb/command/prompt.py:48: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if self.value is not '':
/usr/local/share/gdb/python/gdb/command/prompt.py:60: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if self.value is not '':
I am a new user and not a python programmer; I am not entirely sure if these warnings will adversely affect operation of the tools.
The default gdb that came with my distro does it this way:
if self.value:
So I just copied the default one into the stm8-gdb heirarchy - I suppose this is OK. Am I right?
Perhaps the patches package should include this as well.
Hello,
you are probably experiencing the python insanity of breaking old code. Try running with python 2 instead or if you don't need python configure gdb with "--with-python=no"
Last edit: akre 2022-04-30
@akre:
Yeah I suppose but I found it just as easy to fix prompt.py to get rid of the error and move on.