Skip to content

Print string with mixed ascii and hex characters.

Notifications You must be signed in to change notification settings

hq6/GdbAsciiHexPrint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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