OSDN Git Service

* cp-support.c: Include "safe-ctype.h".
authorDaniel Jacobowitz <dan@debian.org>
Mon, 22 Oct 2007 14:37:36 +0000 (14:37 +0000)
committerDaniel Jacobowitz <dan@debian.org>
Mon, 22 Oct 2007 14:37:36 +0000 (14:37 +0000)
commit3f7d6c13f45094de2f5327bdcf499c5c0fb09dc8
tree92c37dd890563de61cd3de8bf6e858ad0178fcab
parentfc722e9d7dc3fdf80038a6116a2d010768f48ea3
* 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.
gdb/ChangeLog
gdb/Makefile.in
gdb/cp-name-parser.y
gdb/cp-support.c
gdb/cp-support.h