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