Pointer Values - Debugging with GDB
Description: Debugging with GDB

Next: Memory Transfer, Previous: Integral Datatypes, Up: Protocol-specific Representation of Datatypes

##### Pointer Values

Pointers to target data are transmitted as they are. An exception is made for pointers to buffers for which the length isn't transmitted as part of the function call, namely strings. Strings are transmitted as a pointer/length pair, both as hex values, e.g.

         1aaf/12

which is a pointer to data of length 18 bytes at position 0x1aaf. The length is defined as the full string length in bytes, including the trailing null byte. For example, the string `"hello world"` at address 0x123456 is transmitted as

         123456/d