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