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