Keyword: hang, variable
After starting up and connecting with GDB, whenever I move the mouse over a variable or use View -> Local Variables to show the contents of an 8-bit type variable, the debugger hangs.
It is only the 8-bit pointer that does not work. Watching a 16-bit or 32-bit pointer variable works fine in GDB.
This is a problem with the GNU debgger (GDB) when watching a 8-bit pointer variable.
There are three things you can do to work around this problem:
- Define the pointer as a global variable (this should be the easiest work-around).
- If the pointer has to be local, you can use putnum (&pointer) to find out the address it is stored at and use XMD to read/write the memory.
- Use double pointers (one 32-bit and one 8-bit) to point to the same locations and debug using the 32-bit pointer.