gdb: suppress runtime warning
This commit is contained in:
parent
483f5eddf8
commit
7cbdef8c63
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue