You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/docs/commands/misc/cymbol.md

1.5 KiB

cymbol

(only in GDB)

usage: cymbol [-h] {add,remove,edit,load,show,file,show-all} ...

Manage custom C structures in pwndbg. Supports project-specific auto-loading from .gdbinit.

Positional arguments

Positional Argument Help
subcommand Available subcommands

Optional arguments

Short Long Help
-h --help show this help message and exit

Notes

The cymbol command loads custom C structs and symbols into the debugger using GCC under the hood.

Usage Example: cymbol file --force ./structs.h

--force: Use this flag to force symbol reloading, even if symbols with the same name already exist.

Warning: If a loaded structure defines a symbol that already exists, the debugger may prefer the original symbol or behave unexpectedly. Its recommended to use unique struct names to avoid symbol conflicts.

Tip: You can add this command to your .gdbinit file for automatic loading: cymbol file --force ./path/to/structs.h