Strings
Functionality for resolving ASCII printable strings within the debuggee's address space.
length = 15
module-attribute
¶
get(address, maxlen=None, maxread=None)
¶
Returns a printable C-string from address.
Returns None
if string contains non-printable chars or if the maxlen
length data does not end up with a null byte.
update_length()
¶
Unfortunately there's not a better way to get at this info.
gdb.execute('show print elements', from_tty=False, to_string=True) 'Limit on string chars or array elements to print is 21.\n'