mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
gdb, testsuite, python: Add missing imports.
Removing the pretty printer (bound_registers.py) in the next commit leads to failures due to a missing import of 'gdb.printing': "AttributeError: module 'gdb' has no attribute 'printing'". Add this import to each file requiring it, as it's not imported by the pretty-printer anymore. Approved-By: Andrew Burgess <aburgess@redhat.com>
This commit is contained in:
@@ -18,6 +18,7 @@ from collections import defaultdict
|
||||
from contextlib import contextmanager
|
||||
|
||||
import gdb
|
||||
import gdb.printing
|
||||
|
||||
from .server import client_bool_capability
|
||||
from .startup import DAPException, in_gdb_thread
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import gdb.printing
|
||||
|
||||
class PpIntPrinter(object):
|
||||
def __init__(self, val):
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
from time import asctime, gmtime
|
||||
|
||||
import gdb # silence pyflakes
|
||||
|
||||
import gdb.printing
|
||||
|
||||
class TimePrinter:
|
||||
def __init__(self, val):
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
# This file is part of the GDB testsuite.
|
||||
# It tests Python-based pretty-printing of stubs.
|
||||
|
||||
import gdb.printing
|
||||
|
||||
class SPrinter:
|
||||
def __init__(self, val):
|
||||
|
||||
Reference in New Issue
Block a user