Skip to content

Add support for gef-remote in gdb.attach #2264

@ValekoZ

Description

@ValekoZ

It would be a nice feature to be able to use gef-remote when using gef instead of the traditional target remote used in gdb.attach and maybe target extended-remote used here for instance.

Maybe something like the following could do the trick ?

gefpi
>>> if 'gef' in locals():
...     gdb.execute(f'gef-remote {host} {port}')
... else:
...     gdb.execute(f'target remote {host}:{port}')

This could also be a nice feature to add better support for qemu debugging ? I didn't really tested how it works atm but I guess using the qemu-mode should improve it for gef users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions