From: Theodore A. R. <tr...@op...> - 2003-06-30 22:53:30
|
On Mon, 30 Jun 2003, Howard Weiss wrote: > How do I examine the AVR Registers (other than R1-R31). Are these > located at addresses 0x80<xxxx> where <xxxx> is the register offset > e.g. does SPDR ($2F) appear at 0x80002f? That will work. There is also partial support for 'info io_registers'. We need to do some more work at that still. > > A suggestion would be to defined symbols which represent the > different registers. In theory, this could be done on the gdb side of things, but would be pretty ugly since gdb really doesn't know anything about specific devices. Not to mention that it would be a major maintenance headache with all the various devices. Hmmm, I just thought of a simple ugly hack to do this. You could define a user command in your .gdbinit to print out the io register by name instead of having to remember the address. For example: define SPDR x/b 0x80002f end Ted Roth |