From 469585a326f0782b3e34d4ee3b56df8565f366e5 Mon Sep 17 00:00:00 2001 From: jboone Date: Mon, 23 Jul 2012 21:12:09 -0700 Subject: [PATCH] Added notes on saving an array from the target to a file. --- LPC43xx-Debugging.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/LPC43xx-Debugging.md b/LPC43xx-Debugging.md index f457e8a..68902d4 100644 --- a/LPC43xx-Debugging.md +++ b/LPC43xx-Debugging.md @@ -117,3 +117,12 @@ Soon, I should dump this stuff into a .gdbinit file... break main # Set a breakpoint. continue # Run to breakpoint. continue # To continue from the breakpoint. + +More GDB tips for the GDB-unfamiliar: + + # Write the variable "buffer" (an array) to file "buffer.u8". + dump binary value buffer.u8 buffer + + # Display the first 32 values in buffer whenever you halt + # execution. + display/32xh buffer