I am debugging a problem in a program and have read the GDB tutorials available here. Thanks everyone for your work putting those together! They help a lot!
Quick question though....is there a command in GDB that allows me to view, in hex, a group of bytes or words - say 256 bytes worth... something similar to the display command that updates with each step?
Or do I need to use some other tool to examine memory in hexidecimal while running GDB, and if so, what tool would work?
x /20xb expr
This gives you the hex values for an arbitrary range of bytes. it also works with /xh /xw /xg for other data sizes. I.e.:
Perfect! Exactly what I was looking for!