Skip to content

Print string with mixed ascii and hex characters.

Notifications You must be signed in to change notification settings

lmduean/GdbAsciiHexPrint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ascii Print Command

This gdb extension allows mixed ascii-hex printing of strings, as described in this Stackoverflow question.

Suppose one had the following buffer in a C program.

char* buf = "Hello World \x1c"

One can source the file AsciiPrintCommand.py in their $HOME/.gdb_init file, and then invoke the following command.

ascii-print buf
"Hello World \x1c"

About

Print string with mixed ascii and hex characters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.6%
  • Shell 11.1%
  • C 4.3%
  • GDB 2.9%
  • Makefile 1.1%