Jakub Jelinek
3baae9d67e
PR other/43838
* 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.
16 years ago
DJ Delorie
cf383746fa
merge from gcc
17 years ago
DJ Delorie
f9b58c5ba6
merge from gcc
17 years ago
DJ Delorie
cbc4312826
merge from gcc
17 years ago
DJ Delorie
9ac9c2b6b0
merge from gcc
17 years ago
H.J. Lu
ffe7cfdf31
Return dgs.alc on success
2010-01-09 Ian Lance Taylor <iant@google.com>
PR other/42230
* cp-demangle.c (d_demangle): Return dgs.alc on success.
17 years ago
DJ Delorie
664aa91f58
merge from gcc
17 years ago
DJ Delorie
d503175434
merge from gcc
17 years ago
DJ Delorie
4e55d6c3ee
merge from gcc
18 years ago
DJ Delorie
e2e1864d3b
merge from gcc
18 years ago
DJ Delorie
c743cf5d81
merge from gcc
18 years ago
DJ Delorie
60cf58f5cf
merge from gcc
18 years ago
DJ Delorie
4e59450ef0
merge from gcc
18 years ago
DJ Delorie
d2825c1a4c
merge from gcc
18 years ago
DJ Delorie
1c08f2c880
merge from gcc
18 years ago
DJ Delorie
ba8cb4bac5
merge from gcc
18 years ago
DJ Delorie
dddc49b73b
merge from gcc
19 years ago
David Daney
830ef6349c
include/
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.
19 years ago
DJ Delorie
8969a67f0a
merge from gcc
19 years ago
Michael Snyder
168b82983a
2007-07-31 Michael Snyder <msnyder@access-company.com>
* cp-demangle.c (d_print_comp): Guard against null.
19 years ago
Geoffrey Keating
8bf955e1b8
* cp-demangle.c (d_name): Detect local-source-name.
(d_prefix): Likewise.
(d_unqualified_name): Implement local-source-name.
20 years ago
Geoffrey Keating
8d3010701b
* cp-demangle.c (d_encoding): Exit early on error.
(d_pointer_to_member_type): Exit early if cplus_demangle_type
returns NULL.
(cplus_demangle_type): Likewise.
* testsuite/demangle-expected: New testcase.
20 years ago
DJ Delorie
208c16740c
merge from gcc
20 years ago
Geoffrey Keating
6ef6358e51
* cp-demangle.h: Add comment explaining what to do to avoid
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.
20 years ago
DJ Delorie
e63f184e3f
merge from gcc
20 years ago
DJ Delorie
cb6c09ace5
merge from gcc
20 years ago
DJ Delorie
7887b2ce66
merge from gcc
21 years ago
DJ Delorie
6ba85b8caf
merge from gcc
21 years ago
Richard Henderson
839e4798b0
include/
* 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.
22 years ago
DJ Delorie
abf6a75b42
merge from gcc
22 years ago
Nick Clifton
979c05d324
Update the address and phone number of the FSF organization.
22 years ago
Ian Lance Taylor
b31a49d78d
* cp-demangle.c: Update copyright.
22 years ago
DJ Delorie
e064c173c6
merge from gcc
22 years ago
DJ Delorie
9334f9c6cd
merge from gcc
22 years ago
Jason Merrill
aca9a74241
* cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
arguments.
22 years ago
DJ Delorie
eb129e357a
merge from gcc
22 years ago
DJ Delorie
a21da8bff0
merge from gcc
22 years ago
DJ Delorie
2d7332114a
merge from gcc
23 years ago
DJ Delorie
099f84cfba
merge from gcc
23 years ago
DJ Delorie
74aee4eb9f
merge from gcc
23 years ago
Daniel Jacobowitz
2d6520ee20
* cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
takes two parameters.
* cp-demint.c (cplus_demangle_fill_component): Likewise.
23 years ago
DJ Delorie
5972747385
merge from gcc
23 years ago
DJ Delorie
820542c970
merge from gcc
23 years ago
DJ Delorie
2f9c405836
merge from gcc
23 years ago
DJ Delorie
b6fb00c07b
merge from gcc
23 years ago
DJ Delorie
2730f65149
merge from gcc
23 years ago
DJ Delorie
d4edd1123b
merge from gcc
23 years ago
DJ Delorie
d35d0cd43c
merge from gcc
23 years ago
DJ Delorie
97ceaf5b4d
merge from gcc
23 years ago
DJ Delorie
858b45cfbf
merge from gcc
23 years ago