We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 25434

9.1i EDK - GNU Debugger (GDB) hangs when watching a 8-bit pointer


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.

AR# 25434
Date Created 07/06/2007
Last Updated 12/15/2012
Status Active
Type General Article