package/gdb: fix gdb python support with python 3.8
authorRomain Naour <romain.naour@gmail.com>
Tue, 23 Jun 2020 13:16:49 +0000 (15:16 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 23 Jun 2020 20:00:28 +0000 (22:00 +0200)
commit7a0fa5b19b11865f2123a47903be9fabab07d988
tree9ece455e44b71e10a41901c97ab823cc540d9fdd
parent8045b467349f20454316a17a7f884348fadc4fbd
package/gdb: fix gdb python support with python 3.8

CPython 3.8 has added a new Syntax Warning that print
a waring at runtime while unsing gdb python support.

$ gdb -ex "python import os"
/usr/share/gdb/python/gdb/command/prompt.py:48: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if self.value is not '':
/usr/share/gdb/python/gdb/command/prompt.py:60: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if self.value is not '':

Backport an upstream patch for this:
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=b6484282f85bf7f11451b2441599c241d302ad9d

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/gdb/8.1.1/0008-Fix-incorrect-use-of-is-operator-for-comparison-in-p.patch [new file with mode: 0644]
package/gdb/8.2.1/0006-Fix-incorrect-use-of-is-operator-for-comparison-in-p.patch [new file with mode: 0644]
package/gdb/8.3.1/0006-Fix-incorrect-use-of-is-operator-for-comparison-in-p.patch [new file with mode: 0644]