]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
* cp-names.y: Don't include "cp-demangle.h". Convert all references
authorDaniel Jacobowitz <drow@false.org>
Tue, 13 Jan 2004 18:18:03 +0000 (18:18 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 13 Jan 2004 18:18:03 +0000 (18:18 +0000)
commitb551fddc3b51a786d5d2d380eb463dcec84b7bb6
tree71ab725baf36f0b6d935a345cf7ea42fa44e49e6
parent1232d0e08f9677e386722d9c15df26759a442530
* cp-names.y: Don't include "cp-demangle.h".  Convert all references
to d_info, d_comp, and D_COMP_* to demangle_info, demangle_component,
and DEMANGLE_COMPONENT_*.  Convert all calls to cp_v3_d_* functions
to new wrapper functions.  Add precedences for VOID and ')'.
(struct demangle_info): New type.
(d_grab, d_left, d_right): New macros.
(fill_comp, make_empty, make_operator, make_dtor, make_builtin_type)
(make_name): New wrapper functions.
(function_args): Remove D_PRINT_VOID test.
(function_arglist): Handle '(' VOID ')'.
(allocate_info): New function.
(demangled_name_to_comp): Use it.  Call free.
(mangled_name_to_comp): Use cplus_demangle_v3_components.
(cp_print, main): Use fputs instead of puts.
* cp-support.c (cp_canonicalize_string, class_name_from_physname)
(method_name_from_physname): Remove calls to cp_v3_d_free_info.
Test demangled_name before freeing it.
gdb/ChangeLog.cplus
gdb/cp-names.y
gdb/cp-support.c