]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb-gdb.py.in: Fix ordering of TypeFlags objects with Python 3
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
68ad5fb9
SM
12018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2
3 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4 <__lt__>: Add.
5
141ec9f6
SM
62018-06-27 Simon Marchi <simon.marchi@ericsson.com>
7
8 * gdb-gdb.py: Move to...
9 * gdb-gdb.py.in: ... here.
10 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
11 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
12 dependencies.
13 (distclean): Remove gdb-gdb.py when cleaning.
14 (gdb-gdb.py, gdb-gdb.gdb): New rules.
15 * configure: Re-generate.
16
4c4e7ad4
PA
172018-06-27 Pedro Alves <palves@redhat.com>
18
19 * proc-service.c (get_ps_regcache): New.
20 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
21 (ps_lsetfpregs): Use it.
22
7ab6656f
OJ
232018-06-27 Omair Javaid <omair.javaid@linaro.org>
24
25 PR gdb/21695
26 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
27 (dwarf_decode_lines_1): Adjust.
28
bd583225
SM
292018-06-27 Simon Marchi <simon.marchi@ericsson.com>
30
31 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
32 override.
33 <info_proc>: Likewise.
34
9a325b7b
JB
352018-06-26 Joel Brobecker <brobecker@adacore.com>
36
37 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
38 to windows_fetch_one_register, and only handle the case of
39 fetching one register. Move the code that reloads the context
40 and iterates over all registers if R is negative to...
41 (windows_nat_target::fetch_registers): ... here.
42 (do_windows_store_inferior_registers): Rename to
43 windows_store_one_register, and only handle the case of storing
44 one register. Move the code that handles the case where r is
45 negative to...
46 (windows_nat_target::store_registers) ... here.
47
a33ccfc7
TT
482018-06-26 Tom Tromey <tom@tromey.com>
49
50 PR rust/22574:
51 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
52 * rust-lang.c (rust_print_struct_def): Add podata parameter.
53 Update.
54 (rust_internal_print_type): Add podata parameter.
55 (rust_print_type): Update.
56
e0c547d1
TT
572018-06-26 Tom Tromey <tom@tromey.com>
58
59 * typeprint.h (struct print_offset_data) <update, finish,
60 maybe_print_hole>: New methods.
61 <indentation>: New constant.
62 * typeprint.c (print_offset_data::indentation): Define.
63 (print_offset_data::maybe_print_hole, print_offset_data::update)
64 (print_offset_data::finish): Move from c-typeprint.c and rename.
65 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
66 (print_spaces_filtered_with_print_options): Update.
67 (c_print_type_union_field_offset, maybe_print_hole)
68 (c_print_type_struct_field_offset): Move to typeprint.c and
69 rename.
70 (c_type_print_base_struct_union): Update.
71
75cbc781
PA
722018-06-25 Pedro Alves <palves@redhat.com>
73
74 * gdbthread.h (thread_info_ref, delete_thread)
75 (delete_thread_silent, first_thread_of_inferior)
76 (any_thread_of_inferior, switch_to_thread)
77 (enable_thread_stack_temporaries)
78 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
79 (get_last_thread_stack_temporary)
80 (value_in_thread_stack_temporaries, can_access_registers_thread):
81 Spell out "struct thread_info" instead of just "thread_info".
82 * inferior.h (notice_new_inferior): Likewise.
83
b7a08269
PA
842018-06-25 Pedro Alves <palves@redhat.com>
85
86 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
87 pass thread_info pointer to delete_thread.
88 (windows_nat_target::detach): Pass inferior pointer to
89 detach_inferior.
90 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
91 delete_thread.
92 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
93 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
94 and pass a thread_info pointer to delete_thread.
95 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
96 pass thread_info pointer to delete_thread.
97 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
98 delete_thread_silent call.
99 * procfs.c (procfs_target::detach): Pass inferior pointer to
100 detach_inferior.
101 (procfs_target::wait): Pass thread_info pointer to delete_thread.
102 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
103 delete_thread_silent call.
104 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
105 pass thread_info pointer to delete_thread.
106 (windows_nat_target::detach): Pass inferior pointer to
107 delete_inferior.
108
8e7767e3
AH
1092018-06-22 Alan Hayward <alan.hayward@arm.com>
110
111 * regcache.c (readable_regcache::read_part): Fix asserts.
112 (reg_buffer::raw_collect_part): New function.
113 (regcache::write_part): Fix asserts.
114 (reg_buffer::raw_supply_part): New function.
115 (regcache::transfer_regset_register): New helper function.
116 (regcache::transfer_regset): Call new functions.
117 (regcache_supply_regset): Use gdb_byte*.
118 (regcache::supply_regset): Likewise.
119 (regcache_collect_regset): Likewise.
120 (regcache::collect_regset): Likewise.
121 * regcache.h (reg_buffer::raw_collect_part): New declaration.
122 (reg_buffer::raw_supply_part): Likewise.
123 (regcache::transfer_regset_register): Likewise.
124 (regcache::transfer_regset): Use gdb_byte*.
125
bfd60e34
AH
1262018-06-22 Alan Hayward <alan.hayward@arm.com>
127
128 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
129
00431a78
PA
1302018-06-21 Pedro Alves <palves@redhat.com>
131
132 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
133 instead of a ptid_t. All callers adjusted.
134 * ada-tasks.c (ada_get_task_number): Likewise. All callers
135 adjusted.
136 (print_ada_task_info, display_current_task_id, task_command_1):
137 Adjust.
138 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
139 inferior_thread.
140 (breakpoint_kind): Adjust.
141 (remove_breakpoints_pid): Rename to ...
142 (remove_breakpoints_inf): ... this. Adjust to take an inferior
143 pointer. All callers adjusted.
144 (bpstat_clear_actions): Use inferior_thread.
145 (get_bpstat_thread): New.
146 (bpstat_do_actions): Use it.
147 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
148 to take a thread_info pointer. All callers adjusted.
149 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
150 (breakpoint_re_set_thread): Use inferior_thread.
151 * breakpoint.h (struct inferior): Forward declare.
152 (bpstat_stop_status): Update.
153 (remove_breakpoints_pid): Delete.
154 (remove_breakpoints_inf): New.
155 * bsd-uthread.c (bsd_uthread_target::wait)
156 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
157 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
158 (maint_btrace_packet_history_cmd)
159 (maint_btrace_clear_packet_history_cmd): Adjust.
160 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
161 inferior_thread.
162 * cli/cli-interp.c: Include "inferior.h".
163 * common/refcounted-object.h (struct
164 refcounted_object_ref_policy): New.
165 * compile/compile-object-load.c: Include gdbthread.h.
166 (store_regs): Use inferior_thread.
167 * corelow.c (core_target::close): Use current_inferior.
168 (core_target_open): Adjust to use first_thread_of_inferior and use
169 the current inferior.
170 * ctf.c (ctf_target::close): Adjust to use current_inferior.
171 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
172 <thread>: ... this new field. All references adjusted.
173 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
174 Take a thread_info pointer instead of a ptid_t.
175 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
176 (dummy_frame_discard, register_dummy_frame_dtor): Take a
177 thread_info pointer instead of a ptid_t.
178 * elfread.c: Include "inferior.h".
179 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
180 Use inferior_thread.
181 * eval.c (evaluate_subexp): Likewise.
182 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
183 inferior_thread.
184 * gdb_proc_service.h (struct thread_info): Forward declare.
185 (struct ps_prochandle) <ptid>: Delete, replaced by ...
186 <thread>: ... this new field. All references adjusted.
187 * gdbarch.h, gdbarch.c: Regenerate.
188 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
189 'thread' parameter. All implementations and callers adjusted.
190 * gdbthread.h (thread_info) <set_running>: New method.
191 (delete_thread, delete_thread_silent): Take a thread_info pointer
192 instead of a ptid.
193 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
194 (first_thread_of_process): Delete, replaced by ...
195 (first_thread_of_inferior): ... this new function. All callers
196 adjusted.
197 (any_live_thread_of_process): Delete, replaced by ...
198 (any_live_thread_of_inferior): ... this new function. All callers
199 adjusted.
200 (switch_to_thread, switch_to_no_thread): Declare.
201 (is_executing): Delete.
202 (enable_thread_stack_temporaries): Update comment.
203 <enable_thread_stack_temporaries>: Take a thread_info pointer
204 instead of a ptid_t. Incref the thread.
205 <~enable_thread_stack_temporaries>: Decref the thread.
206 <m_ptid>: Delete
207 <m_thr>: New.
208 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
209 (get_last_thread_stack_temporary)
210 (value_in_thread_stack_temporaries, can_access_registers_thread):
211 Take a thread_info pointer instead of a ptid_t. All callers
212 adjusted.
213 * infcall.c (get_call_return_value): Use inferior_thread.
214 (run_inferior_call): Work with thread pointers instead of ptid_t.
215 (call_function_by_hand_dummy): Work with thread pointers instead
216 of ptid_t. Use thread_info_ref.
217 * infcmd.c (proceed_thread_callback): Access thread's state
218 directly.
219 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
220 access thread's state directly.
221 (continue_command): Use inferior_thread.
222 (info_program_command): Use find_thread_ptid and access thread
223 state directly.
224 (proceed_after_attach_callback): Use thread state directly.
225 (notice_new_inferior): Take a thread_info pointer instead of a
226 ptid_t. All callers adjusted.
227 (exit_inferior): Take an inferior pointer instead of a pid. All
228 callers adjusted.
229 (exit_inferior_silent): New.
230 (detach_inferior): Delete.
231 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
232 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
233 (detach_inferior_command, kill_inferior_command): Use
234 find_inferior_id instead of valid_gdb_inferior_id and
235 gdb_inferior_id_to_pid.
236 (inferior_command): Use inferior and thread pointers.
237 * inferior.h (struct thread_info): Forward declare.
238 (notice_new_inferior): Take a thread_info pointer instead of a
239 ptid_t. All callers adjusted.
240 (detach_inferior): Delete declaration.
241 (exit_inferior, exit_inferior_silent): Take an inferior pointer
242 instead of a pid. All callers adjusted.
243 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
244 (valid_gdb_inferior_id): Delete.
245 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
246 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
247 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
248 ...
249 <inf>: ... this new field.
250 <step_ptid>: Delete, replaced by ...
251 <step_thread>: ... this new field.
252 (get_displaced_stepping_state): Take an inferior pointer instead
253 of a pid. All callers adjusted.
254 (displaced_step_in_progress_any_inferior): Adjust.
255 (displaced_step_in_progress_thread): Take a thread pointer instead
256 of a ptid_t. All callers adjusted.
257 (displaced_step_in_progress, add_displaced_stepping_state): Take
258 an inferior pointer instead of a pid. All callers adjusted.
259 (get_displaced_step_closure_by_addr): Adjust.
260 (remove_displaced_stepping_state): Take an inferior pointer
261 instead of a pid. All callers adjusted.
262 (displaced_step_prepare_throw, displaced_step_prepare)
263 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
264 All callers adjusted.
265 (start_step_over): Adjust.
266 (infrun_thread_ptid_changed): Remove bit updating ptids in the
267 displaced step queue.
268 (do_target_resume): Adjust.
269 (fetch_inferior_event): Use inferior_thread.
270 (context_switch, get_inferior_stop_soon): Take an
271 execution_control_state pointer instead of a ptid_t. All callers
272 adjusted.
273 (switch_to_thread_cleanup): Delete.
274 (stop_all_threads): Use scoped_restore_current_thread.
275 * inline-frame.c: Include "gdbthread.h".
276 (inline_state) <inline_state>: Take a thread pointer instead of a
277 ptid_t. All callers adjusted.
278 <ptid>: Delete, replaced by ...
279 <thread>: ... this new field.
280 (find_inline_frame_state): Take a thread pointer instead of a
281 ptid_t. All callers adjusted.
282 (skip_inline_frames, step_into_inline_frame)
283 (inline_skipped_frames, inline_skipped_symbol): Take a thread
284 pointer instead of a ptid_t. All callers adjusted.
285 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
286 (inline_skipped_frames, inline_skipped_symbol): Likewise.
287 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
288 pointers directly.
289 * linux-nat.c (get_detach_signal): Likewise.
290 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
291 (thread_db_notice_clone): Adjust.
292 (thread_db_find_new_threads_silently)
293 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
294 a thread pointer instead of a ptid_t. All callers adjusted.
295 * mi/mi-cmd-var.c: Include "inferior.h".
296 (mi_cmd_var_update_iter): Update to use thread pointers.
297 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
298 inferior directly.
299 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
300 out to ...
301 (mi_output_running): ... this new function.
302 (mi_on_resume_1): Adjust to use it.
303 (mi_user_selected_context_changed): Adjust to use inferior_thread.
304 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
305 directly.
306 (interrupt_thread_callback): : Adjust to use thread and inferior
307 pointers.
308 * proc-service.c: Include "gdbthread.h".
309 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
310 * progspace-and-thread.c: Include "inferior.h".
311 * progspace.c: Include "inferior.h".
312 * python/py-exitedevent.c (create_exited_event_object): Adjust to
313 hold a reference to an inferior_object.
314 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
315 inferior_thread.
316 * python/py-inferior.c (struct inferior_object): Give the type a
317 tag name instead of a typedef.
318 (python_on_normal_stop): No need to check if the current thread is
319 listed.
320 (inferior_to_inferior_object): Change return type to
321 inferior_object. All callers adjusted.
322 (find_thread_object): Delete, bits factored out to ...
323 (thread_to_thread_object): ... this new function.
324 * python/py-infthread.c (create_thread_object): Use
325 inferior_to_inferior_object.
326 (thpy_is_stopped): Use thread pointer directly.
327 (gdbpy_selected_thread): Use inferior_thread.
328 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
329 field, replaced with ...
330 <thread>: ... this new field. All users adjusted.
331 (btpy_insn_or_gap_new): Drop const.
332 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
333 callers adjusted.
334 * python/py-record.c: Include "gdbthread.h".
335 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
336 a ptid_t. All callers adjusted.
337 (gdbpy_current_recording): Use inferior_thread.
338 * python/py-record.h (recpy_record_object) <ptid>: Delete
339 field, replaced with ...
340 <thread>: ... this new field. All users adjusted.
341 (recpy_element_object) <ptid>: Delete
342 field, replaced with ...
343 <thread>: ... this new field. All users adjusted.
344 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
345 a ptid_t. All callers adjusted.
346 * python/py-threadevent.c: Include "gdbthread.h".
347 (get_event_thread): Use thread_to_thread_object.
348 * python/python-internal.h (struct inferior_object): Forward
349 declare.
350 (find_thread_object, find_inferior_object): Delete declarations.
351 (thread_to_thread_object, inferior_to_inferior_object): New
352 declarations.
353 * record-btrace.c: Include "inferior.h".
354 (require_btrace_thread): Use inferior_thread.
355 (record_btrace_frame_sniffer)
356 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
357 (get_thread_current_frame): Use scoped_restore_current_thread and
358 switch_to_thread.
359 (get_thread_current_frame): Use thread pointer directly.
360 (record_btrace_replay_at_breakpoint): Use thread's inferior
361 pointer directly.
362 * record-full.c: Include "inferior.h".
363 * regcache.c: Include "gdbthread.h".
364 (get_thread_arch_regcache): Use the inferior's address space
365 directly.
366 (get_thread_regcache, registers_changed_thread): New.
367 * regcache.h (get_thread_regcache(thread_info *thread)): New
368 overload.
369 (registers_changed_thread): New.
370 (remote_target) <remote_detach_1>: Swap order of parameters.
371 (remote_add_thread): <remote_add_thread>: Return the new thread.
372 (get_remote_thread_info(ptid_t)): New overload.
373 (remote_target::remote_notice_new_inferior): Use thread pointers
374 directly.
375 (remote_target::process_initial_stop_replies): Use
376 thread_info::set_running.
377 (remote_target::remote_detach_1, remote_target::detach)
378 (extended_remote_target::detach): Adjust.
379 * stack.c (frame_show_address): Use inferior_thread.
380 * target-debug.h (target_debug_print_thread_info_pp): New.
381 * target-delegates.c: Regenerate.
382 * target.c (default_thread_address_space): Delete.
383 (memory_xfer_partial_1): Use current_inferior.
384 (target_detach): Use current_inferior.
385 (target_thread_address_space): Delete.
386 (generic_mourn_inferior): Use current_inferior.
387 * target.h (struct target_ops) <thread_address_space>: Delete.
388 (target_thread_address_space): Delete.
389 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
390 pointers directly.
391 (delete_thread_1, delete_thread, delete_thread_silent): Take a
392 thread pointer instead of a ptid_t. Adjust all callers.
393 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
394 (first_thread_of_process): Delete, replaced by ...
395 (first_thread_of_inferior): ... this new function. All callers
396 adjusted.
397 (any_thread_of_process): Rename to ...
398 (any_thread_of_inferior): ... this, and take an inferior pointer.
399 (any_live_thread_of_process): Rename to ...
400 (any_live_thread_of_inferior): ... this, and take an inferior
401 pointer.
402 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
403 (value_in_thread_stack_temporaries)
404 (get_last_thread_stack_temporary): Take a thread pointer instead
405 of a ptid_t. Adjust all callers.
406 (thread_info::set_running): New.
407 (validate_registers_access): Use inferior_thread.
408 (can_access_registers_ptid): Rename to ...
409 (can_access_registers_thread): ... this, and take a thread
410 pointer.
411 (print_thread_info_1): Adjust to compare thread pointers instead
412 of ptids.
413 (switch_to_no_thread, switch_to_thread): Make extern.
414 (scoped_restore_current_thread::~scoped_restore_current_thread):
415 Use m_thread pointer directly.
416 (scoped_restore_current_thread::scoped_restore_current_thread):
417 Use inferior_thread.
418 (thread_command): Use thread pointer directly.
419 (thread_num_make_value_helper): Use inferior_thread.
420 * top.c (execute_command): Use inferior_thread.
421 * tui/tui-interp.c: Include "inferior.h".
422 * varobj.c (varobj_create): Use inferior_thread.
423 (value_of_root_1): Use find_thread_global_id instead of
424 global_thread_id_to_ptid.
425
33bab475
AH
4262018-06-21 Alan Hayward <alan.hayward@arm.com>
427
428 * regcache.c (readable_regcache::read_part): Avoid memcpy when
429 possible.
430 (regcache::write_part): Likewise.
431 (readable_regcache::cooked_read_part): Update comment.
432 (readable_regcache::cooked_write_part): Likewise.
433 * regcache.h: (readable_regcache::read_part): Likewise.
434 (regcache::write_part): Likewise.
435
8363f9d5
RB
4362018-06-21 Richard Bunt <richard.bunt@arm.com>
437 Dirk Schubert <dirk.schubert@arm.com>
438
439 * aarch64-linux-nat.c (post_attach): New.
440 (aarch64_linux_nat_target::post_attach): Override post_attach to
441 record the number of hardware debug registers.
442
0d0b0ea2
TT
4432018-06-20 Tom Tromey <tom@tromey.com>
444
445 * python/py-param.c (add_setshow_generic): Make parameters const.
446 (parmpy_init): Update.
447
302abd6e
SM
4482018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
449
450 * regcache.h (regcache_cooked_read_ftype): Rename to...
451 (register_read_ftype): ...this, change type to function_view.
452 (class reg_buffer) <save>: Remove src parameter.
453 (readonly_detached_regcache) <readonly_detached_regcache>: Make
454 parameter non-const in first overload. Remove src parameter in
455 second overload.
456 * regcache.c (do_cooked_read): Remove.
457 (readonly_detached_regcache::readonly_detached_regcache): Make
458 parameter non-const, adjust call to other constructor.
459 (reg_buffer::save): Remove src parameter.
460 * frame.c (do_frame_register_read): Remove.
461 (frame_save_as_regcache): Use lambda function.
462 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
463 parameter to ppu2spu_data *.
464 (ppu2spu_sniffer): Use lambda function.
465
19f3f25f
SM
4662018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
467
468 * record-full.c (record_full_target::insert_breakpoint): Remove
469 "struct" keyword, add const.
470
d0ac1c44
SM
4712018-06-19 Simon Marchi <simon.marchi@ericsson.com>
472
473 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
474 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
475 * configure.ac: Remove AC_PREREQ, add missing quoting.
476 * gnulib/configure.ac: Modernize usage of
477 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
478 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
479 (AUTOMAKE_VERSION): Bump to 1.15.1.
480 * configure: Re-generate.
481 * config.in: Re-generate.
482 * aclocal.m4: Re-generate.
483 * gnulib/aclocal.m4: Re-generate.
484 * gnulib/config.in: Re-generate.
485 * gnulib/configure: Re-generate.
486 * gnulib/import/Makefile.in: Re-generate.
487
6ae50267
PA
4882018-06-19 Pedro Alves <palves@redhat.com>
489
490 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
491 (lookup_minimal_symbol_by_pc_section): ... here with
492 gdb_assert_not_reached added.
493
61b04dd0
PA
4942018-06-19 Pedro Alves <palves@redhat.com>
495
496 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
497 parameter with a block parameter. Compare location's block symbol
498 with the frame's block instead of addresses.
499 (skip_inline_frames): Pass the current block instead of the
500 frame's address. Break out as soon as we determine the frame
501 should not be skipped.
502
f709fabb
TT
5032018-06-18 Tom Tromey <tom@tromey.com>
504
505 * solib-aix.c (solib_aix_get_section_offsets): Return
506 unique_xmalloc_ptr.
507 (solib_aix_solib_create_inferior_hook): Update.
508
668eb2f0
TT
5092018-06-18 Tom Tromey <tom@tromey.com>
510
511 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
512
309822ca
TT
5132018-06-18 Tom Tromey <tom@tromey.com>
514
515 * solib-frv.c (frv_relocate_main_executable): Use
516 unique_xmalloc_ptr.
517 * solib-dsbt.c (dsbt_relocate_main_executable): Use
518 unique_xmalloc_ptr.
519
06424eac
TT
5202018-06-18 Tom Tromey <tom@tromey.com>
521
522 * objfiles.h (inhibit_section_map_updates): Update.
523 (resume_section_map_updates, resume_section_map_updates_cleanup):
524 Remove.
525 * solib-svr4.c (svr4_handle_solib_event): Update.
526 * objfiles.c (inhibit_section_map_updates): Return
527 scoped_restore_tmpl<int>.
528 (resume_section_map_updates, resume_section_map_updates_cleanup):
529 Remove.
530
b4be9fad
TT
5312018-06-18 Tom Tromey <tom@tromey.com>
532
533 * valprint.h (read_string): Update.
534 * valprint.c (read_string): Change type of "buffer".
535 (val_print_string): Update.
536 * python/py-value.c (valpy_string): Update.
537 * language.h (struct language_defn) <la_get_string>: Change
538 type of "buffer".
539 (default_get_string, c_get_string): Update.
540 * language.c (default_get_string): Change type of "buffer".
541 * guile/scm-value.c (gdbscm_value_to_string): Update.
542 * c-lang.c (c_get_string): Change type of "buffer".
543
3f0dbd67
TT
5442018-06-18 Tom Tromey <tom@tromey.com>
545
546 * ser-mingw.c (struct pipe_state_destroyer): New.
547 (pipe_state_up): New typedef.
548 (cleanup_pipe_state): Remove.
549 (pipe_windows_open): Use pipe_state_up. Don't release argv.
550
69d340c6
TT
5512018-06-18 Tom Tromey <tom@tromey.com>
552
553 * rust-lang.h (rust_yyerror): Don't declare.
554 * rust-lang.c (rust_language_defn): Update.
555 * rust-exp.y (yyerror): Now static.
556 * parse.c (parse_exp_in_context_1): Update.
557 * p-lang.h (p_yyerror): Don't declare.
558 * p-lang.c (p_language_defn): Update.
559 * p-exp.y (yyerror): Now static.
560 * opencl-lang.c (opencl_language_defn): Update.
561 * objc-lang.c (objc_language_defn): Update.
562 * m2-lang.h (m2_yyerror): Don't declare.
563 * m2-lang.c (m2_language_defn): Update.
564 * m2-exp.y (yyerror): Now static.
565 * language.h (struct language_defn) <la_error>: Remove.
566 * language.c (unk_lang_error): Remove.
567 (unknown_language_defn, auto_language_defn): Remove.
568 * go-lang.h (go_yyerror): Don't declare.
569 * go-lang.c (go_language_defn): Update.
570 * go-exp.y (yyerror): Now static.
571 * f-lang.h (f_yyerror): Don't declare.
572 * f-lang.c (f_language_defn): Update.
573 * f-exp.y (yyerror): Now static.
574 * d-lang.h (d_yyerror): Don't declare.
575 * d-lang.c (d_language_defn): Update.
576 * d-exp.y (yyerror): Now static.
577 * c-lang.h (c_yyerror): Don't declare.
578 * c-lang.c (c_language_defn, cplus_language_defn)
579 (asm_language_defn, minimal_language_defn): Update.
580 * c-exp.y (yyerror): Now static.
581 * ada-lang.h (ada_yyerror): Don't declare.
582 * ada-lang.c (ada_language_defn): Update.
583 * ada-exp.y (yyerror): Now static.
584
e9902bfc
AH
5852018-06-18 Alan Hayward <alan.hayward@arm.com>
586
587 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
588 (store_sveregs_to_thread): Likewise.
589 (aarch64_linux_fetch_inferior_registers): Check for SVE.
590 (aarch64_linux_store_inferior_registers): Likewise.
591 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
592 function.
593 (aarch64_sve_regs_copy_to_regcache): Likewise.
594 (aarch64_sve_regs_copy_from_regcache): Likewise.
595 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
596 declaration.
597 (aarch64_sve_regs_copy_to_regcache): Likewise.
598 (aarch64_sve_regs_copy_from_regcache): Likewise.
599 (sve_context): Structure from Linux headers.
600 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
601 (SVE_SIG_ZREG_SIZE): Likewise.
602 (SVE_SIG_PREG_SIZE): Likewise.
603 (SVE_SIG_FFR_SIZE): Likewise.
604 (SVE_SIG_REGS_OFFSET): Likewise.
605 (SVE_SIG_ZREGS_OFFSET): Likewise.
606 (SVE_SIG_ZREG_OFFSET): Likewise.
607 (SVE_SIG_ZREGS_SIZE): Likewise.
608 (SVE_SIG_PREGS_OFFSET): Likewise.
609 (SVE_SIG_PREG_OFFSET): Likewise.
610 (SVE_SIG_PREGS_SIZE): Likewise.
611 (SVE_SIG_FFR_OFFSET): Likewise.
612 (SVE_SIG_REGS_SIZE): Likewise.
613 (SVE_SIG_CONTEXT_SIZE): Likewise.
614 (SVE_PT_REGS_MASK): Likewise.
615 (SVE_PT_REGS_FPSIMD): Likewise.
616 (SVE_PT_REGS_SVE): Likewise.
617 (SVE_PT_VL_INHERIT): Likewise.
618 (SVE_PT_VL_ONEXEC): Likewise.
619 (SVE_PT_REGS_OFFSET): Likewise.
620 (SVE_PT_FPSIMD_OFFSET): Likewise.
621 (SVE_PT_FPSIMD_SIZE): Likewise.
622 (SVE_PT_SVE_ZREG_SIZE): Likewise.
623 (SVE_PT_SVE_PREG_SIZE): Likewise.
624 (SVE_PT_SVE_FFR_SIZE): Likewise.
625 (SVE_PT_SVE_FPSR_SIZE): Likewise.
626 (SVE_PT_SVE_FPCR_SIZE): Likewise.
627 (__SVE_SIG_TO_PT): Likewise.
628 (SVE_PT_SVE_OFFSET): Likewise.
629 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
630 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
631 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
632 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
633 (SVE_PT_SVE_PREG_OFFSET): Likewise.
634 (SVE_PT_SVE_PREGS_SIZE): Likewise.
635 (SVE_PT_SVE_FFR_OFFSET): Likewise.
636 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
637 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
638 (SVE_PT_SVE_SIZE): Likewise.
639 (SVE_PT_SIZE): Likewise.
640 (HAS_SVE_STATE): New define.
641
17a1cc89
AH
6422018-06-18 Alan Hayward <alan.hayward@arm.com>
643
644 * nat/aarch64-sve-linux-sigcontext.h: New file.
645 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
646 new files.
647 (SVE_VQ_MIN): Likewise.
648 (SVE_VQ_MAX): Likewise.
649 (SVE_VL_MIN): Likewise.
650 (SVE_VL_MAX): Likewise.
651 (SVE_NUM_ZREGS): Likewise.
652 (SVE_NUM_PREGS): Likewise.
653 (sve_vl_valid): Likewise.
654 (struct user_sve_header): Likewise.
655
7010835a
AB
6562018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
657 Richard Bunt <Richard.Bunt@arm.com>
658
659 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
660 was requested by GDB.
661
479b3ef4
TV
6622018-06-15 Tom de Vries <tdevries@suse.de>
663
664 * MAINTAINERS (Write After Approval): Add Tom de Vries.
665
8199b8f4
SM
6662018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
667
668 * gnulib/update-gnulib.sh: Print expected versions of
669 autoconf/aclocal.
670
55c748a1
SM
6712018-06-14 Simon Marchi <simon.marchi@ericsson.com>
672
673 * arch-utils.c (default_type_align): Use type_length_units.
674 * gdbtypes.c (type_align): Use type_length_units.
675
87a8eca7
PW
6762018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
677
678 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
679 of 'define' command.
680
5d9a0608
TV
6812018-06-14 Tom de Vries <tdevries@suse.de>
682
683 PR cli/22573
684 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
685 get_no_prettyformat_print_options.
686
ab89b5a5
SM
6872018-06-13 Simon Marchi <simon.marchi@ericsson.com>
688
689 * sparc-nat.h: Include target.h.
690 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
691 <fetch_registers>: Remove this argument in function call.
692 <store_registers>: Remove this argument in function call, remove
693 extra semicolon.
694 <low_forget_process>: Call sparc64_forget_process instead of
695 sparc_forget_process.
696
62c808ae
RO
6972018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
698
699 * procfs.c (_initialize_procfs): Use add_inf_child_target.
700 (procfs_target::make_corefile_notes): Adjust to new
701 target_read_alloc return type.
702
1840d81a
AB
7032018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
704 Stephen Roberts <stephen.roberts@arm.com>
705
706 PR gdb/22882
707 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
708 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
709 Move should_notify_stop local into more inner scope.
710
9516f85a
AB
7112018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
712 Stephen Roberts <stephen.roberts@arm.com>
713
714 PR gdb/22882
715 * infrun.c (resume_1): Add call to mark_async_event_handler.
716
defd2172
AB
7172018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
718
719 * infrun.c (do_target_wait): Change old version of $pc printed.
720
7b23e087
SM
7212018-06-11 Simon Marchi <simon.marchi@ericsson.com>
722
723 * dwarf2read.c (read_index_from_section): Rename to...
724 (read_gdb_index_from_section): ... this, update all callers.
725 (dwarf2_read_index): Rename to...
726 (dwarf2_read_gdb_index): ... this, update all callers.
727
69c67a0b
JDA
7282018-06-11 John David Anglin <danglin@gcc.gnu.org>
729
730 * gdb/hppa-linux-nat.c
731 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
732 hppa_linux_nat_target::fetch_registers.
733
65d4cada
AH
7342018-06-11 Alan Hayward <alan.hayward@arm.com>
735
736 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
737 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
738 (AARCH64_DWARF_SVE_FFR): Likewise.
739 (AARCH64_DWARF_SVE_P0): Likewise.
740 (AARCH64_DWARF_SVE_Z0): Likewise.
741
f868386e
AH
7422018-06-11 Alan Hayward <alan.hayward@arm.com>
743
744 * common/common-regcache.h (raw_compare): New function.
745 * regcache.c (regcache::raw_compare): Likewise.
746 * regcache.h (regcache::raw_compare): New declaration.
747
9c861883
AH
7482018-06-11 Alan Hayward <alan.hayward@arm.com>
749
750 * common/common-regcache.h (reg_buffer_common): New structure.
751 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
752 (reg_buffer::raw_supply): Likewise.
753 (reg_buffer::raw_supply_integer): Likewise.
754 (reg_buffer::raw_supply_zeroed): Likewise.
755 (reg_buffer::raw_collect): Likewise.
756 (reg_buffer::raw_collect_integer): Likewise.
757 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
758 (reg_buffer::raw_supply): Likewise.
759 (reg_buffer::raw_supply_integer): Likewise.
760 (reg_buffer::raw_supply_zeroed): Likewise.
761 (reg_buffer::raw_collect): Likewise.
762 (reg_buffer::raw_collect_integer): Likewise.
763
953edf2b
TT
7642018-06-10 Tom Tromey <tom@tromey.com>
765
766 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
767 (class remote_state) <stop_reply_queue>: Now std::vector.
768 (remote_state::~remote_state)
769 (remote_target::stop_reply_queue_length): Update.
770 (struct queue_iter_param, remove_child_of_pending_fork)
771 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
772 (check_pending_event_prevents_wildcard_vcont_callback)
773 (remove_stop_reply_for_inferior)
774 (remove_stop_reply_of_remote_state)
775 (remote_notif_remove_once_on_match)
776 (stop_reply_match_ptid_and_ws)
777 (remote_kill_child_of_pending_fork): Remove.
778 (remote_target::remove_new_fork_children)
779 (remote_target::check_pending_events_prevent_wildcard_vcont)
780 (remote_target::discard_pending_stop_replies)
781 (remote_target::discard_pending_stop_replies_in_queue)
782 (remote_target::remote_notif_remove_queued_reply)
783 (remote_target::queued_stop_reply)
784 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
785 (remote_target::wait, remote_target::kill_new_fork_children)
786 (remote_target::async): Update.
787
1ddbba9d
TT
7882018-06-10 Tom Tromey <tom@tromey.com>
789
790 * record-full.c (record_full_arch_list_cleanups): Remove.
791 (record_full_message): Use try/catch.
792 (record_full_wait_cleanups): Remove.
793 (record_full_wait_1): Use try/catch.
794 (record_full_restore): Likewise.
795
219605fd
TT
7962018-06-10 Tom Tromey <tom@tromey.com>
797
798 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
799 declare VEC. Add constructor.
800 <in_target_beneath>: Now bool.
801 (record_full_breakpoints): Now a std::vector, static.
802 (record_full_sync_record_breakpoints)
803 (record_full_init_record_breakpoints)
804 (record_full_target::insert_breakpoint)
805 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
806
71b73764
SM
8072018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * dwarf2read.c (process_cu_includes): Remove struct keyword.
810 * serial.c (serial_interface_lookup): Remove struct keyword.
811
4360561f
TT
8122018-06-10 Tom Tromey <tom@tromey.com>
813
814 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
815 method.
816 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
817 a method.
818 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
819 method.
820 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
821 "beneath" as a method.
822 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
823 Use "beneath" as a method.
824
d14b92bf
TT
8252018-06-10 Tom Tromey <tom@tromey.com>
826
827 * tracefile.c (struct trace_file_writer_deleter): New.
828 <operator()>: Rename from trace_file_writer_xfree.
829 (trace_file_writer_up): New typedef.
830 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
831
835dcf92
SM
8322018-06-09 Simon Marchi <simon.marchi@ericsson.com>
833
834 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
835 <m_registers, m_register_status>: Change type to
836 std::unique_ptr.
837 * regcache.c (reg_buffer::reg_buffer): Use new instead of
838 XCNEWVEC.
839
aac0d564
SM
8402018-06-09 Simon Marchi <simon.marchi@ericsson.com>
841
842 * common/common-regcache.h (enum register_status): Add
843 underlying type "signed char".
844 * regcache.h (reg_buffer) <m_register_status>: Change type to
845 register_status *.
846 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
847 register_status instead of signed char.
848 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
849 (reg_buffer::get_register_status): Remove cast.
850 (readable_regcache::raw_read): Remove cast.
851 (readable_regcache::cooked_read): Remove cast.
852
77ad7394
TT
8532018-06-09 Tom Tromey <tom@tromey.com>
854
855 * source.c (reverse_search_command, forward_search_command): Use
856 scoped_fd.
857
191cca63
TT
8582018-06-09 Tom Tromey <tom@tromey.com>
859
860 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
861 (serial_ops_list): Now static, std::vector.
862 (serial_interface_lookup, serial_add_interface): Update.
863
c5d0225d
TT
8642018-06-09 Tom Tromey <tom@tromey.com>
865
866 * dwarf2read.c (process_cu_includes): Update.
867 (process_full_comp_unit): Update.
868 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
869 std::vector.
870
aeab5128
PK
8712018-06-08 Paul Koning <paul_koning@dell.com>
872
873 PR gdb/23252
874
875 * python/python.c (do_start_initialization):
876 Avoid call to internal Python API.
877 (init__gdb_module): New function.
878
5045b3d7
GB
8792018-06-08 Gary Benson <gbenson@redhat.com>
880
881 * linux-thread-db.c (valprint.h): New include.
882 (struct check_thread_db_info): New structure.
883 (check_thread_db_on_load, tdb_testinfo): New static globals.
884 (check_thread_db, check_thread_db_callback): New functions.
885 (try_thread_db_load_1): Run integrity checks if requested.
886 (maintenance_check_libthread_db): New function.
887 (_initialize_thread_db): Register "maint check libthread-db"
888 and "maint set/show check-libthread-db".
889 * NEWS: Mention the above new commands.
890
2f4f025f
TT
8912018-06-08 Tom Tromey <tom@tromey.com>
892
893 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
894 now a method.
895
343b0027
TT
8962018-06-08 Tom Tromey <tom@tromey.com>
897
898 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
899
8dcc53b3
TT
9002018-06-08 Tom Tromey <tom@tromey.com>
901
902 * common/btrace-common.h (struct btrace_data): Add constructor,
903 destructor, move assignment operator.
904 <empty, clear, fini>: New methods.
905 <format>: Initialize.
906 (btrace_data_init, btrace_data_fini, btrace_data_clear)
907 (btrace_data_empty): Don't declare.
908 * common/btrace-common.c (btrace_data_init): Remove.
909 (btrace_data::fini): Rename from btrace_data_fini.
910 (btrace_data::empty): Rename from btrace_data_empty.
911 (btrace_data::clear): Rename from btrace_data_clear. Return
912 bool.
913 * btrace.h (make_cleanup_btrace_data): Don't declare.
914 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
915 (parse_xml_btrace): Update.
916 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
917 (maint_btrace_clear_packet_history_cmd): Update.
918
a1740ee1
PA
9192018-06-07 Pedro Alves <palves@redhat.com>
920
921 * target.h (target_ops) <beneath>: Now a method. All references
922 updated.
923 (class target_stack): New.
924 * target.c (g_target_stack): New.
925 (g_current_top_target): Delete.
926 (current_top_target): Get the top target out of g_target_stack.
927 (target_stack::push, target_stack::unpush): New.
928 (push_target, unpush_target): Reimplement.
929 (target_is_pushed): Reimplement in terms of g_target_stack.
930 (target_ops::beneath, target_stack::find_beneath): New.
931
d6ca69cd
PA
9322018-06-07 Pedro Alves <palves@redhat.com>
933
934 * target.h (find_target_beneath): Delete declaration.
935 * target.c (find_target_beneath): Delete definition.
936 * aix-thread.c: All callers of find_target_beneath adjusted to
937 call target_ops::beneath instead.
938 * bsd-uthread.c: Likewise.
939 * linux-thread-db.c: Likewise.
940 * ravenscar-thread.c: Likewise.
941 * sol-thread.c: Likewise.
942 * spu-multiarch.c: Likewise.
943
b6a8c27b
PA
9442018-06-07 Pedro Alves <palves@redhat.com>
945
946 * target.h (target_ops) <beneath>: Now a method. All references
947 updated.
948 (target_ops) <m_beneath>: New.
949 * target.c (target_ops::beneath): New.
950 * corelow.c: Adjust all references to target_ops::beneath.
951 * linux-thread-db.c: Likewise.
952 * make-target-delegates: Likewise.
953 * record-btrace.c: Likewise.
954 * record-full.c: Likewise.
955 * remote.c: Likewise.
956 * target.c: Likewise.
957 * target-delegates.c: Regenerate.
958
8b88a78e
PA
9592018-06-07 Pedro Alves <palves@redhat.com>
960
961 * target.h (target_stack): Delete.
962 (current_top_target): Declare function.
963 * target.c (target_stack): Delete.
964 (g_current_top_target): New.
965 (current_top_target): New function.
966 * auxv.c: Use current_top_target instead of target_stack
967 throughout.
968 * avr-tdep.c: Likewise.
969 * breakpoint.c: Likewise.
970 * corefile.c: Likewise.
971 * elfread.c: Likewise.
972 * eval.c: Likewise.
973 * exceptions.c: Likewise.
974 * frame.c: Likewise.
975 * gdbarch-selftests.c: Likewise.
976 * gnu-v3-abi.c: Likewise.
977 * ia64-tdep.c: Likewise.
978 * ia64-vms-tdep.c: Likewise.
979 * infcall.c: Likewise.
980 * infcmd.c: Likewise.
981 * infrun.c: Likewise.
982 * linespec.c: Likewise.
983 * linux-tdep.c: Likewise.
984 * minsyms.c: Likewise.
985 * ppc-linux-nat.c: Likewise.
986 * ppc-linux-tdep.c: Likewise.
987 * procfs.c: Likewise.
988 * regcache.c: Likewise.
989 * remote.c: Likewise.
990 * rs6000-tdep.c: Likewise.
991 * s390-linux-nat.c: Likewise.
992 * s390-tdep.c: Likewise.
993 * solib-aix.c: Likewise.
994 * solib-darwin.c: Likewise.
995 * solib-dsbt.c: Likewise.
996 * solib-spu.c: Likewise.
997 * solib-svr4.c: Likewise.
998 * solib-target.c: Likewise.
999 * sparc-tdep.c: Likewise.
1000 * sparc64-tdep.c: Likewise.
1001 * spu-tdep.c: Likewise.
1002 * symfile.c: Likewise.
1003 * symtab.c: Likewise.
1004 * target-descriptions.c: Likewise.
1005 * target-memory.c: Likewise.
1006 * target.c: Likewise.
1007 * target.h: Likewise.
1008 * tracefile-tfile.c: Likewise.
1009 * tracepoint.c: Likewise.
1010 * valops.c: Likewise.
1011 * valprint.c: Likewise.
1012 * value.c: Likewise.
1013 * windows-tdep.c: Likewise.
1014 * mi/mi-main.c: Likewise.
1015
c7110220
TT
10162018-06-07 Tom Tromey <tom@tromey.com>
1017
1018 * valprint.h (build_address_symbolic): Declare.
1019 * printcmd.c (print_address_symbolic): Update.
1020 (build_address_symbolic): Change "name" and "filename" to
1021 std::string.
1022 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1023 Update.
1024 * defs.h (build_address_symbolic): Remove declaration.
1025
63bad7b6
AH
10262018-06-07 Alan Hayward <alan.hayward@arm.com>
1027
1028 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
1029 (aarch64_vnv_type): Add function.
1030 (aarch64_pseudo_register_name): Add V regs for SVE.
1031 (aarch64_pseudo_register_type): Likewise.
1032 (aarch64_pseudo_register_reggroup_p): Likewise.
1033 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
1034 (aarch64_pseudo_read_value): Add V regs for SVE.
1035 (aarch64_pseudo_write_2): Use V0 offset for SVE
1036 (aarch64_pseudo_write): Add V regs for SVE.
1037 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
1038
13e3c608
SDJ
10392018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
1040
1041 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
1042 (sve_vl_from_vq): Likewise.
1043
c61b06a1
TT
10442018-06-05 Tom Tromey <tom@tromey.com>
1045
1046 * cli/cli-cmds.c (show_version): Update.
1047 * top.c (print_gdb_version): Add "interactive" parameter.
1048 Update.
1049 * main.c (captured_main_1): Update.
1050 * top.h (print_gdb_version): Add "interactive" parameter and a
1051 comment.
1052
115f7325
DM
10532018-06-05 David Malcolm <dmalcolm@redhat.com>
1054
1055 * common/enum-flags.h: Add trailing semicolon to example in
1056 comment.
1057
eb6af809
TT
10582018-06-05 Tom Tromey <tom@tromey.com>
1059
1060 PR cli/12326:
1061 * NEWS: Add entry about pager.
1062 * utils.c (pagination_disabled_for_command): New global.
1063 (prompt_for_continue): Allow "c" response to prompt.
1064 (reinitialize_more_filter): Clear
1065 pagination_disabled_for_command.
1066 (fputs_maybe_filtered): Check pagination_disabled_for_command.
1067
54d343a2
TT
10682018-06-04 Tom Tromey <tom@tromey.com>
1069
1070 * ada-lang.h (ada_lookup_symbol_list): Update.
1071 * ada-lang.c (resolve_subexp): Update.
1072 (symbols_are_identical_enums): Change type of syms. Remove nsyms
1073 parameter.
1074 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
1075 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
1076 results parameter to std::vector.
1077 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
1078 Update.
1079 * ada-exp.y (block_lookup): Update.
1080 (select_possible_type_sym): Change type of syms. Remove nsyms
1081 parameter.
1082 (write_var_or_type, write_name_assoc): Update.
1083
178d6a63
JB
10842018-06-04 Joel Brobecker <brobecker@adacore.com>
1085
1086 * windows-nat.c (windows_nat_target::xfer_partial): Return
1087 TARGET_XFER_E_IO if we need to delegate to the target beneath
1088 but BENEATH is NULL.
1089
baf00c2d
SM
10902018-06-04 Simon Marchi <simon.marchi@ericsson.com>
1091
1092 * Makefile.in (config.status): Add configure.nat as a
1093 dependency.
1094
214b073c
TT
10952018-06-04 Tom Tromey <tom@tromey.com>
1096
1097 * cp-name-parser.y (cpname_state): Add method declarations.
1098 (HANDLE_QUAL): Update.
1099 (cpname_state::d_grab, cpname_state::fill_comp)
1100 (cpname_state::make_operator, cpname_state::make_dtor)
1101 (cpname_state::make_builtin_type, cpname_state::make_name)
1102 (cpname_state::d_qualify, cpname_state::d_int_type)
1103 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
1104 (%union): Move earlier.
1105
62b74cb8
AH
11062018-06-04 Alan Hayward <alan.hayward@arm.com>
1107
1108 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
1109
3c5cd5c3
AH
11102018-06-04 Alan Hayward <alan.hayward@arm.com>
1111
1112 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
1113 (aarch64_pseudo_write_1): Likewise.
1114 (aarch64_pseudo_read_value): Use helper.
1115 (aarch64_pseudo_write): Likewise.
1116
59f413d5
PA
11172018-06-04 Pedro Alves <palves@redhat.com>
1118
1119 * darwin-nat.c (darwin_ops): Delete.
1120 (darwin_attach_pid): Use get_native_target.
1121
1332a140
AH
11222018-06-04 Alan Hayward <alan.hayward@arm.com>
1123
1124 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
1125 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
1126
ba2d2bb2
AH
11272018-06-04 Alan Hayward <alan.hayward@arm.com>
1128
1129 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
1130 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
1131 (aarch64_gdbarch_init): Check for SVE.
1132 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
1133
11342018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
1135
1136 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
1137 * aarch64-tdep.h (aarch64_read_description): Likewise.
1138 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1139 * arch/aarch64.h (aarch64_create_target_description): Likewise.
1140 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
1141 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
1142 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
1143
41c60b4b
SM
11442018-06-02 Simon Marchi <simon.marchi@ericsson.com>
1145
1146 * value.c (value_fetch_lazy_bitfield): New.
1147 (value_fetch_lazy_memory): New.
1148 (value_fetch_lazy_register): New.
1149 (value_fetch_lazy): Factor out to smaller functions.
1150
7b640f72
TT
11512018-06-01 Tom Tromey <tom@tromey.com>
1152
1153 * cp-name-parser.y (backslashable, represented): Now const.
1154
98e69eb3
TT
11552018-06-01 Tom Tromey <tom@tromey.com>
1156
1157 * cp-name-parser.y: Include parser-defs.h.
1158 (parser_fprintf): Remove declaration.
1159
49265499
TT
11602018-06-01 Tom Tromey <tom@tromey.com>
1161
1162 * cp-name-parser.y: Use %pure-parser, %lex-param, and
1163 %parse-param.
1164 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
1165 (global_result): Remove globals.
1166 (struct cpname_state): New.
1167 (yyparse): Don't declare.
1168 (yylex, yyerror): Move declarations after %union.
1169 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
1170 (make_name): Add state parameter.
1171 Update all callers.
1172 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
1173 parameter.
1174 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
1175 Update.
1176 (yylex): Add lvalp, state parameters.
1177 (yyerror): Add state parameter.
1178 (cp_demangled_name_to_comp): Update.
1179
55b6c984
TT
11802018-06-01 Tom Tromey <tom@tromey.com>
1181
1182 * cp-name-parser.y (parser_fprintf): Declare.
1183 (GDB_YY_REMAP_PREFIX): Define.
1184 Include yy-remap.h. Don't redefine yy* identifiers.
1185
3513a6bb
TT
11862018-06-01 Tom Tromey <tom@tromey.com>
1187
1188 * python/py-type.c (typy_legacy_template_argument): Update.
1189 * cp-support.h (cp_demangled_name_to_comp): Update.
1190 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
1191 parameter to be a "std::string *".
1192 (main): Update.
1193
e9cb46ab
L
11942018-06-01 H.J. Lu <hongjiu.lu@intel.com>
1195
1196 * ada-lex.l: Include "diagnostics.h" instead of
1197 "common/diagnostics.h".
1198 * unittests/environ-selftests.c: Likewise.
1199 * common/diagnostics.h: Moved to ../include.
1200
8e817061
JB
12012018-06-01 Joel Brobecker <brobecker@adacore.com>
1202
1203 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
1204 to language_mode_manual while calling breakpoint_re_set_one.
1205
a737d952
TT
12062018-06-01 Tom Tromey <tom@tromey.com>
1207
1208 * valops.c (value_cast_structs, destructor_name_p): Update.
1209 * symtab.c (gdb_mangle_name): Update.
1210 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
1211 Update.
1212 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
1213 (pascal_object_print_value_fields, pascal_object_print_value):
1214 Update.
1215 * p-typeprint.c (pascal_type_print_derivation_info): Update.
1216 * linespec.c (find_methods): Update.
1217 * gdbtypes.h (type_name_no_tag): Remove.
1218 (type_name_or_error): Rename from type_name_no_tag_or_error.
1219 * gdbtypes.c (type_name_no_tag): Remove.
1220 (type_name_or_error): Rename from type_name_no_tag_or_error.
1221 (lookup_struct_elt_type, check_typedef): Update.
1222 * expprint.c (print_subexp_standard): Update.
1223 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
1224 * d-namespace.c (d_lookup_nested_symbol): Update.
1225 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
1226 (cp_print_class_member): Update.
1227 * cp-namespace.c (cp_lookup_nested_symbol): Update.
1228 * completer.c (add_struct_fields): Update.
1229 * c-typeprint.c (cp_type_print_derivation_info)
1230 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
1231 Update.
1232 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
1233 (ada_prefer_type, ada_is_exception_sym): Update.
1234
e86ca25f
TT
12352018-06-01 Tom Tromey <tom@tromey.com>
1236
1237 * valops.c (enum_constant_from_type, value_namespace_elt)
1238 (value_maybe_namespace_elt): Update.
1239 * valarith.c (find_size_for_pointer_math): Update.
1240 * target-descriptions.c (make_gdb_type): Update.
1241 * symmisc.c (print_symbol): Update.
1242 * stabsread.c (define_symbol, read_type)
1243 (complain_about_struct_wipeout, add_undefined_type)
1244 (cleanup_undefined_types_1): Update.
1245 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
1246 (rust_range_type_p, val_print_struct, rust_print_struct_def)
1247 (rust_internal_print_type, rust_composite_type)
1248 (rust_evaluate_funcall, rust_evaluate_subexp)
1249 (rust_inclusive_range_type_p): Update.
1250 * python/py-type.c (typy_get_tag): Update.
1251 * p-typeprint.c (pascal_type_print_base): Update.
1252 * mdebugread.c (parse_symbol, parse_type): Update.
1253 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
1254 Update.
1255 * guile/scm-type.c (gdbscm_type_tag): Update.
1256 * go-lang.c (sixg_string_p): Update.
1257 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
1258 Update.
1259 * gdbtypes.h (struct main_type) <tag_name>: Remove.
1260 (TYPE_TAG_NAME): Remove.
1261 * gdbtypes.c (type_name_no_tag): Simplify.
1262 (check_typedef, check_types_equal, recursive_dump_type)
1263 (copy_type_recursive, arch_composite_type): Update.
1264 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
1265 in summary mode when needed.
1266 * eval.c (evaluate_funcall): Update.
1267 * dwarf2read.c (fixup_go_packaging, read_structure_type)
1268 (process_structure_scope, read_enumeration_type)
1269 (read_namespace_type, read_module_type, determine_prefix): Update.
1270 * cp-support.c (inspect_type): Update.
1271 * coffread.c (process_coff_symbol, decode_base_type): Update.
1272 * c-varobj.c (c_is_path_expr_parent): Update.
1273 * c-typeprint.c (c_type_print_base_struct_union): Update.
1274 (c_type_print_base_1): Update. Print struct/class/union/enum in
1275 summary when using C language.
1276 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
1277 (gen_maybe_namespace_elt): Update.
1278 * ada-lang.c (ada_type_name): Simplify.
1279 (empty_record, ada_template_to_fixed_record_type_1)
1280 (template_to_static_fixed_type)
1281 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
1282
c1ec8cea
TT
12832018-06-01 Tom Tromey <tom@tromey.com>
1284
1285 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
1286 c_print_type.
1287 * c-typeprint.c (c_print_type_1): Add "language" parameter.
1288 (c_print_type): Update.
1289 (c_print_type): New overload.
1290 (c_type_print_varspec_prefix, c_type_print_args)
1291 (c_type_print_varspec_suffix, c_print_type_no_offsets)
1292 (c_type_print_base_struct_union, c_type_print_base_1)
1293 (cp_type_print_method_args): Add "language" parameter.
1294 (c_type_print_base): Update.
1295 * c-lang.h (c_print_type): Add new overload.
1296
bc8453a7
TT
12972018-06-01 Tom Tromey <tom@tromey.com>
1298
1299 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
1300 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
1301
739e8682
AH
13022018-06-01 Alan Hayward <alan.hayward@arm.com>
1303
1304 * aarch64-tdep.c (aarch64_sve_register_names): New const
1305 var.
1306 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
1307 (AARCH64_SVE_Z_REGS_NUM): New define.
1308 (AARCH64_SVE_P_REGS_NUM): Likewise.
1309 (AARCH64_SVE_NUM_REGS): Likewise.
1310
8a60efe7
UB
13112018-05-31 Uros Bizjak <ubizjak@gmail.com>
1312
1313 * nat/linux-ptrace.h [__alpha__]
1314 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
1315 definitions.
1316
4b2dfa9d
MR
13172018-05-31 Maciej W. Rozycki <macro@mips.com>
1318
1319 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
1320 the endianness selected.
1321 * NEWS: Document `set endian auto' mode operation update.
1322
122394f1
AH
13232018-05-31 Alan Hayward <alan.hayward@arm.com>
1324
1325 * Makefile.in: Add new header.
1326 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
1327 (sve_vl_from_vg): Likewise.
1328 (sve_vq_from_vl): Likewise.
1329 (sve_vl_from_vq): Likewise.
1330 (sve_vq_from_vg): Likewise.
1331 (sve_vg_from_vq): Likewise.
1332 * configure.nat: Add new c file.
1333 * nat/aarch64-sve-linux-ptrace.c: New file.
1334 * nat/aarch64-sve-linux-ptrace.h: New file.
1335
95228a0d
AH
13362018-05-31 Alan Hayward <alan.hayward@arm.com>
1337
1338 * aarch64-linux-nat.c (aarch64_linux_read_description):
1339 Add parmeter zero.
1340 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1341 Likewise.
1342 * aarch64-tdep.c (tdesc_aarch64_list): Add.
1343 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
1344 (aarch64_gdbarch_init): Add parmeter zero.
1345 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
1346 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
1347 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
1348 parmeter.
1349 * doc/gdb.texinfo: Describe SVE feature
1350 * features/aarch64-sve.c: New file.
1351
5969f0db
OJ
13522018-05-31 Omair Javaid <omair.javaid@linaro.org>
1353
1354 PR gdb/23210
1355 * gdbarch.sh (significant_addr_bit): Default to zero when
1356 not set by target architecture.
1357 * gdbarch.c: Re-generated.
1358 * utils.c (address_significant): Update.
1359
61367c61
JB
13602018-05-30 Joel Brobecker <brobecker@adacore.com>
1361
1362 * stack.c (func_command): Remove trailing newline in call to error.
1363
34a79281
SM
13642018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1365
1366 * regcache.h (regcache_raw_collect): Remove, update callers to
1367 use regcache::raw_collect.
1368 * regcache.c (regcache_raw_collect): Remove.
1369
73e1c03f
SM
13702018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1371
1372 * regcache.h (regcache_raw_supply): Remove, update callers to
1373 use detached_regcache::raw_supply.
1374 * regcache.c (regcache_raw_supply): Remove.
1375
e4c4a59b
SM
13762018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1377
1378 * regcache.h (regcache_cooked_write_part): Remove, update
1379 callers to use regcache::cooked_write_part.
1380 * regcache.c (regcache_cooked_write_part): Remove.
1381
73bb0000
SM
13822018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1383
1384 * regcache.h (regcache_cooked_read_part): Remove, update callers
1385 to use readable_regcache::cooked_read_part.
1386 * regcache.c (regcache_cooked_read_part): Remove.
1387
46a45e9d
SM
13882018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1389
1390 * regcache.h (regcache_cooked_read_value): Remove, update
1391 callers to use readable_regcache::cooked_read_value.
1392 * regcache.c (regcache_cooked_read_value): Remove.
1393
b66f5587
SM
13942018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1395
1396 * regcache.h (regcache_cooked_write): Remove, update callers to
1397 use regcache::cooked_write.
1398 * regcache.c (regcache_cooked_write): Remove.
1399
6aa7d724
SM
14002018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1401
1402 * regcache.h (regcache_invalidate): Remove, update callers to
1403 use detached_regcache::invalidate instead.
1404 * regcache.c (regcache_invalidate): Remove.
1405
4f0420fd
SM
14062018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1407
1408 * regcache.h (regcache_raw_write_part): Remove, update callers
1409 to use regcache::raw_write_part instead.
1410 * regcache.c (regcache_raw_write_part): Remove.
1411
502fe83e
SM
14122018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1413
1414 * regcache.h (regcache_raw_read_part): Remove, update callers to
1415 use readable_regcache::raw_read_part instead.
1416 * regcache.c (regcache_raw_read_part): Remove.
1417
dca08e1f
SM
14182018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1419
1420 * regcache.h (regcache_cooked_read): Remove, update callers to
1421 use readable_regcache::cooked_read instead.
1422 * regcache.c (regcache_cooked_read): Remove.
1423
10eaee5f
SM
14242018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1425
1426 * regcache.h (regcache_raw_write): Remove, update callers to use
1427 regcache::raw_write instead.
1428 * regcache.c (regcache_raw_write): Remove.
1429
0b883586
SM
14302018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1431
1432 * regcache.h (regcache_raw_read): Remove, update callers to use
1433 readable_regcache::raw_read instead.
1434 * regcache.c (regcache_raw_read): Remove.
1435
0b47d985
SM
14362018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1437
1438 * regcache.h (regcache_raw_update): Remove, update callers to
1439 use readable_regcache::raw_update instead.
1440 * regcache.c (regcache_raw_update): Remove.
1441
0ec9f114
SM
14422018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1443
1444 * regcache.h (regcache_register_status): Remove, update callers
1445 to use reg_buffer::get_register_status directly instead.
1446 * regcache.c (regcache_register_status): Remove.
1447
222312d3
SM
14482018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1449
1450 * regcache.h (regcache_get_ptid): Remove, update all callers to
1451 call regcache::ptid instead.
1452 * regcache.c (regcache_get_ptid): Remove.
1453
fdbe37e3
SM
14542018-05-30 Simon Marchi <simon.marchi@ericsson.com>
1455
1456 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
1457
f7c6f423
PA
14582018-05-30 Pedro Alves <palves@redhat.com>
1459
1460 * common/common-exceptions.h (exception_rethrow): Use
1461 ATTRIBUTE_NORETURN.
1462
52941706
SM
14632018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
1464
1465 * breakpoint.c (print_solib_event, check_status_catch_solib):
1466 Remove struct keyword in range-based for loops.
1467 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
1468 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
1469 Likewise.
1470 * linespec.c (find_superclass_methods, search_minsyms_for_name):
1471 Likewise.
1472 * symfile.c (addr_info_make_relative): Likewise.
1473 * thread.c (value_in_thread_stack_temporaries): Likewise.
1474
bf2977b5
WP
14752018-06-12 Weimin Pan <weimin.pan@oracle.com>
1476
1477 PR gdb/16841
1478 * valops.c (value_struct_elt_for_reference): Call check_typedef on
1479 aggregate type to get its real type before accessing it.
1480
64cc34d8
WP
14812018-05-29 Weimin Pan <weimin.pan@oracle.com>
1482
1483 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
1484 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
1485 * coff-pe-read.c (add_pe_forwarded_sym): Replace
1486 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
1487 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
1488 * jit.c (jit_breakpoint_re_set_internal): Likewise.
1489 * printcmd.c (info_address_command): Likewise.
1490
e7ec8713
TT
14912018-05-29 Tom Tromey <tom@tromey.com>
1492
1493 * windows-nat.c (handle_exception): Update fall-through comment.
1494
bcb430e4
TT
14952018-05-29 Tom Tromey <tom@tromey.com>
1496
1497 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
1498 (struct program_space) <added_solibs>: Now a std::vector.
1499 * breakpoint.c (print_solib_event): Update.
1500 (check_status_catch_solib): Update.
1501 * progspace.c (clear_program_space_solib_cache): Update.
1502 * solib.c (update_solib_list): Update.
1503
894882e3
TT
15042018-05-29 Tom Tromey <tom@tromey.com>
1505
1506 * python/py-type.c (typy_richcompare): Update.
1507 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
1508 * gdbtypes.h (types_deeply_equal): Return bool.
1509 (types_equal): Likewise.
1510 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
1511 declare VEC.
1512 (check_types_equal): Change worklist to std::vector. Return
1513 bool.
1514 (struct type_equality_entry): Add constructor.
1515 (compare_maybe_null_strings): Return bool.
1516 (check_types_worklist): Return bool. Change worklist to
1517 std::vector.
1518 (types_deeply_equal): Use std::vector.
1519 (types_equal): Return bool.
1520 (compare_maybe_null_strings): Simplify.
1521
10b2ded4
TT
15222018-05-29 Tom Tromey <tom@tromey.com>
1523
1524 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
1525
4f7deebe
TT
15262018-05-29 Tom Tromey <tom@tromey.com>
1527
1528 * objc-lang.h: Don't include cp-support.h.
1529 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
1530 declare VEC.
1531
b8283aea
TT
15322018-05-27 Tom Tromey <tom@tromey.com>
1533
1534 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
1535
41a883c8
TT
15362018-05-25 Tom Tromey <tom@tromey.com>
1537
1538 * value.c (value::location): Initialize.
1539
bf259e25
TT
15402018-05-25 Tom Tromey <tom@tromey.com>
1541
1542 * dbxread.c (init_bincl_list): Remove.
1543 (bincl_list): Now a std::vector.
1544 (bincls_allocated, next_bincl): Remove.
1545 (free_bincl_list, do_free_bincl_list_cleanup)
1546 (make_cleanup_free_bincl_list): Remove.
1547 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
1548 unique_xmalloc_ptr.
1549 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
1550 (struct header_file_location): Add constructor.
1551 (add_bincl_to_list): Remove.
1552
d525a99b
TT
15532018-05-25 Tom Tromey <tom@tromey.com>
1554
1555 * tui/tui.c (tui_enable): Update.
1556 * mi/mi-interp.c (mi_interp::init): Update.
1557 * interps.h (class interp) <name>: New method.
1558 <m_name>: Rename from name.
1559 (~scoped_restore_interp): Update.
1560 * interps.c (interp::interp): Update.
1561 (interp_add, interp_set, interp_lookup_existing)
1562 (current_interp_named_p): Update.
1563
da505cff
TT
15642018-05-25 Tom Tromey <tom@tromey.com>
1565
1566 * interps.c (interp_name): Remove.
1567 * mi/mi-interp.c (mi_interp::init): Update.
1568 * interps.h (interp_name): Remove.
1569 (~scoped_restore_interp): Update.
1570 * tui/tui.c (tui_enable): Update.
1571
29f94340
TT
15722018-05-25 Tom Tromey <tom@tromey.com>
1573
1574 * utils.c (fputs_maybe_filtered): Update.
1575 * linespec.c (decode_line_full): Update.
1576 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
1577 (mi_print_breakpoint_for_event, mi_solib_loaded)
1578 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1579 (mi_user_selected_context_changed): Update.
1580 * mi/mi-main.c (mi_execute_command): Update.
1581 * cli/cli-script.c (execute_control_command): Update.
1582 * python/python.c (execute_gdb_command): Update.
1583 * solib.c (info_sharedlibrary_command): Update.
1584 * interps.c (interp_ui_out): Remove.
1585 * interps.h (interp_ui_out): Remove.
1586
716b8bc5
TT
15872018-05-25 Tom Tromey <tom@tromey.com>
1588
1589 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
1590 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
1591 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
1592
753ff9bd
TT
15932018-05-25 Tom Tromey <tom@tromey.com>
1594
1595 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
1596 * interps.c (interp_exec): Use scoped_restore.
1597
5ca3b260
TT
15982018-05-25 Tom Tromey <tom@tromey.com>
1599
1600 * remote.c (remote_target::remote_file_get): Use
1601 gdb::byte_vector.
1602 (remote_target::remote_file_put): Likewise.
1603
3173aa2f
TT
16042018-05-25 Tom Tromey <tom@tromey.com>
1605
1606 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
1607 a std::string.
1608 (get_pe_section_index, add_pe_exported_sym): Update.
1609 (read_pe_exported_syms): Use gdb::def_vector.
1610
09a5e1b5
TT
16112018-05-25 Tom Tromey <tom@tromey.com>
1612
1613 * frame.c (remove_prev_frame): Remove.
1614 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
1615
d8dab6c3
MR
16162018-05-25 Maciej W. Rozycki <macro@mips.com>
1617
1618 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
1619 Remove prototypes.
1620 * mips-linux-nat.c (supply_fpregset): Always call
1621 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
1622 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
1623 `mips_fill_fpregset'.
1624 * mips-linux-tdep.c (mips_supply_fpregset)
1625 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
1626 (mips_fill_fpregset_wrapper): Remove functions.
1627 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
1628 (mips_linux_fpregset): Remove variable.
1629 (mips_linux_iterate_over_regset_sections): Use
1630 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
1631 (mips_linux_o32_sigframe_init): Remove comment.
1632
3c69da40
PA
16332018-05-25 Pedro Alves <palves@redhat.com>
1634
1635 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
1636 (struct readahead_cache, struct packet_reg, struct
1637 remote_arch_state, class remote_state): Move higher up in the
1638 file.
1639 (remote_target::m_remote_state): Now an object instead of a pointer.
1640 (remote_target::get_remote_state): Adjust.
1641
39f0c204
AB
16422018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
1643
1644 * stack.c (select_and_print_frame): Delete.
1645 (struct function_bounds): Move struct within function.
1646 (func_command): Most content moved into new function
1647 find_frame_for_function, use new function, print result, add
1648 function comment.
1649 (find_frame_for_function): New function, now returns a result.
1650
d392224a
PW
16512018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1652
1653 * stack.c (iterate_over_block_arg_vars): Fix comment.
1654 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
1655
45f25d6c
AB
16562018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
1657
1658 PR gdb/23203
1659 * frame.c
1660 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1661 Define.
1662 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1663 Define.
1664 * frame.h (class scoped_restore_selected_frame): New class.
1665 * stack.c (print_frame_local_vars): Remove catching and rethrowing
1666 of any exception, use scoped_restore_selected_frame to restore the
1667 frame instead.
1668
da05d921
PA
16692018-05-24 Pedro Alves <palves@redhat.com>
1670
1671 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
1672 override.
1673
a8be540e
TT
16742018-05-23 Tom Tromey <tom@tromey.com>
1675
1676 * complaints.c (struct complaints): Remove.
1677 (symfile_complaint_book): Remove.
1678 (series): New global.
1679 (complaint_internal): Update.
1680 (clear_complaints): Update.
1681
ff1cf532
TT
16822018-05-23 Tom Tromey <tom@tromey.com>
1683
1684 * complaints.c (counters): New global.
1685 (struct complain): Remove.
1686 (struct complaints) <root>: Remove.
1687 (complaint_sentinel): Remove.
1688 (symfile_complaint_book): Update.
1689 (find_complaint) Remove.
1690 (complaint_internal, clear_complaints): Update.
1691
7ff88174
TT
16922018-05-23 Tom Tromey <tom@tromey.com>
1693
1694 * complaints.c (struct complain) <file, line>: Remove.
1695 (find_complaint): Remove file, line parameters.
1696 (complaint_internal): Update.
1697
de54e1a5
TT
16982018-05-23 Tom Tromey <tom@tromey.com>
1699
1700 * complaints.c (vcomplaint): Remove.
1701 (complaint_internal) Merge in contents of vcomplaint.
1702
2ac237e5
TT
17032018-05-23 Tom Tromey <tom@tromey.com>
1704
1705 * complaints.c (struct complaints) <explanation>: Remove.
1706 (symfile_explanations): Remove.
1707 (symfile_complaint_book): Update.
1708 (vcomplaint): Update.
1709 (struct explanation): Remove.
1710
b98664d3
TT
17112018-05-23 Tom Tromey <tom@tromey.com>
1712
1713 * complaints.c (symfile_complaints): Remove.
1714 (complaint_internal): Remove "complaints" parameter.
1715 (clear_complaints, vcomplaint): Remove "c" parameter.
1716 (get_complaints): Remove.
1717 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
1718 (dwarf2_debug_line_missing_file_complaint)
1719 (dwarf2_debug_line_missing_end_sequence_complaint)
1720 (dwarf2_complex_location_expr_complaint)
1721 (dwarf2_const_value_length_mismatch_complaint)
1722 (dwarf2_section_buffer_overflow_complaint)
1723 (dwarf2_macro_malformed_definition_complaint)
1724 (dwarf2_invalid_attrib_class_complaint)
1725 (create_addrmap_from_index, dw2_symtab_iter_next)
1726 (dw2_expand_marked_cus)
1727 (dw2_debug_names_iterator::find_vec_in_debug_names)
1728 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
1729 (create_debug_type_hash_table, init_cutu_and_read_dies)
1730 (partial_die_parent_scope, add_partial_enumeration)
1731 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
1732 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
1733 (read_import_statement, read_file_scope, create_dwo_cu_reader)
1734 (create_cus_hash_table, create_dwp_hash_table)
1735 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
1736 (dwarf2_rnglists_process, dwarf2_ranges_process)
1737 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
1738 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
1739 (handle_struct_member_die, process_structure_scope)
1740 (read_array_type, read_common_block, read_module_type)
1741 (read_tag_pointer_type, read_typedef, read_base_type)
1742 (read_subrange_type, load_partial_dies, partial_die_info::read)
1743 (partial_die_info::read, partial_die_info::read)
1744 (partial_die_info::read, read_checked_initial_length_and_offset)
1745 (dwarf2_string_attr, read_formatted_entries)
1746 (dwarf_decode_line_header)
1747 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
1748 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
1749 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
1750 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
1751 (get_signatured_type, get_DW_AT_signature_type)
1752 (decode_locdesc, file_file_name, consume_improper_spaces)
1753 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
1754 (dwarf_decode_macro_bytes, dwarf_decode_macros)
1755 (dwarf2_symbol_mark_computed, set_die_type)
1756 (read_attribute_value): Update.
1757 * stap-probe.c (handle_stap_probe, get_stap_base_address):
1758 Update.
1759 * dbxread.c (unknown_symtype_complaint)
1760 (lbrac_mismatch_complaint, repeated_header_complaint)
1761 (set_namestring, function_outside_compilation_unit_complaint)
1762 (read_dbx_symtab, process_one_symbol): Update.
1763 * gdbtypes.c (stub_noname_complaint): Update.
1764 * windows-nat.c (handle_unload_dll): Update.
1765 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
1766 (decode_base_type): Update.
1767 * xcoffread.c (bf_notfound_complaint, ef_complaint)
1768 (eb_complaint, record_include_begin, record_include_end)
1769 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
1770 (process_xcoff_symbol, read_symbol)
1771 (function_outside_compilation_unit_complaint)
1772 (scan_xcoff_symtab): Update.
1773 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
1774 * buildsym.c (finish_block_internal, make_blockvector)
1775 (end_symtab_get_static_block, augment_type_symtab): Update.
1776 * dtrace-probe.c (dtrace_process_dof)
1777 (dtrace_static_probe_ops::get_probes): Update.
1778 * complaints.h (struct complaint): Don't declare.
1779 (symfile_complaints): Remove.
1780 (complaint_internal): Remove "complaints" parameter.
1781 (complaint): Likewise.
1782 (clear_complaints): Likewise.
1783 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1784 (reread_symbols): Update.
1785 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1786 (dwarf2_frame_cache, decode_frame_entry): Update.
1787 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
1788 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1789 (info_selectors_command): Update.
1790 * macrotab.c (macro_include, check_for_redefinition)
1791 (macro_undef): Update.
1792 * objfiles.c (filter_overlapping_sections): Update.
1793 * stabsread.c (invalid_cpp_abbrev_complaint)
1794 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
1795 (define_symbol, error_type, read_type, rs6000_builtin_type)
1796 (stabs_method_name_from_physname, read_member_functions)
1797 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
1798 (attach_fields_to_type, complain_about_struct_wipeout)
1799 (read_range_type, read_args, common_block_start)
1800 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
1801 Update.
1802 * mdebugread.c (index_complaint, unknown_ext_complaint)
1803 (basic_type_complaint, bad_tag_guess_complaint)
1804 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
1805 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
1806 (parse_procedure, parse_lines)
1807 (function_outside_compilation_unit_complaint)
1808 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
1809 (bad_tag_guess_complaint, reg_value_complaint): Update.
1810 * cp-support.c (demangled_name_complaint): Update.
1811 * macroscope.c (sal_macro_scope): Update.
1812 * dwarf-index-write.c (class debug_names): Update.
1813
4e9668d0
TT
18142018-05-23 Tom Tromey <tom@tromey.com>
1815
1816 * complaints.c (clear_complaints): Remove "noisy" parameter.
1817 * complaints.h (clear_complaints): Update.
1818 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1819 (reread_symbols): Update.
1820
43ba33c7
TT
18212018-05-23 Tom Tromey <tom@tromey.com>
1822
1823 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
1824 SUBSEQUENT_MESSAGE.
1825 (vcomplaint, clear_complaints): Update.
1826 (symfile_explanations): Remove some messages.
1827
2b9496b2
TT
18282018-05-23 Tom Tromey <tom@tromey.com>
1829
1830 * complaints.c (internal_complaint): Remove.
1831 * complaints.h (internal_complaint): Remove.
1832
35f1fea3
MR
18332018-05-22 Maciej W. Rozycki <macro@mips.com>
1834
1835 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
1836
6b8edb51
PA
18372018-05-22 Pedro Alves <palves@redhat.com>
1838
1839 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
1840 (remote_fileio_badfd, remote_fileio_return_errno)
1841 (remote_fileio_return_success, remote_fileio_func_open)
1842 (remote_fileio_func_open, remote_fileio_func_close)
1843 (remote_fileio_func_read, remote_fileio_func_write)
1844 (remote_fileio_func_lseek, remote_fileio_func_rename)
1845 (remote_fileio_func_unlink, remote_fileio_func_stat)
1846 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
1847 (remote_fileio_func_isatty, remote_fileio_func_system): Add
1848 remote_target parameter.
1849 (remote_fio_func_map) <func>: Add remote_target parameter.
1850 (do_remote_fileio_request, remote_fileio_request):
1851 * remote-fileio.h (remote_fileio_request):
1852 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
1853 remote_target parameter.
1854 (remote_notif_process, handle_notification): Adjust to pass down
1855 the remote.
1856 (remote_notif_state_allocate): Add remote_target parameter. Save
1857 it.
1858 * remote-notif.h (struct remote_target): Forward declare.
1859 (struct notif_client) <parse, ack, can_get_pending_events>: Add
1860 remote_target parameter.
1861 (struct remote_notif_state) <remote>: New field.
1862 (remote_notif_ack, remote_notif_parse): Add remote_target
1863 parameter.
1864 (remote_notif_state_allocate, remote_notif_state_allocate): Add
1865 remote_target parameter.
1866 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
1867 (threads_listing_context, rmt_thread_action, protocol_feature)
1868 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
1869 (packet_result, struct threads_listing_context, remote_state):
1870 Move definitions and declarations higher up.
1871 (remote_target) <~remote_target>: Declare.
1872 (remote_download_command_source, remote_file_put, remote_file_get)
1873 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
1874 (remote_hostio_pread_vFile, remote_hostio_send_command)
1875 (remote_hostio_set_filesystem, remote_hostio_open)
1876 (remote_hostio_close, remote_hostio_unlink, remote_state)
1877 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
1878 (get_memory_write_packet_size, get_memory_read_packet_size)
1879 (append_pending_thread_resumptions, remote_detach_1)
1880 (append_resumption, remote_resume_with_vcont)
1881 (add_current_inferior_and_thread, wait_ns, wait_as)
1882 (process_stop_reply, remote_notice_new_inferior)
1883 (process_initial_stop_replies, remote_add_thread)
1884 (btrace_sync_conf, remote_btrace_maybe_reopen)
1885 (remove_new_fork_children, kill_new_fork_children)
1886 (discard_pending_stop_replies, stop_reply_queue_length)
1887 (check_pending_events_prevent_wildcard_vcont)
1888 (discard_pending_stop_replies_in_queue, stop_reply)
1889 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
1890 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
1891 (remote_interrupt_as, remote_interrupt_ns)
1892 (remote_get_noisy_reply, remote_query_attached)
1893 (remote_add_inferior, remote_current_thread, get_current_thread)
1894 (set_thread, set_general_thread, set_continue_thread)
1895 (set_general_process, write_ptid)
1896 (remote_unpack_thread_info_response, remote_get_threadinfo)
1897 (parse_threadlist_response, remote_get_threadlist)
1898 (remote_threadlist_iterator, remote_get_threads_with_ql)
1899 (remote_get_threads_with_qxfer)
1900 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
1901 (get_offsets, remote_check_symbols, remote_supported_packet)
1902 (remote_query_supported, remote_packet_size)
1903 (remote_serial_quit_handler, remote_detach_pid)
1904 (remote_vcont_probe, remote_resume_with_hc)
1905 (send_interrupt_sequence, interrupt_query)
1906 (remote_notif_get_pending_events, fetch_register_using_p)
1907 (send_g_packet, process_g_packet, fetch_registers_using_g)
1908 (store_register_using_P, store_registers_using_G)
1909 (set_remote_traceframe, check_binary_download)
1910 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
1911 (remote_xfer_live_readonly_partial, remote_read_bytes)
1912 (remote_send_printf, remote_flash_write, readchar)
1913 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
1914 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
1915 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
1916 (extended_remote_disable_randomization, extended_remote_run)
1917 (send_environment_packet, extended_remote_environment_support)
1918 (extended_remote_set_inferior_cwd, remote_write_qxfer)
1919 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
1920 (packet_command): Now methods of ...
1921 (remote_target): ... this class.
1922 (m_remote_state) <remote_target>: New field.
1923 (struct remote_state) <stop_reply_queue,
1924 remote_async_inferior_event_token, wait_forever_enabled_p>: New
1925 fields.
1926 (remote_state::remote_state): Allocate stop_reply_queue.
1927 (remote_state): Delete global.
1928 (get_remote_state_raw): Delete.
1929 (remote_target::get_remote_state): Allocate m_remote_state on
1930 demand.
1931 (get_current_remote_target): New.
1932 (remote_ops, extended_remote_ops): Delete.
1933 (wait_forever_enabled_p, remote_async_inferior_event_token):
1934 Delete, moved to struct remote_state.
1935 (remote_target::close): Delete self. Destruction bits split to
1936 ...
1937 (remote_target::~remote_target): ... this.
1938 (show_memory_packet_size): Adjust to use
1939 get_current_remote_target.
1940 (struct protocol_feature) <func>: Add remote_target parameter.
1941 All callers adjusted.
1942 (curr_quit_handler_target): New.
1943 (remote_serial_quit_handler): Reimplement.
1944 (remote_target::open_1): Adjust to use get_current_remote_target.
1945 Heap-allocate remote_target/extended_remote_target instances.
1946 (vcont_builder::vcont_builder): Add remote_target parameter, and
1947 save it in m_remote. All callers adjusted.
1948 (vcont_builder::m_remote): New field.
1949 (vcont_builder::restart, vcont_builder::flush)
1950 (vcont_builder::push_action): Use it.
1951 (remote_target::commit_resume): Use it.
1952 (struct queue_iter_param) <remote>: New field.
1953 (remote_target::remove_new_fork_children): Fill in 'remote' field.
1954 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
1955 (check_pending_event_prevents_wildcard_vcont_callback)
1956 (remote_target::check_pending_events_prevent_wildcard_vcont)
1957 (remote_target::discard_pending_stop_replies)
1958 (remote_target::discard_pending_stop_replies_in_queue)
1959 (remote_target::remote_notif_remove_queued_reply): Fill in
1960 'remote' field.
1961 (remote_notif_get_pending_events): New.
1962 (remote_target::readchar, remote_target::remote_serial_write):
1963 Save/restore curr_quit_handler_target.
1964 (putpkt): New.
1965 (kill_new_fork_children): Fill in 'remote' field.
1966 (packet_command): Use get_current_remote_target, defer to
1967 remote_target method of same name.
1968 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
1969 parameter, and save it in m_remote. All callers adjusted.
1970 (scoped_remote_fd::release): Use m_remote.
1971 (scoped_remote_fd::m_remote): New field.
1972 (remote_file_put, remote_file_get, remote_file_delete): Use
1973 get_current_remote_target, defer to remote_target method of same
1974 name.
1975 (remote_btrace_reset): Add remote_state paremeter. Update all
1976 callers.
1977 (remote_async_inferior_event_handler). Pass down 'data'.
1978 (remote_new_objfile): Use get_current_remote_target.
1979 (remote_target::vcont_r_supported): New.
1980 (set_range_stepping): Use get_current_remote_target and
1981 remote_target::vcont_r_supported.
1982 (_initialize_remote): Don't allocate 'remote_state' and
1983 'stop_reply_queue' globals.
1984 * remote.h (struct remote_target): Forward declare.
1985 (getpkt, putpkt, remote_notif_get_pending_events): Add
1986 'remote_target' parameter.
1987
f5db4863
PA
19882018-05-22 Pedro Alves <palves@redhat.com>
1989
1990 * remote.c (vcont_builder): Now a class. Make all data members
1991 private.
1992 (vcont_builder) <vcont_builder, restart, flush, push_action>:
1993 Declare methods.
1994 (vcont_builder_restart): Rename to ...
1995 (vcont_builder::restart): ... this.
1996 (vcont_builder_flush): Rename to ...
1997 (vcont_builder::flush): ... this.
1998 (vcont_builder_push_action): Rename to ...
1999 (vcont_builder::push_action): ... this.
2000 (remote_target::commit_resume): Adjust.
2001
cc0be08f
PA
20022018-05-22 Pedro Alves <palves@redhat.com>
2003
2004 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
2005 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
2006 (get_fixed_memory_packet_size): New.
2007 (get_memory_packet_size): Use it.
2008 (set_memory_packet_size): Don't override the config size with
2009 DEFAULT_MAX_MEMORY_PACKET_SIZE.
2010 (show_memory_packet_size): Use get_fixed_memory_packet_size.
2011 Don't refer to get_memory_packet_size if not connected to a remote
2012 target. Show "(default)" if configured size is 0.
2013
9607784a
PA
20142018-05-22 Pedro Alves <palves@redhat.com>
2015
2016 * remote.c (remote_target::mourn_inferior): Move
2017 discard_pending_stop_replies call here from ...
2018 (_initialize_remote): ... here.
2019
0e9a6b2f
PA
20202018-05-22 Pedro Alves <palves@redhat.com>
2021
2022 * remote.c (compare_section_command): Remove set_general_process
2023 call.
2024
43c3a0e4
PA
20252018-05-22 Pedro Alves <palves@redhat.com>
2026
2027 * remote.c (struct packet_reg, struct remote_arch_state):
2028 Move higher up in the file.
2029 (remote_state) <m_arch_states>: Store remote_arch_state values
2030 instead of remote_arch_state pointers.
2031 (remote_state::get_remote_arch_state): Adjust.
2032
9d6eea31
PA
20332018-05-22 Pedro Alves <palves@redhat.com>
2034
2035 * remote.c: Include <unordered_map>.
2036 (remote_state): Now a class.
2037 (remote_state) <get_remote_arch_state>: Declare method.
2038 <get_remote_arch_state>: New field.
2039 (remote_arch_state) <remote_arch_state>: Declare ctor.
2040 <regs>: Now a unique_ptr.
2041 (remote_gdbarch_data_handle): Delete.
2042 (get_remote_arch_state): Delete.
2043 (remote_state::get_remote_arch_state): New.
2044 (get_remote_state): Adjust to call remote_state's
2045 get_remote_arch_state method.
2046 (init_remote_state): Delete, bits factored out to ...
2047 (remote_arch_state::remote_arch_state): ... this new method.
2048 (get_remote_packet_size, get_memory_packet_size)
2049 (process_g_packet, remote_target::fetch_registers)
2050 (remote_target::prepare_to_store, store_registers_using_G)
2051 (remote_target::store_registers, remote_target::get_trace_status):
2052 Adjust to call remote_state's method.
2053 (_initialize_remote): Remove reference to
2054 remote_gdbarch_data_handle.
2055
dd194f6b
PA
20562018-05-22 Pedro Alves <palves@redhat.com>
2057
2058 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
2059 pread>: New method declarations.
2060 (remote_target::open_1): Adjust.
2061 (readahead_cache_invalidate): Rename to ...
2062 (readahead_cache::invalidate): ... this, and adjust to be a class
2063 method.
2064 (readahead_cache_invalidate_fd): Rename to ...
2065 (readahead_cache::invalidate_fd): ... this, and adjust to be a
2066 class method.
2067 (remote_hostio_pwrite): Adjust.
2068 (remote_hostio_pread_from_cache): Rename to ...
2069 (readahead_cache::pread): ... this, and adjust to be a class
2070 method.
2071 (remote_hostio_close): Adjust.
2072
440b7aec
PA
20732018-05-22 Pedro Alves <palves@redhat.com>
2074
2075 * remote.c (remote_hostio_close_cleanup): Delete.
2076 (class scoped_remote_fd): New.
2077 (remote_file_put, remote_file_get): Use it.
2078
de44f5a7
PA
20792018-05-22 Pedro Alves <palves@redhat.com>
2080
2081 (struct vCont_action_support): Use bool and initialize all fields.
2082 (struct readahead_cache): Initialize all fields.
2083 (remote_state): Use bool and initialize all fields.
2084 (remote_state::remote_state, remote_state::~remote_state): New.
2085 (new_remote_state): Delete.
2086 (_initialize_remote): Use new to allocate remote_state.
2087
b1b60145
PA
20882018-05-22 Pedro Alves <palves@redhat.com>
2089 張俊芝 <zjz@zjz.name>
2090
2091 PR gdb/22973
2092 * c-exp.y: Include "c-support.h".
2093 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
2094 of tolower. Use c_ident_is_alpha to scan names.
2095 * c-lang.c: Include "c-support.h".
2096 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
2097 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
2098 * c-support.h: New file, with bits factored out from ...
2099 * cp-name-parser.y: ... this file.
2100 Include "c-support.h".
2101 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
2102 c-support.h and renamed.
2103 (symbol_end, yylex): Adjust.
2104
0ec848ad
PFC
21052018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2106
2107 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
2108 parameter type to CORE_ADDR.
2109 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
2110 parameter type in declaration to CORE_ADDR.
2111 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
2112 target_auxv_search to get AT_HWCAP and use the result to get the
2113 target description.
2114 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
2115 to CORE_ADDR. Remove the cast of the return value to unsigned
2116 long. Fix error predicate of target_auxv_search.
2117 (ppc_linux_nat_target::read_description): Change the type of the
2118 hwcap variable to CORE_ADDR.
2119
0fb2aaa1
PFC
21202018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2121
2122 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
2123 if the size of fpscr is larger than 32 bits.
2124
2c3305f6
PFC
21252018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2126
2127 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
2128 (ppc32_linux_vsxregmap): New global.
2129 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
2130 regcache_supply_regset, and regcache_collect_regset.
2131 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
2132 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
2133 (fetch_vsx_register, store_vsx_register): Remove.
2134 (fetch_vsx_registers): Add regno parameter. Get regset using
2135 ppc_linux_vsxregset. Use regset to supply registers.
2136 (store_vsx_registers): Add regno parameter. Get regset using
2137 ppc_linux_vsxregset. Use regset to collect registers.
2138 (fetch_register): Call fetch_vsx_registers instead of
2139 fetch_vsx_register.
2140 (store_register): Call store_vsx_registers instead of
2141 store_vsx_register.
2142 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
2143 new regno parameter.
2144 (store_ppc_registers): Call store_vsx_registers with -1 for the
2145 new regno parameter.
2146 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
2147 (ppc_collect_vsxregset): Remove.
2148
1d75a658
PFC
21492018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2150
2151 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
2152 offset fields.
2153 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
2154 for vector register offset fields.
2155 (ppc64_fbsd_reg_offsets): Likewise.
2156 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
2157 to vector register offset fields.
2158 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
2159 to vector register offset fields.
2160 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
2161 vector register offset fields.
2162 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
2163 initializers for vector register offset fields.
2164 (rs6000_aix64_reg_offsets): Likewise.
2165 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
2166 (ppc_supply_vrregset): Remove.
2167 (ppc_collect_vrregset): Remove.
2168 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
2169 (ppc_linux_vrregset) : New function.
2170 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
2171 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
2172 (ppc32_linux_vrregset): Remove.
2173 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
2174 and use result instead of ppc32_linux_vrregset.
2175 (ppc32_linux_reg_offsets): Remove initializers for vector register
2176 offset fields.
2177 (ppc64_linux_reg_offsets): Likewise.
2178 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
2179 * ppc-linux-nat.c: Include regset.h.
2180 (gdb_vrregset_t): Adjust comment to account for little-endian
2181 mode.
2182 (supply_vrregset, fill_vrregset): Remove.
2183 (fetch_altivec_register, store_altivec_register): Remove.
2184 (fetch_altivec_registers): Add regno parameter. Get regset using
2185 ppc_linux_vrregset. Use regset to supply registers.
2186 (store_altivec_registers): Add regno parameter. Get regset using
2187 ppc_linux_vrregset. Use regset to collect registers.
2188 (fetch_register): Call fetch_altivec_registers instead of
2189 fetch_altivec_register.
2190 (store_register): Call store_altivec_registers instead of
2191 store_altivec_register.
2192 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
2193 the new regno parameter.
2194 (store_ppc_registers): Call store_altivec_registers with -1 for
2195 the new regno parameter.
2196
d078308a
PFC
21972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2198
2199 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
2200 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
2201 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
2202 (gdb_vrregset_t): Change array type size to
2203 PPC_LINUX_SIZEOF_VRREGSET.
2204 (gdb_vsxregset_t): Change array type size to
2205 PPC_LINUX_SIZEOF_VSXREGSET.
2206 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
2207 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
2208 PPC_LINUX_SIZEOF_VSXREGSET.
2209
2e077f5e
PFC
22102018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2211
2212 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
2213 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
2214 nat/ppc-linux.c.
2215 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
2216 ppc_linux_target_wordsize with tid.
2217 (ppc_linux_nat_target::read_description): Call ppc_linux_target
2218 wordsize with tid.
2219 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
2220 (ppc64_64bit_inferior_p): Add static and inline specifiers.
2221 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
2222 tid parameter. Remove static specifier.
2223 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
2224 (ppc_linux_target_wordsize): New declaration.
2225
bd64614e
PFC
22262018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2227
2228 * arch/ppc-linux-common.c: New file.
2229 * arch/ppc-linux-common.h: New file.
2230 * arch/ppc-linux-tdesc.h: New file.
2231 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
2232 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
2233 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
2234 arch/ppc-linux-tdesc.h.
2235 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
2236 arch/ppc-linux-tdesc.h.
2237 (ppc_linux_nat_target::read_description): Remove target
2238 description matching code. Fill a ppc_linux_features struct and
2239 call ppc_linux_match_description with it. Move comment about ISA
2240 2.05 to ppc-linux-common.c.
2241 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
2242 arch/ppc-linux-tdesc.h.
2243 (ppc_linux_core_read_description): Remove target description
2244 matching code. Fill a ppc_linux_features struct and call
2245 ppc_linux_match_description with it.
2246 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
2247 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
2248 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
2249 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
2250 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
2251 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
2252 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
2253 (tdesc_powerpc_e500l): Remove.
2254
241db429
JB
22552018-05-22 Joel Brobecker <brobecker@adacore.com>
2256
2257 * ada-lang.c (catch_assert_command): Pass empty string instead
2258 of NULL for excep_string argument.
2259
75d74cca
MR
22602018-05-22 Maciej W. Rozycki <macro@mips.com>
2261
2262 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
2263 the width of the requested register exceeds the width of the
2264 `ptrace' data type.
2265
122b53ea
TT
22662018-05-21 Tom Tromey <tom@tromey.com>
2267
2268 * printcmd.c (output_command): Remove.
2269 (output_command_const): Rename to output_command.
2270 * valprint.h (output_command): Rename from output_command_const.
2271 * tracepoint.c (trace_dump_actions): Call output_command.
2272
bc18fbb5
TT
22732018-05-21 Tom Tromey <tom@tromey.com>
2274
2275 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
2276 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
2277 * ada-lang.h (create_ada_exception_catchpoint): Update.
2278 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
2279 std::string.
2280 (create_excep_cond_exprs, ~ada_catchpoint)
2281 (should_stop_exception, print_one_exception)
2282 (print_mention_exception, print_recreate_exception): Update.
2283 (ada_get_next_arg): Remove.
2284 (catch_ada_exception_command_split): Use std::string. Change type
2285 of "excep_string", "cond_string".
2286 (catch_ada_exception_command): Update.
2287 (create_ada_exception_catchpoint): Change type of excep_string.
2288 (ada_exception_sal): Remove excep_string parameter.
2289 (~ada_catchpoint): Remove.
2290
790217f6
TT
22912018-05-21 Tom Tromey <tom@tromey.com>
2292
2293 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
2294 cleanup.
2295
6f46ac85
TT
22962018-05-21 Tom Tromey <tom@tromey.com>
2297
2298 * ada-lang.c (ada_exception_message_1, ada_exception_message):
2299 Return unique_xmalloc_ptr.
2300 (print_it_exception): Update.
2301
15b6611c
TT
23022018-05-21 Tom Tromey <tom@tromey.com>
2303
2304 * tracepoint.c (trace_dump_actions): Use std::string.
2305
c0c9f665
TT
23062018-05-21 Tom Tromey <tom@tromey.com>
2307
2308 * symfile.c (reread_symbols): Use std::string for original_name.
2309
22ca247e
TT
23102018-05-21 Tom Tromey <tom@tromey.com>
2311
2312 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
2313 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
2314 constructor.
2315
184cde75
SM
23162018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
2317
2318 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
2319 instance to...
2320 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
2321 * objfiles.c (get_objfile_bfd_data): Allocate
2322 objfile_per_bfd_storage with obstack_new when allocating on
2323 obstack.
2324
e39db4db
SM
23252018-05-20 Simon Marchi <simon.marchi@ericsson.com>
2326
2327 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
2328 OBSTACK_ZALLOC.
2329 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2330 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2331 * mdebugread.c (mdebug_build_psymtabs): Likewise.
2332 (add_pending): Likewise.
2333 (parse_symbol): Likewise.
2334 (parse_partial_symbols): Likewise.
2335 (psymtab_to_symtab_1): Likewise.
2336 (new_psymtab): Likewise.
2337 (elfmdebug_build_psymtabs): Likewise.
2338 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2339 * objfiles.c (get_objfile_bfd_data): Likewise.
2340 (objfile_register_static_link): Likewise.
2341 * psymtab.c (allocate_psymtab): Likewise.
2342 * stabsread.c (read_member_functions): Likewise.
2343 * xcoffread.c (xcoff_end_psymtab): Likewise.
2344
284a0e3c
SM
23452018-05-20 Simon Marchi <simon.marchi@ericsson.com>
2346
2347 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
2348 compiler supports std::is_trivially_constructible.
2349 * common/poison.h: Include obstack.h.
2350 (IsMallocable): Define to is_trivially_constructible if the
2351 compiler supports it, define to true_type otherwise.
2352 (xobnew): New.
2353 (XOBNEW): Redefine.
2354 (xobnewvec): New.
2355 (XOBNEWVEC): Redefine.
2356 * gdb_obstack.h (obstack_zalloc): New.
2357 (OBSTACK_ZALLOC): Redefine.
2358 (obstack_calloc): New.
2359 (OBSTACK_CALLOC): Redefine.
2360 (obstack_new): New.
2361 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
2362 (gdbarch_obstack): New declaration in gdbarch.h, definition in
2363 gdbarch.c.
2364 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
2365 obstack_calloc/obstack_zalloc.
2366 (gdbarch_obstack_zalloc): Remove.
2367 * target-descriptions.c (tdesc_data_init): Use obstack_new.
2368
59f66be3
PW
23692018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2370
2371 * stack.c (backtrace_command_1): Remove useless variable int i.
2372
50c65c2d
PW
23732018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2374
2375 * stack.c (print_frame_info): Fix comment.
2376
7ff8cb8c
TT
23772018-05-18 Tom Tromey <tom@tromey.com>
2378
2379 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
2380 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
2381 (~dwarf2_per_objfile): Update
2382 (dwarf2_get_dwz_file): Use new.
2383 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
2384 unique_ptr.
2385
400174b1
TT
23862018-05-18 Tom Tromey <tom@tromey.com>
2387
2388 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
2389 unique_ptr.
2390 * dwarf2read.c (struct dwp_file): Add constructor and
2391 initializers.
2392 (open_and_init_dwp_file): Return a unique_ptr.
2393 (dwarf2_per_objfile, create_dwp_hash_table)
2394 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
2395 (lookup_dwo_unit_in_dwp): Update.
2396 (open_and_init_dwp_file, get_dwp_file): Update.
2397
3063847f
TT
23982018-05-18 Tom Tromey <tom@tromey.com>
2399
2400 * dwarf2read.c (dwarf2_per_objfile): Update.
2401 (struct mapped_index): Add initializers.
2402 (dwarf2_read_index): Use new.
2403 (dw2_symtab_iter_init): Update.
2404 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
2405 unique_ptr.
2406
d3d02dee
SM
24072018-05-18 Simon Marchi <simon.marchi@ericsson.com>
2408
2409 * dwarf2read.c (mapped_index) <total_size>: Remove.
2410
1d143c36
SM
24112018-05-18 Simon Marchi <simon.marchi@ericsson.com>
2412
2413 * unittests/format_pieces-selftests.c (test_format_specifier):
2414 Add ARI comments.
2415
ce1e8424
TT
24162018-05-18 Tom Tromey <tom@tromey.com>
2417
2418 * c-typeprint.c (maybe_print_hole): New function.
2419 (c_print_type_struct_field_offset): Update.
2420 (c_type_print_base_struct_union): Call maybe_print_hole.
2421
ddfe970e
KS
24222018-05-17 Keith Seitz <keiths@redhat.com>
2423
2424 * breakpoint.c (build_bpstat_chain): New function, moved from
2425 bpstat_stop_status.
2426 (bpstat_stop_status): Add optional parameter, `stop_chain'.
2427 If no stop chain is passed, call build_bpstat_chain to build it.
2428 * breakpoint.h (build_bpstat_chain): Declare.
2429 (bpstat_stop_status): Move documentation here from breakpoint.c.
2430 * infrun.c (handle_signal_stop): Before eliding inlined frames,
2431 build the stop chain and pass it to skip_inline_frames.
2432 Pass this stop chain to bpstat_stop_status.
2433 * inline-frame.c: Include breakpoint.h.
2434 (stopped_by_user_bp_inline_frame): New function.
2435 (skip_inline_frames): Add parameter `stop_chain'.
2436 Move documention to inline-frame.h.
2437 If non-NULL, use stopped_by_user_bp_inline_frame to determine
2438 whether the frame should be elided.
2439 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
2440 Add moved documentation and update for new parameter.
2441
b17992c1
SM
24422018-05-17 Simon Marchi <simon.marchi@ericsson.com>
2443
2444 PR cli/14975
2445 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2446 unittests/format_pieces-selftests.c.
2447 * common/format.h (format_piece) <operator==>: New.
2448 (format_pieces) <operator[]>: Remove.
2449 * common/format.c (format_pieces::format_pieces): Handle \e.
2450 * unittests/format_pieces-selftests.c: New.
2451
58f0c718
TT
24522018-05-17 Tom Tromey <tom@tromey.com>
2453
2454 PR symtab/23010:
2455 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
2456 (dw2_instantiate_symtab): Add skip_partial parameter.
2457 (dw2_find_last_source_symtab, dw2_map_expand_apply)
2458 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
2459 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
2460 (dw2_expand_symtabs_matching_one)
2461 (dw2_find_pc_sect_compunit_symtab)
2462 (dw2_debug_names_lookup_symbol)
2463 (dw2_debug_names_expand_symtabs_for_function): Update.
2464 (init_cutu_and_read_dies): Add skip_partial parameter.
2465 (process_psymtab_comp_unit, build_type_psymtabs_1)
2466 (process_skeletonless_type_unit, load_partial_comp_unit)
2467 (psymtab_to_symtab_1): Update.
2468 (load_full_comp_unit): Add skip_partial parameter.
2469 (process_imported_unit_die, dwarf2_read_addr_index)
2470 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
2471 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
2472 (read_signatured_type): Update.
2473
3e618834
SM
24742018-05-17 Simon Marchi <simon.marchi@ericsson.com>
2475
2476 * value.c (release_value): Remove unused variable.
2477 (record_latest_value): Likewise.
2478 (access_value_history): Likewise.
2479 (preserve_values): Likewise.
2480
fe10fe31
TT
24812018-05-17 Tom Tromey <tom@tromey.com>
2482
2483 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
2484 Initialize.
2485
1d761124
MR
24862018-05-16 Maciej W. Rozycki <macro@mips.com>
2487
2488 PR gdb/22286
2489 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
2490 Also handle registers whose width is not a multiple of
2491 PTRACE_TYPE_RET.
2492 (linux_nat_trad_target::store_register): Likewise.
2493
06333fea
TT
24942018-05-16 Tom Tromey <tom@tromey.com>
2495
2496 * gdbcore.h (core_bfd): Redefine.
2497 * corelow.c (core_target::close): Update.
2498 (core_target_open): Update.
2499 * progspace.h (struct program_space) <cbfd>: Now a
2500 gdb_bfd_ref_ptr.
2501
921222e2
TT
25022018-05-16 Tom Tromey <tom@tromey.com>
2503
2504 PR cli/19551:
2505 * symfile-add-flags.h (enum symfile_add_flags)
2506 <SYMFILE_NOT_FILENAME>: New constant.
2507 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
2508 objfile name from BFD.
2509 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
2510 * minidebug.c (find_separate_debug_file_in_section): Put
2511 ".gnu_debugdata" into BFD's file name.
2512
3acb7083
SM
25132018-05-16 Simon Marchi <simon.marchi@ericsson.com>
2514
2515 * regcache.c (regcache_read_ftype, regcache_write_ftype):
2516 Remove.
2517
561a72d4
TC
25182018-05-15 Tamar Christina <tamar.christina@arm.com>
2519
2520 PR binutils/21446
2521 * aarch64-tdep.c (aarch64_analyze_prologue,
2522 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
2523 Indicate not interested in errors.
2524
4e6ff0e1
MR
25252018-05-15 Maciej W. Rozycki <macro@mips.com>
2526
2527 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
2528 Supply the MIPS_ZERO_REGNUM register.
2529
ea33cd92
MR
25302018-05-15 Maciej W. Rozycki <macro@mips.com>
2531
2532 * mips-tdep.c (mask_address_var): Make variable static.
2533
2d79090e
TT
25342018-05-14 Tom Tromey <tom@tromey.com>
2535
2536 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
2537
cf4912ae
AB
25382018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
2539
2540 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
2541 FXSAVE_ADDR for the mxcsr register.
2542
67e6f569
MF
25432018-05-11 Max Filippov <jcmvbkbc@gmail.com>
2544
2545 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
2546
15244507
PA
25472018-05-11 Pedro Alves <palves@redhat.com>
2548
2549 * corelow.c (core_target) <core_target>: No longer inline.
2550 Initialize m_core_gdbarch, m_core_vec and build the section table
2551 here.
2552 <~core_target>: New.
2553 <core_gdbarch, get_core_register_section>: New methods.
2554 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
2555 factored out from ...
2556 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
2557 (core_ops): Delete.
2558 (sniff_core_bfd): Add gdbarch parameter.
2559 (core_close): Delete, merged into ...
2560 (core_target::close): ... here. Delete self.
2561 (core_close_cleanup): Delete.
2562 (core_target_open): Allocate a core_target on the heap. Use a
2563 unique_ptr instead of a cleanup. Bits moved into the core_target
2564 ctor. Adjust to use core_target methods instead of globals.
2565 (get_core_register_section): Rename to ...
2566 (core_target::get_core_register_section): ... this and adjust.
2567 (struct get_core_registers_cb_data): New.
2568 (get_core_registers_cb): Use it. Use bool.
2569 (core_target::fetch_registers, core_target::files_info)
2570 (core_target::xfer_partial, core_target::read_description)
2571 (core_target::pid_to, core_target::thread_name): Adjust to
2572 reference class fields instead of globals.
2573 * target.h (struct target_ops_deleter, target_ops_up): New.
2574
451953fa
PA
25752018-05-11 Pedro Alves <palves@redhat.com>
2576
2577 * corefile.c (core_file_command): Move to corelow.c.
2578 * corelow.c (the_core_target): Delete.
2579 (core_file_command): Moved from corefile.c. Check exec_bfd
2580 instead of the_core_target. Use target_detach instead of calling
2581 into the_core_target directly.
2582 (maybe_say_no_core_file_now): New.
2583 (core_target::detach): Use it.
2584 (_initialize_corelow): Remove references to the_core_target.
2585 * gdbcore.h (the_core_target): Delete.
2586
e540a5a2 25872018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 2588 Pedro Alves <palves@redhat.com>
e540a5a2
TT
2589
2590 * corefile.c (core_bfd): Remove.
2591 * gdbcore.h (core_bfd): Now a macro.
2592 * progspace.h (struct program_space) <cbfd>: New field.
2593
633cf254
TT
25942018-05-11 Tom Tromey <tom@tromey.com>
2595
2596 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
2597 gdb::def_vector.
2598
1a34f210
TT
25992018-05-10 Tom Tromey <tom@tromey.com>
2600
2601 * configure: Rebuild.
2602 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
2603
190852c8
JB
26042018-05-10 Joel Brobecker <brobecker@adacore.com>
2605
2606 PR server/23158:
2607 * regformats/regdat.sh: Adjust script, following the addition
2608 of the new expedite_regs parameter to init_target_desc.
2609
8727de56
OJ
26102018-05-10 Omair Javaid <omair.javaid@linaro.org>
2611
2612 PR gdb/23127
2613 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
2614 set_gdbarch_significant_addr_bit.
2615 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
2616 set_gdbarch_significant_addr_bit.
2617 * utils.c (address_significant): Update to sign extend addr.
2618
37d9e062
MF
26192018-05-09 Max Filippov <jcmvbkbc@gmail.com>
2620
2621 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
2622 (xtensa_linux_init_abi): Limit tdep->num_regs by
2623 tdep->num_nopriv_regs.
2624 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
2625 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
2626 not initialized.
2627
7402fbca
SM
26282018-05-08 Simon Marchi <simon.marchi@ericsson.com>
2629
2630 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
2631
8ee22052
AB
26322018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2633
2634 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
2635 (I387_MXCSR_INIT_VAL): New constant.
2636 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
2637 buffer if it was supplied by the inferior.
2638 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
2639 (i387_xsave_get_clear_bv): New function.
2640 (i387_supply_xsave): Only read x87 control registers from the
2641 xsave buffer if the feature is enabled, and the state will have
2642 been written, otherwise, provide a suitable default.
2643 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
2644 including x87 control registers. Update control registers if they
2645 have changed from the default value, and mark features as enabled
2646 as required.
2647 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
2648
968ae51b
UW
26492018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2650
2651 * spu-tdep.c (info_spu_event_command): Fix output formatting.
2652
aff689d3
TT
26532018-05-07 Tom Tromey <tom@tromey.com>
2654
2655 * configure: Rebuild.
2656 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
2657
ce887586
TT
26582018-05-07 Tom Tromey <tom@tromey.com>
2659
2660 PR tdep/20362:
2661 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
2662 bit. Use correct value for VDIV.
2663
85e26832
TT
26642018-05-04 Tom Tromey <tom@tromey.com>
2665
2666 * configure: Rebuild.
2667 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
2668
449b1ac7
TT
26692018-05-04 Tom Tromey <tom@tromey.com>
2670
2671 * linux-record.c (record_linux_system_call) <case
2672 RECORD_SYS_RECVFROM>: Add "break".
2673
15c9ffd6
TT
26742018-05-04 Tom Tromey <tom@tromey.com>
2675
2676 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
2677 Add missing "break".
2678 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
2679 Add missing "break".
2680
e3829d13
TT
26812018-05-04 Tom Tromey <tom@tromey.com>
2682
2683 * rs6000-tdep.c (ppc_process_record_op4)
2684 (ppc_process_record_op63): Add fall-through comment.
2685
da0e1563
TT
26862018-05-04 Tom Tromey <tom@tromey.com>
2687
2688 * i386-tdep.c (i386_process_record): Add fall-through comment.
2689
0019cd49
TT
26902018-05-04 Tom Tromey <tom@tromey.com>
2691
2692 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
2693 comment.
2694
565e0eda
TT
26952018-05-04 Tom Tromey <tom@tromey.com>
2696
2697 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
2698 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
2699 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
2700 comment.
2701 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
2702 comment.
2703 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
2704 comment.
2705
621846f4
TT
27062018-05-04 Tom Tromey <tom@tromey.com>
2707
2708 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
2709
86a73007
TT
27102018-05-04 Tom Tromey <tom@tromey.com>
2711
2712 * s390-tdep.c (s390_process_record): Fix fall-through comments.
2713 * xcoffread.c (scan_xcoff_symtab): Move comment later.
2714 * symfile.c (section_is_mapped): Fix fall-through comment.
2715 * stabsread.c (define_symbol, read_member_functions): Fix
2716 fall-through comment.
2717 * s390-linux-tdep.c (s390_process_record): Fix fall-through
2718 comment.
2719 * remote.c (remote_wait_as): Fix fall-through comment.
2720 * p-exp.y (yylex): Fix fall-through comment.
2721 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
2722 comment.
2723 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
2724 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
2725 * jv-exp.y (yylex): Fix fall-through comment.
2726 * go-exp.y (lex_one_token): Fix fall-through comment.
2727 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
2728 fall-through comment.
2729 * f-exp.y (yylex): Fix fall-through comment.
2730 * dwarf2read.c (process_die): Fix fall-through comments.
2731 * dbxread.c (process_one_symbol): Fix fall-through comment.
2732 * d-exp.y (lex_one_token): Fix fall-through comment.
2733 * cp-name-parser.y (yylex): Fix fall-through comment.
2734 * coffread.c (coff_symtab_read): Fix fall-through comment.
2735 * c-exp.y (lex_one_token): Fix fall-through comment.
2736 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
2737 comment.
2738 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
2739 comment.
2740
56bcdbea
TT
27412018-05-04 Tom Tromey <tom@tromey.com>
2742
2743 PR python/22730:
2744 * NEWS: Mention gdb.execute change.
2745 * gdbcmd.h (execute_control_command): Don't declare.
2746 * python/python.c (execute_gdb_command): Use read_command_lines_1,
2747 execute_control_commands, execute_control_commands_to_string.
2748 * cli/cli-script.h (execute_control_commands)
2749 (execute_control_commands_to_string): Declare.
2750 (execute_control_command): Add from_tty parameter.
2751 * cli/cli-script.c (execute_control_commands)
2752 (execute_control_commands_to_string): New functions.
2753 (execute_user_command): Use execute_control_commands.
2754 (execute_control_command_1): Add "from_tty" parameter. Update.
2755 (execute_control_command): Likewise.
2756
a913fffb
TT
27572018-05-04 Tom Tromey <tom@tromey.com>
2758
2759 PR python/22731:
2760 * NEWS: Mention that breakpoint commands are writable.
2761 * python/py-breakpoint.c (bppy_set_commands): New function.
2762 (breakpoint_object_getset) <"commands">: Use it.
2763
60b3cef2
TT
27642018-05-04 Tom Tromey <tom@tromey.com>
2765
2766 * tracepoint.c (actions_command): Update.
2767 * mi/mi-cmd-break.c (mi_command_line_array)
2768 (mi_command_line_array_cnt, mi_command_line_array_ptr)
2769 (mi_read_next_line): Remove.
2770 (mi_cmd_break_commands): Update.
2771 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
2772 function_view.
2773 * cli/cli-script.c (get_command_line): Update.
2774 (process_next_line): Use function_view. Constify.
2775 (recurse_read_control_structure, read_command_lines)
2776 (read_command_lines_1): Change argument types to function_view.
2777 (do_define_command, document_command): Update.
2778 * breakpoint.h (check_tracepoint_command): Don't declare.
2779 * breakpoint.c (check_tracepoint_command): Remove.
2780 (commands_command_1, create_tracepoint_from_upload): Update.
2781
7a2c85f2
TT
27822018-05-04 Tom Tromey <tom@tromey.com>
2783
2784 PR gdb/11750:
2785 * cli/cli-script.h (enum command_control_type) <define_control>:
2786 New constant.
2787 * cli/cli-script.c (multi_line_command_p): Handle define_control.
2788 (build_command_line, execute_control_command_1)
2789 (process_next_line): Likewise.
2790 (do_define_command): New function, extracted from define_command.
2791 (define_command): Use it.
2792
295dc222
TT
27932018-05-04 Tom Tromey <tom@tromey.com>
2794
2795 * tracepoint.c (actions_command): Update.
2796 * cli/cli-script.h (read_command_lines): Update.
2797 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
2798 (MAX_TMPBUF): Remove define.
2799 (define_command): Use string_printf.
2800 (document_command): Likewise.
2801 * breakpoint.c (commands_command_1): Update.
2802
1263a9d5
TT
28032018-05-04 Tom Tromey <tom@tromey.com>
2804
2805 * top.c (execute_command): Update.
2806 * cli/cli-script.h (print_command_lines): Now varargs.
2807 * cli/cli-script.c (print_command_lines): Now varargs.
2808 (execute_control_command_1) <case while_control, case if_control>:
2809 Update.
2810
12973681
TT
28112018-05-04 Tom Tromey <tom@tromey.com>
2812
2813 * tracepoint.c (all_tracepoint_actions): Rename from
2814 all_tracepoint_actions_and_cleanup. Change return type.
2815 (actions_command, encode_actions_1, encode_actions)
2816 (trace_dump_actions, tdump_command): Update.
2817 * remote.c (remote_download_command_source): Update.
2818 * python/python.c (gdbpy_eval_from_control_command)
2819 (python_command, python_interactive_command): Update.
2820 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
2821 * guile/guile.c (guile_command)
2822 (gdbscm_eval_from_control_command, guile_command): Update.
2823 * compile/compile.c (compile_code_command)
2824 (compile_print_command, compile_to_object): Update.
2825 * cli/cli-script.h (struct command_lines_deleter): New.
2826 (counted_command_line): New typedef.
2827 (struct command_line): Add constructor, destructor.
2828 <body_list>: Remove.
2829 <body_list_0, body_list_1>: New members.
2830 (command_line_up): Remove typedef.
2831 (read_command_lines, read_command_lines_1, get_command_line):
2832 Update.
2833 (copy_command_lines): Don't declare.
2834 * cli/cli-script.c (build_command_line): Use "new".
2835 (get_command_line): Return counted_command_line.
2836 (print_command_lines, execute_user_command)
2837 (execute_control_command_1, while_command, if_command): Update.
2838 (realloc_body_list): Remove.
2839 (process_next_line, recurse_read_control_structure): Update.
2840 (read_command_lines, read_command_lines_1): Return counted_command_line.
2841 (free_command_lines): Use "delete".
2842 (copy_command_lines): Remove.
2843 (define_command, document_command, show_user_1): Update.
2844 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
2845 a counted_command_line.
2846 * breakpoint.h (counted_command_line): Remove typedef.
2847 (breakpoint_set_commands): Update.
2848 * breakpoint.c (check_no_tracepoint_commands)
2849 (validate_commands_for_breakpoint): Update.
2850 (breakpoint_set_commands): Change commands to be a
2851 counted_command_line.
2852 (commands_command_1, update_dprintf_command_list)
2853 (create_tracepoint_from_upload): Update.
2854
e2fc72e2
TT
28552018-05-04 Tom Tromey <tom@tromey.com>
2856
2857 * cli/cli-decode.h (cmd_list_element): New constructor.
2858 (~cmd_list_element): New destructor.
2859 (struct cmd_list_element): Add initializers.
2860 * cli/cli-decode.c (do_add_cmd): Use "new".
2861 (delete_cmd): Use "delete".
2862
a3b60e45
JK
28632018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2864 Pedro Alves <palves@redhat.com>
2865
2866 PR breakpoints/19806 and support for PR external/20207.
2867 * NEWS: Mention Aarch64 watchpoint improvements.
2868 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
2869 watchpoints and PR external/20207 watchpoints.
2870 * nat/aarch64-linux-hw-point.c
2871 (kernel_supports_any_contiguous_range): New.
2872 (aarch64_watchpoint_offset): New.
2873 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
2874 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
2875 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
2876 (aarch64_align_watchpoint): New parameters aligned_offset_p and
2877 next_addr_orig_p. Support PR external/20207 watchpoints.
2878 (aarch64_downgrade_regs): New.
2879 (aarch64_dr_state_insert_one_point): New parameters offset and
2880 addr_orig.
2881 (aarch64_dr_state_remove_one_point): Likewise.
2882 (aarch64_handle_breakpoint): Update caller.
2883 (aarch64_handle_aligned_watchpoint): Likewise.
2884 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
2885 aligned_offset.
2886 (aarch64_linux_set_debug_regs): Remove const from state. Call
2887 aarch64_downgrade_regs.
2888 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
2889 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
2890 (DR_CONTROL_MASK): ... this.
2891 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
2892 (unsigned int aarch64_watchpoint_offset): New prototype.
2893 (aarch64_linux_set_debug_regs): Remove const from state.
2894 * utils.c (align_up, align_down): Move to ...
2895 * common/common-utils.c (align_up, align_down): ... here.
2896 * utils.h (align_up, align_down): Move to ...
2897 * common/common-utils.h (align_up, align_down): ... here.
2898
05bc7456
JB
28992018-05-04 Joel Brobecker <brobecker@adacore.com>
2900
2901 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
2902 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
2903 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
2904 Re-implement to match the ABI as summarized in GCC's
2905 gcc/config/sparc/sparc.c. All callers updated.
2906 (sparc32_store_arguments): Remove assertion.
2907
2f433492
TT
29082018-05-04 Tom Tromey <tom@tromey.com>
2909
2910 * printcmd.c: Don't include tui.h.
2911 (decode_format): Use skip_spaces.
2912
9be2ae8f
TT
29132018-05-04 Tom Tromey <tom@tromey.com>
2914
2915 PR gdb/22619:
2916 * printcmd.c (last_count): New global.
2917 (x_command): Use saved count when repeating.
2918
f0b3976b
TT
29192018-05-04 Tom Tromey <tom@tromey.com>
2920
2921 * nto-procfs.c (do_closedir_cleanup): Remove.
2922 (procfs_pidlist): Use gdb_dir_up.
2923 * procfs.c (do_closedir_cleanup): Remove.
2924 (proc_update_threads): Use gdb_dir_up.
2925 * common/filestuff.h (struct gdb_dir_deleter): New.
2926 (gdb_dir_up): New typedef.
2927
862d101a
TT
29282018-05-04 Tom Tromey <tom@tromey.com>
2929
2930 * ada-lang.c (print_mention_exception): Use std::string.
2931
cb7de75e
TT
29322018-05-04 Tom Tromey <tom@tromey.com>
2933
2934 * ada-lang.c (create_excep_cond_exprs): Update.
2935 (ada_exception_catchpoint_cond_string): Use std::string.
2936
49d83361
TT
29372018-05-04 Tom Tromey <tom@tromey.com>
2938
2939 * ada-lang.c (xget_renaming_scope): Return std::string.
2940 (old_renaming_is_invisible): Update.
2941
ade72a34
TT
29422018-05-04 Tom Tromey <tom@tromey.com>
2943
2944 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
2945 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
2946
2be4d7f0
UW
29472018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2948
2949 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
2950
69b6ecb0
TT
29512018-05-04 Tom Tromey <tom@tromey.com>
2952
2953 * remote.c (remote_query_supported_append): Change type.
2954 (remote_check_symbols): Update.
2955
bf27f0e2
PP
29562018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
2957
2958 PR gdb/11420
2959 * configure.ac: Prepend libpython.
2960 * python/python-config.py: Likewise.
2961 * configure: Regenerate.
2962
4ea17de8
SM
29632018-05-03 Simon Marchi <simon.marchi@ericsson.com>
2964
2965 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
2966
bd732259
PA
29672018-05-03 Pedro Alves <palves@redhat.com>
2968
2969 * s390-linux-nat.c
2970 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
2971 override. Write 'true' instead of '1'.
2972 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
2973 declaration.
2974
d9f719f1
PA
29752018-05-02 Pedro Alves <palves@redhat.com>
2976
2977 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
2978 add_inf_child_target.
2979 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
2980 add_inf_child_target.
2981 * aix-thread.c (aix_thread_target_info): New.
2982 (aix_thread_target) <shortname, longname, doc>: Delete.
2983 <info>: New.
2984 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
2985 add_inf_child_target.
2986 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
2987 add_inf_child_target.
2988 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
2989 add_inf_child_target.
2990 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
2991 add_inf_child_target.
2992 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
2993 add_inf_child_target.
2994 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
2995 add_inf_child_target.
2996 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
2997 add_inf_child_target.
2998 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
2999 add_inf_child_target.
3000 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
3001 add_inf_child_target.
3002 * bfd-target.c (target_bfd_target_info): New.
3003 (target_bfd) <shortname, longname, doc>: Delete.
3004 <info>: New.
3005 * bsd-kvm.c (bsd_kvm_target_info): New.
3006 (bsd_kvm_target) <shortname, longname, doc>: Delete.
3007 <info>: New.
3008 (bsd_kvm_target::open): Rename to ...
3009 (bsd_kvm_target_open): ... this. Adjust.
3010 * bsd-uthread.c (bsd_uthread_target_info): New.
3011 (bsd_uthread_target) <shortname, longname, doc>: Delete.
3012 <info>: New.
3013 * corefile.c (core_file_command): Adjust.
3014 * corelow.c (core_target_info): New.
3015 (core_target) <shortname, longname, doc>: Delete.
3016 <info>: New.
3017 (core_target::open): Rename to ...
3018 (core_target_open): ... this. Adjust.
3019 * ctf.c (ctf_target_info): New.
3020 (ctf_target) <shortname, longname, doc>: Delete.
3021 <info>: New.
3022 (ctf_target::open): Rename to ...
3023 (ctf_target_open): ... this.
3024 (_initialize_ctf): Adjust.
3025 * exec.c (exec_target_info): New.
3026 (exec_target) <shortname, longname, doc>: Delete.
3027 <info>: New.
3028 (exec_target::open): Rename to ...
3029 (exec_target_open): ... this.
3030 * gdbcore.h (core_target_open): Declare.
3031 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
3032 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
3033 add_inf_child_target.
3034 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
3035 add_inf_child_target.
3036 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
3037 add_inf_child_target.
3038 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
3039 add_inf_child_target.
3040 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
3041 add_inf_child_target.
3042 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
3043 add_inf_child_target.
3044 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
3045 add_inf_child_target.
3046 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
3047 add_inf_child_target.
3048 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
3049 add_inf_child_target.
3050 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
3051 add_inf_child_target.
3052 * inf-child.c (inf_child_target_info): New.
3053 (inf_child_target::info): New.
3054 (inf_child_open_target): Remove 'target' parameter. Use
3055 get_native_target instead.
3056 (inf_child_target::open): Delete.
3057 (add_inf_child_target): New.
3058 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
3059 Delete.
3060 <info>: New.
3061 (add_inf_child_target): Declare.
3062 (inf_child_open_target): Declare.
3063 * linux-thread-db.c (thread_db_target_info): New.
3064 (thread_db_target) <shortname, longname, doc>: Delete.
3065 <info>: New.
3066 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
3067 add_inf_child_target.
3068 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
3069 add_inf_child_target.
3070 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
3071 add_inf_child_target.
3072 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
3073 add_inf_child_target.
3074 * make-target-delegates (print_class): Adjust.
3075 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
3076 add_inf_child_target.
3077 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
3078 add_inf_child_target.
3079 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
3080 add_inf_child_target.
3081 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
3082 add_inf_child_target.
3083 * nto-procfs.c (nto_native_target_info): New.
3084 (nto_procfs_target_native) <shortname, longname, doc>:
3085 Delete.
3086 <info>: New.
3087 (nto_procfs_target_info): New.
3088 (nto_procfs_target_procfs) <shortname, longname, doc>:
3089 Delete.
3090 <info>: New.
3091 (init_procfs_targets): Adjust.
3092 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
3093 add_inf_child_target.
3094 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
3095 add_inf_child_target.
3096 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
3097 add_inf_child_target.
3098 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
3099 add_inf_child_target.
3100 * ravenscar-thread.c (ravenscar_target_info): New.
3101 (ravenscar_thread_target) <shortname, longname, doc>:
3102 Delete.
3103 <info>: New.
3104 * record-btrace.c (record_btrace_target_info):
3105 (record_btrace_target) <shortname, longname, doc>: Delete.
3106 <info>: New.
3107 (record_btrace_target::open): Rename to ...
3108 (record_btrace_target_open): ... this. Adjust.
3109 * record-full.c (record_longname, record_doc): New.
3110 (record_full_base_target) <shortname, longname, doc>: Delete.
3111 <info>: New.
3112 (record_full_target_info): New.
3113 (record_full_target): <shortname>: Delete.
3114 <info>: New.
3115 (record_full_core_open_1, record_full_open_1): Update comments.
3116 (record_full_base_target::open): Rename to ...
3117 (record_full_open): ... this.
3118 (cmd_record_full_restore): Update.
3119 (_initialize_record_full): Update.
3120 * remote-sim.c (remote_sim_target_info): New.
3121 (gdbsim_target) <shortname, longname, doc>: Delete.
3122 <info>: New.
3123 (gdbsim_target::open): Rename to ...
3124 (gdbsim_target_open): ... this.
3125 (_initialize_remote_sim): Adjust.
3126 * remote.c (remote_doc): New.
3127 (remote_target_info): New.
3128 (remote_target) <shortname, longname, doc>: Delete.
3129 <info>: New.
3130 (extended_remote_target_info): New.
3131 (extended_remote_target) <shortname, longname, doc>: Delete.
3132 <info>: New.
3133 (remote_target::open_1): Make static. Adjust.
3134 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
3135 * s390-linux-nat.c (_initialize_s390_nat): Use
3136 add_inf_child_target.
3137 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
3138 add_inf_child_target.
3139 * sol-thread.c (thread_db_target_info): New.
3140 (sol_thread_target) <shortname, longname, doc>: Delete.
3141 <info>: New.
3142 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
3143 add_inf_child_target.
3144 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
3145 add_inf_child_target.
3146 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
3147 add_inf_child_target.
3148 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
3149 add_inf_child_target.
3150 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
3151 add_inf_child_target.
3152 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
3153 add_inf_child_target.
3154 * spu-linux-nat.c (_initialize_spu_nat): Use
3155 add_inf_child_target.
3156 * spu-multiarch.c (spu_multiarch_target_info): New.
3157 (spu_multiarch_target) <shortname, longname, doc>: Delete.
3158 <info>: New.
3159 * target-delegates.c: Regenerate.
3160 * target.c: Include <unordered_map>.
3161 (target_ops_p): Delete.
3162 (DEF_VEC_P(target_ops_p)): Delete.
3163 (target_factories): New.
3164 (test_target_info): New.
3165 (test_target_ops::info): New.
3166 (open_target): Adjust to use target_factories.
3167 (add_target_with_completer): Rename to ...
3168 (add_target): ... this. Change prototype. Register target_info
3169 and open callback in target_factories. Register target_info in
3170 command context instead of target_ops.
3171 (add_target): Delete old implementation.
3172 (add_deprecated_target_alias): Change prototype. Adjust.
3173 (the_native_target): New.
3174 (set_native_target, get_native_target): New.
3175 (find_default_run_target): Use the_native_target.
3176 (find_attach_target, find_run_target): Simplify.
3177 (target_ops::open): Delete.
3178 (dummy_target_info): New.
3179 (dummy_target::shortname, dummy_target::longname)
3180 (dummy_target::doc): Delete.
3181 (dummy_target::info): New.
3182 (debug_target::shortname, debug_target::longname)
3183 (debug_target::doc): Delete.
3184 (debug_target::info): New.
3185 * target.h (struct target_info): New.
3186 (target_ops::~target_ops): Add comment.
3187 (target_ops::info): New.
3188 (target_ops::shortname, target_ops::longname, target_ops::doc): No
3189 longer virtual. Implement in terms of target_info.
3190 (set_native_target, get_native_target): Declare.
3191 (target_open_ftype): New.
3192 (add_target, add_target_with_completer)
3193 (add_deprecated_target_alias): Change prototype.
3194 (test_target) <shortname, longname, doc>: Delete.
3195 <info>: New.
3196 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
3197 add_inf_child_target.
3198 * tracefile-tfile.c (tfile_target_info): New.
3199 (tfile_target) <shortname, longname, doc>: Delete.
3200 <info>: New.
3201 (tfile_target::open): Rename to ...
3202 (tfile_target_open): ... this.
3203 (_initialize_tracefile_tfile): Adjust.
3204 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
3205 add_inf_child_target.
3206 * windows-nat.c (_initialize_windows_nat): Use
3207 add_inf_child_target.
3208 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
3209 add_inf_child_target.
3210
135340af
PA
32112018-05-02 Pedro Alves <palves@redhat.com>
3212
3213 * linux-nat.h (linux_nat_target) <low_new_thread,
3214 low_delete_thread, low_new_fork, low_forget_process,
3215 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
3216 New virtual methods.
3217 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
3218 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
3219 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
3220 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
3221 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
3222 Delete.
3223 * linux-fork.c (delete_fork): Adjust to call low method.
3224 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
3225 (linux_nat_new_fork, linux_nat_forget_process_hook)
3226 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
3227 (linux_nat_status_is_event):
3228 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
3229 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
3230 to call low method.
3231 (sigtrap_is_event): Rename to ...
3232 (linux_nat_target::low_status_is_event): ... this.
3233 (linux_nat_set_status_is_event): Delete.
3234 (save_stop_reason, linux_nat_wait_1)
3235 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
3236 low methods.
3237 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
3238 (linux_nat_set_new_fork, linux_nat_set_forget_process)
3239 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
3240 (linux_nat_set_prepare_to_resume): Delete.
3241 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
3242 low virtual methods.
3243 * amd64-linux-nat.c: Likewise.
3244 * arm-linux-nat.c: Likewise.
3245 * i386-linux-nat.c: Likewise.
3246 * ia64-linux-nat.c: Likewise.
3247 * mips-linux-nat.c: Likewise.
3248 * ppc-linux-nat.c: Likewise.
3249 * s390-linux-nat.c: Likewise.
3250 * sparc64-linux-nat.c: Likewise.
3251 * x86-linux-nat.c: Likewise.
3252 * x86-linux-nat.h: Include "nat/x86-linux.h".
3253 (x86_linux_nat_target) <low_new_fork, low_forget_process,
3254 low_prepare_to_resume, low_new_thread, low_delete_thread>:
3255 Override methods.
3256
57810aa7
PA
32572018-05-02 Pedro Alves <palves@redhat.com>
3258
3259 * target.h (target_ops)
3260 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
3261 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
3262 stopped_by_watchpoint, have_continuable_watchpoint,
3263 stopped_data_address, watchpoint_addr_within_range,
3264 can_accel_watchpoint_condition, can_run, thread_alive,
3265 has_all_memory, has_memory, has_stack, has_registers,
3266 has_execution, can_async_p, is_async_p, supports_non_stop,
3267 always_non_stop_p, can_execute_reverse, supports_multi_process,
3268 supports_enable_disable_tracepoint,
3269 supports_disable_randomization, supports_string_tracing,
3270 supports_evaluation_of_breakpoint_conditions,
3271 can_run_breakpoint_commands, filesystem_is_local,
3272 can_download_tracepoint, get_trace_state_variable_value,
3273 set_trace_notes, get_tib_address, use_agent, can_use_agent,
3274 record_is_replaying, record_will_replay,
3275 augmented_libraries_svr4_read>: Adjust to return bool.
3276 * aarch64-linux-nat.c: All implementations adjusted.
3277 * aix-thread.c: All implementations adjusted.
3278 * arm-linux-nat.c: All implementations adjusted.
3279 * breakpoint.c: All implementations adjusted.
3280 * bsd-kvm.c: All implementations adjusted.
3281 * bsd-uthread.c: All implementations adjusted.
3282 * corelow.c: All implementations adjusted.
3283 * ctf.c: All implementations adjusted.
3284 * darwin-nat.c: All implementations adjusted.
3285 * darwin-nat.h: All implementations adjusted.
3286 * exec.c: All implementations adjusted.
3287 * fbsd-nat.c: All implementations adjusted.
3288 * fbsd-nat.h: All implementations adjusted.
3289 * gnu-nat.c: All implementations adjusted.
3290 * gnu-nat.h: All implementations adjusted.
3291 * go32-nat.c: All implementations adjusted.
3292 * ia64-linux-nat.c: All implementations adjusted.
3293 * inf-child.c: All implementations adjusted.
3294 * inf-child.h: All implementations adjusted.
3295 * inf-ptrace.c: All implementations adjusted.
3296 * inf-ptrace.h: All implementations adjusted.
3297 * linux-nat.c: All implementations adjusted.
3298 * linux-nat.h: All implementations adjusted.
3299 * mips-linux-nat.c: All implementations adjusted.
3300 * nto-procfs.c: All implementations adjusted.
3301 * ppc-linux-nat.c: All implementations adjusted.
3302 * procfs.c: All implementations adjusted.
3303 * ravenscar-thread.c: All implementations adjusted.
3304 * record-btrace.c: All implementations adjusted.
3305 * record-full.c: All implementations adjusted.
3306 * remote-sim.c: All implementations adjusted.
3307 * remote.c: All implementations adjusted.
3308 * s390-linux-nat.c: All implementations adjusted.
3309 * sol-thread.c: All implementations adjusted.
3310 * spu-multiarch.c: All implementations adjusted.
3311 * target-delegates.c: All implementations adjusted.
3312 * target.c: All implementations adjusted.
3313 * target.h: All implementations adjusted.
3314 * tracefile-tfile.c: All implementations adjusted.
3315 * tracefile.c: All implementations adjusted.
3316 * tracefile.h: All implementations adjusted.
3317 * windows-nat.c: All implementations adjusted.
3318 * x86-linux-nat.h: All implementations adjusted.
3319 * x86-nat.h: All implementations adjusted.
3320
ad6a4e2d
PA
33212018-05-02 Pedro Alves <palves@redhat.com>
3322
3323 * make-target-delegates (scan_target_h): Don't trim lines here.
3324 Replace sequences of tabs and/or whitespace with a single
3325 whitespace.
3326 (top level, parsing methods): Trim each line before processing it
3327 here.
3328
f6ac5f3d
PA
33292018-05-02 Pedro Alves <palves@redhat.com>
3330 John Baldwin <jhb@freebsd.org>
3331
3332 * target.h (enum strata) <debug_stratum>: New.
3333 (struct target_ops) <all delegation methods>: Replace by C++
3334 virtual methods, and drop "to_" prefix. All references updated
3335 throughout.
3336 <to_shortname, to_longname, to_doc, to_data,
3337 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
3338 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
3339 virtual methods. All references updated throughout.
3340 <can_attach, supports_terminal_ours, can_create_inferior,
3341 get_thread_control_capabilities, attach_no_wait>: New
3342 virtual methods.
3343 <insert_breakpoint, remove_breakpoint>: Now
3344 TARGET_DEFAULT_NORETURN methods.
3345 <info_proc>: Now returns bool.
3346 <to_magic>: Delete.
3347 (OPS_MAGIC): Delete.
3348 (current_target): Delete. All references replaced by references
3349 to ...
3350 (target_stack): ... this. New.
3351 (target_shortname, target_longname): Adjust.
3352 (target_can_run): Now a function declaration.
3353 (default_child_has_all_memory, default_child_has_memory)
3354 (default_child_has_stack, default_child_has_registers)
3355 (default_child_has_execution): Remove target_ops parameter.
3356 (complete_target_initialization): Delete.
3357 (memory_breakpoint_target): New template class.
3358 (test_target_ops): Refactor as a C++ class with virtual methods.
3359 * make-target-delegates (NAME_PART): Tighten.
3360 (POINTER_PART, CP_SYMBOL): New.
3361 (SIMPLE_RETURN_PART): Reimplement.
3362 (VEC_RETURN_PART): Expect less.
3363 (RETURN_PART, VIRTUAL_PART): New.
3364 (METHOD): Adjust to C++ virtual methods.
3365 (scan_target_h): Remove reference to C99.
3366 (dname): Output "target_ops::" prefix.
3367 (write_function_header): Adjust to output a C++ class method.
3368 (write_declaration): New.
3369 (write_delegator): Adjust to output a C++ class method.
3370 (tdname): Output "dummy_target::" prefix.
3371 (write_tdefault, write_debugmethod): Adjust to output a C++ class
3372 method.
3373 (tdefault_names, debug_names): Delete.
3374 (return_types, tdefaults, styles, argtypes_array): New.
3375 (top level): All methods are delegators.
3376 (print_class): New.
3377 (top level): Print dummy_target and debug_target classes.
3378 * target-delegates.c: Regenerate.
3379 * target-debug.h (target_debug_print_enum_info_proc_what)
3380 (target_debug_print_thread_control_capabilities)
3381 (target_debug_print_thread_info_p): New.
3382 * target.c (dummy_target): Delete.
3383 (the_dummy_target, the_debug_target): New.
3384 (target_stack): Now extern.
3385 (set_targetdebug): Push/unpush debug target.
3386 (default_child_has_all_memory, default_child_has_memory)
3387 (default_child_has_stack, default_child_has_registers)
3388 (default_child_has_execution): Remove target_ops parameter.
3389 (complete_target_initialization): Delete.
3390 (add_target_with_completer): No longer call
3391 complete_target_initialization.
3392 (target_supports_terminal_ours): Use regular delegation.
3393 (update_current_target): Delete.
3394 (push_target): No longer check magic number. Don't call
3395 update_current_target.
3396 (unpush_target): Don't call update_current_target.
3397 (target_is_pushed): No longer check magic number.
3398 (target_require_runnable): Skip for all stratums over
3399 process_stratum.
3400 (target_ops::info_proc): New.
3401 (target_info_proc): Use find_target_at and
3402 find_default_run_target.
3403 (target_supports_disable_randomization): Use regular delegation.
3404 (target_get_osdata): Use find_target_at.
3405 (target_ops::open, target_ops::close, target_ops::can_attach)
3406 (target_ops::attach, target_ops::can_create_inferior)
3407 (target_ops::create_inferior, target_ops::can_run)
3408 (target_can_run): New.
3409 (default_fileio_target): Use regular delegation.
3410 (target_ops::fileio_open, target_ops::fileio_pwrite)
3411 (target_ops::fileio_pread, target_ops::fileio_fstat)
3412 (target_ops::fileio_close, target_ops::fileio_unlink)
3413 (target_ops::fileio_readlink): New.
3414 (target_fileio_open_1, target_fileio_unlink)
3415 (target_fileio_readlink): Always call the target method. Handle
3416 FILEIO_ENOSYS.
3417 (return_zero, return_zero_has_execution): Delete.
3418 (init_dummy_target): Delete.
3419 (dummy_target::dummy_target, dummy_target::shortname)
3420 (dummy_target::longname, dummy_target::doc)
3421 (debug_target::debug_target, debug_target::shortname)
3422 (debug_target::longname, debug_target::doc): New.
3423 (target_supports_delete_record): Use regular delegation.
3424 (setup_target_debug): Delete.
3425 (maintenance_print_target_stack): Skip debug_stratum.
3426 (initialize_targets): Instantiate the_dummy_target and
3427 the_debug_target.
3428 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
3429 use target_stack.
3430 (target_auxv_search, fprint_target_auxv): Adjust.
3431 (info_auxv_command): Adjust to use target_stack.
3432 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
3433 * exceptions.c (print_flush): Handle a NULL target_stack.
3434 * regcache.c (target_ops_no_register): Refactor as class with
3435 virtual methods.
3436
3437 * exec.c (exec_target): New class.
3438 (exec_ops): Now an exec_target.
3439 (exec_open, exec_close_1, exec_get_section_table)
3440 (exec_xfer_partial, exec_files_info, exec_has_memory)
3441 (exec_make_note_section): Refactor as exec_target methods.
3442 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
3443 Delete.
3444 (exec_target::find_memory_regions): New.
3445 (_initialize_exec): Don't call init_exec_ops.
3446 * gdbcore.h (exec_file_clear): Delete.
3447
3448 * corefile.c (core_target): Delete.
3449 (core_file_command): Adjust.
3450 * corelow.c (core_target): New class.
3451 (the_core_target): New.
3452 (core_close): Remove target_ops parameter.
3453 (core_close_cleanup): Adjust.
3454 (core_target::close): New.
3455 (core_open, core_detach, get_core_registers, core_files_info)
3456 (core_xfer_partial, core_thread_alive, core_read_description)
3457 (core_pid_to_str, core_thread_name, core_has_memory)
3458 (core_has_stack, core_has_registers, core_info_proc): Rework as
3459 core_target methods.
3460 (ignore, core_remove_breakpoint, init_core_ops): Delete.
3461 (_initialize_corelow): Initialize the_core_target.
3462 * gdbcore.h (core_target): Delete.
3463 (the_core_target): New.
3464
3465 * ctf.c: (ctf_target): New class.
3466 (ctf_ops): Now a ctf_target.
3467 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
3468 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
3469 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
3470 methods.
3471 (init_ctf_ops): Delete.
3472 (_initialize_ctf): Don't call it.
3473 * tracefile-tfile.c (tfile_target): New class.
3474 (tfile_ops): Now a tfile_target.
3475 (tfile_open, tfile_close, tfile_files_info)
3476 (tfile_get_tracepoint_status, tfile_trace_find)
3477 (tfile_fetch_registers, tfile_xfer_partial)
3478 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
3479 Refactor as tfile_target methods.
3480 (tfile_xfer_partial_features): Remove target_ops parameter.
3481 (init_tfile_ops): Delete.
3482 (_initialize_tracefile_tfile): Don't call it.
3483 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
3484 (tracefile_has_stack, tracefile_has_registers)
3485 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
3486 tracefile_target methods.
3487 (init_tracefile_ops): Delete.
3488 (tracefile_target::tracefile_target): New.
3489 * tracefile.h: Include "target.h".
3490 (tracefile_target): New class.
3491 (init_tracefile_ops): Delete.
3492
3493 * spu-multiarch.c (spu_multiarch_target): New class.
3494 (spu_ops): Now a spu_multiarch_target.
3495 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
3496 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3497 (spu_search_memory, spu_mourn_inferior): Refactor as
3498 spu_multiarch_target methods.
3499 (init_spu_ops): Delete.
3500 (_initialize_spu_multiarch): Remove references to init_spu_ops,
3501 complete_target_initialization.
3502
3503 * ravenscar-thread.c (ravenscar_thread_target): New class.
3504 (ravenscar_ops): Now a ravenscar_thread_target.
3505 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
3506 (ravenscar_thread_alive, ravenscar_pid_to_str)
3507 (ravenscar_fetch_registers, ravenscar_store_registers)
3508 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
3509 (ravenscar_stopped_by_hw_breakpoint)
3510 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
3511 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
3512 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
3513 methods.
3514 (init_ravenscar_thread_ops): Delete.
3515 (_initialize_ravenscar): Remove references to
3516 init_ravenscar_thread_ops and complete_target_initialization.
3517
3518 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
3519 (bsd_uthread_target): New class.
3520 (bsd_uthread_ops): Now a bsd_uthread_target.
3521 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
3522 (bsd_uthread_close, bsd_uthread_mourn_inferior)
3523 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
3524 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
3525 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
3526 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
3527 (bsd_uthread_target): Delete function.
3528 (_initialize_bsd_uthread): Remove reference to
3529 complete_target_initialization.
3530
3531 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
3532 (target_bfd): ... this new class.
3533 (target_bfd_xfer_partial, target_bfd_get_section_table)
3534 (target_bfd_close): Refactor as target_bfd methods.
3535 (target_bfd::~target_bfd): New.
3536 (target_bfd_reopen): Adjust.
3537 (target_bfd::close): New.
3538
3539 * record-btrace.c (record_btrace_target): New class.
3540 (record_btrace_ops): Now a record_btrace_target.
3541 (record_btrace_open, record_btrace_stop_recording)
3542 (record_btrace_disconnect, record_btrace_close)
3543 (record_btrace_async, record_btrace_info)
3544 (record_btrace_insn_history, record_btrace_insn_history_range)
3545 (record_btrace_insn_history_from, record_btrace_call_history)
3546 (record_btrace_call_history_range)
3547 (record_btrace_call_history_from, record_btrace_record_method)
3548 (record_btrace_is_replaying, record_btrace_will_replay)
3549 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3550 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
3551 (record_btrace_store_registers, record_btrace_prepare_to_store)
3552 (record_btrace_to_get_unwinder)
3553 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
3554 (record_btrace_commit_resume, record_btrace_wait)
3555 (record_btrace_stop, record_btrace_can_execute_reverse)
3556 (record_btrace_stopped_by_sw_breakpoint)
3557 (record_btrace_supports_stopped_by_sw_breakpoint)
3558 (record_btrace_stopped_by_hw_breakpoint)
3559 (record_btrace_supports_stopped_by_hw_breakpoint)
3560 (record_btrace_update_thread_list, record_btrace_thread_alive)
3561 (record_btrace_goto_begin, record_btrace_goto_end)
3562 (record_btrace_goto, record_btrace_stop_replaying_all)
3563 (record_btrace_execution_direction)
3564 (record_btrace_prepare_to_generate_core)
3565 (record_btrace_done_generating_core): Refactor as
3566 record_btrace_target methods.
3567 (init_record_btrace_ops): Delete.
3568 (_initialize_record_btrace): Remove reference to
3569 init_record_btrace_ops.
3570 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
3571 the execution_direction global.
3572 (record_full_base_target, record_full_target)
3573 (record_full_core_target): New classes.
3574 (record_full_ops): Now a record_full_target.
3575 (record_full_core_ops): Now a record_full_core_target.
3576 (record_full_target::detach, record_full_target::disconnect)
3577 (record_full_core_target::disconnect)
3578 (record_full_target::mourn_inferior, record_full_target::kill):
3579 New.
3580 (record_full_open, record_full_close, record_full_async): Refactor
3581 as methods of the record_full_base_target class.
3582 (record_full_resume, record_full_commit_resume): Refactor
3583 as methods of the record_full_target class.
3584 (record_full_wait, record_full_stopped_by_watchpoint)
3585 (record_full_stopped_data_address)
3586 (record_full_stopped_by_sw_breakpoint)
3587 (record_full_supports_stopped_by_sw_breakpoint)
3588 (record_full_stopped_by_hw_breakpoint)
3589 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
3590 methods of the record_full_base_target class.
3591 (record_full_store_registers, record_full_xfer_partial)
3592 (record_full_insert_breakpoint, record_full_remove_breakpoint):
3593 Refactor as methods of the record_full_target class.
3594 (record_full_can_execute_reverse, record_full_get_bookmark)
3595 (record_full_goto_bookmark, record_full_execution_direction)
3596 (record_full_record_method, record_full_info, record_full_delete)
3597 (record_full_is_replaying, record_full_will_replay)
3598 (record_full_goto_begin, record_full_goto_end, record_full_goto)
3599 (record_full_stop_replaying): Refactor as methods of the
3600 record_full_base_target class.
3601 (record_full_core_resume, record_full_core_kill)
3602 (record_full_core_fetch_registers)
3603 (record_full_core_prepare_to_store)
3604 (record_full_core_store_registers, record_full_core_xfer_partial)
3605 (record_full_core_insert_breakpoint)
3606 (record_full_core_remove_breakpoint)
3607 (record_full_core_has_execution): Refactor
3608 as methods of the record_full_core_target class.
3609 (record_full_base_target::supports_delete_record): New.
3610 (init_record_full_ops): Delete.
3611 (init_record_full_core_ops): Delete.
3612 (record_full_save): Refactor as method of the
3613 record_full_base_target class.
3614 (_initialize_record_full): Remove references to
3615 init_record_full_ops and init_record_full_core_ops.
3616
3617 * remote.c (remote_target, extended_remote_target): New classes.
3618 (remote_ops): Now a remote_target.
3619 (extended_remote_ops): Now an extended_remote_target.
3620 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
3621 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
3622 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
3623 (remote_pass_signals, remote_set_syscall_catchpoint)
3624 (remote_program_signals, )
3625 (remote_thread_always_alive): Remove target_ops parameter.
3626 (remote_thread_alive, remote_thread_name)
3627 (remote_update_thread_list, remote_threads_extra_info)
3628 (remote_static_tracepoint_marker_at)
3629 (remote_static_tracepoint_markers_by_strid)
3630 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
3631 (remote_open): Refactor as methods of remote_target.
3632 (extended_remote_open, extended_remote_detach)
3633 (extended_remote_attach, extended_remote_post_attach):
3634 (extended_remote_supports_disable_randomization)
3635 (extended_remote_create_inferior): : Refactor as method of
3636 extended_remote_target.
3637 (remote_set_permissions, remote_open_1, remote_detach)
3638 (remote_follow_fork, remote_follow_exec, remote_disconnect)
3639 (remote_resume, remote_commit_resume, remote_stop)
3640 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
3641 (remote_terminal_ours, remote_wait, remote_fetch_registers)
3642 (remote_prepare_to_store, remote_store_registers)
3643 (remote_flash_erase, remote_flash_done, remote_files_info)
3644 (remote_kill, remote_mourn, remote_insert_breakpoint)
3645 (remote_remove_breakpoint, remote_insert_watchpoint)
3646 (remote_watchpoint_addr_within_range)
3647 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
3648 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
3649 (remote_supports_stopped_by_sw_breakpoint)
3650 (remote_stopped_by_hw_breakpoint)
3651 (remote_supports_stopped_by_hw_breakpoint)
3652 (remote_stopped_by_watchpoint, remote_stopped_data_address)
3653 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
3654 (remote_verify_memory): Refactor as methods of remote_target.
3655 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
3656 parameter.
3657 (remote_xfer_partial, remote_get_memory_xfer_limit)
3658 (remote_search_memory, remote_rcmd, remote_memory_map)
3659 (remote_pid_to_str, remote_get_thread_local_address)
3660 (remote_get_tib_address, remote_read_description): Refactor as
3661 methods of remote_target.
3662 (remote_target::fileio_open, remote_target::fileio_pwrite)
3663 (remote_target::fileio_pread, remote_target::fileio_close): New.
3664 (remote_hostio_readlink, remote_hostio_fstat)
3665 (remote_filesystem_is_local, remote_can_execute_reverse)
3666 (remote_supports_non_stop, remote_supports_disable_randomization)
3667 (remote_supports_multi_process, remote_supports_cond_breakpoints)
3668 (remote_supports_enable_disable_tracepoint)
3669 (remote_supports_string_tracing)
3670 (remote_can_run_breakpoint_commands, remote_trace_init)
3671 (remote_download_tracepoint, remote_can_download_tracepoint)
3672 (remote_download_trace_state_variable, remote_enable_tracepoint)
3673 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
3674 (remote_trace_start, remote_get_trace_status)
3675 (remote_get_tracepoint_status, remote_trace_stop)
3676 (remote_trace_find, remote_get_trace_state_variable_value)
3677 (remote_save_trace_data, remote_get_raw_trace_data)
3678 (remote_set_disconnected_tracing, remote_core_of_thread)
3679 (remote_set_circular_trace_buffer, remote_traceframe_info)
3680 (remote_get_min_fast_tracepoint_insn_len)
3681 (remote_set_trace_buffer_size, remote_set_trace_notes)
3682 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
3683 (remote_disable_btrace, remote_teardown_btrace)
3684 (remote_read_btrace, remote_btrace_conf)
3685 (remote_augmented_libraries_svr4_read, remote_load)
3686 (remote_pid_to_exec_file, remote_can_do_single_step)
3687 (remote_execution_direction, remote_thread_handle_to_thread_info):
3688 Refactor as methods of remote_target.
3689 (init_remote_ops, init_extended_remote_ops): Delete.
3690 (remote_can_async_p, remote_is_async_p, remote_async)
3691 (remote_thread_events, remote_upload_tracepoints)
3692 (remote_upload_trace_state_variables): Refactor as methods of
3693 remote_target.
3694 (_initialize_remote): Remove references to init_remote_ops and
3695 init_extended_remote_ops.
3696
3697 * remote-sim.c (gdbsim_target): New class.
3698 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
3699 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3700 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
3701 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
3702 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
3703 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
3704 Refactor as methods of gdbsim_target.
3705 (gdbsim_ops): Now a gdbsim_target.
3706 (init_gdbsim_ops): Delete.
3707 (gdbsim_cntrl_c): Adjust.
3708 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
3709
3710 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
3711 (the_amd64_linux_nat_target): New.
3712 (amd64_linux_fetch_inferior_registers)
3713 (amd64_linux_store_inferior_registers): Refactor as methods of
3714 amd64_linux_nat_target.
3715 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
3716 * i386-linux-nat.c: Don't include "linux-nat.h".
3717 (i386_linux_nat_target): New class.
3718 (the_i386_linux_nat_target): New.
3719 (i386_linux_fetch_inferior_registers)
3720 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
3721 as methods of i386_linux_nat_target.
3722 (_initialize_i386_linux_nat): Adjust. Set linux_target.
3723 * inf-child.c (inf_child_ops): Delete.
3724 (inf_child_fetch_inferior_registers)
3725 (inf_child_store_inferior_registers): Delete.
3726 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
3727 methods of inf_child_target.
3728 (inf_child_target::supports_terminal_ours)
3729 (inf_child_target::terminal_init)
3730 (inf_child_target::terminal_inferior)
3731 (inf_child_target::terminal_ours_for_output)
3732 (inf_child_target::terminal_ours, inf_child_target::interrupt)
3733 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
3734 New.
3735 (inf_child_open, inf_child_disconnect, inf_child_close)
3736 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
3737 (inf_child_post_startup_inferior, inf_child_can_run)
3738 (inf_child_pid_to_exec_file): Refactor as methods of
3739 inf_child_target.
3740 (inf_child_follow_fork): Delete.
3741 (inf_child_target::can_create_inferior)
3742 (inf_child_target::can_attach): New.
3743 (inf_child_target::has_all_memory, inf_child_target::has_memory)
3744 (inf_child_target::has_stack, inf_child_target::has_registers)
3745 (inf_child_target::has_execution): New.
3746 (inf_child_fileio_open, inf_child_fileio_pwrite)
3747 (inf_child_fileio_pread, inf_child_fileio_fstat)
3748 (inf_child_fileio_close, inf_child_fileio_unlink)
3749 (inf_child_fileio_readlink, inf_child_use_agent)
3750 (inf_child_can_use_agent): Refactor as methods of
3751 inf_child_target.
3752 (return_zero, inf_child_target): Delete.
3753 (inf_child_target::inf_child_target): New.
3754 * inf-child.h: Include "target.h".
3755 (inf_child_target): Delete function prototype.
3756 (inf_child_target): New class.
3757 (inf_child_open_target, inf_child_mourn_inferior)
3758 (inf_child_maybe_unpush_target): Delete.
3759 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
3760 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
3761 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
3762 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
3763 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
3764 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
3765 (inf_ptrace_wait, inf_ptrace_xfer_partial)
3766 (inf_ptrace_thread_alive, inf_ptrace_files_info)
3767 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
3768 methods of inf_ptrace_target.
3769 (inf_ptrace_target): Delete function.
3770 * inf-ptrace.h: Include "inf-child.h".
3771 (inf_ptrace_target): Delete function declaration.
3772 (inf_ptrace_target): New class.
3773 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
3774 * linux-nat.c (linux_target): New.
3775 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
3776 (linux_nat_target::~linux_nat_target): New.
3777 (linux_child_post_attach, linux_child_post_startup_inferior)
3778 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
3779 (linux_child_remove_fork_catchpoint)
3780 (linux_child_insert_vfork_catchpoint)
3781 (linux_child_remove_vfork_catchpoint)
3782 (linux_child_insert_exec_catchpoint)
3783 (linux_child_remove_exec_catchpoint)
3784 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
3785 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
3786 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
3787 (linux_nat_stopped_data_address)
3788 (linux_nat_stopped_by_sw_breakpoint)
3789 (linux_nat_supports_stopped_by_sw_breakpoint)
3790 (linux_nat_stopped_by_hw_breakpoint)
3791 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
3792 (linux_nat_kill, linux_nat_mourn_inferior)
3793 (linux_nat_xfer_partial, linux_nat_thread_alive)
3794 (linux_nat_update_thread_list, linux_nat_pid_to_str)
3795 (linux_nat_thread_name, linux_child_pid_to_exec_file)
3796 (linux_child_static_tracepoint_markers_by_strid)
3797 (linux_nat_is_async_p, linux_nat_can_async_p)
3798 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
3799 (linux_nat_supports_multi_process)
3800 (linux_nat_supports_disable_randomization, linux_nat_async)
3801 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
3802 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
3803 (linux_nat_fileio_open, linux_nat_fileio_readlink)
3804 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
3805 methods of linux_nat_target.
3806 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
3807 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
3808 parameter.
3809 (check_stopped_by_watchpoint): Adjust.
3810 (linux_xfer_partial): Delete.
3811 (linux_target_install_ops, linux_target, linux_nat_add_target):
3812 Delete.
3813 (linux_nat_target::linux_nat_target): New.
3814 * linux-nat.h: Include "inf-ptrace.h".
3815 (linux_nat_target): New.
3816 (linux_target, linux_target_install_ops, linux_nat_add_target):
3817 Delete function declarations.
3818 (linux_target): Declare global.
3819 * linux-thread-db.c (thread_db_target): New.
3820 (thread_db_target::thread_db_target): New.
3821 (thread_db_ops): Delete.
3822 (the_thread_db_target): New.
3823 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
3824 (thread_db_update_thread_list, thread_db_pid_to_str)
3825 (thread_db_extra_thread_info)
3826 (thread_db_thread_handle_to_thread_info)
3827 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
3828 (thread_db_resume): Refactor as methods of thread_db_target.
3829 (init_thread_db_ops): Delete.
3830 (_initialize_thread_db): Remove reference to init_thread_db_ops.
3831 * x86-linux-nat.c: Don't include "linux-nat.h".
3832 (super_post_startup_inferior): Delete.
3833 (x86_linux_nat_target::~x86_linux_nat_target): New.
3834 (x86_linux_child_post_startup_inferior)
3835 (x86_linux_read_description, x86_linux_enable_btrace)
3836 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
3837 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
3838 methods of x86_linux_nat_target.
3839 (x86_linux_create_target): Delete. Bits folded ...
3840 (x86_linux_add_target): ... here. Now takes a linux_nat_target
3841 pointer.
3842 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
3843 (x86_linux_nat_target): New class.
3844 (x86_linux_create_target): Delete.
3845 (x86_linux_add_target): Now takes a linux_nat_target pointer.
3846 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
3847 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
3848 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
3849 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
3850 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
3851 make extern.
3852 (x86_use_watchpoints): Delete.
3853 * x86-nat.h: Include "breakpoint.h" and "target.h".
3854 (x86_use_watchpoints): Delete.
3855 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
3856 (x86_stopped_by_watchpoint, x86_stopped_data_address)
3857 (x86_insert_watchpoint, x86_remove_watchpoint)
3858 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
3859 (x86_stopped_by_hw_breakpoint): New declarations.
3860 (x86_nat_target): New template class.
3861
3862 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
3863 (the_ppc_linux_nat_target): New.
3864 (ppc_linux_fetch_inferior_registers)
3865 (ppc_linux_can_use_hw_breakpoint)
3866 (ppc_linux_region_ok_for_hw_watchpoint)
3867 (ppc_linux_ranged_break_num_registers)
3868 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
3869 (ppc_linux_insert_mask_watchpoint)
3870 (ppc_linux_remove_mask_watchpoint)
3871 (ppc_linux_can_accel_watchpoint_condition)
3872 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
3873 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
3874 (ppc_linux_watchpoint_addr_within_range)
3875 (ppc_linux_masked_watch_num_registers)
3876 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
3877 (ppc_linux_read_description): Refactor as methods of
3878 ppc_linux_nat_target.
3879 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
3880
3881 * procfs.c (procfs_xfer_partial): Delete forward declaration.
3882 (procfs_target): New class.
3883 (the_procfs_target): New.
3884 (procfs_target): Delete function.
3885 (procfs_auxv_parse, procfs_attach, procfs_detach)
3886 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
3887 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
3888 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
3889 (procfs_create_inferior, procfs_update_thread_list)
3890 (procfs_thread_alive, procfs_pid_to_str)
3891 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
3892 (procfs_stopped_data_address, procfs_insert_watchpoint)
3893 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
3894 (proc_find_memory_regions, procfs_info_proc)
3895 (procfs_make_note_section): Refactor as methods of procfs_target.
3896 (_initialize_procfs): Adjust.
3897 * sol-thread.c (sol_thread_target): New class.
3898 (sol_thread_ops): Now a sol_thread_target.
3899 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
3900 (sol_thread_fetch_registers, sol_thread_store_registers)
3901 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
3902 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
3903 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
3904 (init_sol_thread_ops): Delete.
3905 (_initialize_sol_thread): Adjust. Remove references to
3906 init_sol_thread_ops and complete_target_initialization.
3907
3908 * windows-nat.c (windows_nat_target): New class.
3909 (windows_fetch_inferior_registers)
3910 (windows_store_inferior_registers, windows_resume, windows_wait)
3911 (windows_attach, windows_detach, windows_pid_to_exec_file)
3912 (windows_files_info, windows_create_inferior)
3913 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
3914 (windows_close, windows_pid_to_str, windows_xfer_partial)
3915 (windows_get_tib_address, windows_get_ada_task_ptid)
3916 (windows_thread_name, windows_thread_alive): Refactor as
3917 windows_nat_target methods.
3918 (do_initial_windows_stuff): Adjust.
3919 (windows_target): Delete function.
3920 (_initialize_windows_nat): Adjust.
3921
3922 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
3923 (darwin_mourn_inferior, darwin_kill_inferior)
3924 (darwin_create_inferior, darwin_attach, darwin_detach)
3925 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
3926 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
3927 (darwin_supports_multi_process): Refactor as darwin_nat_target
3928 methods.
3929 (darwin_resume_to, darwin_files_info): Delete.
3930 (_initialize_darwin_inferior): Rename to ...
3931 (_initialize_darwin_nat): ... this. Adjust to C++ification.
3932 * darwin-nat.h: Include "inf-child.h".
3933 (darwin_nat_target): New class.
3934 (darwin_complete_target): Delete.
3935 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
3936 (darwin_target): New.
3937 (i386_darwin_fetch_inferior_registers)
3938 (i386_darwin_store_inferior_registers): Refactor as methods of
3939 darwin_nat_target.
3940 (darwin_complete_target): Delete, with ...
3941 (_initialize_i386_darwin_nat): ... bits factored out here.
3942
3943 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
3944 (the_alpha_linux_nat_target): New.
3945 (alpha_linux_register_u_offset): Refactor as
3946 alpha_linux_nat_target method.
3947 (_initialize_alpha_linux_nat): Adjust.
3948 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
3949 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
3950 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
3951 methods of linux_nat_trad_target.
3952 (linux_trad_target): Delete.
3953 * linux-nat-trad.h (linux_trad_target): Delete function.
3954 (linux_nat_trad_target): New class.
3955 * mips-linux-nat.c (mips_linux_nat_target): New class.
3956 (super_fetch_registers, super_store_registers, super_close):
3957 Delete.
3958 (the_mips_linux_nat_target): New.
3959 (mips64_linux_regsets_fetch_registers)
3960 (mips64_linux_regsets_store_registers)
3961 (mips64_linux_fetch_registers, mips64_linux_store_registers)
3962 (mips_linux_register_u_offset, mips_linux_read_description)
3963 (mips_linux_can_use_hw_breakpoint)
3964 (mips_linux_stopped_by_watchpoint)
3965 (mips_linux_stopped_data_address)
3966 (mips_linux_region_ok_for_hw_watchpoint)
3967 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
3968 (mips_linux_close): Refactor as methods of mips_linux_nat.
3969 (_initialize_mips_linux_nat): Adjust to C++ification.
3970
3971 * aix-thread.c (aix_thread_target): New class.
3972 (aix_thread_ops): Now an aix_thread_target.
3973 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
3974 (aix_thread_fetch_registers, aix_thread_store_registers)
3975 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
3976 (aix_thread_thread_alive, aix_thread_pid_to_str)
3977 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
3978 Refactor as methods of aix_thread_target.
3979 (init_aix_thread_ops): Delete.
3980 (_initialize_aix_thread): Remove references to init_aix_thread_ops
3981 and complete_target_initialization.
3982 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
3983 (rs6000_nat_target): New class.
3984 (the_rs6000_nat_target): New.
3985 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
3986 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
3987 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
3988 (super_create_inferior): Delete.
3989 (_initialize_rs6000_nat): Adjust to C++ification.
3990
3991 * arm-linux-nat.c (arm_linux_nat_target): New class.
3992 (the_arm_linux_nat_target): New.
3993 (arm_linux_fetch_inferior_registers)
3994 (arm_linux_store_inferior_registers, arm_linux_read_description)
3995 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
3996 (arm_linux_remove_hw_breakpoint)
3997 (arm_linux_region_ok_for_hw_watchpoint)
3998 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
3999 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
4000 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
4001 arm_linux_nat_target.
4002 (_initialize_arm_linux_nat): Adjust to C++ification.
4003
4004 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
4005 (the_aarch64_linux_nat_target): New.
4006 (aarch64_linux_fetch_inferior_registers)
4007 (aarch64_linux_store_inferior_registers)
4008 (aarch64_linux_child_post_startup_inferior)
4009 (aarch64_linux_read_description)
4010 (aarch64_linux_can_use_hw_breakpoint)
4011 (aarch64_linux_insert_hw_breakpoint)
4012 (aarch64_linux_remove_hw_breakpoint)
4013 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
4014 (aarch64_linux_region_ok_for_hw_watchpoint)
4015 (aarch64_linux_stopped_data_address)
4016 (aarch64_linux_stopped_by_watchpoint)
4017 (aarch64_linux_watchpoint_addr_within_range)
4018 (aarch64_linux_can_do_single_step): Refactor as methods of
4019 aarch64_linux_nat_target.
4020 (super_post_startup_inferior): Delete.
4021 (_initialize_aarch64_linux_nat): Adjust to C++ification.
4022
4023 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
4024 (the_hppa_linux_nat_target): New.
4025 (hppa_linux_fetch_inferior_registers)
4026 (hppa_linux_store_inferior_registers): Refactor as methods of
4027 hppa_linux_nat_target.
4028 (_initialize_hppa_linux_nat): Adjust to C++ification.
4029
4030 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
4031 (the_ia64_linux_nat_target): New.
4032 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
4033 (ia64_linux_stopped_data_address)
4034 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
4035 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
4036 ia64_linux_nat_target methods.
4037 (super_xfer_partial): Delete.
4038 (_initialize_ia64_linux_nat): Adjust to C++ification.
4039
4040 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
4041 (the_m32r_linux_nat_target): New.
4042 (m32r_linux_fetch_inferior_registers)
4043 (m32r_linux_store_inferior_registers): Refactor as
4044 m32r_linux_nat_target methods.
4045 (_initialize_m32r_linux_nat): Adjust to C++ification.
4046
4047 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
4048 (the_m68k_linux_nat_target): New.
4049 (m68k_linux_fetch_inferior_registers)
4050 (m68k_linux_store_inferior_registers): Refactor as
4051 m68k_linux_nat_target methods.
4052 (_initialize_m68k_linux_nat): Adjust to C++ification.
4053
4054 * s390-linux-nat.c (s390_linux_nat_target): New class.
4055 (the_s390_linux_nat_target): New.
4056 (s390_linux_fetch_inferior_registers)
4057 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
4058 (s390_insert_watchpoint, s390_remove_watchpoint)
4059 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
4060 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
4061 (s390_auxv_parse, s390_read_description): Refactor as methods of
4062 s390_linux_nat_target.
4063 (_initialize_s390_nat): Adjust to C++ification.
4064
4065 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
4066 (the_sparc_linux_nat_target): New.
4067 (_initialize_sparc_linux_nat): Adjust to C++ification.
4068 * sparc-nat.c (sparc_fetch_inferior_registers)
4069 (sparc_store_inferior_registers): Remove target_ops parameter.
4070 * sparc-nat.h (sparc_fetch_inferior_registers)
4071 (sparc_store_inferior_registers): Remove target_ops parameter.
4072 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
4073 (the_sparc64_linux_nat_target): New.
4074 (_initialize_sparc64_linux_nat): Adjust to C++ification.
4075
4076 * spu-linux-nat.c (spu_linux_nat_target): New class.
4077 (the_spu_linux_nat_target): New.
4078 (spu_child_post_startup_inferior, spu_child_post_attach)
4079 (spu_child_wait, spu_fetch_inferior_registers)
4080 (spu_store_inferior_registers, spu_xfer_partial)
4081 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
4082 methods.
4083 (_initialize_spu_nat): Adjust to C++ification.
4084
4085 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
4086 (the_tilegx_linux_nat_target): New.
4087 (fetch_inferior_registers, store_inferior_registers):
4088 Refactor as methods.
4089 (_initialize_tile_linux_nat): Adjust to C++ification.
4090
4091 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
4092 (the_xtensa_linux_nat_target): New.
4093 (xtensa_linux_fetch_inferior_registers)
4094 (xtensa_linux_store_inferior_registers): Refactor as
4095 xtensa_linux_nat_target methods.
4096 (_initialize_xtensa_linux_nat): Adjust to C++ification.
4097
4098 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
4099 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
4100 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
4101 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
4102 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
4103 (fbsd_stopped_by_sw_breakpoint)
4104 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
4105 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
4106 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
4107 (fbsd_post_startup_inferior, fbsd_post_attach)
4108 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
4109 (fbsd_set_syscall_catchpoint)
4110 (super_xfer_partial, super_resume, super_wait)
4111 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
4112 (fbsd_handle_debug_trap): Remove target_ops parameter.
4113 (fbsd_nat_add_target): Delete.
4114 * fbsd-nat.h: Include "inf-ptrace.h".
4115 (fbsd_nat_add_target): Delete.
4116 (USE_SIGTRAP_SIGINFO): Define.
4117 (fbsd_nat_target): New class.
4118
4119 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
4120 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
4121 (amd64bsd_target): Delete.
4122 * amd64-bsd-nat.h: New file.
4123 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
4124 "x86-bsd-nat.h".
4125 (amd64_fbsd_nat_target): New class.
4126 (the_amd64_fbsd_nat_target): New.
4127 (amd64fbsd_read_description): Refactor as method of
4128 amd64_fbsd_nat_target.
4129 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
4130 (_initialize_amd64fbsd_nat): Adjust to C++ification.
4131 * amd64-nat.h (amd64bsd_target): Delete function declaration.
4132 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
4133 (i386bsd_store_inferior_registers): Remove target_ops parameter.
4134 (i386bsd_target): Delete.
4135 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
4136 (i386bsd_fetch_inferior_registers)
4137 (i386bsd_store_inferior_registers): Declare.
4138 (i386_bsd_nat_target): New class.
4139 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
4140 (the_i386_fbsd_nat_target): New.
4141 (i386fbsd_resume, i386fbsd_read_description): Refactor as
4142 i386_fbsd_nat_target methods.
4143 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
4144 (_initialize_i386fbsd_nat): Adjust to C++ification.
4145 * x86-bsd-nat.c (super_mourn_inferior): Delete.
4146 (x86bsd_mourn_inferior, x86bsd_target): Delete.
4147 (_initialize_x86_bsd_nat): Adjust to C++ification.
4148 * x86-bsd-nat.h: Include "x86-nat.h".
4149 (x86bsd_target): Delete declaration.
4150 (x86bsd_nat_target): New class.
4151
4152 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
4153 (the_aarch64_fbsd_nat_target): New.
4154 (aarch64_fbsd_fetch_inferior_registers)
4155 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
4156 aarch64_fbsd_nat_target.
4157 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
4158 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
4159 (the_alpha_bsd_nat_target): New.
4160 (alphabsd_fetch_inferior_registers)
4161 (alphabsd_store_inferior_registers): Refactor as
4162 alpha_bsd_nat_target methods.
4163 (_initialize_alphabsd_nat): Refactor as methods of
4164 alpha_bsd_nat_target.
4165 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
4166 (the_amd64_nbsd_nat_target): New.
4167 (_initialize_amd64nbsd_nat): Adjust to C++ification.
4168 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
4169 (the_amd64_obsd_nat_target): New.
4170 (_initialize_amd64obsd_nat): Adjust to C++ification.
4171 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
4172 (the_arm_fbsd_nat_target): New.
4173 (arm_fbsd_fetch_inferior_registers)
4174 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
4175 (_initialize_arm_fbsd_nat): Refactor as methods of
4176 arm_fbsd_nat_target.
4177 (_initialize_arm_fbsd_nat): Adjust to C++ification.
4178 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
4179 (the_arm_netbsd_nat_target): New.
4180 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
4181 arm_netbsd_nat_target.
4182 (_initialize_arm_netbsd_nat): Adjust to C++ification.
4183 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
4184 (the_hppa_nbsd_nat_target): New.
4185 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
4186 hppa_nbsd_nat_target methods.
4187 (_initialize_hppanbsd_nat): Adjust to C++ification.
4188 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
4189 (the_hppa_obsd_nat_target): New.
4190 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
4191 methods of hppa_obsd_nat_target.
4192 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
4193 add_target.
4194 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
4195 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
4196 add_target.
4197 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
4198 (_initialize_i386obsd_nat): Use add_target.
4199 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
4200 (the_m68k_bsd_nat_target): New.
4201 (m68kbsd_fetch_inferior_registers)
4202 (m68kbsd_store_inferior_registers): Refactor as methods of
4203 m68k_bsd_nat_target.
4204 (_initialize_m68kbsd_nat): Adjust to C++ification.
4205 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
4206 (the_mips_fbsd_nat_target): New.
4207 (mips_fbsd_fetch_inferior_registers)
4208 (mips_fbsd_store_inferior_registers): Refactor as methods of
4209 mips_fbsd_nat_target.
4210 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
4211 add_target.
4212 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
4213 (the_mips_nbsd_nat_target): New.
4214 (mipsnbsd_fetch_inferior_registers)
4215 (mipsnbsd_store_inferior_registers): Refactor as methods of
4216 mips_nbsd_nat_target.
4217 (_initialize_mipsnbsd_nat): Adjust to C++ification.
4218 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
4219 (the_mips64_obsd_nat_target): New.
4220 (mips64obsd_fetch_inferior_registers)
4221 (mips64obsd_store_inferior_registers): Refactor as methods of
4222 mips64_obsd_nat_target.
4223 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
4224 add_target.
4225 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
4226 nbsd_nat_target.
4227 * nbsd-nat.h: Include "inf-ptrace.h".
4228 (nbsd_nat_target): New class.
4229 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
4230 (obsd_wait): Refactor as methods of obsd_nat_target.
4231 (obsd_add_target): Delete.
4232 * obsd-nat.h: Include "inf-ptrace.h".
4233 (obsd_nat_target): New class.
4234 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
4235 (the_ppc_fbsd_nat_target): New.
4236 (ppcfbsd_fetch_inferior_registers)
4237 (ppcfbsd_store_inferior_registers): Refactor as methods of
4238 ppc_fbsd_nat_target.
4239 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
4240 add_target.
4241 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
4242 (the_ppc_nbsd_nat_target): New.
4243 (ppcnbsd_fetch_inferior_registers)
4244 (ppcnbsd_store_inferior_registers): Refactor as methods of
4245 ppc_nbsd_nat_target.
4246 (_initialize_ppcnbsd_nat): Adjust to C++ification.
4247 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
4248 (the_ppc_obsd_nat_target): New.
4249 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
4250 methods of ppc_obsd_nat_target.
4251 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
4252 add_target.
4253 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
4254 (the_sh_nbsd_nat_target): New.
4255 (shnbsd_fetch_inferior_registers)
4256 (shnbsd_store_inferior_registers): Refactor as methods of
4257 sh_nbsd_nat_target.
4258 (_initialize_shnbsd_nat): Adjust to C++ification.
4259 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
4260 (inf_ptrace_xfer_partial): Delete.
4261 (sparc_xfer_partial, sparc_target): Delete.
4262 * sparc-nat.h (sparc_fetch_inferior_registers)
4263 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
4264 (sparc_target): Delete function declaration.
4265 (sparc_target): New template class.
4266 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
4267 (_initialize_sparcnbsd_nat): Adjust to C++ification.
4268 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
4269 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
4270 add_target.
4271 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
4272 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
4273 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
4274 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
4275 add_target.
4276 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
4277 (the_vax_bsd_nat_target): New.
4278 (vaxbsd_fetch_inferior_registers)
4279 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
4280 methods.
4281 (_initialize_vaxbsd_nat): Adjust to C++ification.
4282
4283 * bsd-kvm.c (bsd_kvm_target): New class.
4284 (bsd_kvm_ops): Now a bsd_kvm_target.
4285 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
4286 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
4287 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
4288 bsd_kvm_target.
4289 (bsd_kvm_return_one): Delete.
4290 (bsd_kvm_add_target): Adjust to C++ification.
4291
4292 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
4293 (nto_procfs_target_procfs): New classes.
4294 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
4295 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
4296 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
4297 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
4298 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
4299 (procfs_remove_hw_breakpoint, procfs_resume)
4300 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
4301 (procfs_kill_inferior, procfs_store_registers)
4302 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
4303 as methods of nto_procfs_target.
4304 (nto_procfs_ops): Now an nto_procfs_target_procfs.
4305 (nto_native_ops): Delete.
4306 (procfs_open, procfs_native_open): Delete.
4307 (nto_native_ops): Now an nto_procfs_target_native.
4308 (init_procfs_targets): Adjust to C++ification.
4309 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
4310 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
4311 Refactor as methods of nto_procfs_target.
4312
4313 * go32-nat.c (go32_nat_target): New class.
4314 (the_go32_nat_target): New.
4315 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
4316 (go32_store_registers, go32_xfer_partial, go32_files_info)
4317 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
4318 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
4319 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
4320 (go32_pid_to_str): Refactor as methods of go32_nat_target.
4321 (go32_target): Delete.
4322 (_initialize_go32_nat): Adjust to C++ification.
4323
4324 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
4325 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
4326 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
4327 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
4328 gnu_nat_target.
4329 (gnu_target): Delete.
4330 * gnu-nat.h (gnu_target): Delete.
4331 (gnu_nat_target): New class.
4332 * i386-gnu-nat.c (gnu_base_target): New.
4333 (i386_gnu_nat_target): New class.
4334 (the_i386_gnu_nat_target): New.
4335 (_initialize_i386gnu_nat): Adjust to C++ification.
4336
3fffc070
PA
43372018-05-02 Pedro Alves <palves@redhat.com>
4338
4339 * bfd-target.c (target_bfd_xclose): Rename to ...
4340 (target_bfd_close): ... this.
4341 (target_bfd_reopen): Adjust.
4342 * target.c (target_close): Remove references to to_xclose.
4343 * target.h (target_ops::to_xclose): Delete.
4344 (target_ops::to_close): Update comments.
4345
6798487f
PA
43462018-05-02 Pedro Alves <palves@redhat.com>
4347
4348 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
4349 "linux-nat.h".
4350 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
4351 * inf-ptrace.c (inf_ptrace_register_u_offset)
4352 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
4353 (inf_ptrace_store_register, inf_ptrace_store_registers)
4354 (inf_ptrace_trad_target): Move to ...
4355 * linux-nat-trad.c: ... this new file.
4356 * linux-nat-trad.h: New file.
4357 * linux-nat.c (linux_target_install_ops): Make extern.
4358 (linux_trad_target): Delete.
4359 * linux-nat.h (linux_trad_target): Delete declaration.
4360 (linux_target_install_ops): Declare.
4361 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
4362 "linux-nat.h".
4363
c1955e17
PA
43642018-05-02 Pedro Alves <palves@redhat.com>
4365
4366 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
4367 procfs_target/add_target here.
4368 * procfs.c (procfs_target): Make static.
4369 (_initialize_procfs): Call add_target here.
4370 * procfs.h (struct target_ops): Remove forward declaration.
4371 (procfs_target): Remove declaration.
4372 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
4373
b5c8fcb1
PA
43742018-05-02 Pedro Alves <palves@redhat.com>
4375
4376 * procfs.c (procfs_stopped_by_watchpoint)
4377 (procfs_insert_watchpoint, procfs_remove_watchpoint)
4378 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
4379 Forward declare.
4380 (procfs_use_watchpoints): Delete, move contents...
4381 (procfs_target): ... here.
4382 * procfs.h (procfs_use_watchpoints): Delete declaration.
4383 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
4384 procfs_use_watchpoints.
4385 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
4386 procfs_use_watchpoints.
4387
0489430a
TT
43882018-05-02 Tom Tromey <tom@tromey.com>
4389
4390 PR python/20084:
4391 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
4392 and var_zuinteger_unlimited.
4393 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
4394 and PARAM_ZUINTEGER_UNLIMITED.
4395 (set_parameter_value): Handle var_zuinteger and
4396 var_zuinteger_unlimited.
4397 (add_setshow_generic): Likewise.
4398 (parmpy_init): Likewise.
4399
1632f8ba
DR
44002018-04-28 Dan Robertson <danlrobertson89@gmail.com>
4401
4402 PR rust/23124
4403 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
4404 pointer is not null before dereferencing it.
4405
76761936
TT
44062018-04-30 Tom Tromey <tom@tromey.com>
4407
4408 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
4409 is_mi_like_p.
4410
2d33446d
TT
44112018-04-30 Tom Tromey <tom@tromey.com>
4412
4413 * breakpoint.c (mention): Remove use of is_mi_like_p.
4414 (print_mention_ranged_breakpoint): Likewise.
4415 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
4416 of is_mi_like_p.
4417
f3c6abab
TT
44182018-04-30 Tom Tromey <tom@tromey.com>
4419
4420 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
4421
40c03530
TT
44222018-04-30 Tom Tromey <tom@tromey.com>
4423
4424 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
4425 (info_spu_event_command): Remove some uses of is_mi_like_p.
4426
2038b7fd
TT
44272018-04-30 Tom Tromey <tom@tromey.com>
4428
4429 * python/py-framefilter.c (py_print_single_arg)
4430 (enumerate_locals, py_print_args, py_print_frame): Remove some
4431 uses of is_mi_like_p.
4432
4904c3c6
TT
44332018-04-30 Tom Tromey <tom@tromey.com>
4434
4435 * ui-out.c: Update.
4436 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
4437 * ui-out.h (ui_out::is_mi_like_p): Now const.
4438 (ui_out::do_is_mi_like_p): Now const.
4439 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
4440
7c66fffc
TT
44412018-04-30 Tom Tromey <tom@tromey.com>
4442
4443 * varobj.c (varobj_set_visualizer): Use new_reference.
4444 * python/python.c (gdbpy_decode_line): Use new_reference.
4445 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
4446 new_reference.
4447
bbfa6f00
TT
44482018-04-30 Tom Tromey <tom@tromey.com>
4449
4450 * varobj.c (install_new_value): Use new_reference.
4451 * value.h (value_incref): Return void. Swap intro comment with
4452 value_decref.
4453 * value.c (set_value_parent): Use new_reference.
4454 (value_incref): Return void. Update intro comment.
4455 (release_value): Use new_reference.
4456 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
4457
1831a9f9
TT
44582018-04-30 Tom Tromey <tom@tromey.com>
4459
4460 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
4461 * gdb_bfd.h (new_bfd_ref): Remove.
4462 (gdb_bfd_open): Update comment.
4463 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4464 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
4465 (gdb_bfd_fdopenr): Use new_reference.
4466 * exec.c (exec_file_attach): Use new_reference.
4467
7c1b5f3d
TT
44682018-04-30 Tom Tromey <tom@tromey.com>
4469
4470 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
4471 method.
4472
e11fb955
TT
44732018-04-30 Tom Tromey <tom@tromey.com>
4474
4475 * jit.c (jit_read_code_entry): Use type_align.
4476 * i386-tdep.c (i386_gdbarch_init): Don't call
4477 set_gdbarch_long_long_align_bit.
4478 * gdbarch.sh: Remove long_long_align_bit.
4479 * gdbarch.c, gdbarch.h: Rebuild.
4480 * arc-tdep.c (arc_type_align): New function.
4481 (arc_gdbarch_init): Use arc_type_align. Don't call
4482 set_gdbarch_long_long_align_bit.
4483
2fff16dd
TT
44842018-04-30 Tom Tromey <tom@tromey.com>
4485
4486 * rust-lang.c (rust_type_alignment): Remove.
4487 (rust_composite_type): Use type_align.
4488
6d7bb824
TT
44892018-04-30 Tom Tromey <tom@tromey.com>
4490
4491 * NEWS: Mention Type.align.
4492 * python/py-type.c (typy_get_alignof): New function.
4493 (type_object_getset): Add "alignof".
4494
007e1530
TT
44952018-04-30 Tom Tromey <tom@tromey.com>
4496
4497 PR exp/17095:
4498 * NEWS: Update.
4499 * std-operator.def (UNOP_ALIGNOF): New operator.
4500 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
4501 New.
4502 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
4503 * c-lang.c (c_op_print_tab): Add alignof.
4504 * c-exp.y (ALIGNOF): New token.
4505 (exp): Add "ALIGNOF" production.
4506 (ident_tokens): Add _Alignof and alignof.
4507
2b4424c3
TT
45082018-04-30 Tom Tromey <tom@tromey.com>
4509
4510 * i386-tdep.c (i386_type_align): New function.
4511 (i386_gdbarch_init): Update.
4512 * gdbarch.sh (type_align): New method.
4513 * gdbarch.c, gdbarch.h: Rebuild.
4514 * arch-utils.h (default_type_align): Declare.
4515 * arch-utils.c (default_type_align): New function.
4516 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
4517 (struct type) <align_log2>: New field.
4518 <instance_flags>: Now a bitfield.
4519 (TYPE_RAW_ALIGN): New macro.
4520 (type_align, type_raw_align, set_type_align): Declare.
4521 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
4522 functions.
4523 * dwarf2read.c (quirk_rust_enum): Set type alignment.
4524 (get_alignment, maybe_set_alignment): New functions.
4525 (read_structure_type, read_enumeration_type, read_array_type)
4526 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
4527 (read_subrange_type, read_base_type): Set type alignment.
4528
d33bc52e
SM
45292018-04-30 Simon Marchi <simon.marchi@ericsson.com>
4530
4531 * dwarf2read.c (read_index_from_section): Use bool.
4532
e28b63a9
FG
45332018-04-29 Fabian Groffen <grobian@gentoo.org>
4534
4535 PR gdb/22950
4536 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
4537 with #ifdef.
4538
cd8c76e4
JR
45392018-04-29 John Reiser <jreiser@BitWagon.com>
4540
4541 PR build/22873
4542 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
4543 last step, and do it atomically.
4544
476d250e
AO
45452018-04-27 Alexandre Oliva <aoliva@redhat.com>
4546
4547 * compile/compile-c-types.c (convert_int, convert_float):
4548 Update for C FE v1.
4549
6873858b
TT
45502018-04-27 Tom Tromey <tom@tromey.com>
4551
4552 PR rust/22545:
4553 * rust-lang.c (rust_inclusive_range_type_p): New function.
4554 (rust_range): Handle inclusive ranges.
4555 (rust_compute_range): Likewise.
4556 * rust-exp.y (struct rust_op) <inclusive>: New field.
4557 (DOTDOTEQ): New constant.
4558 (range_expr): Add "..=" productions.
4559 (operator_tokens): Add "..=" token.
4560 (ast_range): Add "inclusive" parameter.
4561 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
4562 ranges.
4563 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
4564 bounds values.
4565 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
4566 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
4567 Update comments.
4568 * expprint.c (print_subexp_standard): Handle new bounds values.
4569 (dump_subexp_body_standard): Likewise.
4570
632e107b
TT
45712018-04-27 Tom Tromey <tom@tromey.com>
4572
4573 * configure: Rebuild.
4574 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
4575 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
4576 "OVERRIDE".
4577 (class symbol_needs_eval_context): Likewise.
4578 * dwarf2read.c (mock_mapped_index::symbol_name_count)
4579 (mock_mapped_index::symbol_name_at): Use "override". Remove
4580 "virtual".
4581 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
4582 "override".
4583 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
4584 * aarch64-tdep.c (instruction_reader::read): Use "override".
4585 (instruction_reader_test::read): Likewise.
4586 * arm-tdep.c (instruction_reader::read): Use "override".
4587 (instruction_reader_thumb::read): Likewise.
4588
b75abf5b
AK
45892018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
4590
4591 PR remote/9665
4592 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
4593 instead of remote_send.
4594 (remote_send): Remove.
4595
79188d8d
PA
45962018-04-26 Pedro Alves <palves@redhat.com>
4597
4598 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
4599 find_function_start_sal instead of find_pc_line.
4600
f50776aa
PA
46012018-04-26 Pedro Alves <palves@redhat.com>
4602
4603 * breakpoint.c (set_breakpoint_location_function): Handle
4604 mst_data_gnu_ifunc.
4605 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
4606 * elfread.c (elf_symtab_read): Give data symbols with
4607 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
4608 (elf_rel_plt_read): Update comment.
4609 * linespec.c (convert_linespec_to_sals): Handle
4610 mst_data_gnu_ifunc.
4611 (minsym_found): Handle mst_data_gnu_ifunc.
4612 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
4613 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
4614 * parse.c (find_minsym_type_and_address): Handle
4615 mst_data_gnu_ifunc.
4616 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
4617 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
4618 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
4619 comment.
4620 <mst_data_gnu_ifunc>: New enumerator.
4621
20944a6e
PA
46222018-04-26 Pedro Alves <palves@redhat.com>
4623
4624 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
4625 (lookup_minimal_symbol_by_pc_section): ... this. Replace
4626 'want_trampoline' parameter by a lookup_msym_prefer parameter.
4627 Handle it.
4628 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
4629 (lookup_minimal_symbol_by_pc): Adjust.
4630 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
4631 (lookup_solib_trampoline_symbol_by_pc): Adjust.
4632 * minsyms.h (lookup_msym_prefer): New enum.
4633 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
4634 parameter by a lookup_msym_prefer parameter.
4635
1adeb822
PA
46362018-04-26 Pedro Alves <palves@redhat.com>
4637
4638 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
4639 ends in "@plt" instead of looking at the symbol's section.
4640
a0aca7b0
PA
46412018-04-26 Pedro Alves <palves@redhat.com>
4642
4643 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
4644 all references.
4645 (find_pc_partial_function_gnu_ifunc): Rename to ...
4646 (find_pc_partial_function): ... this, and remove references to
4647 'is_gnu_ifunc_p'.
4648 (find_pc_partial_function): Delete old implementation.
4649 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
4650
76af0f26
PA
46512018-04-26 Pedro Alves <palves@redhat.com>
4652
4653 * linespec.c (struct bound_minimal_symbol_search_key): New.
4654 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
4655 skip first line if we found a GNU ifunc minimal symbol by name.
4656 (compare_msymbols): Change parameters to work with a destructured
4657 lhs minsym.
4658 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
4659 functions.
4660
3467ec66
PA
46612018-04-26 Pedro Alves <palves@redhat.com>
4662
4663 * breakpoint.c (set_breakpoint_location_function): Don't resolve
4664 ifunc targets here. Instead, if we have an ifunc minsym, use its
4665 address/name.
4666 (add_location_to_breakpoint): Store the minsym and the objfile in
4667 the breakpoint location.
4668 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
4669 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
4670 Record the minsym in the sal.
4671 * symtab.h (symtab_and_line) <msymbol>: New field.
4672
28f4fa4d
PA
46732018-04-26 Pedro Alves <palves@redhat.com>
4674
4675 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
4676 unless we actually resolved the ifunc.
4677
ca31ab1d
PA
46782018-04-26 Pedro Alves <palves@redhat.com>
4679
4680 * c-exp.y (variable production): Prefer ifunc minsyms over
4681 regular function symbols.
4682 * symtab.c (find_gnu_ifunc): New function.
4683 * minsyms.h (lookup_msym_prefer): New enum.
4684 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
4685 parameter by a lookup_msym_prefer parameter.
4686 * symtab.h (find_gnu_ifunc): New declaration.
4687
8388016d
PA
46882018-04-26 Pedro Alves <palves@redhat.com>
4689
4690 * blockframe.c (find_gnu_ifunc_target_type): New function.
4691 (find_function_type): New.
4692 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
4693 return a value with a memory address.
4694 (eval_call): For calls to GNU ifunc functions, try to find the
4695 type of the target function from the type that the resolver
4696 returns.
4697 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
4698 symbols.
4699 * infcall.c (find_function_return_type): Delete.
4700 (find_function_addr): Add 'function_type' parameter. For calls to
4701 GNU ifunc functions, try to find the type of the target function
4702 from the type that the resolver returns, and return it via
4703 FUNCTION_TYPE.
4704 (call_function_by_hand_dummy): Adjust to use the function type
4705 returned by find_function_addr.
4706 (find_function_addr): Add 'function_type' parameter and move
4707 description here.
4708 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
4709 declarations.
4710
a376e11d
PA
47112018-04-26 Pedro Alves <palves@redhat.com>
4712
4713 * c-exp.y (variable production): Skip finding an alias for ifunc
4714 symbols.
4715
02e169e2
PA
47162018-04-26 Pedro Alves <palves@redhat.com>
4717
4718 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
4719
249b5733
PA
47202018-04-25 Pedro Alves <palves@redhat.com>
4721
4722 * infcmd.c (kill_command): Print the pid as string, not the whole
4723 thread's ptid. Add comment. s/has been killed/killed/ in output
4724 message.
4725 * remote.c (remote_detach_1): Print the pid as string, not the
4726 whole thread's ptid.
4727
f67c0c91
SDJ
47282018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4729 Sergio Durigan Junior <sergiodj@redhat.com>
4730 Pedro Alves <palves@redhat.com>
4731
4732 * infcmd.c (kill_command): Print message when inferior has
4733 been killed.
4734 * inferior.c (print_inferior_events): Remove 'static'. Set as
4735 '1'.
4736 (add_inferior): Improve message printed when
4737 'print_inferior_events' is on.
4738 (exit_inferior): Remove message printed when
4739 'print_inferior_events' is on.
4740 (detach_inferior): Improve message printed when
4741 'print_inferior_events' is on.
4742 (initialize_inferiors): Use 'add_inferior_silent' to set
4743 'current_inferior_'.
4744 * inferior.h (print_inferior_events): Declare here as
4745 'extern'.
4746 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
4747 '[Detaching...]' messages when 'print_inferior_events' is on.
4748 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
4749 as prefix/suffix for messages. Remove periods. Fix erroneous
4750 'Detaching after fork from child...', replace it by '... from
4751 parent...'.
4752 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
4753 prefix/suffix when printing 'Detaching...' messages. Print
4754 them when 'print_inferior_events' is on.
4755 * remote.c (remote_detach_1): Print message when detaching
4756 from inferior and '!is_fork_parent'.
4757
e427af18
TT
47582018-04-24 Tom Tromey <tom@tromey.com>
4759
4760 * cli-out.h: Reindent.
4761
05b1d8d6
TT
47622018-04-24 Tom Tromey <tom@tromey.com>
4763
4764 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
4765 (cli_ui_out::do_field_string): Use fputs_filtered.
4766 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
4767
a95c7dab
TT
47682018-04-23 Tom Tromey <tom@tromey.com>
4769
4770 * guile/scm-frame.c (gdbscm_frame_read_var): Use
4771 gdb::unique_xmalloc_ptr.
4772
458412c3
TT
47732018-04-23 Tom Tromey <tom@tromey.com>
4774
4775 * configure: Rebuild.
4776
db86b02b
RS
47772018-04-22 Rajendra SY <rajendra.sy@gmail.com>
4778
4779 PR gdb/23095
4780 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
4781 prepare_for_testing. Set normal_bp to r_debug_state if target
4782 is bsd.
4783
00aecdcf
PA
47842018-04-21 Pedro Alves <palves@redhat.com>
4785 Rajendra SY <rajendra.sy@gmail.com>
4786
4787 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
4788 * remote.c (extended_remote_attach): In all-stop mode, mark the
4789 thread as executing.
4790
224608c3
PW
47912018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4792
4793 * thread.c (thread_apply_all_command): Fix comment.
4794 (thread_command): Fix comment.
4795
3b74854b
AH
47962018-04-10 Alan Hayward <alan.hayward@arm.com>
4797
4798 * common/tdesc.h (tdesc_create_feature): Remove xml filename
4799 parameter.
4800 * features/aarch64-core.c (create_feature_aarch64_core):
4801 Regenerate.
4802 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
4803 Likewise.
4804 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
4805 Likewise.
4806 * features/i386/32bit-avx512.c
4807 (create_feature_i386_32bit_avx512): Likewise.
4808 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
4809 Likewise.
4810 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
4811 Likewise.
4812 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
4813 Likewise.
4814 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
4815 Likewise.
4816 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
4817 Likewise.
4818 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
4819 Likewise.
4820 * features/i386/64bit-avx512.c
4821 (create_feature_i386_64bit_avx512): Likewise.
4822 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
4823 Likewise.
4824 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
4825 Likewise.
4826 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
4827 Likewise.
4828 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
4829 Likewise.
4830 * features/i386/64bit-segments.c
4831 (create_feature_i386_64bit_segments): Likewise.
4832 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
4833 Likewise.
4834 * features/i386/x32-core.c
4835 (create_feature_i386_x32_core): Likewise.
4836 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
4837 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
4838 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
4839 * target-descriptions.c: In generated code, don't pass xml
4840 filename.
4841
e98577a9
AH
48422018-04-18 Alan Hayward <alan.hayward@arm.com>
4843
4844 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
4845 (print_xml_feature::visit_post): Likewise.
4846 (print_xml_feature::visit): Likewise.
4847 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
4848 (print_xml_feature): Add new class.
4849 * regformats/regdat.sh: Null xmltarget on feature targets.
4850 * target-descriptions.c (struct target_desc): Add xmltarget.
4851 (maintenance_check_tdesc_xml_convert): Add unittest function.
4852 (tdesc_get_features_xml): Add function to get xml.
4853 (maintenance_check_xml_descriptions): Test xml generation.
4854 * xml-tdesc.c (string_read_description_xml): Add function.
4855 * xml-tdesc.h (string_read_description_xml): Add declaration.
4856
ad7fc756
AH
48572018-04-18 Alan Hayward <alan.hayward@arm.com>
4858
4859 * features/Makefile: Add feature marker to targets with new style
4860 target descriptions.
4861 * regformats/aarch64.dat: Regenerate.
4862 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
4863 * regformats/i386/amd64-avx-linux.dat: Likewise.
4864 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
4865 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
4866 * regformats/i386/amd64-linux.dat: Likewise.
4867 * regformats/i386/amd64-mpx-linux.dat: Likewise.
4868 * regformats/i386/amd64.dat: Likewise.
4869 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
4870 * regformats/i386/i386-avx-linux.dat: Likewise.
4871 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
4872 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
4873 * regformats/i386/i386-linux.dat: Likewise.
4874 * regformats/i386/i386-mmx-linux.dat: Likewise.
4875 * regformats/i386/i386-mpx-linux.dat: Likewise.
4876 * regformats/i386/i386.dat: Likewise.
4877 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
4878 * regformats/i386/x32-avx-linux.dat: Likewise.
4879 * regformats/i386/x32-linux.dat: Likewise.
4880 * regformats/tic6x-c62x-linux.dat: Likewise.
4881 * regformats/tic6x-c64x-linux.dat: Likewise.
4882 * regformats/tic6x-c64xp-linux.dat: Likewise.
4883 * regformats/regdat.sh: Parse feature marker.
4884
d278f585
AH
48852018-04-18 Alan Hayward <alan.hayward@arm.com>
4886
4887 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
4888 (tdesc_osabi_name): Likewise.
4889 * target-descriptions.c (tdesc_architecture_name): Add new
4890 function.
4891 (tdesc_osabi_name): Likewise.
4892
eee8a18d
AH
48932018-04-18 Alan Hayward <alan.hayward@arm.com>
4894
4895 * common/tdesc.c (tdesc_predefined_type): Move to here.
4896 (tdesc_named_type): Likewise.
4897 (tdesc_create_vector): Likewise.
4898 (tdesc_create_struct): Likewise.
4899 (tdesc_set_struct_size): Likewise.
4900 (tdesc_create_union): Likewise.
4901 (tdesc_create_flags): Likewise.
4902 (tdesc_create_enum): Likewise.
4903 (tdesc_add_field): Likewise.
4904 (tdesc_add_typed_bitfield): Likewise.
4905 (tdesc_add_bitfield): Likewise.
4906 (tdesc_add_flag): Likewise.
4907 (tdesc_add_enum_value): Likewise.
4908 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
4909 (struct tdesc_type_vector): Likewise.
4910 (struct tdesc_type_field): Likewise.
4911 (struct tdesc_type_with_fields): Likewise.
4912 (tdesc_create_enum): Add declaration.
4913 (tdesc_add_typed_bitfield): Likewise.
4914 (tdesc_add_enum_value): Likewise.
4915 * target-descriptions.c (tdesc_type_field): Move from here.
4916 (tdesc_type_builtin): Likewise.
4917 (tdesc_type_vector): Likewise.
4918 (tdesc_type_with_fields): Likewise.
4919 (tdesc_predefined_types): Likewise.
4920 (tdesc_named_type): Likewise.
4921 (tdesc_create_vector): Likewise.
4922 (tdesc_create_struct): Likewise.
4923 (tdesc_set_struct_size): Likewise.
4924 (tdesc_create_union): Likewise.
4925 (tdesc_create_flags): Likewise.
4926 (tdesc_create_enum): Likewise.
4927 (tdesc_add_field): Likewise.
4928 (tdesc_add_typed_bitfield): Likewise.
4929 (tdesc_add_bitfield): Likewise.
4930 (tdesc_add_flag): Likewise.
4931 (tdesc_add_enum_value): Likewise.
4932 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
4933 (tdesc_add_typed_bitfield): Likewise.
4934 (tdesc_add_enum_value): Likewise.
4935
82ec9bc7
AH
49362018-04-18 Alan Hayward <alan.hayward@arm.com>
4937
4938 * common/tdesc.c (tdesc_feature::accept): Move to here.
4939 (tdesc_feature::operator==): Likewise.
4940 (tdesc_create_reg): Likewise.
4941 * common/tdesc.h (tdesc_type_kind): Likewise.
4942 (struct tdesc_type): Likewise.
4943 (struct tdesc_feature): Likewise.
4944 * regformats/regdat.sh: Create a feature.
4945 * target-descriptions.c (tdesc_type_kind): Move from here.
4946 (tdesc_type): Likewise.
4947 (tdesc_type_up): Likewise.
4948 (tdesc_feature): Likewise.
4949 (tdesc_create_reg): Likewise.
4950
ea3e7d71
AH
49512018-04-18 Alan Hayward <alan.hayward@arm.com>
4952
4953 * Makefile.in: Add arch/tdesc.c
4954 * common/tdesc.c: New file.
4955 * common/tdesc.h (tdesc_element_visitor): Move to here.
4956 (tdesc_element): Likewise.
4957 (tdesc_reg): Likewise.
4958 (tdesc_reg_up): Likewise.
4959 * regformats/regdef.h (reg): Add offset to constructors.
4960 * target-descriptions.c (tdesc_element_visitor): Move from here.
4961 (tdesc_element): Likewise.
4962 (tdesc_reg): Likewise.
4963 (tdesc_reg_up): Likewise.
4964
bedda9ac
TT
49652018-04-17 Tom Tromey <tom@tromey.com>
4966
4967 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
4968 discriminant field.
4969
a037790e
TT
49702018-04-17 Tom Tromey <tom@tromey.com>
4971
4972 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
4973
c7dcbf88
AA
49742018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4975
4976 * symtab.c (print_symbol_info): Skip printing filename and line
4977 number when `last' is NULL.
4978 (symtab_symbol_info): Use empty string instead of NULL for first
4979 invocation of print_symbol_info.
4980 (rbreak_command): Pass NULL to `last' parameter of
4981 print_symbol_info.
4982
07d28c77
SM
49832018-04-16 Simon Marchi <simon.marchi@ericsson.com>
4984
4985 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
4986 instead of nullptr.
4987
8a3de5e1
PA
49882018-04-16 Pedro Alves <palves@redhat.com>
4989
4990 * MAINTAINERS (sh): Remove.
4991 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
4992 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
4993 (ALLDEPFILES): Remove sh64-tdep.c.
4994 * NEWS: Mentions that support for SH-5/SH64 is removed.
4995 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
4996 (sh*-*-openbsd*): Ditto.
4997 (sh64-*-elf*): Remove.
4998 (sh*): Remove.
4999 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
5000 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
5001 * sh-tdep.c: No longer include "sh64-tdep.h".
5002 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
5003 * sh64-tdep.c, sh64-tdep.h: Remove files.
5004
a2a79012
PA
50052018-04-16 Pedro Alves <palves@redhat.com>
5006
5007 * MAINTAINERS: Remove m88k.
5008 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
5009 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
5010 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
5011 * NEWS: Mention that support for m88k was removed.
5012 * configure.host (m88*-*-*): Remove support.
5013 * configure.nat (m88k-*-*): Remove support.
5014 * configure.tgt (m88*-*-openbsd*): Remove.
5015 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
5016
eda4efb1
SM
50172018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
5018
5019 * configure.tgt (x86_tobjs): New variable.
5020 (amd64_tobjs, i386_tobjs): Use it.
5021
b744723f
AA
50222018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5023
5024 * symtab.c (print_symbol_info): Precede the symbol definition by
5025 the line number when available.
5026 * NEWS: Advertise this enhancement.
5027
4a4495d6
MM
50282018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5029
5030 * NEWS (New options): announce set/show record btrace cpu.
5031 * btrace.c: Include record-btrace.h.
5032 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
5033 the vendor is unknown.
5034 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
5035 Maybe overwrite the btrace configuration's cpu.
5036 (btrace_compute_ftrace): Add cpu parameter. Update callers.
5037 (btrace_fetch): Add cpu parameter. Update callers.
5038 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
5039 Maybe overwrite the btrace configuration's cpu. Skip enabling
5040 errata workarounds if the vendor is unknown.
5041 * python/py-record-btrace.c: Include record-btrace.h.
5042 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
5043 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
5044 * record-btrace.c (record_btrace_cpu_state_kind): New.
5045 (record_btrace_cpu): New.
5046 (set_record_btrace_cpu_cmdlist): New.
5047 (record_btrace_get_cpu): New.
5048 (require_btrace_thread, record_btrace_info)
5049 (record_btrace_resume_thread): Call record_btrace_get_cpu.
5050 (cmd_set_record_btrace_cpu_none): New.
5051 (cmd_set_record_btrace_cpu_auto): New.
5052 (cmd_set_record_btrace_cpu): New.
5053 (cmd_show_record_btrace_cpu): New.
5054 (_initialize_record_btrace): Initialize set/show record btrace cpu
5055 commands.
5056 * record-btrace.h (record_btrace_get_cpu): New.
5057
69f90c75
MM
50582018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5059
5060 * record.c (set_record_command): Fix typo in message.
5061
b85310e1
MM
50622018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5063
5064 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
5065
1d509aa6
MM
50662018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5067
5068 * infrun.c (process_event_stop_test): Call
5069 gdbarch_in_indirect_branch_thunk.
5070 * gdbarch.sh (in_indirect_branch_thunk): New.
5071 * gdbarch.c: Regenerated.
5072 * gdbarch.h: Regenerated.
5073 * x86-tdep.h: New.
5074 * x86-tdep.c: New.
5075 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
5076 (HFILES_NO_SRCDIR): Add x86-tdep.h.
5077 (ALLDEPFILES): Add x86-tdep.c.
5078 * arch-utils.h (default_in_indirect_branch_thunk): New.
5079 * arch-utils.c (default_in_indirect_branch_thunk): New.
5080 * i386-tdep: Include x86-tdep.h.
5081 (i386_in_indirect_branch_thunk): New.
5082 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
5083 function.
5084 * amd64-tdep: Include x86-tdep.h.
5085 (amd64_in_indirect_branch_thunk): New.
5086 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
5087
b4be9bfd
JK
50882018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5089
5090 PR gdb/23053
5091 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
5092 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
5093 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
5094 regression.
5095
53d7df28
TT
50962018-04-12 Tom Tromey <tom@tromey.com>
5097
5098 * rust-lang.c (rust_print_struct_def): Remove univariant code.
5099 (rust_evaluate_subexp): Likewise.
5100
70b33f19
PA
51012018-04-12 Pedro Alves <palves@redhat.com>
5102
5103 * procfs.c (procfs_detach): Make forward declaration's prototype
5104 match definition's protototype.
5105 (proc_get_LDT_entry): Remove stale do_cleanups call.
5106
436411b1
PA
51072018-04-12 Pedro Alves <palves@redhat.com>
5108
5109 * target.h (target_ops::to_has_exited): Delete.
5110 (target_has_exited): Delete.
5111 * target-delegates.c: Regenerate.
5112
20db9c52
PA
51132018-04-11 Pedro Alves <palves@redhat.com>
5114
5115 * target.c (fileio_fh_t::t): Add comment.
5116 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
5117 (target_fileio_close): Handle a NULL target.
5118 (invalidate_fileio_fh): New.
5119 (target_close): Call it.
5120 * remote.c (remote_hostio_send_command): No longer check whether
5121 remote_desc is open.
5122
5ff79300
PA
51232018-04-11 Pedro Alves <palves@redhat.com>
5124
5125 * target.c (fileio_fh_t): Make it a named struct instead of a
5126 typedef.
5127 (fileio_fh_t::is_closed): New method.
5128 (DEF_VEC_O (fileio_fh_t)): Remove.
5129 (fileio_fhandles): Now a std::vector.
5130 (is_closed_fileio_fh): Delete.
5131 (acquire_fileio_fd): Adjust. Rename parameters.
5132 (release_fileio_fd): Adjust.
5133 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
5134 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
5135 (target_fileio_close): Adjust.
5136
6e22e10d
SM
51372018-04-10 Simon Marchi <simon.marchi@ericsson.com>
5138
5139 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
5140 index.
5141
731f534f
PA
51422018-04-10 Pedro Alves <palves@redhat.com>
5143
5144 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
5145 (scoped_finish_thread_state): New class.
5146 * infcmd.c (run_command_1): Use it instead of finish_thread_state
5147 cleanup.
5148 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
5149 (fetch_inferior_event, normal_stop): Likewise.
5150 * thread.c (finish_thread_state_cleanup): Delete.
5151
d5f4488f
SM
51522018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5153 Pedro Alves <palves@redhat.com>
5154
5155 * value.c: Include "selftest.h" and "common/array-view.h".
5156 (struct range) <operator ==>: New.
5157 (test_ranges_contain): New.
5158 (check_ranges_vector): New.
5159 (test_insert_into_bit_range_vector): New.
5160 (_initialize_values): Register selftests.
5161 * common/array-view.h (operator==, operator!=): New.
5162
b24531ed
SM
51632018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5164
5165 * common/gdb_vecs.h (unordered_remove): Add overload that takes
5166 an iterator.
5167 * inline-frame.c: Include <algorithm>.
5168 (struct inline_state): Add constructor.
5169 (inline_state_s): Remove.
5170 (DEF_VEC_O(inline_state_s)): Remove.
5171 (inline_states): Change type to std::vector.
5172 (find_inline_frame_state): Adjust to std::vector.
5173 (allocate_inline_frame_state): Remove.
5174 (clear_inline_frame_state): Adjust to std::vector.
5175 (skip_inline_frames): Adjust to std::vector.
5176
c252925c
SM
51772018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5178
5179 * tracepoint.h (struct trace_state_variable): Add constructor.
5180 <name>: Change type to std::string.
5181 * tracepoint.c (tsv_s): Remove.
5182 (DEF_VEC_O(tsv_s)): Remove.
5183 (tvariables): Change to std::vector.
5184 (create_trace_state_variable): Adjust to std::vector.
5185 (find_trace_state_variable): Likewise.
5186 (find_trace_state_variable_by_number): Likewise.
5187 (delete_trace_state_variable): Likewise.
5188 (trace_variable_command): Adjust to std::string.
5189 (delete_trace_variable_command): Likewise.
5190 (tvariables_info_1): Adjust to std::vector.
5191 (save_trace_state_variables): Likewise.
5192 (start_tracing): Likewise.
5193 (merge_uploaded_trace_state_variables): Adjust to std::vector
5194 and std::string.
5195 * target.h (struct target_ops)
5196 <to_download_trace_state_variable>: Pass reference to
5197 trace_state_variable.
5198 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
5199 * target-delegates.c: Re-generate.
5200 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
5201 (mi_tsv_deleted): Likewise.
5202 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5203 * remote.c (remote_download_trace_state_variable): Change
5204 pointer to reference and adjust.
5205 * make-target-delegates (parse_argtypes): Handle references.
5206 (write_function_header): Likewise.
5207 (munge_type): Likewise.
5208
c9638d26
SM
52092018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5210
5211 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5212 string_view-selftests.c.
5213 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
5214 testsuite.
5215 * unittests/basic_string_view/cons/char/1.cc: Likewise.
5216 * unittests/basic_string_view/cons/char/2.cc: Likewise.
5217 * unittests/basic_string_view/cons/char/3.cc: Likewise.
5218 * unittests/basic_string_view/element_access/char/1.cc:
5219 Likewise.
5220 * unittests/basic_string_view/element_access/char/empty.cc:
5221 Likewise.
5222 * unittests/basic_string_view/element_access/char/front_back.cc:
5223 Likewise.
5224 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
5225 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
5226 Likewise.
5227 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
5228 Likewise.
5229 * unittests/basic_string_view/modifiers/swap/char/1.cc:
5230 Likewise.
5231 * unittests/basic_string_view/operations/compare/char/1.cc:
5232 Likewise.
5233 * unittests/basic_string_view/operations/compare/char/13650.cc:
5234 Likewise.
5235 * unittests/basic_string_view/operations/copy/char/1.cc:
5236 Likewise.
5237 * unittests/basic_string_view/operations/data/char/1.cc:
5238 Likewise.
5239 * unittests/basic_string_view/operations/find/char/1.cc:
5240 Likewise.
5241 * unittests/basic_string_view/operations/find/char/2.cc:
5242 Likewise.
5243 * unittests/basic_string_view/operations/find/char/3.cc:
5244 Likewise.
5245 * unittests/basic_string_view/operations/find/char/4.cc:
5246 Likewise.
5247 * unittests/basic_string_view/operations/rfind/char/1.cc:
5248 Likewise.
5249 * unittests/basic_string_view/operations/rfind/char/2.cc:
5250 Likewise.
5251 * unittests/basic_string_view/operations/rfind/char/3.cc:
5252 Likewise.
5253 * unittests/basic_string_view/operations/substr/char/1.cc:
5254 Likewise.
5255 * unittests/basic_string_view/operators/char/2.cc: Likewise.
5256 * unittests/string_view-selftests.c: New file.
5257
fdc11678
SM
52582018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5259
5260 * unittests/basic_string_view/capacity/1.cc: New file.
5261 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
5262 * unittests/basic_string_view/cons/char/1.cc: New file.
5263 * unittests/basic_string_view/cons/char/2.cc: New file.
5264 * unittests/basic_string_view/cons/char/3.cc: New file.
5265 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
5266 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
5267 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
5268 * unittests/basic_string_view/element_access/char/1.cc: New file.
5269 * unittests/basic_string_view/element_access/char/2.cc: New file.
5270 * unittests/basic_string_view/element_access/char/empty.cc: New file.
5271 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
5272 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
5273 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
5274 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
5275 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
5276 * unittests/basic_string_view/include.cc: New file.
5277 * unittests/basic_string_view/inserters/char/1.cc: New file.
5278 * unittests/basic_string_view/inserters/char/2.cc: New file.
5279 * unittests/basic_string_view/inserters/char/3.cc: New file.
5280 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
5281 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
5282 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
5283 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
5284 * unittests/basic_string_view/literals/types.cc: New file.
5285 * unittests/basic_string_view/literals/values.cc: New file.
5286 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
5287 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
5288 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
5289 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
5290 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
5291 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
5292 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
5293 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
5294 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
5295 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
5296 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
5297 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
5298 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
5299 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
5300 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
5301 * unittests/basic_string_view/operations/data/char/1.cc: New file.
5302 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
5303 * unittests/basic_string_view/operations/find/char/1.cc: New file.
5304 * unittests/basic_string_view/operations/find/char/2.cc: New file.
5305 * unittests/basic_string_view/operations/find/char/3.cc: New file.
5306 * unittests/basic_string_view/operations/find/char/4.cc: New file.
5307 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
5308 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
5309 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
5310 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
5311 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
5312 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
5313 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
5314 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
5315 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
5316 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
5317 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
5318 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
5319 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
5320 * unittests/basic_string_view/operators/char/2.cc: New file.
5321 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
5322 * unittests/basic_string_view/range_access/char/1.cc: New file.
5323 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
5324 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
5325 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
5326 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
5327 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
5328 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
5329 * unittests/basic_string_view/requirements/typedefs.cc: New file.
5330 * unittests/basic_string_view/typedefs.cc: New file.
5331 * unittests/basic_string_view/types/1.cc: New file.
5332
8345c4a2
SM
53332018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5334
5335 * common/gdb_string_view.h: Remove libstdc++ implementation
5336 details, adjust to gdb reality.
5337 * common/gdb_string_view.tcc: Likewise.
5338 * cli/cli-script.c (struct string_view): Remove.
5339 (user_args) <m_args>: Change element type to gdb::string_view.
5340 (user_args::insert_args): Adjust.
5341
7adcdf08
SM
53422018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5343
5344 * common/gdb_string_view.h: New file.
5345 * common/gdb_string_view.tcc: New file.
5346
41260ac2
SM
53472018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5348
5349 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
5350 * configure: Re-generate.
5351
0bee6dd4
PA
53522018-04-09 Pedro Alves <palves@redhat.com>
5353
5354 * gdbarch.sh: Include "observable.h" instead of "observer.h".
5355 (set_target_gdbarch): Call
5356 gdb::observers::architecture_changed.notify instead of
5357 observer_notify_architecture_changed.
5358
6f14adc5
SM
53592018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5360
5361 * tracepoint.c (struct current_traceframe_cleanup): Remove.
5362 (do_restore_current_traceframe_cleanup): Remove.
5363 (restore_current_traceframe_cleanup_dtor): Remove.
5364 (make_cleanup_restore_current_traceframe): Remove.
5365 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
5366 New.
5367 * tracepoint.h (struct scoped_restore_current_traceframe): New.
5368 * infrun.c (fetch_inferior_event): Use
5369 scoped_restore_current_traceframe.
5370
b2bdb8cf
SM
53712018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5372
5373 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
5374 Remove.
5375 <n_allocated_type_units>: Remove.
5376 <all_type_units>: Change to std::vector.
5377 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
5378 to std::vector change.
5379 (dwarf2_per_objfile::get_cutu): Likewise.
5380 (dwarf2_per_objfile::get_tu): Likewise.
5381 (create_signatured_type_table_from_index): Likewise.
5382 (create_signatured_type_table_from_debug_names): Likewise.
5383 (dw2_symtab_iter_next): Likewise.
5384 (dw2_print_stats): Likewise.
5385 (dw2_expand_all_symtabs): Likewise.
5386 (dw2_expand_marked_cus): Likewise.
5387 (dw2_debug_names_iterator::next): Likewise.
5388 (dwarf2_initialize_objfile): Likewise.
5389 (add_signatured_type_cu_to_table): Likewise.
5390 (create_all_type_units): Likewise.
5391 (add_type_unit): Likewise.
5392 (struct tu_abbrev_offset): Add constructor.
5393 (build_type_psymtabs_1): Adjust to std::vector change.
5394 (print_tu_stats): Likewise.
5395 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
5396 (write_debug_names): Likewise.
5397
b76e467d
SM
53982018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5399
5400 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
5401 Make an std::vector.
5402 <n_comp_units>: Remove.
5403 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
5404 to std::vector change.
5405 (dwarf2_per_objfile::get_cutu): Likewise.
5406 (dwarf2_per_objfile::get_cu): Likewise.
5407 (create_cus_from_index): Likewise.
5408 (create_addrmap_from_index): Likewise.
5409 (create_addrmap_from_aranges): Likewise.
5410 (dwarf2_read_index): Likewise.
5411 (dw2_find_last_source_symtab): Likewise.
5412 (dw2_map_symtabs_matching_filename): Likewise.
5413 (dw2_symtab_iter_next): Likewise.
5414 (dw2_print_stats): Likewise.
5415 (dw2_expand_all_symtabs): Likewise.
5416 (dw2_expand_symtabs_with_fullname): Likewise.
5417 (dw2_expand_marked_cus): Likewise.
5418 (dw2_map_symbol_filenames): Likewise.
5419 (create_cus_from_debug_names): Likewise.
5420 (dwarf2_read_debug_names): Likewise.
5421 (dw2_debug_names_iterator::next): Likewise.
5422 (dwarf2_initialize_objfile): Likewise.
5423 (set_partial_user): Likewise.
5424 (dwarf2_build_psymtabs_hard): Likewise.
5425 (read_comp_units_from_section): Remove arguments, adjust to
5426 std::vector change.
5427 (create_all_comp_units): Adjust to std::vector and
5428 read_comp_units_from_section changes.
5429 (dwarf2_find_containing_comp_unit): Adjust to std::vector
5430 change.
5431 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
5432 (psyms_seen_size): Likewise.
5433 (write_gdbindex): Likewise.
5434 (write_debug_names): Likewise.
5435
12359b5e
SM
54362018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5437
5438 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
5439 with dwarf2_per_objfile.
5440 (create_cus_from_index): Likewise.
5441 (create_signatured_type_table_from_index): Likewise.
5442 (dwarf2_read_index): Likewise.
5443 (dwarf2_initialize_objfile): Likewise.
5444 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
5445 per_cu rather than get_dwarf2_per_objfile.
5446
ff4c9fec
SM
54472018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5448
5449 * dwarf2read.h (struct signatured_type): Forward declare.
5450 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
5451 New methods.
5452 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
5453 (dw2_get_cutu): ...this.
5454 (dwarf2_per_objfile::get_cu): Rename from...
5455 (dw2_get_cu): ...this.
5456 (dwarf2_per_objfile::get_tu): New.
5457 (create_addrmap_from_index): Adjust.
5458 (create_addrmap_from_aranges): Adjust.
5459 (dw2_find_last_source_symtab): Adjust.
5460 (dw2_map_symtabs_matching_filename): Adjust.
5461 (dw2_symtab_iter_next): Adjust.
5462 (dw2_print_stats): Adjust.
5463 (dw2_expand_all_symtabs): Adjust.
5464 (dw2_expand_symtabs_with_fullname): Adjust.
5465 (dw2_expand_marked_cus): Adjust.
5466 (dw_expand_symtabs_matching_file_matcher): Adjust.
5467 (dw2_map_symbol_filenames): Adjust.
5468 (dw2_debug_names_iterator::next): Adjust.
5469 (dwarf2_initialize_objfile): Adjust.
5470 (set_partial_user): Adjust.
5471 (dwarf2_build_psymtabs_hard): Adjust.
5472
5ca3fcb6
SM
54732018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5474
5475 * dwarf2read.c (create_signatured_type_table_from_debug_names):
5476 Remove unused variables.
5477 (dw2_map_symtabs_matching_filename): Likewise.
5478 (dwarf2_record_block_ranges): Likewise.
5479 (dwarf2_read_addr_index): Likewise.
5480 (follow_die_offset): Likewise.
5481
b2e586e8
SM
54822018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5483
5484 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
5485 to symbol_file_add_main.
5486
7c4e78cf
SM
54872018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5488
5489 PR mi/22299
5490 * mi/mi-console.c (do_fputc_async_safe): New.
5491 (mi_console_file::write_async_safe): New.
5492 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
5493 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
5494 New.
5495 * ui-file.c (ui_file::putstrn): Adjust call to
5496 fputstrn_unfiltered.
5497 * utils.c (printchar): Replace do_fputs and do_fprintf
5498 parameters by do_fputc.
5499 (fputstr_filtered): Adjust call to printchar.
5500 (fputstr_unfiltered): Likewise.
5501 (fputstrn_filtered): Likewise.
5502 (fputstrn_unfiltered): Add do_fputc parameter, pass to
5503 printchar.
5504 * utils.h (do_fputc_ftype): New typedef.
5505 (fputstrn_unfiltered): Add do_fputc parameter.
5506
5dc026d3
SM
55072018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5508
5509 * regformats/i386/i386-avx.dat: Remove.
5510
c912f608
SM
55112018-04-07 Simon Marchi <simon.marchi@ericsson.com>
5512
5513 PR gdb/22979
5514 * amd64-tdep.c (amd64_none_init_abi): New function.
5515 (amd64_x32_none_init_abi): New function.
5516 (_initialize_amd64_tdep): Register handlers for x86-64 and
5517 x64_32 with GDB_OSABI_NONE.
5518 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
5519 GDB_OSABI_NONE osabi.
5520
26540402
SM
55212018-04-07 Simon Marchi <simon.marchi@ericsson.com>
5522
5523 PR gdb/22980
5524 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
5525 GDB_OSABI_NONE.
5526 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
5527 * osabi.c (gdb_osabi_names): Add "unknown" entry.
5528
9018be22
SM
55292018-04-07 Simon Marchi <simon.marchi@ericsson.com>
5530
5531 * common/byte-vector.h (char_vector): New type.
5532 * target.h (target_read_alloc): Return
5533 gdb::optional<byte_vector>.
5534 (target_read_stralloc): Return gdb::optional<char_vector>.
5535 (target_get_osdata): Return gdb::optional<char_vector>.
5536 * target.c (target_read_alloc_1): Templatize. Replacement
5537 manual memory management with vector.
5538 (target_read_alloc): Change return type, adjust.
5539 (target_read_stralloc): Change return type, adjust.
5540 (target_get_osdata): Change return type, adjust.
5541 * auxv.c (struct auxv_info) <length>: Remove.
5542 <data>: Change type to gdb::optional<byte_vector>.
5543 (auxv_inferior_data_cleanup): Free auxv_info with delete.
5544 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
5545 (target_auxv_search): Adjust.
5546 (fprint_target_auxv): Adjust.
5547 * avr-tdep.c (avr_io_reg_read_command): Adjust.
5548 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
5549 (linux_make_corefile_notes): Adjust.
5550 * osdata.c (get_osdata): Adjust.
5551 * remote.c (remote_get_threads_with_qxfer): Adjust.
5552 (remote_memory_map): Adjust.
5553 (remote_traceframe_info): Adjust.
5554 (btrace_read_config): Adjust.
5555 (remote_read_btrace): Adjust.
5556 (remote_pid_to_exec_file): Adjust.
5557 * solib-aix.c (solib_aix_get_library_list): Adjust.
5558 * solib-dsbt.c (decode_loadmap): Don't free buf.
5559 (dsbt_get_initial_loadmaps): Adjust.
5560 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
5561 * solib-target.c (solib_target_current_sos): Adjust.
5562 * tracepoint.c (sdata_make_value): Adjust.
5563 * xml-support.c (xinclude_start_include): Adjust.
5564 (xml_fetch_content_from_file): Adjust.
5565 * xml-support.h (xml_fetch_another): Change return type.
5566 (xml_fetch_content_from_file): Change return type.
5567 * xml-syscall.c (xml_init_syscalls_info): Adjust.
5568 * xml-tdesc.c (file_read_description_xml): Adjust.
5569 (fetch_available_features_from_target): Change return type.
5570 (target_fetch_description_xml): Adjust.
5571 (target_read_description_xml): Adjust.
5572
14c88955
TT
55732018-04-06 Tom Tromey <tom@tromey.com>
5574
5575 * value.c (~value): Update.
5576 (struct value) <contents>: Now unique_xmalloc_ptr.
5577 (value_contents_bits_eq, allocate_value_contents)
5578 (value_contents_raw, value_contents_all_raw)
5579 (value_contents_for_printing, value_contents_for_printing_const)
5580 (set_value_enclosing_type): Update.
5581
0c7e6dd8
TT
55822018-04-06 Tom Tromey <tom@tromey.com>
5583
5584 * value.c (range_s): Remove typedef, VEC.
5585 (struct range): Add operator<.
5586 (range_lessthan): Remove.
5587 (ranges_contain): Change type.
5588 (~value): Update.
5589 (struct value) <unavailable, optimized_out>: Now std::vector.
5590 (value_entirely_available)
5591 (value_entirely_covered_by_range_vector)
5592 (value_entirely_unavailable, value_entirely_optimized_out):
5593 Update.
5594 (insert_into_bit_range_vector): Change argument type.
5595 (find_first_range_overlap): Likewise.
5596 (struct ranges_and_idx, value_contents_bits_eq)
5597 (require_not_optimized_out, require_available): Update.
5598 (ranges_copy_adjusted): Change argument types.
5599 (value_optimized_out, value_copy, value_fetch_lazy): Update.
5600
2c8331b9
TT
56012018-04-06 Tom Tromey <tom@tromey.com>
5602
5603 * value.c (~value): Update.
5604 (struct value) <parent>: Now a value_ref_ptr.
5605 (value_parent, set_value_parent, value_address, value_copy):
5606 Update.
5607
466ce3ae
TT
56082018-04-06 Tom Tromey <tom@tromey.com>
5609
5610 * value.c (struct value): Add constructor, destructor, and member
5611 initializers.
5612 (allocate_value_lazy, value_decref): Update.
5613
062d818d
TT
56142018-04-06 Tom Tromey <tom@tromey.com>
5615
5616 * value.c (struct value) <released, next>: Remove.
5617 (all_values): Now a std::vector.
5618 (allocate_value_lazy): Update.
5619 (value_next): Remove.
5620 (value_mark, value_free_to_mark, release_value)
5621 (value_release_to_mark): Update.
5622
a6535de1
TT
56232018-04-06 Tom Tromey <tom@tromey.com>
5624
5625 * value.h (fetch_subexp_value, value_release_to_mark): Update.
5626 (free_value_chain): Remove.
5627 * value.c (free_value_chain): Remove.
5628 (value_release_to_mark): Return a std::vector.
5629 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
5630 std::vector.
5631 (check_condition): Update.
5632 * eval.c (fetch_subexp_value): Change "val_chain" to a
5633 std::vector.
5634 * breakpoint.c (update_watchpoint): Update.
5635 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
5636
b5621201
TT
56372018-04-06 Tom Tromey <tom@tromey.com>
5638
5639 * value.h (free_all_values): Remove.
5640 * value.c (free_all_values): Remove.
5641
4d0266a0
TT
56422018-04-06 Tom Tromey <tom@tromey.com>
5643
5644 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
5645 (value_history_chain, value_history_count): Remove.
5646 (value_history): New global.
5647 (record_latest_value, access_value_history, show_values)
5648 (preserve_values): Update.
5649
b4d61099
TT
56502018-04-06 Tom Tromey <tom@tromey.com>
5651
5652 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
5653 * varobj.c (varobj_set_display_format, varobj_set_value)
5654 (install_default_visualizer, construct_visualizer)
5655 (install_new_value, ~varobj, varobj_get_value_type)
5656 (my_value_of_variable, varobj_editable_p): Update.
5657 * c-varobj.c (c_describe_child, c_value_of_variable)
5658 (cplus_number_of_children, cplus_describe_child): Update.
5659 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
5660 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
5661 (ada_value_of_variable, ada_value_is_changeable_p): Update.
5662
9b558729
TT
56632018-04-06 Tom Tromey <tom@tromey.com>
5664
5665 * printcmd.c (last_examine_address): Change type to
5666 value_ref_ptr.
5667 (do_examine, x_command): Update.
5668
850645cf
TT
56692018-04-06 Tom Tromey <tom@tromey.com>
5670
5671 * value.c (release_value): Update.
5672 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
5673 (struct bpstats) <val>: Now a value_ref_ptr.
5674 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
5675 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
5676 (~watchpoint, print_it_watchpoint, watch_command_1)
5677 (invalidate_bp_value_on_memory_change): Update.
5678
22bc8444
TT
56792018-04-06 Tom Tromey <tom@tromey.com>
5680
5681 * varobj.c (varobj_clear_saved_item)
5682 (update_dynamic_varobj_children, install_new_value, ~varobj):
5683 Update.
5684 * value.h (value_incref): Move declaration earlier.
5685 (value_decref): Rename from value_free.
5686 (struct value_ref_policy): New.
5687 (value_ref_ptr): New typedef.
5688 (struct value_deleter): Remove.
5689 (gdb_value_up): Remove typedef.
5690 (release_value): Change return type.
5691 (release_value_or_incref): Remove.
5692 * value.c (set_value_parent): Update.
5693 (value_incref): Change return type.
5694 (value_decref): Rename from value_free.
5695 (value_free_to_mark, free_all_values, free_value_chain): Update.
5696 (release_value): Return value_ref_ptr.
5697 (release_value_or_incref): Remove.
5698 (record_latest_value, set_internalvar, clear_internalvar):
5699 Update.
5700 * stack.c (info_frame_command): Don't call value_free.
5701 * python/py-value.c (valpy_dealloc, valpy_new)
5702 (value_to_value_object): Update.
5703 * printcmd.c (do_examine): Update.
5704 * opencl-lang.c (lval_func_free_closure): Update.
5705 * mi/mi-main.c (register_changed_p): Don't call value_free.
5706 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
5707 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
5708 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
5709 value_free.
5710 * guile/scm-value.c (vlscm_free_value_smob)
5711 (vlscm_scm_from_value): Update.
5712 * frame.c (frame_register_unwind, frame_unwind_register_signed)
5713 (frame_unwind_register_unsigned, get_frame_register_bytes)
5714 (put_frame_register_bytes): Don't call value_free.
5715 * findvar.c (address_from_register): Don't call value_free.
5716 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
5717 * dwarf2loc.c (entry_data_value_free_closure)
5718 (value_of_dwarf_reg_entry, free_pieced_value_closure)
5719 (dwarf2_evaluate_loc_desc_full): Update.
5720 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
5721 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
5722 (~watchpoint, watch_command_1)
5723 (invalidate_bp_value_on_memory_change): Update.
5724 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
5725
7f8a5d38
SM
57262018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
5727
5728 PR gdb/23022
5729 * warning.m4: Add -Wno-error=deprecated-register.
5730 * configure: Re-generate.
5731
8a76bd3b
TT
57322018-04-05 Tom Tromey <tom@tromey.com>
5733
5734 * linespec.h: Remove include of "vec.h".
5735
8e8d776e
TT
57362018-04-05 Tom Tromey <tom@tromey.com>
5737
5738 * linespec.c (typep): Remove typedef.
5739 (find_methods, find_superclass_methods): Take a std::vector.
5740 (find_method): Use std::vector.
5741
9b2f8581
TT
57422018-04-05 Tom Tromey <tom@tromey.com>
5743
5744 * utils.c (compare_strings): Remove.
5745 * utils.h (compare_strings): Remove.
5746 * objc-lang.h (find_imps): Update.
5747 * objc-lang.c (find_methods): Take a std::vector.
5748 (uniquify_strings, find_imps): Likewise.
5749 * linespec.c (find_methods): Take a std::vector.
5750 (decode_objc): Use std::vector.
5751 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
5752 a std::vector.
5753 (find_method, find_function_symbols): Use std::vector.
5754
459a2e4c
TT
57552018-04-05 Tom Tromey <tom@tromey.com>
5756
5757 * completer.c (completion_tracker::completion_tracker): Remove
5758 cast.
5759 (completion_tracker::discard_completions): Likewise.
5760 * breakpoint.c (ambiguous_names_p): Remove cast.
5761 * ada-lang.c (_initialize_ada_language): Remove cast.
5762 * utils.h (streq): Update.
5763 (streq_hash): Add new declaration.
5764 * utils.c (streq): Return bool.
5765 (streq_hash): New function.
5766
9be2c17a
TT
57672018-04-05 Tom Tromey <tom@tromey.com>
5768
5769 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
5770 Remove a string copy.
5771
f73c6ece
TT
57722018-04-05 Tom Tromey <tom@tromey.com>
5773
5774 * linespec.c (filter_results): Use std::vector.
5775 (decode_line_2, decode_line_full): Update.
5776
53a0f8a2
TT
57772018-04-05 Tom Tromey <tom@tromey.com>
5778
5779 * linespec.c (canonical_to_fullform): Return std::string.
5780 (filter_results): Update.
5781 (struct decode_line_2_item): Add constructor.
5782 <fullform, displayform>: Now std::string.
5783 (decode_line_2_compare_items): Now a std::sort comparator.
5784 (decode_line_2): Update.
5785
a5b5adf5
TT
57862018-04-05 Tom Tromey <tom@tromey.com>
5787
5788 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
5789 (unexpected_linespec_error): Update.
5790 (linespec_parse_basic, parse_linespec): Update.
5791
6a307fc5
TT
57922018-04-05 Tom Tromey <tom@tromey.com>
5793
5794 * linespec.c (linespec_parse_basic): Reindent.
5795
41c1efc6
TT
57962018-04-05 Tom Tromey <tom@tromey.com>
5797
5798 * minsyms.h (iterate_over_minimal_symbols): Update.
5799 * minsyms.c (iterate_over_minimal_symbols): Take a
5800 gdb::function_view.
5801 * linespec.c (struct collect_minsyms): Remove.
5802 (compare_msyms): Now a std::sort comparator.
5803 (add_minsym): Add parameters.
5804 (search_minsyms_for_name): Update. Use std::vector.
5805
c5edbf3d
TT
58062018-04-03 Tom Tromey <tom@tromey.com>
5807
5808 * mipsread.c (read_alphacoff_dynamic_symtab): Use
5809 gdb::byte_vector.
5810
b39efc48
WP
58112018-04-02 Weimin Pan <weimin.pan@oracle.com>
5812
5813 * MAINTAINERS (Write After Approval): Add Weimin Pan.
5814
121ad66c 58152018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
5816
5817 PR gdb/16959
5818 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
5819 printing static type.
5820
09473be8
TT
58212018-04-01 Tom Tromey <tom@tromey.com>
5822
5823 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
5824 (rs6000_xfer_shared_libraries): Update.
5825
ec1f2d91
SM
58262018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5827
5828 * common/gdb_vecs.h (char_ptr): Remove.
5829 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
5830
d8611974
SM
58312018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5832
5833 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
5834 with std::vector.
5835 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
5836
a18ba4e4
SM
58372018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5838
5839 * tracepoint.h (struct uploaded_tp): Initialize fields.
5840 <actions, step_actions, cmd_strings>: Change type to
5841 std::vector<char *>.
5842 * tracepoint.c (get_uploaded_tp): Allocate with new.
5843 (free_uploaded_tps): Free with delete.
5844 (parse_tracepoint_definition): Adjust to std::vector change.
5845 * breakpoint.c (read_uploaded_action): Likewise.
5846 (create_tracepoint_from_upload): Likewise.
5847 * ctf.c (ctf_write_uploaded_tp): Likewise.
5848 (SET_ARRAY_FIELD): Likewise.
5849 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
5850
a7961323
TT
58512018-03-30 Tom Tromey <tom@tromey.com>
5852
5853 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
5854 std::unique_ptr.
5855 (svr4_keep_data_in_core): Update.
5856 (svr4_read_so_list): Update.
5857
e83e4e24
TT
58582018-03-30 Tom Tromey <tom@tromey.com>
5859
5860 * windows-nat.c (handle_output_debug_string, handle_exception):
5861 Update.
5862 * target.h (target_read_string): Update.
5863 * target.c (target_read_string): Change "string" to
5864 unique_xmalloc_ptr.
5865 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5866 Update.
5867 * solib-frv.c (frv_current_sos): Update.
5868 * solib-dsbt.c (dsbt_current_sos): Update.
5869 * solib-darwin.c (darwin_current_sos): Update.
5870 * linux-thread-db.c (inferior_has_bug): Update.
5871 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
5872 Update. Remove alloca.
5873 * ada-lang.c (ada_main_name): Update.
5874
263db9a1
TT
58752018-03-30 Tom Tromey <tom@tromey.com>
5876
5877 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
5878 (struct dwo_file_deleter): New.
5879 (dwo_file_up): New typedef.
5880 (open_and_init_dwo_file): Use dwo_file_up.
5881 (free_dwo_file_cleanup): Remove.
5882
5dafb3d1
TT
58832018-03-30 Tom Tromey <tom@tromey.com>
5884
5885 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
5886 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
5887
11ed8cad
TT
58882018-03-30 Tom Tromey <tom@tromey.com>
5889
5890 * dwarf2read.c (class free_cached_comp_units): New class.
5891 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
5892 (free_cached_comp_units): Remove function.
5893
9ae79dac
TT
58942018-03-30 Tom Tromey <tom@tromey.com>
5895
5896 * utils.h (make_cleanup_unpush_target): Remove.
5897 * inf-ptrace.c (struct target_unpusher): New.
5898 (target_unpush_up) New typedef.
5899 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
5900 target_unpush_up.
5901 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
5902
5aa89276
TT
59032018-03-27 Tom Tromey <tom@tromey.com>
5904
5905 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
5906
1dbeed45
TT
59072018-03-27 Pedro Alves <palves@redhat.com>
5908 Tom Tromey <tom@tromey.com>
5909
5910 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
5911 destructor. Now a class.
5912 (gdb_readline_wrapper_cleanup): Remove function.
5913 (gdb_readline_wrapper): Remove cleanups.
5914
c819b2c0
TT
59152018-03-27 Tom Tromey <tom@tromey.com>
5916
5917 * typeprint.h (struct type_print_options) <local_typedefs,
5918 global_typedefs>: Remove "struct" keyword.
5919 (class typedef_hash_table): New class.
5920 (recursively_update_typedef_hash, add_template_parameters)
5921 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
5922 (find_typedef_in_hash): Don't declare.
5923 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
5924 (typedef_hash_table::recursively_update): Rename from
5925 recursively_update_typedef_hash. Now a member.
5926 (typedef_hash_table::add_template_parameters): Rename from
5927 add_template_parameters. Now a member.
5928 (typedef_hash_table::typedef_hash_table): Now a constructor;
5929 rename from create_typedef_hash.
5930 (typedef_hash_table::~typedef_hash_table): Now a destructor;
5931 rename from free_typedef_hash.
5932 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
5933 (do_free_global_table): Remove.
5934 (typedef_hash_table::typedef_hash_table): New constructor; renamed
5935 from copy_type_recursive.
5936 (create_global_typedef_table): Remove.
5937 (typedef_hash_table::find_global_typedef): Now a member of
5938 typedef_hash_table.
5939 (typedef_hash_table::find_typedef): Rename from
5940 find_typedef_in_hash; now a member.
5941 (whatis_exp): Update.
5942 * extension.h (struct ext_lang_type_printers): Add constructor and
5943 destructor.
5944 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
5945 declare.
5946 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
5947 Now a constructor; rename from start_ext_lang_type_printers.
5948 (ext_lang_type_printers): Now a destructor; rename from
5949 free_ext_lang_type_printers.
5950 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
5951 Update.
5952 (c_type_print_base_struct_union): Update. Remove cleanups.
5953
608219fb
TT
59542018-03-27 Tom Tromey <tom@tromey.com>
5955
5956 * dwarf-index-write.c: Include <cmath>.
5957
3fcded8f
JB
59582018-03-27 Joel Brobecker <brobecker@adacore.com>
5959
5960 * NEWS: Add entry describing new "set|show varsize-limit" command.
5961 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
5962 command.
5963 * printcmd.c (_initialize_printcmd): Add "set var" alias of
5964 "set variable".
5965
cd4fb1b2
SM
59662018-03-27 Simon Marchi <simon.marchi@ericsson.com>
5967
5968 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
5969 dwarf-index-write.c
5970 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
5971 * dwarf-index-common.c: New file.
5972 * dwarf-index-common.h: New file.
5973 * dwarf-index-write.c: New file.
5974 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
5975 (struct dwarf2_section_info): Move from here.
5976 (dwarf2_section_info_def): Likewise.
5977 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
5978 (offset_type): Likewise.
5979 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
5980 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
5981 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
5982 (byte_swap): Likewise.
5983 (MAYBE_SWAP): Likewise.
5984 (dwarf2_per_cu_ptr): Likewise.
5985 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
5986 (struct tu_stats): Likewise.
5987 (struct dwarf2_per_objfile): Likewise.
5988 (struct dwarf2_per_cu_data): Likewise.
5989 (struct signatured_type): Likewise.
5990 (sig_type_ptr): Likewise.
5991 (DEF_VEC_P (sig_type_ptr)): Likewise.
5992 (INDEX4_SUFFIX): Likewise.
5993 (INDEX5_SUFFIX): Likewise.
5994 (DEBUG_STR_SUFFIX): Likewise.
5995 (dwarf2_read_section): Make non-static.
5996 (mapped_index_string_hash): Move from here.
5997 (dwarf5_djb_hash): Likewise.
5998 (file_write): Likewise.
5999 (class data_buf): Likewise.
6000 (struct symtab_index_entry): Likewise.
6001 (struct mapped_symtab): Likewise.
6002 (find_slot): Likewise.
6003 (hash_expand): Likewise.
6004 (add_index_entry): Likewise.
6005 (uniquify_cu_indices): Likewise.
6006 (class c_str_view): Likewise.
6007 (class c_str_view_hasher): Likewise.
6008 (class vector_hasher): Likewise.
6009 (write_hash_table): Likewise.
6010 (psym_index_map): Likewise.
6011 (struct addrmap_index_data): Likewise.
6012 (add_address_entry): Likewise.
6013 (add_address_entry_worker): Likewise.
6014 (write_address_map): Likewise.
6015 (symbol_kind): Likewise.
6016 (write_psymbols): Likewise.
6017 (struct signatured_type_index_data): Likewise.
6018 (write_one_signatured_type): Likewise.
6019 (recursively_count_psymbols): Likewise.
6020 (recursively_write_psymbols): Likewise.
6021 (class debug_names): Likewise.
6022 (check_dwarf64_offsets): Likewise.
6023 (psyms_seen_size): Likewise.
6024 (write_gdbindex): Likewise.
6025 (write_debug_names): Likewise.
6026 (assert_file_size): Likewise.
6027 (write_psymtabs_to_index): Likewise.
6028 (save_gdb_index_command): Likewise.
6029 (_initialize_dwarf2_read): Don't register the "save gdb-index"
6030 command.
6031 * dwarf2read.h: New file.
6032
59cc4834
JB
60332018-03-27 Joel Brobecker <brobecker@adacore.com>
6034
6035 PR gdb/22670
6036 * dwarf2read.c (dwarf2_physname): Do not return the demangled
6037 symbol name if the CU's language stores symbol names in linkage
6038 format.
6039 * language.h (struct language_defn)
6040 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
6041 all instances of this struct.
6042
67501539
TT
60432018-03-26 Tom Tromey <tom@tromey.com>
6044
6045 * stack.c (backtrace_command_1): Remove verbose code.
6046
76c939ac
TT
60472018-03-26 Tom Tromey <tom@tromey.com>
6048
6049 * python/py-framefilter.c (py_print_type): Don't catch
6050 exceptions. Return void.
6051 (py_print_value): Likewise.
6052 (py_print_single_arg): Likewise.
6053 (enumerate_args): Don't catch exceptions.
6054 (py_print_args): Likewise.
6055 (py_print_frame): Likewise.
6056 (gdbpy_apply_frame_filter): Catch exceptions here.
6057
9507b29c
TT
60582018-03-26 Tom Tromey <tom@tromey.com>
6059
6060 * stack.c (_initialize_stack): Remove trailing newlines from help
6061 text. Add "Usage" line to "backtrace" help.
6062
eb68e487
TT
60632018-03-26 Tom Tromey <tom@tromey.com>
6064
6065 PR python/16486:
6066 * python/py-framefilter.c (py_print_args): Call wrap_hint.
6067
1f111921
TT
60682018-03-26 Tom Tromey <tom@tromey.com>
6069
6070 * python/py-framefilter.c (py_print_single_arg): Return
6071 EXT_LANG_BT_ERROR from catch.
6072
fb7eb8b5
TT
60732018-03-26 Tom Tromey <tom@tromey.com>
6074
6075 PR backtrace/15584:
6076 * stack.c (backtrace_command_1): Move some code into no-filters
6077 "if".
6078
4ca59a9f
TT
60792018-03-26 Tom Tromey <tom@tromey.com>
6080
6081 * python/py-framefilter.c (throw_quit_or_print_exception): New
6082 function.
6083 (gdbpy_apply_frame_filter): Use it.
6084
92256134
TT
60852018-03-26 Tom Tromey <tom@tromey.com>
6086
6087 PR cli/17716:
6088 * python/py-framefilter.c (py_print_type, py_print_value)
6089 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
6090 RETURN_MASK_ERROR.
6091
7a630bc2
TT
60922018-03-26 Tom Tromey <tom@tromey.com>
6093
6094 * python/py-framefilter.c (enumerate_args): Use
6095 gdb::unique_xmalloc_ptr.
6096
63283d4a
TT
60972018-03-26 Tom Tromey <tom@tromey.com>
6098
6099 * python/py-framefilter.c (py_print_frame): Return
6100 EXT_LANG_BT_OK.
6101 (gdbpy_apply_frame_filter): Update comment.
6102 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
6103 Remove.
6104 <EXT_LANG_BT_NO_FILTERS>: Change value.
6105
978d6c75
TT
61062018-03-26 Tom Tromey <tom@tromey.com>
6107
6108 PR backtrace/15582:
6109 * stack.c (backtrace_command): Parse "hide" argument.
6110 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
6111 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
6112 constant.
6113
1cf7e640
TT
61142018-03-26 Tom Tromey <tom@tromey.com>
6115
6116 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
6117 add "flags".
6118 (backtrace_command): Remove "fulltrace", add "flags".
6119
ea3b0687
TT
61202018-03-26 Tom Tromey <tom@tromey.com>
6121
6122 * stack.c (backtrace_command): Rewrite command line parsing.
6123
9f034d75
SM
61242018-03-26 Simon Marchi <simon.marchi@ericsson.com>
6125
6126 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
6127
ce1459e5
SM
61282018-03-26 Simon Marchi <simon.marchi@ericsson.com>
6129
6130 * filename-seen-cache.h: Add include guard.
6131
4f7ae6f5
KS
61322018-03-26 Keith Seitz <keiths@redhat.com>
6133
6134 * symfile.c (place_section): Remove "struct" from section_addr_info
6135 in comment.
6136 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
6137 "struct" keyword from section_addr_info.
6138
5cd3e386
AH
61392018-03-26 Alan Hayward <alan.hayward@arm.com>
6140
6141 * regformats/regdef.h (reg): Add constructors.
6142
3e5ef9a4
PA
61432018-03-25 Pedro Alves <palves@redhat.com>
6144
6145 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
6146 if then/else bodies in var_func_name extraction.
6147
c88d2fcc 61482018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
6149
6150 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
6151 lookup_minimal_symbol() to find symbol entry.
6152 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
6153
b7fee5a3
KS
61542018-03-23 Keith Seitz <keiths@redhat.com>
6155
6156 PR c++/22968
6157 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
6158 nested type definitions for C++, too.
6159
2cc9b304
TT
61602018-03-23 Tom Tromey <tom@tromey.com>
6161
6162 * machoread.c (struct oso_el): Add a constructor. Don't define as
6163 a typedef.
6164 (macho_register_oso): Remove.
6165 (macho_symtab_read): Take a std::vector.
6166 (oso_el_compare_name): Now a std::sort comparator.
6167 (macho_symfile_read_all_oso): Take a std::vector.
6168 (macho_symfile_read): Use std::vector. Remove cleanups.
6169
a2b2bc12
TT
61702018-03-22 Tom Tromey <tom@tromey.com>
6171
6172 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
6173 (record_full_goto_bookmark): Use std::string.
6174
7a8f494c
PFC
61752018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6176
6177 PR tdep/18295
6178 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
6179 a single mask.
6180
dd6d677f
PFC
61812018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6182
6183 * rs6000-tdep.c (store_insn_p): New function.
6184 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
6185 and cr_reg to their unshifted values. Use store_insn_p to
6186 match LR saves using either R1 or fdata->alloca_reg. Use
6187 store_insn_p to match CR saves. Set alloca_reg_offset
6188 when alloca_reg and framep are set. Remove lr_reg shift
6189 when assigning to fdata->lr_register.
6190
26d6cec4
AA
61912018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6192
6193 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
6194 command line args instead of emitting a warning.
6195
5d9310c4
SM
61962018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
6197
6198 * tracepoint.h (struct static_tracepoint_marker): Initialize
6199 fields, define default constructor, move constructor and move
6200 assignment, disable the rest.
6201 <str_id, extra>: Make std::string.
6202 (release_static_tracepoint_marker): Remove.
6203 (free_current_marker): Remove.
6204 * tracepoint.c (free_current_marker): Remove.
6205 (parse_static_tracepoint_marker_definition): Adjust to
6206 std::string, use new hex2str overload.
6207 (release_static_tracepoint_marker): Remove.
6208 (print_one_static_tracepoint_marker): Get marker by reference
6209 and adjust to std::string.
6210 (info_static_tracepoint_markers_command): Adjust to std::vector
6211 changes
6212 * target.h (static_tracepoint_marker_p): Remove typedef.
6213 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
6214 (struct target_ops) <to_static_tracepoint_marker_at>: Return
6215 bool.
6216 <to_static_tracepoint_markers_by_strid>: Return std::vector.
6217 * target-debug.h
6218 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
6219 (target_debug_print_std_vector_static_tracepoint_marker): New.
6220 (target_debug_print_struct_static_tracepoint_marker_p): Rename
6221 to...
6222 (target_debug_print_static_tracepoint_marker_p): ... this.
6223 * target-delegates.c: Re-generate.
6224 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
6225 Make std::string.
6226 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
6227 (decode_static_tracepoint_spec): Adjust to std::vector.
6228 (tracepoint_print_one_detail): Adjust to std::string.
6229 (strace_marker_decode_location): Adjust to std::string.
6230 (update_static_tracepoint): Adjust to std::string, remove call
6231 to release_static_tracepoint_marker.
6232 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6233 Adjust to std::vector.
6234 * remote.c (remote_static_tracepoint_marker_at): Return bool.
6235 (remote_static_tracepoint_markers_by_strid): Adjust to
6236 std::vector.
6237 * common/rsp-low.h (hex2str): New overload with explicit count
6238 of bytes.
6239 * common/rsp-low.c (hex2str): New overload with explicit count
6240 of bytes.
6241 * unittests/rsp-low-selftests.c (test_hex2str): New function.
6242 (_initialize_rsp_low_selftests): Add test_hex2str test.
6243 * unittests/tracepoint-selftests.c
6244 (test_parse_static_tracepoint_marker_definition): Adjust to
6245 std::string.
6246
62c222b6
SM
62472018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
6248
6249 * tracepoint.c (parse_static_tracepoint_marker_definition):
6250 Consider case where the definition is followed by more
6251 definitions.
6252 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6253 tracepoint-selftests.c.
6254 * unittests/tracepoint-selftests.c: New.
6255
7eb2418f
PFC
62562018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6257
6258 * MAINTAINERS (Write After Approval): Add Pedro Franco de
6259 Carvalho.
6260
7cbe16e9
SR
62612018-03-20 Stephen Roberts <stephen.roberts@arm.com>
6262
3d6b3b82 6263 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 6264
4ee89e90
SR
62652018-03-20 Stephen Roberts <stephen.roberts@arm.com>
6266
3d6b3b82 6267 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 6268
92630041
TT
62692018-03-19 Tom Tromey <tom@tromey.com>
6270
6271 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
6272 "IDENT" production.
6273
76727919
TT
62742018-03-19 Pedro Alves <palves@redhat.com>
6275 Tom Tromey <tom@tromey.com>
6276
6277 * unittests/observable-selftests.c: New file.
6278 * common/observable.h: New file.
6279 * observable.h: New file.
6280 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
6281 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
6282 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
6283 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
6284 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
6285 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
6286 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
6287 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
6288 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
6289 python/py-breakpoint.c, python/py-finishbreakpoint.c,
6290 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
6291 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
6292 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
6293 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
6294 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
6295 tui/tui-interp.c, valops.c: Update all users.
6296 * tui/tui-hooks.c (tui_bp_created_observer)
6297 (tui_bp_deleted_observer, tui_bp_modified_observer)
6298 (tui_inferior_exit_observer, tui_before_prompt_observer)
6299 (tui_normal_stop_observer, tui_register_changed_observer):
6300 Remove.
6301 (tui_observers_token): New global.
6302 (attach_or_detach, tui_attach_detach_observers): New functions.
6303 (tui_install_hooks, tui_remove_hooks): Use
6304 tui_attach_detach_observers.
6305 * record-btrace.c (record_btrace_thread_observer): Remove.
6306 (record_btrace_thread_observer_token): New global.
6307 * observer.sh: Remove.
6308 * observer.c: Rename to observable.c.
6309 * observable.c (namespace gdb_observers): Define new objects.
6310 (observer_debug): Move into gdb_observers namespace.
6311 (struct observer, struct observer_list, xalloc_observer_list_node)
6312 (xfree_observer_list_node, generic_observer_attach)
6313 (generic_observer_detach, generic_observer_notify): Remove.
6314 (_initialize_observer): Update.
6315 Don't include observer.inc.
6316 * Makefile.in (generated_files): Remove observer.h, observer.inc.
6317 (clean mostlyclean): Likewise.
6318 (observer.h, observer.inc): Remove targets.
6319 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
6320 (COMMON_SFILES): Use observable.c, not observer.c.
6321 * .gitignore: Remove observer.h.
6322
1cb1f3da
TT
63232018-03-18 Tom Tromey <tom@tromey.com>
6324
6325 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
6326 gdb::def_vector.
6327 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
6328
a06ab151
TT
63292018-03-17 Tom Tromey <tom@tromey.com>
6330
6331 * auto-load.c (auto_load_objfile_script_1): Use std::string.
6332
770623f7
TT
63332018-03-17 Tom Tromey <tom@tromey.com>
6334
6335 * target.c (class scoped_target_fd): New.
6336 (target_fileio_close_cleanup): Remove.
6337 (target_fileio_read_alloc_1): Use scoped_target_fd.
6338
39be3c7e
SM
63392018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6340
6341 * silent-rules.mk: New.
6342 * Makefile.in: Include silent-rules.mk
6343 (srcdir, VPATH, top_srcdir): Move up.
6344 (COMPILE): Add ECHO_CXX.
6345 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
6346 (init.c): Add ECHO_INIT_C.
6347 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6348 (version.c): Add ECHO_GEN.
6349 (printcmd.o): Add ECHO_CXX.
6350 (target-float.o): Add ECHO_CXX.
6351 (ada-exp.o): Add ECHO_CXX.
6352 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
6353 (insight$(EXEEXT)): Add ECHO_CXXLD.
6354 * gnulib/configure.ac: Add AM_SILENT_RULES.
6355 * gnulib/aclocal.m4: Re-generate.
6356 * gnulib/configure: Re-generate.
6357 * gnulib/import/Makefile.in: Re-generate.
6358
37e136b1
TT
63592018-03-16 Tom Tromey <tom@tromey.com>
6360
6361 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
6362 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
6363 * utils.c (do_free_section_addr_info)
6364 (make_cleanup_free_section_addr_info): Remove.
6365 * symfile.h (struct other_sections): Add constructor.
6366 (struct section_addr_info): Remove.
6367 (section_addr_info): New typedef.
6368 (struct sym_fns) <sym_offsets>: Change type of parameter.
6369 (build_section_addr_info_from_objfile)
6370 (relative_addr_info_to_section_offsets, addr_info_make_relative)
6371 (default_symfile_offsets, symbol_file_add)
6372 (symbol_file_add_from_bfd)
6373 (build_section_addr_info_from_section_table): Update.
6374 (alloc_section_addr_info, free_section_addr_info): Don't declare.
6375 * symfile.c (alloc_section_addr_info): Remove.
6376 (build_section_addr_info_from_section_table): Change return type.
6377 Update.
6378 (build_section_addr_info_from_bfd)
6379 (build_section_addr_info_from_objfile): Likewise.
6380 (free_section_addr_info): Remove.
6381 (relative_addr_info_to_section_offsets): Change type of "addrs".
6382 (addrs_section_compar): Now a std::sort comparator.
6383 (addrs_section_sort): Change return type.
6384 (addr_info_make_relative): Change type of "addrs". Update.
6385 (default_symfile_offsets, syms_from_objfile_1)
6386 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
6387 (symbol_file_add_separate): Update.
6388 (symbol_file_add): Change type of "addrs". Update.
6389 (add_symbol_file_command): Update. Remove cleanups.
6390 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
6391 cleanups.
6392 * symfile-debug.c (debug_sym_offsets): Change type of "info".
6393 * solib.c (solib_read_symbols): Update.
6394 * objfiles.c (objfile_relocate): Update. Remove cleanups.
6395 * machoread.c (macho_symfile_offsets): Update.
6396 * jit.c (jit_bfd_try_read_symtab): Update.
6397
03afa6ef
SM
63982018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
6399
6400 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6401 unittests/utils-selftests.c.
6402 * unittests/utils-selftests.c: New file.
6403
3ae9ce5d
TT
64042018-03-14 Tom Tromey <tom@tromey.com>
6405
6406 PR cli/14977:
6407 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
6408 for NULL.
6409
b8c2339b
TT
64102018-03-14 Tom Tromey <tom@tromey.com>
6411
6412 PR cli/19918:
6413 * printcmd.c (printf_pointer): Allow "-" in format.
6414
80ae639d
TT
64152018-03-14 Tom Tromey <tom@tromey.com>
6416
6417 * printcmd.c (_initialize_printcmd): Add usage to printf.
6418
0d671d99
YQ
64192018-03-14 Yao Qi <qiyao@sourceware.org>
6420
6421 * MAINTAINERS: Update my email address.
6422
b577b6af
TT
64232018-03-13 Tom Tromey <tom@tromey.com>
6424
6425 * machoread.c (macho_check_dsym): Change filenamep to a
6426 std::string*.
6427 (macho_symfile_read): Update.
6428 * symfile.c (load_command): Use std::string.
6429
89a3b63e
AB
64302018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
6431
6432 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
6433 to error message string.
6434 (riscv_register_name): Use xsnprintf instead of sprintf.
6435 (riscv_insn::fetch_instruction): Use gdb_assert instead of
6436 internal_error.
6437 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
6438 error.
6439 (riscv_push_dummy_call): Likewise.
6440
984c7238
TT
64412018-03-12 Tom Tromey <tom@tromey.com>
6442
6443 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
6444 Use gdb::byte_vector.
6445 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
6446
933522d1
YQ
64472018-03-12 Yao Qi <yao.qi@linaro.org>
6448
6449 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
6450 parameter type to readable_regcache.
6451 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
6452 the declaration.
6453
be2daae6
TT
64542018-03-11 Tom Tromey <tom@tromey.com>
6455
6456 * dwarf2read.c (struct nextfield): Add initializers.
6457 (struct nextfnfield): Remove.
6458 (struct fnfieldlist): Add initializers. Remove "length" and
6459 "head", use std::vector.
6460 (struct decl_field_list): Remove.
6461 (struct field_info): Add initializers.
6462 <fields, baseclasses>: Now std::vector.
6463 <nbaseclasses, nfnfields, typedef_field_list_count,
6464 nested_types_list_count>: Remove.
6465 (dwarf2_add_field, dwarf2_add_type_defn)
6466 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
6467 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
6468 (process_structure_scope): Update.
6469
484cf504
TT
64702018-03-11 Tom Tromey <tom@tromey.com>
6471
6472 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
6473 for use by std::sort.
6474 (build_type_psymtabs_1): Use std::vector.
6475
9bd8e0b0
EZ
64762018-03-09 Eli Zaretskii <eliz@gnu.org>
6477
6478 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
6479 and LIBMPFR in the printed configuration.
6480
5dc1a704
TT
64812018-03-08 Tom Tromey <tom@tromey.com>
6482
6483 * source.c (get_filename_and_charpos): Use scoped_fd.
6484 * nto-procfs.c (procfs_open_1): Use scoped_fd.
6485 (procfs_pidlist): Likewise.
6486 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
6487 (iterate_over_mappings): Likewise.
6488
fdf07f3a
TT
64892018-03-08 Tom Tromey <tom@tromey.com>
6490
6491 * infcall.c (struct call_return_meta_info)
6492 <stack_temporaries_enabled>: Remove.
6493 (get_call_return_value, call_function_by_hand_dummy): Update.
6494 * thread.c (disable_thread_stack_temporaries): Remove.
6495 (enable_thread_stack_temporaries): Remove.
6496 (thread_stack_temporaries_enabled_p): Return bool.
6497 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
6498 (get_last_thread_stack_temporary): Update.
6499 * eval.c (evaluate_subexp): Update.
6500 * gdbthread.h (class enable_thread_stack_temporaries): Now a
6501 class, not a function.
6502 (value_ptr, value_vec): Remove typedefs.
6503 (class thread_info) <stack_temporaries_enabled>: Now bool.
6504 <stack_temporaries>: Now a std::vector.
6505 (thread_stack_temporaries_enabled_p)
6506 (value_in_thread_stack_temporaries): Return bool.
6507
567a3e54
SM
65082018-03-08 Simon Marchi <simon.marchi@ericsson.com>
6509
6510 * remote.c (putpkt_binary): Fix omitted bytes reporting.
6511 (getpkt_or_notif_sane_1): Likewise.
6512
00b40057
SM
65132018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6514
6515 * build-id.c (build_id_to_debug_bfd): Use std::string.
6516
a8dbfd58
SM
65172018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6518
6519 * build-id.c (find_separate_debug_file_by_buildid): Return
6520 std::string.
6521 * build-id.h (find_separate_debug_file_by_buildid): Return
6522 std::string.
6523 * coffread.c (coff_symfile_read): Adjust to std::string.
6524 * elfread.c (elf_symfile_read): Adjust to std::string.
6525 * symfile.c (separate_debug_file_exists): Change parameter to
6526 std::string.
6527 (find_separate_debug_file): Return std::string.
6528 (find_separate_debug_file_by_debuglink): Return std::string.
6529 * symfile.h (find_separate_debug_file_by_debuglink): Return
6530 std::string.
6531
e6a58aa8
SM
65322018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6533
6534 * common/xml-utils.c (xml_escape_text): Move code to...
6535 (xml_escape_text_append): ... this new function.
6536 * common/xml-utils.h (xml_escape_text_append): New declaration.
6537 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
6538 New function.
6539 (_initialize_xml_utils): register test_xml_escape_text_append as
6540 a selftest.
6541
4ef0bef6
AH
65422018-03-07 Alan Hayward <alan.hayward@arm.com>
6543
6544 * defs.h: Remove MAX_REGISTER_SIZE.
6545 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
6546 asserts.
6547 * python/py-unwind.c (pyuw_sniffer): Likewise.
6548
e0d3522b
TT
65492018-03-07 Tom Tromey <tom@tromey.com>
6550
6551 * linux-tdep.c (linux_info_proc): Update.
6552 * target.h (struct target_ops) <to_fileio_readlink>: Return
6553 optional<string>.
6554 (target_fileio_readlink): Return optional<string>.
6555 * remote.c (remote_hostio_readlink): Return optional<string>.
6556 * inf-child.c (inf_child_fileio_readlink): Return
6557 optional<string>.
6558 * target.c (target_fileio_readlink): Return optional<string>.
6559
ea005f31
AB
65602018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
6561
6562 * regcache.c (cooked_read_test): Add riscv to the list of
6563 architectures that have a save_reggroup.
6564
e95a97d4
AA
65652018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
6566
6567 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
6568 value is not a dynamic class object.
6569
d8344f3d
TT
65702018-03-06 Tom Tromey <tom@tromey.com>
6571
6572 * rust-exp.y: Formatting fixes.
6573
9add17f2
AB
65742018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6575
6576 * riscv-tdep.c (riscv_register_name): Remove target description
6577 support.
6578 (riscv_gdbarch_init): Remove target description check.
6579
c9486dfe
AB
65802018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6581
6582 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
6583 comment.
6584 * riscv-tdep.h: Likewise.
6585
d74aff3d
AB
65862018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6587
6588 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
6589 (riscv_pseudo_register_write): Delete.
6590 (riscv_gdbarch_init): Remove all use of pseudo registers.
6591
7ea78b59
SM
65922018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6593
6594 * record-btrace.c (btrace_print_lines): Replace cleanup
6595 parameter with RAII equivalents.
6596 (btrace_insn_history): Replace cleanup with RAII equivalents.
6597 * ui-out.h (make_cleanup_ui_out_list_begin_end,
6598 make_cleanup_ui_out_tuple_begin_end): Remove.
6599 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
6600 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
6601 make_cleanup_ui_out_list_begin_end): Remove.
6602
53127008
SM
66032018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6604
6605 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
6606 parameter types to std::vector. Use bool.
6607 (record_btrace_wait): Replace VEC(tp_t) with
6608 std::vector<thread_info *>.
6609 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
6610
228f1508
SM
66112018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6612
6613 * record-btrace.c (record_btrace_disable_callback): Remove.
6614 (struct scoped_btrace_disable): New.
6615 (record_btrace_open): Use scoped_btrace_disable.
6616
b2970c23
AB
66172018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6618
6619 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
6620 reading values from registers.
6621
fb294655
AB
66222018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6623
6624 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
6625 where appropriate.
6626
cab5bb9d
AB
66272018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6628
6629 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
6630 change parameter type. Use GDB's print functions, and use
6631 core_addr_to_string where appropriate.
6632 (riscv_push_dummy_call): Use core_addr_to_string where
6633 appropriate, update call to riscv_print_arg_location, and reindent
6634 a few lines.
6635 (riscv_return_value): Update call to riscv_print_arg_location.
6636
dbbb1059
AB
66372018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6638 Tim Newsome <tim@sifive.com>
6639 Albert Ou <a0u@eecs.berkeley.edu>
6640 Darius Rad <darius@bluespec.com>
6641
6642 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
6643 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
6644 (ALLDEPFILES): Add riscv-tdep.c
6645 * configure.tgt: Add riscv support.
6646 * riscv-tdep.c: New file.
6647 * riscv-tdep.h: New file.
6648 * NEWS: Mention new target.
6649 * MAINTAINERS: Add entry for riscv.
6650
5dc43913
AB
66512018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6652
6653 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
6654 fields within aggregates.
6655
3dea1ef7
SM
66562018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
6657
6658 * record-btrace.c (btrace_print_lines): Change type of flags to
6659 gdb_disassembly_flags.
6660
7efba073
JB
66612018-03-04 John Baldwin <jhb@FreeBSD.org>
6662
6663 * fbsd-nat.c: Include "inf-ptrace.h".
6664 (USE_SIGTRAP_SIGINFO): Conditionally define.
6665 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
6666 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
6667 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
6668 function.
6669 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
6670 Likewise.
6671 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
6672 Likewise.
6673 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
6674 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
6675 "supports_stopped_by_hw_breakpoint" target methods.
6676
386a8676
JB
66772018-03-04 John Baldwin <jhb@FreeBSD.org>
6678
6679 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
6680 * fbsd-nat.c (debug_fbsd_nat): New variable.
6681 (show_fbsd_nat_debug): New function.
6682 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
6683 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
6684
12279366
JB
66852018-03-04 John Baldwin <jhb@FreeBSD.org>
6686
6687 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
6688 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
6689 prototype.
6690 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
6691 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
6692 method.
6693
54693cf5
SM
66942018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6695
6696 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
6697 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
6698
ccb2231c
SM
66992018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6700
6701 * charset.c (struct charset_vector): New.
6702 (charsets): Change type to charset_vector.
6703 (find_charset_names): Adjust.
6704 (add_one): Adjust.
6705 (_initialize_charset): Adjust.
6706
6fb16ce6
SM
67072018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6708
6709 * progspace.h (struct program_space) <deleted_solibs>: Change
6710 type to std::vector<std::string>.
6711 * progspace.c (clear_program_space_solib_cache): Adjust.
6712 * breakpoint.c (print_solib_event): Adjust.
6713 (check_status_catch_solib): Adjust.
6714 * solib.c (update_solib_list): Adjust.
6715 * ui-out.h (class ui_out) <field_string>: New overload.
6716 * ui-out.c (ui_out::field_string): New overload.
6717
564b1e3f
SM
67182018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6719
6720 * progspace.h (struct program_space): Add constructor and
6721 destructor, initialize fields.
6722 (add_program_space): Remove.
6723 * progspace.c (add_program_space): Rename to...
6724 (program_space::program_space): ... this.
6725 (release_program_space): Rename to...
6726 (program_space::~program_space): ... this.
6727 (delete_program_space): Use delete to delete program_space.
6728 (initialize_progspace): Use new to allocate program_space.
6729 * inferior.c (add_inferior_with_spaces): Likewise.
6730 (clone_inferior_command): Likewise.
6731 * infrun.c (follow_fork_inferior): Likewise.
6732 (handle_vfork_child_exec_or_exit): Likewise.
6733
e80aaf61
SM
67342018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6735
6736 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
6737 (delim_string_to_char_ptr_vec): Return std::vector of
6738 gdb::unique_xmalloc_ptr.
6739 (dirnames_to_char_ptr_vec_append): Take std::vector of
6740 gdb::unique_xmalloc_ptr.
6741 (dirnames_to_char_ptr_vec): Return std::vector of
6742 gdb::unique_xmalloc_ptr.
6743 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
6744 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
6745 (delim_string_to_char_ptr_vec): Return an std::vector of
6746 gdb::unique_xmalloc_ptr, adjust the code.
6747 (dirnames_to_char_ptr_vec_append): Take an std::vector of
6748 gdb::unique_xmalloc_ptr, adjust the code.
6749 (dirnames_to_char_ptr_vec): Return an std::vector of
6750 gdb::unique_xmalloc_ptr, adjust the code.
6751 * auto-load.c (auto_load_safe_path_vec): Change type to
6752 std::vector of gdb::unique_xmalloc_ptr.
6753 (auto_load_expand_dir_vars): Return an std::vector of
6754 gdb::unique_xmalloc_ptr, adjust the code.
6755 (auto_load_safe_path_vec_update): Adjust.
6756 (filename_is_in_auto_load_safe_path_vec): Adjust.
6757 (auto_load_objfile_script_1): Adjust.
6758 * build-id.c (build_id_to_debug_bfd): Adjust.
6759 * linux-thread-db.c (thread_db_load_search): Adjust.
6760 * source.c (add_path): Adjust.
6761 (openp): Adjust.
6762 * symfile.c (find_separate_debug_file): Adjust.
6763 * utils.c (do_free_char_ptr_vec): Remove.
6764 (make_cleanup_free_char_ptr_vec): Remove.
6765
ab818ade
SDJ
67662018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
6767
6768 PR gdb/22907
6769 * common/pathstuff.c: Conditionally include "<windows.h>".
6770
e1e6f073
GS
67712018-03-01 Georg Sauthoff <mail@georg.so>
6772
6773 PR gdb/22888
6774 * gcore.in: Quote variables and switch interpreter to bash.
6775
c7b15a66
TT
67762018-03-01 Tom Tromey <tom@tromey.com>
6777
6778 * dwarf2read.c (alloc_discriminant_info): Fix default_index
6779 assertion. Add assertion for discriminant_index.
6780 (quirk_rust_enum): Use correct base type name in univariant case.
6781
0cb7c7b0
SM
67822018-03-01 Simon Marchi <simon.marchi@ericsson.com>
6783
6784 * record.c (get_call_history_modifiers): Return a
6785 record_print_flags.
6786 (cmd_record_call_history): Adjust.
6787 * record-btrace.c (record_btrace_call_history): Adjust.
6788 (record_btrace_call_history_range): Adjust.
6789 (record_btrace_call_history_from): Adjust.
6790 * target-debug.h (target_debug_print_record_print_flags): New.
6791 * target-delegates.c: Re-generate.
6792 * target.c (target_call_history): Change flags type.
6793 (target_call_history_from): Likewise.
6794 (target_call_history_range): Likewise.
6795 * target.h (struct target_ops) <target_call_history>: Likewise.
6796 (target_call_history_from): Likewise.
6797 (target_call_history_range): Likewise.
6798
25e3c82c
SDJ
67992018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6800 Simon Marchi <simon.marchi@polymtl.ca>
6801
6802 * common/common-utils.c: Include "sys/stat.h".
6803 (is_regular_file): Move here from "source.c"; change return
6804 type to "bool".
6805 * common/common-utils.h (is_regular_file): New prototype.
6806 * common/pathstuff.c (contains_dir_separator): New function.
6807 * common/pathstuff.h (contains_dir_separator): New prototype.
6808 * source.c: Don't include "sys/stat.h".
6809 (is_regular_file): Move to "common/common-utils.c".
6810
b4987c95
SDJ
68112018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6812
6813 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
6814 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
6815 * auto-load.c: Include "common/pathstuff.h".
6816 * common/common-def.h (current_directory): Move here.
6817 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
6818 function.
6819 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
6820 prototype.
6821 * common/pathstuff.c: New file.
6822 * common/pathstuff.h: New file.
6823 * compile/compile.c: Include "common/pathstuff.h".
6824 * defs.h (current_directory): Move to "common/common-defs.h".
6825 * dwarf2read.c: Include "common/pathstuff.h".
6826 * exec.c: Likewise.
6827 * guile/scm-safe-call.c: Likewise.
6828 * linux-thread-db.c: Likewise.
6829 * main.c: Likewise.
6830 * nto-tdep.c: Likewise.
6831 * objfiles.c: Likewise.
6832 * source.c: Likewise.
6833 * symtab.c: Likewise.
6834 * utils.c: Include "common/pathstuff.h".
6835 (gdb_realpath): Move to "common/pathstuff.c".
6836 (gdb_realpath_keepfile): Likewise.
6837 (gdb_abspath): Likewise.
6838 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
6839 (gdb_realpath_keepfile): Likewise.
6840 (gdb_abspath): Likewise.
6841
f169cfdc
JB
68422018-02-28 John Baldwin <jhb@FreeBSD.org>
6843
6844 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
6845 wildcard process pid for super_resume for kernels with a
6846 specific bug.
6847
e05cac70
PM
68482018-02-27 Phil Muldoon <pmuldoon@redhat.com>
6849
6850 * compile/compile.c (get_args): Add additional comments
6851 explaining function.
6852
55089490
TT
68532018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
6854 Tom Tromey <tom@tromey.com>
6855
6856 * target.h (memory_write_request_s): Remove typedef. Don't define
6857 VEC.
6858 (target_write_memory_blocks): Change argument to std::vector.
6859 (struct memory_write_request): Add constructor.
6860 * target-memory.c (compare_block_starting_address): Return bool.
6861 Change argument types.
6862 (claim_memory): Change arguments to use std::vector.
6863 (split_regular_and_flash_blocks, blocks_to_erase)
6864 (compute_garbled_blocks): Likewise.
6865 (cleanup_request_data, cleanup_write_requests_vector): Remove.
6866 (target_write_memory_blocks): Change argument to std::vector.
6867 * symfile.c (struct load_section_data): Add constructor and
6868 destructor. Use std::vector for "requests".
6869 (struct load_progress_data): Add initializers.
6870 (load_section_callback): Update. Use "new".
6871 (clear_memory_write_data): Remove.
6872 (generic_load): Update.
6873
0c305b61
AH
68742018-02-27 Alan Hayward <alan.hayward@arm.com>
6875
6876 * arch/aarch64.h: Use common/tdesc.h.
6877
c5196c92
MR
68782018-02-26 Maciej W. Rozycki <macro@mips.com>
6879
6880 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
6881 architecture with a 64-bit ABI.
6882
37c33887
MR
68832018-02-26 Maciej W. Rozycki <macro@mips.com>
6884
6885 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
6886 ahead of target description loading.
6887
d4dd3282
TT
68882018-02-26 Tom Tromey <tom@tromey.com>
6889
6890 * stack.c (backtrace_command_1): Update.
6891 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
6892 of "flags".
6893 * python/py-framefilter.c (py_print_frame)
6894 (gdbpy_apply_frame_filter): Change type of "flags".
6895 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
6896 of "flags".
6897 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
6898 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
6899 * extension.h (enum frame_filter_flag): Rename from
6900 frame_filter_flags.
6901 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
6902 (apply_ext_lang_frame_filter): Change type of "flags".
6903 * extension.c (apply_ext_lang_frame_filter): Change type of
6904 "flags".
6905 * extension-priv.h (struct extension_language_ops)
6906 <apply_frame_filter>: Change type of "flags".
6907
6893c19a
TT
69082018-02-26 Tom Tromey <tom@tromey.com>
6909
6910 PR python/16497:
6911 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
6912 off-by-one in py_end computation.
6913 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
6914 PRINT_MORE_FRAMES.
6915 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
6916 constant.
6917
2ddeaf8a
TT
69182018-02-26 Tom Tromey <tom@tromey.com>
6919
6920 * dwarf2read.c (struct variant_field): New.
6921 (struct nextfield) <variant>: New field.
6922 (dwarf2_add_field): Handle DW_TAG_variant_part.
6923 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
6924 discriminated union.
6925 (read_structure_type): Handle DW_TAG_variant_part.
6926 (handle_struct_member_die): New function, extracted from
6927 process_structure_scope. Handle DW_TAG_variant.
6928 (process_structure_scope): Handle discriminated unions. Call
6929 handle_struct_member_die.
6930
c9317f21
TT
69312018-02-26 Tom Tromey <tom@tromey.com>
6932
6933 * rust-lang.h (rust_last_path_segment): Declare.
6934 * rust-lang.c (rust_last_path_segment): Now public. Change
6935 contract.
6936 (struct disr_info): Remove.
6937 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
6938 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
6939 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
6940 (rust_enum_p, rust_enum_variant): New function.
6941 (rust_underscore_fields): Remove "offset" parameter.
6942 (rust_print_enum): New function.
6943 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
6944 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
6945 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
6946 enums.
6947 (rust_internal_print_type): New function, from rust_print_type.
6948 Remove enum code.
6949 (rust_print_type): Call rust_internal_print_type.
6950 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
6951 Update enum handling.
6952 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
6953 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
6954 (rust_union_quirks): New functions.
6955 (process_full_comp_unit, process_full_type_unit): Call
6956 rust_union_quirks.
6957 (process_structure_scope): Update rust_unions if necessary.
6958
7c22600a
TT
69592018-02-26 Tom Tromey <tom@tromey.com>
6960
6961 * value.h (value_union_variant): Declare.
6962 * valops.c (value_union_variant): New function.
6963 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
6964 (struct discriminant_info): New.
6965 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
6966 enumerator.
6967 (struct main_type) <flag_discriminated_union>: New field.
6968
15ce8941
TT
69692018-02-26 Tom Tromey <tom@tromey.com>
6970
6971 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6972 unittests/unpack-selftests.c.
6973 * unittests/unpack-selftests.c: New file.
6974 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
6975
48fbe735
YQ
69762018-02-26 Yao Qi <yao.qi@linaro.org>
6977
6978 * dwarf2read.c (struct partial_die_info) <read>: New method.
6979 (read_partial_die): Remove the declaration.
6980 (load_partial_dies): Update.
6981 (partial_die_info::partial_die_info):
6982 (read_partial_die): Change it to partial_die_info::read.
6983
52356b79
YQ
69842018-02-26 Yao Qi <yao.qi@linaro.org>
6985
6986 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
6987 (fixup_partial_die): Remove declaration.
6988 (scan_partial_symbols): Update.
6989 (partial_die_parent_scope): Likewise.
6990 (partial_die_full_name): Likewise.
6991 (fixup_partial_die): Change it to partial_die_info::fixup.
6992
35cc7ed7
YQ
69932018-02-26 Yao Qi <yao.qi@linaro.org>
6994
6995 * dwarf2read.c (read_partial_die): Update the declaration.
6996 (load_partial_dies): Caller update.
6997 (read_partial_die): Remove one argument abbrev_len.
6998
6f06d47b
YQ
69992018-02-26 Yao Qi <yao.qi@linaro.org>
7000
7001 * dwarf2read.c (struct partial_die_info): Add ctor, delete
7002 assignment operator.
7003 (load_partial_dies): Use ctor and copy ctor.
7004 (read_partial_die): Update.
7005 (dwarf2_cu::find_partial_die): Use ctor.
7006
d590ff25
YQ
70072018-02-26 Yao Qi <yao.qi@linaro.org>
7008
7009 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
7010 (find_partial_die_in_comp_unit): Change it to
7011 dwarf2_cu::find_partial_die.
7012 (find_partial_die): Update.
7013
fd0a254f
YQ
70142018-02-26 Yao Qi <yao.qi@linaro.org>
7015
7016 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
7017 is NULL.
7018
cd9983dd
YQ
70192018-02-26 Yao Qi <yao.qi@linaro.org>
7020
7021 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
7022
f46cd62a
AH
70232018-02-26 Alan Hayward <alan.hayward@arm.com>
7024
7025 * arch/amd64.h: Use common/tdesc.h.
7026 * arch/i386.c: Likewise.
7027 * arch/i386.h: Likewise.
7028 * arch/tic6x.c: Likewise.
7029 * arch/tdesc.h: Move file from here...
7030 * common/tdesc.h: ...to here.
7031 * features/aarch64-core.c: Regenerate.
7032 * features/aarch64-fpu.c: Regenerate.
7033 * features/i386/32bit-avx.c: Regenerate.
7034 * features/i386/32bit-avx512.c: Regenerate.
7035 * features/i386/32bit-core.c: Regenerate.
7036 * features/i386/32bit-linux.c: Regenerate.
7037 * features/i386/32bit-mpx.c: Regenerate.
7038 * features/i386/32bit-pkeys.c: Regenerate.
7039 * features/i386/32bit-sse.c: Regenerate.
7040 * features/i386/64bit-avx.c: Regenerate.
7041 * features/i386/64bit-avx512.c: Regenerate.
7042 * features/i386/64bit-core.c: Regenerate.
7043 * features/i386/64bit-linux.c: Regenerate.
7044 * features/i386/64bit-mpx.c: Regenerate.
7045 * features/i386/64bit-pkeys.c: Regenerate.
7046 * features/i386/64bit-segments.c: Regenerate.
7047 * features/i386/64bit-sse.c: Regenerate.
7048 * features/i386/x32-core.c: Regenerate.
7049 * features/tic6x-c6xp.c: Regenerate.
7050 * features/tic6x-core.c: Regenerate.
7051 * features/tic6x-gp.c: Regenerate.
7052 * target-descriptions.c: Use common/tdesc.h.
7053 * target-descriptions.h: Likewise.
7054
9b292f68
TT
70552018-02-24 Tom Tromey <tom@tromey.com>
7056
7057 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7058 (try_thread_db_load_from_dir, thread_db_load_search): Use
7059 std::string.
7060 (info_auto_load_libthread_db_compare): Return bool. Change
7061 argument types.
7062 (info_auto_load_libthread_db): Use std::vector, std::string.
7063 Remove cleanups.
7064
281d762b
TT
70652018-02-24 Tom Tromey <tom@tromey.com>
7066
7067 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
7068 std::string.
7069 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
7070 std::string*.
7071 * gdbarch.c: Rebuild.
7072 * gdbarch.h: Rebuild.
7073 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
7074 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
7075 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
7076 std::string*.
7077
9d8780f0
SM
70782018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
7079
7080 * gdbtypes.h (sect_offset): Change type to uint64_t.
7081 (sect_offset_str): New function.
7082 * dwarf2read.c (create_addrmap_from_aranges): Use
7083 sect_offset_str.
7084 (error_check_comp_unit_head): Likewise.
7085 (create_debug_type_hash_table): Likewise.
7086 (read_cutu_die_from_dwo): Likewise.
7087 (init_cutu_and_read_dies): Likewise.
7088 (init_cutu_and_read_dies_no_follow): Likewise.
7089 (process_psymtab_comp_unit_reader): Likewise.
7090 (partial_die_parent_scope): Likewise.
7091 (peek_die_abbrev): Likewise.
7092 (process_queue): Likewise.
7093 (dwarf2_physname): Likewise.
7094 (read_namespace_alias): Likewise.
7095 (read_import_statement): Likewise.
7096 (create_dwo_cu_reader): Likewise.
7097 (create_cus_hash_table): Likewise.
7098 (lookup_dwo_cutu): Likewise.
7099 (inherit_abstract_dies): Likewise.
7100 (read_func_scope): Likewise.
7101 (read_call_site_scope): Likewise.
7102 (dwarf2_add_member_fn): Likewise.
7103 (read_common_block): Likewise.
7104 (read_module_type): Likewise.
7105 (read_typedef): Likewise.
7106 (read_subrange_type): Likewise.
7107 (load_partial_dies): Likewise.
7108 (read_partial_die): Likewise.
7109 (find_partial_die): Likewise.
7110 (read_str_index): Likewise.
7111 (dwarf2_string_attr): Likewise.
7112 (build_error_marker_type): Likewise.
7113 (lookup_die_type): Likewise.
7114 (dump_die_shallow): Likewise.
7115 (follow_die_ref): Likewise.
7116 (dwarf2_fetch_die_loc_sect_off): Likewise.
7117 (dwarf2_fetch_constant_bytes): Likewise.
7118 (follow_die_sig): Likewise.
7119 (get_signatured_type): Likewise.
7120 (get_DW_AT_signature_type): Likewise.
7121 (dwarf2_find_containing_comp_unit): Likewise.
7122 (set_die_type): Likewise.
7123
8ec57239
JB
71242018-02-21 John Baldwin <jhb@FreeBSD.org>
7125
7126 * arch/aarch64.c: Include "common-defs.h".
7127 * arch/amd64.c: Likewise.
7128 * arch/i386.c: Likewise.
7129
3eac2b65
TT
71302018-02-21 Tom Tromey <tom@tromey.com>
7131
7132 * value.h: (extract_field_op): Update.
7133 * eval.c (extract_field_op): Return a const char *.
7134 * expression.h (parse_expression_for_completion): Update.
7135 * completer.c (complete_expression): Update.
7136 (add_struct_fields): Make fieldname const.
7137 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
7138 (mark_completion_tag, parse_exp_in_context_1): Update.
7139 (parse_expression_for_completion): Change "name" to
7140 unique_xmalloc_ptr*.
7141
6ccb583f
TT
71422018-02-21 Tom Tromey <tom@tromey.com>
7143
7144 * infcall.c (call_function_by_hand_dummy): Use std::vector.
7145
c113ed0c
YQ
71462018-02-21 Yao Qi <yao.qi@linaro.org>
7147
7148 * avr-tdep.c (avr_read_pc): Change parameter type to
7149 readable_regcache.
7150 * gdbarch.sh (read_pc): Likewise.
7151 * gdbarch.c: Re-generated.
7152 * gdbarch.h: Re-generated.
7153 * hppa-tdep.c (hppa_read_pc): Change parameter type to
7154 readable_regcache.
7155 * ia64-tdep.c (ia64_read_pc): Likewise.
7156 * mips-tdep.c (mips_read_pc): Likewise.
7157 * spu-tdep.c (spu_read_pc): Likewise.
7158
4c74fe6b
YQ
71592018-02-21 Yao Qi <yao.qi@linaro.org>
7160
7161 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
7162 * regcache-dump.c: New file.
7163 * regcache.c: Move register_dump to regcache-dump.c.
7164 (maintenance_print_registers): Likewise.
7165 (maintenance_print_raw_registers): Likewise.
7166 (maintenance_print_cooked_registers): Likewise.
7167 (maintenance_print_register_groups): Likewise.
7168 (maintenance_print_remote_registers): Likewise.
7169 (_initialize_regcache): Likewise.
7170 * regcache.h (register_dump): Moved from regcache.c.
7171
796bb026
YQ
71722018-02-21 Yao Qi <yao.qi@linaro.org>
7173
7174 * regcache.c (regcache::regcache): Update.
7175 (regcache::invalidate): Move it to detached_regcache::invalidate.
7176 (get_thread_arch_aspace_regcache): Update.
7177 (regcache::raw_update): Update.
7178 (regcache::cooked_read): Remove some code.
7179 (regcache::cooked_read_value): Likewise.
7180 (regcache::raw_write): Remove assert on m_readonly_p.
7181 (regcache::raw_supply_integer): Move it to
7182 detached_regcache::raw_supply_integer.
7183 (regcache::raw_supply_zeroed): Likewise.
7184 * regcache.h (detached_regcache) <raw_supply_integer>: New
7185 declaration.
7186 <raw_supply_zeroed, invalidate>: Likewise.
7187 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
7188 <invalidate>: Likewise.
7189 <m_readonly_p>: Removed.
7190
215c69dc
YQ
71912018-02-21 Yao Qi <yao.qi@linaro.org>
7192
7193 * infcmd.c (get_return_value): Let stop_regs point to
7194 get_current_regcache.
7195 * regcache.c (regcache::regcache): Remove.
7196 (register_dump_reg_buffer): New class.
7197 (regcache_print): Adjust.
7198 * regcache.h (regcache): Remove constructors.
7199
f3384e66
YQ
72002018-02-21 Yao Qi <yao.qi@linaro.org>
7201
7202 * regcache.c (class register_dump): New class.
7203 (register_dump_regcache, register_dump_none): New class.
7204 (register_dump_remote, register_dump_groups): New class.
7205 (regcache_print): Update.
7206 * regcache.h (regcache_dump_what): Move it to regcache.c.
7207 (regcache) <dump>: Remove.
7208
c8ec2f33
YQ
72092018-02-21 Yao Qi <yao.qi@linaro.org>
7210
7211 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
7212 reg_buffer_rw *.
7213 (jit_unwind_reg_set_impl): Call raw_supply.
7214 (jit_frame_sniffer): Use reg_buffer_rw.
7215 * record-full.c (record_full_core_regbuf): Change its type.
7216 (record_full_core_open_1): Use reg_buffer_rw.
7217 (record_full_close): Likewise.
7218 (record_full_core_fetch_registers): Use regcache->raw_supply.
7219 (record_full_core_store_registers): Likewise.
7220 * regcache.c (regcache::get_register_status): Move it to
7221 reg_buffer.
7222 (regcache_raw_set_cached_value): Remove.
7223 (regcache::raw_set_cached_value): Remove.
7224 (regcache::raw_write): Call raw_supply.
7225 (regcache::raw_supply): Move it to reg_buffer_rw.
7226 * regcache.h (regcache_raw_set_cached_value): Remove.
7227 (reg_buffer_rw): New class.
7228
daf6667d
YQ
72292018-02-21 Yao Qi <yao.qi@linaro.org>
7230
7231 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
7232 readonly_detached_regcache.
7233 (dummy_frame_prev_register): Use regcache->cooked_read.
7234 * frame.c (frame_save_as_regcache): Change return type.
7235 (frame_pop): Update.
7236 * frame.h (frame_save_as_regcache): Update declaration.
7237 * inferior.h (get_infcall_suspend_state_regcache): Update
7238 declaration.
7239 * infrun.c (infcall_suspend_state) <registers>: use
7240 readonly_detached_regcache.
7241 (save_infcall_suspend_state): Don't use regcache_dup.
7242 (get_infcall_suspend_state_regcache): Change return type.
7243 * linux-fork.c (struct fork_info) <savedregs>: Change to
7244 readonly_detached_regcache.
7245 <pc>: New field.
7246 (fork_save_infrun_state): Don't use regcache_dup.
7247 (info_checkpoints_command): Adjust.
7248 * mi/mi-main.c (register_changed_p): Update declaration.
7249 (mi_cmd_data_list_changed_registers): Use
7250 readonly_detached_regcache.
7251 (register_changed_p): Change parameter type to
7252 readonly_detached_regcache.
7253 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
7254 readonly_detached_regcache.
7255 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
7256 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
7257 New.
7258 (regcache::save): Move it to reg_buffer.
7259 (regcache::restore): Change parameter type.
7260 (regcache_dup): Remove.
7261 * regcache.h (reg_buffer) <save>: New method.
7262 (readonly_detached_regcache): New class.
7263 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
7264 readonly_detached_regcache.
7265 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
7266
fc5b8736
YQ
72672018-02-21 Yao Qi <yao.qi@linaro.org>
7268
7269 * frame.c (frame_save_as_regcache): Use regcache method save.
7270 (frame_pop): Use regcache method restore.
7271 * infrun.c (restore_infcall_suspend_state): Likewise.
7272 * linux-fork.c (fork_load_infrun_state): Likewise.
7273 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
7274 save.
7275 * regcache.c (regcache_save): Remove.
7276 (regcache::restore): More asserts.
7277 (regcache_cpy): Remove.
7278 * regcache.h (regcache_save): Remove the declaration.
7279 (regcache::restore): Move from private to public.
7280 Remove the friend declaration of regcache_cpy.
7281 (regcache_cpy): Remove declaration.
7282
849d0ba8
YQ
72832018-02-21 Yao Qi <yao.qi@linaro.org>
7284
7285 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
7286 parameter type to 'readable_regcache *'.
7287 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
7288 * arm-tdep.c (arm_neon_quad_read): Likewise.
7289 (arm_pseudo_read): Likewise.
7290 * avr-tdep.c (avr_pseudo_register_read): Likewise.
7291 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
7292 * frv-tdep.c (frv_pseudo_register_read): Likewise.
7293 * gdbarch.c: Re-generated.
7294 * gdbarch.h: Re-generated.
7295 * gdbarch.sh (pseudo_register_read): Change parameter type to
7296 'readable_regcache *'.
7297 (pseudo_register_read_value): Likewise.
7298 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
7299 (h8300_pseudo_register_read): Likewise.
7300 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
7301 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
7302 (i386_pseudo_register_read_into_value): Likewise.
7303 (i386_pseudo_register_read_value): Likewise.
7304 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
7305 declaration.
7306 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
7307 * m32c-tdep.c (m32c_raw_read): Likewise.
7308 (m32c_read_flg): Likewise.
7309 (m32c_banked_register): Likewise.
7310 (m32c_banked_read): Likewise.
7311 (m32c_sb_read): Likewise.
7312 (m32c_part_read): Likewise.
7313 (m32c_cat_read): Likewise.
7314 (m32c_r3r2r1r0_read): Likewise.
7315 (m32c_pseudo_register_read): Likewise.
7316 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
7317 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
7318 (mep_pseudo_cr64_read): Likewise.
7319 (mep_pseudo_register_read): Likewise.
7320 * mips-tdep.c (mips_pseudo_register_read): Likewise.
7321 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
7322 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
7323 * regcache.c (regcache::raw_read): Move it to readable_regcache.
7324 (regcache::cooked_read): Likewise.
7325 (regcache::cooked_read_value): Likewise.
7326 (regcache_cooked_read_signed):
7327 (regcache::cooked_read): Likewise.
7328 * regcache.h (readable_regcache): New class.
7329 (regcache): Inherit readable_regcache. Move some methods to
7330 readable_regcache.
7331 * rl78-tdep.c (rl78_pseudo_register_read): Change
7332 parameter type to 'readable_regcache *'.
7333 * rs6000-tdep.c (do_regcache_raw_read): Remove.
7334 (e500_pseudo_register_read): Change parameter type to
7335 'readable_regcache *'.
7336 (dfp_pseudo_register_read): Likewise.
7337 (vsx_pseudo_register_read): Likewise.
7338 (efpr_pseudo_register_read): Likewise.
7339 * s390-tdep.c (s390_pseudo_register_read): Likewise.
7340 * sh-tdep.c (sh_pseudo_register_read): Likewise.
7341 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
7342 (sh64_pseudo_register_read): Likewise.
7343 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
7344 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
7345 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
7346 (spu_pseudo_register_read): Likewise.
7347 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
7348 (xtensa_pseudo_register_read): Likewise.
7349
31716595
YQ
73502018-02-21 Yao Qi <yao.qi@linaro.org>
7351
7352 * regcache.c (regcache::regcache): Call reg_buffer ctor.
7353 (regcache::arch): Move it to reg_buffer::arch.
7354 (regcache::register_buffer): Likewise.
7355 (regcache::assert_regnum): Likewise.
7356 (regcache::num_raw_registers): Likewise.
7357 * regcache.h (reg_buffer): New class.
7358 (regcache): Inherit reg_buffer.
7359
7104e59b
SM
73602018-02-20 Simon Marchi <simon.marchi@ericsson.com>
7361
7362 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
7363 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
7364
2d8adcbd
MM
73652018-02-20 Markus Metzger <markus.t.metzger@intel.com>
7366
7367 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
7368
b5884fa7
AH
73692018-02-19 Alan Hayward <alan.hayward@arm.com>
7370
7371 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
7372 (SFILES): Remove common/*.c files.
7373 (COMMON_OBS): Remove some *.o files built from common/*.c files.
7374 * common/common.host: Add common reference.
7375 * configure.ac: Likewise.
7376 * configure: Regenerate.
7377
fd90ace4
YQ
73782018-02-16 Yao Qi <yao.qi@linaro.org>
7379
7380 * block.c (block_namespace_info): Inherit allocate_on_obstack.
7381 (block_initialize_namespace): Use new.
7382 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
7383 (dwarf2_free_objfile): Use delete.
7384 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
7385 (copy_type_recursive): Use new.
7386 * gdb_obstack.h (allocate_on_obstack): New.
7387
85046ae2
YQ
73882018-02-15 Yao Qi <yao.qi@linaro.org>
7389
7390 PR gdb/22849
7391 * inferior.c (exit_inferior_1): Reset inf->control.
7392
355c559b
JB
73932018-02-15 Joel Brobecker <brobecker@adacore.com>
7394
7395 * ada-lang.c (ada_to_fixed_value_create): Delete advance
7396 declaration.
7397
980548fd
PA
73982018-02-14 Pedro Alves <palves@redhat.com>
7399
7400 * frame-unwind.c (frame_unwind_try_unwinder): Always call
7401 frame_cleanup_after_sniffer on exception.
7402
692d6f97
TT
74032018-02-14 Tom Tromey <tom@tromey.com>
7404
7405 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
7406 const.
7407 (solib_bfd_open): Make pathname const.
7408 * solib.c (solib_bfd_open): Make pathname const.
7409 * solib-spu.c (spu_bfd_fopen): Make name const.
7410 (spu_bfd_open): Make pathname const.
7411 * solib-darwin.c (darwin_bfd_open): Make pathname const.
7412 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
7413
e0cc99a6
TT
74142018-02-14 Tom Tromey <tom@tromey.com>
7415
7416 * symfile.c (symfile_bfd_open): Update.
7417 * source.h (openp, source_full_path_of, find_and_open_source):
7418 Change argument type to unique_xmalloc_ptr.
7419 * source.c (openp): Take a unique_xmalloc_ptr.
7420 (source_full_path_of, find_and_open_source): Likewise.
7421 (open_source_file, symtab_to_fullname): Update.
7422 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
7423 unique_xmalloc_ptr.
7424 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
7425 (exec_file_find): Update.
7426 * psymtab.c (psymtab_to_fullname): Update.
7427 * nto-tdep.h (nto_find_and_open_solib): Update.
7428 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
7429 unique_xmalloc_ptr.
7430 * exec.c (exec_file_attach): Update.
7431 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
7432 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
7433
b46a8d7c
TT
74342018-02-14 Tom Tromey <tom@tromey.com>
7435
7436 * solib.c: Include source.h.
7437 * nto-tdep.c: Include source.h.
7438 * mi/mi-cmd-env.c: Include source.h.
7439 * infcmd.c: Include source.h.
7440 * exec.c: Include source.h.
7441 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
7442 (add_path, directory_switch, source_path, init_source_path): Move
7443 declarations...
7444 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
7445 (add_path, directory_switch, source_path, init_source_path):
7446 ...here.
7447
797bc1cb
TT
74482018-02-14 Tom Tromey <tom@tromey.com>
7449
7450 * solist.h (exec_file_find, solib_find): Return
7451 unique_xmalloc_ptr.
7452 (solib_bfd_fopen): Take a const char *.
7453 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
7454 (exec_file_find, solib_find): Likewise.
7455 (solib_bfd_fopen): Do not take ownership of "pathname".
7456 (solib_bfd_open): Use unique_xmalloc_ptr.
7457 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
7458 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
7459 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
7460 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
7461
f98b2e33
JB
74622018-02-14 Joel Brobecker <brobecker@adacore.com>
7463
7464 * ada-lang.c (name_match_type_from_name): Remove reference to
7465 ada_name_for_lookup in function's documentation.
7466 * ada-lang.h (ada_name_for_lookup): Delete declaration.
7467
24b9144d
SM
74682018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
7469
7470 * defs.h (enum openp_flags): New enum.
7471 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
7472 Move to enum openp_flags.
7473 (openp_flags): New enum flags.
7474 (openp): Change parameter type to openp_flags.
7475 * source.c (openp): Change parameter type to openp_flags.
7476 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
7477 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
7478
387cd15b
SM
74792018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
7480
7481 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
7482 per-command.
7483
b303c6f6
AB
74842018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
7485
7486 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
7487 into...
7488 (class dwarf2_queue_guard): ...the destructor of this new class.
7489 (dw2_do_instantiate_symtab): Create instance of the new class
7490 dwarf2_queue_guard, remove cleanup.
7491
9c3630e9
TT
74922018-02-09 Tom Tromey <tom@tromey.com>
7493
7494 * source.c (find_source_lines): Don't reference past the end of
7495 the vector.
7496
c4e12631
MM
74972018-02-09 Markus Metzger <markus.t.metzger@intel.com>
7498
7499 * remote.c (remote_btrace_maybe_reopen): Change error message.
7500 * btrace.c (btrace_enable): Likewise.
7501 (parse_xml_btrace): Likewise.
7502 (parse_xml_btrace_conf): Likewise.
7503
88711fbf
MM
75042018-02-09 Markus Metzger <markus.t.metzger@intel.com>
7505
7506 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
7507 (linux_enable_pt, linux_enable_bts): Call
7508 diagnose_perf_event_open_fail.
7509
17ad2a4f
MM
75102018-02-09 Markus Metzger <markus.t.metzger@intel.com>
7511
7512 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
7513 Remove parameter and change return type. Update callers. Move it.
7514 (linux_enable_bts, linux_enable_pt): Improve error message.
7515 (linux_enable_pt): Remove zero buffer size check.
7516 (linux_enable_btrace): Improve error messages. Remove NULL return
7517 check.
7518
de6242d3
MM
75192018-02-09 Markus Metzger <markus.t.metzger@intel.com>
7520
7521 * btrace.c (btrace_enable): Remove target_supports_btrace call.
7522 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
7523 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
7524 (linux_supports_pt, linux_supports_btrace): Remove.
7525 (linux_enable_bts): Call cpu_supports_bts.
7526 * nat/linux-btrace.h (linux_supports_btrace): Remove.
7527 * remote.c (remote_supports_btrace): Remove.
7528 (init_remote_ops): Remove remote_supports_btrace.
7529 * target-delegates.c: Regenerated.
7530 * target.c (target_supports_btrace): Remove.
7531 * target.h (target_ops) <to_supports_btrace>: Remove
7532 (target_supports_btrace): Remove.
7533 * x86-linux-nat.c (x86_linux_create_target): Remove
7534 linux_supports_btrace.
7535
9ee23a85
MM
75362018-02-09 Markus Metzger <markus.t.metzger@intel.com>
7537
7538 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
7539 btrace failed.
7540 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
7541 exception and use message in own exception.
7542
5c3284c1
MM
75432018-02-09 Markus Metzger <markus.t.metzger@intel.com>
7544
7545 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
7546 (perf_event_pt_event_type): Use gdb_file_up.
7547 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
7548 scoped_fd, and scoped_mmap.
7549
84696f37
MM
75502018-02-09 Markus Metzger <markus.t.metzger@intel.com>
7551
7552 * common/scoped_mmap.h: New.
7553 * unittests/scoped_mmap-selftest.c: New.
7554 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7555 unittests/scoped_mmap-selftest.c.
7556
ea4a0888
MM
75572018-02-09 Markus Metzger <markus.t.metzger@intel.com>
7558
7559 * common/scoped_fd.h: New.
7560 * unittests/scoped_fd-selftest.c: New.
7561 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7562 unittests/scoped_fd-selftest.c.
7563
869e8290
TT
75642018-02-09 Tom Tromey <tom@tromey.com>
7565
7566 * auto-load.c (auto_load_section_scripts): Use
7567 gdb::unique_xmalloc_ptr.
7568
a37a2ae7
TT
75692018-02-09 Tom Tromey <tom@tromey.com>
7570
7571 * auto-load.c (execute_script_contents): Use std::string.
7572
4e725347
JB
75732018-02-09 Joel Brobecker <brobecker@adacore.com>
7574
7575 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
7576 Python function, rather than a new command.
7577
9a897d43
TT
75782018-02-08 Tom Tromey <tom@tromey.com>
7579
7580 * solib.c (solib_find_1): Use std::string.
7581 (solib_bfd_fopen): Use unique_xmalloc_ptr.
7582
58ef3771
TT
75832018-02-08 Tom Tromey <tom@tromey.com>
7584
7585 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
7586
a9abc434
TT
75872018-02-08 Tom Tromey <tom@tromey.com>
7588
7589 * source.c (find_source_lines): Use gdb::def_vector.
7590
84f27c6f
TT
75912018-02-08 Tom Tromey <tom@tromey.com>
7592
7593 * macrocmd.c (struct temporary_macro_definition): New.
7594 (macro_define_command): Use temporary_macro_definition. Remove
7595 cleanups.
7596 (free_macro_definition_ptr): Remove.
7597
0354904b
TT
75982018-02-08 Tom Tromey <tom@tromey.com>
7599
7600 * macroexp.c (maybe_expand): Use std::string.
7601
1739cf24
TT
76022018-02-08 Tom Tromey <tom@tromey.com>
7603
7604 * macroexp.c (struct macro_buffer): Add initializers for some
7605 members.
7606 (init_buffer, init_shared_buffer, free_buffer)
7607 (free_buffer_return_text): Remove.
7608 (macro_buffer): New constructors.
7609 (~macro_buffer): New destructor.
7610 (macro_buffer::set_shared): New method.
7611 (macro_buffer::resize_buffer, macro_buffer::appendc)
7612 (macro_buffer::appendmem): Now methods, not free functions.
7613 (set_token, append_tokens_without_splicing, stringify)
7614 (macro_stringify): Update.
7615 (gather_arguments): Change return type. Remove argc_p argument,
7616 add args_ptr argument. Use std::vector.
7617 (substitute_args): Remove argc argument. Accept std::vector.
7618 (expand): Update. Use std::vector.
7619 (scan, macro_expand, macro_expand_next): Update.
7620
f6c2623e
TT
76212018-02-08 Tom Tromey <tom@tromey.com>
7622
7623 * symtab.c (default_collect_symbol_completion_matches_break_on):
7624 Use unique_xmalloc_ptr.
7625 * macroscope.h: (sal_macro_scope, user_macro_scope)
7626 (default_macro_scope): Return unique_xmalloc_ptr.
7627 * macroscope.c (sal_macro_scope, user_macro_scope)
7628 (default_macro_scope): Return unique_xmalloc_ptr.
7629 * macroexp.h (macro_expand, macro_expand_once): Return
7630 unique_xmalloc_ptr.
7631 * macroexp.c (macro_expand, macro_expand_once): Return
7632 unique_xmalloc_ptr.
7633 * macrocmd.c (macro_expand_command, macro_expand_once_command)
7634 (info_macro_command, info_macros_command): Use
7635 unique_xmalloc_ptr.
7636 * compile/compile-c-support.c (write_macro_definitions): Use
7637 unique_xmalloc_ptr.
7638 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
7639
c2e0e465
SM
76402018-02-07 Simon Marchi <simon.marchi@ericsson.com>
7641
7642 * value.c (value_static_field): Assign field type instead of
7643 containing type when returning an optimized out value.
7644
3f8c94b4
YQ
76452018-02-06 Yao Qi <yao.qi@linaro.org>
7646
7647 * ft32-tdep.c (ft32_read_pc): Remove.
7648 (ft32_write_pc): Remove.
7649 (ft32_gdbarch_init): Update.
7650 * m32r-tdep.c (m32r_read_pc): Remove.
7651 (m32r_gdbarch_init): Update.
7652 * mep-tdep.c (mep_read_pc): Remove.
7653 (mep_gdbarch_init): Update.
7654 * microblaze-tdep.c (microblaze_write_pc): Remove.
7655 (microblaze_gdbarch_init): Update.
7656 * mn10300-tdep.c (mn10300_read_pc): Remove.
7657 (mn10300_write_pc): Remove.
7658 (mn10300_gdbarch_init): Update.
7659 * moxie-tdep.c (moxie_read_pc): Remove.
7660 (moxie_write_pc): Remove.
7661 (moxie_gdbarch_init): Update.
7662
bca65a23
YQ
76632018-02-06 Yao Qi <yao.qi@linaro.org>
7664
7665 * expprint.c (print_subexp_standard): Handle
7666 OP_F77_UNDETERMINED_ARGLIST.
7667 (dump_subexp_body_standard): Likewise.
7668
583e3f90 76692018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 7670
583e3f90
YQ
7671 * target-descriptions.c (tdesc_element_visitor) Add empty
7672 implementations.
b8df6ca7
AH
7673 (tdesc_type): Move make_gdb_type from here.
7674 (tdesc_type_builtin): Likewise.
7675 (tdesc_type_vector): Likewise.
7676 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
7677 (make_gdb_type_struct): Move from tdesc_type_with_fields.
7678 (make_gdb_type_union): Likewise.
7679 (make_gdb_type_flags): Likewise.
7680 (make_gdb_type_enum): Likewise.
7681 (make_gdb_type): New function.
7682 (tdesc_register_type): Use static make_gdb_type.
7683
e813d34a
RK
76842018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
7685
7686 * infcmd.c (default_print_one_register_info): Align natural-format
7687 column values consistently one under another.
7688 (pad_to_column): New function.
7689
0eb876f5
JB
76902018-02-05 Joel Brobecker <brobecker@adacore.com>
7691
7692 * dwarf2read.c (dwarf2_physname): Move commment.
7693
0625771b
LS
76942018-02-01 Leszek Swirski <leszeks@google.com>
7695
7696 * varobj.c (varobj_formatted_print_options): Allow recursive
7697 pretty printing if pretty printing is enabled.
7698
59498c30
LS
76992018-02-01 Leszek Swirski <leszeks@google.com>
7700
7701 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
7702 names after a structop as a filename.
7703
2d9e6acb
YQ
77042018-02-01 Yao Qi <yao.qi@linaro.org>
7705
7706 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
7707 (arm_record_coproc_data_proc): Likewise.
7708
df95a9cf
YQ
77092018-02-01 Yao Qi <yao.qi@linaro.org>
7710
7711 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
7712
07e5f5cf
NP
77132018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
7714
7715 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
7716 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
7717
3045b475
PA
77182018-01-31 Pedro Alves <palves@redhat.com>
7719
7720 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
7721 * inflow.c (child_terminal_save_inferior): Wrap reference to
7722 tcgetpgrp in HAVE_TERMIOS_H.
7723 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
7724 _WIN32.
7725 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
7726 always iterate over all inferiors.
7727 (gdbsim_cntrl_c): Adjust.
7728 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
7729
929b5ad4
JB
77302018-01-31 Joel Brobecker <brobecker@adacore.com>
7731
7732 * gdbtypes.c (lookup_array_range_type): Make sure the array's
7733 index type is objfile-owned if the element type is as well.
7734
29236ca2
JB
77352018-01-31 Joel Brobecker <brobecker@adacore.com>
7736
7737 GDB 8.1 released.
7738
c81e8879
PR
77392018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
7740
7741 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
7742 "features/s390x-linux64.c".
7743 (_initialize_s390_linux_tdep): Remove initialization of tdescs
7744 s390_linux32 and s390x_linux64.
7745 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
7746 default tdesc.
7747 * s390-tdep.c: Include "features/s390-linux32.c" and
7748 "features/s390x-linux64.c".
7749 (s390_tdesc_valid): Add check for tdesc_has_registers.
7750 (s390_gdbarch_init): Make sure there is always a valid tdesc.
7751 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
7752 tdesc_s390x_linux64.
7753 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
7754 tdesc_s390x_linux64 to...
7755 * s390-tdep.h: ...here.
7756
e671cd59
PA
77572018-01-30 Pedro Alves <palves@redhat.com>
7758
7759 PR gdb/13211
7760 * config.in, configure: Regenerate.
7761 * configure.ac: Check for getpgid.
7762 * go32-nat.c (go32_pass_ctrlc): New.
7763 (go32_target): Install it.
7764 * inf-child.c (inf_child_target): Install
7765 child_terminal_save_inferior, child_pass_ctrlc and
7766 child_interrupt.
7767 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
7768 (inf_ptrace_target): No longer install it.
7769 * infcmd.c (interrupt_target_1): Adjust.
7770 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
7771 (child_interrupt): Declare.
7772 (inferior::terminal_state): New.
7773 * inflow.c (struct terminal_info): Update comments.
7774 (inferior_process_group): Delete.
7775 (terminal_is_ours): Delete.
7776 (gdb_tty_state): New.
7777 (child_terminal_init): Adjust.
7778 (is_gdb_terminal, sharing_input_terminal_1)
7779 (sharing_input_terminal): New functions.
7780 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
7781 Set the process's actual process group in the foreground if
7782 possible. Handle is_ours_for_output/is_ours distinction. Don't
7783 mark terminal as the inferior's if not sharing GDB's terminal.
7784 Don't check attach_flag.
7785 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
7786 pass down a target_terminal_state.
7787 (child_terminal_save_inferior): New, factored out from ...
7788 (child_terminal_ours_1): ... this. Handle
7789 target_terminal_state::is_ours_for_output.
7790 (child_interrupt, child_pass_ctrlc): New.
7791 (inflow_inferior_exit): Clear the inferior's terminal_state.
7792 (copy_terminal_info): Copy the inferior's terminal state.
7793 (_initialize_inflow): Remove reference to terminal_is_ours.
7794 * inflow.h (inferior_process_group): Delete.
7795 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
7796 * procfs.c (procfs_target): Don't install procfs_interrupt.
7797 (procfs_interrupt): Delete.
7798 * remote.c (remote_serial_quit_handler): Adjust.
7799 (remote_interrupt): Remove ptid parameter. Adjust.
7800 * target-delegates.c: Regenerate.
7801 * target.c: Include "terminal.h".
7802 (target_terminal::terminal_state): Rename to ...
7803 (target_terminal::m_terminal_state): ... this.
7804 (target_terminal::init): Adjust.
7805 (target_terminal::inferior): Adjust to per-inferior
7806 terminal_state.
7807 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
7808 (target_terminal::ours, target_terminal::ours_for_output): Use
7809 target_terminal_is_ours_kind.
7810 (target_interrupt): Remove ptid parameter. Adjust.
7811 (default_target_pass_ctrlc): Adjust.
7812 * target.h (target_ops::to_terminal_save_inferior): New field.
7813 (target_ops::to_interrupt): Remove ptid_t parameter.
7814 (target_interrupt): Remove ptid_t parameter. Update comment.
7815 (target_pass_ctrlc): Update comment.
7816 * target/target.h (target_terminal_state): New scoped enum,
7817 factored out of ...
7818 (target_terminal::terminal_state): ... here.
7819 (target_terminal::inferior): Update comments.
7820 (target_terminal::restore_inferior): New.
7821 (target_terminal::is_inferior, target_terminal::is_ours)
7822 (target_terminal::is_ours_for_output): Adjust.
7823 (target_terminal::scoped_restore_terminal_state): Adjust to
7824 rename, and call restore_inferior() instead of inferior().
7825 (target_terminal::scoped_restore_terminal_state::m_state): Change
7826 type.
7827 (target_terminal::terminal_state): Rename to ...
7828 (target_terminal::m_terminal_state): ... this and change type.
7829
9c3a5d93
PA
78302018-01-30 Pedro Alves <palves@redhat.com>
7831
7832 * linux-nat.c (wait_for_signal): New function.
7833 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
7834 directly.
7835 (async_terminal_is_ours)
7836 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
7837 (linux_nat_add_target): Don't override
7838 to_terminal_inferior/to_terminal_ours.
7839
69ab5edb
SDJ
78402018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
7841
7842 * remote.c (remote_follow_fork): Don't call "detach_inferior".
7843
fc8e7e75
SM
78442018-01-28 Simon Marchi <simon.marchi@ericsson.com>
7845
7846 * dwarf2read.c (free_dwo_files): Add forward-declaration.
7847 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
7848 dwarf2_per_objfile_free here.
7849 (dwarf2_per_objfile_free): Remove.
7850 (_initialize_dwarf2_read): Don't register
7851 dwarf2_per_objfile_free as a registry cleanup.
7852
b2a426e2
EZ
78532018-01-27 Eli Zaretskii <eliz@gnu.org>
7854
7855 Avoid compilation errors in MinGW native builds
7856
7857 The error is triggered by including python-internal.h, and the
7858 error message is:
7859
7860 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
7861 from build-gnulib/import/math.h:27,
7862 from d:/usr/Python26/include/pyport.h:235,
7863 from d:/usr/Python26/include/Python.h:58,
7864 from python/python-internal.h:94,
7865 from python/py-arch.c:24:
7866 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
7867 using ::hypot;
7868 ^~~~~
7869
7870 This happens because Python headers define 'hypot' to expand t
7871 '_hypot' in the Windows builds.
7872 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
7873 'hypoth'. This avoids a compilation error.
7874
0bdd8eac
AH
78752018-01-26 Alan Hayward <alan.hayward@arm.com>
7876
7877 * MAINTAINERS (Write After Approval): Fix ordering.
7878
56ae9dc3
AH
78792018-01-26 Alan Hayward <alan.hayward@arm.com>
7880
7881 * MAINTAINERS (Write After Approval): Add Alan Hayward.
7882
7433498b
AM
78832018-01-26 Alan Modra <amodra@gmail.com>
7884
7885 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
7886 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
7887 Remove nop. Make const. Comment.
7888 (powerpc32_plt_stub_so_2): New.
7889 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
7890 Correct count. Update uses.
7891 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
7892 Move common code reading PLT entry word. Correct
7893 powerpc32_plt_stub PLT address calculation.
7894 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
7895 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
7896 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
7897 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
7898 (ppc64_standard_linkage8): Likewise.
7899 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
7900 Correct insns description.
7901 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
7902
0f59d5fc
PA
79032018-01-24 Pedro Alves <palves@redhat.com>
7904
7905 GCC PR libstdc++/83906
7906 * gdbtypes.c (operator==(const dynamic_prop &,
7907 const dynamic_prop &)): New.
7908 (operator==(const range_bounds &, const range_bounds &)): New.
7909 (check_types_equal): Use them instead of memcmp.
7910 * gdbtypes.h (operator==(const dynamic_prop &,
7911 const dynamic_prop &)): Declare.
7912 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
7913 (operator==(const range_bounds &, const range_bounds &)): Declare.
7914 (operator!=(const range_bounds &, const range_bounds &)): Declare.
7915
ef8914a4
PR
79162018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7917
7918 * s390-linux-tdep.c (s390_record_address_mask)
7919 (s390_record_calc_disp_common, s390_record_calc_disp)
7920 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
7921 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
7922 (s390_process_record): Move to s390-tdep.c.
7923 (s390_linux_init_abi_any): Adjust.
7924 * s390-tdep.c (s390_record_address_mask)
7925 (s390_record_calc_disp_common, s390_record_calc_disp)
7926 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
7927 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
7928 (s390_process_record): Moved from s390-linux-tdep.c
7929 (s390_gdbarch_init): Adjust.
7930
d6e58945
PR
79312018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7932
7933 * s390-linux-nat.c (s390-tdep.h): New include.
7934 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
7935 (HFILES_NO_SRCDIR): Add s390-tdep.h.
7936 (ALLDEPFILES): Add s390-tdep.c.
7937 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
7938 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
7939 * s390-tdep.h: ...this. New file.
7940 * s390-linux-tdep.c (s390-tdep.h): New include.
7941 (_initialize_s390_tdep): Rename to...
7942 (_initialize_s390_linux_tdep): ...this and adjust.
7943 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
7944 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
7945 s390-tdep.h.
7946 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
7947 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
7948 (s390_is_partial_instruction, s390_software_single_step)
7949 (is_non_branch_ril, s390_displaced_step_copy_insn)
7950 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
7951 (s390_prologue_data, s390_addr, s390_store, s390_load)
7952 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
7953 (s390_register_call_saved, s390_guess_tracepoint_registers)
7954 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
7955 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
7956 (s390_pseudo_register_name, s390_pseudo_register_type)
7957 (s390_pseudo_register_read, s390_pseudo_register_write)
7958 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
7959 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
7960 (s390_addr_bits_remove, s390_address_class_type_flags)
7961 (s390_address_class_type_flags_to_name)
7962 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
7963 (s390_function_arg_float, s390_function_arg_vector)
7964 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
7965 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
7966 (s390_frame_align, s390_register_return_value, s390_return_value)
7967 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
7968 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
7969 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
7970 (s390_trad_frame_prev_register, s390_unwind_cache)
7971 (s390_prologue_frame_unwind_cache)
7972 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
7973 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
7974 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
7975 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
7976 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
7977 (s390_frame_base_address, s390_local_base_address)
7978 (s390_frame_base, s390_gcc_target_options)
7979 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
7980 (s390_validate_reg_range, s390_tdesc_valid)
7981 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
7982 * s390-tdep.c: ...this. New file.
7983
9c0b896e
PR
79842018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7985
7986 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
7987 (s390_process_record, s390_gdbarch_tdep_alloc)
7988 (s390_linux_init_abi_any): Use/set new hook.
7989
7042632b
PR
79902018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7991
7992 * s390-linux-tdep.c (osabi.h): New include.
7993 (s390_linux_init_abi_31, s390_linux_init_abi_64)
7994 (s390_linux_init_abi_any): New functions.
7995 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
7996
650f5e13
PR
79972018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7998
7999 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
8000 tdesc_has_registers check
8001
47c9317e
PR
80022018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8003
8004 * s390-linux-tdep.c (s390_tdesc_valid): New function.
8005 (s390_validate_reg_range): New macro.
8006 (s390_gdbarch_init): Adjust.
8007
095085d8
PR
80082018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8009
8010 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
8011 (s390_gdbarch_tdep_alloc): Adjust.
8012 (s390_gdbarch_init): Adjust.
8013
ab9bcc67
PR
80142018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8015
8016 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
8017 <have_tdb>: Change type to bool.
8018 (s390_gdbarch_tdep_alloc): Adjust.
8019 (s390_gdbarch_init): Adjust.
8020
21f6f5ff
PR
80212018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8022
8023 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
8024 (gdbarch_tdep) <have_upper, have_vx>: New fields.
8025 (s390_gdbarch_tdep_alloc): New function.
8026 (s390_gdbarch_init): Allocate tdep at start and use its fields
8027 instead of separate variables.
8028
0eb97953
PR
80292018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8030
8031 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
8032 when looking for cached gdbarch and add comment for remaining.
8033
5c319bb2
PA
80342018-01-22 Pedro Alves <palves@redhat.com>
8035 Sergio Durigan Junior <sergiodj@redhat.com>
8036
8037 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
8038 case.
8039
d65ce302
MR
80402018-01-22 Maciej W. Rozycki <macro@mips.com>
8041
8042 * MAINTAINERS: Update my company e-mail address.
8043
ec7a5fcb
YQ
80442018-01-22 Yao Qi <yao.qi@linaro.org>
8045
8046 * regcache.c (cooked_write_test): New function.
8047 (_initialize_regcache): Register the test.
8048
11f57cb6
YQ
80492018-01-22 Yao Qi <yao.qi@linaro.org>
8050
8051 * ia64-tdep.c (ia64_pseudo_register_read): Call
8052 regcache->cooked_read instead of regcache_cooked_read_unsigned.
8053 * m32c-tdep.c (m32c_cat_read): Likewise.
8054 (m32c_r3r2r1r0_read): Likewise.
8055 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
8056 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
8057
03f50fc8
YQ
80582018-01-22 Yao Qi <yao.qi@linaro.org>
8059
8060 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
8061 method raw_read instead of regcache_raw_read.
8062 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
8063 * arm-tdep.c (arm_neon_quad_read): Likewise.
8064 * avr-tdep.c (avr_pseudo_register_read): Likewise.
8065 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
8066 * frv-tdep.c (frv_pseudo_register_read): Likewise.
8067 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
8068 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
8069 (i386_pseudo_register_read_into_value): Likewise.
8070 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
8071 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
8072 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
8073 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
8074 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
8075 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
8076 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
8077 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
8078 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
8079
dc711524
YQ
80802018-01-22 Yao Qi <yao.qi@linaro.org>
8081
8082 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
8083 * configure.tgt: Remove target mt.
8084 * mt-tdep.c: Remove.
8085 * regcache.c (cooked_read_test): Remove the check for mt.
8086
3f5a868b
YQ
80872018-01-22 Yao Qi <yao.qi@linaro.org>
8088
8089 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
8090 instead of gdbarch_pseudo_register_read_value.
8091
de4cb04a
JB
80922018-01-22 Joel Brobecker <brobecker@adacore.com>
8093
8094 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
8095 language is Ada.
8096
a9e40818
JB
80972018-01-22 Joel Brobecker <brobecker@adacore.com>
8098
8099 * linespec.c (create_sals_line_offset): Remove code that preserved
8100 the symtab_and_line's line number.
8101
e707fc44
AB
81022018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
8103
8104 * varobj.c (varobj_create): Don't set valid_block when creating a
8105 floating varobj.
8106
03d0bf7b
AB
81072018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
8108
8109 * varobj.c (varobj_create): Remove out of date comment.
8110
ae451627
AB
81112018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
8112
8113 PR mi/20395
8114 * ada-exp.y (write_var_from_sym): Pass extra parameter when
8115 updating innermost block.
8116 * parse.c (innermost_block_tracker::update): Take extra type
8117 parameter, and check types match before updating innermost block.
8118 (write_dollar_variable): Update innermost block for registers.
8119 * parser-defs.h (enum innermost_block_tracker_type): New enum.
8120 (innermost_block_tracker::innermost_block_tracker): Initialise
8121 m_types member.
8122 (innermost_block_tracker::reset): Take type parameter.
8123 (innermost_block_tracker::update): Take type parameter, and pass
8124 type through as needed.
8125 (innermost_block_tracker::m_types): New member.
8126 * varobj.c (varobj_create): Pass type when reseting innermost
8127 block.
8128
aee1fcdf
AB
81292018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
8130
8131 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
8132 * ada-lang.c (resolve_subexp): Likewise.
8133 * breakpoint.c (set_breakpoint_condition) Likewise.
8134 (watch_command_1) Likewise.
8135 * c-exp.y (variable): Likewise.
8136 * d-exp.y (PrimaryExpression): Likewise.
8137 * f-exp.y (variable): Likewise.
8138 * go-exp.y (variable): Likewise.
8139 * m2-exp.y (variable): Likewise.
8140 * objfiles.c (objfile::~objfile): Likewise.
8141 * p-exp.y (variable): Likewise.
8142 * parse.c (innermost_block): Change type.
8143 * parser-defs.h (class innermost_block_tracker): New.
8144 (innermost_block): Change to innermost_block_tracker.
8145 * printcmd.c (display_command): Switch to innermost_block API.
8146 (do_one_display): Likewise.
8147 * rust-exp.y (do_one_display): Likewise.
8148 * symfile.c (clear_symtab_users): Likewise.
8149 * varobj.c (varobj_create): Switch to innermost_block API, replace
8150 use of innermost_block with block stored on varobj object.
8151
396af9a1
AB
81522018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
8153
8154 * expression.h (innermost_block): Remove declaration.
8155 * varobj.c: Add 'parser-defs.h' include.
8156
fcfcc376
TT
81572018-01-19 Tom Tromey <tom@tromey.com>
8158
8159 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
8160 symbols in the static and global blocks.
8161
5a6c3296
JC
81622018-01-19 James Clarke <jrtc27@jrtc27.com>
8163
8164 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
8165 gdb_ptrace.h, and move including gdb_wait.h ...
8166 * nat/linux-ptrace.h: ... to here.
8167
bc09b0c1
SM
81682018-01-19 Simon Marchi <simon.marchi@ericsson.com>
8169
8170 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
8171 inf_ptrace_detach_success.
8172 (inf_ptrace_detach_success): Add inferior parameter, use it
8173 instead of inferior_ptid, pass it to detach_inferior.
8174 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
8175 parameter.
8176 * inferior.c (detach_inferior): Add overload that takes an
8177 inferior object.
8178 * inferior.h (detach_inferior): Likewise.
8179 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
8180 use inferior_ptid, adjust call to inf_ptrace_detach_success.
8181 * linux-thread-db.c (thread_db_detach): Use inf parameter.
8182
6e1e1966
SM
81832018-01-19 Simon Marchi <simon.marchi@ericsson.com>
8184
8185 * target.h (struct target_ops) <to_detach>: Add inferior
8186 parameter.
8187 (target_detach): Likewise.
8188 * target.c (dispose_inferior): Pass inferior down.
8189 (target_detach): Pass inferior down. Assert that it is equal to
8190 the current inferior.
8191 * aix-thread.c (aix_thread_detach): Pass inferior down.
8192 * corefile.c (core_file_command): Pass current_inferior() down.
8193 * corelow.c (core_detach): Add inferior parameter.
8194 * darwin-nat.c (darwin_detach): Likewise.
8195 * gnu-nat.c (gnu_detach): Likewise.
8196 * inf-ptrace.c (inf_ptrace_detach): Likewise.
8197 * infcmd.c (detach_command): Pass current_inferior() down to
8198 target_detach.
8199 * infrun.c (follow_fork_inferior): Pass parent_inf to
8200 target_detach.
8201 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
8202 target_detach.
8203 * linux-nat.c (linux_nat_detach): Add inferior parameter.
8204 * linux-thread-db.c (thread_db_detach): Likewise.
8205 * nto-procfs.c (procfs_detach): Likewise.
8206 * procfs.c (procfs_detach): Likewise.
8207 * record.c (record_detach): Likewise.
8208 * record.h (struct inferior): Forward-declare.
8209 (record_detach): Add inferior parameter.
8210 * remote-sim.c (gdbsim_detach): Likewise.
8211 * remote.c (remote_detach_1): Likewise.
8212 (remote_detach): Likewise.
8213 (extended_remote_detach): Likewise.
8214 * sol-thread.c (sol_thread_detach): Likewise.
8215 * target-debug.h (target_debug_print_inferior_p): New macro.
8216 * target-delegates.c: Re-generate.
8217 * top.c (kill_or_detach): Pass inferior down to target_detach.
8218 * windows-nat.c (windows_detach): Add inferior parameter.
8219
6bd6f3b6
SM
82202018-01-19 Simon Marchi <simon.marchi@ericsson.com>
8221
8222 * target.h (struct target_ops) <to_detach>: Remove args
8223 parameter.
8224 (target_detach): Likewise.
8225 * target.c (dispose_inferior): Adjust.
8226 (target_detach): Remove args parameter, adjust.
8227 * aix-thread.c (aix_thread_detach): Adjust.
8228 * corefile.c (core_file_command): Adjust.
8229 * corelow.c (core_detach): Adjust.
8230 * darwin-nat.c (darwin_detach): Adjust.
8231 * gnu-nat.c (gnu_detach): Adjust.
8232 * inf-ptrace.c (inf_ptrace_detach): Adjust.
8233 * infcmd.c (detach_command): Adjust
8234 * infrun.c (follow_fork_inferior): Adjust.
8235 (handle_vfork_child_exec_or_exit): Adjust.
8236 * linux-fork.c (linux_fork_detach): Remove args parameter.
8237 * linux-fork.h (linux_fork_detach): Likewise.
8238 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
8239 * linux-thread-db.c (thread_db_detach): Likewise.
8240 * nto-procfs.c (procfs_detach): Likewise.
8241 * procfs.c (procfs_detach): Likewise.
8242 (do_detach): Remove signo parameter.
8243 * record.c (record_detach): Remove args parameter.
8244 * record.h (record_detach): Likewise.
8245 * remote-sim.c (gdbsim_detach): Likewise.
8246 * remote.c (remote_detach_1): Likewise.
8247 (remote_detach): Likewise.
8248 (extended_remote_detach): Likewise.
8249 * sol-thread.c (sol_thread_detach): Likewise.
8250 * target-delegates.c: Re-generate.
8251 * top.c (struct qt_args) <args>: Remove field.
8252 (kill_or_detach): Don't pass args.
8253 (quit_force): Don't set args.
8254 * windows-nat.c (windows_detach): Remove args parameter.
8255
88af8ea8
YQ
82562018-01-19 Yao Qi <yao.qi@linaro.org>
8257
8258 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
8259 (arm_linux_init_abi): Install it.
8260
dea445b9
YQ
82612018-01-19 Yao Qi <yao.qi@linaro.org>
8262
8263 * osabi.c (gdb_osabi_names): Extend the regexp for
8264 arm-linux-gnueabihf.
8265
4a17f768
YQ
82662018-01-18 Yao Qi <yao.qi@linaro.org>
8267
8268 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
8269 m_abbrevs.
8270 (abbrev_table::add_abbrev): Update.
8271 (abbrev_table::lookup_abbrev): Update.
8272
d679c21a
YQ
82732018-01-18 Yao Qi <yao.qi@linaro.org>
8274
8275 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
8276
7d937cad
SDJ
82772018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8278
8279 * compile/compile.c (compile_to_object): Convert "triplet_rx"
8280 to "std::string".
8281
9e14690d
TT
82822018-01-17 Tom Tromey <tom@tromey.com>
8283
8284 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
8285
50a82047
TT
82862018-01-17 Tom Tromey <tom@tromey.com>
8287
8288 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
8289 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
8290 (create_array_type_with_stride): Update.
8291 * dwarf2read.c (set_die_type): Update.
8292
c89b44cd
TT
82932018-01-17 Tom Tromey <tom@tromey.com>
8294
8295 * dwarf2read.c (delayed_method_info): Remove typedef.
8296 (dwarf2_cu::method_info): Now a std::vector.
8297 (add_to_method_list): Update.
8298 (free_delayed_list): Remove.
8299 (compute_delayed_physnames): Update.
8300 (process_full_comp_unit, process_full_type_unit): Clear the method
8301 list. Remove cleanups.
8302 (psymtab_include_file_name): Add name_holder parameter. Use
8303 unique_xmalloc_ptr.
8304 (dwarf_decode_lines): Update.
8305
fcd3b13d
SM
83062018-01-17 Tom Tromey <tom@tromey.com>
8307 Simon Marchi <simon.marchi@ericsson.com>
8308
8309 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
8310 (dwarf2_per_objfile::free_cached_comp_units)
8311 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
8312 (init_cutu_and_read_dies_no_follow): Update.
8313 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
8314 (dwarf2_cu::~dwarf2_cu): New.
8315 (free_heap_comp_unit, free_stack_comp_unit): Remove.
8316 (age_cached_comp_units, free_one_cached_comp_unit): Update.
8317
685af9cd
TT
83182018-01-17 Tom Tromey <tom@tromey.com>
8319 Simon Marchi <simon.marchi@ericsson.com>
8320
8321 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
8322 (struct die_reader_specs) <abbrev_table>: New member.
8323 (struct abbrev_table): Add constructor.
8324 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
8325 <abbrev_obstack>: Now an auto_obstack.
8326 (abbrev_table_up): New typedef.
8327 (init_cu_die_reader): Add abbrev_table parameter.
8328 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
8329 Add result_dwo_abbrev_table.
8330 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
8331 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
8332 Update.
8333 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
8334 parameter.
8335 (skip_children): Update.
8336 (abbrev_table::alloc_abbrev): Rename from
8337 abbrev_table_alloc_abbrev.
8338 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
8339 (abbrev_table::lookup_abbrev): Rename from
8340 abbrev_table_lookup_abbrev.
8341 (abbrev_table_read_table): Return abbrev_table_up.
8342 (abbrev_table_free, abbrev_table_free_cleanup)
8343 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
8344 (load_partial_dies): Update.
8345
5e2db402
TT
83462018-01-17 Tom Tromey <tom@tromey.com>
8347
8348 * dwarf2read.c (dwarf2_compute_name): Update comment.
8349 (read_func_scope, read_variable): Update.
8350 (new_symbol): Remove.
8351 (new_symbol_full): Rename to new_symbol.
8352
ee7f689e 83532018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
8354
8355 PR gdb/16577
8356 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
8357 a warning instead of throwing an error, set section size to 0 and return
8358 NULL.
8359 * gdb_bfd.h (gdb_bfd_map_section): Update description.
8360
4d9b86e1
SM
83612018-01-17 Simon Marchi <simon.marchi@ericsson.com>
8362
8363 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
8364 std::string.
8365 (linux_ptrace_attach_fail_reason_string): Likewise.
8366 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
8367 Likewise.
8368 (linux_ptrace_attach_fail_reason_string): Likewise.
8369 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
8370
a7b2d0fb
SM
83712018-01-17 Simon Marchi <simon.marchi@ericsson.com>
8372
8373 * linux-nat.c (linux_nat_attach): Remove xstrdup.
8374
f517c180
EA
83752018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
8376
8377 PR gdb/21559
8378 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
8379 checking for fs_base/gs_base fields in struct user_regs_struct.
8380 * configure: Regenerate.
8381
7045b1ca
YQ
83822018-01-17 Yao Qi <yao.qi@linaro.org>
8383
8384 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
8385 function.
8386 (aarch64_linux_init_abi): Install it to gdbarch hook
8387 gcc_target_options.
8388
db422fb2
PA
83892018-01-15 Pedro Alves <palves@redhat.com>
8390
8391 * common/signals-state-save-restore.c
8392 (save_original_signals_state): Fix typos.
8393
ba643918
SDJ
83942017-01-12 Tom Tromey <tom@tromey.com>
8395 Sergio Durigan Junior <sergiodj@redhat.com>
8396
8397 * Makefile.in (install-only): Install gdb-add-index.
8398
906b4aac
JB
83992018-01-12 John Baldwin <jhb@FreeBSD.org>
8400
8401 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
8402
bdf2a94a
AA
84032018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8404
8405 * infrun.c (keep_going_pass_signal): Clear step-over info when
8406 insert_breakpoints fails.
8407
71d378ae
PA
84082018-01-11 Pedro Alves <palves@redhat.com>
8409
8410 PR gdb/22583
8411 * infrun.c (resume): Rename to ...
8412 (resume_1): ... this.
8413 (resume): Reimplement as wrapper around resume_1.
8414
3cada740
PA
84152018-01-11 Pedro Alves <palves@redhat.com>
8416
8417 PR remote/22597
8418 * remote.c (remote_parse_stop_reply): Default to the last-set
8419 general thread instead of to 'magic_null_ptid'.
8420
618daa93
PA
84212018-01-10 Pedro Alves <palves@redhat.com>
8422
8423 * language.h (language_get_symbol_name_matcher): Rename ...
8424 (get_symbol_name_matcher): ... this.
8425 * language.c (language_get_symbol_name_matcher): Ditto.
8426 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
8427 callers adjusted.
8428
c63d3e8d
PA
84292018-01-10 Pedro Alves <palves@redhat.com>
8430
8431 PR gdb/22670
8432 * dwarf2read.c
8433 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
8434 Adjust to use language_get_symbol_name_matcher instead of
8435 language_defn::la_get_symbol_name_matcher.
8436 * language.c (language_get_symbol_name_matcher): If in Ada mode
8437 and the lookup name is a verbatim match, return Ada's matcher.
8438 * language.h (language_get_symbol_name_matcher): Adjust comment.
8439 (ada_lookup_name_info::verbatim_p):: New method.
8440
d4c2a405
PA
84412018-01-10 Pedro Alves <palves@redhat.com>
8442
8443 PR gdb/22670
8444 * ada-lang.c (ada_collect_symbol_completion_matches): If the
8445 minsym's language is language_auto or language_cplus, pass down
8446 language_ada instead.
8447 * symtab.c (compare_symbol_name): Don't frob symbol language here.
8448
8825213e
PA
84492018-01-10 Pedro Alves <palves@redhat.com>
8450
8451 PR gdb/22670
8452 * minsyms.c (linkage_name_str): New function.
8453 (iterate_over_minimal_symbols): Use it.
8454
2d97a5d9
JB
84552018-01-09 John Baldwin <jhb@FreeBSD.org>
8456
8457 * NEWS: Document that 'info proc' now works on FreeBSD.
8458
92fce24d
JB
84592018-01-09 John Baldwin <jhb@FreeBSD.org>
8460
8461 * configure.ac: Check for kinfo_getfile in libutil.
8462 * configure: Regenerate.
8463 * config.in: Regenerate.
8464 * fbsd-nat.c: Include "fbsd-tdep.h".
8465 (fbsd_fetch_cmdline): New.
8466 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
8467 rather than calling error.
8468 (fbsd_info_proc): New.
8469 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
8470 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
8471 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
8472
262f62f5
JB
84732018-01-09 John Baldwin <jhb@FreeBSD.org>
8474
8475 * fbsd-nat.c (struct free_deleter): Remove.
8476 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
8477
b999e203
JB
84782018-01-09 John Baldwin <jhb@FreeBSD.org>
8479
8480 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
8481 NULL for an empty pathname.
8482
d2176225
JB
84832018-01-09 John Baldwin <jhb@FreeBSD.org>
8484
8485 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
8486 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
8487 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8488 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8489 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
8490 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
8491 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
8492 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
8493 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
8494 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
8495 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
8496 (fbsd_core_fetch_timeval, fbsd_print_sigset)
8497 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
8498 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
8499 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
8500
9c4ac400
ST
85012018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8502
8503 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
8504 (gnu_xfer_auxv): New function.
8505 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
8506 TARGET_OBJECT_AUXV.
8507
1e5ded6c
YQ
85082018-01-08 Yao Qi <yao.qi@linaro.org>
8509 Simon Marchi <simon.marchi@ericsson.com>
8510
8511 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
8512 common/selftest.c.
8513 (COMMON_OBS): Remove selftest.o.
8514 * configure.ac: Append selftest-arch.c and common/selftest.c to
8515 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
8516 * configure: Re-generated.
8517 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
8518 GDB_SELF_TEST.
8519 (maintenance_info_selftests): Likewise.
8520
04bafb1e
XR
85212018-01-08 Xavier Roirand <roirand@adacore.com>
8522
8523 * ada-valprint.c (val_print_packed_array_elements): Use
8524 proper number of elements when printing an array indexed
8525 by an enumeration type.
8526
518817b3
SM
85272018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
8528
8529 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
8530 (dw2_get_file_names_reader): Adjust.
8531 (lookup_dwo_signatured_type): Adjust.
8532 (lookup_dwp_signatured_type): Adjust.
8533 (lookup_signatured_type): Adjust.
8534 (create_type_unit_group): Adjust.
8535 (get_type_unit_group): Adjust.
8536 (process_psymtab_comp_unit_reader): Adjust.
8537 (build_type_psymtabs_reader): Adjust.
8538 (scan_partial_symbols): Adjust.
8539 (add_partial_symbol): Adjust.
8540 (add_partial_subprogram): Adjust.
8541 (peek_die_abbrev): Adjust.
8542 (fixup_go_packaging): Adjust.
8543 (process_imported_unit_die): Adjust.
8544 (dwarf2_compute_name): Adjust.
8545 (dwarf2_physname): Adjust.
8546 (read_import_statement): Adjust.
8547 (handle_DW_AT_stmt_list): Adjust.
8548 (read_file_scope): Adjust.
8549 (read_func_scope): Adjust.
8550 (read_lexical_block_scope): Adjust.
8551 (read_call_site_scope): Adjust.
8552 (read_variable): Adjust.
8553 (dwarf2_rnglists_process): Adjust.
8554 (dwarf2_ranges_process): Adjust.
8555 (dwarf2_ranges_read): Adjust.
8556 (dwarf2_get_pc_bounds): Adjust.
8557 (dwarf2_record_block_ranges): Adjust.
8558 (dwarf2_add_field): Adjust.
8559 (dwarf2_add_member_fn): Adjust.
8560 (read_structure_type): Adjust.
8561 (process_structure_scope): Adjust.
8562 (read_enumeration_type): Adjust.
8563 (read_array_type): Adjust.
8564 (mark_common_block_symbol_computed): Adjust.
8565 (read_common_block): Adjust.
8566 (read_namespace_type): Adjust.
8567 (read_namespace): Adjust.
8568 (read_module_type): Adjust.
8569 (read_tag_pointer_type): Adjust.
8570 (read_tag_ptr_to_member_type): Adjust.
8571 (read_tag_string_type): Adjust.
8572 (read_subroutine_type): Adjust.
8573 (read_typedef): Adjust.
8574 (read_base_type): Adjust.
8575 (attr_to_dynamic_prop): Adjust.
8576 (read_subrange_type): Adjust.
8577 (read_unspecified_type): Adjust.
8578 (dwarf2_read_abbrevs): Adjust.
8579 (load_partial_dies): Adjust.
8580 (read_partial_die): Adjust.
8581 (find_partial_die): Adjust.
8582 (guess_partial_die_structure_name): Adjust.
8583 (fixup_partial_die): Adjust.
8584 (read_attribute_value): Adjust.
8585 (read_addr_index): Adjust.
8586 (read_addr_index_from_leb128): Adjust.
8587 (read_str_index): Adjust.
8588 (dwarf2_string_attr): Adjust.
8589 (get_debug_line_section): Adjust.
8590 (dwarf_decode_line_header): Adjust.
8591 (lnp_state_machine::check_line_address): Adjust.
8592 (dwarf_decode_lines_1): Adjust.
8593 (dwarf_decode_lines): Adjust.
8594 (dwarf2_start_symtab): Adjust.
8595 (var_decode_location): Adjust.
8596 (new_symbol_full): Adjust.
8597 (dwarf2_const_value_data): Adjust.
8598 (dwarf2_const_value_attr): Adjust.
8599 (dwarf2_const_value): Adjust.
8600 (die_type): Adjust.
8601 (die_containing_type): Adjust.
8602 (build_error_marker_type): Adjust.
8603 (lookup_die_type): Adjust.
8604 (guess_full_die_structure_name): Adjust.
8605 (anonymous_struct_prefix): Adjust.
8606 (determine_prefix): Adjust.
8607 (dwarf2_name): Adjust.
8608 (follow_die_ref_or_sig): Adjust.
8609 (follow_die_offset): Adjust.
8610 (follow_die_ref): Adjust.
8611 (follow_die_sig_1): Adjust.
8612 (follow_die_sig): Adjust.
8613 (get_signatured_type): Adjust.
8614 (get_DW_AT_signature_type): Adjust.
8615 (decode_locdesc): Adjust.
8616 (dwarf_decode_macros): Adjust.
8617 (cu_debug_loc_section): Adjust.
8618 (fill_in_loclist_baton): Adjust.
8619 (dwarf2_symbol_mark_computed): Adjust.
8620 (init_one_comp_unit): Don't assign
8621 dwarf2_cu::dwarf2_per_objfile.
8622 (set_die_type): Adjust.
8623
ed2dc618
SM
86242018-01-07 Simon Marchi <simon.marchi@ericsson.com>
8625
8626 * dwarf2read.c (struct mapped_debug_names): Add constructor.
8627 <dwarf2_per_objfile>: New field.
8628 (dwarf2_per_objfile): Remove global.
8629 (get_dwarf2_per_objfile): New function.
8630 (set_dwarf2_per_objfile): New function.
8631 (dwarf2_build_psymtabs_hard): Change objfile parameter to
8632 dwarf2_per_objfile.
8633 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
8634 (read_abbrev_offset): Likewise.
8635 (read_indirect_string): Likewise.
8636 (read_indirect_line_string): Likewise.
8637 (read_indirect_string_at_offset): Likewise.
8638 (read_indirect_string_from_dwz): Likewise.
8639 (dwarf2_find_containing_comp_unit): Change objfile parameter to
8640 dwarf2_per_objfile.
8641 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
8642 (create_all_comp_units): Change objfile parameter to
8643 dwarf2_per_objfile.
8644 (create_all_type_units): Likewise.
8645 (process_queue): Add dwarf2_per_objfile parameter.
8646 (read_and_check_comp_unit_head): Likewise.
8647 (lookup_dwo_unit_in_dwp): Likewise.
8648 (get_dwp_file): Likewise.
8649 (process_cu_includes): Likewise.
8650 (struct free_dwo_file_cleanup_data): New struct.
8651 (dwarf2_has_info): Use get_dwarf2_per_objfile and
8652 set_dwarf2_per_objfile.
8653 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
8654 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
8655 context, adjust calls.
8656 (dw2_instantiate_symtab): Likewise.
8657 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
8658 (dw2_get_cu): Likewise.
8659 (create_cu_from_index_list): Change objfile parameter to
8660 dwarf2_per_objfile.
8661 (create_cus_from_index_list): Get dwarf2_per_objfile from
8662 context, adjust calls.
8663 (create_cus_from_index): Likewise.
8664 (create_signatured_type_table_from_index): Change objfile
8665 parameter to dwarf2_per_objfile.
8666 (create_signatured_type_table_from_debug_names): Change objfile
8667 parameter to dwarf2_per_objfile.
8668 (create_addrmap_from_index): Likewise.
8669 (create_addrmap_from_aranges): Likewise.
8670 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
8671 (dw2_setup): Remove.
8672 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
8673 context.
8674 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
8675 get_dwarf2_per_objfile.
8676 (dw2_forget_cached_source_info): Likewise.
8677 (dw2_map_symtabs_matching_filename): Likewise.
8678 (struct dw2_symtab_iterator) <index>: Remove.
8679 <dwarf2_per_objfile>: New field.
8680 (dw2_symtab_iter_init): Replace index parameter with
8681 dwarf2_per_objfile.
8682 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
8683 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
8684 (dw2_print_stats): Likewise.
8685 (dw2_dump): Likewise.
8686 (dw2_expand_symtabs_for_function): Likewise.
8687 (dw2_expand_all_symtabs): Likewise.
8688 (dw2_expand_symtabs_with_fullname): Likewise.
8689 (dw2_expand_marked_cus): Replace index and objfile parameters
8690 with dwarf2_per_objfile.
8691 (dw_expand_symtabs_matching_file_matcher): Add
8692 dwarf2_per_objfile parameter and adjust calls.
8693 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
8694 adjust calls.
8695 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
8696 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
8697 adjust calls.
8698 (create_cus_from_debug_names_list): Replace objfile parameter
8699 with dwarf2_per_objfile and adjust calls.
8700 (create_cus_from_debug_names): Likewise.
8701 (dwarf2_read_debug_names): Likewise.
8702 (mapped_debug_names::namei_to_name): Adjust call.
8703 (dw2_debug_names_iterator::next): Likewise.
8704 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8705 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
8706 (dw2_debug_names_dump): Likewise.
8707 (dw2_debug_names_expand_symtabs_for_function): Likewise.
8708 (dw2_debug_names_expand_symtabs_matching): Likewise.
8709 (dwarf2_initialize_objfile): Likewise.
8710 (dwarf2_build_psymtabs): Likewise.
8711 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
8712 this_cu.
8713 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
8714 (read_and_check_comp_unit_head): Likewise.
8715 (read_abbrev_offset): Likewise.
8716 (create_debug_type_hash_table): Likewise.
8717 (create_debug_types_hash_table): Likewise.
8718 (create_all_type_units): Replace objfile parameter with
8719 dwarf2_per_objfile.
8720 (add_type_unit): Add dwarf2_per_objfile parameter.
8721 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
8722 with dwarf2_per_objfile.
8723 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
8724 (lookup_dwp_signatured_type): Likewise.
8725 (lookup_signatured_type): Likewise.
8726 (read_cutu_die_from_dwo): Likewise.
8727 (init_tu_and_read_dwo_dies): Likewise.
8728 (init_cutu_and_read_dies): Likewise.
8729 (init_cutu_and_read_dies_no_follow): Likewise.
8730 (allocate_type_unit_groups_table): Add objfile parameter.
8731 (create_type_unit_group): Use dwarf2_per_objfile from cu.
8732 (get_type_unit_group): Likewise.
8733 (process_psymtab_comp_unit): Update call.
8734 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
8735 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
8736 (print_tu_stats): Likewise.
8737 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
8738 in void* parameter.
8739 (build_type_psymtabs): Change objfile parameter to
8740 dwarf2_per_objfile.
8741 (process_skeletonless_type_unit): Use dwarf2_per_objfile
8742 passed in void* parameter.
8743 (process_skeletonless_type_units): Change objfile parameter to
8744 dwarf2_per_objfile.
8745 (set_partial_user): Likewise.
8746 (dwarf2_build_psymtabs_hard): Likewise.
8747 (read_comp_units_from_section): Likewise.
8748 (create_all_comp_units): Likewise.
8749 (scan_partial_symbols): Update calls.
8750 (add_partial_symbol): Likewise.
8751 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
8752 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
8753 (process_queue): Add dwarf2_per_objfile parameter.
8754 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
8755 (compute_compunit_symtab_includes): Likewise.
8756 (process_cu_includes): Add dwarf2_per_objfile parameter.
8757 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
8758 (process_full_type_unit): Likewise.
8759 (process_imported_unit_die): Update call.
8760 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
8761 (read_file_scope): Likewise.
8762 (allocate_dwo_file_hash_table): Add objfile parameter.
8763 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
8764 (create_cus_hash_table): Likewise.
8765 (create_dwp_hash_table): Likewise.
8766 (create_dwo_unit_in_dwp_v1): Likewise.
8767 (create_dwp_v2_section): Likewise.
8768 (create_dwo_unit_in_dwp_v2): Likewise.
8769 (lookup_dwo_unit_in_dwp): Likewise.
8770 (try_open_dwop_file): Likewise.
8771 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
8772 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
8773 cleanup to include a reference to dwarf2_per_objfile.
8774 (open_dwp_file): Add dwarf2_per_objfile parameter.
8775 (open_and_init_dwp_file): Likewise.
8776 (get_dwp_file): Likewise.
8777 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
8778 (queue_and_load_all_dwo_tus): Update call.
8779 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
8780 data.
8781 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
8782 (dwarf2_ranges_process): Likewise.
8783 (dwarf2_get_pc_bounds): Likewise.
8784 (mark_common_block_symbol_computed): Likewise.
8785 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
8786 (dwarf2_read_abbrevs): Update call.
8787 (read_partial_die): Use dwarf2_per_objfile from cu.
8788 (find_partial_die): Likewise.
8789 (fixup_partial_die): Likewise.
8790 (read_attribute_value): Likewise.
8791 (read_indirect_string_at_offset_from): Add objfile parameter.
8792 (read_indirect_string_at_offset): Add dwarf2_per_objfile
8793 parameter.
8794 (read_indirect_string_from_dwz): Add objfile parameter.
8795 (read_indirect_string): Add objfile parameter.
8796 (read_addr_index_1): Add dwarf2_per_objfile parameter.
8797 (read_addr_index): Use dwarf2_per_objfile from cu.
8798 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
8799 call dw2_setup.
8800 (read_str_index): Use dwarf2_per_objfile from cu.
8801 (get_debug_line_section): Likewise.
8802 (read_formatted_entries): Add dwarf2_per_objfile parameter.
8803 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
8804 (new_symbol_full): Use dwarf2_per_objfile from cu.
8805 (build_error_marker_type): Likewise.
8806 (lookup_die_type): Likewise.
8807 (determine_prefix): Likewise.
8808 (follow_die_offset): Likewise.
8809 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
8810 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
8811 (dwarf2_fetch_die_type_sect_off): Likewise.
8812 (dwarf2_get_die_type): Likewise.
8813 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
8814 (get_signatured_type): Likewise.
8815 (get_DW_AT_signature_type): Likewise.
8816 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
8817 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
8818 (cu_debug_loc_section): Likewise.
8819 (fill_in_loclist_baton): Likewise.
8820 (dwarf2_symbol_mark_computed): Likewise.
8821 (dwarf2_find_containing_comp_unit): Change objfile parameter to
8822 dwarf2_per_objfile.
8823 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
8824 parameter.
8825 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
8826 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
8827 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
8828 (set_die_type): Use dwarf2_free_objfile from cu.
8829 (get_die_type_at_offset): Likewise.
8830 (dwarf2_per_objfile_free): Don't assign global variable.
8831 (debug_names) <constructor>: Add dwarf2_per_objfile
8832 parameter, update m_debugstrlookup construction.
8833 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
8834 parameter.
8835 <m_dwarf2_per_objfile>: New field.
8836 <lookup>: Use m_dwarf2_per_objfile.
8837 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
8838 (psyms_seen_size): Likewise.
8839 (write_gdbindex): Replace objfile parameter with
8840 dwarf2_per_objfile.
8841 (write_debug_names): Likewise.
8842 (write_psymtabs_to_index): Likewise.
8843 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
8844 calls.
8845
e3b94546
SM
88462018-01-07 Simon Marchi <simon.marchi@ericsson.com>
8847
8848 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
8849 <dwarf2_per_objfile>: New field.
8850 (struct dwarf2_per_cu_data) <objfile>: Remove.
8851 <dwarf2_per_objfile>: New field.
8852 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
8853 of objfile.
8854 (create_signatured_type_table_from_index): Likewise.
8855 (create_debug_type_hash_table): Likewise.
8856 (fill_in_sig_entry_from_dwo_entry): Likewise.
8857 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
8858 (create_type_unit_group): Assign dwarf2_per_objfile instead of
8859 objfile.
8860 (create_partial_symtab): Access objfile through
8861 dwarf2_per_objfile.
8862 (process_psymtab_comp_unit_reader): Likewise.
8863 (read_comp_units_from_section): Likewise.
8864 (scan_partial_symbols): Likewise.
8865 (add_partial_symbol): Likewise.
8866 (add_partial_subprogram): Likewise.
8867 (peek_die_abbrev): Likewise.
8868 (fixup_go_packaging): Likewise.
8869 (process_full_comp_unit): Likewise.
8870 (process_full_type_unit): Likewise.
8871 (process_imported_unit_die): Likewise.
8872 (dwarf2_compute_name): Likewise.
8873 (dwarf2_physname): Likewise.
8874 (read_import_statement): Likewise.
8875 (create_cus_hash_table): Assign dwarf2_physname instead of
8876 objfile.
8877 (read_func_scope): Access objfile through dwarf2_per_objfile.
8878 (read_lexical_block_scope): Likewise.
8879 (read_call_site_scope): Likewise.
8880 (read_variable): Likewise.
8881 (dwarf2_rnglists_process): Likewise.
8882 (dwarf2_ranges_process): Likewise.
8883 (dwarf2_ranges_read): Likewise.
8884 (dwarf2_record_block_ranges): Likewise.
8885 (dwarf2_add_field): Likewise.
8886 (dwarf2_add_member_fn): Likewise.
8887 (read_structure_type): Likewise.
8888 (process_structure_scope): Likewise.
8889 (read_enumeration_type): Likewise.
8890 (read_array_type): Likewise.
8891 (read_common_block): Likewise.
8892 (read_namespace_type): Likewise.
8893 (read_namespace): Likewise.
8894 (read_module_type): Likewise.
8895 (read_tag_pointer_type): Likewise.
8896 (read_tag_ptr_to_member_type): Likewise.
8897 (read_tag_string_type): Likewise.
8898 (read_subroutine_type): Likewise.
8899 (read_typedef): Likewise.
8900 (read_base_type): Likewise.
8901 (attr_to_dynamic_prop): Likewise.
8902 (read_subrange_type): Likewise.
8903 (read_unspecified_type): Likewise.
8904 (load_partial_dies): Likewise.
8905 (read_partial_die): Likewise.
8906 (find_partial_die): Likewise.
8907 (guess_partial_die_structure_name): Likewise.
8908 (fixup_partial_die): Likewise.
8909 (read_attribute_value): Likewise.
8910 (read_addr_index_from_leb128): Likewise.
8911 (dwarf2_read_addr_index): Likewise.
8912 (dwarf2_string_attr): Likewise.
8913 (lnp_state_machine::check_line_address): Likewise.
8914 (dwarf_decode_lines_1): Likewise.
8915 (dwarf_decode_lines): Likewise.
8916 (dwarf2_start_symtab): Likewise.
8917 (var_decode_location): Likewise.
8918 (new_symbol_full): Likewise.
8919 (dwarf2_const_value_data): Likewise.
8920 (dwarf2_const_value_attr): Likewise.
8921 (dwarf2_const_value): Likewise.
8922 (die_type): Likewise.
8923 (die_containing_type): Likewise.
8924 (lookup_die_type): Likewise.
8925 (guess_full_die_structure_name): Likewise.
8926 (anonymous_struct_prefix): Likewise.
8927 (dwarf2_name): Likewise.
8928 (follow_die_ref_or_sig): Likewise.
8929 (follow_die_offset): Likewise.
8930 (follow_die_ref): Likewise.
8931 (dwarf2_fetch_die_loc_sect_off): Likewise.
8932 (dwarf2_fetch_constant_bytes): Likewise.
8933 (dwarf2_fetch_die_type_sect_off): Likewise.
8934 (dwarf2_get_die_type): Likewise.
8935 (follow_die_sig): Likewise.
8936 (decode_locdesc): Likewise.
8937 (dwarf2_per_cu_objfile): Likewise.
8938 (dwarf2_per_cu_text_offset): Likewise.
8939 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
8940 objfile.
8941 (set_die_type): Access objfile through
8942 dwarf2_per_objfile.
8943
b01ba14d
SM
89442018-01-07 Simon Marchi <simon.marchi@ericsson.com>
8945
8946 * valprint.c (converted_character_d): Remove typedef.
8947 (DEF_VEC_O (converted_character_d)): Remove.
8948 (count_next_character): Use std::vector.
8949 (print_converted_chars_to_obstack): Likewise.
8950 (generic_printstr): Likewise.
8951
4d0fdd9b
SM
89522018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
8953
8954 * xml-support.h (struct gdb_xml_value): Add constructor.
8955 <value>: Change type to unique_xmalloc_ptr.
8956 (gdb_xml_value_s): Remove typedef.
8957 (DEF_VEC_O (gdb_xml_value_s)): Remove.
8958 (gdb_xml_element_start_handler): Change parameter type to
8959 std::vector.
8960 (xml_find_attribute): Likewise.
8961 * xml-support.c (xml_find_attribute): Change parameter type to
8962 std::vector and adjust.
8963 (gdb_xml_values_cleanup): Remove.
8964 (gdb_xml_parser::start_element): Adjust to std::vector.
8965 (xinclude_start_include): Change paraeter type to std::vector
8966 and adjust.
8967 * btrace.c (check_xml_btrace_version): Likewise.
8968 (parse_xml_btrace_block): Likewise.
8969 (parse_xml_btrace_pt_config_cpu): Likewise.
8970 (parse_xml_btrace_pt): Likewise.
8971 (parse_xml_btrace_conf_bts): Likewise.
8972 (parse_xml_btrace_conf_pt): Likewise.
8973 * memory-map.c (memory_map_start_memory): Likewise.
8974 (memory_map_start_property): Likewise.
8975 * osdata.c (osdata_start_osdata): Likewise.
8976 (osdata_start_item): Likewise.
8977 (osdata_start_column): Likewise.
8978 * remote.c (start_thread): Likewise.
8979 * solib-aix.c (library_list_start_library): Likewise.
8980 (library_list_start_list): Likewise.
8981 * solib-svr4.c (library_list_start_library): Likewise.
8982 (svr4_library_list_start_list): Likewise.
8983 * solib-target.c (library_list_start_segment): Likewise.
8984 (library_list_start_section): Likewise.
8985 (library_list_start_library): Likewise.
8986 (library_list_start_list): Likewise.
8987 * tracepoint.c (traceframe_info_start_memory): Likewise.
8988 (traceframe_info_start_tvar): Likewise.
8989 * xml-syscall.c (syscall_start_syscall): Likewise.
8990 * xml-tdesc.c (tdesc_start_target): Likewise.
8991 (tdesc_start_feature): Likewise.
8992 (tdesc_start_reg): Likewise.
8993 (tdesc_start_union): Likewise.
8994 (tdesc_start_struct): Likewise.
8995 (tdesc_start_flags): Likewise.
8996 (tdesc_start_enum): Likewise.
8997 (tdesc_start_field): Likewise.
8998 (tdesc_start_enum_value): Likewise.
8999 (tdesc_start_vector): Likewise.
9000
f979c73f
SM
90012018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9002
9003 * extension.h (struct xmethod_worker) <clone>: Remove.
9004 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
9005 Remove.
9006 (python_xmethod_worker::clone): Remove.
9007 * valops.c (find_overload_match): Use std::move instead of
9008 clone.
9009
ba18742c
SM
90102018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9011
9012 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
9013 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
9014 <free_xmethod_worker_data>: Remove.
9015 <get_matching_xmethod_workers>: Chance VEC to std::vector.
9016 <get_xmethod_arg_types>: Remove.
9017 <get_xmethod_result_type>: Remove.
9018 <invoke_xmethod>: Remove.
9019 * extension.c (new_xmethod_worker): Remove.
9020 (clone_xmethod_worker): Remove.
9021 (get_matching_xmethod_workers): Return void, pass std::vector by
9022 pointer.
9023 (get_xmethod_arg_types): Rename to...
9024 (xmethod_worker::get_arg_types): ... this, and adjust.
9025 (get_xmethod_result_type): Rename to...
9026 (xmethod_worker::get_result_type): ... this, and adjust.
9027 (invoke_xmethod): Remove.
9028 (free_xmethod_worker): Remove.
9029 (free_xmethod_worker_vec): Remove.
9030 * extension.h (enum ext_lang_rc): Move here from
9031 extension-priv.h.
9032 (struct xmethod_worker): Add constructor and destructor.
9033 <data>: Remove.
9034 <value>: Remove.
9035 <invoke, clone, do_get_result_type, do_get_arg_types>: New
9036 virtual pure methods.
9037 <get_arg_types, get_result_type>: New methods.
9038 (xmethod_worker_ptr): Remove typedef.
9039 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
9040 (xmethod_worker_vec): Remove typedef.
9041 (xmethod_worker_up): New typedef.
9042 (invoke_xmethod): Remove.
9043 (clone_xmethod_worker): Remove.
9044 (free_xmethod_worker): Remove.
9045 (free_xmethod_worker_vec): Remove.
9046 (get_xmethod_arg_types): Remove.
9047 (get_xmethod_result_type): Remove.
9048 * valops.c (find_method_list): Use std::vector, don't use
9049 intermediate vector.
9050 (value_find_oload_method_list): Use std::vector.
9051 (find_overload_match): Use std::vector.
9052 (find_oload_champ): Use std::vector.
9053 * value.c (value_free): Use operator delete.
9054 (value_of_xmethod): Rename to...
9055 (value_from_xmethod): ... this. Don't assign
9056 xmethod_worker::value, take rvalue-reference.
9057 (result_type_of_xmethod): Adjust.
9058 (call_xmethod): Adjust.
9059 * value.h: Include extension.h.
9060 (struct xmethod_worker): Don't forward-declare.
9061 (value_of_xmethod): Rename to...
9062 (value_from_xmethod): ... this, take rvalue-reference.
9063 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
9064 (struct python_xmethod_worker): ... this, add constructor and
9065 destructor.
9066 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
9067 (gdbpy_free_xmethod_worker_data): Rename to...
9068 (python_xmethod_worker::~python_xmethod_worker): ... this and
9069 adjust.
9070 (gdbpy_clone_xmethod_worker_data): Rename to...
9071 (python_xmethod_worker::clone): ... this and adjust.
9072 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
9073 temporary vector.
9074 (gdbpy_get_xmethod_arg_types): Rename to...
9075 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
9076 (gdbpy_get_xmethod_result_type): Rename to...
9077 (python_xmethod_worker::do_get_result_type): ... this and
9078 adjust.
9079 (gdbpy_invoke_xmethod): Rename to...
9080 (python_xmethod_worker::invoke): ... this and adjust.
9081 (new_python_xmethod_worker): Rename to...
9082 (python_xmethod_worker::python_xmethod_worker): ... this and
9083 adjust.
9084 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
9085 Remove.
9086 (gdbpy_free_xmethod_worker_data): Remove.
9087 (gdbpy_get_matching_xmethod_workers): Use std::vector.
9088 (gdbpy_get_xmethod_arg_types): Remove.
9089 (gdbpy_get_xmethod_result_type): Remove.
9090 (gdbpy_invoke_xmethod): Remove.
9091 * python/python.c (python_extension_ops): Remove obsolete
9092 callbacks.
9093
e379cee6
PA
90942018-01-05 Pedro Alves <palves@redhat.com>
9095
9096 PR gdb/18653
9097 * common/signals-state-save-restore.c
9098 (save_original_signals_state): New parameter 'quiet'. Warn if we
9099 find a custom handler preinstalled, instead of internal erroring.
9100 But only warn if !quiet.
9101 * common/signals-state-save-restore.h
9102 (save_original_signals_state): New parameter 'quiet'.
9103 * main.c (captured_main_1): Move save_original_signals_state call
9104 after option handling, and pass QUIET.
9105
a655456c
PA
91062018-01-05 Pedro Alves <palves@redhat.com>
9107
9108 * spu-tdep.c (spu_catch_start): Pass
9109 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
9110
de63c46b
PA
91112018-01-05 Pedro Alves <palves@redhat.com>
9112
9113 PR gdb/22670
9114 * ada-lang.c (literal_symbol_name_matcher): New function.
9115 (ada_get_symbol_name_matcher): Use it for
9116 symbol_name_match_type::SEARCH_NAME.
9117 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
9118 it down instead of assuming symbol_name_match_type::FULL.
9119 * block.h (block_lookup_symbol): New parameter 'match_type'.
9120 * c-valprint.c (print_unpacked_pointer): Use
9121 lookup_symbol_search_name instead of lookup_symbol.
9122 * compile/compile-object-load.c (get_out_value_type): Pass down
9123 symbol_name_match_type::SEARCH_NAME.
9124 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
9125 symbol_name_match_type::FULL.
9126 * cp-support.c (cp_get_symbol_name_matcher): Handle
9127 symbol_name_match_type::SEARCH_NAME.
9128 * infrun.c (insert_exception_resume_breakpoint): Use
9129 lookup_symbol_search_name.
9130 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
9131 * psymtab.c (maintenance_check_psymtabs): Use
9132 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
9133 * stack.c (print_frame_args): Use lookup_symbol_search_name and
9134 SYMBOL_SEARCH_NAME.
9135 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
9136 if symbol_name_match_type::SEARCH_NAME.
9137 (lookup_symbol_in_language): Pass down
9138 symbol_name_match_type::FULL.
9139 (lookup_symbol_search_name): New.
9140 (lookup_language_this): Pass down
9141 symbol_name_match_type::SEARCH_NAME.
9142 (lookup_symbol_aux, lookup_local_symbol): New parameter
9143 'match_type'. Pass it down.
9144 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
9145 (lookup_symbol_search_name): New declaration.
9146 (lookup_symbol_in_block): New 'match_type' parameter.
9147
f98fc17b
PA
91482018-01-05 Pedro Alves <palves@redhat.com>
9149
9150 PR gdb/22670
9151 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
9152 ada_lookup_symbol.
9153 (ada_lookup_symbol): Reimplement in terms of
9154 ada_lookup_symbol_list, bits factored out from
9155 ada_lookup_encoded_symbol.
9156
342f8240
JB
91572018-01-05 Joel Brobecker <brobecker@adacore.com>
9158
9159 * ada-exp.y (write_object_renaming): When subscripting an array
9160 using a symbol as the index, pass the block in call to
9161 ada_lookup_encoded_symbol when looking that symbol up.
9162
7150d33c
JG
91632018-01-05 Jerome Guitton <guitton@adacore.com>
9164
9165 * ada-lang.c (ada_array_length): Use ada_index_type instead of
9166 TYPE_INDEX_TYPE.
9167
cc0e770c
JB
91682018-01-05 Joel Brobecker <brobecker@adacore.com>
9169
9170 * ada-lang.c (ada_to_fixed_value_create): Add handling of
9171 the case where VALUE_LVAL (val0) is not lval_memory.
9172
f79da888 91732018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
9174
9175 * ada-valprint.c (print_optional_low_bound): Handle
9176 character-indexed array printing like boolean-indexed array
9177 printing.
9178
cd385f94
JB
91792018-01-05 Joel Brobecker <brobecker@adacore.com>
9180
9181 * NEWS: Create a new section for the next release branch.
9182 Rename the section of the current branch, now that it has
9183 been cut.
9184
09aca949
JB
91852018-01-05 Joel Brobecker <brobecker@adacore.com>
9186
9187 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
9188 * version.in: Bump version to 8.1.50.DATE-git.
9189
9f757bf7
XR
91902018-01-03 Xavier Roirand <roirand@adacore.com>
9191
9192 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
9193 Add field.
9194 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
9195 Add field.
9196 (default_exception_support_info) <catch_handlers_sym>: Add field.
9197 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
9198 (ada_exception_name_addr_1): Add "catch handlers" handling.
9199 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
9200 Update all callers.
9201 (create_excep_cond_exprs) <ex>: Add parameter.
9202 (re_set_exception): Update create_excep_cond_exprs call.
9203 (print_it_exception, print_one_exception, print_mention_exception)
9204 (print_recreate_exception): Add "catch handler" handling.
9205 (allocate_location_catch_handlers, re_set_catch_handlers)
9206 (check_status_catch_handlers, print_it_catch_handlers)
9207 (print_one_catch_handlers, print_mention_catch_handlers)
9208 (print_recreate_catch_handlers): New function.
9209 (catch_handlers_breakpoint_ops): New variable.
9210 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
9211 Add parameter. Add "catch handler" handling.
9212 (ada_exception_sym_name, ada_exception_breakpoint_ops):
9213 Add "catch handler" handling.
9214 (ada_exception_catchpoint_cond_string): Add "catch handler"
9215 handling.
9216 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
9217 call.
9218 (catch_ada_handlers_command): New function.
9219 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
9220 operations structure.
9221 (_initialize_ada_language): Add "catch handlers" command entry.
9222 * NEWS: Document "catch handlers" feature.
9223
9fe561ab
JB
92242018-01-02 Joel Brobecker <brobecker@adacore.com>
9225
9226 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
9227 account when creating the array type of the slice.
9228 (ada_value_slice): Likewise.
9229
a405673c
JB
92302018-01-02 Joel Brobecker <brobecker@adacore.com>
9231
9232 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
9233 New enum value.
9234 (create_array_type_with_stride): Add byte_stride_prop parameter.
9235 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
9236 New parameter. Update all callers in this file.
9237 (array_type_has_dynamic_stride): New function.
9238 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
9239 of arrays with dynamic byte strides.
9240 * dwarf2read.c (read_array_type): Add support for dynamic
9241 DW_AT_byte_stride attributes.
9242
74a2f8ff
JB
92432018-01-02 Joel Brobecker <brobecker@adacore.com>
9244
9245 * dwarf2read.c (read_unspecified_type): Treat
9246 DW_TAG_enumeration_type DIEs from Ada units as stubs.
9247
e2882c85
JB
92482018-01-01 Joel Brobecker <brobecker@adacore.com>
9249
9250 Update copyright year range in all GDB files.
9251
1690bb24
JB
92522018-01-01 Joel Brobecker <brobecker@adacore.com>
9253
9254 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
9255 and gdb/testsuite/gdb.base/step-line.c.
9256
0f0c98a8
JB
92572018-01-01 Joel Brobecker <brobecker@adacore.com>
9258
9259 * copyright.py (main): Dump the contents of
9260 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
9261 even if BY_HAND is empty.
9262
82e1e79a
JB
92632018-01-01 Joel Brobecker <brobecker@adacore.com>
9264
9265 * top.c (print_gdb_version): Update Copyright year in version
9266 message.
9267
053f54e5 92682018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 9269
053f54e5 9270 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 9271
053f54e5 9272For older changes see ChangeLog-2017.
c906108c
SS
9273\f
9274Local Variables:
9275mode: change-log
9276left-margin: 8
9277fill-column: 74
9278version-control: never
57da7796 9279coding: utf-8
c906108c 9280End: