rtel wrote on Thursday, December 23, 2004:
I’m not a GDB expert, but:
I know there is a way of getting a memory area to be displayed upon every break (or step, etc.). You could setup to display the i2c registers in the console everytime you break.
I think (from memory) this is done in two stages, first the command to display the memory, then the command to make this action occur on every break.
You can add these commands to the .gdbinit or gdb.ini file, so you don’t have to enter them each debug session.
If you cannot find info on this in the GDB manual then try the gnu.gcc.help news group. If they cannot help they will surely be able to tell you where you can get the information.