This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __cxa_demangle sanity checks, issues, thoughts


Ugh. Garbage in, garbage out. As it turns, out, __cxa_demangle can
demangle all the symbols from libstdc++.so. Phew.

This works better:
// nm -g -P libstdc++.so.5.0.0 | awk '{ print $1}' | sort >& symbol_file

Giving:

6	error code = -2: invalid mangled name
6	__cxa_allocate_exception

8	error code = -2: invalid mangled name
8	__cxa_bad_cast

9	error code = -2: invalid mangled name
9	__cxa_bad_typeid

10	error code = -2: invalid mangled name
10	__cxa_begin_catch

11	error code = -2: invalid mangled name
11	__cxa_call_unexpected

12	error code = -2: invalid mangled name
12	__cxa_current_exception_type

13	error code = -2: invalid mangled name
13	__cxa_demangle

14	error code = -2: invalid mangled name
14	__cxa_dyn_string_append

15	error code = -2: invalid mangled name
15	__cxa_dyn_string_append_char

16	error code = -2: invalid mangled name
16	__cxa_dyn_string_append_cstr

17	error code = -2: invalid mangled name
17	__cxa_dyn_string_clear

18	error code = -2: invalid mangled name
18	__cxa_dyn_string_copy

19	error code = -2: invalid mangled name
19	__cxa_dyn_string_copy_cstr

20	error code = -2: invalid mangled name
20	__cxa_dyn_string_delete

21	error code = -2: invalid mangled name
21	__cxa_dyn_string_eq

22	error code = -2: invalid mangled name
22	__cxa_dyn_string_init

23	error code = -2: invalid mangled name
23	__cxa_dyn_string_insert

24	error code = -2: invalid mangled name
24	__cxa_dyn_string_insert_char

25	error code = -2: invalid mangled name
25	__cxa_dyn_string_insert_cstr

26	error code = -2: invalid mangled name
26	__cxa_dyn_string_new

27	error code = -2: invalid mangled name
27	__cxa_dyn_string_prepend

28	error code = -2: invalid mangled name
28	__cxa_dyn_string_prepend_cstr

29	error code = -2: invalid mangled name
29	__cxa_dyn_string_release

30	error code = -2: invalid mangled name
30	__cxa_dyn_string_resize

31	error code = -2: invalid mangled name
31	__cxa_dyn_string_substring

32	error code = -2: invalid mangled name
32	__cxa_end_catch

34	error code = -2: invalid mangled name
34	__cxa_free_exception

35	error code = -2: invalid mangled name
35	__cxa_get_globals

36	error code = -2: invalid mangled name
36	__cxa_get_globals_fast

37	error code = -2: invalid mangled name
37	__cxa_pure_virtual

38	error code = -2: invalid mangled name
38	__cxa_rethrow

39	error code = -2: invalid mangled name
39	__cxa_throw

40	error code = -2: invalid mangled name
40	__cxa_vec_cctor

41	error code = -2: invalid mangled name
41	__cxa_vec_cleanup

42	error code = -2: invalid mangled name
42	__cxa_vec_ctor

43	error code = -2: invalid mangled name
43	__cxa_vec_delete

44	error code = -2: invalid mangled name
44	__cxa_vec_delete2

45	error code = -2: invalid mangled name
45	__cxa_vec_delete3

46	error code = -2: invalid mangled name
46	__cxa_vec_dtor

47	error code = -2: invalid mangled name
47	__cxa_vec_new

48	error code = -2: invalid mangled name
48	__cxa_vec_new2

49	error code = -2: invalid mangled name
49	__cxa_vec_new3

50	error code = -2: invalid mangled name
50	CXXABI_1.2

54	error code = -2: invalid mangled name
54	__dynamic_cast

69	error code = -2: invalid mangled name
69	GLIBCPP_3.2

70	error code = -2: invalid mangled name
70	__gmon_start__

71	error code = -2: invalid mangled name
71	__gxx_personality_v0

73	error code = -2: invalid mangled name
73	_Jv_RegisterClasses

83	error code = -2: invalid mangled name
83	pthread_create

84	error code = -2: invalid mangled name
84	pthread_getspecific

85	error code = -2: invalid mangled name
85	pthread_key_create

88	error code = -2: invalid mangled name
88	pthread_once

89	error code = -2: invalid mangled name
89	pthread_setspecific


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]