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