Create xml from target descriptions
[binutils-gdb.git] / gdb / ChangeLog
1 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2
3 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
4 (print_xml_feature::visit_post): Likewise.
5 (print_xml_feature::visit): Likewise.
6 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
7 (print_xml_feature): Add new class.
8 * regformats/regdat.sh: Null xmltarget on feature targets.
9 * target-descriptions.c (struct target_desc): Add xmltarget.
10 (maintenance_check_tdesc_xml_convert): Add unittest function.
11 (tdesc_get_features_xml): Add function to get xml.
12 (maintenance_check_xml_descriptions): Test xml generation.
13 * xml-tdesc.c (string_read_description_xml): Add function.
14 * xml-tdesc.h (string_read_description_xml): Add declaration.
15
16 2018-04-18 Alan Hayward <alan.hayward@arm.com>
17
18 * features/Makefile: Add feature marker to targets with new style
19 target descriptions.
20 * regformats/aarch64.dat: Regenerate.
21 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
22 * regformats/i386/amd64-avx-linux.dat: Likewise.
23 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
24 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
25 * regformats/i386/amd64-linux.dat: Likewise.
26 * regformats/i386/amd64-mpx-linux.dat: Likewise.
27 * regformats/i386/amd64.dat: Likewise.
28 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
29 * regformats/i386/i386-avx-linux.dat: Likewise.
30 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
31 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
32 * regformats/i386/i386-linux.dat: Likewise.
33 * regformats/i386/i386-mmx-linux.dat: Likewise.
34 * regformats/i386/i386-mpx-linux.dat: Likewise.
35 * regformats/i386/i386.dat: Likewise.
36 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
37 * regformats/i386/x32-avx-linux.dat: Likewise.
38 * regformats/i386/x32-linux.dat: Likewise.
39 * regformats/tic6x-c62x-linux.dat: Likewise.
40 * regformats/tic6x-c64x-linux.dat: Likewise.
41 * regformats/tic6x-c64xp-linux.dat: Likewise.
42 * regformats/regdat.sh: Parse feature marker.
43
44 2018-04-18 Alan Hayward <alan.hayward@arm.com>
45
46 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
47 (tdesc_osabi_name): Likewise.
48 * target-descriptions.c (tdesc_architecture_name): Add new
49 function.
50 (tdesc_osabi_name): Likewise.
51
52 2018-04-18 Alan Hayward <alan.hayward@arm.com>
53
54 * common/tdesc.c (tdesc_predefined_type): Move to here.
55 (tdesc_named_type): Likewise.
56 (tdesc_create_vector): Likewise.
57 (tdesc_create_struct): Likewise.
58 (tdesc_set_struct_size): Likewise.
59 (tdesc_create_union): Likewise.
60 (tdesc_create_flags): Likewise.
61 (tdesc_create_enum): Likewise.
62 (tdesc_add_field): Likewise.
63 (tdesc_add_typed_bitfield): Likewise.
64 (tdesc_add_bitfield): Likewise.
65 (tdesc_add_flag): Likewise.
66 (tdesc_add_enum_value): Likewise.
67 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
68 (struct tdesc_type_vector): Likewise.
69 (struct tdesc_type_field): Likewise.
70 (struct tdesc_type_with_fields): Likewise.
71 (tdesc_create_enum): Add declaration.
72 (tdesc_add_typed_bitfield): Likewise.
73 (tdesc_add_enum_value): Likewise.
74 * target-descriptions.c (tdesc_type_field): Move from here.
75 (tdesc_type_builtin): Likewise.
76 (tdesc_type_vector): Likewise.
77 (tdesc_type_with_fields): Likewise.
78 (tdesc_predefined_types): Likewise.
79 (tdesc_named_type): Likewise.
80 (tdesc_create_vector): Likewise.
81 (tdesc_create_struct): Likewise.
82 (tdesc_set_struct_size): Likewise.
83 (tdesc_create_union): Likewise.
84 (tdesc_create_flags): Likewise.
85 (tdesc_create_enum): Likewise.
86 (tdesc_add_field): Likewise.
87 (tdesc_add_typed_bitfield): Likewise.
88 (tdesc_add_bitfield): Likewise.
89 (tdesc_add_flag): Likewise.
90 (tdesc_add_enum_value): Likewise.
91 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
92 (tdesc_add_typed_bitfield): Likewise.
93 (tdesc_add_enum_value): Likewise.
94
95 2018-04-18 Alan Hayward <alan.hayward@arm.com>
96
97 * common/tdesc.c (tdesc_feature::accept): Move to here.
98 (tdesc_feature::operator==): Likewise.
99 (tdesc_create_reg): Likewise.
100 * common/tdesc.h (tdesc_type_kind): Likewise.
101 (struct tdesc_type): Likewise.
102 (struct tdesc_feature): Likewise.
103 * regformats/regdat.sh: Create a feature.
104 * target-descriptions.c (tdesc_type_kind): Move from here.
105 (tdesc_type): Likewise.
106 (tdesc_type_up): Likewise.
107 (tdesc_feature): Likewise.
108 (tdesc_create_reg): Likewise.
109
110 2018-04-18 Alan Hayward <alan.hayward@arm.com>
111
112 * Makefile.in: Add arch/tdesc.c
113 * common/tdesc.c: New file.
114 * common/tdesc.h (tdesc_element_visitor): Move to here.
115 (tdesc_element): Likewise.
116 (tdesc_reg): Likewise.
117 (tdesc_reg_up): Likewise.
118 * regformats/regdef.h (reg): Add offset to constructors.
119 * target-descriptions.c (tdesc_element_visitor): Move from here.
120 (tdesc_element): Likewise.
121 (tdesc_reg): Likewise.
122 (tdesc_reg_up): Likewise.
123
124 2018-04-17 Tom Tromey <tom@tromey.com>
125
126 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
127 discriminant field.
128
129 2018-04-17 Tom Tromey <tom@tromey.com>
130
131 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
132
133 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
134
135 * symtab.c (print_symbol_info): Skip printing filename and line
136 number when `last' is NULL.
137 (symtab_symbol_info): Use empty string instead of NULL for first
138 invocation of print_symbol_info.
139 (rbreak_command): Pass NULL to `last' parameter of
140 print_symbol_info.
141
142 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
143
144 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
145 instead of nullptr.
146
147 2018-04-16 Pedro Alves <palves@redhat.com>
148
149 * MAINTAINERS (sh): Remove.
150 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
151 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
152 (ALLDEPFILES): Remove sh64-tdep.c.
153 * NEWS: Mentions that support for SH-5/SH64 is removed.
154 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
155 (sh*-*-openbsd*): Ditto.
156 (sh64-*-elf*): Remove.
157 (sh*): Remove.
158 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
159 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
160 * sh-tdep.c: No longer include "sh64-tdep.h".
161 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
162 * sh64-tdep.c, sh64-tdep.h: Remove files.
163
164 2018-04-16 Pedro Alves <palves@redhat.com>
165
166 * MAINTAINERS: Remove m88k.
167 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
168 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
169 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
170 * NEWS: Mention that support for m88k was removed.
171 * configure.host (m88*-*-*): Remove support.
172 * configure.nat (m88k-*-*): Remove support.
173 * configure.tgt (m88*-*-openbsd*): Remove.
174 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
175
176 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * configure.tgt (x86_tobjs): New variable.
179 (amd64_tobjs, i386_tobjs): Use it.
180
181 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
182
183 * symtab.c (print_symbol_info): Precede the symbol definition by
184 the line number when available.
185 * NEWS: Advertise this enhancement.
186
187 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
188
189 * NEWS (New options): announce set/show record btrace cpu.
190 * btrace.c: Include record-btrace.h.
191 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
192 the vendor is unknown.
193 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
194 Maybe overwrite the btrace configuration's cpu.
195 (btrace_compute_ftrace): Add cpu parameter. Update callers.
196 (btrace_fetch): Add cpu parameter. Update callers.
197 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
198 Maybe overwrite the btrace configuration's cpu. Skip enabling
199 errata workarounds if the vendor is unknown.
200 * python/py-record-btrace.c: Include record-btrace.h.
201 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
202 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
203 * record-btrace.c (record_btrace_cpu_state_kind): New.
204 (record_btrace_cpu): New.
205 (set_record_btrace_cpu_cmdlist): New.
206 (record_btrace_get_cpu): New.
207 (require_btrace_thread, record_btrace_info)
208 (record_btrace_resume_thread): Call record_btrace_get_cpu.
209 (cmd_set_record_btrace_cpu_none): New.
210 (cmd_set_record_btrace_cpu_auto): New.
211 (cmd_set_record_btrace_cpu): New.
212 (cmd_show_record_btrace_cpu): New.
213 (_initialize_record_btrace): Initialize set/show record btrace cpu
214 commands.
215 * record-btrace.h (record_btrace_get_cpu): New.
216
217 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
218
219 * record.c (set_record_command): Fix typo in message.
220
221 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
222
223 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
224
225 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
226
227 * infrun.c (process_event_stop_test): Call
228 gdbarch_in_indirect_branch_thunk.
229 * gdbarch.sh (in_indirect_branch_thunk): New.
230 * gdbarch.c: Regenerated.
231 * gdbarch.h: Regenerated.
232 * x86-tdep.h: New.
233 * x86-tdep.c: New.
234 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
235 (HFILES_NO_SRCDIR): Add x86-tdep.h.
236 (ALLDEPFILES): Add x86-tdep.c.
237 * arch-utils.h (default_in_indirect_branch_thunk): New.
238 * arch-utils.c (default_in_indirect_branch_thunk): New.
239 * i386-tdep: Include x86-tdep.h.
240 (i386_in_indirect_branch_thunk): New.
241 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
242 function.
243 * amd64-tdep: Include x86-tdep.h.
244 (amd64_in_indirect_branch_thunk): New.
245 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
246
247 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
248
249 PR gdb/23053
250 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
251 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
252 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
253 regression.
254
255 2018-04-12 Tom Tromey <tom@tromey.com>
256
257 * rust-lang.c (rust_print_struct_def): Remove univariant code.
258 (rust_evaluate_subexp): Likewise.
259
260 2018-04-12 Pedro Alves <palves@redhat.com>
261
262 * procfs.c (procfs_detach): Make forward declaration's prototype
263 match definition's protototype.
264 (proc_get_LDT_entry): Remove stale do_cleanups call.
265
266 2018-04-12 Pedro Alves <palves@redhat.com>
267
268 * target.h (target_ops::to_has_exited): Delete.
269 (target_has_exited): Delete.
270 * target-delegates.c: Regenerate.
271
272 2018-04-11 Pedro Alves <palves@redhat.com>
273
274 * target.c (fileio_fh_t::t): Add comment.
275 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
276 (target_fileio_close): Handle a NULL target.
277 (invalidate_fileio_fh): New.
278 (target_close): Call it.
279 * remote.c (remote_hostio_send_command): No longer check whether
280 remote_desc is open.
281
282 2018-04-11 Pedro Alves <palves@redhat.com>
283
284 * target.c (fileio_fh_t): Make it a named struct instead of a
285 typedef.
286 (fileio_fh_t::is_closed): New method.
287 (DEF_VEC_O (fileio_fh_t)): Remove.
288 (fileio_fhandles): Now a std::vector.
289 (is_closed_fileio_fh): Delete.
290 (acquire_fileio_fd): Adjust. Rename parameters.
291 (release_fileio_fd): Adjust.
292 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
293 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
294 (target_fileio_close): Adjust.
295
296 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
297
298 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
299 index.
300
301 2018-04-10 Pedro Alves <palves@redhat.com>
302
303 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
304 (scoped_finish_thread_state): New class.
305 * infcmd.c (run_command_1): Use it instead of finish_thread_state
306 cleanup.
307 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
308 (fetch_inferior_event, normal_stop): Likewise.
309 * thread.c (finish_thread_state_cleanup): Delete.
310
311 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
312 Pedro Alves <palves@redhat.com>
313
314 * value.c: Include "selftest.h" and "common/array-view.h".
315 (struct range) <operator ==>: New.
316 (test_ranges_contain): New.
317 (check_ranges_vector): New.
318 (test_insert_into_bit_range_vector): New.
319 (_initialize_values): Register selftests.
320 * common/array-view.h (operator==, operator!=): New.
321
322 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
323
324 * common/gdb_vecs.h (unordered_remove): Add overload that takes
325 an iterator.
326 * inline-frame.c: Include <algorithm>.
327 (struct inline_state): Add constructor.
328 (inline_state_s): Remove.
329 (DEF_VEC_O(inline_state_s)): Remove.
330 (inline_states): Change type to std::vector.
331 (find_inline_frame_state): Adjust to std::vector.
332 (allocate_inline_frame_state): Remove.
333 (clear_inline_frame_state): Adjust to std::vector.
334 (skip_inline_frames): Adjust to std::vector.
335
336 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * tracepoint.h (struct trace_state_variable): Add constructor.
339 <name>: Change type to std::string.
340 * tracepoint.c (tsv_s): Remove.
341 (DEF_VEC_O(tsv_s)): Remove.
342 (tvariables): Change to std::vector.
343 (create_trace_state_variable): Adjust to std::vector.
344 (find_trace_state_variable): Likewise.
345 (find_trace_state_variable_by_number): Likewise.
346 (delete_trace_state_variable): Likewise.
347 (trace_variable_command): Adjust to std::string.
348 (delete_trace_variable_command): Likewise.
349 (tvariables_info_1): Adjust to std::vector.
350 (save_trace_state_variables): Likewise.
351 (start_tracing): Likewise.
352 (merge_uploaded_trace_state_variables): Adjust to std::vector
353 and std::string.
354 * target.h (struct target_ops)
355 <to_download_trace_state_variable>: Pass reference to
356 trace_state_variable.
357 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
358 * target-delegates.c: Re-generate.
359 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
360 (mi_tsv_deleted): Likewise.
361 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
362 * remote.c (remote_download_trace_state_variable): Change
363 pointer to reference and adjust.
364 * make-target-delegates (parse_argtypes): Handle references.
365 (write_function_header): Likewise.
366 (munge_type): Likewise.
367
368 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
369
370 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
371 string_view-selftests.c.
372 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
373 testsuite.
374 * unittests/basic_string_view/cons/char/1.cc: Likewise.
375 * unittests/basic_string_view/cons/char/2.cc: Likewise.
376 * unittests/basic_string_view/cons/char/3.cc: Likewise.
377 * unittests/basic_string_view/element_access/char/1.cc:
378 Likewise.
379 * unittests/basic_string_view/element_access/char/empty.cc:
380 Likewise.
381 * unittests/basic_string_view/element_access/char/front_back.cc:
382 Likewise.
383 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
384 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
385 Likewise.
386 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
387 Likewise.
388 * unittests/basic_string_view/modifiers/swap/char/1.cc:
389 Likewise.
390 * unittests/basic_string_view/operations/compare/char/1.cc:
391 Likewise.
392 * unittests/basic_string_view/operations/compare/char/13650.cc:
393 Likewise.
394 * unittests/basic_string_view/operations/copy/char/1.cc:
395 Likewise.
396 * unittests/basic_string_view/operations/data/char/1.cc:
397 Likewise.
398 * unittests/basic_string_view/operations/find/char/1.cc:
399 Likewise.
400 * unittests/basic_string_view/operations/find/char/2.cc:
401 Likewise.
402 * unittests/basic_string_view/operations/find/char/3.cc:
403 Likewise.
404 * unittests/basic_string_view/operations/find/char/4.cc:
405 Likewise.
406 * unittests/basic_string_view/operations/rfind/char/1.cc:
407 Likewise.
408 * unittests/basic_string_view/operations/rfind/char/2.cc:
409 Likewise.
410 * unittests/basic_string_view/operations/rfind/char/3.cc:
411 Likewise.
412 * unittests/basic_string_view/operations/substr/char/1.cc:
413 Likewise.
414 * unittests/basic_string_view/operators/char/2.cc: Likewise.
415 * unittests/string_view-selftests.c: New file.
416
417 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
418
419 * unittests/basic_string_view/capacity/1.cc: New file.
420 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
421 * unittests/basic_string_view/cons/char/1.cc: New file.
422 * unittests/basic_string_view/cons/char/2.cc: New file.
423 * unittests/basic_string_view/cons/char/3.cc: New file.
424 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
425 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
426 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
427 * unittests/basic_string_view/element_access/char/1.cc: New file.
428 * unittests/basic_string_view/element_access/char/2.cc: New file.
429 * unittests/basic_string_view/element_access/char/empty.cc: New file.
430 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
431 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
432 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
433 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
434 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
435 * unittests/basic_string_view/include.cc: New file.
436 * unittests/basic_string_view/inserters/char/1.cc: New file.
437 * unittests/basic_string_view/inserters/char/2.cc: New file.
438 * unittests/basic_string_view/inserters/char/3.cc: New file.
439 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
440 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
441 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
442 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
443 * unittests/basic_string_view/literals/types.cc: New file.
444 * unittests/basic_string_view/literals/values.cc: New file.
445 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
446 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
447 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
448 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
449 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
450 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
451 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
452 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
453 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
454 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
455 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
456 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
457 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
458 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
459 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
460 * unittests/basic_string_view/operations/data/char/1.cc: New file.
461 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
462 * unittests/basic_string_view/operations/find/char/1.cc: New file.
463 * unittests/basic_string_view/operations/find/char/2.cc: New file.
464 * unittests/basic_string_view/operations/find/char/3.cc: New file.
465 * unittests/basic_string_view/operations/find/char/4.cc: New file.
466 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
467 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
468 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
469 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
470 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
471 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
472 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
473 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
474 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
475 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
476 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
477 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
478 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
479 * unittests/basic_string_view/operators/char/2.cc: New file.
480 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
481 * unittests/basic_string_view/range_access/char/1.cc: New file.
482 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
483 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
484 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
485 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
486 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
487 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
488 * unittests/basic_string_view/requirements/typedefs.cc: New file.
489 * unittests/basic_string_view/typedefs.cc: New file.
490 * unittests/basic_string_view/types/1.cc: New file.
491
492 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
493
494 * common/gdb_string_view.h: Remove libstdc++ implementation
495 details, adjust to gdb reality.
496 * common/gdb_string_view.tcc: Likewise.
497 * cli/cli-script.c (struct string_view): Remove.
498 (user_args) <m_args>: Change element type to gdb::string_view.
499 (user_args::insert_args): Adjust.
500
501 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
502
503 * common/gdb_string_view.h: New file.
504 * common/gdb_string_view.tcc: New file.
505
506 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
509 * configure: Re-generate.
510
511 2018-04-09 Pedro Alves <palves@redhat.com>
512
513 * gdbarch.sh: Include "observable.h" instead of "observer.h".
514 (set_target_gdbarch): Call
515 gdb::observers::architecture_changed.notify instead of
516 observer_notify_architecture_changed.
517
518 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
519
520 * tracepoint.c (struct current_traceframe_cleanup): Remove.
521 (do_restore_current_traceframe_cleanup): Remove.
522 (restore_current_traceframe_cleanup_dtor): Remove.
523 (make_cleanup_restore_current_traceframe): Remove.
524 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
525 New.
526 * tracepoint.h (struct scoped_restore_current_traceframe): New.
527 * infrun.c (fetch_inferior_event): Use
528 scoped_restore_current_traceframe.
529
530 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
531
532 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
533 Remove.
534 <n_allocated_type_units>: Remove.
535 <all_type_units>: Change to std::vector.
536 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
537 to std::vector change.
538 (dwarf2_per_objfile::get_cutu): Likewise.
539 (dwarf2_per_objfile::get_tu): Likewise.
540 (create_signatured_type_table_from_index): Likewise.
541 (create_signatured_type_table_from_debug_names): Likewise.
542 (dw2_symtab_iter_next): Likewise.
543 (dw2_print_stats): Likewise.
544 (dw2_expand_all_symtabs): Likewise.
545 (dw2_expand_marked_cus): Likewise.
546 (dw2_debug_names_iterator::next): Likewise.
547 (dwarf2_initialize_objfile): Likewise.
548 (add_signatured_type_cu_to_table): Likewise.
549 (create_all_type_units): Likewise.
550 (add_type_unit): Likewise.
551 (struct tu_abbrev_offset): Add constructor.
552 (build_type_psymtabs_1): Adjust to std::vector change.
553 (print_tu_stats): Likewise.
554 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
555 (write_debug_names): Likewise.
556
557 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
558
559 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
560 Make an std::vector.
561 <n_comp_units>: Remove.
562 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
563 to std::vector change.
564 (dwarf2_per_objfile::get_cutu): Likewise.
565 (dwarf2_per_objfile::get_cu): Likewise.
566 (create_cus_from_index): Likewise.
567 (create_addrmap_from_index): Likewise.
568 (create_addrmap_from_aranges): Likewise.
569 (dwarf2_read_index): Likewise.
570 (dw2_find_last_source_symtab): Likewise.
571 (dw2_map_symtabs_matching_filename): Likewise.
572 (dw2_symtab_iter_next): Likewise.
573 (dw2_print_stats): Likewise.
574 (dw2_expand_all_symtabs): Likewise.
575 (dw2_expand_symtabs_with_fullname): Likewise.
576 (dw2_expand_marked_cus): Likewise.
577 (dw2_map_symbol_filenames): Likewise.
578 (create_cus_from_debug_names): Likewise.
579 (dwarf2_read_debug_names): Likewise.
580 (dw2_debug_names_iterator::next): Likewise.
581 (dwarf2_initialize_objfile): Likewise.
582 (set_partial_user): Likewise.
583 (dwarf2_build_psymtabs_hard): Likewise.
584 (read_comp_units_from_section): Remove arguments, adjust to
585 std::vector change.
586 (create_all_comp_units): Adjust to std::vector and
587 read_comp_units_from_section changes.
588 (dwarf2_find_containing_comp_unit): Adjust to std::vector
589 change.
590 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
591 (psyms_seen_size): Likewise.
592 (write_gdbindex): Likewise.
593 (write_debug_names): Likewise.
594
595 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
596
597 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
598 with dwarf2_per_objfile.
599 (create_cus_from_index): Likewise.
600 (create_signatured_type_table_from_index): Likewise.
601 (dwarf2_read_index): Likewise.
602 (dwarf2_initialize_objfile): Likewise.
603 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
604 per_cu rather than get_dwarf2_per_objfile.
605
606 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
607
608 * dwarf2read.h (struct signatured_type): Forward declare.
609 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
610 New methods.
611 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
612 (dw2_get_cutu): ...this.
613 (dwarf2_per_objfile::get_cu): Rename from...
614 (dw2_get_cu): ...this.
615 (dwarf2_per_objfile::get_tu): New.
616 (create_addrmap_from_index): Adjust.
617 (create_addrmap_from_aranges): Adjust.
618 (dw2_find_last_source_symtab): Adjust.
619 (dw2_map_symtabs_matching_filename): Adjust.
620 (dw2_symtab_iter_next): Adjust.
621 (dw2_print_stats): Adjust.
622 (dw2_expand_all_symtabs): Adjust.
623 (dw2_expand_symtabs_with_fullname): Adjust.
624 (dw2_expand_marked_cus): Adjust.
625 (dw_expand_symtabs_matching_file_matcher): Adjust.
626 (dw2_map_symbol_filenames): Adjust.
627 (dw2_debug_names_iterator::next): Adjust.
628 (dwarf2_initialize_objfile): Adjust.
629 (set_partial_user): Adjust.
630 (dwarf2_build_psymtabs_hard): Adjust.
631
632 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
633
634 * dwarf2read.c (create_signatured_type_table_from_debug_names):
635 Remove unused variables.
636 (dw2_map_symtabs_matching_filename): Likewise.
637 (dwarf2_record_block_ranges): Likewise.
638 (dwarf2_read_addr_index): Likewise.
639 (follow_die_offset): Likewise.
640
641 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
642
643 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
644 to symbol_file_add_main.
645
646 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
647
648 PR mi/22299
649 * mi/mi-console.c (do_fputc_async_safe): New.
650 (mi_console_file::write_async_safe): New.
651 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
652 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
653 New.
654 * ui-file.c (ui_file::putstrn): Adjust call to
655 fputstrn_unfiltered.
656 * utils.c (printchar): Replace do_fputs and do_fprintf
657 parameters by do_fputc.
658 (fputstr_filtered): Adjust call to printchar.
659 (fputstr_unfiltered): Likewise.
660 (fputstrn_filtered): Likewise.
661 (fputstrn_unfiltered): Add do_fputc parameter, pass to
662 printchar.
663 * utils.h (do_fputc_ftype): New typedef.
664 (fputstrn_unfiltered): Add do_fputc parameter.
665
666 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
667
668 * regformats/i386/i386-avx.dat: Remove.
669
670 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
671
672 PR gdb/22979
673 * amd64-tdep.c (amd64_none_init_abi): New function.
674 (amd64_x32_none_init_abi): New function.
675 (_initialize_amd64_tdep): Register handlers for x86-64 and
676 x64_32 with GDB_OSABI_NONE.
677 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
678 GDB_OSABI_NONE osabi.
679
680 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
681
682 PR gdb/22980
683 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
684 GDB_OSABI_NONE.
685 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
686 * osabi.c (gdb_osabi_names): Add "unknown" entry.
687
688 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
689
690 * common/byte-vector.h (char_vector): New type.
691 * target.h (target_read_alloc): Return
692 gdb::optional<byte_vector>.
693 (target_read_stralloc): Return gdb::optional<char_vector>.
694 (target_get_osdata): Return gdb::optional<char_vector>.
695 * target.c (target_read_alloc_1): Templatize. Replacement
696 manual memory management with vector.
697 (target_read_alloc): Change return type, adjust.
698 (target_read_stralloc): Change return type, adjust.
699 (target_get_osdata): Change return type, adjust.
700 * auxv.c (struct auxv_info) <length>: Remove.
701 <data>: Change type to gdb::optional<byte_vector>.
702 (auxv_inferior_data_cleanup): Free auxv_info with delete.
703 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
704 (target_auxv_search): Adjust.
705 (fprint_target_auxv): Adjust.
706 * avr-tdep.c (avr_io_reg_read_command): Adjust.
707 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
708 (linux_make_corefile_notes): Adjust.
709 * osdata.c (get_osdata): Adjust.
710 * remote.c (remote_get_threads_with_qxfer): Adjust.
711 (remote_memory_map): Adjust.
712 (remote_traceframe_info): Adjust.
713 (btrace_read_config): Adjust.
714 (remote_read_btrace): Adjust.
715 (remote_pid_to_exec_file): Adjust.
716 * solib-aix.c (solib_aix_get_library_list): Adjust.
717 * solib-dsbt.c (decode_loadmap): Don't free buf.
718 (dsbt_get_initial_loadmaps): Adjust.
719 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
720 * solib-target.c (solib_target_current_sos): Adjust.
721 * tracepoint.c (sdata_make_value): Adjust.
722 * xml-support.c (xinclude_start_include): Adjust.
723 (xml_fetch_content_from_file): Adjust.
724 * xml-support.h (xml_fetch_another): Change return type.
725 (xml_fetch_content_from_file): Change return type.
726 * xml-syscall.c (xml_init_syscalls_info): Adjust.
727 * xml-tdesc.c (file_read_description_xml): Adjust.
728 (fetch_available_features_from_target): Change return type.
729 (target_fetch_description_xml): Adjust.
730 (target_read_description_xml): Adjust.
731
732 2018-04-06 Tom Tromey <tom@tromey.com>
733
734 * value.c (~value): Update.
735 (struct value) <contents>: Now unique_xmalloc_ptr.
736 (value_contents_bits_eq, allocate_value_contents)
737 (value_contents_raw, value_contents_all_raw)
738 (value_contents_for_printing, value_contents_for_printing_const)
739 (set_value_enclosing_type): Update.
740
741 2018-04-06 Tom Tromey <tom@tromey.com>
742
743 * value.c (range_s): Remove typedef, VEC.
744 (struct range): Add operator<.
745 (range_lessthan): Remove.
746 (ranges_contain): Change type.
747 (~value): Update.
748 (struct value) <unavailable, optimized_out>: Now std::vector.
749 (value_entirely_available)
750 (value_entirely_covered_by_range_vector)
751 (value_entirely_unavailable, value_entirely_optimized_out):
752 Update.
753 (insert_into_bit_range_vector): Change argument type.
754 (find_first_range_overlap): Likewise.
755 (struct ranges_and_idx, value_contents_bits_eq)
756 (require_not_optimized_out, require_available): Update.
757 (ranges_copy_adjusted): Change argument types.
758 (value_optimized_out, value_copy, value_fetch_lazy): Update.
759
760 2018-04-06 Tom Tromey <tom@tromey.com>
761
762 * value.c (~value): Update.
763 (struct value) <parent>: Now a value_ref_ptr.
764 (value_parent, set_value_parent, value_address, value_copy):
765 Update.
766
767 2018-04-06 Tom Tromey <tom@tromey.com>
768
769 * value.c (struct value): Add constructor, destructor, and member
770 initializers.
771 (allocate_value_lazy, value_decref): Update.
772
773 2018-04-06 Tom Tromey <tom@tromey.com>
774
775 * value.c (struct value) <released, next>: Remove.
776 (all_values): Now a std::vector.
777 (allocate_value_lazy): Update.
778 (value_next): Remove.
779 (value_mark, value_free_to_mark, release_value)
780 (value_release_to_mark): Update.
781
782 2018-04-06 Tom Tromey <tom@tromey.com>
783
784 * value.h (fetch_subexp_value, value_release_to_mark): Update.
785 (free_value_chain): Remove.
786 * value.c (free_value_chain): Remove.
787 (value_release_to_mark): Return a std::vector.
788 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
789 std::vector.
790 (check_condition): Update.
791 * eval.c (fetch_subexp_value): Change "val_chain" to a
792 std::vector.
793 * breakpoint.c (update_watchpoint): Update.
794 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
795
796 2018-04-06 Tom Tromey <tom@tromey.com>
797
798 * value.h (free_all_values): Remove.
799 * value.c (free_all_values): Remove.
800
801 2018-04-06 Tom Tromey <tom@tromey.com>
802
803 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
804 (value_history_chain, value_history_count): Remove.
805 (value_history): New global.
806 (record_latest_value, access_value_history, show_values)
807 (preserve_values): Update.
808
809 2018-04-06 Tom Tromey <tom@tromey.com>
810
811 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
812 * varobj.c (varobj_set_display_format, varobj_set_value)
813 (install_default_visualizer, construct_visualizer)
814 (install_new_value, ~varobj, varobj_get_value_type)
815 (my_value_of_variable, varobj_editable_p): Update.
816 * c-varobj.c (c_describe_child, c_value_of_variable)
817 (cplus_number_of_children, cplus_describe_child): Update.
818 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
819 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
820 (ada_value_of_variable, ada_value_is_changeable_p): Update.
821
822 2018-04-06 Tom Tromey <tom@tromey.com>
823
824 * printcmd.c (last_examine_address): Change type to
825 value_ref_ptr.
826 (do_examine, x_command): Update.
827
828 2018-04-06 Tom Tromey <tom@tromey.com>
829
830 * value.c (release_value): Update.
831 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
832 (struct bpstats) <val>: Now a value_ref_ptr.
833 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
834 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
835 (~watchpoint, print_it_watchpoint, watch_command_1)
836 (invalidate_bp_value_on_memory_change): Update.
837
838 2018-04-06 Tom Tromey <tom@tromey.com>
839
840 * varobj.c (varobj_clear_saved_item)
841 (update_dynamic_varobj_children, install_new_value, ~varobj):
842 Update.
843 * value.h (value_incref): Move declaration earlier.
844 (value_decref): Rename from value_free.
845 (struct value_ref_policy): New.
846 (value_ref_ptr): New typedef.
847 (struct value_deleter): Remove.
848 (gdb_value_up): Remove typedef.
849 (release_value): Change return type.
850 (release_value_or_incref): Remove.
851 * value.c (set_value_parent): Update.
852 (value_incref): Change return type.
853 (value_decref): Rename from value_free.
854 (value_free_to_mark, free_all_values, free_value_chain): Update.
855 (release_value): Return value_ref_ptr.
856 (release_value_or_incref): Remove.
857 (record_latest_value, set_internalvar, clear_internalvar):
858 Update.
859 * stack.c (info_frame_command): Don't call value_free.
860 * python/py-value.c (valpy_dealloc, valpy_new)
861 (value_to_value_object): Update.
862 * printcmd.c (do_examine): Update.
863 * opencl-lang.c (lval_func_free_closure): Update.
864 * mi/mi-main.c (register_changed_p): Don't call value_free.
865 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
866 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
867 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
868 value_free.
869 * guile/scm-value.c (vlscm_free_value_smob)
870 (vlscm_scm_from_value): Update.
871 * frame.c (frame_register_unwind, frame_unwind_register_signed)
872 (frame_unwind_register_unsigned, get_frame_register_bytes)
873 (put_frame_register_bytes): Don't call value_free.
874 * findvar.c (address_from_register): Don't call value_free.
875 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
876 * dwarf2loc.c (entry_data_value_free_closure)
877 (value_of_dwarf_reg_entry, free_pieced_value_closure)
878 (dwarf2_evaluate_loc_desc_full): Update.
879 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
880 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
881 (~watchpoint, watch_command_1)
882 (invalidate_bp_value_on_memory_change): Update.
883 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
884
885 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
886
887 PR gdb/23022
888 * warning.m4: Add -Wno-error=deprecated-register.
889 * configure: Re-generate.
890
891 2018-04-05 Tom Tromey <tom@tromey.com>
892
893 * linespec.h: Remove include of "vec.h".
894
895 2018-04-05 Tom Tromey <tom@tromey.com>
896
897 * linespec.c (typep): Remove typedef.
898 (find_methods, find_superclass_methods): Take a std::vector.
899 (find_method): Use std::vector.
900
901 2018-04-05 Tom Tromey <tom@tromey.com>
902
903 * utils.c (compare_strings): Remove.
904 * utils.h (compare_strings): Remove.
905 * objc-lang.h (find_imps): Update.
906 * objc-lang.c (find_methods): Take a std::vector.
907 (uniquify_strings, find_imps): Likewise.
908 * linespec.c (find_methods): Take a std::vector.
909 (decode_objc): Use std::vector.
910 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
911 a std::vector.
912 (find_method, find_function_symbols): Use std::vector.
913
914 2018-04-05 Tom Tromey <tom@tromey.com>
915
916 * completer.c (completion_tracker::completion_tracker): Remove
917 cast.
918 (completion_tracker::discard_completions): Likewise.
919 * breakpoint.c (ambiguous_names_p): Remove cast.
920 * ada-lang.c (_initialize_ada_language): Remove cast.
921 * utils.h (streq): Update.
922 (streq_hash): Add new declaration.
923 * utils.c (streq): Return bool.
924 (streq_hash): New function.
925
926 2018-04-05 Tom Tromey <tom@tromey.com>
927
928 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
929 Remove a string copy.
930
931 2018-04-05 Tom Tromey <tom@tromey.com>
932
933 * linespec.c (filter_results): Use std::vector.
934 (decode_line_2, decode_line_full): Update.
935
936 2018-04-05 Tom Tromey <tom@tromey.com>
937
938 * linespec.c (canonical_to_fullform): Return std::string.
939 (filter_results): Update.
940 (struct decode_line_2_item): Add constructor.
941 <fullform, displayform>: Now std::string.
942 (decode_line_2_compare_items): Now a std::sort comparator.
943 (decode_line_2): Update.
944
945 2018-04-05 Tom Tromey <tom@tromey.com>
946
947 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
948 (unexpected_linespec_error): Update.
949 (linespec_parse_basic, parse_linespec): Update.
950
951 2018-04-05 Tom Tromey <tom@tromey.com>
952
953 * linespec.c (linespec_parse_basic): Reindent.
954
955 2018-04-05 Tom Tromey <tom@tromey.com>
956
957 * minsyms.h (iterate_over_minimal_symbols): Update.
958 * minsyms.c (iterate_over_minimal_symbols): Take a
959 gdb::function_view.
960 * linespec.c (struct collect_minsyms): Remove.
961 (compare_msyms): Now a std::sort comparator.
962 (add_minsym): Add parameters.
963 (search_minsyms_for_name): Update. Use std::vector.
964
965 2018-04-03 Tom Tromey <tom@tromey.com>
966
967 * mipsread.c (read_alphacoff_dynamic_symtab): Use
968 gdb::byte_vector.
969
970 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
971
972 * MAINTAINERS (Write After Approval): Add Weimin Pan.
973
974 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
975
976 PR gdb/16959
977 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
978 printing static type.
979
980 2018-04-01 Tom Tromey <tom@tromey.com>
981
982 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
983 (rs6000_xfer_shared_libraries): Update.
984
985 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
986
987 * common/gdb_vecs.h (char_ptr): Remove.
988 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
989
990 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
991
992 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
993 with std::vector.
994 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
995
996 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
997
998 * tracepoint.h (struct uploaded_tp): Initialize fields.
999 <actions, step_actions, cmd_strings>: Change type to
1000 std::vector<char *>.
1001 * tracepoint.c (get_uploaded_tp): Allocate with new.
1002 (free_uploaded_tps): Free with delete.
1003 (parse_tracepoint_definition): Adjust to std::vector change.
1004 * breakpoint.c (read_uploaded_action): Likewise.
1005 (create_tracepoint_from_upload): Likewise.
1006 * ctf.c (ctf_write_uploaded_tp): Likewise.
1007 (SET_ARRAY_FIELD): Likewise.
1008 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
1009
1010 2018-03-30 Tom Tromey <tom@tromey.com>
1011
1012 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
1013 std::unique_ptr.
1014 (svr4_keep_data_in_core): Update.
1015 (svr4_read_so_list): Update.
1016
1017 2018-03-30 Tom Tromey <tom@tromey.com>
1018
1019 * windows-nat.c (handle_output_debug_string, handle_exception):
1020 Update.
1021 * target.h (target_read_string): Update.
1022 * target.c (target_read_string): Change "string" to
1023 unique_xmalloc_ptr.
1024 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
1025 Update.
1026 * solib-frv.c (frv_current_sos): Update.
1027 * solib-dsbt.c (dsbt_current_sos): Update.
1028 * solib-darwin.c (darwin_current_sos): Update.
1029 * linux-thread-db.c (inferior_has_bug): Update.
1030 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
1031 Update. Remove alloca.
1032 * ada-lang.c (ada_main_name): Update.
1033
1034 2018-03-30 Tom Tromey <tom@tromey.com>
1035
1036 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
1037 (struct dwo_file_deleter): New.
1038 (dwo_file_up): New typedef.
1039 (open_and_init_dwo_file): Use dwo_file_up.
1040 (free_dwo_file_cleanup): Remove.
1041
1042 2018-03-30 Tom Tromey <tom@tromey.com>
1043
1044 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
1045 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
1046
1047 2018-03-30 Tom Tromey <tom@tromey.com>
1048
1049 * dwarf2read.c (class free_cached_comp_units): New class.
1050 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
1051 (free_cached_comp_units): Remove function.
1052
1053 2018-03-30 Tom Tromey <tom@tromey.com>
1054
1055 * utils.h (make_cleanup_unpush_target): Remove.
1056 * inf-ptrace.c (struct target_unpusher): New.
1057 (target_unpush_up) New typedef.
1058 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
1059 target_unpush_up.
1060 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
1061
1062 2018-03-27 Tom Tromey <tom@tromey.com>
1063
1064 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
1065
1066 2018-03-27 Pedro Alves <palves@redhat.com>
1067 Tom Tromey <tom@tromey.com>
1068
1069 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
1070 destructor. Now a class.
1071 (gdb_readline_wrapper_cleanup): Remove function.
1072 (gdb_readline_wrapper): Remove cleanups.
1073
1074 2018-03-27 Tom Tromey <tom@tromey.com>
1075
1076 * typeprint.h (struct type_print_options) <local_typedefs,
1077 global_typedefs>: Remove "struct" keyword.
1078 (class typedef_hash_table): New class.
1079 (recursively_update_typedef_hash, add_template_parameters)
1080 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
1081 (find_typedef_in_hash): Don't declare.
1082 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
1083 (typedef_hash_table::recursively_update): Rename from
1084 recursively_update_typedef_hash. Now a member.
1085 (typedef_hash_table::add_template_parameters): Rename from
1086 add_template_parameters. Now a member.
1087 (typedef_hash_table::typedef_hash_table): Now a constructor;
1088 rename from create_typedef_hash.
1089 (typedef_hash_table::~typedef_hash_table): Now a destructor;
1090 rename from free_typedef_hash.
1091 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
1092 (do_free_global_table): Remove.
1093 (typedef_hash_table::typedef_hash_table): New constructor; renamed
1094 from copy_type_recursive.
1095 (create_global_typedef_table): Remove.
1096 (typedef_hash_table::find_global_typedef): Now a member of
1097 typedef_hash_table.
1098 (typedef_hash_table::find_typedef): Rename from
1099 find_typedef_in_hash; now a member.
1100 (whatis_exp): Update.
1101 * extension.h (struct ext_lang_type_printers): Add constructor and
1102 destructor.
1103 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
1104 declare.
1105 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
1106 Now a constructor; rename from start_ext_lang_type_printers.
1107 (ext_lang_type_printers): Now a destructor; rename from
1108 free_ext_lang_type_printers.
1109 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
1110 Update.
1111 (c_type_print_base_struct_union): Update. Remove cleanups.
1112
1113 2018-03-27 Tom Tromey <tom@tromey.com>
1114
1115 * dwarf-index-write.c: Include <cmath>.
1116
1117 2018-03-27 Joel Brobecker <brobecker@adacore.com>
1118
1119 * NEWS: Add entry describing new "set|show varsize-limit" command.
1120 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
1121 command.
1122 * printcmd.c (_initialize_printcmd): Add "set var" alias of
1123 "set variable".
1124
1125 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
1126
1127 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
1128 dwarf-index-write.c
1129 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
1130 * dwarf-index-common.c: New file.
1131 * dwarf-index-common.h: New file.
1132 * dwarf-index-write.c: New file.
1133 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
1134 (struct dwarf2_section_info): Move from here.
1135 (dwarf2_section_info_def): Likewise.
1136 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
1137 (offset_type): Likewise.
1138 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
1139 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
1140 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
1141 (byte_swap): Likewise.
1142 (MAYBE_SWAP): Likewise.
1143 (dwarf2_per_cu_ptr): Likewise.
1144 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
1145 (struct tu_stats): Likewise.
1146 (struct dwarf2_per_objfile): Likewise.
1147 (struct dwarf2_per_cu_data): Likewise.
1148 (struct signatured_type): Likewise.
1149 (sig_type_ptr): Likewise.
1150 (DEF_VEC_P (sig_type_ptr)): Likewise.
1151 (INDEX4_SUFFIX): Likewise.
1152 (INDEX5_SUFFIX): Likewise.
1153 (DEBUG_STR_SUFFIX): Likewise.
1154 (dwarf2_read_section): Make non-static.
1155 (mapped_index_string_hash): Move from here.
1156 (dwarf5_djb_hash): Likewise.
1157 (file_write): Likewise.
1158 (class data_buf): Likewise.
1159 (struct symtab_index_entry): Likewise.
1160 (struct mapped_symtab): Likewise.
1161 (find_slot): Likewise.
1162 (hash_expand): Likewise.
1163 (add_index_entry): Likewise.
1164 (uniquify_cu_indices): Likewise.
1165 (class c_str_view): Likewise.
1166 (class c_str_view_hasher): Likewise.
1167 (class vector_hasher): Likewise.
1168 (write_hash_table): Likewise.
1169 (psym_index_map): Likewise.
1170 (struct addrmap_index_data): Likewise.
1171 (add_address_entry): Likewise.
1172 (add_address_entry_worker): Likewise.
1173 (write_address_map): Likewise.
1174 (symbol_kind): Likewise.
1175 (write_psymbols): Likewise.
1176 (struct signatured_type_index_data): Likewise.
1177 (write_one_signatured_type): Likewise.
1178 (recursively_count_psymbols): Likewise.
1179 (recursively_write_psymbols): Likewise.
1180 (class debug_names): Likewise.
1181 (check_dwarf64_offsets): Likewise.
1182 (psyms_seen_size): Likewise.
1183 (write_gdbindex): Likewise.
1184 (write_debug_names): Likewise.
1185 (assert_file_size): Likewise.
1186 (write_psymtabs_to_index): Likewise.
1187 (save_gdb_index_command): Likewise.
1188 (_initialize_dwarf2_read): Don't register the "save gdb-index"
1189 command.
1190 * dwarf2read.h: New file.
1191
1192 2018-03-27 Joel Brobecker <brobecker@adacore.com>
1193
1194 PR gdb/22670
1195 * dwarf2read.c (dwarf2_physname): Do not return the demangled
1196 symbol name if the CU's language stores symbol names in linkage
1197 format.
1198 * language.h (struct language_defn)
1199 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
1200 all instances of this struct.
1201
1202 2018-03-26 Tom Tromey <tom@tromey.com>
1203
1204 * stack.c (backtrace_command_1): Remove verbose code.
1205
1206 2018-03-26 Tom Tromey <tom@tromey.com>
1207
1208 * python/py-framefilter.c (py_print_type): Don't catch
1209 exceptions. Return void.
1210 (py_print_value): Likewise.
1211 (py_print_single_arg): Likewise.
1212 (enumerate_args): Don't catch exceptions.
1213 (py_print_args): Likewise.
1214 (py_print_frame): Likewise.
1215 (gdbpy_apply_frame_filter): Catch exceptions here.
1216
1217 2018-03-26 Tom Tromey <tom@tromey.com>
1218
1219 * stack.c (_initialize_stack): Remove trailing newlines from help
1220 text. Add "Usage" line to "backtrace" help.
1221
1222 2018-03-26 Tom Tromey <tom@tromey.com>
1223
1224 PR python/16486:
1225 * python/py-framefilter.c (py_print_args): Call wrap_hint.
1226
1227 2018-03-26 Tom Tromey <tom@tromey.com>
1228
1229 * python/py-framefilter.c (py_print_single_arg): Return
1230 EXT_LANG_BT_ERROR from catch.
1231
1232 2018-03-26 Tom Tromey <tom@tromey.com>
1233
1234 PR backtrace/15584:
1235 * stack.c (backtrace_command_1): Move some code into no-filters
1236 "if".
1237
1238 2018-03-26 Tom Tromey <tom@tromey.com>
1239
1240 * python/py-framefilter.c (throw_quit_or_print_exception): New
1241 function.
1242 (gdbpy_apply_frame_filter): Use it.
1243
1244 2018-03-26 Tom Tromey <tom@tromey.com>
1245
1246 PR cli/17716:
1247 * python/py-framefilter.c (py_print_type, py_print_value)
1248 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
1249 RETURN_MASK_ERROR.
1250
1251 2018-03-26 Tom Tromey <tom@tromey.com>
1252
1253 * python/py-framefilter.c (enumerate_args): Use
1254 gdb::unique_xmalloc_ptr.
1255
1256 2018-03-26 Tom Tromey <tom@tromey.com>
1257
1258 * python/py-framefilter.c (py_print_frame): Return
1259 EXT_LANG_BT_OK.
1260 (gdbpy_apply_frame_filter): Update comment.
1261 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
1262 Remove.
1263 <EXT_LANG_BT_NO_FILTERS>: Change value.
1264
1265 2018-03-26 Tom Tromey <tom@tromey.com>
1266
1267 PR backtrace/15582:
1268 * stack.c (backtrace_command): Parse "hide" argument.
1269 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
1270 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
1271 constant.
1272
1273 2018-03-26 Tom Tromey <tom@tromey.com>
1274
1275 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
1276 add "flags".
1277 (backtrace_command): Remove "fulltrace", add "flags".
1278
1279 2018-03-26 Tom Tromey <tom@tromey.com>
1280
1281 * stack.c (backtrace_command): Rewrite command line parsing.
1282
1283 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
1284
1285 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
1286
1287 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
1288
1289 * filename-seen-cache.h: Add include guard.
1290
1291 2018-03-26 Keith Seitz <keiths@redhat.com>
1292
1293 * symfile.c (place_section): Remove "struct" from section_addr_info
1294 in comment.
1295 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
1296 "struct" keyword from section_addr_info.
1297
1298 2018-03-26 Alan Hayward <alan.hayward@arm.com>
1299
1300 * regformats/regdef.h (reg): Add constructors.
1301
1302 2018-03-25 Pedro Alves <palves@redhat.com>
1303
1304 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
1305 if then/else bodies in var_func_name extraction.
1306
1307 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
1308
1309 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
1310 lookup_minimal_symbol() to find symbol entry.
1311 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
1312
1313 2018-03-23 Keith Seitz <keiths@redhat.com>
1314
1315 PR c++/22968
1316 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
1317 nested type definitions for C++, too.
1318
1319 2018-03-23 Tom Tromey <tom@tromey.com>
1320
1321 * machoread.c (struct oso_el): Add a constructor. Don't define as
1322 a typedef.
1323 (macho_register_oso): Remove.
1324 (macho_symtab_read): Take a std::vector.
1325 (oso_el_compare_name): Now a std::sort comparator.
1326 (macho_symfile_read_all_oso): Take a std::vector.
1327 (macho_symfile_read): Use std::vector. Remove cleanups.
1328
1329 2018-03-22 Tom Tromey <tom@tromey.com>
1330
1331 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
1332 (record_full_goto_bookmark): Use std::string.
1333
1334 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1335
1336 PR tdep/18295
1337 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
1338 a single mask.
1339
1340 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1341
1342 * rs6000-tdep.c (store_insn_p): New function.
1343 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
1344 and cr_reg to their unshifted values. Use store_insn_p to
1345 match LR saves using either R1 or fdata->alloca_reg. Use
1346 store_insn_p to match CR saves. Set alloca_reg_offset
1347 when alloca_reg and framep are set. Remove lr_reg shift
1348 when assigning to fdata->lr_register.
1349
1350 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
1351
1352 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
1353 command line args instead of emitting a warning.
1354
1355 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
1356
1357 * tracepoint.h (struct static_tracepoint_marker): Initialize
1358 fields, define default constructor, move constructor and move
1359 assignment, disable the rest.
1360 <str_id, extra>: Make std::string.
1361 (release_static_tracepoint_marker): Remove.
1362 (free_current_marker): Remove.
1363 * tracepoint.c (free_current_marker): Remove.
1364 (parse_static_tracepoint_marker_definition): Adjust to
1365 std::string, use new hex2str overload.
1366 (release_static_tracepoint_marker): Remove.
1367 (print_one_static_tracepoint_marker): Get marker by reference
1368 and adjust to std::string.
1369 (info_static_tracepoint_markers_command): Adjust to std::vector
1370 changes
1371 * target.h (static_tracepoint_marker_p): Remove typedef.
1372 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
1373 (struct target_ops) <to_static_tracepoint_marker_at>: Return
1374 bool.
1375 <to_static_tracepoint_markers_by_strid>: Return std::vector.
1376 * target-debug.h
1377 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
1378 (target_debug_print_std_vector_static_tracepoint_marker): New.
1379 (target_debug_print_struct_static_tracepoint_marker_p): Rename
1380 to...
1381 (target_debug_print_static_tracepoint_marker_p): ... this.
1382 * target-delegates.c: Re-generate.
1383 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
1384 Make std::string.
1385 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
1386 (decode_static_tracepoint_spec): Adjust to std::vector.
1387 (tracepoint_print_one_detail): Adjust to std::string.
1388 (strace_marker_decode_location): Adjust to std::string.
1389 (update_static_tracepoint): Adjust to std::string, remove call
1390 to release_static_tracepoint_marker.
1391 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1392 Adjust to std::vector.
1393 * remote.c (remote_static_tracepoint_marker_at): Return bool.
1394 (remote_static_tracepoint_markers_by_strid): Adjust to
1395 std::vector.
1396 * common/rsp-low.h (hex2str): New overload with explicit count
1397 of bytes.
1398 * common/rsp-low.c (hex2str): New overload with explicit count
1399 of bytes.
1400 * unittests/rsp-low-selftests.c (test_hex2str): New function.
1401 (_initialize_rsp_low_selftests): Add test_hex2str test.
1402 * unittests/tracepoint-selftests.c
1403 (test_parse_static_tracepoint_marker_definition): Adjust to
1404 std::string.
1405
1406 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
1407
1408 * tracepoint.c (parse_static_tracepoint_marker_definition):
1409 Consider case where the definition is followed by more
1410 definitions.
1411 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1412 tracepoint-selftests.c.
1413 * unittests/tracepoint-selftests.c: New.
1414
1415 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1416
1417 * MAINTAINERS (Write After Approval): Add Pedro Franco de
1418 Carvalho.
1419
1420 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
1421
1422 * symtab.c (find_pc_sect_line): fixed indentation.
1423
1424 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
1425
1426 * symtab.c (find_pc_sect_line): now uses binary search.
1427
1428 2018-03-19 Tom Tromey <tom@tromey.com>
1429
1430 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
1431 "IDENT" production.
1432
1433 2018-03-19 Pedro Alves <palves@redhat.com>
1434 Tom Tromey <tom@tromey.com>
1435
1436 * unittests/observable-selftests.c: New file.
1437 * common/observable.h: New file.
1438 * observable.h: New file.
1439 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
1440 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
1441 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
1442 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
1443 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
1444 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
1445 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
1446 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
1447 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
1448 python/py-breakpoint.c, python/py-finishbreakpoint.c,
1449 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
1450 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
1451 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
1452 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
1453 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
1454 tui/tui-interp.c, valops.c: Update all users.
1455 * tui/tui-hooks.c (tui_bp_created_observer)
1456 (tui_bp_deleted_observer, tui_bp_modified_observer)
1457 (tui_inferior_exit_observer, tui_before_prompt_observer)
1458 (tui_normal_stop_observer, tui_register_changed_observer):
1459 Remove.
1460 (tui_observers_token): New global.
1461 (attach_or_detach, tui_attach_detach_observers): New functions.
1462 (tui_install_hooks, tui_remove_hooks): Use
1463 tui_attach_detach_observers.
1464 * record-btrace.c (record_btrace_thread_observer): Remove.
1465 (record_btrace_thread_observer_token): New global.
1466 * observer.sh: Remove.
1467 * observer.c: Rename to observable.c.
1468 * observable.c (namespace gdb_observers): Define new objects.
1469 (observer_debug): Move into gdb_observers namespace.
1470 (struct observer, struct observer_list, xalloc_observer_list_node)
1471 (xfree_observer_list_node, generic_observer_attach)
1472 (generic_observer_detach, generic_observer_notify): Remove.
1473 (_initialize_observer): Update.
1474 Don't include observer.inc.
1475 * Makefile.in (generated_files): Remove observer.h, observer.inc.
1476 (clean mostlyclean): Likewise.
1477 (observer.h, observer.inc): Remove targets.
1478 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
1479 (COMMON_SFILES): Use observable.c, not observer.c.
1480 * .gitignore: Remove observer.h.
1481
1482 2018-03-18 Tom Tromey <tom@tromey.com>
1483
1484 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
1485 gdb::def_vector.
1486 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
1487
1488 2018-03-17 Tom Tromey <tom@tromey.com>
1489
1490 * auto-load.c (auto_load_objfile_script_1): Use std::string.
1491
1492 2018-03-17 Tom Tromey <tom@tromey.com>
1493
1494 * target.c (class scoped_target_fd): New.
1495 (target_fileio_close_cleanup): Remove.
1496 (target_fileio_read_alloc_1): Use scoped_target_fd.
1497
1498 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
1499
1500 * silent-rules.mk: New.
1501 * Makefile.in: Include silent-rules.mk
1502 (srcdir, VPATH, top_srcdir): Move up.
1503 (COMPILE): Add ECHO_CXX.
1504 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
1505 (init.c): Add ECHO_INIT_C.
1506 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1507 (version.c): Add ECHO_GEN.
1508 (printcmd.o): Add ECHO_CXX.
1509 (target-float.o): Add ECHO_CXX.
1510 (ada-exp.o): Add ECHO_CXX.
1511 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
1512 (insight$(EXEEXT)): Add ECHO_CXXLD.
1513 * gnulib/configure.ac: Add AM_SILENT_RULES.
1514 * gnulib/aclocal.m4: Re-generate.
1515 * gnulib/configure: Re-generate.
1516 * gnulib/import/Makefile.in: Re-generate.
1517
1518 2018-03-16 Tom Tromey <tom@tromey.com>
1519
1520 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
1521 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
1522 * utils.c (do_free_section_addr_info)
1523 (make_cleanup_free_section_addr_info): Remove.
1524 * symfile.h (struct other_sections): Add constructor.
1525 (struct section_addr_info): Remove.
1526 (section_addr_info): New typedef.
1527 (struct sym_fns) <sym_offsets>: Change type of parameter.
1528 (build_section_addr_info_from_objfile)
1529 (relative_addr_info_to_section_offsets, addr_info_make_relative)
1530 (default_symfile_offsets, symbol_file_add)
1531 (symbol_file_add_from_bfd)
1532 (build_section_addr_info_from_section_table): Update.
1533 (alloc_section_addr_info, free_section_addr_info): Don't declare.
1534 * symfile.c (alloc_section_addr_info): Remove.
1535 (build_section_addr_info_from_section_table): Change return type.
1536 Update.
1537 (build_section_addr_info_from_bfd)
1538 (build_section_addr_info_from_objfile): Likewise.
1539 (free_section_addr_info): Remove.
1540 (relative_addr_info_to_section_offsets): Change type of "addrs".
1541 (addrs_section_compar): Now a std::sort comparator.
1542 (addrs_section_sort): Change return type.
1543 (addr_info_make_relative): Change type of "addrs". Update.
1544 (default_symfile_offsets, syms_from_objfile_1)
1545 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
1546 (symbol_file_add_separate): Update.
1547 (symbol_file_add): Change type of "addrs". Update.
1548 (add_symbol_file_command): Update. Remove cleanups.
1549 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
1550 cleanups.
1551 * symfile-debug.c (debug_sym_offsets): Change type of "info".
1552 * solib.c (solib_read_symbols): Update.
1553 * objfiles.c (objfile_relocate): Update. Remove cleanups.
1554 * machoread.c (macho_symfile_offsets): Update.
1555 * jit.c (jit_bfd_try_read_symtab): Update.
1556
1557 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1558
1559 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1560 unittests/utils-selftests.c.
1561 * unittests/utils-selftests.c: New file.
1562
1563 2018-03-14 Tom Tromey <tom@tromey.com>
1564
1565 PR cli/14977:
1566 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
1567 for NULL.
1568
1569 2018-03-14 Tom Tromey <tom@tromey.com>
1570
1571 PR cli/19918:
1572 * printcmd.c (printf_pointer): Allow "-" in format.
1573
1574 2018-03-14 Tom Tromey <tom@tromey.com>
1575
1576 * printcmd.c (_initialize_printcmd): Add usage to printf.
1577
1578 2018-03-14 Yao Qi <qiyao@sourceware.org>
1579
1580 * MAINTAINERS: Update my email address.
1581
1582 2018-03-13 Tom Tromey <tom@tromey.com>
1583
1584 * machoread.c (macho_check_dsym): Change filenamep to a
1585 std::string*.
1586 (macho_symfile_read): Update.
1587 * symfile.c (load_command): Use std::string.
1588
1589 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
1592 to error message string.
1593 (riscv_register_name): Use xsnprintf instead of sprintf.
1594 (riscv_insn::fetch_instruction): Use gdb_assert instead of
1595 internal_error.
1596 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
1597 error.
1598 (riscv_push_dummy_call): Likewise.
1599
1600 2018-03-12 Tom Tromey <tom@tromey.com>
1601
1602 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
1603 Use gdb::byte_vector.
1604 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
1605
1606 2018-03-12 Yao Qi <yao.qi@linaro.org>
1607
1608 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
1609 parameter type to readable_regcache.
1610 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
1611 the declaration.
1612
1613 2018-03-11 Tom Tromey <tom@tromey.com>
1614
1615 * dwarf2read.c (struct nextfield): Add initializers.
1616 (struct nextfnfield): Remove.
1617 (struct fnfieldlist): Add initializers. Remove "length" and
1618 "head", use std::vector.
1619 (struct decl_field_list): Remove.
1620 (struct field_info): Add initializers.
1621 <fields, baseclasses>: Now std::vector.
1622 <nbaseclasses, nfnfields, typedef_field_list_count,
1623 nested_types_list_count>: Remove.
1624 (dwarf2_add_field, dwarf2_add_type_defn)
1625 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1626 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
1627 (process_structure_scope): Update.
1628
1629 2018-03-11 Tom Tromey <tom@tromey.com>
1630
1631 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
1632 for use by std::sort.
1633 (build_type_psymtabs_1): Use std::vector.
1634
1635 2018-03-09 Eli Zaretskii <eliz@gnu.org>
1636
1637 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
1638 and LIBMPFR in the printed configuration.
1639
1640 2018-03-08 Tom Tromey <tom@tromey.com>
1641
1642 * source.c (get_filename_and_charpos): Use scoped_fd.
1643 * nto-procfs.c (procfs_open_1): Use scoped_fd.
1644 (procfs_pidlist): Likewise.
1645 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
1646 (iterate_over_mappings): Likewise.
1647
1648 2018-03-08 Tom Tromey <tom@tromey.com>
1649
1650 * infcall.c (struct call_return_meta_info)
1651 <stack_temporaries_enabled>: Remove.
1652 (get_call_return_value, call_function_by_hand_dummy): Update.
1653 * thread.c (disable_thread_stack_temporaries): Remove.
1654 (enable_thread_stack_temporaries): Remove.
1655 (thread_stack_temporaries_enabled_p): Return bool.
1656 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
1657 (get_last_thread_stack_temporary): Update.
1658 * eval.c (evaluate_subexp): Update.
1659 * gdbthread.h (class enable_thread_stack_temporaries): Now a
1660 class, not a function.
1661 (value_ptr, value_vec): Remove typedefs.
1662 (class thread_info) <stack_temporaries_enabled>: Now bool.
1663 <stack_temporaries>: Now a std::vector.
1664 (thread_stack_temporaries_enabled_p)
1665 (value_in_thread_stack_temporaries): Return bool.
1666
1667 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
1668
1669 * remote.c (putpkt_binary): Fix omitted bytes reporting.
1670 (getpkt_or_notif_sane_1): Likewise.
1671
1672 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1673
1674 * build-id.c (build_id_to_debug_bfd): Use std::string.
1675
1676 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1677
1678 * build-id.c (find_separate_debug_file_by_buildid): Return
1679 std::string.
1680 * build-id.h (find_separate_debug_file_by_buildid): Return
1681 std::string.
1682 * coffread.c (coff_symfile_read): Adjust to std::string.
1683 * elfread.c (elf_symfile_read): Adjust to std::string.
1684 * symfile.c (separate_debug_file_exists): Change parameter to
1685 std::string.
1686 (find_separate_debug_file): Return std::string.
1687 (find_separate_debug_file_by_debuglink): Return std::string.
1688 * symfile.h (find_separate_debug_file_by_debuglink): Return
1689 std::string.
1690
1691 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1692
1693 * common/xml-utils.c (xml_escape_text): Move code to...
1694 (xml_escape_text_append): ... this new function.
1695 * common/xml-utils.h (xml_escape_text_append): New declaration.
1696 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
1697 New function.
1698 (_initialize_xml_utils): register test_xml_escape_text_append as
1699 a selftest.
1700
1701 2018-03-07 Alan Hayward <alan.hayward@arm.com>
1702
1703 * defs.h: Remove MAX_REGISTER_SIZE.
1704 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
1705 asserts.
1706 * python/py-unwind.c (pyuw_sniffer): Likewise.
1707
1708 2018-03-07 Tom Tromey <tom@tromey.com>
1709
1710 * linux-tdep.c (linux_info_proc): Update.
1711 * target.h (struct target_ops) <to_fileio_readlink>: Return
1712 optional<string>.
1713 (target_fileio_readlink): Return optional<string>.
1714 * remote.c (remote_hostio_readlink): Return optional<string>.
1715 * inf-child.c (inf_child_fileio_readlink): Return
1716 optional<string>.
1717 * target.c (target_fileio_readlink): Return optional<string>.
1718
1719 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
1720
1721 * regcache.c (cooked_read_test): Add riscv to the list of
1722 architectures that have a save_reggroup.
1723
1724 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1725
1726 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
1727 value is not a dynamic class object.
1728
1729 2018-03-06 Tom Tromey <tom@tromey.com>
1730
1731 * rust-exp.y: Formatting fixes.
1732
1733 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1734
1735 * riscv-tdep.c (riscv_register_name): Remove target description
1736 support.
1737 (riscv_gdbarch_init): Remove target description check.
1738
1739 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1740
1741 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
1742 comment.
1743 * riscv-tdep.h: Likewise.
1744
1745 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1746
1747 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
1748 (riscv_pseudo_register_write): Delete.
1749 (riscv_gdbarch_init): Remove all use of pseudo registers.
1750
1751 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1752
1753 * record-btrace.c (btrace_print_lines): Replace cleanup
1754 parameter with RAII equivalents.
1755 (btrace_insn_history): Replace cleanup with RAII equivalents.
1756 * ui-out.h (make_cleanup_ui_out_list_begin_end,
1757 make_cleanup_ui_out_tuple_begin_end): Remove.
1758 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
1759 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
1760 make_cleanup_ui_out_list_begin_end): Remove.
1761
1762 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1763
1764 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
1765 parameter types to std::vector. Use bool.
1766 (record_btrace_wait): Replace VEC(tp_t) with
1767 std::vector<thread_info *>.
1768 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
1769
1770 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1771
1772 * record-btrace.c (record_btrace_disable_callback): Remove.
1773 (struct scoped_btrace_disable): New.
1774 (record_btrace_open): Use scoped_btrace_disable.
1775
1776 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1777
1778 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
1779 reading values from registers.
1780
1781 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
1784 where appropriate.
1785
1786 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1787
1788 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
1789 change parameter type. Use GDB's print functions, and use
1790 core_addr_to_string where appropriate.
1791 (riscv_push_dummy_call): Use core_addr_to_string where
1792 appropriate, update call to riscv_print_arg_location, and reindent
1793 a few lines.
1794 (riscv_return_value): Update call to riscv_print_arg_location.
1795
1796 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1797 Tim Newsome <tim@sifive.com>
1798 Albert Ou <a0u@eecs.berkeley.edu>
1799 Darius Rad <darius@bluespec.com>
1800
1801 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
1802 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
1803 (ALLDEPFILES): Add riscv-tdep.c
1804 * configure.tgt: Add riscv support.
1805 * riscv-tdep.c: New file.
1806 * riscv-tdep.h: New file.
1807 * NEWS: Mention new target.
1808 * MAINTAINERS: Add entry for riscv.
1809
1810 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1811
1812 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
1813 fields within aggregates.
1814
1815 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1816
1817 * record-btrace.c (btrace_print_lines): Change type of flags to
1818 gdb_disassembly_flags.
1819
1820 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1821
1822 * fbsd-nat.c: Include "inf-ptrace.h".
1823 (USE_SIGTRAP_SIGINFO): Conditionally define.
1824 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
1825 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
1826 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
1827 function.
1828 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
1829 Likewise.
1830 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
1831 Likewise.
1832 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
1833 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
1834 "supports_stopped_by_hw_breakpoint" target methods.
1835
1836 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1837
1838 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
1839 * fbsd-nat.c (debug_fbsd_nat): New variable.
1840 (show_fbsd_nat_debug): New function.
1841 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
1842 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
1843
1844 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1845
1846 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
1847 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
1848 prototype.
1849 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
1850 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
1851 method.
1852
1853 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1854
1855 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
1856 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
1857
1858 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1859
1860 * charset.c (struct charset_vector): New.
1861 (charsets): Change type to charset_vector.
1862 (find_charset_names): Adjust.
1863 (add_one): Adjust.
1864 (_initialize_charset): Adjust.
1865
1866 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1867
1868 * progspace.h (struct program_space) <deleted_solibs>: Change
1869 type to std::vector<std::string>.
1870 * progspace.c (clear_program_space_solib_cache): Adjust.
1871 * breakpoint.c (print_solib_event): Adjust.
1872 (check_status_catch_solib): Adjust.
1873 * solib.c (update_solib_list): Adjust.
1874 * ui-out.h (class ui_out) <field_string>: New overload.
1875 * ui-out.c (ui_out::field_string): New overload.
1876
1877 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1878
1879 * progspace.h (struct program_space): Add constructor and
1880 destructor, initialize fields.
1881 (add_program_space): Remove.
1882 * progspace.c (add_program_space): Rename to...
1883 (program_space::program_space): ... this.
1884 (release_program_space): Rename to...
1885 (program_space::~program_space): ... this.
1886 (delete_program_space): Use delete to delete program_space.
1887 (initialize_progspace): Use new to allocate program_space.
1888 * inferior.c (add_inferior_with_spaces): Likewise.
1889 (clone_inferior_command): Likewise.
1890 * infrun.c (follow_fork_inferior): Likewise.
1891 (handle_vfork_child_exec_or_exit): Likewise.
1892
1893 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1894
1895 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
1896 (delim_string_to_char_ptr_vec): Return std::vector of
1897 gdb::unique_xmalloc_ptr.
1898 (dirnames_to_char_ptr_vec_append): Take std::vector of
1899 gdb::unique_xmalloc_ptr.
1900 (dirnames_to_char_ptr_vec): Return std::vector of
1901 gdb::unique_xmalloc_ptr.
1902 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
1903 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
1904 (delim_string_to_char_ptr_vec): Return an std::vector of
1905 gdb::unique_xmalloc_ptr, adjust the code.
1906 (dirnames_to_char_ptr_vec_append): Take an std::vector of
1907 gdb::unique_xmalloc_ptr, adjust the code.
1908 (dirnames_to_char_ptr_vec): Return an std::vector of
1909 gdb::unique_xmalloc_ptr, adjust the code.
1910 * auto-load.c (auto_load_safe_path_vec): Change type to
1911 std::vector of gdb::unique_xmalloc_ptr.
1912 (auto_load_expand_dir_vars): Return an std::vector of
1913 gdb::unique_xmalloc_ptr, adjust the code.
1914 (auto_load_safe_path_vec_update): Adjust.
1915 (filename_is_in_auto_load_safe_path_vec): Adjust.
1916 (auto_load_objfile_script_1): Adjust.
1917 * build-id.c (build_id_to_debug_bfd): Adjust.
1918 * linux-thread-db.c (thread_db_load_search): Adjust.
1919 * source.c (add_path): Adjust.
1920 (openp): Adjust.
1921 * symfile.c (find_separate_debug_file): Adjust.
1922 * utils.c (do_free_char_ptr_vec): Remove.
1923 (make_cleanup_free_char_ptr_vec): Remove.
1924
1925 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
1926
1927 PR gdb/22907
1928 * common/pathstuff.c: Conditionally include "<windows.h>".
1929
1930 2018-03-01 Georg Sauthoff <mail@georg.so>
1931
1932 PR gdb/22888
1933 * gcore.in: Quote variables and switch interpreter to bash.
1934
1935 2018-03-01 Tom Tromey <tom@tromey.com>
1936
1937 * dwarf2read.c (alloc_discriminant_info): Fix default_index
1938 assertion. Add assertion for discriminant_index.
1939 (quirk_rust_enum): Use correct base type name in univariant case.
1940
1941 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
1942
1943 * record.c (get_call_history_modifiers): Return a
1944 record_print_flags.
1945 (cmd_record_call_history): Adjust.
1946 * record-btrace.c (record_btrace_call_history): Adjust.
1947 (record_btrace_call_history_range): Adjust.
1948 (record_btrace_call_history_from): Adjust.
1949 * target-debug.h (target_debug_print_record_print_flags): New.
1950 * target-delegates.c: Re-generate.
1951 * target.c (target_call_history): Change flags type.
1952 (target_call_history_from): Likewise.
1953 (target_call_history_range): Likewise.
1954 * target.h (struct target_ops) <target_call_history>: Likewise.
1955 (target_call_history_from): Likewise.
1956 (target_call_history_range): Likewise.
1957
1958 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1959 Simon Marchi <simon.marchi@polymtl.ca>
1960
1961 * common/common-utils.c: Include "sys/stat.h".
1962 (is_regular_file): Move here from "source.c"; change return
1963 type to "bool".
1964 * common/common-utils.h (is_regular_file): New prototype.
1965 * common/pathstuff.c (contains_dir_separator): New function.
1966 * common/pathstuff.h (contains_dir_separator): New prototype.
1967 * source.c: Don't include "sys/stat.h".
1968 (is_regular_file): Move to "common/common-utils.c".
1969
1970 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1971
1972 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
1973 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
1974 * auto-load.c: Include "common/pathstuff.h".
1975 * common/common-def.h (current_directory): Move here.
1976 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
1977 function.
1978 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
1979 prototype.
1980 * common/pathstuff.c: New file.
1981 * common/pathstuff.h: New file.
1982 * compile/compile.c: Include "common/pathstuff.h".
1983 * defs.h (current_directory): Move to "common/common-defs.h".
1984 * dwarf2read.c: Include "common/pathstuff.h".
1985 * exec.c: Likewise.
1986 * guile/scm-safe-call.c: Likewise.
1987 * linux-thread-db.c: Likewise.
1988 * main.c: Likewise.
1989 * nto-tdep.c: Likewise.
1990 * objfiles.c: Likewise.
1991 * source.c: Likewise.
1992 * symtab.c: Likewise.
1993 * utils.c: Include "common/pathstuff.h".
1994 (gdb_realpath): Move to "common/pathstuff.c".
1995 (gdb_realpath_keepfile): Likewise.
1996 (gdb_abspath): Likewise.
1997 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
1998 (gdb_realpath_keepfile): Likewise.
1999 (gdb_abspath): Likewise.
2000
2001 2018-02-28 John Baldwin <jhb@FreeBSD.org>
2002
2003 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
2004 wildcard process pid for super_resume for kernels with a
2005 specific bug.
2006
2007 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
2008
2009 * compile/compile.c (get_args): Add additional comments
2010 explaining function.
2011
2012 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
2013 Tom Tromey <tom@tromey.com>
2014
2015 * target.h (memory_write_request_s): Remove typedef. Don't define
2016 VEC.
2017 (target_write_memory_blocks): Change argument to std::vector.
2018 (struct memory_write_request): Add constructor.
2019 * target-memory.c (compare_block_starting_address): Return bool.
2020 Change argument types.
2021 (claim_memory): Change arguments to use std::vector.
2022 (split_regular_and_flash_blocks, blocks_to_erase)
2023 (compute_garbled_blocks): Likewise.
2024 (cleanup_request_data, cleanup_write_requests_vector): Remove.
2025 (target_write_memory_blocks): Change argument to std::vector.
2026 * symfile.c (struct load_section_data): Add constructor and
2027 destructor. Use std::vector for "requests".
2028 (struct load_progress_data): Add initializers.
2029 (load_section_callback): Update. Use "new".
2030 (clear_memory_write_data): Remove.
2031 (generic_load): Update.
2032
2033 2018-02-27 Alan Hayward <alan.hayward@arm.com>
2034
2035 * arch/aarch64.h: Use common/tdesc.h.
2036
2037 2018-02-26 Maciej W. Rozycki <macro@mips.com>
2038
2039 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
2040 architecture with a 64-bit ABI.
2041
2042 2018-02-26 Maciej W. Rozycki <macro@mips.com>
2043
2044 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
2045 ahead of target description loading.
2046
2047 2018-02-26 Tom Tromey <tom@tromey.com>
2048
2049 * stack.c (backtrace_command_1): Update.
2050 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
2051 of "flags".
2052 * python/py-framefilter.c (py_print_frame)
2053 (gdbpy_apply_frame_filter): Change type of "flags".
2054 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
2055 of "flags".
2056 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
2057 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
2058 * extension.h (enum frame_filter_flag): Rename from
2059 frame_filter_flags.
2060 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
2061 (apply_ext_lang_frame_filter): Change type of "flags".
2062 * extension.c (apply_ext_lang_frame_filter): Change type of
2063 "flags".
2064 * extension-priv.h (struct extension_language_ops)
2065 <apply_frame_filter>: Change type of "flags".
2066
2067 2018-02-26 Tom Tromey <tom@tromey.com>
2068
2069 PR python/16497:
2070 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
2071 off-by-one in py_end computation.
2072 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
2073 PRINT_MORE_FRAMES.
2074 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
2075 constant.
2076
2077 2018-02-26 Tom Tromey <tom@tromey.com>
2078
2079 * dwarf2read.c (struct variant_field): New.
2080 (struct nextfield) <variant>: New field.
2081 (dwarf2_add_field): Handle DW_TAG_variant_part.
2082 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
2083 discriminated union.
2084 (read_structure_type): Handle DW_TAG_variant_part.
2085 (handle_struct_member_die): New function, extracted from
2086 process_structure_scope. Handle DW_TAG_variant.
2087 (process_structure_scope): Handle discriminated unions. Call
2088 handle_struct_member_die.
2089
2090 2018-02-26 Tom Tromey <tom@tromey.com>
2091
2092 * rust-lang.h (rust_last_path_segment): Declare.
2093 * rust-lang.c (rust_last_path_segment): Now public. Change
2094 contract.
2095 (struct disr_info): Remove.
2096 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
2097 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
2098 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
2099 (rust_enum_p, rust_enum_variant): New function.
2100 (rust_underscore_fields): Remove "offset" parameter.
2101 (rust_print_enum): New function.
2102 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
2103 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
2104 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
2105 enums.
2106 (rust_internal_print_type): New function, from rust_print_type.
2107 Remove enum code.
2108 (rust_print_type): Call rust_internal_print_type.
2109 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
2110 Update enum handling.
2111 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
2112 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
2113 (rust_union_quirks): New functions.
2114 (process_full_comp_unit, process_full_type_unit): Call
2115 rust_union_quirks.
2116 (process_structure_scope): Update rust_unions if necessary.
2117
2118 2018-02-26 Tom Tromey <tom@tromey.com>
2119
2120 * value.h (value_union_variant): Declare.
2121 * valops.c (value_union_variant): New function.
2122 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
2123 (struct discriminant_info): New.
2124 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
2125 enumerator.
2126 (struct main_type) <flag_discriminated_union>: New field.
2127
2128 2018-02-26 Tom Tromey <tom@tromey.com>
2129
2130 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2131 unittests/unpack-selftests.c.
2132 * unittests/unpack-selftests.c: New file.
2133 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
2134
2135 2018-02-26 Yao Qi <yao.qi@linaro.org>
2136
2137 * dwarf2read.c (struct partial_die_info) <read>: New method.
2138 (read_partial_die): Remove the declaration.
2139 (load_partial_dies): Update.
2140 (partial_die_info::partial_die_info):
2141 (read_partial_die): Change it to partial_die_info::read.
2142
2143 2018-02-26 Yao Qi <yao.qi@linaro.org>
2144
2145 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
2146 (fixup_partial_die): Remove declaration.
2147 (scan_partial_symbols): Update.
2148 (partial_die_parent_scope): Likewise.
2149 (partial_die_full_name): Likewise.
2150 (fixup_partial_die): Change it to partial_die_info::fixup.
2151
2152 2018-02-26 Yao Qi <yao.qi@linaro.org>
2153
2154 * dwarf2read.c (read_partial_die): Update the declaration.
2155 (load_partial_dies): Caller update.
2156 (read_partial_die): Remove one argument abbrev_len.
2157
2158 2018-02-26 Yao Qi <yao.qi@linaro.org>
2159
2160 * dwarf2read.c (struct partial_die_info): Add ctor, delete
2161 assignment operator.
2162 (load_partial_dies): Use ctor and copy ctor.
2163 (read_partial_die): Update.
2164 (dwarf2_cu::find_partial_die): Use ctor.
2165
2166 2018-02-26 Yao Qi <yao.qi@linaro.org>
2167
2168 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
2169 (find_partial_die_in_comp_unit): Change it to
2170 dwarf2_cu::find_partial_die.
2171 (find_partial_die): Update.
2172
2173 2018-02-26 Yao Qi <yao.qi@linaro.org>
2174
2175 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
2176 is NULL.
2177
2178 2018-02-26 Yao Qi <yao.qi@linaro.org>
2179
2180 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
2181
2182 2018-02-26 Alan Hayward <alan.hayward@arm.com>
2183
2184 * arch/amd64.h: Use common/tdesc.h.
2185 * arch/i386.c: Likewise.
2186 * arch/i386.h: Likewise.
2187 * arch/tic6x.c: Likewise.
2188 * arch/tdesc.h: Move file from here...
2189 * common/tdesc.h: ...to here.
2190 * features/aarch64-core.c: Regenerate.
2191 * features/aarch64-fpu.c: Regenerate.
2192 * features/i386/32bit-avx.c: Regenerate.
2193 * features/i386/32bit-avx512.c: Regenerate.
2194 * features/i386/32bit-core.c: Regenerate.
2195 * features/i386/32bit-linux.c: Regenerate.
2196 * features/i386/32bit-mpx.c: Regenerate.
2197 * features/i386/32bit-pkeys.c: Regenerate.
2198 * features/i386/32bit-sse.c: Regenerate.
2199 * features/i386/64bit-avx.c: Regenerate.
2200 * features/i386/64bit-avx512.c: Regenerate.
2201 * features/i386/64bit-core.c: Regenerate.
2202 * features/i386/64bit-linux.c: Regenerate.
2203 * features/i386/64bit-mpx.c: Regenerate.
2204 * features/i386/64bit-pkeys.c: Regenerate.
2205 * features/i386/64bit-segments.c: Regenerate.
2206 * features/i386/64bit-sse.c: Regenerate.
2207 * features/i386/x32-core.c: Regenerate.
2208 * features/tic6x-c6xp.c: Regenerate.
2209 * features/tic6x-core.c: Regenerate.
2210 * features/tic6x-gp.c: Regenerate.
2211 * target-descriptions.c: Use common/tdesc.h.
2212 * target-descriptions.h: Likewise.
2213
2214 2018-02-24 Tom Tromey <tom@tromey.com>
2215
2216 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2217 (try_thread_db_load_from_dir, thread_db_load_search): Use
2218 std::string.
2219 (info_auto_load_libthread_db_compare): Return bool. Change
2220 argument types.
2221 (info_auto_load_libthread_db): Use std::vector, std::string.
2222 Remove cleanups.
2223
2224 2018-02-24 Tom Tromey <tom@tromey.com>
2225
2226 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
2227 std::string.
2228 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
2229 std::string*.
2230 * gdbarch.c: Rebuild.
2231 * gdbarch.h: Rebuild.
2232 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
2233 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
2234 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
2235 std::string*.
2236
2237 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2238
2239 * gdbtypes.h (sect_offset): Change type to uint64_t.
2240 (sect_offset_str): New function.
2241 * dwarf2read.c (create_addrmap_from_aranges): Use
2242 sect_offset_str.
2243 (error_check_comp_unit_head): Likewise.
2244 (create_debug_type_hash_table): Likewise.
2245 (read_cutu_die_from_dwo): Likewise.
2246 (init_cutu_and_read_dies): Likewise.
2247 (init_cutu_and_read_dies_no_follow): Likewise.
2248 (process_psymtab_comp_unit_reader): Likewise.
2249 (partial_die_parent_scope): Likewise.
2250 (peek_die_abbrev): Likewise.
2251 (process_queue): Likewise.
2252 (dwarf2_physname): Likewise.
2253 (read_namespace_alias): Likewise.
2254 (read_import_statement): Likewise.
2255 (create_dwo_cu_reader): Likewise.
2256 (create_cus_hash_table): Likewise.
2257 (lookup_dwo_cutu): Likewise.
2258 (inherit_abstract_dies): Likewise.
2259 (read_func_scope): Likewise.
2260 (read_call_site_scope): Likewise.
2261 (dwarf2_add_member_fn): Likewise.
2262 (read_common_block): Likewise.
2263 (read_module_type): Likewise.
2264 (read_typedef): Likewise.
2265 (read_subrange_type): Likewise.
2266 (load_partial_dies): Likewise.
2267 (read_partial_die): Likewise.
2268 (find_partial_die): Likewise.
2269 (read_str_index): Likewise.
2270 (dwarf2_string_attr): Likewise.
2271 (build_error_marker_type): Likewise.
2272 (lookup_die_type): Likewise.
2273 (dump_die_shallow): Likewise.
2274 (follow_die_ref): Likewise.
2275 (dwarf2_fetch_die_loc_sect_off): Likewise.
2276 (dwarf2_fetch_constant_bytes): Likewise.
2277 (follow_die_sig): Likewise.
2278 (get_signatured_type): Likewise.
2279 (get_DW_AT_signature_type): Likewise.
2280 (dwarf2_find_containing_comp_unit): Likewise.
2281 (set_die_type): Likewise.
2282
2283 2018-02-21 John Baldwin <jhb@FreeBSD.org>
2284
2285 * arch/aarch64.c: Include "common-defs.h".
2286 * arch/amd64.c: Likewise.
2287 * arch/i386.c: Likewise.
2288
2289 2018-02-21 Tom Tromey <tom@tromey.com>
2290
2291 * value.h: (extract_field_op): Update.
2292 * eval.c (extract_field_op): Return a const char *.
2293 * expression.h (parse_expression_for_completion): Update.
2294 * completer.c (complete_expression): Update.
2295 (add_struct_fields): Make fieldname const.
2296 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
2297 (mark_completion_tag, parse_exp_in_context_1): Update.
2298 (parse_expression_for_completion): Change "name" to
2299 unique_xmalloc_ptr*.
2300
2301 2018-02-21 Tom Tromey <tom@tromey.com>
2302
2303 * infcall.c (call_function_by_hand_dummy): Use std::vector.
2304
2305 2018-02-21 Yao Qi <yao.qi@linaro.org>
2306
2307 * avr-tdep.c (avr_read_pc): Change parameter type to
2308 readable_regcache.
2309 * gdbarch.sh (read_pc): Likewise.
2310 * gdbarch.c: Re-generated.
2311 * gdbarch.h: Re-generated.
2312 * hppa-tdep.c (hppa_read_pc): Change parameter type to
2313 readable_regcache.
2314 * ia64-tdep.c (ia64_read_pc): Likewise.
2315 * mips-tdep.c (mips_read_pc): Likewise.
2316 * spu-tdep.c (spu_read_pc): Likewise.
2317
2318 2018-02-21 Yao Qi <yao.qi@linaro.org>
2319
2320 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
2321 * regcache-dump.c: New file.
2322 * regcache.c: Move register_dump to regcache-dump.c.
2323 (maintenance_print_registers): Likewise.
2324 (maintenance_print_raw_registers): Likewise.
2325 (maintenance_print_cooked_registers): Likewise.
2326 (maintenance_print_register_groups): Likewise.
2327 (maintenance_print_remote_registers): Likewise.
2328 (_initialize_regcache): Likewise.
2329 * regcache.h (register_dump): Moved from regcache.c.
2330
2331 2018-02-21 Yao Qi <yao.qi@linaro.org>
2332
2333 * regcache.c (regcache::regcache): Update.
2334 (regcache::invalidate): Move it to detached_regcache::invalidate.
2335 (get_thread_arch_aspace_regcache): Update.
2336 (regcache::raw_update): Update.
2337 (regcache::cooked_read): Remove some code.
2338 (regcache::cooked_read_value): Likewise.
2339 (regcache::raw_write): Remove assert on m_readonly_p.
2340 (regcache::raw_supply_integer): Move it to
2341 detached_regcache::raw_supply_integer.
2342 (regcache::raw_supply_zeroed): Likewise.
2343 * regcache.h (detached_regcache) <raw_supply_integer>: New
2344 declaration.
2345 <raw_supply_zeroed, invalidate>: Likewise.
2346 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
2347 <invalidate>: Likewise.
2348 <m_readonly_p>: Removed.
2349
2350 2018-02-21 Yao Qi <yao.qi@linaro.org>
2351
2352 * infcmd.c (get_return_value): Let stop_regs point to
2353 get_current_regcache.
2354 * regcache.c (regcache::regcache): Remove.
2355 (register_dump_reg_buffer): New class.
2356 (regcache_print): Adjust.
2357 * regcache.h (regcache): Remove constructors.
2358
2359 2018-02-21 Yao Qi <yao.qi@linaro.org>
2360
2361 * regcache.c (class register_dump): New class.
2362 (register_dump_regcache, register_dump_none): New class.
2363 (register_dump_remote, register_dump_groups): New class.
2364 (regcache_print): Update.
2365 * regcache.h (regcache_dump_what): Move it to regcache.c.
2366 (regcache) <dump>: Remove.
2367
2368 2018-02-21 Yao Qi <yao.qi@linaro.org>
2369
2370 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
2371 reg_buffer_rw *.
2372 (jit_unwind_reg_set_impl): Call raw_supply.
2373 (jit_frame_sniffer): Use reg_buffer_rw.
2374 * record-full.c (record_full_core_regbuf): Change its type.
2375 (record_full_core_open_1): Use reg_buffer_rw.
2376 (record_full_close): Likewise.
2377 (record_full_core_fetch_registers): Use regcache->raw_supply.
2378 (record_full_core_store_registers): Likewise.
2379 * regcache.c (regcache::get_register_status): Move it to
2380 reg_buffer.
2381 (regcache_raw_set_cached_value): Remove.
2382 (regcache::raw_set_cached_value): Remove.
2383 (regcache::raw_write): Call raw_supply.
2384 (regcache::raw_supply): Move it to reg_buffer_rw.
2385 * regcache.h (regcache_raw_set_cached_value): Remove.
2386 (reg_buffer_rw): New class.
2387
2388 2018-02-21 Yao Qi <yao.qi@linaro.org>
2389
2390 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
2391 readonly_detached_regcache.
2392 (dummy_frame_prev_register): Use regcache->cooked_read.
2393 * frame.c (frame_save_as_regcache): Change return type.
2394 (frame_pop): Update.
2395 * frame.h (frame_save_as_regcache): Update declaration.
2396 * inferior.h (get_infcall_suspend_state_regcache): Update
2397 declaration.
2398 * infrun.c (infcall_suspend_state) <registers>: use
2399 readonly_detached_regcache.
2400 (save_infcall_suspend_state): Don't use regcache_dup.
2401 (get_infcall_suspend_state_regcache): Change return type.
2402 * linux-fork.c (struct fork_info) <savedregs>: Change to
2403 readonly_detached_regcache.
2404 <pc>: New field.
2405 (fork_save_infrun_state): Don't use regcache_dup.
2406 (info_checkpoints_command): Adjust.
2407 * mi/mi-main.c (register_changed_p): Update declaration.
2408 (mi_cmd_data_list_changed_registers): Use
2409 readonly_detached_regcache.
2410 (register_changed_p): Change parameter type to
2411 readonly_detached_regcache.
2412 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
2413 readonly_detached_regcache.
2414 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
2415 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
2416 New.
2417 (regcache::save): Move it to reg_buffer.
2418 (regcache::restore): Change parameter type.
2419 (regcache_dup): Remove.
2420 * regcache.h (reg_buffer) <save>: New method.
2421 (readonly_detached_regcache): New class.
2422 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
2423 readonly_detached_regcache.
2424 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
2425
2426 2018-02-21 Yao Qi <yao.qi@linaro.org>
2427
2428 * frame.c (frame_save_as_regcache): Use regcache method save.
2429 (frame_pop): Use regcache method restore.
2430 * infrun.c (restore_infcall_suspend_state): Likewise.
2431 * linux-fork.c (fork_load_infrun_state): Likewise.
2432 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
2433 save.
2434 * regcache.c (regcache_save): Remove.
2435 (regcache::restore): More asserts.
2436 (regcache_cpy): Remove.
2437 * regcache.h (regcache_save): Remove the declaration.
2438 (regcache::restore): Move from private to public.
2439 Remove the friend declaration of regcache_cpy.
2440 (regcache_cpy): Remove declaration.
2441
2442 2018-02-21 Yao Qi <yao.qi@linaro.org>
2443
2444 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
2445 parameter type to 'readable_regcache *'.
2446 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2447 * arm-tdep.c (arm_neon_quad_read): Likewise.
2448 (arm_pseudo_read): Likewise.
2449 * avr-tdep.c (avr_pseudo_register_read): Likewise.
2450 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2451 * frv-tdep.c (frv_pseudo_register_read): Likewise.
2452 * gdbarch.c: Re-generated.
2453 * gdbarch.h: Re-generated.
2454 * gdbarch.sh (pseudo_register_read): Change parameter type to
2455 'readable_regcache *'.
2456 (pseudo_register_read_value): Likewise.
2457 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
2458 (h8300_pseudo_register_read): Likewise.
2459 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
2460 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2461 (i386_pseudo_register_read_into_value): Likewise.
2462 (i386_pseudo_register_read_value): Likewise.
2463 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
2464 declaration.
2465 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
2466 * m32c-tdep.c (m32c_raw_read): Likewise.
2467 (m32c_read_flg): Likewise.
2468 (m32c_banked_register): Likewise.
2469 (m32c_banked_read): Likewise.
2470 (m32c_sb_read): Likewise.
2471 (m32c_part_read): Likewise.
2472 (m32c_cat_read): Likewise.
2473 (m32c_r3r2r1r0_read): Likewise.
2474 (m32c_pseudo_register_read): Likewise.
2475 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2476 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2477 (mep_pseudo_cr64_read): Likewise.
2478 (mep_pseudo_register_read): Likewise.
2479 * mips-tdep.c (mips_pseudo_register_read): Likewise.
2480 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2481 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2482 * regcache.c (regcache::raw_read): Move it to readable_regcache.
2483 (regcache::cooked_read): Likewise.
2484 (regcache::cooked_read_value): Likewise.
2485 (regcache_cooked_read_signed):
2486 (regcache::cooked_read): Likewise.
2487 * regcache.h (readable_regcache): New class.
2488 (regcache): Inherit readable_regcache. Move some methods to
2489 readable_regcache.
2490 * rl78-tdep.c (rl78_pseudo_register_read): Change
2491 parameter type to 'readable_regcache *'.
2492 * rs6000-tdep.c (do_regcache_raw_read): Remove.
2493 (e500_pseudo_register_read): Change parameter type to
2494 'readable_regcache *'.
2495 (dfp_pseudo_register_read): Likewise.
2496 (vsx_pseudo_register_read): Likewise.
2497 (efpr_pseudo_register_read): Likewise.
2498 * s390-tdep.c (s390_pseudo_register_read): Likewise.
2499 * sh-tdep.c (sh_pseudo_register_read): Likewise.
2500 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
2501 (sh64_pseudo_register_read): Likewise.
2502 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2503 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2504 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2505 (spu_pseudo_register_read): Likewise.
2506 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2507 (xtensa_pseudo_register_read): Likewise.
2508
2509 2018-02-21 Yao Qi <yao.qi@linaro.org>
2510
2511 * regcache.c (regcache::regcache): Call reg_buffer ctor.
2512 (regcache::arch): Move it to reg_buffer::arch.
2513 (regcache::register_buffer): Likewise.
2514 (regcache::assert_regnum): Likewise.
2515 (regcache::num_raw_registers): Likewise.
2516 * regcache.h (reg_buffer): New class.
2517 (regcache): Inherit reg_buffer.
2518
2519 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
2520
2521 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
2522 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
2523
2524 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
2525
2526 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
2527
2528 2018-02-19 Alan Hayward <alan.hayward@arm.com>
2529
2530 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
2531 (SFILES): Remove common/*.c files.
2532 (COMMON_OBS): Remove some *.o files built from common/*.c files.
2533 * common/common.host: Add common reference.
2534 * configure.ac: Likewise.
2535 * configure: Regenerate.
2536
2537 2018-02-16 Yao Qi <yao.qi@linaro.org>
2538
2539 * block.c (block_namespace_info): Inherit allocate_on_obstack.
2540 (block_initialize_namespace): Use new.
2541 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
2542 (dwarf2_free_objfile): Use delete.
2543 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
2544 (copy_type_recursive): Use new.
2545 * gdb_obstack.h (allocate_on_obstack): New.
2546
2547 2018-02-15 Yao Qi <yao.qi@linaro.org>
2548
2549 PR gdb/22849
2550 * inferior.c (exit_inferior_1): Reset inf->control.
2551
2552 2018-02-15 Joel Brobecker <brobecker@adacore.com>
2553
2554 * ada-lang.c (ada_to_fixed_value_create): Delete advance
2555 declaration.
2556
2557 2018-02-14 Pedro Alves <palves@redhat.com>
2558
2559 * frame-unwind.c (frame_unwind_try_unwinder): Always call
2560 frame_cleanup_after_sniffer on exception.
2561
2562 2018-02-14 Tom Tromey <tom@tromey.com>
2563
2564 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
2565 const.
2566 (solib_bfd_open): Make pathname const.
2567 * solib.c (solib_bfd_open): Make pathname const.
2568 * solib-spu.c (spu_bfd_fopen): Make name const.
2569 (spu_bfd_open): Make pathname const.
2570 * solib-darwin.c (darwin_bfd_open): Make pathname const.
2571 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
2572
2573 2018-02-14 Tom Tromey <tom@tromey.com>
2574
2575 * symfile.c (symfile_bfd_open): Update.
2576 * source.h (openp, source_full_path_of, find_and_open_source):
2577 Change argument type to unique_xmalloc_ptr.
2578 * source.c (openp): Take a unique_xmalloc_ptr.
2579 (source_full_path_of, find_and_open_source): Likewise.
2580 (open_source_file, symtab_to_fullname): Update.
2581 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
2582 unique_xmalloc_ptr.
2583 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
2584 (exec_file_find): Update.
2585 * psymtab.c (psymtab_to_fullname): Update.
2586 * nto-tdep.h (nto_find_and_open_solib): Update.
2587 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
2588 unique_xmalloc_ptr.
2589 * exec.c (exec_file_attach): Update.
2590 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
2591 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
2592
2593 2018-02-14 Tom Tromey <tom@tromey.com>
2594
2595 * solib.c: Include source.h.
2596 * nto-tdep.c: Include source.h.
2597 * mi/mi-cmd-env.c: Include source.h.
2598 * infcmd.c: Include source.h.
2599 * exec.c: Include source.h.
2600 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
2601 (add_path, directory_switch, source_path, init_source_path): Move
2602 declarations...
2603 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
2604 (add_path, directory_switch, source_path, init_source_path):
2605 ...here.
2606
2607 2018-02-14 Tom Tromey <tom@tromey.com>
2608
2609 * solist.h (exec_file_find, solib_find): Return
2610 unique_xmalloc_ptr.
2611 (solib_bfd_fopen): Take a const char *.
2612 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
2613 (exec_file_find, solib_find): Likewise.
2614 (solib_bfd_fopen): Do not take ownership of "pathname".
2615 (solib_bfd_open): Use unique_xmalloc_ptr.
2616 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
2617 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
2618 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
2619 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
2620
2621 2018-02-14 Joel Brobecker <brobecker@adacore.com>
2622
2623 * ada-lang.c (name_match_type_from_name): Remove reference to
2624 ada_name_for_lookup in function's documentation.
2625 * ada-lang.h (ada_name_for_lookup): Delete declaration.
2626
2627 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
2628
2629 * defs.h (enum openp_flags): New enum.
2630 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
2631 Move to enum openp_flags.
2632 (openp_flags): New enum flags.
2633 (openp): Change parameter type to openp_flags.
2634 * source.c (openp): Change parameter type to openp_flags.
2635 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
2636 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
2637
2638 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
2639
2640 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
2641 per-command.
2642
2643 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2644
2645 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
2646 into...
2647 (class dwarf2_queue_guard): ...the destructor of this new class.
2648 (dw2_do_instantiate_symtab): Create instance of the new class
2649 dwarf2_queue_guard, remove cleanup.
2650
2651 2018-02-09 Tom Tromey <tom@tromey.com>
2652
2653 * source.c (find_source_lines): Don't reference past the end of
2654 the vector.
2655
2656 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2657
2658 * remote.c (remote_btrace_maybe_reopen): Change error message.
2659 * btrace.c (btrace_enable): Likewise.
2660 (parse_xml_btrace): Likewise.
2661 (parse_xml_btrace_conf): Likewise.
2662
2663 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2664
2665 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
2666 (linux_enable_pt, linux_enable_bts): Call
2667 diagnose_perf_event_open_fail.
2668
2669 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2670
2671 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
2672 Remove parameter and change return type. Update callers. Move it.
2673 (linux_enable_bts, linux_enable_pt): Improve error message.
2674 (linux_enable_pt): Remove zero buffer size check.
2675 (linux_enable_btrace): Improve error messages. Remove NULL return
2676 check.
2677
2678 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2679
2680 * btrace.c (btrace_enable): Remove target_supports_btrace call.
2681 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
2682 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
2683 (linux_supports_pt, linux_supports_btrace): Remove.
2684 (linux_enable_bts): Call cpu_supports_bts.
2685 * nat/linux-btrace.h (linux_supports_btrace): Remove.
2686 * remote.c (remote_supports_btrace): Remove.
2687 (init_remote_ops): Remove remote_supports_btrace.
2688 * target-delegates.c: Regenerated.
2689 * target.c (target_supports_btrace): Remove.
2690 * target.h (target_ops) <to_supports_btrace>: Remove
2691 (target_supports_btrace): Remove.
2692 * x86-linux-nat.c (x86_linux_create_target): Remove
2693 linux_supports_btrace.
2694
2695 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2696
2697 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
2698 btrace failed.
2699 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
2700 exception and use message in own exception.
2701
2702 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2703
2704 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
2705 (perf_event_pt_event_type): Use gdb_file_up.
2706 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
2707 scoped_fd, and scoped_mmap.
2708
2709 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2710
2711 * common/scoped_mmap.h: New.
2712 * unittests/scoped_mmap-selftest.c: New.
2713 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2714 unittests/scoped_mmap-selftest.c.
2715
2716 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2717
2718 * common/scoped_fd.h: New.
2719 * unittests/scoped_fd-selftest.c: New.
2720 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2721 unittests/scoped_fd-selftest.c.
2722
2723 2018-02-09 Tom Tromey <tom@tromey.com>
2724
2725 * auto-load.c (auto_load_section_scripts): Use
2726 gdb::unique_xmalloc_ptr.
2727
2728 2018-02-09 Tom Tromey <tom@tromey.com>
2729
2730 * auto-load.c (execute_script_contents): Use std::string.
2731
2732 2018-02-09 Joel Brobecker <brobecker@adacore.com>
2733
2734 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
2735 Python function, rather than a new command.
2736
2737 2018-02-08 Tom Tromey <tom@tromey.com>
2738
2739 * solib.c (solib_find_1): Use std::string.
2740 (solib_bfd_fopen): Use unique_xmalloc_ptr.
2741
2742 2018-02-08 Tom Tromey <tom@tromey.com>
2743
2744 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
2745
2746 2018-02-08 Tom Tromey <tom@tromey.com>
2747
2748 * source.c (find_source_lines): Use gdb::def_vector.
2749
2750 2018-02-08 Tom Tromey <tom@tromey.com>
2751
2752 * macrocmd.c (struct temporary_macro_definition): New.
2753 (macro_define_command): Use temporary_macro_definition. Remove
2754 cleanups.
2755 (free_macro_definition_ptr): Remove.
2756
2757 2018-02-08 Tom Tromey <tom@tromey.com>
2758
2759 * macroexp.c (maybe_expand): Use std::string.
2760
2761 2018-02-08 Tom Tromey <tom@tromey.com>
2762
2763 * macroexp.c (struct macro_buffer): Add initializers for some
2764 members.
2765 (init_buffer, init_shared_buffer, free_buffer)
2766 (free_buffer_return_text): Remove.
2767 (macro_buffer): New constructors.
2768 (~macro_buffer): New destructor.
2769 (macro_buffer::set_shared): New method.
2770 (macro_buffer::resize_buffer, macro_buffer::appendc)
2771 (macro_buffer::appendmem): Now methods, not free functions.
2772 (set_token, append_tokens_without_splicing, stringify)
2773 (macro_stringify): Update.
2774 (gather_arguments): Change return type. Remove argc_p argument,
2775 add args_ptr argument. Use std::vector.
2776 (substitute_args): Remove argc argument. Accept std::vector.
2777 (expand): Update. Use std::vector.
2778 (scan, macro_expand, macro_expand_next): Update.
2779
2780 2018-02-08 Tom Tromey <tom@tromey.com>
2781
2782 * symtab.c (default_collect_symbol_completion_matches_break_on):
2783 Use unique_xmalloc_ptr.
2784 * macroscope.h: (sal_macro_scope, user_macro_scope)
2785 (default_macro_scope): Return unique_xmalloc_ptr.
2786 * macroscope.c (sal_macro_scope, user_macro_scope)
2787 (default_macro_scope): Return unique_xmalloc_ptr.
2788 * macroexp.h (macro_expand, macro_expand_once): Return
2789 unique_xmalloc_ptr.
2790 * macroexp.c (macro_expand, macro_expand_once): Return
2791 unique_xmalloc_ptr.
2792 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2793 (info_macro_command, info_macros_command): Use
2794 unique_xmalloc_ptr.
2795 * compile/compile-c-support.c (write_macro_definitions): Use
2796 unique_xmalloc_ptr.
2797 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
2798
2799 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
2800
2801 * value.c (value_static_field): Assign field type instead of
2802 containing type when returning an optimized out value.
2803
2804 2018-02-06 Yao Qi <yao.qi@linaro.org>
2805
2806 * ft32-tdep.c (ft32_read_pc): Remove.
2807 (ft32_write_pc): Remove.
2808 (ft32_gdbarch_init): Update.
2809 * m32r-tdep.c (m32r_read_pc): Remove.
2810 (m32r_gdbarch_init): Update.
2811 * mep-tdep.c (mep_read_pc): Remove.
2812 (mep_gdbarch_init): Update.
2813 * microblaze-tdep.c (microblaze_write_pc): Remove.
2814 (microblaze_gdbarch_init): Update.
2815 * mn10300-tdep.c (mn10300_read_pc): Remove.
2816 (mn10300_write_pc): Remove.
2817 (mn10300_gdbarch_init): Update.
2818 * moxie-tdep.c (moxie_read_pc): Remove.
2819 (moxie_write_pc): Remove.
2820 (moxie_gdbarch_init): Update.
2821
2822 2018-02-06 Yao Qi <yao.qi@linaro.org>
2823
2824 * expprint.c (print_subexp_standard): Handle
2825 OP_F77_UNDETERMINED_ARGLIST.
2826 (dump_subexp_body_standard): Likewise.
2827
2828 2018-02-05 Alan Hayward <alan.hayward@arm.com>
2829
2830 * target-descriptions.c (tdesc_element_visitor) Add empty
2831 implementations.
2832 (tdesc_type): Move make_gdb_type from here.
2833 (tdesc_type_builtin): Likewise.
2834 (tdesc_type_vector): Likewise.
2835 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
2836 (make_gdb_type_struct): Move from tdesc_type_with_fields.
2837 (make_gdb_type_union): Likewise.
2838 (make_gdb_type_flags): Likewise.
2839 (make_gdb_type_enum): Likewise.
2840 (make_gdb_type): New function.
2841 (tdesc_register_type): Use static make_gdb_type.
2842
2843 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
2844
2845 * infcmd.c (default_print_one_register_info): Align natural-format
2846 column values consistently one under another.
2847 (pad_to_column): New function.
2848
2849 2018-02-05 Joel Brobecker <brobecker@adacore.com>
2850
2851 * dwarf2read.c (dwarf2_physname): Move commment.
2852
2853 2018-02-01 Leszek Swirski <leszeks@google.com>
2854
2855 * varobj.c (varobj_formatted_print_options): Allow recursive
2856 pretty printing if pretty printing is enabled.
2857
2858 2018-02-01 Leszek Swirski <leszeks@google.com>
2859
2860 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
2861 names after a structop as a filename.
2862
2863 2018-02-01 Yao Qi <yao.qi@linaro.org>
2864
2865 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
2866 (arm_record_coproc_data_proc): Likewise.
2867
2868 2018-02-01 Yao Qi <yao.qi@linaro.org>
2869
2870 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
2871
2872 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
2873
2874 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
2875 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
2876
2877 2018-01-31 Pedro Alves <palves@redhat.com>
2878
2879 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
2880 * inflow.c (child_terminal_save_inferior): Wrap reference to
2881 tcgetpgrp in HAVE_TERMIOS_H.
2882 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
2883 _WIN32.
2884 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
2885 always iterate over all inferiors.
2886 (gdbsim_cntrl_c): Adjust.
2887 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
2888
2889 2018-01-31 Joel Brobecker <brobecker@adacore.com>
2890
2891 * gdbtypes.c (lookup_array_range_type): Make sure the array's
2892 index type is objfile-owned if the element type is as well.
2893
2894 2018-01-31 Joel Brobecker <brobecker@adacore.com>
2895
2896 GDB 8.1 released.
2897
2898 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
2899
2900 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
2901 "features/s390x-linux64.c".
2902 (_initialize_s390_linux_tdep): Remove initialization of tdescs
2903 s390_linux32 and s390x_linux64.
2904 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
2905 default tdesc.
2906 * s390-tdep.c: Include "features/s390-linux32.c" and
2907 "features/s390x-linux64.c".
2908 (s390_tdesc_valid): Add check for tdesc_has_registers.
2909 (s390_gdbarch_init): Make sure there is always a valid tdesc.
2910 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
2911 tdesc_s390x_linux64.
2912 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
2913 tdesc_s390x_linux64 to...
2914 * s390-tdep.h: ...here.
2915
2916 2018-01-30 Pedro Alves <palves@redhat.com>
2917
2918 PR gdb/13211
2919 * config.in, configure: Regenerate.
2920 * configure.ac: Check for getpgid.
2921 * go32-nat.c (go32_pass_ctrlc): New.
2922 (go32_target): Install it.
2923 * inf-child.c (inf_child_target): Install
2924 child_terminal_save_inferior, child_pass_ctrlc and
2925 child_interrupt.
2926 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
2927 (inf_ptrace_target): No longer install it.
2928 * infcmd.c (interrupt_target_1): Adjust.
2929 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
2930 (child_interrupt): Declare.
2931 (inferior::terminal_state): New.
2932 * inflow.c (struct terminal_info): Update comments.
2933 (inferior_process_group): Delete.
2934 (terminal_is_ours): Delete.
2935 (gdb_tty_state): New.
2936 (child_terminal_init): Adjust.
2937 (is_gdb_terminal, sharing_input_terminal_1)
2938 (sharing_input_terminal): New functions.
2939 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
2940 Set the process's actual process group in the foreground if
2941 possible. Handle is_ours_for_output/is_ours distinction. Don't
2942 mark terminal as the inferior's if not sharing GDB's terminal.
2943 Don't check attach_flag.
2944 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
2945 pass down a target_terminal_state.
2946 (child_terminal_save_inferior): New, factored out from ...
2947 (child_terminal_ours_1): ... this. Handle
2948 target_terminal_state::is_ours_for_output.
2949 (child_interrupt, child_pass_ctrlc): New.
2950 (inflow_inferior_exit): Clear the inferior's terminal_state.
2951 (copy_terminal_info): Copy the inferior's terminal state.
2952 (_initialize_inflow): Remove reference to terminal_is_ours.
2953 * inflow.h (inferior_process_group): Delete.
2954 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
2955 * procfs.c (procfs_target): Don't install procfs_interrupt.
2956 (procfs_interrupt): Delete.
2957 * remote.c (remote_serial_quit_handler): Adjust.
2958 (remote_interrupt): Remove ptid parameter. Adjust.
2959 * target-delegates.c: Regenerate.
2960 * target.c: Include "terminal.h".
2961 (target_terminal::terminal_state): Rename to ...
2962 (target_terminal::m_terminal_state): ... this.
2963 (target_terminal::init): Adjust.
2964 (target_terminal::inferior): Adjust to per-inferior
2965 terminal_state.
2966 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
2967 (target_terminal::ours, target_terminal::ours_for_output): Use
2968 target_terminal_is_ours_kind.
2969 (target_interrupt): Remove ptid parameter. Adjust.
2970 (default_target_pass_ctrlc): Adjust.
2971 * target.h (target_ops::to_terminal_save_inferior): New field.
2972 (target_ops::to_interrupt): Remove ptid_t parameter.
2973 (target_interrupt): Remove ptid_t parameter. Update comment.
2974 (target_pass_ctrlc): Update comment.
2975 * target/target.h (target_terminal_state): New scoped enum,
2976 factored out of ...
2977 (target_terminal::terminal_state): ... here.
2978 (target_terminal::inferior): Update comments.
2979 (target_terminal::restore_inferior): New.
2980 (target_terminal::is_inferior, target_terminal::is_ours)
2981 (target_terminal::is_ours_for_output): Adjust.
2982 (target_terminal::scoped_restore_terminal_state): Adjust to
2983 rename, and call restore_inferior() instead of inferior().
2984 (target_terminal::scoped_restore_terminal_state::m_state): Change
2985 type.
2986 (target_terminal::terminal_state): Rename to ...
2987 (target_terminal::m_terminal_state): ... this and change type.
2988
2989 2018-01-30 Pedro Alves <palves@redhat.com>
2990
2991 * linux-nat.c (wait_for_signal): New function.
2992 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
2993 directly.
2994 (async_terminal_is_ours)
2995 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
2996 (linux_nat_add_target): Don't override
2997 to_terminal_inferior/to_terminal_ours.
2998
2999 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
3000
3001 * remote.c (remote_follow_fork): Don't call "detach_inferior".
3002
3003 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
3004
3005 * dwarf2read.c (free_dwo_files): Add forward-declaration.
3006 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
3007 dwarf2_per_objfile_free here.
3008 (dwarf2_per_objfile_free): Remove.
3009 (_initialize_dwarf2_read): Don't register
3010 dwarf2_per_objfile_free as a registry cleanup.
3011
3012 2018-01-27 Eli Zaretskii <eliz@gnu.org>
3013
3014 Avoid compilation errors in MinGW native builds
3015
3016 The error is triggered by including python-internal.h, and the
3017 error message is:
3018
3019 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
3020 from build-gnulib/import/math.h:27,
3021 from d:/usr/Python26/include/pyport.h:235,
3022 from d:/usr/Python26/include/Python.h:58,
3023 from python/python-internal.h:94,
3024 from python/py-arch.c:24:
3025 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
3026 using ::hypot;
3027 ^~~~~
3028
3029 This happens because Python headers define 'hypot' to expand t
3030 '_hypot' in the Windows builds.
3031 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
3032 'hypoth'. This avoids a compilation error.
3033
3034 2018-01-26 Alan Hayward <alan.hayward@arm.com>
3035
3036 * MAINTAINERS (Write After Approval): Fix ordering.
3037
3038 2018-01-26 Alan Hayward <alan.hayward@arm.com>
3039
3040 * MAINTAINERS (Write After Approval): Add Alan Hayward.
3041
3042 2018-01-26 Alan Modra <amodra@gmail.com>
3043
3044 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
3045 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
3046 Remove nop. Make const. Comment.
3047 (powerpc32_plt_stub_so_2): New.
3048 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
3049 Correct count. Update uses.
3050 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
3051 Move common code reading PLT entry word. Correct
3052 powerpc32_plt_stub PLT address calculation.
3053 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
3054 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
3055 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
3056 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
3057 (ppc64_standard_linkage8): Likewise.
3058 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
3059 Correct insns description.
3060 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3061
3062 2018-01-24 Pedro Alves <palves@redhat.com>
3063
3064 GCC PR libstdc++/83906
3065 * gdbtypes.c (operator==(const dynamic_prop &,
3066 const dynamic_prop &)): New.
3067 (operator==(const range_bounds &, const range_bounds &)): New.
3068 (check_types_equal): Use them instead of memcmp.
3069 * gdbtypes.h (operator==(const dynamic_prop &,
3070 const dynamic_prop &)): Declare.
3071 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
3072 (operator==(const range_bounds &, const range_bounds &)): Declare.
3073 (operator!=(const range_bounds &, const range_bounds &)): Declare.
3074
3075 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3076
3077 * s390-linux-tdep.c (s390_record_address_mask)
3078 (s390_record_calc_disp_common, s390_record_calc_disp)
3079 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
3080 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
3081 (s390_process_record): Move to s390-tdep.c.
3082 (s390_linux_init_abi_any): Adjust.
3083 * s390-tdep.c (s390_record_address_mask)
3084 (s390_record_calc_disp_common, s390_record_calc_disp)
3085 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
3086 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
3087 (s390_process_record): Moved from s390-linux-tdep.c
3088 (s390_gdbarch_init): Adjust.
3089
3090 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3091
3092 * s390-linux-nat.c (s390-tdep.h): New include.
3093 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
3094 (HFILES_NO_SRCDIR): Add s390-tdep.h.
3095 (ALLDEPFILES): Add s390-tdep.c.
3096 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
3097 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
3098 * s390-tdep.h: ...this. New file.
3099 * s390-linux-tdep.c (s390-tdep.h): New include.
3100 (_initialize_s390_tdep): Rename to...
3101 (_initialize_s390_linux_tdep): ...this and adjust.
3102 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
3103 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
3104 s390-tdep.h.
3105 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
3106 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
3107 (s390_is_partial_instruction, s390_software_single_step)
3108 (is_non_branch_ril, s390_displaced_step_copy_insn)
3109 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
3110 (s390_prologue_data, s390_addr, s390_store, s390_load)
3111 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
3112 (s390_register_call_saved, s390_guess_tracepoint_registers)
3113 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
3114 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
3115 (s390_pseudo_register_name, s390_pseudo_register_type)
3116 (s390_pseudo_register_read, s390_pseudo_register_write)
3117 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
3118 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
3119 (s390_addr_bits_remove, s390_address_class_type_flags)
3120 (s390_address_class_type_flags_to_name)
3121 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
3122 (s390_function_arg_float, s390_function_arg_vector)
3123 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
3124 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
3125 (s390_frame_align, s390_register_return_value, s390_return_value)
3126 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
3127 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
3128 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
3129 (s390_trad_frame_prev_register, s390_unwind_cache)
3130 (s390_prologue_frame_unwind_cache)
3131 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
3132 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
3133 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
3134 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
3135 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
3136 (s390_frame_base_address, s390_local_base_address)
3137 (s390_frame_base, s390_gcc_target_options)
3138 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
3139 (s390_validate_reg_range, s390_tdesc_valid)
3140 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
3141 * s390-tdep.c: ...this. New file.
3142
3143 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3144
3145 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
3146 (s390_process_record, s390_gdbarch_tdep_alloc)
3147 (s390_linux_init_abi_any): Use/set new hook.
3148
3149 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3150
3151 * s390-linux-tdep.c (osabi.h): New include.
3152 (s390_linux_init_abi_31, s390_linux_init_abi_64)
3153 (s390_linux_init_abi_any): New functions.
3154 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
3155
3156 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3157
3158 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
3159 tdesc_has_registers check
3160
3161 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3162
3163 * s390-linux-tdep.c (s390_tdesc_valid): New function.
3164 (s390_validate_reg_range): New macro.
3165 (s390_gdbarch_init): Adjust.
3166
3167 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3168
3169 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
3170 (s390_gdbarch_tdep_alloc): Adjust.
3171 (s390_gdbarch_init): Adjust.
3172
3173 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3174
3175 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
3176 <have_tdb>: Change type to bool.
3177 (s390_gdbarch_tdep_alloc): Adjust.
3178 (s390_gdbarch_init): Adjust.
3179
3180 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3181
3182 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
3183 (gdbarch_tdep) <have_upper, have_vx>: New fields.
3184 (s390_gdbarch_tdep_alloc): New function.
3185 (s390_gdbarch_init): Allocate tdep at start and use its fields
3186 instead of separate variables.
3187
3188 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3189
3190 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
3191 when looking for cached gdbarch and add comment for remaining.
3192
3193 2018-01-22 Pedro Alves <palves@redhat.com>
3194 Sergio Durigan Junior <sergiodj@redhat.com>
3195
3196 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
3197 case.
3198
3199 2018-01-22 Maciej W. Rozycki <macro@mips.com>
3200
3201 * MAINTAINERS: Update my company e-mail address.
3202
3203 2018-01-22 Yao Qi <yao.qi@linaro.org>
3204
3205 * regcache.c (cooked_write_test): New function.
3206 (_initialize_regcache): Register the test.
3207
3208 2018-01-22 Yao Qi <yao.qi@linaro.org>
3209
3210 * ia64-tdep.c (ia64_pseudo_register_read): Call
3211 regcache->cooked_read instead of regcache_cooked_read_unsigned.
3212 * m32c-tdep.c (m32c_cat_read): Likewise.
3213 (m32c_r3r2r1r0_read): Likewise.
3214 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
3215 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
3216
3217 2018-01-22 Yao Qi <yao.qi@linaro.org>
3218
3219 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
3220 method raw_read instead of regcache_raw_read.
3221 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
3222 * arm-tdep.c (arm_neon_quad_read): Likewise.
3223 * avr-tdep.c (avr_pseudo_register_read): Likewise.
3224 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
3225 * frv-tdep.c (frv_pseudo_register_read): Likewise.
3226 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
3227 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3228 (i386_pseudo_register_read_into_value): Likewise.
3229 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
3230 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
3231 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
3232 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
3233 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
3234 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
3235 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
3236 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
3237 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
3238
3239 2018-01-22 Yao Qi <yao.qi@linaro.org>
3240
3241 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
3242 * configure.tgt: Remove target mt.
3243 * mt-tdep.c: Remove.
3244 * regcache.c (cooked_read_test): Remove the check for mt.
3245
3246 2018-01-22 Yao Qi <yao.qi@linaro.org>
3247
3248 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
3249 instead of gdbarch_pseudo_register_read_value.
3250
3251 2018-01-22 Joel Brobecker <brobecker@adacore.com>
3252
3253 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
3254 language is Ada.
3255
3256 2018-01-22 Joel Brobecker <brobecker@adacore.com>
3257
3258 * linespec.c (create_sals_line_offset): Remove code that preserved
3259 the symtab_and_line's line number.
3260
3261 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3262
3263 * varobj.c (varobj_create): Don't set valid_block when creating a
3264 floating varobj.
3265
3266 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3267
3268 * varobj.c (varobj_create): Remove out of date comment.
3269
3270 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 PR mi/20395
3273 * ada-exp.y (write_var_from_sym): Pass extra parameter when
3274 updating innermost block.
3275 * parse.c (innermost_block_tracker::update): Take extra type
3276 parameter, and check types match before updating innermost block.
3277 (write_dollar_variable): Update innermost block for registers.
3278 * parser-defs.h (enum innermost_block_tracker_type): New enum.
3279 (innermost_block_tracker::innermost_block_tracker): Initialise
3280 m_types member.
3281 (innermost_block_tracker::reset): Take type parameter.
3282 (innermost_block_tracker::update): Take type parameter, and pass
3283 type through as needed.
3284 (innermost_block_tracker::m_types): New member.
3285 * varobj.c (varobj_create): Pass type when reseting innermost
3286 block.
3287
3288 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3289
3290 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
3291 * ada-lang.c (resolve_subexp): Likewise.
3292 * breakpoint.c (set_breakpoint_condition) Likewise.
3293 (watch_command_1) Likewise.
3294 * c-exp.y (variable): Likewise.
3295 * d-exp.y (PrimaryExpression): Likewise.
3296 * f-exp.y (variable): Likewise.
3297 * go-exp.y (variable): Likewise.
3298 * m2-exp.y (variable): Likewise.
3299 * objfiles.c (objfile::~objfile): Likewise.
3300 * p-exp.y (variable): Likewise.
3301 * parse.c (innermost_block): Change type.
3302 * parser-defs.h (class innermost_block_tracker): New.
3303 (innermost_block): Change to innermost_block_tracker.
3304 * printcmd.c (display_command): Switch to innermost_block API.
3305 (do_one_display): Likewise.
3306 * rust-exp.y (do_one_display): Likewise.
3307 * symfile.c (clear_symtab_users): Likewise.
3308 * varobj.c (varobj_create): Switch to innermost_block API, replace
3309 use of innermost_block with block stored on varobj object.
3310
3311 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
3312
3313 * expression.h (innermost_block): Remove declaration.
3314 * varobj.c: Add 'parser-defs.h' include.
3315
3316 2018-01-19 Tom Tromey <tom@tromey.com>
3317
3318 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
3319 symbols in the static and global blocks.
3320
3321 2018-01-19 James Clarke <jrtc27@jrtc27.com>
3322
3323 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
3324 gdb_ptrace.h, and move including gdb_wait.h ...
3325 * nat/linux-ptrace.h: ... to here.
3326
3327 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
3328
3329 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
3330 inf_ptrace_detach_success.
3331 (inf_ptrace_detach_success): Add inferior parameter, use it
3332 instead of inferior_ptid, pass it to detach_inferior.
3333 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
3334 parameter.
3335 * inferior.c (detach_inferior): Add overload that takes an
3336 inferior object.
3337 * inferior.h (detach_inferior): Likewise.
3338 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
3339 use inferior_ptid, adjust call to inf_ptrace_detach_success.
3340 * linux-thread-db.c (thread_db_detach): Use inf parameter.
3341
3342 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
3343
3344 * target.h (struct target_ops) <to_detach>: Add inferior
3345 parameter.
3346 (target_detach): Likewise.
3347 * target.c (dispose_inferior): Pass inferior down.
3348 (target_detach): Pass inferior down. Assert that it is equal to
3349 the current inferior.
3350 * aix-thread.c (aix_thread_detach): Pass inferior down.
3351 * corefile.c (core_file_command): Pass current_inferior() down.
3352 * corelow.c (core_detach): Add inferior parameter.
3353 * darwin-nat.c (darwin_detach): Likewise.
3354 * gnu-nat.c (gnu_detach): Likewise.
3355 * inf-ptrace.c (inf_ptrace_detach): Likewise.
3356 * infcmd.c (detach_command): Pass current_inferior() down to
3357 target_detach.
3358 * infrun.c (follow_fork_inferior): Pass parent_inf to
3359 target_detach.
3360 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
3361 target_detach.
3362 * linux-nat.c (linux_nat_detach): Add inferior parameter.
3363 * linux-thread-db.c (thread_db_detach): Likewise.
3364 * nto-procfs.c (procfs_detach): Likewise.
3365 * procfs.c (procfs_detach): Likewise.
3366 * record.c (record_detach): Likewise.
3367 * record.h (struct inferior): Forward-declare.
3368 (record_detach): Add inferior parameter.
3369 * remote-sim.c (gdbsim_detach): Likewise.
3370 * remote.c (remote_detach_1): Likewise.
3371 (remote_detach): Likewise.
3372 (extended_remote_detach): Likewise.
3373 * sol-thread.c (sol_thread_detach): Likewise.
3374 * target-debug.h (target_debug_print_inferior_p): New macro.
3375 * target-delegates.c: Re-generate.
3376 * top.c (kill_or_detach): Pass inferior down to target_detach.
3377 * windows-nat.c (windows_detach): Add inferior parameter.
3378
3379 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
3380
3381 * target.h (struct target_ops) <to_detach>: Remove args
3382 parameter.
3383 (target_detach): Likewise.
3384 * target.c (dispose_inferior): Adjust.
3385 (target_detach): Remove args parameter, adjust.
3386 * aix-thread.c (aix_thread_detach): Adjust.
3387 * corefile.c (core_file_command): Adjust.
3388 * corelow.c (core_detach): Adjust.
3389 * darwin-nat.c (darwin_detach): Adjust.
3390 * gnu-nat.c (gnu_detach): Adjust.
3391 * inf-ptrace.c (inf_ptrace_detach): Adjust.
3392 * infcmd.c (detach_command): Adjust
3393 * infrun.c (follow_fork_inferior): Adjust.
3394 (handle_vfork_child_exec_or_exit): Adjust.
3395 * linux-fork.c (linux_fork_detach): Remove args parameter.
3396 * linux-fork.h (linux_fork_detach): Likewise.
3397 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
3398 * linux-thread-db.c (thread_db_detach): Likewise.
3399 * nto-procfs.c (procfs_detach): Likewise.
3400 * procfs.c (procfs_detach): Likewise.
3401 (do_detach): Remove signo parameter.
3402 * record.c (record_detach): Remove args parameter.
3403 * record.h (record_detach): Likewise.
3404 * remote-sim.c (gdbsim_detach): Likewise.
3405 * remote.c (remote_detach_1): Likewise.
3406 (remote_detach): Likewise.
3407 (extended_remote_detach): Likewise.
3408 * sol-thread.c (sol_thread_detach): Likewise.
3409 * target-delegates.c: Re-generate.
3410 * top.c (struct qt_args) <args>: Remove field.
3411 (kill_or_detach): Don't pass args.
3412 (quit_force): Don't set args.
3413 * windows-nat.c (windows_detach): Remove args parameter.
3414
3415 2018-01-19 Yao Qi <yao.qi@linaro.org>
3416
3417 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
3418 (arm_linux_init_abi): Install it.
3419
3420 2018-01-19 Yao Qi <yao.qi@linaro.org>
3421
3422 * osabi.c (gdb_osabi_names): Extend the regexp for
3423 arm-linux-gnueabihf.
3424
3425 2018-01-18 Yao Qi <yao.qi@linaro.org>
3426
3427 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
3428 m_abbrevs.
3429 (abbrev_table::add_abbrev): Update.
3430 (abbrev_table::lookup_abbrev): Update.
3431
3432 2018-01-18 Yao Qi <yao.qi@linaro.org>
3433
3434 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
3435
3436 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
3437
3438 * compile/compile.c (compile_to_object): Convert "triplet_rx"
3439 to "std::string".
3440
3441 2018-01-17 Tom Tromey <tom@tromey.com>
3442
3443 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
3444
3445 2018-01-17 Tom Tromey <tom@tromey.com>
3446
3447 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
3448 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
3449 (create_array_type_with_stride): Update.
3450 * dwarf2read.c (set_die_type): Update.
3451
3452 2018-01-17 Tom Tromey <tom@tromey.com>
3453
3454 * dwarf2read.c (delayed_method_info): Remove typedef.
3455 (dwarf2_cu::method_info): Now a std::vector.
3456 (add_to_method_list): Update.
3457 (free_delayed_list): Remove.
3458 (compute_delayed_physnames): Update.
3459 (process_full_comp_unit, process_full_type_unit): Clear the method
3460 list. Remove cleanups.
3461 (psymtab_include_file_name): Add name_holder parameter. Use
3462 unique_xmalloc_ptr.
3463 (dwarf_decode_lines): Update.
3464
3465 2018-01-17 Tom Tromey <tom@tromey.com>
3466 Simon Marchi <simon.marchi@ericsson.com>
3467
3468 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
3469 (dwarf2_per_objfile::free_cached_comp_units)
3470 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
3471 (init_cutu_and_read_dies_no_follow): Update.
3472 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
3473 (dwarf2_cu::~dwarf2_cu): New.
3474 (free_heap_comp_unit, free_stack_comp_unit): Remove.
3475 (age_cached_comp_units, free_one_cached_comp_unit): Update.
3476
3477 2018-01-17 Tom Tromey <tom@tromey.com>
3478 Simon Marchi <simon.marchi@ericsson.com>
3479
3480 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
3481 (struct die_reader_specs) <abbrev_table>: New member.
3482 (struct abbrev_table): Add constructor.
3483 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
3484 <abbrev_obstack>: Now an auto_obstack.
3485 (abbrev_table_up): New typedef.
3486 (init_cu_die_reader): Add abbrev_table parameter.
3487 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
3488 Add result_dwo_abbrev_table.
3489 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
3490 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
3491 Update.
3492 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
3493 parameter.
3494 (skip_children): Update.
3495 (abbrev_table::alloc_abbrev): Rename from
3496 abbrev_table_alloc_abbrev.
3497 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
3498 (abbrev_table::lookup_abbrev): Rename from
3499 abbrev_table_lookup_abbrev.
3500 (abbrev_table_read_table): Return abbrev_table_up.
3501 (abbrev_table_free, abbrev_table_free_cleanup)
3502 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
3503 (load_partial_dies): Update.
3504
3505 2018-01-17 Tom Tromey <tom@tromey.com>
3506
3507 * dwarf2read.c (dwarf2_compute_name): Update comment.
3508 (read_func_scope, read_variable): Update.
3509 (new_symbol): Remove.
3510 (new_symbol_full): Rename to new_symbol.
3511
3512 2018-01-17 Mike Gulick <mgulick@mathworks.com>
3513
3514 PR gdb/16577
3515 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
3516 a warning instead of throwing an error, set section size to 0 and return
3517 NULL.
3518 * gdb_bfd.h (gdb_bfd_map_section): Update description.
3519
3520 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3521
3522 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
3523 std::string.
3524 (linux_ptrace_attach_fail_reason_string): Likewise.
3525 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
3526 Likewise.
3527 (linux_ptrace_attach_fail_reason_string): Likewise.
3528 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
3529
3530 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3531
3532 * linux-nat.c (linux_nat_attach): Remove xstrdup.
3533
3534 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3535
3536 PR gdb/21559
3537 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3538 checking for fs_base/gs_base fields in struct user_regs_struct.
3539 * configure: Regenerate.
3540
3541 2018-01-17 Yao Qi <yao.qi@linaro.org>
3542
3543 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
3544 function.
3545 (aarch64_linux_init_abi): Install it to gdbarch hook
3546 gcc_target_options.
3547
3548 2018-01-15 Pedro Alves <palves@redhat.com>
3549
3550 * common/signals-state-save-restore.c
3551 (save_original_signals_state): Fix typos.
3552
3553 2017-01-12 Tom Tromey <tom@tromey.com>
3554 Sergio Durigan Junior <sergiodj@redhat.com>
3555
3556 * Makefile.in (install-only): Install gdb-add-index.
3557
3558 2018-01-12 John Baldwin <jhb@FreeBSD.org>
3559
3560 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
3561
3562 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
3563
3564 * infrun.c (keep_going_pass_signal): Clear step-over info when
3565 insert_breakpoints fails.
3566
3567 2018-01-11 Pedro Alves <palves@redhat.com>
3568
3569 PR gdb/22583
3570 * infrun.c (resume): Rename to ...
3571 (resume_1): ... this.
3572 (resume): Reimplement as wrapper around resume_1.
3573
3574 2018-01-11 Pedro Alves <palves@redhat.com>
3575
3576 PR remote/22597
3577 * remote.c (remote_parse_stop_reply): Default to the last-set
3578 general thread instead of to 'magic_null_ptid'.
3579
3580 2018-01-10 Pedro Alves <palves@redhat.com>
3581
3582 * language.h (language_get_symbol_name_matcher): Rename ...
3583 (get_symbol_name_matcher): ... this.
3584 * language.c (language_get_symbol_name_matcher): Ditto.
3585 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
3586 callers adjusted.
3587
3588 2018-01-10 Pedro Alves <palves@redhat.com>
3589
3590 PR gdb/22670
3591 * dwarf2read.c
3592 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
3593 Adjust to use language_get_symbol_name_matcher instead of
3594 language_defn::la_get_symbol_name_matcher.
3595 * language.c (language_get_symbol_name_matcher): If in Ada mode
3596 and the lookup name is a verbatim match, return Ada's matcher.
3597 * language.h (language_get_symbol_name_matcher): Adjust comment.
3598 (ada_lookup_name_info::verbatim_p):: New method.
3599
3600 2018-01-10 Pedro Alves <palves@redhat.com>
3601
3602 PR gdb/22670
3603 * ada-lang.c (ada_collect_symbol_completion_matches): If the
3604 minsym's language is language_auto or language_cplus, pass down
3605 language_ada instead.
3606 * symtab.c (compare_symbol_name): Don't frob symbol language here.
3607
3608 2018-01-10 Pedro Alves <palves@redhat.com>
3609
3610 PR gdb/22670
3611 * minsyms.c (linkage_name_str): New function.
3612 (iterate_over_minimal_symbols): Use it.
3613
3614 2018-01-09 John Baldwin <jhb@FreeBSD.org>
3615
3616 * NEWS: Document that 'info proc' now works on FreeBSD.
3617
3618 2018-01-09 John Baldwin <jhb@FreeBSD.org>
3619
3620 * configure.ac: Check for kinfo_getfile in libutil.
3621 * configure: Regenerate.
3622 * config.in: Regenerate.
3623 * fbsd-nat.c: Include "fbsd-tdep.h".
3624 (fbsd_fetch_cmdline): New.
3625 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
3626 rather than calling error.
3627 (fbsd_info_proc): New.
3628 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
3629 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
3630 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
3631
3632 2018-01-09 John Baldwin <jhb@FreeBSD.org>
3633
3634 * fbsd-nat.c (struct free_deleter): Remove.
3635 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
3636
3637 2018-01-09 John Baldwin <jhb@FreeBSD.org>
3638
3639 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
3640 NULL for an empty pathname.
3641
3642 2018-01-09 John Baldwin <jhb@FreeBSD.org>
3643
3644 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
3645 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
3646 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
3647 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
3648 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
3649 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
3650 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
3651 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
3652 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
3653 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
3654 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
3655 (fbsd_core_fetch_timeval, fbsd_print_sigset)
3656 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
3657 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
3658 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
3659
3660 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
3661
3662 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
3663 (gnu_xfer_auxv): New function.
3664 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
3665 TARGET_OBJECT_AUXV.
3666
3667 2018-01-08 Yao Qi <yao.qi@linaro.org>
3668 Simon Marchi <simon.marchi@ericsson.com>
3669
3670 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
3671 common/selftest.c.
3672 (COMMON_OBS): Remove selftest.o.
3673 * configure.ac: Append selftest-arch.c and common/selftest.c to
3674 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
3675 * configure: Re-generated.
3676 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
3677 GDB_SELF_TEST.
3678 (maintenance_info_selftests): Likewise.
3679
3680 2018-01-08 Xavier Roirand <roirand@adacore.com>
3681
3682 * ada-valprint.c (val_print_packed_array_elements): Use
3683 proper number of elements when printing an array indexed
3684 by an enumeration type.
3685
3686 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3687
3688 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
3689 (dw2_get_file_names_reader): Adjust.
3690 (lookup_dwo_signatured_type): Adjust.
3691 (lookup_dwp_signatured_type): Adjust.
3692 (lookup_signatured_type): Adjust.
3693 (create_type_unit_group): Adjust.
3694 (get_type_unit_group): Adjust.
3695 (process_psymtab_comp_unit_reader): Adjust.
3696 (build_type_psymtabs_reader): Adjust.
3697 (scan_partial_symbols): Adjust.
3698 (add_partial_symbol): Adjust.
3699 (add_partial_subprogram): Adjust.
3700 (peek_die_abbrev): Adjust.
3701 (fixup_go_packaging): Adjust.
3702 (process_imported_unit_die): Adjust.
3703 (dwarf2_compute_name): Adjust.
3704 (dwarf2_physname): Adjust.
3705 (read_import_statement): Adjust.
3706 (handle_DW_AT_stmt_list): Adjust.
3707 (read_file_scope): Adjust.
3708 (read_func_scope): Adjust.
3709 (read_lexical_block_scope): Adjust.
3710 (read_call_site_scope): Adjust.
3711 (read_variable): Adjust.
3712 (dwarf2_rnglists_process): Adjust.
3713 (dwarf2_ranges_process): Adjust.
3714 (dwarf2_ranges_read): Adjust.
3715 (dwarf2_get_pc_bounds): Adjust.
3716 (dwarf2_record_block_ranges): Adjust.
3717 (dwarf2_add_field): Adjust.
3718 (dwarf2_add_member_fn): Adjust.
3719 (read_structure_type): Adjust.
3720 (process_structure_scope): Adjust.
3721 (read_enumeration_type): Adjust.
3722 (read_array_type): Adjust.
3723 (mark_common_block_symbol_computed): Adjust.
3724 (read_common_block): Adjust.
3725 (read_namespace_type): Adjust.
3726 (read_namespace): Adjust.
3727 (read_module_type): Adjust.
3728 (read_tag_pointer_type): Adjust.
3729 (read_tag_ptr_to_member_type): Adjust.
3730 (read_tag_string_type): Adjust.
3731 (read_subroutine_type): Adjust.
3732 (read_typedef): Adjust.
3733 (read_base_type): Adjust.
3734 (attr_to_dynamic_prop): Adjust.
3735 (read_subrange_type): Adjust.
3736 (read_unspecified_type): Adjust.
3737 (dwarf2_read_abbrevs): Adjust.
3738 (load_partial_dies): Adjust.
3739 (read_partial_die): Adjust.
3740 (find_partial_die): Adjust.
3741 (guess_partial_die_structure_name): Adjust.
3742 (fixup_partial_die): Adjust.
3743 (read_attribute_value): Adjust.
3744 (read_addr_index): Adjust.
3745 (read_addr_index_from_leb128): Adjust.
3746 (read_str_index): Adjust.
3747 (dwarf2_string_attr): Adjust.
3748 (get_debug_line_section): Adjust.
3749 (dwarf_decode_line_header): Adjust.
3750 (lnp_state_machine::check_line_address): Adjust.
3751 (dwarf_decode_lines_1): Adjust.
3752 (dwarf_decode_lines): Adjust.
3753 (dwarf2_start_symtab): Adjust.
3754 (var_decode_location): Adjust.
3755 (new_symbol_full): Adjust.
3756 (dwarf2_const_value_data): Adjust.
3757 (dwarf2_const_value_attr): Adjust.
3758 (dwarf2_const_value): Adjust.
3759 (die_type): Adjust.
3760 (die_containing_type): Adjust.
3761 (build_error_marker_type): Adjust.
3762 (lookup_die_type): Adjust.
3763 (guess_full_die_structure_name): Adjust.
3764 (anonymous_struct_prefix): Adjust.
3765 (determine_prefix): Adjust.
3766 (dwarf2_name): Adjust.
3767 (follow_die_ref_or_sig): Adjust.
3768 (follow_die_offset): Adjust.
3769 (follow_die_ref): Adjust.
3770 (follow_die_sig_1): Adjust.
3771 (follow_die_sig): Adjust.
3772 (get_signatured_type): Adjust.
3773 (get_DW_AT_signature_type): Adjust.
3774 (decode_locdesc): Adjust.
3775 (dwarf_decode_macros): Adjust.
3776 (cu_debug_loc_section): Adjust.
3777 (fill_in_loclist_baton): Adjust.
3778 (dwarf2_symbol_mark_computed): Adjust.
3779 (init_one_comp_unit): Don't assign
3780 dwarf2_cu::dwarf2_per_objfile.
3781 (set_die_type): Adjust.
3782
3783 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3784
3785 * dwarf2read.c (struct mapped_debug_names): Add constructor.
3786 <dwarf2_per_objfile>: New field.
3787 (dwarf2_per_objfile): Remove global.
3788 (get_dwarf2_per_objfile): New function.
3789 (set_dwarf2_per_objfile): New function.
3790 (dwarf2_build_psymtabs_hard): Change objfile parameter to
3791 dwarf2_per_objfile.
3792 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3793 (read_abbrev_offset): Likewise.
3794 (read_indirect_string): Likewise.
3795 (read_indirect_line_string): Likewise.
3796 (read_indirect_string_at_offset): Likewise.
3797 (read_indirect_string_from_dwz): Likewise.
3798 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3799 dwarf2_per_objfile.
3800 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3801 (create_all_comp_units): Change objfile parameter to
3802 dwarf2_per_objfile.
3803 (create_all_type_units): Likewise.
3804 (process_queue): Add dwarf2_per_objfile parameter.
3805 (read_and_check_comp_unit_head): Likewise.
3806 (lookup_dwo_unit_in_dwp): Likewise.
3807 (get_dwp_file): Likewise.
3808 (process_cu_includes): Likewise.
3809 (struct free_dwo_file_cleanup_data): New struct.
3810 (dwarf2_has_info): Use get_dwarf2_per_objfile and
3811 set_dwarf2_per_objfile.
3812 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
3813 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
3814 context, adjust calls.
3815 (dw2_instantiate_symtab): Likewise.
3816 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
3817 (dw2_get_cu): Likewise.
3818 (create_cu_from_index_list): Change objfile parameter to
3819 dwarf2_per_objfile.
3820 (create_cus_from_index_list): Get dwarf2_per_objfile from
3821 context, adjust calls.
3822 (create_cus_from_index): Likewise.
3823 (create_signatured_type_table_from_index): Change objfile
3824 parameter to dwarf2_per_objfile.
3825 (create_signatured_type_table_from_debug_names): Change objfile
3826 parameter to dwarf2_per_objfile.
3827 (create_addrmap_from_index): Likewise.
3828 (create_addrmap_from_aranges): Likewise.
3829 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
3830 (dw2_setup): Remove.
3831 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
3832 context.
3833 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
3834 get_dwarf2_per_objfile.
3835 (dw2_forget_cached_source_info): Likewise.
3836 (dw2_map_symtabs_matching_filename): Likewise.
3837 (struct dw2_symtab_iterator) <index>: Remove.
3838 <dwarf2_per_objfile>: New field.
3839 (dw2_symtab_iter_init): Replace index parameter with
3840 dwarf2_per_objfile.
3841 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
3842 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
3843 (dw2_print_stats): Likewise.
3844 (dw2_dump): Likewise.
3845 (dw2_expand_symtabs_for_function): Likewise.
3846 (dw2_expand_all_symtabs): Likewise.
3847 (dw2_expand_symtabs_with_fullname): Likewise.
3848 (dw2_expand_marked_cus): Replace index and objfile parameters
3849 with dwarf2_per_objfile.
3850 (dw_expand_symtabs_matching_file_matcher): Add
3851 dwarf2_per_objfile parameter and adjust calls.
3852 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
3853 adjust calls.
3854 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
3855 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
3856 adjust calls.
3857 (create_cus_from_debug_names_list): Replace objfile parameter
3858 with dwarf2_per_objfile and adjust calls.
3859 (create_cus_from_debug_names): Likewise.
3860 (dwarf2_read_debug_names): Likewise.
3861 (mapped_debug_names::namei_to_name): Adjust call.
3862 (dw2_debug_names_iterator::next): Likewise.
3863 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3864 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
3865 (dw2_debug_names_dump): Likewise.
3866 (dw2_debug_names_expand_symtabs_for_function): Likewise.
3867 (dw2_debug_names_expand_symtabs_matching): Likewise.
3868 (dwarf2_initialize_objfile): Likewise.
3869 (dwarf2_build_psymtabs): Likewise.
3870 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
3871 this_cu.
3872 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
3873 (read_and_check_comp_unit_head): Likewise.
3874 (read_abbrev_offset): Likewise.
3875 (create_debug_type_hash_table): Likewise.
3876 (create_debug_types_hash_table): Likewise.
3877 (create_all_type_units): Replace objfile parameter with
3878 dwarf2_per_objfile.
3879 (add_type_unit): Add dwarf2_per_objfile parameter.
3880 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
3881 with dwarf2_per_objfile.
3882 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
3883 (lookup_dwp_signatured_type): Likewise.
3884 (lookup_signatured_type): Likewise.
3885 (read_cutu_die_from_dwo): Likewise.
3886 (init_tu_and_read_dwo_dies): Likewise.
3887 (init_cutu_and_read_dies): Likewise.
3888 (init_cutu_and_read_dies_no_follow): Likewise.
3889 (allocate_type_unit_groups_table): Add objfile parameter.
3890 (create_type_unit_group): Use dwarf2_per_objfile from cu.
3891 (get_type_unit_group): Likewise.
3892 (process_psymtab_comp_unit): Update call.
3893 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
3894 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
3895 (print_tu_stats): Likewise.
3896 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
3897 in void* parameter.
3898 (build_type_psymtabs): Change objfile parameter to
3899 dwarf2_per_objfile.
3900 (process_skeletonless_type_unit): Use dwarf2_per_objfile
3901 passed in void* parameter.
3902 (process_skeletonless_type_units): Change objfile parameter to
3903 dwarf2_per_objfile.
3904 (set_partial_user): Likewise.
3905 (dwarf2_build_psymtabs_hard): Likewise.
3906 (read_comp_units_from_section): Likewise.
3907 (create_all_comp_units): Likewise.
3908 (scan_partial_symbols): Update calls.
3909 (add_partial_symbol): Likewise.
3910 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
3911 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
3912 (process_queue): Add dwarf2_per_objfile parameter.
3913 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
3914 (compute_compunit_symtab_includes): Likewise.
3915 (process_cu_includes): Add dwarf2_per_objfile parameter.
3916 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
3917 (process_full_type_unit): Likewise.
3918 (process_imported_unit_die): Update call.
3919 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
3920 (read_file_scope): Likewise.
3921 (allocate_dwo_file_hash_table): Add objfile parameter.
3922 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
3923 (create_cus_hash_table): Likewise.
3924 (create_dwp_hash_table): Likewise.
3925 (create_dwo_unit_in_dwp_v1): Likewise.
3926 (create_dwp_v2_section): Likewise.
3927 (create_dwo_unit_in_dwp_v2): Likewise.
3928 (lookup_dwo_unit_in_dwp): Likewise.
3929 (try_open_dwop_file): Likewise.
3930 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
3931 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
3932 cleanup to include a reference to dwarf2_per_objfile.
3933 (open_dwp_file): Add dwarf2_per_objfile parameter.
3934 (open_and_init_dwp_file): Likewise.
3935 (get_dwp_file): Likewise.
3936 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
3937 (queue_and_load_all_dwo_tus): Update call.
3938 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
3939 data.
3940 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
3941 (dwarf2_ranges_process): Likewise.
3942 (dwarf2_get_pc_bounds): Likewise.
3943 (mark_common_block_symbol_computed): Likewise.
3944 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3945 (dwarf2_read_abbrevs): Update call.
3946 (read_partial_die): Use dwarf2_per_objfile from cu.
3947 (find_partial_die): Likewise.
3948 (fixup_partial_die): Likewise.
3949 (read_attribute_value): Likewise.
3950 (read_indirect_string_at_offset_from): Add objfile parameter.
3951 (read_indirect_string_at_offset): Add dwarf2_per_objfile
3952 parameter.
3953 (read_indirect_string_from_dwz): Add objfile parameter.
3954 (read_indirect_string): Add objfile parameter.
3955 (read_addr_index_1): Add dwarf2_per_objfile parameter.
3956 (read_addr_index): Use dwarf2_per_objfile from cu.
3957 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
3958 call dw2_setup.
3959 (read_str_index): Use dwarf2_per_objfile from cu.
3960 (get_debug_line_section): Likewise.
3961 (read_formatted_entries): Add dwarf2_per_objfile parameter.
3962 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
3963 (new_symbol_full): Use dwarf2_per_objfile from cu.
3964 (build_error_marker_type): Likewise.
3965 (lookup_die_type): Likewise.
3966 (determine_prefix): Likewise.
3967 (follow_die_offset): Likewise.
3968 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
3969 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
3970 (dwarf2_fetch_die_type_sect_off): Likewise.
3971 (dwarf2_get_die_type): Likewise.
3972 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
3973 (get_signatured_type): Likewise.
3974 (get_DW_AT_signature_type): Likewise.
3975 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
3976 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
3977 (cu_debug_loc_section): Likewise.
3978 (fill_in_loclist_baton): Likewise.
3979 (dwarf2_symbol_mark_computed): Likewise.
3980 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3981 dwarf2_per_objfile.
3982 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
3983 parameter.
3984 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3985 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
3986 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
3987 (set_die_type): Use dwarf2_free_objfile from cu.
3988 (get_die_type_at_offset): Likewise.
3989 (dwarf2_per_objfile_free): Don't assign global variable.
3990 (debug_names) <constructor>: Add dwarf2_per_objfile
3991 parameter, update m_debugstrlookup construction.
3992 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
3993 parameter.
3994 <m_dwarf2_per_objfile>: New field.
3995 <lookup>: Use m_dwarf2_per_objfile.
3996 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
3997 (psyms_seen_size): Likewise.
3998 (write_gdbindex): Replace objfile parameter with
3999 dwarf2_per_objfile.
4000 (write_debug_names): Likewise.
4001 (write_psymtabs_to_index): Likewise.
4002 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
4003 calls.
4004
4005 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
4006
4007 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
4008 <dwarf2_per_objfile>: New field.
4009 (struct dwarf2_per_cu_data) <objfile>: Remove.
4010 <dwarf2_per_objfile>: New field.
4011 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
4012 of objfile.
4013 (create_signatured_type_table_from_index): Likewise.
4014 (create_debug_type_hash_table): Likewise.
4015 (fill_in_sig_entry_from_dwo_entry): Likewise.
4016 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
4017 (create_type_unit_group): Assign dwarf2_per_objfile instead of
4018 objfile.
4019 (create_partial_symtab): Access objfile through
4020 dwarf2_per_objfile.
4021 (process_psymtab_comp_unit_reader): Likewise.
4022 (read_comp_units_from_section): Likewise.
4023 (scan_partial_symbols): Likewise.
4024 (add_partial_symbol): Likewise.
4025 (add_partial_subprogram): Likewise.
4026 (peek_die_abbrev): Likewise.
4027 (fixup_go_packaging): Likewise.
4028 (process_full_comp_unit): Likewise.
4029 (process_full_type_unit): Likewise.
4030 (process_imported_unit_die): Likewise.
4031 (dwarf2_compute_name): Likewise.
4032 (dwarf2_physname): Likewise.
4033 (read_import_statement): Likewise.
4034 (create_cus_hash_table): Assign dwarf2_physname instead of
4035 objfile.
4036 (read_func_scope): Access objfile through dwarf2_per_objfile.
4037 (read_lexical_block_scope): Likewise.
4038 (read_call_site_scope): Likewise.
4039 (read_variable): Likewise.
4040 (dwarf2_rnglists_process): Likewise.
4041 (dwarf2_ranges_process): Likewise.
4042 (dwarf2_ranges_read): Likewise.
4043 (dwarf2_record_block_ranges): Likewise.
4044 (dwarf2_add_field): Likewise.
4045 (dwarf2_add_member_fn): Likewise.
4046 (read_structure_type): Likewise.
4047 (process_structure_scope): Likewise.
4048 (read_enumeration_type): Likewise.
4049 (read_array_type): Likewise.
4050 (read_common_block): Likewise.
4051 (read_namespace_type): Likewise.
4052 (read_namespace): Likewise.
4053 (read_module_type): Likewise.
4054 (read_tag_pointer_type): Likewise.
4055 (read_tag_ptr_to_member_type): Likewise.
4056 (read_tag_string_type): Likewise.
4057 (read_subroutine_type): Likewise.
4058 (read_typedef): Likewise.
4059 (read_base_type): Likewise.
4060 (attr_to_dynamic_prop): Likewise.
4061 (read_subrange_type): Likewise.
4062 (read_unspecified_type): Likewise.
4063 (load_partial_dies): Likewise.
4064 (read_partial_die): Likewise.
4065 (find_partial_die): Likewise.
4066 (guess_partial_die_structure_name): Likewise.
4067 (fixup_partial_die): Likewise.
4068 (read_attribute_value): Likewise.
4069 (read_addr_index_from_leb128): Likewise.
4070 (dwarf2_read_addr_index): Likewise.
4071 (dwarf2_string_attr): Likewise.
4072 (lnp_state_machine::check_line_address): Likewise.
4073 (dwarf_decode_lines_1): Likewise.
4074 (dwarf_decode_lines): Likewise.
4075 (dwarf2_start_symtab): Likewise.
4076 (var_decode_location): Likewise.
4077 (new_symbol_full): Likewise.
4078 (dwarf2_const_value_data): Likewise.
4079 (dwarf2_const_value_attr): Likewise.
4080 (dwarf2_const_value): Likewise.
4081 (die_type): Likewise.
4082 (die_containing_type): Likewise.
4083 (lookup_die_type): Likewise.
4084 (guess_full_die_structure_name): Likewise.
4085 (anonymous_struct_prefix): Likewise.
4086 (dwarf2_name): Likewise.
4087 (follow_die_ref_or_sig): Likewise.
4088 (follow_die_offset): Likewise.
4089 (follow_die_ref): Likewise.
4090 (dwarf2_fetch_die_loc_sect_off): Likewise.
4091 (dwarf2_fetch_constant_bytes): Likewise.
4092 (dwarf2_fetch_die_type_sect_off): Likewise.
4093 (dwarf2_get_die_type): Likewise.
4094 (follow_die_sig): Likewise.
4095 (decode_locdesc): Likewise.
4096 (dwarf2_per_cu_objfile): Likewise.
4097 (dwarf2_per_cu_text_offset): Likewise.
4098 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
4099 objfile.
4100 (set_die_type): Access objfile through
4101 dwarf2_per_objfile.
4102
4103 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
4104
4105 * valprint.c (converted_character_d): Remove typedef.
4106 (DEF_VEC_O (converted_character_d)): Remove.
4107 (count_next_character): Use std::vector.
4108 (print_converted_chars_to_obstack): Likewise.
4109 (generic_printstr): Likewise.
4110
4111 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4112
4113 * xml-support.h (struct gdb_xml_value): Add constructor.
4114 <value>: Change type to unique_xmalloc_ptr.
4115 (gdb_xml_value_s): Remove typedef.
4116 (DEF_VEC_O (gdb_xml_value_s)): Remove.
4117 (gdb_xml_element_start_handler): Change parameter type to
4118 std::vector.
4119 (xml_find_attribute): Likewise.
4120 * xml-support.c (xml_find_attribute): Change parameter type to
4121 std::vector and adjust.
4122 (gdb_xml_values_cleanup): Remove.
4123 (gdb_xml_parser::start_element): Adjust to std::vector.
4124 (xinclude_start_include): Change paraeter type to std::vector
4125 and adjust.
4126 * btrace.c (check_xml_btrace_version): Likewise.
4127 (parse_xml_btrace_block): Likewise.
4128 (parse_xml_btrace_pt_config_cpu): Likewise.
4129 (parse_xml_btrace_pt): Likewise.
4130 (parse_xml_btrace_conf_bts): Likewise.
4131 (parse_xml_btrace_conf_pt): Likewise.
4132 * memory-map.c (memory_map_start_memory): Likewise.
4133 (memory_map_start_property): Likewise.
4134 * osdata.c (osdata_start_osdata): Likewise.
4135 (osdata_start_item): Likewise.
4136 (osdata_start_column): Likewise.
4137 * remote.c (start_thread): Likewise.
4138 * solib-aix.c (library_list_start_library): Likewise.
4139 (library_list_start_list): Likewise.
4140 * solib-svr4.c (library_list_start_library): Likewise.
4141 (svr4_library_list_start_list): Likewise.
4142 * solib-target.c (library_list_start_segment): Likewise.
4143 (library_list_start_section): Likewise.
4144 (library_list_start_library): Likewise.
4145 (library_list_start_list): Likewise.
4146 * tracepoint.c (traceframe_info_start_memory): Likewise.
4147 (traceframe_info_start_tvar): Likewise.
4148 * xml-syscall.c (syscall_start_syscall): Likewise.
4149 * xml-tdesc.c (tdesc_start_target): Likewise.
4150 (tdesc_start_feature): Likewise.
4151 (tdesc_start_reg): Likewise.
4152 (tdesc_start_union): Likewise.
4153 (tdesc_start_struct): Likewise.
4154 (tdesc_start_flags): Likewise.
4155 (tdesc_start_enum): Likewise.
4156 (tdesc_start_field): Likewise.
4157 (tdesc_start_enum_value): Likewise.
4158 (tdesc_start_vector): Likewise.
4159
4160 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4161
4162 * extension.h (struct xmethod_worker) <clone>: Remove.
4163 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
4164 Remove.
4165 (python_xmethod_worker::clone): Remove.
4166 * valops.c (find_overload_match): Use std::move instead of
4167 clone.
4168
4169 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4170
4171 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
4172 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
4173 <free_xmethod_worker_data>: Remove.
4174 <get_matching_xmethod_workers>: Chance VEC to std::vector.
4175 <get_xmethod_arg_types>: Remove.
4176 <get_xmethod_result_type>: Remove.
4177 <invoke_xmethod>: Remove.
4178 * extension.c (new_xmethod_worker): Remove.
4179 (clone_xmethod_worker): Remove.
4180 (get_matching_xmethod_workers): Return void, pass std::vector by
4181 pointer.
4182 (get_xmethod_arg_types): Rename to...
4183 (xmethod_worker::get_arg_types): ... this, and adjust.
4184 (get_xmethod_result_type): Rename to...
4185 (xmethod_worker::get_result_type): ... this, and adjust.
4186 (invoke_xmethod): Remove.
4187 (free_xmethod_worker): Remove.
4188 (free_xmethod_worker_vec): Remove.
4189 * extension.h (enum ext_lang_rc): Move here from
4190 extension-priv.h.
4191 (struct xmethod_worker): Add constructor and destructor.
4192 <data>: Remove.
4193 <value>: Remove.
4194 <invoke, clone, do_get_result_type, do_get_arg_types>: New
4195 virtual pure methods.
4196 <get_arg_types, get_result_type>: New methods.
4197 (xmethod_worker_ptr): Remove typedef.
4198 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
4199 (xmethod_worker_vec): Remove typedef.
4200 (xmethod_worker_up): New typedef.
4201 (invoke_xmethod): Remove.
4202 (clone_xmethod_worker): Remove.
4203 (free_xmethod_worker): Remove.
4204 (free_xmethod_worker_vec): Remove.
4205 (get_xmethod_arg_types): Remove.
4206 (get_xmethod_result_type): Remove.
4207 * valops.c (find_method_list): Use std::vector, don't use
4208 intermediate vector.
4209 (value_find_oload_method_list): Use std::vector.
4210 (find_overload_match): Use std::vector.
4211 (find_oload_champ): Use std::vector.
4212 * value.c (value_free): Use operator delete.
4213 (value_of_xmethod): Rename to...
4214 (value_from_xmethod): ... this. Don't assign
4215 xmethod_worker::value, take rvalue-reference.
4216 (result_type_of_xmethod): Adjust.
4217 (call_xmethod): Adjust.
4218 * value.h: Include extension.h.
4219 (struct xmethod_worker): Don't forward-declare.
4220 (value_of_xmethod): Rename to...
4221 (value_from_xmethod): ... this, take rvalue-reference.
4222 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
4223 (struct python_xmethod_worker): ... this, add constructor and
4224 destructor.
4225 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
4226 (gdbpy_free_xmethod_worker_data): Rename to...
4227 (python_xmethod_worker::~python_xmethod_worker): ... this and
4228 adjust.
4229 (gdbpy_clone_xmethod_worker_data): Rename to...
4230 (python_xmethod_worker::clone): ... this and adjust.
4231 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
4232 temporary vector.
4233 (gdbpy_get_xmethod_arg_types): Rename to...
4234 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
4235 (gdbpy_get_xmethod_result_type): Rename to...
4236 (python_xmethod_worker::do_get_result_type): ... this and
4237 adjust.
4238 (gdbpy_invoke_xmethod): Rename to...
4239 (python_xmethod_worker::invoke): ... this and adjust.
4240 (new_python_xmethod_worker): Rename to...
4241 (python_xmethod_worker::python_xmethod_worker): ... this and
4242 adjust.
4243 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
4244 Remove.
4245 (gdbpy_free_xmethod_worker_data): Remove.
4246 (gdbpy_get_matching_xmethod_workers): Use std::vector.
4247 (gdbpy_get_xmethod_arg_types): Remove.
4248 (gdbpy_get_xmethod_result_type): Remove.
4249 (gdbpy_invoke_xmethod): Remove.
4250 * python/python.c (python_extension_ops): Remove obsolete
4251 callbacks.
4252
4253 2018-01-05 Pedro Alves <palves@redhat.com>
4254
4255 PR gdb/18653
4256 * common/signals-state-save-restore.c
4257 (save_original_signals_state): New parameter 'quiet'. Warn if we
4258 find a custom handler preinstalled, instead of internal erroring.
4259 But only warn if !quiet.
4260 * common/signals-state-save-restore.h
4261 (save_original_signals_state): New parameter 'quiet'.
4262 * main.c (captured_main_1): Move save_original_signals_state call
4263 after option handling, and pass QUIET.
4264
4265 2018-01-05 Pedro Alves <palves@redhat.com>
4266
4267 * spu-tdep.c (spu_catch_start): Pass
4268 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
4269
4270 2018-01-05 Pedro Alves <palves@redhat.com>
4271
4272 PR gdb/22670
4273 * ada-lang.c (literal_symbol_name_matcher): New function.
4274 (ada_get_symbol_name_matcher): Use it for
4275 symbol_name_match_type::SEARCH_NAME.
4276 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
4277 it down instead of assuming symbol_name_match_type::FULL.
4278 * block.h (block_lookup_symbol): New parameter 'match_type'.
4279 * c-valprint.c (print_unpacked_pointer): Use
4280 lookup_symbol_search_name instead of lookup_symbol.
4281 * compile/compile-object-load.c (get_out_value_type): Pass down
4282 symbol_name_match_type::SEARCH_NAME.
4283 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
4284 symbol_name_match_type::FULL.
4285 * cp-support.c (cp_get_symbol_name_matcher): Handle
4286 symbol_name_match_type::SEARCH_NAME.
4287 * infrun.c (insert_exception_resume_breakpoint): Use
4288 lookup_symbol_search_name.
4289 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
4290 * psymtab.c (maintenance_check_psymtabs): Use
4291 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
4292 * stack.c (print_frame_args): Use lookup_symbol_search_name and
4293 SYMBOL_SEARCH_NAME.
4294 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
4295 if symbol_name_match_type::SEARCH_NAME.
4296 (lookup_symbol_in_language): Pass down
4297 symbol_name_match_type::FULL.
4298 (lookup_symbol_search_name): New.
4299 (lookup_language_this): Pass down
4300 symbol_name_match_type::SEARCH_NAME.
4301 (lookup_symbol_aux, lookup_local_symbol): New parameter
4302 'match_type'. Pass it down.
4303 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
4304 (lookup_symbol_search_name): New declaration.
4305 (lookup_symbol_in_block): New 'match_type' parameter.
4306
4307 2018-01-05 Pedro Alves <palves@redhat.com>
4308
4309 PR gdb/22670
4310 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
4311 ada_lookup_symbol.
4312 (ada_lookup_symbol): Reimplement in terms of
4313 ada_lookup_symbol_list, bits factored out from
4314 ada_lookup_encoded_symbol.
4315
4316 2018-01-05 Joel Brobecker <brobecker@adacore.com>
4317
4318 * ada-exp.y (write_object_renaming): When subscripting an array
4319 using a symbol as the index, pass the block in call to
4320 ada_lookup_encoded_symbol when looking that symbol up.
4321
4322 2018-01-05 Jerome Guitton <guitton@adacore.com>
4323
4324 * ada-lang.c (ada_array_length): Use ada_index_type instead of
4325 TYPE_INDEX_TYPE.
4326
4327 2018-01-05 Joel Brobecker <brobecker@adacore.com>
4328
4329 * ada-lang.c (ada_to_fixed_value_create): Add handling of
4330 the case where VALUE_LVAL (val0) is not lval_memory.
4331
4332 2018-01-05 Xavier Roirand <roirand@adacore.com>
4333
4334 * ada-valprint.c (print_optional_low_bound): Handle
4335 character-indexed array printing like boolean-indexed array
4336 printing.
4337
4338 2018-01-05 Joel Brobecker <brobecker@adacore.com>
4339
4340 * NEWS: Create a new section for the next release branch.
4341 Rename the section of the current branch, now that it has
4342 been cut.
4343
4344 2018-01-05 Joel Brobecker <brobecker@adacore.com>
4345
4346 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
4347 * version.in: Bump version to 8.1.50.DATE-git.
4348
4349 2018-01-03 Xavier Roirand <roirand@adacore.com>
4350
4351 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
4352 Add field.
4353 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
4354 Add field.
4355 (default_exception_support_info) <catch_handlers_sym>: Add field.
4356 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
4357 (ada_exception_name_addr_1): Add "catch handlers" handling.
4358 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
4359 Update all callers.
4360 (create_excep_cond_exprs) <ex>: Add parameter.
4361 (re_set_exception): Update create_excep_cond_exprs call.
4362 (print_it_exception, print_one_exception, print_mention_exception)
4363 (print_recreate_exception): Add "catch handler" handling.
4364 (allocate_location_catch_handlers, re_set_catch_handlers)
4365 (check_status_catch_handlers, print_it_catch_handlers)
4366 (print_one_catch_handlers, print_mention_catch_handlers)
4367 (print_recreate_catch_handlers): New function.
4368 (catch_handlers_breakpoint_ops): New variable.
4369 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
4370 Add parameter. Add "catch handler" handling.
4371 (ada_exception_sym_name, ada_exception_breakpoint_ops):
4372 Add "catch handler" handling.
4373 (ada_exception_catchpoint_cond_string): Add "catch handler"
4374 handling.
4375 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
4376 call.
4377 (catch_ada_handlers_command): New function.
4378 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
4379 operations structure.
4380 (_initialize_ada_language): Add "catch handlers" command entry.
4381 * NEWS: Document "catch handlers" feature.
4382
4383 2018-01-02 Joel Brobecker <brobecker@adacore.com>
4384
4385 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
4386 account when creating the array type of the slice.
4387 (ada_value_slice): Likewise.
4388
4389 2018-01-02 Joel Brobecker <brobecker@adacore.com>
4390
4391 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
4392 New enum value.
4393 (create_array_type_with_stride): Add byte_stride_prop parameter.
4394 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
4395 New parameter. Update all callers in this file.
4396 (array_type_has_dynamic_stride): New function.
4397 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
4398 of arrays with dynamic byte strides.
4399 * dwarf2read.c (read_array_type): Add support for dynamic
4400 DW_AT_byte_stride attributes.
4401
4402 2018-01-02 Joel Brobecker <brobecker@adacore.com>
4403
4404 * dwarf2read.c (read_unspecified_type): Treat
4405 DW_TAG_enumeration_type DIEs from Ada units as stubs.
4406
4407 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4408
4409 Update copyright year range in all GDB files.
4410
4411 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4412
4413 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
4414 and gdb/testsuite/gdb.base/step-line.c.
4415
4416 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4417
4418 * copyright.py (main): Dump the contents of
4419 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
4420 even if BY_HAND is empty.
4421
4422 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4423
4424 * top.c (print_gdb_version): Update Copyright year in version
4425 message.
4426
4427 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4428
4429 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
4430
4431 For older changes see ChangeLog-2017.
4432 \f
4433 Local Variables:
4434 mode: change-log
4435 left-margin: 8
4436 fill-column: 74
4437 version-control: never
4438 coding: utf-8
4439 End: