diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-10-22 14:37:36 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-10-22 14:37:36 +0000 |
commit | f88e9fd3159d3b7786ccc1bf831d8e255c1df174 (patch) | |
tree | 686ebac5b0b25d7788e798595ce1e6e4f4c3b816 /gdb/cp-support.h | |
parent | e35879dbf02366bfdf085cfa7c8916f261ea5ce3 (diff) | |
download | gdb-f88e9fd3159d3b7786ccc1bf831d8e255c1df174.zip gdb-f88e9fd3159d3b7786ccc1bf831d8e255c1df174.tar.gz gdb-f88e9fd3159d3b7786ccc1bf831d8e255c1df174.tar.bz2 |
* cp-support.c: Include "safe-ctype.h".
(cp_already_canonical): New function.
(cp_canonicalize_string): Use it. Return NULL for already canonical
strings.
(mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
(cp_func_name, remove_params): Likewise.
(cp_find_first_component_aux): Use ISSPACE.
* cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
MEMORY_P argument.
* cp-name-parser.y (ALLOC_CHUNK): Define.
(struct demangle_info): Add PREV and NEXT. Increase the size of
COMPS.
(d_grab): Convert to a function.
(allocate_info): Rewrite.
(cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
strlen. Update call to allocate_info. Do not free it on failure.
(main): Update calls to cp_demangled_name_to_comp.
* Makefile.in (cp-support.o): Update.
Diffstat (limited to 'gdb/cp-support.h')
-rw-r--r-- | gdb/cp-support.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cp-support.h b/gdb/cp-support.h index 960fc6b..e85fa46 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -114,10 +114,10 @@ extern void cp_check_possible_namespace_symbols (const char *name, struct type *cp_lookup_transparent_type (const char *name); -/* Functions from cp-names.y. */ +/* Functions from cp-name-parser.y. */ extern struct demangle_component *cp_demangled_name_to_comp - (const char *demangled_name, void **memory_p, const char **errmsg); + (const char *demangled_name, const char **errmsg); extern char *cp_comp_to_string (struct demangle_component *result, int estimated_len); |