import os
+import gdb
+
if "ENV_PREFIX" in os.environ:
gdb.execute("set sysroot %s" % os.environ["ENV_PREFIX"])
#
# 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
bp_modified_list = []
#
# 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
class Printer1:
# 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
+
bp_modified_list = []
# 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
+
# Breakpoint modification events will be recorded in this dictionary.
# The keys are the b/p numbers, and the values are the number of
# modification events seen.
from perftest import perftest
+import gdb
+
class BackTrace(perftest.TestCaseWithBasicMeasurements):
def __init__(self, depth):
from perftest import perftest
+import gdb
+
class Disassemble(perftest.TestCaseWithBasicMeasurements):
def __init__(self):
from perftest import perftest
+import gdb
+
class SingleStep(perftest.TestCaseWithBasicMeasurements):
def __init__(self, step):
from perftest import perftest
+import gdb
+
class SkipCommand(perftest.TestCaseWithBasicMeasurements):
def __init__(self, name, step):
from perftest import perftest
+import gdb
+
class SkipPrologue(perftest.TestCaseWithBasicMeasurements):
def __init__(self, count):
from perftest import measure, perftest
+import gdb
+
class SolibLoadUnload1(perftest.TestCaseWithBasicMeasurements):
def __init__(self, solib_count, measure_load):
from perftest import perftest
+import gdb
+
class TemplateBreakpoints(perftest.TestCaseWithBasicMeasurements):
def __init__(self):
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import gdb
+
+
class MytypePrinter:
"""pretty print my type"""
import re
+import gdb
+
print("Entering f1.o auto-load script")
print("Current objfile is: %s" % gdb.current_objfile().filename)
# This script is auto-loaded when the py-auto-load-chaining-f2.o
# object is loaded.
+import gdb
+
print("Entering f2.o auto-load script")
print("Current objfile is: %s" % gdb.current_objfile().filename)
import sys
+import gdb
+
# Avoid generating
# src/gdb/testsuite/gdb.python/__pycache__/gdb_leak_detector.cpython-<n>.pyc.
sys.dont_write_bytecode = True
import pathlib
+import gdb
+
class Mapping:
def __init__(self, mapping, region):
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import gdb
+
+
class MyFinishBreakpoint(gdb.FinishBreakpoint):
def stop(self):
print("stopped at MyFinishBreakpoint")
# Breakpoints.
+import gdb
+
+
class MyFinishBreakpoint(gdb.FinishBreakpoint):
def __init__(self, val, frame):
gdb.FinishBreakpoint.__init__(self, frame)
# This file is part of the GDB testsuite. It tests python Finish
# Breakpoints.
+import gdb
+
class ExceptionFinishBreakpoint(gdb.FinishBreakpoint):
def __init__(self, frame):
import sys
+import gdb
+
# Avoid generating
# src/gdb/testsuite/gdb.python/__pycache__/gdb_leak_detector.cpython-<n>.pyc.
sys.dont_write_bytecode = True
import re
+import gdb
+
class pp_ss:
def __init__(self, val):
import sys
+import gdb
+
# Avoid generating
# src/gdb/testsuite/gdb.python/__pycache__/gdb_leak_detector.cpython-<n>.pyc.
sys.dont_write_bytecode = True
import re
+import gdb
+
class pp_ss:
def __init__(self, val):
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import gdb
+
+
class MyBreakpoint(gdb.Breakpoint):
def __init__(self):
super().__init__("i", gdb.BP_WATCHPOINT)
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import gdb
+
+
class TestWindow:
def __init__(self, tui_win, msg):
self.msg = msg
import os
import stat
+import gdb
+
# Hex encode INPUT_STRING in the same way that GDB does. Each
# character in INPUT_STRING is expanded to its two digit hex