Remove a static buffer from cp-name-parser.y
authorTom Tromey <tom@tromey.com>
Thu, 24 May 2018 03:05:52 +0000 (21:05 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 1 Jun 2018 16:46:47 +0000 (10:46 -0600)
commit3513a6bb20ef286e303367d4ef4963b5dab877cb
tree7bcda23d6421fa378b8ff0fdd657467a06d649a0
parente9cb46ab59ff2ea94a7fd9fa857a084d3a9b8b39
Remove a static buffer from cp-name-parser.y

This removes a static buffer from cp-name-parser.y by replacing the
fixed-sized buffer with a std::string out parameter.

gdb/ChangeLog
2018-06-01  Tom Tromey  <tom@tromey.com>

* python/py-type.c (typy_legacy_template_argument): Update.
* cp-support.h (cp_demangled_name_to_comp): Update.
* cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
parameter to be a "std::string *".
(main): Update.
gdb/ChangeLog
gdb/cp-name-parser.y
gdb/cp-support.h
gdb/python/py-type.c