aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cplus-dem.c
AgeCommit message (Collapse)AuthorFilesLines
2014-06-11Delete temporary string within demangler even in failure cases.gdb-7.8-branchpointAndrew Burgess1-1/+4
A call to demangle_template might allocate storage within a temporary string even if the call to demangle_template eventually returns failure. This will never cause the demangler to crash, but does leak memory, as a result I've not added any tests for this. Calling string_delete is safe, even if nothing is allocated into the string, the string is initialised with string_init, so we know the internal pointers are NULL. libiberty/ChangeLog * cplus-dem.c (do_type): Call string_delete even if the call to demangle_template fails.
2014-05-28cplus-demangler, free resource after a failed call to gnu_special.Andrew Burgess1-0/+7
libiberty/ 2014-05-14 Andrew Burgess <aburgess@broadcom.com> * cplus-dmem.c (internal_cplus_demangle): Free any resources allocated by possible previous call to gnu_special. (squangle_mop_up): Reset pointers to NULL after calling free. * testsuite/demangle-expected: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210425 138bc75d-0d04-0410-961f-82ee72b054a4
2011-04-20merge from gccDJ Delorie1-2/+1
2011-03-25merge from gccDJ Delorie1-3/+2
2011-03-042011-03-04 Michael Snyder <msnyder@vmware.com>Michael Snyder1-2/+3
* cplus-dem.c (ada_demangle): Stop memory leak. Also fix a one line indent problem.
2011-01-03merge from gccDJ Delorie1-1/+1
2010-09-27merge from gccDJ Delorie1-63/+137
2010-01-11merge from gccDJ Delorie1-108/+169
2009-09-23merge from gccDJ Delorie1-1/+4
2008-03-13merge from gccDJ Delorie1-2/+2
2008-01-232008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>Ben Elliston1-12/+20
* cplus-dem.c (demangle_function_name): Changed to return value indicating if a name was correctly demangled. (iterate_demangle_function): Use demangle_function_name return value.
2006-05-12merge from gccDJ Delorie1-1/+1
2005-05-24merge from gccDJ Delorie1-39/+29
2005-05-10Update the address and phone number of the FSF organization.Nick Clifton1-2/+2
2005-03-27merge from gccDJ Delorie1-333/+156
2004-11-24merge from gccDJ Delorie1-7/+1
2004-01-02merge from gccDJ Delorie1-2/+21
2003-10-20 * cplus-dem.c (demangle_template): Register a new Btype onlyJoel Brobecker1-4/+4
when needed. * testsuite/demangle-expected: Add a new test.
2003-03-11merge from gccDJ Delorie1-23/+26
2003-03-04merge from gccDJ Delorie1-0/+9
2003-02-20merge from gccDJ Delorie1-1/+1
2003-02-13merge from gccDJ Delorie1-15/+16
2002-10-06merge from gccDJ Delorie1-10/+8
2002-09-20merge from gccDJ Delorie1-2/+2
2002-09-12merge from gccDJ Delorie1-334/+0
2002-07-29merge from gccDJ Delorie1-2/+0
2002-02-19merge from gccDJ Delorie1-2/+9
2002-02-18merge from gccDJ Delorie1-5/+16
2002-02-05merge from gccDJ Delorie1-7/+4
2002-02-03merge from gccDJ Delorie1-1/+5
2002-01-03merge from gccDJ Delorie1-1/+1
2002-01-02merge from gccDJ Delorie1-27/+8
2001-12-13merge from gccDJ Delorie1-0/+3
2001-12-06 * demangle.h (no_demangling): New.Richard Henderson1-0/+10
(NO_DEMANGLING_STYLE_STRING): New. * cplus-dem.c (libiberty_demanglers): Add no_demangling case. (cplus_demangle): Support no_demangling.
2001-10-17merge from gccDJ Delorie1-1/+1
2001-10-07merge from gccDJ Delorie1-7/+7
2001-03-20merge from gccDJ Delorie1-1/+1
2001-03-05merge from gccDJ Delorie1-1/+1
2001-02-17merge from gccDJ Delorie1-1/+1
2001-02-02merge from gccDJ Delorie1-9/+11
2000-12-08* safe-ctype.c: New file.DJ Delorie1-32/+33
* Makefile.in (CFILES): Add safe-ctype.c. (REQUIRED_OFILES): Add safe-ctype.o. * argv.c: Define ISBLANK and use it, not isspace. * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c, strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c) before calling TOLOWER(c)/TOUPPER(c).
2000-12-05* cp-demangle.c: s/new_abi/v3/.DJ Delorie1-12/+17
* cplus-dem.c: Likewise. (current_demangling_style): Now auto_demangling. (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING. (main): Use standard symbol chars for auto_demangling.
2000-11-23 * cplus-dem.c (main): Handle gnat_demangling.Hans-Peter Nilsson1-0/+1
2000-11-21 * cplus-dem.c (cplus_demangle): Fix formatting.Hans-Peter Nilsson1-32/+38
(grow_vect): Ditto. (ada_demangle): Ditto. (internal_cplus_demangle): Ditto. (mop_up): Ditto. * cplus-dem.c (main): Handle java_demangling. * cplus-dem.c (grow_vect): Prototype. (ada_demangle): Cast the arg of ctype macros to unsigned char.
2000-11-16* cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED forHans-Peter Nilsson1-1/+1
parameter `option'. Do s/cplus_dem.c/cplus-dem.c/g on ChangeLog.
2000-11-15[merge]DJ Delorie1-8/+8
* cplus_dem.c: Eliminate use of DEFUN, it is obsolete and cannot be used in GCC.
2000-11-15 * cplus_dem.c: Add gnat demangler. Add java to demangle styleHans-Peter Nilsson1-0/+148
list.
2000-10-12merge from gcc repositoryDJ Delorie1-14/+13
2000-09-13 * testsuite/demangle-expected: Add two tests for anonymousHans-Peter Nilsson1-0/+19
namespaces. * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2000-09-10 * testsuite/demangle-expected: Add four tests for type_infoHans-Peter Nilsson1-1/+1
mangling. * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type, for a non-template non-qualified type_info function or node.