mirror of
https://github.com/hugsy/gef.git
synced 2026-10-12 02:15:57 +00:00
## 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
20 lines
534 B
Python
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)
|