aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
AgeCommit message (Collapse)AuthorFilesLines
2010-11-16Properly demangle a global constructor symbol.H.J. Lu1-1/+15
2010-11-16 H.J. Lu <hongjiu.lu@intel.com> PR other/42670 PR binutils/11137 * cp-demangle.c (d_make_demangle_mangled_name): New. (d_demangle_callback): Use it on DCT_GLOBAL_XTORS. * testsuite/demangle-expected: Updated.
2010-11-13merge from gccDJ Delorie1-6/+0
2010-09-102010-09-10 James Lyon <jameslyon0@googlemail.com>Tom Tromey1-0/+1
http://sourceware.org/bugzilla/show_bug.cgi?id=11572 * cp-demangle.c (d_find_pack): Add case for DEMANGLE_COMPONENT_LAMBDA. * testsuite/demangle-expected: Add regression test.
2010-06-10 PR other/43838Jakub Jelinek1-1/+11
* cp-demangle.c (struct d_print_info): Add flush_count field. (d_print_init): Initialize it to 0. (d_print_flush): Increment it. (d_print_comp): If needed flush before appending ", ". Only decrement dpi->len if no flushes happened during the recursive call. * testsuite/demangle-expected: Add a test for this.
2010-05-06merge from gccDJ Delorie1-0/+8
2010-03-22merge from gccDJ Delorie1-2/+2
2010-02-03merge from gccDJ Delorie1-10/+83
2010-01-21merge from gccDJ Delorie1-3/+12
2010-01-10Return dgs.alc on successH.J. Lu1-1/+1
2010-01-09 Ian Lance Taylor <iant@google.com> PR other/42230 * cp-demangle.c (d_demangle): Return dgs.alc on success.
2009-10-02merge from gccDJ Delorie1-61/+238
2009-07-17merge from gccDJ Delorie1-18/+43
2009-05-19merge from gccDJ Delorie1-4/+4
2009-03-23merge from gccDJ Delorie1-3/+21
2009-03-18merge from gccDJ Delorie1-8/+63
2009-01-07merge from gccDJ Delorie1-12/+5
2008-12-18merge from gccDJ Delorie1-1/+8
2008-12-10merge from gccDJ Delorie1-0/+32
2008-10-07merge from gccDJ Delorie1-73/+225
2008-09-09merge from gccDJ Delorie1-9/+125
2008-03-31merge from gccDJ Delorie1-6/+10
2008-01-27include/David Daney1-0/+125
2008-01-26 David Daney <ddaney@avtrex.com> * demangle.h (demangle_component_type): Add DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER as new enum values. (demangle_component): Add struct s_character to union u. libiberty/ 2008-01-26 David Daney <ddaney@avtrex.com> * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER cases. (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and DEMANGLE_COMPONENT_JAVA_RESOURCE cases. (d_make_character): New function. (d_java_resource): Same. (d_special_name): Handle "Gr" case. (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER cases. * testsuite/demangle-expected: Add test for java resource name mangling.
2007-08-31merge from gccDJ Delorie1-1/+17
2007-08-012007-07-31 Michael Snyder <msnyder@access-company.com>Michael Snyder1-0/+6
* cp-demangle.c (d_print_comp): Guard against null.
2007-05-06 * cp-demangle.c (d_name): Detect local-source-name.Geoffrey Keating1-1/+21
(d_prefix): Likewise. (d_unqualified_name): Implement local-source-name.
2007-03-16 * cp-demangle.c (d_encoding): Exit early on error.Geoffrey Keating1-2/+4
(d_pointer_to_member_type): Exit early if cplus_demangle_type returns NULL. (cplus_demangle_type): Likewise. * testsuite/demangle-expected: New testcase.
2007-01-30merge from gccDJ Delorie1-312/+444
2006-12-21 * cp-demangle.h: Add comment explaining what to do to avoidGeoffrey Keating1-29/+28
overrunning string. (d_check_char): New. (d_next_char): Don't advance past trailing '\0'. * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char. (d_nested_name): Likewise. (d_special_name): Likewise. (d_call_offset): Likewise. (d_function_type): Likewise. (d_array_type): Likewise. (d_pointer_to_member_type): Likewise. (d_template_param): Likewise. (d_template_args): Likewise. (d_template_arg): Likewise. (d_expr_primary): Likewise. (d_local_name): Likewise. (d_substitution): Likewise. (d_ctor_dtor_name): Use d_advance rather than d_next_char. * testsuite/test-demangle.c: Include sys/mman.h. (MAP_ANONYMOUS): Define. (protect_end): New. (main): Use protect_end. * testsuite/demangle-expected: Add testcases for overrunning the end of the string.
2006-09-22merge from gccDJ Delorie1-0/+2
2006-08-28merge from gccDJ Delorie1-1/+10
2005-12-11merge from gccDJ Delorie1-6/+23
2005-07-03merge from gccDJ Delorie1-1/+5
2005-05-25include/Richard Henderson1-0/+14
* demangle.h (DEMANGLE_COMPONENT_HIDDEN_ALIAS): New. libiberty/ * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS. (d_make_comp, d_print_comp): Likewise. (d_special_name): Generate one. * testsuite/demangle-expected: Add a hidden alias test.
2005-05-24merge from gccDJ Delorie1-7/+7
2005-05-10Update the address and phone number of the FSF organization.Nick Clifton1-1/+1
2005-04-02 * cp-demangle.c: Update copyright.Ian Lance Taylor1-1/+1
2005-03-28merge from gccDJ Delorie1-1/+1
2005-03-27merge from gccDJ Delorie1-313/+171
2005-02-13 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguousJason Merrill1-15/+0
arguments.
2004-11-24merge from gccDJ Delorie1-6/+3
2004-06-28merge from gccDJ Delorie1-0/+2
2004-02-25merge from gccDJ Delorie1-79/+106
2004-02-25merge from gccDJ Delorie1-3/+1
2004-02-24merge from gccDJ Delorie1-33/+133
2004-01-13 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLEDaniel Jacobowitz1-1/+1
takes two parameters. * cp-demint.c (cplus_demangle_fill_component): Likewise.
2004-01-12merge from gccDJ Delorie1-845/+845
2004-01-02merge from gccDJ Delorie1-1/+18
2003-12-26merge from gccDJ Delorie1-2/+1
2003-12-22merge from gccDJ Delorie1-291/+474
2003-12-20merge from gccDJ Delorie1-0/+7
2003-12-19merge from gccDJ Delorie1-10/+78