Rewrite valid-expr.h's internals in terms of the detection idiom (C++17/N4502)
[binutils-gdb.git] / gdbsupport / ChangeLog
1 2020-09-14 Pedro Alves <pedro@palves.net>
2
3 * traits.h (struct nonesuch, struct detector, detected_or)
4 (detected_or_t, is_detected, detected_t, detected_or)
5 (detected_or_t, is_detected_exact, is_detected_convertible): New.
6 * valid-expr.h (CHECK_VALID_EXPR_INT): Use gdb::is_detected_exact.
7
8 2020-09-10 Kamil Rytarowski <n54@gmx.com>
9
10 * eintr.h: New file.
11
12 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * selftest.h (run_tests): Change parameter to array_view.
15 * selftest.c (run_tests): Change parameter to array_view and use
16 it.
17
18 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19
20 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
21 * common.m4 (GDB_AC_COMMON): Use BFD_SYS_PROCFS_H to check for
22 <sys/procfs.h>.
23 * Makefile.in: Regenerate.
24 * configure, config.in: Regenerate.
25
26 2020-07-28 Tom de Vries <tdevries@suse.de>
27
28 PR build/26281
29 * gdb_optional.h (class optional): Add volatile member to union
30 contaning m_dummy and m_item.
31
32 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
33
34 * tdesc.h (struct target_desc_deleter): Moved here
35 from gdb/target-descriptions.h, extend comment.
36 (target_desc_up): Likewise.
37
38 2020-06-30 Tom Tromey <tromey@adacore.com>
39
40 PR build/26183:
41 * gdb_string_view.h (basic_string_view::to_string): Remove.
42 (gdb::to_string): New function.
43
44 2020-06-27 Simon Marchi <simon.marchi@efficios.com>
45
46 * tdesc.h (class print_xml_feature) <add_line>: Add
47 ATTRIBUTE_PRINTF.
48
49 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * tdesc.cc (print_xml_feature::visit_pre): Use add_line to add
52 output content, and call indent as needed in all overloaded
53 variants.
54 (print_xml_feature::visit_post): Likewise.
55 (print_xml_feature::visit): Likewise.
56 (print_xml_feature::add_line): Two new overloaded functions.
57 * tdesc.h (print_xml_feature::indent): New member function.
58 (print_xml_feature::add_line): Two new overloaded member
59 functions.
60 (print_xml_feature::m_depth): New member variable.
61
62 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * tdesc.cc (print_xml_feature::visit_pre): Print compatible
65 information.
66 * tdesc.h (struct tdesc_compatible_info): Declare new struct.
67 (tdesc_compatible_info_up): New typedef.
68 (tdesc_compatible_info_list): Declare new function.
69 (tdesc_compatible_info_arch_name): Declare new function.
70
71 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
72
73 * common-utils.cc, common-utils.h (stringify_argv): Drop
74 now unused function stringify_argv
75
76 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
77
78 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
79 Adapt to take a gdb::array_view<char * const> parameter.
80 Adapt call site.
81
82 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
83
84 * common-inferior.cc, common-inferior.h (construct_inferior_arguments):
85 Adapt to handle zero args and return a std::string.
86 Adapt call site.
87
88 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
89
90 * common-inferior.h, common-inferior.cc: (construct_inferior_arguments):
91 Move function here from gdb/infcmd.c, gdb/inferior.h
92
93 2020-05-14 Kevin Buettner <kevinb@redhat.com>
94
95 * btrace-common.h (btrace_cpu_vendor): Add CV_AMD.
96
97 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
98
99 * common-regcache.h (regcache_read_pc_protected): New function
100 declaration.
101
102 2020-04-28 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
103
104 * gdb-sigmask.h: Fix typo (pthead_sigmask -> pthread_sigmask).
105
106 2020-04-27 Simon Marchi <simon.marchi@polymtl.ca>
107
108 * common-defs.h: Include cstdlib.h.
109
110 2020-04-20 Tom Tromey <tromey@adacore.com>
111
112 * scoped_mmap.h (scoped_mmap): Mark move constructor as noexcept.
113 Use initialization style. Don't call destroy.
114 * scoped_fd.h (class scoped_fd): Mark move constructor as
115 noexcept.
116 * gdb_ref_ptr.h (class ref_ptr): Mark move constructor as
117 noexcept.
118
119 2020-04-13 Tom Tromey <tom@tromey.com>
120
121 * event-loop.c: Move comment. Remove obsolete comment.
122
123 2020-04-13 Tom Tromey <tom@tromey.com>
124
125 * event-loop.h: Move from ../gdb/.
126 * event-loop.cc: Move from ../gdb/.
127
128 2020-04-13 Tom Tromey <tom@tromey.com>
129
130 * errors.h (flush_streams): Declare.
131
132 2020-04-13 Tom Tromey <tom@tromey.com>
133
134 * gdb_select.h: Move from ../gdb/.
135
136 2020-04-13 Tom Tromey <tom@tromey.com>
137
138 * config.in, configure: Rebuild.
139 * common.m4 (GDB_AC_COMMON): Check for poll.h, sys/poll.h,
140 sys/select.h, and poll.
141
142 2020-03-31 Tom Tromey <tromey@adacore.com>
143
144 * btrace-common.cc (btrace_data_append): Conditionally call
145 memcpy.
146
147 2020-03-27 Andrew Burgess <andrew.burgess@embecosm.com>
148
149 * create-version.sh: Resolve issues highlighted by shellcheck.
150
151 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
152
153 * config.in: Re-generate.
154 * configure: Re-generate.
155
156 2020-03-17 Kamil Rytarowski <n54@gmx.com>
157
158 * common-defs.h: Include alloca.h if HAVE_ALLOCA_H is defined.
159
160 2020-03-12 Tom Tromey <tom@tromey.com>
161
162 * common-types.h: Remove GDBSERVER code.
163 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Redefine.
164 * common-defs.h: Remove GDBSERVER code.
165
166 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
167
168 * selftest.m4: Moved from gdb/.
169 * acinclude.m4: Update path to selftest.m4.
170
171 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
172
173 * configure.ac: Don't source bfd/development.sh.
174 * common.m4: Source bfd/development.sh.
175 * configure: Re-generate.
176
177 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
178
179 * configure: Re-generate.
180
181 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
182
183 * configure: Re-generate.
184 * warning.m4: Enable -Wmissing-prototypes.
185
186 2020-03-08 Tom Tromey <tom@tromey.com>
187
188 * gdb_binary_search.h: Fix two typos.
189
190 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
191
192 * .dir-locals.el: New file.
193
194 2020-03-05 Vyacheslav Petrishchev <vyachemail@gmail.com>
195
196 * configure.ac: Added call development.sh.
197 * configure: Regenerate.
198
199 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
200
201 * .gitattributes: New file.
202
203 2020-03-03 Simon Marchi <simon.marchi@efficios.com>
204
205 * Makefile.in: Re-generate.
206
207 2020-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
208
209 * gdb-dlfcn.h (gdb_dlopen): Update comment.
210
211 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
212
213 * configure: Regenerate.
214
215 2020-02-14 Tom Tromey <tom@tromey.com>
216
217 * common-defs.h: Change path to gnulib/config.h.
218
219 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
220
221 * Makefile.am: Rename source files from .c to .cc.
222 (CC, CFLAGS): Don't override.
223 (AM_CFLAGS): Rename to ...
224 (AM_CXXFLAGS): ... this.
225 * Makefile.in: Re-generate.
226 * %.c: Rename to %.cc.
227
228 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
229
230 * configure: Re-generate.
231
232 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
233
234 * warning.m4: Add -Wstrict-null-sentinel.
235 * configure: Re-generate.
236
237 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
238
239 * warning.m4: Move here, from gdb/warning.m4.
240 * acinclude.m4: Update warning.m4 path.
241 * Makefile.in: Re-generate.
242
243 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
244
245 * acinclude.m4: Include ../gdb/warning.m4.
246 * configure.ac: Use AM_GDB_WARNINGS.
247 * Makefile.am: Set AM_CFLAGS to WARN_CFLAGS and WERROR_CFLAGS.
248 * Makefile.in: Re-generate.
249 * configure: Re-generate.
250
251 2020-02-10 Tom de Vries <tdevries@suse.de>
252
253 * environ.c (gdb_environ::set): Cast concat NULL sentinel to char *.
254
255 2020-01-24 Christian Biesinger <cbiesinger@google.com>
256
257 * thread-pool.c (set_thread_name): Add an overload for the NetBSD
258 version of pthread_setname_np.
259
260 2020-01-17 Pedro Alves <palves@redhat.com>
261
262 * Makefile.am: Append CXX_DIALECT to CXX.
263 * Makefile.in: Regenerate.
264
265 2020-01-17 Pedro Alves <palves@redhat.com>
266
267 * configure.ac: Generate config.h instead of support-config.h.
268 * common-defs.h: Include <gdbsupport/config.h> instead of
269 <gdbsupport/support-config.h>.
270 * Makefile.in: Regenerate.
271 * configure: Regenerate.
272
273 2020-01-14 Tom Tromey <tom@tromey.com>
274
275 * Makefile.in: Rebuild.
276 * Makefile.am (check-defines): New target.
277 * check-defines.el: New file.
278
279 2020-01-14 Tom Tromey <tom@tromey.com>
280
281 * configure, Makefile.in, aclocal.m4, common.m4, config.in:
282 Rebuild.
283 * common.m4 (GDB_AC_COMMON): Move many checks from
284 gdb/configure.ac.
285 * acinclude.m4: Include bfd.m4, ptrace.m4.
286
287 2020-01-14 Tom Tromey <tom@tromey.com>
288
289 * common-defs.h: Add GDBSERVER case. Update includes.
290 * acinclude.m4, aclocal.m4, config.in, configure, configure.ac,
291 Makefile.am, Makefile.in, README: New files.
292 * Moved from ../gdb/gdbsupport/
293