diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-23 21:05:52 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-06-01 10:46:47 -0600 |
commit | 3513a6bb20ef286e303367d4ef4963b5dab877cb (patch) | |
tree | 7bcda23d6421fa378b8ff0fdd657467a06d649a0 /gdb/cp-support.h | |
parent | e9cb46ab59ff2ea94a7fd9fa857a084d3a9b8b39 (diff) | |
download | gdb-3513a6bb20ef286e303367d4ef4963b5dab877cb.zip gdb-3513a6bb20ef286e303367d4ef4963b5dab877cb.tar.gz gdb-3513a6bb20ef286e303367d4ef4963b5dab877cb.tar.bz2 |
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.
Diffstat (limited to 'gdb/cp-support.h')
-rw-r--r-- | gdb/cp-support.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cp-support.h b/gdb/cp-support.h index 4472581..e2460de 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -169,7 +169,7 @@ struct type *cp_find_type_baseclass_by_name (struct type *parent_type, /* Functions from cp-name-parser.y. */ extern std::unique_ptr<demangle_parse_info> cp_demangled_name_to_comp - (const char *demangled_name, const char **errmsg); + (const char *demangled_name, std::string *errmsg); extern gdb::unique_xmalloc_ptr<char> cp_comp_to_string (struct demangle_component *result, int estimated_len); |