Skip to content

Instantly share code, notes, and snippets.

@elazarl
Created July 5, 2014 20:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elazarl/f99c5b52b3058d221fb9 to your computer and use it in GitHub Desktop.
Save elazarl/f99c5b52b3058d221fb9 to your computer and use it in GitHub Desktop.
hexdump to dump memory in gdb's format
alias gdbdump='hexdump -e '\''"0x%04_ax: " 8/1 "0x%02x\t" "\n"'\'''
# hexdump format is: '"0x%04_ax: " 8/1 "0x%02x\t" "\n"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment