Introduce make_unique_xstrndup
authorTom Tromey <tom@tromey.com>
Fri, 4 Jun 2021 22:00:33 +0000 (16:00 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 5 Nov 2021 19:58:48 +0000 (13:58 -0600)
commitbe77dd73c769b3e7ac62bd4c0b98242b62d080e0
tree42467dc2ff4b18810660886835c51503b6ffacb7
parent8a89ddbda2ecb41be0f12142e5d4b95c7bd5a138
Introduce make_unique_xstrndup

This adds a new make_unique_xstrndup function, which is the "n"
analogue of make_unique_xstrdup.  It also updates a couple existing
places to use this function.
gdb/cli/cli-setshow.c
gdb/parse.c
gdbsupport/gdb_unique_ptr.h