gdb: suppress runtime warning

This commit is contained in:
Doan Tran Cong Danh 2019-12-26 19:18:37 +07:00 committed by Helmut Pozimski
parent 483f5eddf8
commit 7cbdef8c63
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,20 @@
--- a/gdb/python/lib/gdb/command/prompt.py
+++ b/gdb/python/lib/gdb/command/prompt.py
@@ -45,7 +45,7 @@
self.hook_set = False
def get_show_string (self, pvalue):
- if self.value is not '':
+ if self.value is not None and self.value != '':
return "The extended prompt is: " + self.value
else:
return "The extended prompt is not set."
@@ -57,7 +57,7 @@
return ""
def before_prompt_hook(self, current):
- if self.value is not '':
+ if self.value is not None and self.value != '':
return gdb.prompt.substitute_prompt(self.value)
else:
return None

View File

@ -1,7 +1,7 @@
# Template file for 'gdb'
pkgname=gdb
version=8.3.1
revision=2
revision=3
build_style=gnu-configure
pycompile_dirs="/usr/share/gdb"
configure_args="--disable-werror --disable-nls --with-system-readline