Files
gef/tests/commands/name_break.py
T
crazy hugsy 90cced847b [Maintenance] Remove unmaintained commands, tests, and documentation, and moved to Ruff (#1222)
## Description

This PR  
 - removes unmaintained `shellcode` commands, tests, and documentation
- (finally) switches to Ruff instead of Pylint (still handled by
`pre-commit`)
 - fixes a few ruff/ty-found issues
2026-05-02 12:15:26 -07:00

20 lines
534 B
Python

"""
`name-break` command test module
"""
from tests.base import RemoteGefUnitTestGeneric
class NameBreakCommand(RemoteGefUnitTestGeneric):
"""`name-break` command test module"""
def test_cmd_name_break(self):
gdb = self._gdb
gdb.execute("start")
res = gdb.execute("nb foobar *main+10", to_string=True)
res = gdb.execute("nb foobar *0xcafebabe", to_string=True)
self.assertIn("at 0xcafebabe", res)
res = gdb.execute("start")
gdb.execute("nb foobar", to_string=True)