cxxfilt 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/cxxfilt.gemspec +2 -2
- data/{ansidecl.h → ext/cxxfilt/ansidecl.h} +7 -89
- data/ext/cxxfilt/cp-demangle.c +980 -361
- data/ext/cxxfilt/cp-demangle.h +9 -2
- data/ext/cxxfilt/cp-demint.c +4 -1
- data/ext/cxxfilt/cplus-dem.c +19 -4589
- data/ext/cxxfilt/d-demangle.c +645 -309
- data/ext/cxxfilt/demangle.h +58 -51
- data/ext/cxxfilt/environ.h +1 -1
- data/ext/cxxfilt/extconf.rb +1 -0
- data/ext/cxxfilt/libiberty.h +52 -20
- data/ext/cxxfilt/rust-demangle.c +1508 -252
- data/ext/cxxfilt/safe-ctype.c +1 -1
- data/ext/cxxfilt/safe-ctype.h +2 -2
- data/ext/cxxfilt/xexit.c +1 -1
- data/ext/cxxfilt/xmalloc.c +10 -8
- data/ext/cxxfilt/xmemdup.c +4 -4
- data/lib/cxxfilt/version.rb +1 -1
- metadata +12 -12
data/ext/cxxfilt/safe-ctype.c
CHANGED
data/ext/cxxfilt/safe-ctype.h
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* <ctype.h> replacement macros.
|
2
2
|
|
3
|
-
Copyright (C) 2000-
|
3
|
+
Copyright (C) 2000-2025 Free Software Foundation, Inc.
|
4
4
|
Contributed by Zack Weinberg <zackw@stanford.edu>.
|
5
5
|
|
6
6
|
This file is part of the libiberty library.
|
@@ -112,7 +112,7 @@ extern const unsigned char _sch_tolower[256];
|
|
112
112
|
#define TOUPPER(c) _sch_toupper[(c) & 0xff]
|
113
113
|
#define TOLOWER(c) _sch_tolower[(c) & 0xff]
|
114
114
|
|
115
|
-
/* Prevent the users of safe-ctype.h from
|
115
|
+
/* Prevent the users of safe-ctype.h from accidentally using the routines
|
116
116
|
from ctype.h. Initially, the approach was to produce an error when
|
117
117
|
detecting that ctype.h has been included. But this was causing
|
118
118
|
trouble as ctype.h might get indirectly included as a result of
|
data/ext/cxxfilt/xexit.c
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* xexit.c -- Run any exit handlers, then exit.
|
2
|
-
Copyright (C) 1994-
|
2
|
+
Copyright (C) 1994-2025 Free Software Foundation, Inc.
|
3
3
|
|
4
4
|
This file is part of the libiberty library.
|
5
5
|
Libiberty is free software; you can redistribute it and/or
|
data/ext/cxxfilt/xmalloc.c
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* memory allocation routines with error checking.
|
2
|
-
Copyright (C) 1989-
|
2
|
+
Copyright (C) 1989-2025 Free Software Foundation, Inc.
|
3
3
|
|
4
4
|
This file is part of the libiberty library.
|
5
5
|
Libiberty is free software; you can redistribute it and/or
|
@@ -87,7 +87,9 @@ extern "C" {
|
|
87
87
|
void *malloc (size_t);
|
88
88
|
void *realloc (void *, size_t);
|
89
89
|
void *calloc (size_t, size_t);
|
90
|
+
#ifdef HAVE_SBRK
|
90
91
|
void *sbrk (ptrdiff_t);
|
92
|
+
#endif
|
91
93
|
# ifdef __cplusplus
|
92
94
|
}
|
93
95
|
# endif /* __cplusplus */
|
@@ -137,10 +139,10 @@ xmalloc_failed (size_t size)
|
|
137
139
|
xexit (1);
|
138
140
|
}
|
139
141
|
|
140
|
-
|
142
|
+
void *
|
141
143
|
xmalloc (size_t size)
|
142
144
|
{
|
143
|
-
|
145
|
+
void *newmem;
|
144
146
|
|
145
147
|
if (size == 0)
|
146
148
|
size = 1;
|
@@ -151,10 +153,10 @@ xmalloc (size_t size)
|
|
151
153
|
return (newmem);
|
152
154
|
}
|
153
155
|
|
154
|
-
|
156
|
+
void *
|
155
157
|
xcalloc (size_t nelem, size_t elsize)
|
156
158
|
{
|
157
|
-
|
159
|
+
void *newmem;
|
158
160
|
|
159
161
|
if (nelem == 0 || elsize == 0)
|
160
162
|
nelem = elsize = 1;
|
@@ -166,10 +168,10 @@ xcalloc (size_t nelem, size_t elsize)
|
|
166
168
|
return (newmem);
|
167
169
|
}
|
168
170
|
|
169
|
-
|
170
|
-
xrealloc (
|
171
|
+
void *
|
172
|
+
xrealloc (void *oldmem, size_t size)
|
171
173
|
{
|
172
|
-
|
174
|
+
void *newmem;
|
173
175
|
|
174
176
|
if (size == 0)
|
175
177
|
size = 1;
|
data/ext/cxxfilt/xmemdup.c
CHANGED
@@ -31,11 +31,11 @@ allocated, the remaining memory is zeroed.
|
|
31
31
|
# endif
|
32
32
|
#endif
|
33
33
|
|
34
|
-
|
35
|
-
xmemdup (const
|
34
|
+
void *
|
35
|
+
xmemdup (const void *input, size_t copy_size, size_t alloc_size)
|
36
36
|
{
|
37
|
-
|
37
|
+
void *output = xmalloc (alloc_size);
|
38
38
|
if (alloc_size > copy_size)
|
39
39
|
memset ((char *) output + copy_size, 0, alloc_size - copy_size);
|
40
|
-
return (
|
40
|
+
return (void *) memcpy (output, input, copy_size);
|
41
41
|
}
|
data/lib/cxxfilt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cxxfilt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- misson20000
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.2'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake-compiler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.0'
|
83
|
-
description:
|
83
|
+
description:
|
84
84
|
email:
|
85
85
|
- xenotoad@xenotoad.net
|
86
86
|
executables: []
|
@@ -96,10 +96,10 @@ files:
|
|
96
96
|
- Gemfile.lock
|
97
97
|
- README.md
|
98
98
|
- Rakefile
|
99
|
-
- ansidecl.h
|
100
99
|
- bin/console
|
101
100
|
- bin/setup
|
102
101
|
- cxxfilt.gemspec
|
102
|
+
- ext/cxxfilt/ansidecl.h
|
103
103
|
- ext/cxxfilt/cp-demangle.c
|
104
104
|
- ext/cxxfilt/cp-demangle.h
|
105
105
|
- ext/cxxfilt/cp-demint.c
|
@@ -123,7 +123,7 @@ homepage: https://github.com/misson20000/cxxfilt-rb
|
|
123
123
|
licenses:
|
124
124
|
- LGPL-2.1-or-later
|
125
125
|
metadata: {}
|
126
|
-
post_install_message:
|
126
|
+
post_install_message:
|
127
127
|
rdoc_options: []
|
128
128
|
require_paths:
|
129
129
|
- lib
|
@@ -139,8 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
143
|
-
signing_key:
|
142
|
+
rubygems_version: 3.5.22
|
143
|
+
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Demangle C++ symbols
|
146
146
|
test_files: []
|