Hi all. I am a GDB novice
who may have found a small bug in GDB.
The bug involves code in the source file named “remote.c”, specifically
in the two functions named fromhex() and remote_fetch_registers(). It seems from the code in fromhex() that
GDB supports the transmission of remote memory and register value ASCII strings
containing either upper- or lower-case hexadecimal digits. The code in remote_fetch_registers(),
however, only accepts a lower-case hexadecimal digit when it checks the start
of the response packet for validity.
In my situation, I had been sending upper-case hexadecimal digits
without any problems until the first time that the string started with a ‘B’,
at which point GDB hangs because remote_fetch_registers() waits forever for a “valid”
packet!
Vickie