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