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