aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/lib
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-11-19 07:34:26 -0700
committerTom Tromey <tromey@adacore.com>2024-12-09 14:17:23 -0700
commitc286bfe1e5c252689126cb2f45677bd36a2fdd56 (patch)
treee74594d70e93b7a457b0b0b1708fb7af968bb414 /gdb/python/lib
parent2134b0b4a5ff493878386183dfd8a735b5334ad7 (diff)
downloadbinutils-c286bfe1e5c252689126cb2f45677bd36a2fdd56.zip
binutils-c286bfe1e5c252689126cb2f45677bd36a2fdd56.tar.gz
binutils-c286bfe1e5c252689126cb2f45677bd36a2fdd56.tar.bz2
Clean up 0-length handling in gdbpy_create_lazy_string_object
gdbpy_create_lazy_string_object will throw an exception if you pass it a NULL pointer without also setting length=0 -- the default, length==-1, will fail. This seems bizarre. Furthermore, it doesn't make sense to do this check for array types, as an array can have a zero length. This patch cleans up the check and makes it specific to TYPE_CODE_PTR.
Diffstat (limited to 'gdb/python/lib')
0 files changed, 0 insertions, 0 deletions