]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite: remove unused imports in Python files
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 29 Oct 2025 17:49:16 +0000 (13:49 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 30 Oct 2025 16:15:13 +0000 (12:15 -0400)
Remove the imports reported as unused by flake8.

Change-Id: I6e657de3dea8db18a99e711e594cb92f98e1cebb
Approved-By: Tom Tromey <tom@tromey.com>
19 files changed:
gdb/testsuite/gdb.dap/stack-format.py
gdb/testsuite/gdb.perf/gmonster-null-lookup.py
gdb/testsuite/gdb.perf/gmonster-pervasive-typedef.py
gdb/testsuite/gdb.perf/gmonster-print-cerr.py
gdb/testsuite/gdb.perf/gmonster-ptype-string.py
gdb/testsuite/gdb.perf/gmonster-runto-main.py
gdb/testsuite/gdb.perf/gmonster-select-file.py
gdb/testsuite/gdb.perf/solib.py
gdb/testsuite/gdb.python/py-bad-printers.py
gdb/testsuite/gdb.python/py-framefilter-addr.py
gdb/testsuite/gdb.python/py-framefilter-gdb.py
gdb/testsuite/gdb.python/py-framefilter-invalidarg-gdb.py
gdb/testsuite/gdb.python/py-framefilter-invalidarg.py
gdb/testsuite/gdb.python/py-framefilter.py
gdb/testsuite/gdb.python/py-mi-var-info-path-expression.py
gdb/testsuite/gdb.python/py-pp-maint.py
gdb/testsuite/gdb.python/py-pp-registration.py
gdb/testsuite/gdb.python/py-unwind-maint.py
gdb/testsuite/gdb.rust/pp.py

index a20f689d8c782572a404c38a2e64b6ee962f749a..d9ccc56d162e396356ee886a55d628da68b994c5 100644 (file)
@@ -14,8 +14,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-import itertools
-
 import gdb
 from gdb.FrameDecorator import DAPFrameDecorator
 
index a4dafaa01c361a8cf6613624fb9772c90ed3f9b0..825632329d48c6090caf95e0583edf3f0a805410 100644 (file)
@@ -17,7 +17,7 @@
 # Efficient handling of this case is important, and not just for typos.
 # Sometimes the debug info for the needed object isn't present.
 
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
 
 
 class NullLookup(perftest.TestCaseWithBasicMeasurements):
index dc1fef5a7d688c13bab4653c07b8aa3c55310e35..095e4d1281c57bb37c48cdc8bfa9d3789be3eb32 100644 (file)
@@ -17,7 +17,7 @@
 # typedef used pervasively.  This exercises the perf regression introduced by
 # the original patch to pr 16253.
 
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
 
 
 class PervasiveTypedef(perftest.TestCaseWithBasicMeasurements):
index be4109c744cf5d28ad92a07e16bdc57b6d83b0ed..0f201b3e27e30ebbe0e8cf89db6de18e963868e7 100644 (file)
@@ -25,7 +25,7 @@
 # is that here we do not pre-expand the symtab: we don't want include
 # GDB's slowness in searching expanded symtabs first to color these results.
 
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
 
 
 class PrintCerr(perftest.TestCaseWithBasicMeasurements):
index d4077b5a01775a225fda2cce1b99de2fbed326f7..3397b123a1e09dada630e53aee4a5fb5f5360304 100644 (file)
@@ -19,7 +19,7 @@
 # these before it searches the index (there is work-in-progress to fix this),
 # this test helps measure the issue.
 
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
 
 
 class GmonsterPtypeString(perftest.TestCaseWithBasicMeasurements):
index 0c1349b57828b07ca6f9539d0cf60eb3e902af79..097c32a1bdd23967b9eab3de47b00776fe4e45bc 100644 (file)
@@ -15,7 +15,7 @@
 
 # Measure performance of running to main.
 
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
 
 
 class GmonsterRuntoMain(perftest.TestCaseWithBasicMeasurements):
index a03c2ecd2202adc7f0b345f99049685a636e2c22..05db3624dac0d1255dedefb6bf7067124db42ec3 100644 (file)
@@ -15,7 +15,7 @@
 
 # Measure performance of selecting a file to debug.
 
-from perftest import measure, perftest, utils
+from perftest import perftest, utils
 
 
 class GmonsterSelectFile(perftest.TestCaseWithBasicMeasurements):
index d7266bf55bfa8dc03902a32f51ad496064ecc46b..c440635147b3d6892a71f5fa38f54f5cb7c46c47 100644 (file)
@@ -16,7 +16,7 @@
 # This test case is to test the speed of GDB when it is handling the
 # shared libraries of inferior are loaded and unloaded.
 
-from perftest import measure, perftest
+from perftest import perftest
 
 import gdb
 
index c93923cb57cac65856de89df08d2401c965a30c8..23973ebcb4dda4166bc15ef46621c93094674385 100644 (file)
@@ -18,7 +18,6 @@
 
 # Test a printer with a bad children iterator.
 
-import re
 
 import gdb.printing
 
index 513bf6f21d4210dca81f7b2c27fe795ca6882ad9..336571a388d01195c5b5097b2368d52f0d1a92b3 100644 (file)
@@ -13,7 +13,6 @@
 # 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 copy
 import itertools
 
 import gdb
index a725dce357dae472ae103955d5dac464919c1c19..969371cf009f299b2c2e6f27634e7ff286bf19b0 100644 (file)
 # 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 itertools
-
 # This file is part of the GDB testsuite.  It tests Python-based
 # frame-filters.
 import gdb
-from gdb.FrameDecorator import FrameDecorator
 
 
 class FrameObjFile:
index 51922fc96d25553a50b08315788dd3ce097eb9e2..96c97aab1dc20f831f850480a820a38bd7ba20f3 100644 (file)
 # 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 itertools
 
 # This file is part of the GDB testsuite.  It tests Python-based
 # frame-filters.
 import gdb
-from gdb.FrameDecorator import FrameDecorator
 
 
 class FrameObjFile:
index b262968aec8d314f34eb4479ef801f271c42eeb3..a8e52e040512aaa12a5c70763fc9599e325e1d20 100644 (file)
@@ -13,7 +13,6 @@
 # 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 copy
 import itertools
 
 # This file is part of the GDB testsuite.  It tests Python-based
index 5c3790d33f29dbe635e47abcba713a257e3b71a4..1fc8025ee346d86b212c79fba0530605a6acc3c5 100644 (file)
@@ -13,7 +13,6 @@
 # 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 copy
 import itertools
 
 # This file is part of the GDB testsuite.  It tests Python-based
index e7638dba35405fcda89cd9282b82a9050a1eddde..46bbb747262796c4a4d10e9636e386036799b848 100644 (file)
@@ -13,7 +13,6 @@
 # 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 sys
 
 import gdb
 import gdb.types
index 8b96cc00040d56e9a26895b90d5d284af6eea8fe..a7e0815897c5905b35159c18f7576ea9e248dc9d 100644 (file)
@@ -16,8 +16,6 @@
 # This file is part of the GDB testsuite.  It tests python pretty
 # printers.
 
-import re
-
 import gdb.printing
 import gdb.types
 
index e9f3dfb1ea8c91e31dd61124b86a5e500ac4a896..4f39e426507f53f2cda6d1593aaf06620b1b8b3f 100644 (file)
@@ -16,8 +16,6 @@
 # This file is part of the GDB testsuite.  It tests python pretty
 # printer registration.
 
-import re
-
 import gdb.printing
 import gdb.types
 
index 4a109d5e19d652b7571c3a6f34a21b9ef4fd8701..b6b621b884cdc0d8dbf65ccbbb1a2214c69b64aa 100644 (file)
 
 # This file is part of the GDB testsuite.  It tests python unwinders.
 
-import re
-
 import gdb.types
-from gdb.unwinder import Unwinder, register_unwinder
+from gdb.unwinder import Unwinder
 
 
 class TestGlobalUnwinder(Unwinder):
index e29240dd156c9bd20aad86e2f33593dc887fde19..aac1b48a1bb8b5b94b5f1022289f46f00b12eb81 100644 (file)
@@ -16,7 +16,6 @@
 # This file is part of the GDB testsuite.  It tests python pretty
 # printers.
 
-import re
 
 import gdb