Commit 21289cd1 authored by Rick Kimball's avatar Rick Kimball Committed by Peter Stuge
Browse files

lmicdiusb: Print GDB payload in hexadecimal and unprintable bytes as '.'

parent e789ea8c
......@@ -112,7 +112,7 @@ gdb_statemachine(GDBCTX *pGdbCtx, unsigned char *pBuf, unsigned int len,
TRACE(0, "GDB_PAYLOAD: '%c'\n", *pBuf);
TRACE(0, "GDB_PAYLOAD: '%c' 0x%02x\n", isprint(*pBuf) ? *pBuf : '.', *pBuf);
pGdbCtx->pResp[pGdbCtx->iRd++] = *pBuf;
if (*pBuf == '#')
......@@ -43,6 +43,7 @@
#include <assert.h>
#include <unistd.h>
#include <time.h>
#include <ctype.h>
/* LIBUSB_CALL was introduced in libusb-1.0.9, which also fixes many bugs.
* It's strongly recommended to not use any older version, but to be more
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment