]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Make print_command_trace varargs
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1263a9d5
TT
12018-05-04 Tom Tromey <tom@tromey.com>
2
3 * top.c (execute_command): Update.
4 * cli/cli-script.h (print_command_lines): Now varargs.
5 * cli/cli-script.c (print_command_lines): Now varargs.
6 (execute_control_command_1) <case while_control, case if_control>:
7 Update.
8
12973681
TT
92018-05-04 Tom Tromey <tom@tromey.com>
10
11 * tracepoint.c (all_tracepoint_actions): Rename from
12 all_tracepoint_actions_and_cleanup. Change return type.
13 (actions_command, encode_actions_1, encode_actions)
14 (trace_dump_actions, tdump_command): Update.
15 * remote.c (remote_download_command_source): Update.
16 * python/python.c (gdbpy_eval_from_control_command)
17 (python_command, python_interactive_command): Update.
18 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
19 * guile/guile.c (guile_command)
20 (gdbscm_eval_from_control_command, guile_command): Update.
21 * compile/compile.c (compile_code_command)
22 (compile_print_command, compile_to_object): Update.
23 * cli/cli-script.h (struct command_lines_deleter): New.
24 (counted_command_line): New typedef.
25 (struct command_line): Add constructor, destructor.
26 <body_list>: Remove.
27 <body_list_0, body_list_1>: New members.
28 (command_line_up): Remove typedef.
29 (read_command_lines, read_command_lines_1, get_command_line):
30 Update.
31 (copy_command_lines): Don't declare.
32 * cli/cli-script.c (build_command_line): Use "new".
33 (get_command_line): Return counted_command_line.
34 (print_command_lines, execute_user_command)
35 (execute_control_command_1, while_command, if_command): Update.
36 (realloc_body_list): Remove.
37 (process_next_line, recurse_read_control_structure): Update.
38 (read_command_lines, read_command_lines_1): Return counted_command_line.
39 (free_command_lines): Use "delete".
40 (copy_command_lines): Remove.
41 (define_command, document_command, show_user_1): Update.
42 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
43 a counted_command_line.
44 * breakpoint.h (counted_command_line): Remove typedef.
45 (breakpoint_set_commands): Update.
46 * breakpoint.c (check_no_tracepoint_commands)
47 (validate_commands_for_breakpoint): Update.
48 (breakpoint_set_commands): Change commands to be a
49 counted_command_line.
50 (commands_command_1, update_dprintf_command_list)
51 (create_tracepoint_from_upload): Update.
52
e2fc72e2
TT
532018-05-04 Tom Tromey <tom@tromey.com>
54
55 * cli/cli-decode.h (cmd_list_element): New constructor.
56 (~cmd_list_element): New destructor.
57 (struct cmd_list_element): Add initializers.
58 * cli/cli-decode.c (do_add_cmd): Use "new".
59 (delete_cmd): Use "delete".
60
a3b60e45
JK
612018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
62 Pedro Alves <palves@redhat.com>
63
64 PR breakpoints/19806 and support for PR external/20207.
65 * NEWS: Mention Aarch64 watchpoint improvements.
66 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
67 watchpoints and PR external/20207 watchpoints.
68 * nat/aarch64-linux-hw-point.c
69 (kernel_supports_any_contiguous_range): New.
70 (aarch64_watchpoint_offset): New.
71 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
72 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
73 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
74 (aarch64_align_watchpoint): New parameters aligned_offset_p and
75 next_addr_orig_p. Support PR external/20207 watchpoints.
76 (aarch64_downgrade_regs): New.
77 (aarch64_dr_state_insert_one_point): New parameters offset and
78 addr_orig.
79 (aarch64_dr_state_remove_one_point): Likewise.
80 (aarch64_handle_breakpoint): Update caller.
81 (aarch64_handle_aligned_watchpoint): Likewise.
82 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
83 aligned_offset.
84 (aarch64_linux_set_debug_regs): Remove const from state. Call
85 aarch64_downgrade_regs.
86 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
87 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
88 (DR_CONTROL_MASK): ... this.
89 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
90 (unsigned int aarch64_watchpoint_offset): New prototype.
91 (aarch64_linux_set_debug_regs): Remove const from state.
92 * utils.c (align_up, align_down): Move to ...
93 * common/common-utils.c (align_up, align_down): ... here.
94 * utils.h (align_up, align_down): Move to ...
95 * common/common-utils.h (align_up, align_down): ... here.
96
05bc7456
JB
972018-05-04 Joel Brobecker <brobecker@adacore.com>
98
99 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
100 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
101 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
102 Re-implement to match the ABI as summarized in GCC's
103 gcc/config/sparc/sparc.c. All callers updated.
104 (sparc32_store_arguments): Remove assertion.
105
2f433492
TT
1062018-05-04 Tom Tromey <tom@tromey.com>
107
108 * printcmd.c: Don't include tui.h.
109 (decode_format): Use skip_spaces.
110
9be2ae8f
TT
1112018-05-04 Tom Tromey <tom@tromey.com>
112
113 PR gdb/22619:
114 * printcmd.c (last_count): New global.
115 (x_command): Use saved count when repeating.
116
f0b3976b
TT
1172018-05-04 Tom Tromey <tom@tromey.com>
118
119 * nto-procfs.c (do_closedir_cleanup): Remove.
120 (procfs_pidlist): Use gdb_dir_up.
121 * procfs.c (do_closedir_cleanup): Remove.
122 (proc_update_threads): Use gdb_dir_up.
123 * common/filestuff.h (struct gdb_dir_deleter): New.
124 (gdb_dir_up): New typedef.
125
862d101a
TT
1262018-05-04 Tom Tromey <tom@tromey.com>
127
128 * ada-lang.c (print_mention_exception): Use std::string.
129
cb7de75e
TT
1302018-05-04 Tom Tromey <tom@tromey.com>
131
132 * ada-lang.c (create_excep_cond_exprs): Update.
133 (ada_exception_catchpoint_cond_string): Use std::string.
134
49d83361
TT
1352018-05-04 Tom Tromey <tom@tromey.com>
136
137 * ada-lang.c (xget_renaming_scope): Return std::string.
138 (old_renaming_is_invisible): Update.
139
ade72a34
TT
1402018-05-04 Tom Tromey <tom@tromey.com>
141
142 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
143 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
144
2be4d7f0
UW
1452018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
146
147 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
148
69b6ecb0
TT
1492018-05-04 Tom Tromey <tom@tromey.com>
150
151 * remote.c (remote_query_supported_append): Change type.
152 (remote_check_symbols): Update.
153
bf27f0e2
PP
1542018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
155
156 PR gdb/11420
157 * configure.ac: Prepend libpython.
158 * python/python-config.py: Likewise.
159 * configure: Regenerate.
160
4ea17de8
SM
1612018-05-03 Simon Marchi <simon.marchi@ericsson.com>
162
163 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
164
bd732259
PA
1652018-05-03 Pedro Alves <palves@redhat.com>
166
167 * s390-linux-nat.c
168 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
169 override. Write 'true' instead of '1'.
170 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
171 declaration.
172
d9f719f1
PA
1732018-05-02 Pedro Alves <palves@redhat.com>
174
175 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
176 add_inf_child_target.
177 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
178 add_inf_child_target.
179 * aix-thread.c (aix_thread_target_info): New.
180 (aix_thread_target) <shortname, longname, doc>: Delete.
181 <info>: New.
182 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
183 add_inf_child_target.
184 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
185 add_inf_child_target.
186 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
187 add_inf_child_target.
188 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
189 add_inf_child_target.
190 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
191 add_inf_child_target.
192 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
193 add_inf_child_target.
194 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
195 add_inf_child_target.
196 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
197 add_inf_child_target.
198 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
199 add_inf_child_target.
200 * bfd-target.c (target_bfd_target_info): New.
201 (target_bfd) <shortname, longname, doc>: Delete.
202 <info>: New.
203 * bsd-kvm.c (bsd_kvm_target_info): New.
204 (bsd_kvm_target) <shortname, longname, doc>: Delete.
205 <info>: New.
206 (bsd_kvm_target::open): Rename to ...
207 (bsd_kvm_target_open): ... this. Adjust.
208 * bsd-uthread.c (bsd_uthread_target_info): New.
209 (bsd_uthread_target) <shortname, longname, doc>: Delete.
210 <info>: New.
211 * corefile.c (core_file_command): Adjust.
212 * corelow.c (core_target_info): New.
213 (core_target) <shortname, longname, doc>: Delete.
214 <info>: New.
215 (core_target::open): Rename to ...
216 (core_target_open): ... this. Adjust.
217 * ctf.c (ctf_target_info): New.
218 (ctf_target) <shortname, longname, doc>: Delete.
219 <info>: New.
220 (ctf_target::open): Rename to ...
221 (ctf_target_open): ... this.
222 (_initialize_ctf): Adjust.
223 * exec.c (exec_target_info): New.
224 (exec_target) <shortname, longname, doc>: Delete.
225 <info>: New.
226 (exec_target::open): Rename to ...
227 (exec_target_open): ... this.
228 * gdbcore.h (core_target_open): Declare.
229 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
230 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
231 add_inf_child_target.
232 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
233 add_inf_child_target.
234 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
235 add_inf_child_target.
236 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
237 add_inf_child_target.
238 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
239 add_inf_child_target.
240 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
241 add_inf_child_target.
242 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
243 add_inf_child_target.
244 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
245 add_inf_child_target.
246 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
247 add_inf_child_target.
248 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
249 add_inf_child_target.
250 * inf-child.c (inf_child_target_info): New.
251 (inf_child_target::info): New.
252 (inf_child_open_target): Remove 'target' parameter. Use
253 get_native_target instead.
254 (inf_child_target::open): Delete.
255 (add_inf_child_target): New.
256 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
257 Delete.
258 <info>: New.
259 (add_inf_child_target): Declare.
260 (inf_child_open_target): Declare.
261 * linux-thread-db.c (thread_db_target_info): New.
262 (thread_db_target) <shortname, longname, doc>: Delete.
263 <info>: New.
264 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
265 add_inf_child_target.
266 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
267 add_inf_child_target.
268 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
269 add_inf_child_target.
270 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
271 add_inf_child_target.
272 * make-target-delegates (print_class): Adjust.
273 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
274 add_inf_child_target.
275 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
276 add_inf_child_target.
277 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
278 add_inf_child_target.
279 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
280 add_inf_child_target.
281 * nto-procfs.c (nto_native_target_info): New.
282 (nto_procfs_target_native) <shortname, longname, doc>:
283 Delete.
284 <info>: New.
285 (nto_procfs_target_info): New.
286 (nto_procfs_target_procfs) <shortname, longname, doc>:
287 Delete.
288 <info>: New.
289 (init_procfs_targets): Adjust.
290 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
291 add_inf_child_target.
292 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
293 add_inf_child_target.
294 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
295 add_inf_child_target.
296 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
297 add_inf_child_target.
298 * ravenscar-thread.c (ravenscar_target_info): New.
299 (ravenscar_thread_target) <shortname, longname, doc>:
300 Delete.
301 <info>: New.
302 * record-btrace.c (record_btrace_target_info):
303 (record_btrace_target) <shortname, longname, doc>: Delete.
304 <info>: New.
305 (record_btrace_target::open): Rename to ...
306 (record_btrace_target_open): ... this. Adjust.
307 * record-full.c (record_longname, record_doc): New.
308 (record_full_base_target) <shortname, longname, doc>: Delete.
309 <info>: New.
310 (record_full_target_info): New.
311 (record_full_target): <shortname>: Delete.
312 <info>: New.
313 (record_full_core_open_1, record_full_open_1): Update comments.
314 (record_full_base_target::open): Rename to ...
315 (record_full_open): ... this.
316 (cmd_record_full_restore): Update.
317 (_initialize_record_full): Update.
318 * remote-sim.c (remote_sim_target_info): New.
319 (gdbsim_target) <shortname, longname, doc>: Delete.
320 <info>: New.
321 (gdbsim_target::open): Rename to ...
322 (gdbsim_target_open): ... this.
323 (_initialize_remote_sim): Adjust.
324 * remote.c (remote_doc): New.
325 (remote_target_info): New.
326 (remote_target) <shortname, longname, doc>: Delete.
327 <info>: New.
328 (extended_remote_target_info): New.
329 (extended_remote_target) <shortname, longname, doc>: Delete.
330 <info>: New.
331 (remote_target::open_1): Make static. Adjust.
332 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
333 * s390-linux-nat.c (_initialize_s390_nat): Use
334 add_inf_child_target.
335 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
336 add_inf_child_target.
337 * sol-thread.c (thread_db_target_info): New.
338 (sol_thread_target) <shortname, longname, doc>: Delete.
339 <info>: New.
340 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
341 add_inf_child_target.
342 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
343 add_inf_child_target.
344 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
345 add_inf_child_target.
346 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
347 add_inf_child_target.
348 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
349 add_inf_child_target.
350 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
351 add_inf_child_target.
352 * spu-linux-nat.c (_initialize_spu_nat): Use
353 add_inf_child_target.
354 * spu-multiarch.c (spu_multiarch_target_info): New.
355 (spu_multiarch_target) <shortname, longname, doc>: Delete.
356 <info>: New.
357 * target-delegates.c: Regenerate.
358 * target.c: Include <unordered_map>.
359 (target_ops_p): Delete.
360 (DEF_VEC_P(target_ops_p)): Delete.
361 (target_factories): New.
362 (test_target_info): New.
363 (test_target_ops::info): New.
364 (open_target): Adjust to use target_factories.
365 (add_target_with_completer): Rename to ...
366 (add_target): ... this. Change prototype. Register target_info
367 and open callback in target_factories. Register target_info in
368 command context instead of target_ops.
369 (add_target): Delete old implementation.
370 (add_deprecated_target_alias): Change prototype. Adjust.
371 (the_native_target): New.
372 (set_native_target, get_native_target): New.
373 (find_default_run_target): Use the_native_target.
374 (find_attach_target, find_run_target): Simplify.
375 (target_ops::open): Delete.
376 (dummy_target_info): New.
377 (dummy_target::shortname, dummy_target::longname)
378 (dummy_target::doc): Delete.
379 (dummy_target::info): New.
380 (debug_target::shortname, debug_target::longname)
381 (debug_target::doc): Delete.
382 (debug_target::info): New.
383 * target.h (struct target_info): New.
384 (target_ops::~target_ops): Add comment.
385 (target_ops::info): New.
386 (target_ops::shortname, target_ops::longname, target_ops::doc): No
387 longer virtual. Implement in terms of target_info.
388 (set_native_target, get_native_target): Declare.
389 (target_open_ftype): New.
390 (add_target, add_target_with_completer)
391 (add_deprecated_target_alias): Change prototype.
392 (test_target) <shortname, longname, doc>: Delete.
393 <info>: New.
394 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
395 add_inf_child_target.
396 * tracefile-tfile.c (tfile_target_info): New.
397 (tfile_target) <shortname, longname, doc>: Delete.
398 <info>: New.
399 (tfile_target::open): Rename to ...
400 (tfile_target_open): ... this.
401 (_initialize_tracefile_tfile): Adjust.
402 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
403 add_inf_child_target.
404 * windows-nat.c (_initialize_windows_nat): Use
405 add_inf_child_target.
406 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
407 add_inf_child_target.
408
135340af
PA
4092018-05-02 Pedro Alves <palves@redhat.com>
410
411 * linux-nat.h (linux_nat_target) <low_new_thread,
412 low_delete_thread, low_new_fork, low_forget_process,
413 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
414 New virtual methods.
415 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
416 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
417 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
418 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
419 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
420 Delete.
421 * linux-fork.c (delete_fork): Adjust to call low method.
422 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
423 (linux_nat_new_fork, linux_nat_forget_process_hook)
424 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
425 (linux_nat_status_is_event):
426 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
427 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
428 to call low method.
429 (sigtrap_is_event): Rename to ...
430 (linux_nat_target::low_status_is_event): ... this.
431 (linux_nat_set_status_is_event): Delete.
432 (save_stop_reason, linux_nat_wait_1)
433 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
434 low methods.
435 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
436 (linux_nat_set_new_fork, linux_nat_set_forget_process)
437 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
438 (linux_nat_set_prepare_to_resume): Delete.
439 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
440 low virtual methods.
441 * amd64-linux-nat.c: Likewise.
442 * arm-linux-nat.c: Likewise.
443 * i386-linux-nat.c: Likewise.
444 * ia64-linux-nat.c: Likewise.
445 * mips-linux-nat.c: Likewise.
446 * ppc-linux-nat.c: Likewise.
447 * s390-linux-nat.c: Likewise.
448 * sparc64-linux-nat.c: Likewise.
449 * x86-linux-nat.c: Likewise.
450 * x86-linux-nat.h: Include "nat/x86-linux.h".
451 (x86_linux_nat_target) <low_new_fork, low_forget_process,
452 low_prepare_to_resume, low_new_thread, low_delete_thread>:
453 Override methods.
454
57810aa7
PA
4552018-05-02 Pedro Alves <palves@redhat.com>
456
457 * target.h (target_ops)
458 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
459 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
460 stopped_by_watchpoint, have_continuable_watchpoint,
461 stopped_data_address, watchpoint_addr_within_range,
462 can_accel_watchpoint_condition, can_run, thread_alive,
463 has_all_memory, has_memory, has_stack, has_registers,
464 has_execution, can_async_p, is_async_p, supports_non_stop,
465 always_non_stop_p, can_execute_reverse, supports_multi_process,
466 supports_enable_disable_tracepoint,
467 supports_disable_randomization, supports_string_tracing,
468 supports_evaluation_of_breakpoint_conditions,
469 can_run_breakpoint_commands, filesystem_is_local,
470 can_download_tracepoint, get_trace_state_variable_value,
471 set_trace_notes, get_tib_address, use_agent, can_use_agent,
472 record_is_replaying, record_will_replay,
473 augmented_libraries_svr4_read>: Adjust to return bool.
474 * aarch64-linux-nat.c: All implementations adjusted.
475 * aix-thread.c: All implementations adjusted.
476 * arm-linux-nat.c: All implementations adjusted.
477 * breakpoint.c: All implementations adjusted.
478 * bsd-kvm.c: All implementations adjusted.
479 * bsd-uthread.c: All implementations adjusted.
480 * corelow.c: All implementations adjusted.
481 * ctf.c: All implementations adjusted.
482 * darwin-nat.c: All implementations adjusted.
483 * darwin-nat.h: All implementations adjusted.
484 * exec.c: All implementations adjusted.
485 * fbsd-nat.c: All implementations adjusted.
486 * fbsd-nat.h: All implementations adjusted.
487 * gnu-nat.c: All implementations adjusted.
488 * gnu-nat.h: All implementations adjusted.
489 * go32-nat.c: All implementations adjusted.
490 * ia64-linux-nat.c: All implementations adjusted.
491 * inf-child.c: All implementations adjusted.
492 * inf-child.h: All implementations adjusted.
493 * inf-ptrace.c: All implementations adjusted.
494 * inf-ptrace.h: All implementations adjusted.
495 * linux-nat.c: All implementations adjusted.
496 * linux-nat.h: All implementations adjusted.
497 * mips-linux-nat.c: All implementations adjusted.
498 * nto-procfs.c: All implementations adjusted.
499 * ppc-linux-nat.c: All implementations adjusted.
500 * procfs.c: All implementations adjusted.
501 * ravenscar-thread.c: All implementations adjusted.
502 * record-btrace.c: All implementations adjusted.
503 * record-full.c: All implementations adjusted.
504 * remote-sim.c: All implementations adjusted.
505 * remote.c: All implementations adjusted.
506 * s390-linux-nat.c: All implementations adjusted.
507 * sol-thread.c: All implementations adjusted.
508 * spu-multiarch.c: All implementations adjusted.
509 * target-delegates.c: All implementations adjusted.
510 * target.c: All implementations adjusted.
511 * target.h: All implementations adjusted.
512 * tracefile-tfile.c: All implementations adjusted.
513 * tracefile.c: All implementations adjusted.
514 * tracefile.h: All implementations adjusted.
515 * windows-nat.c: All implementations adjusted.
516 * x86-linux-nat.h: All implementations adjusted.
517 * x86-nat.h: All implementations adjusted.
518
ad6a4e2d
PA
5192018-05-02 Pedro Alves <palves@redhat.com>
520
521 * make-target-delegates (scan_target_h): Don't trim lines here.
522 Replace sequences of tabs and/or whitespace with a single
523 whitespace.
524 (top level, parsing methods): Trim each line before processing it
525 here.
526
f6ac5f3d
PA
5272018-05-02 Pedro Alves <palves@redhat.com>
528 John Baldwin <jhb@freebsd.org>
529
530 * target.h (enum strata) <debug_stratum>: New.
531 (struct target_ops) <all delegation methods>: Replace by C++
532 virtual methods, and drop "to_" prefix. All references updated
533 throughout.
534 <to_shortname, to_longname, to_doc, to_data,
535 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
536 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
537 virtual methods. All references updated throughout.
538 <can_attach, supports_terminal_ours, can_create_inferior,
539 get_thread_control_capabilities, attach_no_wait>: New
540 virtual methods.
541 <insert_breakpoint, remove_breakpoint>: Now
542 TARGET_DEFAULT_NORETURN methods.
543 <info_proc>: Now returns bool.
544 <to_magic>: Delete.
545 (OPS_MAGIC): Delete.
546 (current_target): Delete. All references replaced by references
547 to ...
548 (target_stack): ... this. New.
549 (target_shortname, target_longname): Adjust.
550 (target_can_run): Now a function declaration.
551 (default_child_has_all_memory, default_child_has_memory)
552 (default_child_has_stack, default_child_has_registers)
553 (default_child_has_execution): Remove target_ops parameter.
554 (complete_target_initialization): Delete.
555 (memory_breakpoint_target): New template class.
556 (test_target_ops): Refactor as a C++ class with virtual methods.
557 * make-target-delegates (NAME_PART): Tighten.
558 (POINTER_PART, CP_SYMBOL): New.
559 (SIMPLE_RETURN_PART): Reimplement.
560 (VEC_RETURN_PART): Expect less.
561 (RETURN_PART, VIRTUAL_PART): New.
562 (METHOD): Adjust to C++ virtual methods.
563 (scan_target_h): Remove reference to C99.
564 (dname): Output "target_ops::" prefix.
565 (write_function_header): Adjust to output a C++ class method.
566 (write_declaration): New.
567 (write_delegator): Adjust to output a C++ class method.
568 (tdname): Output "dummy_target::" prefix.
569 (write_tdefault, write_debugmethod): Adjust to output a C++ class
570 method.
571 (tdefault_names, debug_names): Delete.
572 (return_types, tdefaults, styles, argtypes_array): New.
573 (top level): All methods are delegators.
574 (print_class): New.
575 (top level): Print dummy_target and debug_target classes.
576 * target-delegates.c: Regenerate.
577 * target-debug.h (target_debug_print_enum_info_proc_what)
578 (target_debug_print_thread_control_capabilities)
579 (target_debug_print_thread_info_p): New.
580 * target.c (dummy_target): Delete.
581 (the_dummy_target, the_debug_target): New.
582 (target_stack): Now extern.
583 (set_targetdebug): Push/unpush debug target.
584 (default_child_has_all_memory, default_child_has_memory)
585 (default_child_has_stack, default_child_has_registers)
586 (default_child_has_execution): Remove target_ops parameter.
587 (complete_target_initialization): Delete.
588 (add_target_with_completer): No longer call
589 complete_target_initialization.
590 (target_supports_terminal_ours): Use regular delegation.
591 (update_current_target): Delete.
592 (push_target): No longer check magic number. Don't call
593 update_current_target.
594 (unpush_target): Don't call update_current_target.
595 (target_is_pushed): No longer check magic number.
596 (target_require_runnable): Skip for all stratums over
597 process_stratum.
598 (target_ops::info_proc): New.
599 (target_info_proc): Use find_target_at and
600 find_default_run_target.
601 (target_supports_disable_randomization): Use regular delegation.
602 (target_get_osdata): Use find_target_at.
603 (target_ops::open, target_ops::close, target_ops::can_attach)
604 (target_ops::attach, target_ops::can_create_inferior)
605 (target_ops::create_inferior, target_ops::can_run)
606 (target_can_run): New.
607 (default_fileio_target): Use regular delegation.
608 (target_ops::fileio_open, target_ops::fileio_pwrite)
609 (target_ops::fileio_pread, target_ops::fileio_fstat)
610 (target_ops::fileio_close, target_ops::fileio_unlink)
611 (target_ops::fileio_readlink): New.
612 (target_fileio_open_1, target_fileio_unlink)
613 (target_fileio_readlink): Always call the target method. Handle
614 FILEIO_ENOSYS.
615 (return_zero, return_zero_has_execution): Delete.
616 (init_dummy_target): Delete.
617 (dummy_target::dummy_target, dummy_target::shortname)
618 (dummy_target::longname, dummy_target::doc)
619 (debug_target::debug_target, debug_target::shortname)
620 (debug_target::longname, debug_target::doc): New.
621 (target_supports_delete_record): Use regular delegation.
622 (setup_target_debug): Delete.
623 (maintenance_print_target_stack): Skip debug_stratum.
624 (initialize_targets): Instantiate the_dummy_target and
625 the_debug_target.
626 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
627 use target_stack.
628 (target_auxv_search, fprint_target_auxv): Adjust.
629 (info_auxv_command): Adjust to use target_stack.
630 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
631 * exceptions.c (print_flush): Handle a NULL target_stack.
632 * regcache.c (target_ops_no_register): Refactor as class with
633 virtual methods.
634
635 * exec.c (exec_target): New class.
636 (exec_ops): Now an exec_target.
637 (exec_open, exec_close_1, exec_get_section_table)
638 (exec_xfer_partial, exec_files_info, exec_has_memory)
639 (exec_make_note_section): Refactor as exec_target methods.
640 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
641 Delete.
642 (exec_target::find_memory_regions): New.
643 (_initialize_exec): Don't call init_exec_ops.
644 * gdbcore.h (exec_file_clear): Delete.
645
646 * corefile.c (core_target): Delete.
647 (core_file_command): Adjust.
648 * corelow.c (core_target): New class.
649 (the_core_target): New.
650 (core_close): Remove target_ops parameter.
651 (core_close_cleanup): Adjust.
652 (core_target::close): New.
653 (core_open, core_detach, get_core_registers, core_files_info)
654 (core_xfer_partial, core_thread_alive, core_read_description)
655 (core_pid_to_str, core_thread_name, core_has_memory)
656 (core_has_stack, core_has_registers, core_info_proc): Rework as
657 core_target methods.
658 (ignore, core_remove_breakpoint, init_core_ops): Delete.
659 (_initialize_corelow): Initialize the_core_target.
660 * gdbcore.h (core_target): Delete.
661 (the_core_target): New.
662
663 * ctf.c: (ctf_target): New class.
664 (ctf_ops): Now a ctf_target.
665 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
666 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
667 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
668 methods.
669 (init_ctf_ops): Delete.
670 (_initialize_ctf): Don't call it.
671 * tracefile-tfile.c (tfile_target): New class.
672 (tfile_ops): Now a tfile_target.
673 (tfile_open, tfile_close, tfile_files_info)
674 (tfile_get_tracepoint_status, tfile_trace_find)
675 (tfile_fetch_registers, tfile_xfer_partial)
676 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
677 Refactor as tfile_target methods.
678 (tfile_xfer_partial_features): Remove target_ops parameter.
679 (init_tfile_ops): Delete.
680 (_initialize_tracefile_tfile): Don't call it.
681 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
682 (tracefile_has_stack, tracefile_has_registers)
683 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
684 tracefile_target methods.
685 (init_tracefile_ops): Delete.
686 (tracefile_target::tracefile_target): New.
687 * tracefile.h: Include "target.h".
688 (tracefile_target): New class.
689 (init_tracefile_ops): Delete.
690
691 * spu-multiarch.c (spu_multiarch_target): New class.
692 (spu_ops): Now a spu_multiarch_target.
693 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
694 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
695 (spu_search_memory, spu_mourn_inferior): Refactor as
696 spu_multiarch_target methods.
697 (init_spu_ops): Delete.
698 (_initialize_spu_multiarch): Remove references to init_spu_ops,
699 complete_target_initialization.
700
701 * ravenscar-thread.c (ravenscar_thread_target): New class.
702 (ravenscar_ops): Now a ravenscar_thread_target.
703 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
704 (ravenscar_thread_alive, ravenscar_pid_to_str)
705 (ravenscar_fetch_registers, ravenscar_store_registers)
706 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
707 (ravenscar_stopped_by_hw_breakpoint)
708 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
709 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
710 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
711 methods.
712 (init_ravenscar_thread_ops): Delete.
713 (_initialize_ravenscar): Remove references to
714 init_ravenscar_thread_ops and complete_target_initialization.
715
716 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
717 (bsd_uthread_target): New class.
718 (bsd_uthread_ops): Now a bsd_uthread_target.
719 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
720 (bsd_uthread_close, bsd_uthread_mourn_inferior)
721 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
722 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
723 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
724 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
725 (bsd_uthread_target): Delete function.
726 (_initialize_bsd_uthread): Remove reference to
727 complete_target_initialization.
728
729 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
730 (target_bfd): ... this new class.
731 (target_bfd_xfer_partial, target_bfd_get_section_table)
732 (target_bfd_close): Refactor as target_bfd methods.
733 (target_bfd::~target_bfd): New.
734 (target_bfd_reopen): Adjust.
735 (target_bfd::close): New.
736
737 * record-btrace.c (record_btrace_target): New class.
738 (record_btrace_ops): Now a record_btrace_target.
739 (record_btrace_open, record_btrace_stop_recording)
740 (record_btrace_disconnect, record_btrace_close)
741 (record_btrace_async, record_btrace_info)
742 (record_btrace_insn_history, record_btrace_insn_history_range)
743 (record_btrace_insn_history_from, record_btrace_call_history)
744 (record_btrace_call_history_range)
745 (record_btrace_call_history_from, record_btrace_record_method)
746 (record_btrace_is_replaying, record_btrace_will_replay)
747 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
748 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
749 (record_btrace_store_registers, record_btrace_prepare_to_store)
750 (record_btrace_to_get_unwinder)
751 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
752 (record_btrace_commit_resume, record_btrace_wait)
753 (record_btrace_stop, record_btrace_can_execute_reverse)
754 (record_btrace_stopped_by_sw_breakpoint)
755 (record_btrace_supports_stopped_by_sw_breakpoint)
756 (record_btrace_stopped_by_hw_breakpoint)
757 (record_btrace_supports_stopped_by_hw_breakpoint)
758 (record_btrace_update_thread_list, record_btrace_thread_alive)
759 (record_btrace_goto_begin, record_btrace_goto_end)
760 (record_btrace_goto, record_btrace_stop_replaying_all)
761 (record_btrace_execution_direction)
762 (record_btrace_prepare_to_generate_core)
763 (record_btrace_done_generating_core): Refactor as
764 record_btrace_target methods.
765 (init_record_btrace_ops): Delete.
766 (_initialize_record_btrace): Remove reference to
767 init_record_btrace_ops.
768 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
769 the execution_direction global.
770 (record_full_base_target, record_full_target)
771 (record_full_core_target): New classes.
772 (record_full_ops): Now a record_full_target.
773 (record_full_core_ops): Now a record_full_core_target.
774 (record_full_target::detach, record_full_target::disconnect)
775 (record_full_core_target::disconnect)
776 (record_full_target::mourn_inferior, record_full_target::kill):
777 New.
778 (record_full_open, record_full_close, record_full_async): Refactor
779 as methods of the record_full_base_target class.
780 (record_full_resume, record_full_commit_resume): Refactor
781 as methods of the record_full_target class.
782 (record_full_wait, record_full_stopped_by_watchpoint)
783 (record_full_stopped_data_address)
784 (record_full_stopped_by_sw_breakpoint)
785 (record_full_supports_stopped_by_sw_breakpoint)
786 (record_full_stopped_by_hw_breakpoint)
787 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
788 methods of the record_full_base_target class.
789 (record_full_store_registers, record_full_xfer_partial)
790 (record_full_insert_breakpoint, record_full_remove_breakpoint):
791 Refactor as methods of the record_full_target class.
792 (record_full_can_execute_reverse, record_full_get_bookmark)
793 (record_full_goto_bookmark, record_full_execution_direction)
794 (record_full_record_method, record_full_info, record_full_delete)
795 (record_full_is_replaying, record_full_will_replay)
796 (record_full_goto_begin, record_full_goto_end, record_full_goto)
797 (record_full_stop_replaying): Refactor as methods of the
798 record_full_base_target class.
799 (record_full_core_resume, record_full_core_kill)
800 (record_full_core_fetch_registers)
801 (record_full_core_prepare_to_store)
802 (record_full_core_store_registers, record_full_core_xfer_partial)
803 (record_full_core_insert_breakpoint)
804 (record_full_core_remove_breakpoint)
805 (record_full_core_has_execution): Refactor
806 as methods of the record_full_core_target class.
807 (record_full_base_target::supports_delete_record): New.
808 (init_record_full_ops): Delete.
809 (init_record_full_core_ops): Delete.
810 (record_full_save): Refactor as method of the
811 record_full_base_target class.
812 (_initialize_record_full): Remove references to
813 init_record_full_ops and init_record_full_core_ops.
814
815 * remote.c (remote_target, extended_remote_target): New classes.
816 (remote_ops): Now a remote_target.
817 (extended_remote_ops): Now an extended_remote_target.
818 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
819 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
820 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
821 (remote_pass_signals, remote_set_syscall_catchpoint)
822 (remote_program_signals, )
823 (remote_thread_always_alive): Remove target_ops parameter.
824 (remote_thread_alive, remote_thread_name)
825 (remote_update_thread_list, remote_threads_extra_info)
826 (remote_static_tracepoint_marker_at)
827 (remote_static_tracepoint_markers_by_strid)
828 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
829 (remote_open): Refactor as methods of remote_target.
830 (extended_remote_open, extended_remote_detach)
831 (extended_remote_attach, extended_remote_post_attach):
832 (extended_remote_supports_disable_randomization)
833 (extended_remote_create_inferior): : Refactor as method of
834 extended_remote_target.
835 (remote_set_permissions, remote_open_1, remote_detach)
836 (remote_follow_fork, remote_follow_exec, remote_disconnect)
837 (remote_resume, remote_commit_resume, remote_stop)
838 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
839 (remote_terminal_ours, remote_wait, remote_fetch_registers)
840 (remote_prepare_to_store, remote_store_registers)
841 (remote_flash_erase, remote_flash_done, remote_files_info)
842 (remote_kill, remote_mourn, remote_insert_breakpoint)
843 (remote_remove_breakpoint, remote_insert_watchpoint)
844 (remote_watchpoint_addr_within_range)
845 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
846 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
847 (remote_supports_stopped_by_sw_breakpoint)
848 (remote_stopped_by_hw_breakpoint)
849 (remote_supports_stopped_by_hw_breakpoint)
850 (remote_stopped_by_watchpoint, remote_stopped_data_address)
851 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
852 (remote_verify_memory): Refactor as methods of remote_target.
853 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
854 parameter.
855 (remote_xfer_partial, remote_get_memory_xfer_limit)
856 (remote_search_memory, remote_rcmd, remote_memory_map)
857 (remote_pid_to_str, remote_get_thread_local_address)
858 (remote_get_tib_address, remote_read_description): Refactor as
859 methods of remote_target.
860 (remote_target::fileio_open, remote_target::fileio_pwrite)
861 (remote_target::fileio_pread, remote_target::fileio_close): New.
862 (remote_hostio_readlink, remote_hostio_fstat)
863 (remote_filesystem_is_local, remote_can_execute_reverse)
864 (remote_supports_non_stop, remote_supports_disable_randomization)
865 (remote_supports_multi_process, remote_supports_cond_breakpoints)
866 (remote_supports_enable_disable_tracepoint)
867 (remote_supports_string_tracing)
868 (remote_can_run_breakpoint_commands, remote_trace_init)
869 (remote_download_tracepoint, remote_can_download_tracepoint)
870 (remote_download_trace_state_variable, remote_enable_tracepoint)
871 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
872 (remote_trace_start, remote_get_trace_status)
873 (remote_get_tracepoint_status, remote_trace_stop)
874 (remote_trace_find, remote_get_trace_state_variable_value)
875 (remote_save_trace_data, remote_get_raw_trace_data)
876 (remote_set_disconnected_tracing, remote_core_of_thread)
877 (remote_set_circular_trace_buffer, remote_traceframe_info)
878 (remote_get_min_fast_tracepoint_insn_len)
879 (remote_set_trace_buffer_size, remote_set_trace_notes)
880 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
881 (remote_disable_btrace, remote_teardown_btrace)
882 (remote_read_btrace, remote_btrace_conf)
883 (remote_augmented_libraries_svr4_read, remote_load)
884 (remote_pid_to_exec_file, remote_can_do_single_step)
885 (remote_execution_direction, remote_thread_handle_to_thread_info):
886 Refactor as methods of remote_target.
887 (init_remote_ops, init_extended_remote_ops): Delete.
888 (remote_can_async_p, remote_is_async_p, remote_async)
889 (remote_thread_events, remote_upload_tracepoints)
890 (remote_upload_trace_state_variables): Refactor as methods of
891 remote_target.
892 (_initialize_remote): Remove references to init_remote_ops and
893 init_extended_remote_ops.
894
895 * remote-sim.c (gdbsim_target): New class.
896 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
897 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
898 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
899 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
900 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
901 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
902 Refactor as methods of gdbsim_target.
903 (gdbsim_ops): Now a gdbsim_target.
904 (init_gdbsim_ops): Delete.
905 (gdbsim_cntrl_c): Adjust.
906 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
907
908 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
909 (the_amd64_linux_nat_target): New.
910 (amd64_linux_fetch_inferior_registers)
911 (amd64_linux_store_inferior_registers): Refactor as methods of
912 amd64_linux_nat_target.
913 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
914 * i386-linux-nat.c: Don't include "linux-nat.h".
915 (i386_linux_nat_target): New class.
916 (the_i386_linux_nat_target): New.
917 (i386_linux_fetch_inferior_registers)
918 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
919 as methods of i386_linux_nat_target.
920 (_initialize_i386_linux_nat): Adjust. Set linux_target.
921 * inf-child.c (inf_child_ops): Delete.
922 (inf_child_fetch_inferior_registers)
923 (inf_child_store_inferior_registers): Delete.
924 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
925 methods of inf_child_target.
926 (inf_child_target::supports_terminal_ours)
927 (inf_child_target::terminal_init)
928 (inf_child_target::terminal_inferior)
929 (inf_child_target::terminal_ours_for_output)
930 (inf_child_target::terminal_ours, inf_child_target::interrupt)
931 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
932 New.
933 (inf_child_open, inf_child_disconnect, inf_child_close)
934 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
935 (inf_child_post_startup_inferior, inf_child_can_run)
936 (inf_child_pid_to_exec_file): Refactor as methods of
937 inf_child_target.
938 (inf_child_follow_fork): Delete.
939 (inf_child_target::can_create_inferior)
940 (inf_child_target::can_attach): New.
941 (inf_child_target::has_all_memory, inf_child_target::has_memory)
942 (inf_child_target::has_stack, inf_child_target::has_registers)
943 (inf_child_target::has_execution): New.
944 (inf_child_fileio_open, inf_child_fileio_pwrite)
945 (inf_child_fileio_pread, inf_child_fileio_fstat)
946 (inf_child_fileio_close, inf_child_fileio_unlink)
947 (inf_child_fileio_readlink, inf_child_use_agent)
948 (inf_child_can_use_agent): Refactor as methods of
949 inf_child_target.
950 (return_zero, inf_child_target): Delete.
951 (inf_child_target::inf_child_target): New.
952 * inf-child.h: Include "target.h".
953 (inf_child_target): Delete function prototype.
954 (inf_child_target): New class.
955 (inf_child_open_target, inf_child_mourn_inferior)
956 (inf_child_maybe_unpush_target): Delete.
957 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
958 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
959 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
960 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
961 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
962 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
963 (inf_ptrace_wait, inf_ptrace_xfer_partial)
964 (inf_ptrace_thread_alive, inf_ptrace_files_info)
965 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
966 methods of inf_ptrace_target.
967 (inf_ptrace_target): Delete function.
968 * inf-ptrace.h: Include "inf-child.h".
969 (inf_ptrace_target): Delete function declaration.
970 (inf_ptrace_target): New class.
971 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
972 * linux-nat.c (linux_target): New.
973 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
974 (linux_nat_target::~linux_nat_target): New.
975 (linux_child_post_attach, linux_child_post_startup_inferior)
976 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
977 (linux_child_remove_fork_catchpoint)
978 (linux_child_insert_vfork_catchpoint)
979 (linux_child_remove_vfork_catchpoint)
980 (linux_child_insert_exec_catchpoint)
981 (linux_child_remove_exec_catchpoint)
982 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
983 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
984 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
985 (linux_nat_stopped_data_address)
986 (linux_nat_stopped_by_sw_breakpoint)
987 (linux_nat_supports_stopped_by_sw_breakpoint)
988 (linux_nat_stopped_by_hw_breakpoint)
989 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
990 (linux_nat_kill, linux_nat_mourn_inferior)
991 (linux_nat_xfer_partial, linux_nat_thread_alive)
992 (linux_nat_update_thread_list, linux_nat_pid_to_str)
993 (linux_nat_thread_name, linux_child_pid_to_exec_file)
994 (linux_child_static_tracepoint_markers_by_strid)
995 (linux_nat_is_async_p, linux_nat_can_async_p)
996 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
997 (linux_nat_supports_multi_process)
998 (linux_nat_supports_disable_randomization, linux_nat_async)
999 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
1000 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
1001 (linux_nat_fileio_open, linux_nat_fileio_readlink)
1002 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
1003 methods of linux_nat_target.
1004 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
1005 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
1006 parameter.
1007 (check_stopped_by_watchpoint): Adjust.
1008 (linux_xfer_partial): Delete.
1009 (linux_target_install_ops, linux_target, linux_nat_add_target):
1010 Delete.
1011 (linux_nat_target::linux_nat_target): New.
1012 * linux-nat.h: Include "inf-ptrace.h".
1013 (linux_nat_target): New.
1014 (linux_target, linux_target_install_ops, linux_nat_add_target):
1015 Delete function declarations.
1016 (linux_target): Declare global.
1017 * linux-thread-db.c (thread_db_target): New.
1018 (thread_db_target::thread_db_target): New.
1019 (thread_db_ops): Delete.
1020 (the_thread_db_target): New.
1021 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
1022 (thread_db_update_thread_list, thread_db_pid_to_str)
1023 (thread_db_extra_thread_info)
1024 (thread_db_thread_handle_to_thread_info)
1025 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
1026 (thread_db_resume): Refactor as methods of thread_db_target.
1027 (init_thread_db_ops): Delete.
1028 (_initialize_thread_db): Remove reference to init_thread_db_ops.
1029 * x86-linux-nat.c: Don't include "linux-nat.h".
1030 (super_post_startup_inferior): Delete.
1031 (x86_linux_nat_target::~x86_linux_nat_target): New.
1032 (x86_linux_child_post_startup_inferior)
1033 (x86_linux_read_description, x86_linux_enable_btrace)
1034 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
1035 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
1036 methods of x86_linux_nat_target.
1037 (x86_linux_create_target): Delete. Bits folded ...
1038 (x86_linux_add_target): ... here. Now takes a linux_nat_target
1039 pointer.
1040 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
1041 (x86_linux_nat_target): New class.
1042 (x86_linux_create_target): Delete.
1043 (x86_linux_add_target): Now takes a linux_nat_target pointer.
1044 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
1045 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
1046 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
1047 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
1048 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
1049 make extern.
1050 (x86_use_watchpoints): Delete.
1051 * x86-nat.h: Include "breakpoint.h" and "target.h".
1052 (x86_use_watchpoints): Delete.
1053 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
1054 (x86_stopped_by_watchpoint, x86_stopped_data_address)
1055 (x86_insert_watchpoint, x86_remove_watchpoint)
1056 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
1057 (x86_stopped_by_hw_breakpoint): New declarations.
1058 (x86_nat_target): New template class.
1059
1060 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
1061 (the_ppc_linux_nat_target): New.
1062 (ppc_linux_fetch_inferior_registers)
1063 (ppc_linux_can_use_hw_breakpoint)
1064 (ppc_linux_region_ok_for_hw_watchpoint)
1065 (ppc_linux_ranged_break_num_registers)
1066 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1067 (ppc_linux_insert_mask_watchpoint)
1068 (ppc_linux_remove_mask_watchpoint)
1069 (ppc_linux_can_accel_watchpoint_condition)
1070 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
1071 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
1072 (ppc_linux_watchpoint_addr_within_range)
1073 (ppc_linux_masked_watch_num_registers)
1074 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
1075 (ppc_linux_read_description): Refactor as methods of
1076 ppc_linux_nat_target.
1077 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
1078
1079 * procfs.c (procfs_xfer_partial): Delete forward declaration.
1080 (procfs_target): New class.
1081 (the_procfs_target): New.
1082 (procfs_target): Delete function.
1083 (procfs_auxv_parse, procfs_attach, procfs_detach)
1084 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
1085 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
1086 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
1087 (procfs_create_inferior, procfs_update_thread_list)
1088 (procfs_thread_alive, procfs_pid_to_str)
1089 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
1090 (procfs_stopped_data_address, procfs_insert_watchpoint)
1091 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
1092 (proc_find_memory_regions, procfs_info_proc)
1093 (procfs_make_note_section): Refactor as methods of procfs_target.
1094 (_initialize_procfs): Adjust.
1095 * sol-thread.c (sol_thread_target): New class.
1096 (sol_thread_ops): Now a sol_thread_target.
1097 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
1098 (sol_thread_fetch_registers, sol_thread_store_registers)
1099 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
1100 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
1101 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
1102 (init_sol_thread_ops): Delete.
1103 (_initialize_sol_thread): Adjust. Remove references to
1104 init_sol_thread_ops and complete_target_initialization.
1105
1106 * windows-nat.c (windows_nat_target): New class.
1107 (windows_fetch_inferior_registers)
1108 (windows_store_inferior_registers, windows_resume, windows_wait)
1109 (windows_attach, windows_detach, windows_pid_to_exec_file)
1110 (windows_files_info, windows_create_inferior)
1111 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
1112 (windows_close, windows_pid_to_str, windows_xfer_partial)
1113 (windows_get_tib_address, windows_get_ada_task_ptid)
1114 (windows_thread_name, windows_thread_alive): Refactor as
1115 windows_nat_target methods.
1116 (do_initial_windows_stuff): Adjust.
1117 (windows_target): Delete function.
1118 (_initialize_windows_nat): Adjust.
1119
1120 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
1121 (darwin_mourn_inferior, darwin_kill_inferior)
1122 (darwin_create_inferior, darwin_attach, darwin_detach)
1123 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
1124 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
1125 (darwin_supports_multi_process): Refactor as darwin_nat_target
1126 methods.
1127 (darwin_resume_to, darwin_files_info): Delete.
1128 (_initialize_darwin_inferior): Rename to ...
1129 (_initialize_darwin_nat): ... this. Adjust to C++ification.
1130 * darwin-nat.h: Include "inf-child.h".
1131 (darwin_nat_target): New class.
1132 (darwin_complete_target): Delete.
1133 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
1134 (darwin_target): New.
1135 (i386_darwin_fetch_inferior_registers)
1136 (i386_darwin_store_inferior_registers): Refactor as methods of
1137 darwin_nat_target.
1138 (darwin_complete_target): Delete, with ...
1139 (_initialize_i386_darwin_nat): ... bits factored out here.
1140
1141 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
1142 (the_alpha_linux_nat_target): New.
1143 (alpha_linux_register_u_offset): Refactor as
1144 alpha_linux_nat_target method.
1145 (_initialize_alpha_linux_nat): Adjust.
1146 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
1147 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
1148 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
1149 methods of linux_nat_trad_target.
1150 (linux_trad_target): Delete.
1151 * linux-nat-trad.h (linux_trad_target): Delete function.
1152 (linux_nat_trad_target): New class.
1153 * mips-linux-nat.c (mips_linux_nat_target): New class.
1154 (super_fetch_registers, super_store_registers, super_close):
1155 Delete.
1156 (the_mips_linux_nat_target): New.
1157 (mips64_linux_regsets_fetch_registers)
1158 (mips64_linux_regsets_store_registers)
1159 (mips64_linux_fetch_registers, mips64_linux_store_registers)
1160 (mips_linux_register_u_offset, mips_linux_read_description)
1161 (mips_linux_can_use_hw_breakpoint)
1162 (mips_linux_stopped_by_watchpoint)
1163 (mips_linux_stopped_data_address)
1164 (mips_linux_region_ok_for_hw_watchpoint)
1165 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
1166 (mips_linux_close): Refactor as methods of mips_linux_nat.
1167 (_initialize_mips_linux_nat): Adjust to C++ification.
1168
1169 * aix-thread.c (aix_thread_target): New class.
1170 (aix_thread_ops): Now an aix_thread_target.
1171 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
1172 (aix_thread_fetch_registers, aix_thread_store_registers)
1173 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
1174 (aix_thread_thread_alive, aix_thread_pid_to_str)
1175 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
1176 Refactor as methods of aix_thread_target.
1177 (init_aix_thread_ops): Delete.
1178 (_initialize_aix_thread): Remove references to init_aix_thread_ops
1179 and complete_target_initialization.
1180 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
1181 (rs6000_nat_target): New class.
1182 (the_rs6000_nat_target): New.
1183 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
1184 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
1185 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
1186 (super_create_inferior): Delete.
1187 (_initialize_rs6000_nat): Adjust to C++ification.
1188
1189 * arm-linux-nat.c (arm_linux_nat_target): New class.
1190 (the_arm_linux_nat_target): New.
1191 (arm_linux_fetch_inferior_registers)
1192 (arm_linux_store_inferior_registers, arm_linux_read_description)
1193 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
1194 (arm_linux_remove_hw_breakpoint)
1195 (arm_linux_region_ok_for_hw_watchpoint)
1196 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
1197 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
1198 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
1199 arm_linux_nat_target.
1200 (_initialize_arm_linux_nat): Adjust to C++ification.
1201
1202 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
1203 (the_aarch64_linux_nat_target): New.
1204 (aarch64_linux_fetch_inferior_registers)
1205 (aarch64_linux_store_inferior_registers)
1206 (aarch64_linux_child_post_startup_inferior)
1207 (aarch64_linux_read_description)
1208 (aarch64_linux_can_use_hw_breakpoint)
1209 (aarch64_linux_insert_hw_breakpoint)
1210 (aarch64_linux_remove_hw_breakpoint)
1211 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
1212 (aarch64_linux_region_ok_for_hw_watchpoint)
1213 (aarch64_linux_stopped_data_address)
1214 (aarch64_linux_stopped_by_watchpoint)
1215 (aarch64_linux_watchpoint_addr_within_range)
1216 (aarch64_linux_can_do_single_step): Refactor as methods of
1217 aarch64_linux_nat_target.
1218 (super_post_startup_inferior): Delete.
1219 (_initialize_aarch64_linux_nat): Adjust to C++ification.
1220
1221 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
1222 (the_hppa_linux_nat_target): New.
1223 (hppa_linux_fetch_inferior_registers)
1224 (hppa_linux_store_inferior_registers): Refactor as methods of
1225 hppa_linux_nat_target.
1226 (_initialize_hppa_linux_nat): Adjust to C++ification.
1227
1228 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
1229 (the_ia64_linux_nat_target): New.
1230 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
1231 (ia64_linux_stopped_data_address)
1232 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
1233 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
1234 ia64_linux_nat_target methods.
1235 (super_xfer_partial): Delete.
1236 (_initialize_ia64_linux_nat): Adjust to C++ification.
1237
1238 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
1239 (the_m32r_linux_nat_target): New.
1240 (m32r_linux_fetch_inferior_registers)
1241 (m32r_linux_store_inferior_registers): Refactor as
1242 m32r_linux_nat_target methods.
1243 (_initialize_m32r_linux_nat): Adjust to C++ification.
1244
1245 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
1246 (the_m68k_linux_nat_target): New.
1247 (m68k_linux_fetch_inferior_registers)
1248 (m68k_linux_store_inferior_registers): Refactor as
1249 m68k_linux_nat_target methods.
1250 (_initialize_m68k_linux_nat): Adjust to C++ification.
1251
1252 * s390-linux-nat.c (s390_linux_nat_target): New class.
1253 (the_s390_linux_nat_target): New.
1254 (s390_linux_fetch_inferior_registers)
1255 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
1256 (s390_insert_watchpoint, s390_remove_watchpoint)
1257 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
1258 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
1259 (s390_auxv_parse, s390_read_description): Refactor as methods of
1260 s390_linux_nat_target.
1261 (_initialize_s390_nat): Adjust to C++ification.
1262
1263 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
1264 (the_sparc_linux_nat_target): New.
1265 (_initialize_sparc_linux_nat): Adjust to C++ification.
1266 * sparc-nat.c (sparc_fetch_inferior_registers)
1267 (sparc_store_inferior_registers): Remove target_ops parameter.
1268 * sparc-nat.h (sparc_fetch_inferior_registers)
1269 (sparc_store_inferior_registers): Remove target_ops parameter.
1270 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
1271 (the_sparc64_linux_nat_target): New.
1272 (_initialize_sparc64_linux_nat): Adjust to C++ification.
1273
1274 * spu-linux-nat.c (spu_linux_nat_target): New class.
1275 (the_spu_linux_nat_target): New.
1276 (spu_child_post_startup_inferior, spu_child_post_attach)
1277 (spu_child_wait, spu_fetch_inferior_registers)
1278 (spu_store_inferior_registers, spu_xfer_partial)
1279 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
1280 methods.
1281 (_initialize_spu_nat): Adjust to C++ification.
1282
1283 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
1284 (the_tilegx_linux_nat_target): New.
1285 (fetch_inferior_registers, store_inferior_registers):
1286 Refactor as methods.
1287 (_initialize_tile_linux_nat): Adjust to C++ification.
1288
1289 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
1290 (the_xtensa_linux_nat_target): New.
1291 (xtensa_linux_fetch_inferior_registers)
1292 (xtensa_linux_store_inferior_registers): Refactor as
1293 xtensa_linux_nat_target methods.
1294 (_initialize_xtensa_linux_nat): Adjust to C++ification.
1295
1296 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
1297 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
1298 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
1299 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
1300 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
1301 (fbsd_stopped_by_sw_breakpoint)
1302 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
1303 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
1304 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
1305 (fbsd_post_startup_inferior, fbsd_post_attach)
1306 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
1307 (fbsd_set_syscall_catchpoint)
1308 (super_xfer_partial, super_resume, super_wait)
1309 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
1310 (fbsd_handle_debug_trap): Remove target_ops parameter.
1311 (fbsd_nat_add_target): Delete.
1312 * fbsd-nat.h: Include "inf-ptrace.h".
1313 (fbsd_nat_add_target): Delete.
1314 (USE_SIGTRAP_SIGINFO): Define.
1315 (fbsd_nat_target): New class.
1316
1317 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
1318 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
1319 (amd64bsd_target): Delete.
1320 * amd64-bsd-nat.h: New file.
1321 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
1322 "x86-bsd-nat.h".
1323 (amd64_fbsd_nat_target): New class.
1324 (the_amd64_fbsd_nat_target): New.
1325 (amd64fbsd_read_description): Refactor as method of
1326 amd64_fbsd_nat_target.
1327 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
1328 (_initialize_amd64fbsd_nat): Adjust to C++ification.
1329 * amd64-nat.h (amd64bsd_target): Delete function declaration.
1330 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
1331 (i386bsd_store_inferior_registers): Remove target_ops parameter.
1332 (i386bsd_target): Delete.
1333 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
1334 (i386bsd_fetch_inferior_registers)
1335 (i386bsd_store_inferior_registers): Declare.
1336 (i386_bsd_nat_target): New class.
1337 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
1338 (the_i386_fbsd_nat_target): New.
1339 (i386fbsd_resume, i386fbsd_read_description): Refactor as
1340 i386_fbsd_nat_target methods.
1341 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
1342 (_initialize_i386fbsd_nat): Adjust to C++ification.
1343 * x86-bsd-nat.c (super_mourn_inferior): Delete.
1344 (x86bsd_mourn_inferior, x86bsd_target): Delete.
1345 (_initialize_x86_bsd_nat): Adjust to C++ification.
1346 * x86-bsd-nat.h: Include "x86-nat.h".
1347 (x86bsd_target): Delete declaration.
1348 (x86bsd_nat_target): New class.
1349
1350 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
1351 (the_aarch64_fbsd_nat_target): New.
1352 (aarch64_fbsd_fetch_inferior_registers)
1353 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
1354 aarch64_fbsd_nat_target.
1355 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
1356 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
1357 (the_alpha_bsd_nat_target): New.
1358 (alphabsd_fetch_inferior_registers)
1359 (alphabsd_store_inferior_registers): Refactor as
1360 alpha_bsd_nat_target methods.
1361 (_initialize_alphabsd_nat): Refactor as methods of
1362 alpha_bsd_nat_target.
1363 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
1364 (the_amd64_nbsd_nat_target): New.
1365 (_initialize_amd64nbsd_nat): Adjust to C++ification.
1366 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
1367 (the_amd64_obsd_nat_target): New.
1368 (_initialize_amd64obsd_nat): Adjust to C++ification.
1369 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
1370 (the_arm_fbsd_nat_target): New.
1371 (arm_fbsd_fetch_inferior_registers)
1372 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
1373 (_initialize_arm_fbsd_nat): Refactor as methods of
1374 arm_fbsd_nat_target.
1375 (_initialize_arm_fbsd_nat): Adjust to C++ification.
1376 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
1377 (the_arm_netbsd_nat_target): New.
1378 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
1379 arm_netbsd_nat_target.
1380 (_initialize_arm_netbsd_nat): Adjust to C++ification.
1381 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
1382 (the_hppa_nbsd_nat_target): New.
1383 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
1384 hppa_nbsd_nat_target methods.
1385 (_initialize_hppanbsd_nat): Adjust to C++ification.
1386 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
1387 (the_hppa_obsd_nat_target): New.
1388 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
1389 methods of hppa_obsd_nat_target.
1390 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
1391 add_target.
1392 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
1393 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
1394 add_target.
1395 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
1396 (_initialize_i386obsd_nat): Use add_target.
1397 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
1398 (the_m68k_bsd_nat_target): New.
1399 (m68kbsd_fetch_inferior_registers)
1400 (m68kbsd_store_inferior_registers): Refactor as methods of
1401 m68k_bsd_nat_target.
1402 (_initialize_m68kbsd_nat): Adjust to C++ification.
1403 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
1404 (the_mips_fbsd_nat_target): New.
1405 (mips_fbsd_fetch_inferior_registers)
1406 (mips_fbsd_store_inferior_registers): Refactor as methods of
1407 mips_fbsd_nat_target.
1408 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
1409 add_target.
1410 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
1411 (the_mips_nbsd_nat_target): New.
1412 (mipsnbsd_fetch_inferior_registers)
1413 (mipsnbsd_store_inferior_registers): Refactor as methods of
1414 mips_nbsd_nat_target.
1415 (_initialize_mipsnbsd_nat): Adjust to C++ification.
1416 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
1417 (the_mips64_obsd_nat_target): New.
1418 (mips64obsd_fetch_inferior_registers)
1419 (mips64obsd_store_inferior_registers): Refactor as methods of
1420 mips64_obsd_nat_target.
1421 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
1422 add_target.
1423 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
1424 nbsd_nat_target.
1425 * nbsd-nat.h: Include "inf-ptrace.h".
1426 (nbsd_nat_target): New class.
1427 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
1428 (obsd_wait): Refactor as methods of obsd_nat_target.
1429 (obsd_add_target): Delete.
1430 * obsd-nat.h: Include "inf-ptrace.h".
1431 (obsd_nat_target): New class.
1432 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
1433 (the_ppc_fbsd_nat_target): New.
1434 (ppcfbsd_fetch_inferior_registers)
1435 (ppcfbsd_store_inferior_registers): Refactor as methods of
1436 ppc_fbsd_nat_target.
1437 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
1438 add_target.
1439 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
1440 (the_ppc_nbsd_nat_target): New.
1441 (ppcnbsd_fetch_inferior_registers)
1442 (ppcnbsd_store_inferior_registers): Refactor as methods of
1443 ppc_nbsd_nat_target.
1444 (_initialize_ppcnbsd_nat): Adjust to C++ification.
1445 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
1446 (the_ppc_obsd_nat_target): New.
1447 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
1448 methods of ppc_obsd_nat_target.
1449 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
1450 add_target.
1451 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
1452 (the_sh_nbsd_nat_target): New.
1453 (shnbsd_fetch_inferior_registers)
1454 (shnbsd_store_inferior_registers): Refactor as methods of
1455 sh_nbsd_nat_target.
1456 (_initialize_shnbsd_nat): Adjust to C++ification.
1457 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
1458 (inf_ptrace_xfer_partial): Delete.
1459 (sparc_xfer_partial, sparc_target): Delete.
1460 * sparc-nat.h (sparc_fetch_inferior_registers)
1461 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
1462 (sparc_target): Delete function declaration.
1463 (sparc_target): New template class.
1464 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
1465 (_initialize_sparcnbsd_nat): Adjust to C++ification.
1466 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
1467 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
1468 add_target.
1469 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
1470 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
1471 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
1472 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
1473 add_target.
1474 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
1475 (the_vax_bsd_nat_target): New.
1476 (vaxbsd_fetch_inferior_registers)
1477 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
1478 methods.
1479 (_initialize_vaxbsd_nat): Adjust to C++ification.
1480
1481 * bsd-kvm.c (bsd_kvm_target): New class.
1482 (bsd_kvm_ops): Now a bsd_kvm_target.
1483 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
1484 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
1485 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
1486 bsd_kvm_target.
1487 (bsd_kvm_return_one): Delete.
1488 (bsd_kvm_add_target): Adjust to C++ification.
1489
1490 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
1491 (nto_procfs_target_procfs): New classes.
1492 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
1493 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
1494 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
1495 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
1496 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
1497 (procfs_remove_hw_breakpoint, procfs_resume)
1498 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
1499 (procfs_kill_inferior, procfs_store_registers)
1500 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
1501 as methods of nto_procfs_target.
1502 (nto_procfs_ops): Now an nto_procfs_target_procfs.
1503 (nto_native_ops): Delete.
1504 (procfs_open, procfs_native_open): Delete.
1505 (nto_native_ops): Now an nto_procfs_target_native.
1506 (init_procfs_targets): Adjust to C++ification.
1507 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
1508 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
1509 Refactor as methods of nto_procfs_target.
1510
1511 * go32-nat.c (go32_nat_target): New class.
1512 (the_go32_nat_target): New.
1513 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
1514 (go32_store_registers, go32_xfer_partial, go32_files_info)
1515 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
1516 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
1517 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
1518 (go32_pid_to_str): Refactor as methods of go32_nat_target.
1519 (go32_target): Delete.
1520 (_initialize_go32_nat): Adjust to C++ification.
1521
1522 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
1523 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
1524 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
1525 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
1526 gnu_nat_target.
1527 (gnu_target): Delete.
1528 * gnu-nat.h (gnu_target): Delete.
1529 (gnu_nat_target): New class.
1530 * i386-gnu-nat.c (gnu_base_target): New.
1531 (i386_gnu_nat_target): New class.
1532 (the_i386_gnu_nat_target): New.
1533 (_initialize_i386gnu_nat): Adjust to C++ification.
1534
3fffc070
PA
15352018-05-02 Pedro Alves <palves@redhat.com>
1536
1537 * bfd-target.c (target_bfd_xclose): Rename to ...
1538 (target_bfd_close): ... this.
1539 (target_bfd_reopen): Adjust.
1540 * target.c (target_close): Remove references to to_xclose.
1541 * target.h (target_ops::to_xclose): Delete.
1542 (target_ops::to_close): Update comments.
1543
6798487f
PA
15442018-05-02 Pedro Alves <palves@redhat.com>
1545
1546 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
1547 "linux-nat.h".
1548 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
1549 * inf-ptrace.c (inf_ptrace_register_u_offset)
1550 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
1551 (inf_ptrace_store_register, inf_ptrace_store_registers)
1552 (inf_ptrace_trad_target): Move to ...
1553 * linux-nat-trad.c: ... this new file.
1554 * linux-nat-trad.h: New file.
1555 * linux-nat.c (linux_target_install_ops): Make extern.
1556 (linux_trad_target): Delete.
1557 * linux-nat.h (linux_trad_target): Delete declaration.
1558 (linux_target_install_ops): Declare.
1559 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
1560 "linux-nat.h".
1561
c1955e17
PA
15622018-05-02 Pedro Alves <palves@redhat.com>
1563
1564 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
1565 procfs_target/add_target here.
1566 * procfs.c (procfs_target): Make static.
1567 (_initialize_procfs): Call add_target here.
1568 * procfs.h (struct target_ops): Remove forward declaration.
1569 (procfs_target): Remove declaration.
1570 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
1571
b5c8fcb1
PA
15722018-05-02 Pedro Alves <palves@redhat.com>
1573
1574 * procfs.c (procfs_stopped_by_watchpoint)
1575 (procfs_insert_watchpoint, procfs_remove_watchpoint)
1576 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
1577 Forward declare.
1578 (procfs_use_watchpoints): Delete, move contents...
1579 (procfs_target): ... here.
1580 * procfs.h (procfs_use_watchpoints): Delete declaration.
1581 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
1582 procfs_use_watchpoints.
1583 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
1584 procfs_use_watchpoints.
1585
0489430a
TT
15862018-05-02 Tom Tromey <tom@tromey.com>
1587
1588 PR python/20084:
1589 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
1590 and var_zuinteger_unlimited.
1591 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
1592 and PARAM_ZUINTEGER_UNLIMITED.
1593 (set_parameter_value): Handle var_zuinteger and
1594 var_zuinteger_unlimited.
1595 (add_setshow_generic): Likewise.
1596 (parmpy_init): Likewise.
1597
1632f8ba
DR
15982018-04-28 Dan Robertson <danlrobertson89@gmail.com>
1599
1600 PR rust/23124
1601 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
1602 pointer is not null before dereferencing it.
1603
76761936
TT
16042018-04-30 Tom Tromey <tom@tromey.com>
1605
1606 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
1607 is_mi_like_p.
1608
2d33446d
TT
16092018-04-30 Tom Tromey <tom@tromey.com>
1610
1611 * breakpoint.c (mention): Remove use of is_mi_like_p.
1612 (print_mention_ranged_breakpoint): Likewise.
1613 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
1614 of is_mi_like_p.
1615
f3c6abab
TT
16162018-04-30 Tom Tromey <tom@tromey.com>
1617
1618 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
1619
40c03530
TT
16202018-04-30 Tom Tromey <tom@tromey.com>
1621
1622 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
1623 (info_spu_event_command): Remove some uses of is_mi_like_p.
1624
2038b7fd
TT
16252018-04-30 Tom Tromey <tom@tromey.com>
1626
1627 * python/py-framefilter.c (py_print_single_arg)
1628 (enumerate_locals, py_print_args, py_print_frame): Remove some
1629 uses of is_mi_like_p.
1630
4904c3c6
TT
16312018-04-30 Tom Tromey <tom@tromey.com>
1632
1633 * ui-out.c: Update.
1634 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
1635 * ui-out.h (ui_out::is_mi_like_p): Now const.
1636 (ui_out::do_is_mi_like_p): Now const.
1637 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
1638
7c66fffc
TT
16392018-04-30 Tom Tromey <tom@tromey.com>
1640
1641 * varobj.c (varobj_set_visualizer): Use new_reference.
1642 * python/python.c (gdbpy_decode_line): Use new_reference.
1643 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
1644 new_reference.
1645
bbfa6f00
TT
16462018-04-30 Tom Tromey <tom@tromey.com>
1647
1648 * varobj.c (install_new_value): Use new_reference.
1649 * value.h (value_incref): Return void. Swap intro comment with
1650 value_decref.
1651 * value.c (set_value_parent): Use new_reference.
1652 (value_incref): Return void. Update intro comment.
1653 (release_value): Use new_reference.
1654 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
1655
1831a9f9
TT
16562018-04-30 Tom Tromey <tom@tromey.com>
1657
1658 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
1659 * gdb_bfd.h (new_bfd_ref): Remove.
1660 (gdb_bfd_open): Update comment.
1661 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1662 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
1663 (gdb_bfd_fdopenr): Use new_reference.
1664 * exec.c (exec_file_attach): Use new_reference.
1665
7c1b5f3d
TT
16662018-04-30 Tom Tromey <tom@tromey.com>
1667
1668 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
1669 method.
1670
e11fb955
TT
16712018-04-30 Tom Tromey <tom@tromey.com>
1672
1673 * jit.c (jit_read_code_entry): Use type_align.
1674 * i386-tdep.c (i386_gdbarch_init): Don't call
1675 set_gdbarch_long_long_align_bit.
1676 * gdbarch.sh: Remove long_long_align_bit.
1677 * gdbarch.c, gdbarch.h: Rebuild.
1678 * arc-tdep.c (arc_type_align): New function.
1679 (arc_gdbarch_init): Use arc_type_align. Don't call
1680 set_gdbarch_long_long_align_bit.
1681
2fff16dd
TT
16822018-04-30 Tom Tromey <tom@tromey.com>
1683
1684 * rust-lang.c (rust_type_alignment): Remove.
1685 (rust_composite_type): Use type_align.
1686
6d7bb824
TT
16872018-04-30 Tom Tromey <tom@tromey.com>
1688
1689 * NEWS: Mention Type.align.
1690 * python/py-type.c (typy_get_alignof): New function.
1691 (type_object_getset): Add "alignof".
1692
007e1530
TT
16932018-04-30 Tom Tromey <tom@tromey.com>
1694
1695 PR exp/17095:
1696 * NEWS: Update.
1697 * std-operator.def (UNOP_ALIGNOF): New operator.
1698 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
1699 New.
1700 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
1701 * c-lang.c (c_op_print_tab): Add alignof.
1702 * c-exp.y (ALIGNOF): New token.
1703 (exp): Add "ALIGNOF" production.
1704 (ident_tokens): Add _Alignof and alignof.
1705
2b4424c3
TT
17062018-04-30 Tom Tromey <tom@tromey.com>
1707
1708 * i386-tdep.c (i386_type_align): New function.
1709 (i386_gdbarch_init): Update.
1710 * gdbarch.sh (type_align): New method.
1711 * gdbarch.c, gdbarch.h: Rebuild.
1712 * arch-utils.h (default_type_align): Declare.
1713 * arch-utils.c (default_type_align): New function.
1714 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
1715 (struct type) <align_log2>: New field.
1716 <instance_flags>: Now a bitfield.
1717 (TYPE_RAW_ALIGN): New macro.
1718 (type_align, type_raw_align, set_type_align): Declare.
1719 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
1720 functions.
1721 * dwarf2read.c (quirk_rust_enum): Set type alignment.
1722 (get_alignment, maybe_set_alignment): New functions.
1723 (read_structure_type, read_enumeration_type, read_array_type)
1724 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
1725 (read_subrange_type, read_base_type): Set type alignment.
1726
d33bc52e
SM
17272018-04-30 Simon Marchi <simon.marchi@ericsson.com>
1728
1729 * dwarf2read.c (read_index_from_section): Use bool.
1730
e28b63a9
FG
17312018-04-29 Fabian Groffen <grobian@gentoo.org>
1732
1733 PR gdb/22950
1734 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
1735 with #ifdef.
1736
cd8c76e4
JR
17372018-04-29 John Reiser <jreiser@BitWagon.com>
1738
1739 PR build/22873
1740 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
1741 last step, and do it atomically.
1742
476d250e
AO
17432018-04-27 Alexandre Oliva <aoliva@redhat.com>
1744
1745 * compile/compile-c-types.c (convert_int, convert_float):
1746 Update for C FE v1.
1747
6873858b
TT
17482018-04-27 Tom Tromey <tom@tromey.com>
1749
1750 PR rust/22545:
1751 * rust-lang.c (rust_inclusive_range_type_p): New function.
1752 (rust_range): Handle inclusive ranges.
1753 (rust_compute_range): Likewise.
1754 * rust-exp.y (struct rust_op) <inclusive>: New field.
1755 (DOTDOTEQ): New constant.
1756 (range_expr): Add "..=" productions.
1757 (operator_tokens): Add "..=" token.
1758 (ast_range): Add "inclusive" parameter.
1759 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
1760 ranges.
1761 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
1762 bounds values.
1763 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
1764 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
1765 Update comments.
1766 * expprint.c (print_subexp_standard): Handle new bounds values.
1767 (dump_subexp_body_standard): Likewise.
1768
632e107b
TT
17692018-04-27 Tom Tromey <tom@tromey.com>
1770
1771 * configure: Rebuild.
1772 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
1773 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
1774 "OVERRIDE".
1775 (class symbol_needs_eval_context): Likewise.
1776 * dwarf2read.c (mock_mapped_index::symbol_name_count)
1777 (mock_mapped_index::symbol_name_at): Use "override". Remove
1778 "virtual".
1779 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
1780 "override".
1781 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
1782 * aarch64-tdep.c (instruction_reader::read): Use "override".
1783 (instruction_reader_test::read): Likewise.
1784 * arm-tdep.c (instruction_reader::read): Use "override".
1785 (instruction_reader_thumb::read): Likewise.
1786
b75abf5b
AK
17872018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
1788
1789 PR remote/9665
1790 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
1791 instead of remote_send.
1792 (remote_send): Remove.
1793
79188d8d
PA
17942018-04-26 Pedro Alves <palves@redhat.com>
1795
1796 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
1797 find_function_start_sal instead of find_pc_line.
1798
f50776aa
PA
17992018-04-26 Pedro Alves <palves@redhat.com>
1800
1801 * breakpoint.c (set_breakpoint_location_function): Handle
1802 mst_data_gnu_ifunc.
1803 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
1804 * elfread.c (elf_symtab_read): Give data symbols with
1805 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
1806 (elf_rel_plt_read): Update comment.
1807 * linespec.c (convert_linespec_to_sals): Handle
1808 mst_data_gnu_ifunc.
1809 (minsym_found): Handle mst_data_gnu_ifunc.
1810 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
1811 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
1812 * parse.c (find_minsym_type_and_address): Handle
1813 mst_data_gnu_ifunc.
1814 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
1815 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
1816 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
1817 comment.
1818 <mst_data_gnu_ifunc>: New enumerator.
1819
20944a6e
PA
18202018-04-26 Pedro Alves <palves@redhat.com>
1821
1822 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
1823 (lookup_minimal_symbol_by_pc_section): ... this. Replace
1824 'want_trampoline' parameter by a lookup_msym_prefer parameter.
1825 Handle it.
1826 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
1827 (lookup_minimal_symbol_by_pc): Adjust.
1828 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
1829 (lookup_solib_trampoline_symbol_by_pc): Adjust.
1830 * minsyms.h (lookup_msym_prefer): New enum.
1831 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
1832 parameter by a lookup_msym_prefer parameter.
1833
1adeb822
PA
18342018-04-26 Pedro Alves <palves@redhat.com>
1835
1836 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
1837 ends in "@plt" instead of looking at the symbol's section.
1838
a0aca7b0
PA
18392018-04-26 Pedro Alves <palves@redhat.com>
1840
1841 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
1842 all references.
1843 (find_pc_partial_function_gnu_ifunc): Rename to ...
1844 (find_pc_partial_function): ... this, and remove references to
1845 'is_gnu_ifunc_p'.
1846 (find_pc_partial_function): Delete old implementation.
1847 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
1848
76af0f26
PA
18492018-04-26 Pedro Alves <palves@redhat.com>
1850
1851 * linespec.c (struct bound_minimal_symbol_search_key): New.
1852 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
1853 skip first line if we found a GNU ifunc minimal symbol by name.
1854 (compare_msymbols): Change parameters to work with a destructured
1855 lhs minsym.
1856 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
1857 functions.
1858
3467ec66
PA
18592018-04-26 Pedro Alves <palves@redhat.com>
1860
1861 * breakpoint.c (set_breakpoint_location_function): Don't resolve
1862 ifunc targets here. Instead, if we have an ifunc minsym, use its
1863 address/name.
1864 (add_location_to_breakpoint): Store the minsym and the objfile in
1865 the breakpoint location.
1866 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
1867 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
1868 Record the minsym in the sal.
1869 * symtab.h (symtab_and_line) <msymbol>: New field.
1870
28f4fa4d
PA
18712018-04-26 Pedro Alves <palves@redhat.com>
1872
1873 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
1874 unless we actually resolved the ifunc.
1875
ca31ab1d
PA
18762018-04-26 Pedro Alves <palves@redhat.com>
1877
1878 * c-exp.y (variable production): Prefer ifunc minsyms over
1879 regular function symbols.
1880 * symtab.c (find_gnu_ifunc): New function.
1881 * minsyms.h (lookup_msym_prefer): New enum.
1882 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
1883 parameter by a lookup_msym_prefer parameter.
1884 * symtab.h (find_gnu_ifunc): New declaration.
1885
8388016d
PA
18862018-04-26 Pedro Alves <palves@redhat.com>
1887
1888 * blockframe.c (find_gnu_ifunc_target_type): New function.
1889 (find_function_type): New.
1890 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
1891 return a value with a memory address.
1892 (eval_call): For calls to GNU ifunc functions, try to find the
1893 type of the target function from the type that the resolver
1894 returns.
1895 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
1896 symbols.
1897 * infcall.c (find_function_return_type): Delete.
1898 (find_function_addr): Add 'function_type' parameter. For calls to
1899 GNU ifunc functions, try to find the type of the target function
1900 from the type that the resolver returns, and return it via
1901 FUNCTION_TYPE.
1902 (call_function_by_hand_dummy): Adjust to use the function type
1903 returned by find_function_addr.
1904 (find_function_addr): Add 'function_type' parameter and move
1905 description here.
1906 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
1907 declarations.
1908
a376e11d
PA
19092018-04-26 Pedro Alves <palves@redhat.com>
1910
1911 * c-exp.y (variable production): Skip finding an alias for ifunc
1912 symbols.
1913
02e169e2
PA
19142018-04-26 Pedro Alves <palves@redhat.com>
1915
1916 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
1917
249b5733
PA
19182018-04-25 Pedro Alves <palves@redhat.com>
1919
1920 * infcmd.c (kill_command): Print the pid as string, not the whole
1921 thread's ptid. Add comment. s/has been killed/killed/ in output
1922 message.
1923 * remote.c (remote_detach_1): Print the pid as string, not the
1924 whole thread's ptid.
1925
f67c0c91
SDJ
19262018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1927 Sergio Durigan Junior <sergiodj@redhat.com>
1928 Pedro Alves <palves@redhat.com>
1929
1930 * infcmd.c (kill_command): Print message when inferior has
1931 been killed.
1932 * inferior.c (print_inferior_events): Remove 'static'. Set as
1933 '1'.
1934 (add_inferior): Improve message printed when
1935 'print_inferior_events' is on.
1936 (exit_inferior): Remove message printed when
1937 'print_inferior_events' is on.
1938 (detach_inferior): Improve message printed when
1939 'print_inferior_events' is on.
1940 (initialize_inferiors): Use 'add_inferior_silent' to set
1941 'current_inferior_'.
1942 * inferior.h (print_inferior_events): Declare here as
1943 'extern'.
1944 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
1945 '[Detaching...]' messages when 'print_inferior_events' is on.
1946 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
1947 as prefix/suffix for messages. Remove periods. Fix erroneous
1948 'Detaching after fork from child...', replace it by '... from
1949 parent...'.
1950 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
1951 prefix/suffix when printing 'Detaching...' messages. Print
1952 them when 'print_inferior_events' is on.
1953 * remote.c (remote_detach_1): Print message when detaching
1954 from inferior and '!is_fork_parent'.
1955
e427af18
TT
19562018-04-24 Tom Tromey <tom@tromey.com>
1957
1958 * cli-out.h: Reindent.
1959
05b1d8d6
TT
19602018-04-24 Tom Tromey <tom@tromey.com>
1961
1962 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
1963 (cli_ui_out::do_field_string): Use fputs_filtered.
1964 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
1965
a95c7dab
TT
19662018-04-23 Tom Tromey <tom@tromey.com>
1967
1968 * guile/scm-frame.c (gdbscm_frame_read_var): Use
1969 gdb::unique_xmalloc_ptr.
1970
458412c3
TT
19712018-04-23 Tom Tromey <tom@tromey.com>
1972
1973 * configure: Rebuild.
1974
db86b02b
RS
19752018-04-22 Rajendra SY <rajendra.sy@gmail.com>
1976
1977 PR gdb/23095
1978 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
1979 prepare_for_testing. Set normal_bp to r_debug_state if target
1980 is bsd.
1981
00aecdcf
PA
19822018-04-21 Pedro Alves <palves@redhat.com>
1983 Rajendra SY <rajendra.sy@gmail.com>
1984
1985 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
1986 * remote.c (extended_remote_attach): In all-stop mode, mark the
1987 thread as executing.
1988
224608c3
PW
19892018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1990
1991 * thread.c (thread_apply_all_command): Fix comment.
1992 (thread_command): Fix comment.
1993
3b74854b
AH
19942018-04-10 Alan Hayward <alan.hayward@arm.com>
1995
1996 * common/tdesc.h (tdesc_create_feature): Remove xml filename
1997 parameter.
1998 * features/aarch64-core.c (create_feature_aarch64_core):
1999 Regenerate.
2000 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
2001 Likewise.
2002 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
2003 Likewise.
2004 * features/i386/32bit-avx512.c
2005 (create_feature_i386_32bit_avx512): Likewise.
2006 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
2007 Likewise.
2008 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
2009 Likewise.
2010 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
2011 Likewise.
2012 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
2013 Likewise.
2014 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
2015 Likewise.
2016 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
2017 Likewise.
2018 * features/i386/64bit-avx512.c
2019 (create_feature_i386_64bit_avx512): Likewise.
2020 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
2021 Likewise.
2022 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
2023 Likewise.
2024 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
2025 Likewise.
2026 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
2027 Likewise.
2028 * features/i386/64bit-segments.c
2029 (create_feature_i386_64bit_segments): Likewise.
2030 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
2031 Likewise.
2032 * features/i386/x32-core.c
2033 (create_feature_i386_x32_core): Likewise.
2034 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
2035 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
2036 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
2037 * target-descriptions.c: In generated code, don't pass xml
2038 filename.
2039
e98577a9
AH
20402018-04-18 Alan Hayward <alan.hayward@arm.com>
2041
2042 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
2043 (print_xml_feature::visit_post): Likewise.
2044 (print_xml_feature::visit): Likewise.
2045 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
2046 (print_xml_feature): Add new class.
2047 * regformats/regdat.sh: Null xmltarget on feature targets.
2048 * target-descriptions.c (struct target_desc): Add xmltarget.
2049 (maintenance_check_tdesc_xml_convert): Add unittest function.
2050 (tdesc_get_features_xml): Add function to get xml.
2051 (maintenance_check_xml_descriptions): Test xml generation.
2052 * xml-tdesc.c (string_read_description_xml): Add function.
2053 * xml-tdesc.h (string_read_description_xml): Add declaration.
2054
ad7fc756
AH
20552018-04-18 Alan Hayward <alan.hayward@arm.com>
2056
2057 * features/Makefile: Add feature marker to targets with new style
2058 target descriptions.
2059 * regformats/aarch64.dat: Regenerate.
2060 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
2061 * regformats/i386/amd64-avx-linux.dat: Likewise.
2062 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
2063 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
2064 * regformats/i386/amd64-linux.dat: Likewise.
2065 * regformats/i386/amd64-mpx-linux.dat: Likewise.
2066 * regformats/i386/amd64.dat: Likewise.
2067 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
2068 * regformats/i386/i386-avx-linux.dat: Likewise.
2069 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
2070 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
2071 * regformats/i386/i386-linux.dat: Likewise.
2072 * regformats/i386/i386-mmx-linux.dat: Likewise.
2073 * regformats/i386/i386-mpx-linux.dat: Likewise.
2074 * regformats/i386/i386.dat: Likewise.
2075 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
2076 * regformats/i386/x32-avx-linux.dat: Likewise.
2077 * regformats/i386/x32-linux.dat: Likewise.
2078 * regformats/tic6x-c62x-linux.dat: Likewise.
2079 * regformats/tic6x-c64x-linux.dat: Likewise.
2080 * regformats/tic6x-c64xp-linux.dat: Likewise.
2081 * regformats/regdat.sh: Parse feature marker.
2082
d278f585
AH
20832018-04-18 Alan Hayward <alan.hayward@arm.com>
2084
2085 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
2086 (tdesc_osabi_name): Likewise.
2087 * target-descriptions.c (tdesc_architecture_name): Add new
2088 function.
2089 (tdesc_osabi_name): Likewise.
2090
eee8a18d
AH
20912018-04-18 Alan Hayward <alan.hayward@arm.com>
2092
2093 * common/tdesc.c (tdesc_predefined_type): Move to here.
2094 (tdesc_named_type): Likewise.
2095 (tdesc_create_vector): Likewise.
2096 (tdesc_create_struct): Likewise.
2097 (tdesc_set_struct_size): Likewise.
2098 (tdesc_create_union): Likewise.
2099 (tdesc_create_flags): Likewise.
2100 (tdesc_create_enum): Likewise.
2101 (tdesc_add_field): Likewise.
2102 (tdesc_add_typed_bitfield): Likewise.
2103 (tdesc_add_bitfield): Likewise.
2104 (tdesc_add_flag): Likewise.
2105 (tdesc_add_enum_value): Likewise.
2106 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
2107 (struct tdesc_type_vector): Likewise.
2108 (struct tdesc_type_field): Likewise.
2109 (struct tdesc_type_with_fields): Likewise.
2110 (tdesc_create_enum): Add declaration.
2111 (tdesc_add_typed_bitfield): Likewise.
2112 (tdesc_add_enum_value): Likewise.
2113 * target-descriptions.c (tdesc_type_field): Move from here.
2114 (tdesc_type_builtin): Likewise.
2115 (tdesc_type_vector): Likewise.
2116 (tdesc_type_with_fields): Likewise.
2117 (tdesc_predefined_types): Likewise.
2118 (tdesc_named_type): Likewise.
2119 (tdesc_create_vector): Likewise.
2120 (tdesc_create_struct): Likewise.
2121 (tdesc_set_struct_size): Likewise.
2122 (tdesc_create_union): Likewise.
2123 (tdesc_create_flags): Likewise.
2124 (tdesc_create_enum): Likewise.
2125 (tdesc_add_field): Likewise.
2126 (tdesc_add_typed_bitfield): Likewise.
2127 (tdesc_add_bitfield): Likewise.
2128 (tdesc_add_flag): Likewise.
2129 (tdesc_add_enum_value): Likewise.
2130 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
2131 (tdesc_add_typed_bitfield): Likewise.
2132 (tdesc_add_enum_value): Likewise.
2133
82ec9bc7
AH
21342018-04-18 Alan Hayward <alan.hayward@arm.com>
2135
2136 * common/tdesc.c (tdesc_feature::accept): Move to here.
2137 (tdesc_feature::operator==): Likewise.
2138 (tdesc_create_reg): Likewise.
2139 * common/tdesc.h (tdesc_type_kind): Likewise.
2140 (struct tdesc_type): Likewise.
2141 (struct tdesc_feature): Likewise.
2142 * regformats/regdat.sh: Create a feature.
2143 * target-descriptions.c (tdesc_type_kind): Move from here.
2144 (tdesc_type): Likewise.
2145 (tdesc_type_up): Likewise.
2146 (tdesc_feature): Likewise.
2147 (tdesc_create_reg): Likewise.
2148
ea3e7d71
AH
21492018-04-18 Alan Hayward <alan.hayward@arm.com>
2150
2151 * Makefile.in: Add arch/tdesc.c
2152 * common/tdesc.c: New file.
2153 * common/tdesc.h (tdesc_element_visitor): Move to here.
2154 (tdesc_element): Likewise.
2155 (tdesc_reg): Likewise.
2156 (tdesc_reg_up): Likewise.
2157 * regformats/regdef.h (reg): Add offset to constructors.
2158 * target-descriptions.c (tdesc_element_visitor): Move from here.
2159 (tdesc_element): Likewise.
2160 (tdesc_reg): Likewise.
2161 (tdesc_reg_up): Likewise.
2162
bedda9ac
TT
21632018-04-17 Tom Tromey <tom@tromey.com>
2164
2165 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
2166 discriminant field.
2167
a037790e
TT
21682018-04-17 Tom Tromey <tom@tromey.com>
2169
2170 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
2171
c7dcbf88
AA
21722018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
2173
2174 * symtab.c (print_symbol_info): Skip printing filename and line
2175 number when `last' is NULL.
2176 (symtab_symbol_info): Use empty string instead of NULL for first
2177 invocation of print_symbol_info.
2178 (rbreak_command): Pass NULL to `last' parameter of
2179 print_symbol_info.
2180
07d28c77
SM
21812018-04-16 Simon Marchi <simon.marchi@ericsson.com>
2182
2183 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
2184 instead of nullptr.
2185
8a3de5e1
PA
21862018-04-16 Pedro Alves <palves@redhat.com>
2187
2188 * MAINTAINERS (sh): Remove.
2189 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
2190 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
2191 (ALLDEPFILES): Remove sh64-tdep.c.
2192 * NEWS: Mentions that support for SH-5/SH64 is removed.
2193 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
2194 (sh*-*-openbsd*): Ditto.
2195 (sh64-*-elf*): Remove.
2196 (sh*): Remove.
2197 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
2198 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
2199 * sh-tdep.c: No longer include "sh64-tdep.h".
2200 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
2201 * sh64-tdep.c, sh64-tdep.h: Remove files.
2202
a2a79012
PA
22032018-04-16 Pedro Alves <palves@redhat.com>
2204
2205 * MAINTAINERS: Remove m88k.
2206 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
2207 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
2208 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
2209 * NEWS: Mention that support for m88k was removed.
2210 * configure.host (m88*-*-*): Remove support.
2211 * configure.nat (m88k-*-*): Remove support.
2212 * configure.tgt (m88*-*-openbsd*): Remove.
2213 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
2214
eda4efb1
SM
22152018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
2216
2217 * configure.tgt (x86_tobjs): New variable.
2218 (amd64_tobjs, i386_tobjs): Use it.
2219
b744723f
AA
22202018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2221
2222 * symtab.c (print_symbol_info): Precede the symbol definition by
2223 the line number when available.
2224 * NEWS: Advertise this enhancement.
2225
4a4495d6
MM
22262018-04-13 Markus Metzger <markus.t.metzger@intel.com>
2227
2228 * NEWS (New options): announce set/show record btrace cpu.
2229 * btrace.c: Include record-btrace.h.
2230 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
2231 the vendor is unknown.
2232 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
2233 Maybe overwrite the btrace configuration's cpu.
2234 (btrace_compute_ftrace): Add cpu parameter. Update callers.
2235 (btrace_fetch): Add cpu parameter. Update callers.
2236 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
2237 Maybe overwrite the btrace configuration's cpu. Skip enabling
2238 errata workarounds if the vendor is unknown.
2239 * python/py-record-btrace.c: Include record-btrace.h.
2240 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
2241 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
2242 * record-btrace.c (record_btrace_cpu_state_kind): New.
2243 (record_btrace_cpu): New.
2244 (set_record_btrace_cpu_cmdlist): New.
2245 (record_btrace_get_cpu): New.
2246 (require_btrace_thread, record_btrace_info)
2247 (record_btrace_resume_thread): Call record_btrace_get_cpu.
2248 (cmd_set_record_btrace_cpu_none): New.
2249 (cmd_set_record_btrace_cpu_auto): New.
2250 (cmd_set_record_btrace_cpu): New.
2251 (cmd_show_record_btrace_cpu): New.
2252 (_initialize_record_btrace): Initialize set/show record btrace cpu
2253 commands.
2254 * record-btrace.h (record_btrace_get_cpu): New.
2255
69f90c75
MM
22562018-04-13 Markus Metzger <markus.t.metzger@intel.com>
2257
2258 * record.c (set_record_command): Fix typo in message.
2259
b85310e1
MM
22602018-04-13 Markus Metzger <markus.t.metzger@intel.com>
2261
2262 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
2263
1d509aa6
MM
22642018-04-13 Markus Metzger <markus.t.metzger@intel.com>
2265
2266 * infrun.c (process_event_stop_test): Call
2267 gdbarch_in_indirect_branch_thunk.
2268 * gdbarch.sh (in_indirect_branch_thunk): New.
2269 * gdbarch.c: Regenerated.
2270 * gdbarch.h: Regenerated.
2271 * x86-tdep.h: New.
2272 * x86-tdep.c: New.
2273 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
2274 (HFILES_NO_SRCDIR): Add x86-tdep.h.
2275 (ALLDEPFILES): Add x86-tdep.c.
2276 * arch-utils.h (default_in_indirect_branch_thunk): New.
2277 * arch-utils.c (default_in_indirect_branch_thunk): New.
2278 * i386-tdep: Include x86-tdep.h.
2279 (i386_in_indirect_branch_thunk): New.
2280 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
2281 function.
2282 * amd64-tdep: Include x86-tdep.h.
2283 (amd64_in_indirect_branch_thunk): New.
2284 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
2285
b4be9bfd
JK
22862018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2287
2288 PR gdb/23053
2289 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
2290 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
2291 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
2292 regression.
2293
53d7df28
TT
22942018-04-12 Tom Tromey <tom@tromey.com>
2295
2296 * rust-lang.c (rust_print_struct_def): Remove univariant code.
2297 (rust_evaluate_subexp): Likewise.
2298
70b33f19
PA
22992018-04-12 Pedro Alves <palves@redhat.com>
2300
2301 * procfs.c (procfs_detach): Make forward declaration's prototype
2302 match definition's protototype.
2303 (proc_get_LDT_entry): Remove stale do_cleanups call.
2304
436411b1
PA
23052018-04-12 Pedro Alves <palves@redhat.com>
2306
2307 * target.h (target_ops::to_has_exited): Delete.
2308 (target_has_exited): Delete.
2309 * target-delegates.c: Regenerate.
2310
20db9c52
PA
23112018-04-11 Pedro Alves <palves@redhat.com>
2312
2313 * target.c (fileio_fh_t::t): Add comment.
2314 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
2315 (target_fileio_close): Handle a NULL target.
2316 (invalidate_fileio_fh): New.
2317 (target_close): Call it.
2318 * remote.c (remote_hostio_send_command): No longer check whether
2319 remote_desc is open.
2320
5ff79300
PA
23212018-04-11 Pedro Alves <palves@redhat.com>
2322
2323 * target.c (fileio_fh_t): Make it a named struct instead of a
2324 typedef.
2325 (fileio_fh_t::is_closed): New method.
2326 (DEF_VEC_O (fileio_fh_t)): Remove.
2327 (fileio_fhandles): Now a std::vector.
2328 (is_closed_fileio_fh): Delete.
2329 (acquire_fileio_fd): Adjust. Rename parameters.
2330 (release_fileio_fd): Adjust.
2331 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
2332 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
2333 (target_fileio_close): Adjust.
2334
6e22e10d
SM
23352018-04-10 Simon Marchi <simon.marchi@ericsson.com>
2336
2337 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
2338 index.
2339
731f534f
PA
23402018-04-10 Pedro Alves <palves@redhat.com>
2341
2342 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
2343 (scoped_finish_thread_state): New class.
2344 * infcmd.c (run_command_1): Use it instead of finish_thread_state
2345 cleanup.
2346 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
2347 (fetch_inferior_event, normal_stop): Likewise.
2348 * thread.c (finish_thread_state_cleanup): Delete.
2349
d5f4488f
SM
23502018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2351 Pedro Alves <palves@redhat.com>
2352
2353 * value.c: Include "selftest.h" and "common/array-view.h".
2354 (struct range) <operator ==>: New.
2355 (test_ranges_contain): New.
2356 (check_ranges_vector): New.
2357 (test_insert_into_bit_range_vector): New.
2358 (_initialize_values): Register selftests.
2359 * common/array-view.h (operator==, operator!=): New.
2360
b24531ed
SM
23612018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2362
2363 * common/gdb_vecs.h (unordered_remove): Add overload that takes
2364 an iterator.
2365 * inline-frame.c: Include <algorithm>.
2366 (struct inline_state): Add constructor.
2367 (inline_state_s): Remove.
2368 (DEF_VEC_O(inline_state_s)): Remove.
2369 (inline_states): Change type to std::vector.
2370 (find_inline_frame_state): Adjust to std::vector.
2371 (allocate_inline_frame_state): Remove.
2372 (clear_inline_frame_state): Adjust to std::vector.
2373 (skip_inline_frames): Adjust to std::vector.
2374
c252925c
SM
23752018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2376
2377 * tracepoint.h (struct trace_state_variable): Add constructor.
2378 <name>: Change type to std::string.
2379 * tracepoint.c (tsv_s): Remove.
2380 (DEF_VEC_O(tsv_s)): Remove.
2381 (tvariables): Change to std::vector.
2382 (create_trace_state_variable): Adjust to std::vector.
2383 (find_trace_state_variable): Likewise.
2384 (find_trace_state_variable_by_number): Likewise.
2385 (delete_trace_state_variable): Likewise.
2386 (trace_variable_command): Adjust to std::string.
2387 (delete_trace_variable_command): Likewise.
2388 (tvariables_info_1): Adjust to std::vector.
2389 (save_trace_state_variables): Likewise.
2390 (start_tracing): Likewise.
2391 (merge_uploaded_trace_state_variables): Adjust to std::vector
2392 and std::string.
2393 * target.h (struct target_ops)
2394 <to_download_trace_state_variable>: Pass reference to
2395 trace_state_variable.
2396 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
2397 * target-delegates.c: Re-generate.
2398 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
2399 (mi_tsv_deleted): Likewise.
2400 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
2401 * remote.c (remote_download_trace_state_variable): Change
2402 pointer to reference and adjust.
2403 * make-target-delegates (parse_argtypes): Handle references.
2404 (write_function_header): Likewise.
2405 (munge_type): Likewise.
2406
c9638d26
SM
24072018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2408
2409 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2410 string_view-selftests.c.
2411 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
2412 testsuite.
2413 * unittests/basic_string_view/cons/char/1.cc: Likewise.
2414 * unittests/basic_string_view/cons/char/2.cc: Likewise.
2415 * unittests/basic_string_view/cons/char/3.cc: Likewise.
2416 * unittests/basic_string_view/element_access/char/1.cc:
2417 Likewise.
2418 * unittests/basic_string_view/element_access/char/empty.cc:
2419 Likewise.
2420 * unittests/basic_string_view/element_access/char/front_back.cc:
2421 Likewise.
2422 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
2423 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
2424 Likewise.
2425 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
2426 Likewise.
2427 * unittests/basic_string_view/modifiers/swap/char/1.cc:
2428 Likewise.
2429 * unittests/basic_string_view/operations/compare/char/1.cc:
2430 Likewise.
2431 * unittests/basic_string_view/operations/compare/char/13650.cc:
2432 Likewise.
2433 * unittests/basic_string_view/operations/copy/char/1.cc:
2434 Likewise.
2435 * unittests/basic_string_view/operations/data/char/1.cc:
2436 Likewise.
2437 * unittests/basic_string_view/operations/find/char/1.cc:
2438 Likewise.
2439 * unittests/basic_string_view/operations/find/char/2.cc:
2440 Likewise.
2441 * unittests/basic_string_view/operations/find/char/3.cc:
2442 Likewise.
2443 * unittests/basic_string_view/operations/find/char/4.cc:
2444 Likewise.
2445 * unittests/basic_string_view/operations/rfind/char/1.cc:
2446 Likewise.
2447 * unittests/basic_string_view/operations/rfind/char/2.cc:
2448 Likewise.
2449 * unittests/basic_string_view/operations/rfind/char/3.cc:
2450 Likewise.
2451 * unittests/basic_string_view/operations/substr/char/1.cc:
2452 Likewise.
2453 * unittests/basic_string_view/operators/char/2.cc: Likewise.
2454 * unittests/string_view-selftests.c: New file.
2455
fdc11678
SM
24562018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2457
2458 * unittests/basic_string_view/capacity/1.cc: New file.
2459 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
2460 * unittests/basic_string_view/cons/char/1.cc: New file.
2461 * unittests/basic_string_view/cons/char/2.cc: New file.
2462 * unittests/basic_string_view/cons/char/3.cc: New file.
2463 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
2464 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
2465 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
2466 * unittests/basic_string_view/element_access/char/1.cc: New file.
2467 * unittests/basic_string_view/element_access/char/2.cc: New file.
2468 * unittests/basic_string_view/element_access/char/empty.cc: New file.
2469 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
2470 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
2471 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
2472 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
2473 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
2474 * unittests/basic_string_view/include.cc: New file.
2475 * unittests/basic_string_view/inserters/char/1.cc: New file.
2476 * unittests/basic_string_view/inserters/char/2.cc: New file.
2477 * unittests/basic_string_view/inserters/char/3.cc: New file.
2478 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
2479 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
2480 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
2481 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
2482 * unittests/basic_string_view/literals/types.cc: New file.
2483 * unittests/basic_string_view/literals/values.cc: New file.
2484 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
2485 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
2486 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
2487 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
2488 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
2489 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
2490 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
2491 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
2492 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
2493 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
2494 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
2495 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
2496 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
2497 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
2498 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
2499 * unittests/basic_string_view/operations/data/char/1.cc: New file.
2500 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
2501 * unittests/basic_string_view/operations/find/char/1.cc: New file.
2502 * unittests/basic_string_view/operations/find/char/2.cc: New file.
2503 * unittests/basic_string_view/operations/find/char/3.cc: New file.
2504 * unittests/basic_string_view/operations/find/char/4.cc: New file.
2505 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
2506 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
2507 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
2508 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
2509 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
2510 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
2511 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
2512 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
2513 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
2514 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
2515 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
2516 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
2517 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
2518 * unittests/basic_string_view/operators/char/2.cc: New file.
2519 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
2520 * unittests/basic_string_view/range_access/char/1.cc: New file.
2521 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
2522 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
2523 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
2524 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
2525 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
2526 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
2527 * unittests/basic_string_view/requirements/typedefs.cc: New file.
2528 * unittests/basic_string_view/typedefs.cc: New file.
2529 * unittests/basic_string_view/types/1.cc: New file.
2530
8345c4a2
SM
25312018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2532
2533 * common/gdb_string_view.h: Remove libstdc++ implementation
2534 details, adjust to gdb reality.
2535 * common/gdb_string_view.tcc: Likewise.
2536 * cli/cli-script.c (struct string_view): Remove.
2537 (user_args) <m_args>: Change element type to gdb::string_view.
2538 (user_args::insert_args): Adjust.
2539
7adcdf08
SM
25402018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2541
2542 * common/gdb_string_view.h: New file.
2543 * common/gdb_string_view.tcc: New file.
2544
41260ac2
SM
25452018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2546
2547 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
2548 * configure: Re-generate.
2549
0bee6dd4
PA
25502018-04-09 Pedro Alves <palves@redhat.com>
2551
2552 * gdbarch.sh: Include "observable.h" instead of "observer.h".
2553 (set_target_gdbarch): Call
2554 gdb::observers::architecture_changed.notify instead of
2555 observer_notify_architecture_changed.
2556
6f14adc5
SM
25572018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * tracepoint.c (struct current_traceframe_cleanup): Remove.
2560 (do_restore_current_traceframe_cleanup): Remove.
2561 (restore_current_traceframe_cleanup_dtor): Remove.
2562 (make_cleanup_restore_current_traceframe): Remove.
2563 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
2564 New.
2565 * tracepoint.h (struct scoped_restore_current_traceframe): New.
2566 * infrun.c (fetch_inferior_event): Use
2567 scoped_restore_current_traceframe.
2568
b2bdb8cf
SM
25692018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2570
2571 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
2572 Remove.
2573 <n_allocated_type_units>: Remove.
2574 <all_type_units>: Change to std::vector.
2575 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
2576 to std::vector change.
2577 (dwarf2_per_objfile::get_cutu): Likewise.
2578 (dwarf2_per_objfile::get_tu): Likewise.
2579 (create_signatured_type_table_from_index): Likewise.
2580 (create_signatured_type_table_from_debug_names): Likewise.
2581 (dw2_symtab_iter_next): Likewise.
2582 (dw2_print_stats): Likewise.
2583 (dw2_expand_all_symtabs): Likewise.
2584 (dw2_expand_marked_cus): Likewise.
2585 (dw2_debug_names_iterator::next): Likewise.
2586 (dwarf2_initialize_objfile): Likewise.
2587 (add_signatured_type_cu_to_table): Likewise.
2588 (create_all_type_units): Likewise.
2589 (add_type_unit): Likewise.
2590 (struct tu_abbrev_offset): Add constructor.
2591 (build_type_psymtabs_1): Adjust to std::vector change.
2592 (print_tu_stats): Likewise.
2593 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
2594 (write_debug_names): Likewise.
2595
b76e467d
SM
25962018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2597
2598 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
2599 Make an std::vector.
2600 <n_comp_units>: Remove.
2601 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
2602 to std::vector change.
2603 (dwarf2_per_objfile::get_cutu): Likewise.
2604 (dwarf2_per_objfile::get_cu): Likewise.
2605 (create_cus_from_index): Likewise.
2606 (create_addrmap_from_index): Likewise.
2607 (create_addrmap_from_aranges): Likewise.
2608 (dwarf2_read_index): Likewise.
2609 (dw2_find_last_source_symtab): Likewise.
2610 (dw2_map_symtabs_matching_filename): Likewise.
2611 (dw2_symtab_iter_next): Likewise.
2612 (dw2_print_stats): Likewise.
2613 (dw2_expand_all_symtabs): Likewise.
2614 (dw2_expand_symtabs_with_fullname): Likewise.
2615 (dw2_expand_marked_cus): Likewise.
2616 (dw2_map_symbol_filenames): Likewise.
2617 (create_cus_from_debug_names): Likewise.
2618 (dwarf2_read_debug_names): Likewise.
2619 (dw2_debug_names_iterator::next): Likewise.
2620 (dwarf2_initialize_objfile): Likewise.
2621 (set_partial_user): Likewise.
2622 (dwarf2_build_psymtabs_hard): Likewise.
2623 (read_comp_units_from_section): Remove arguments, adjust to
2624 std::vector change.
2625 (create_all_comp_units): Adjust to std::vector and
2626 read_comp_units_from_section changes.
2627 (dwarf2_find_containing_comp_unit): Adjust to std::vector
2628 change.
2629 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
2630 (psyms_seen_size): Likewise.
2631 (write_gdbindex): Likewise.
2632 (write_debug_names): Likewise.
2633
12359b5e
SM
26342018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2635
2636 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
2637 with dwarf2_per_objfile.
2638 (create_cus_from_index): Likewise.
2639 (create_signatured_type_table_from_index): Likewise.
2640 (dwarf2_read_index): Likewise.
2641 (dwarf2_initialize_objfile): Likewise.
2642 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
2643 per_cu rather than get_dwarf2_per_objfile.
2644
ff4c9fec
SM
26452018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2646
2647 * dwarf2read.h (struct signatured_type): Forward declare.
2648 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
2649 New methods.
2650 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
2651 (dw2_get_cutu): ...this.
2652 (dwarf2_per_objfile::get_cu): Rename from...
2653 (dw2_get_cu): ...this.
2654 (dwarf2_per_objfile::get_tu): New.
2655 (create_addrmap_from_index): Adjust.
2656 (create_addrmap_from_aranges): Adjust.
2657 (dw2_find_last_source_symtab): Adjust.
2658 (dw2_map_symtabs_matching_filename): Adjust.
2659 (dw2_symtab_iter_next): Adjust.
2660 (dw2_print_stats): Adjust.
2661 (dw2_expand_all_symtabs): Adjust.
2662 (dw2_expand_symtabs_with_fullname): Adjust.
2663 (dw2_expand_marked_cus): Adjust.
2664 (dw_expand_symtabs_matching_file_matcher): Adjust.
2665 (dw2_map_symbol_filenames): Adjust.
2666 (dw2_debug_names_iterator::next): Adjust.
2667 (dwarf2_initialize_objfile): Adjust.
2668 (set_partial_user): Adjust.
2669 (dwarf2_build_psymtabs_hard): Adjust.
2670
5ca3fcb6
SM
26712018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2672
2673 * dwarf2read.c (create_signatured_type_table_from_debug_names):
2674 Remove unused variables.
2675 (dw2_map_symtabs_matching_filename): Likewise.
2676 (dwarf2_record_block_ranges): Likewise.
2677 (dwarf2_read_addr_index): Likewise.
2678 (follow_die_offset): Likewise.
2679
b2e586e8
SM
26802018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2681
2682 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
2683 to symbol_file_add_main.
2684
7c4e78cf
SM
26852018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2686
2687 PR mi/22299
2688 * mi/mi-console.c (do_fputc_async_safe): New.
2689 (mi_console_file::write_async_safe): New.
2690 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
2691 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
2692 New.
2693 * ui-file.c (ui_file::putstrn): Adjust call to
2694 fputstrn_unfiltered.
2695 * utils.c (printchar): Replace do_fputs and do_fprintf
2696 parameters by do_fputc.
2697 (fputstr_filtered): Adjust call to printchar.
2698 (fputstr_unfiltered): Likewise.
2699 (fputstrn_filtered): Likewise.
2700 (fputstrn_unfiltered): Add do_fputc parameter, pass to
2701 printchar.
2702 * utils.h (do_fputc_ftype): New typedef.
2703 (fputstrn_unfiltered): Add do_fputc parameter.
2704
5dc026d3
SM
27052018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2706
2707 * regformats/i386/i386-avx.dat: Remove.
2708
c912f608
SM
27092018-04-07 Simon Marchi <simon.marchi@ericsson.com>
2710
2711 PR gdb/22979
2712 * amd64-tdep.c (amd64_none_init_abi): New function.
2713 (amd64_x32_none_init_abi): New function.
2714 (_initialize_amd64_tdep): Register handlers for x86-64 and
2715 x64_32 with GDB_OSABI_NONE.
2716 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
2717 GDB_OSABI_NONE osabi.
2718
26540402
SM
27192018-04-07 Simon Marchi <simon.marchi@ericsson.com>
2720
2721 PR gdb/22980
2722 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
2723 GDB_OSABI_NONE.
2724 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
2725 * osabi.c (gdb_osabi_names): Add "unknown" entry.
2726
9018be22
SM
27272018-04-07 Simon Marchi <simon.marchi@ericsson.com>
2728
2729 * common/byte-vector.h (char_vector): New type.
2730 * target.h (target_read_alloc): Return
2731 gdb::optional<byte_vector>.
2732 (target_read_stralloc): Return gdb::optional<char_vector>.
2733 (target_get_osdata): Return gdb::optional<char_vector>.
2734 * target.c (target_read_alloc_1): Templatize. Replacement
2735 manual memory management with vector.
2736 (target_read_alloc): Change return type, adjust.
2737 (target_read_stralloc): Change return type, adjust.
2738 (target_get_osdata): Change return type, adjust.
2739 * auxv.c (struct auxv_info) <length>: Remove.
2740 <data>: Change type to gdb::optional<byte_vector>.
2741 (auxv_inferior_data_cleanup): Free auxv_info with delete.
2742 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
2743 (target_auxv_search): Adjust.
2744 (fprint_target_auxv): Adjust.
2745 * avr-tdep.c (avr_io_reg_read_command): Adjust.
2746 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
2747 (linux_make_corefile_notes): Adjust.
2748 * osdata.c (get_osdata): Adjust.
2749 * remote.c (remote_get_threads_with_qxfer): Adjust.
2750 (remote_memory_map): Adjust.
2751 (remote_traceframe_info): Adjust.
2752 (btrace_read_config): Adjust.
2753 (remote_read_btrace): Adjust.
2754 (remote_pid_to_exec_file): Adjust.
2755 * solib-aix.c (solib_aix_get_library_list): Adjust.
2756 * solib-dsbt.c (decode_loadmap): Don't free buf.
2757 (dsbt_get_initial_loadmaps): Adjust.
2758 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
2759 * solib-target.c (solib_target_current_sos): Adjust.
2760 * tracepoint.c (sdata_make_value): Adjust.
2761 * xml-support.c (xinclude_start_include): Adjust.
2762 (xml_fetch_content_from_file): Adjust.
2763 * xml-support.h (xml_fetch_another): Change return type.
2764 (xml_fetch_content_from_file): Change return type.
2765 * xml-syscall.c (xml_init_syscalls_info): Adjust.
2766 * xml-tdesc.c (file_read_description_xml): Adjust.
2767 (fetch_available_features_from_target): Change return type.
2768 (target_fetch_description_xml): Adjust.
2769 (target_read_description_xml): Adjust.
2770
14c88955
TT
27712018-04-06 Tom Tromey <tom@tromey.com>
2772
2773 * value.c (~value): Update.
2774 (struct value) <contents>: Now unique_xmalloc_ptr.
2775 (value_contents_bits_eq, allocate_value_contents)
2776 (value_contents_raw, value_contents_all_raw)
2777 (value_contents_for_printing, value_contents_for_printing_const)
2778 (set_value_enclosing_type): Update.
2779
0c7e6dd8
TT
27802018-04-06 Tom Tromey <tom@tromey.com>
2781
2782 * value.c (range_s): Remove typedef, VEC.
2783 (struct range): Add operator<.
2784 (range_lessthan): Remove.
2785 (ranges_contain): Change type.
2786 (~value): Update.
2787 (struct value) <unavailable, optimized_out>: Now std::vector.
2788 (value_entirely_available)
2789 (value_entirely_covered_by_range_vector)
2790 (value_entirely_unavailable, value_entirely_optimized_out):
2791 Update.
2792 (insert_into_bit_range_vector): Change argument type.
2793 (find_first_range_overlap): Likewise.
2794 (struct ranges_and_idx, value_contents_bits_eq)
2795 (require_not_optimized_out, require_available): Update.
2796 (ranges_copy_adjusted): Change argument types.
2797 (value_optimized_out, value_copy, value_fetch_lazy): Update.
2798
2c8331b9
TT
27992018-04-06 Tom Tromey <tom@tromey.com>
2800
2801 * value.c (~value): Update.
2802 (struct value) <parent>: Now a value_ref_ptr.
2803 (value_parent, set_value_parent, value_address, value_copy):
2804 Update.
2805
466ce3ae
TT
28062018-04-06 Tom Tromey <tom@tromey.com>
2807
2808 * value.c (struct value): Add constructor, destructor, and member
2809 initializers.
2810 (allocate_value_lazy, value_decref): Update.
2811
062d818d
TT
28122018-04-06 Tom Tromey <tom@tromey.com>
2813
2814 * value.c (struct value) <released, next>: Remove.
2815 (all_values): Now a std::vector.
2816 (allocate_value_lazy): Update.
2817 (value_next): Remove.
2818 (value_mark, value_free_to_mark, release_value)
2819 (value_release_to_mark): Update.
2820
a6535de1
TT
28212018-04-06 Tom Tromey <tom@tromey.com>
2822
2823 * value.h (fetch_subexp_value, value_release_to_mark): Update.
2824 (free_value_chain): Remove.
2825 * value.c (free_value_chain): Remove.
2826 (value_release_to_mark): Return a std::vector.
2827 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
2828 std::vector.
2829 (check_condition): Update.
2830 * eval.c (fetch_subexp_value): Change "val_chain" to a
2831 std::vector.
2832 * breakpoint.c (update_watchpoint): Update.
2833 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
2834
b5621201
TT
28352018-04-06 Tom Tromey <tom@tromey.com>
2836
2837 * value.h (free_all_values): Remove.
2838 * value.c (free_all_values): Remove.
2839
4d0266a0
TT
28402018-04-06 Tom Tromey <tom@tromey.com>
2841
2842 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
2843 (value_history_chain, value_history_count): Remove.
2844 (value_history): New global.
2845 (record_latest_value, access_value_history, show_values)
2846 (preserve_values): Update.
2847
b4d61099
TT
28482018-04-06 Tom Tromey <tom@tromey.com>
2849
2850 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
2851 * varobj.c (varobj_set_display_format, varobj_set_value)
2852 (install_default_visualizer, construct_visualizer)
2853 (install_new_value, ~varobj, varobj_get_value_type)
2854 (my_value_of_variable, varobj_editable_p): Update.
2855 * c-varobj.c (c_describe_child, c_value_of_variable)
2856 (cplus_number_of_children, cplus_describe_child): Update.
2857 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
2858 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
2859 (ada_value_of_variable, ada_value_is_changeable_p): Update.
2860
9b558729
TT
28612018-04-06 Tom Tromey <tom@tromey.com>
2862
2863 * printcmd.c (last_examine_address): Change type to
2864 value_ref_ptr.
2865 (do_examine, x_command): Update.
2866
850645cf
TT
28672018-04-06 Tom Tromey <tom@tromey.com>
2868
2869 * value.c (release_value): Update.
2870 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
2871 (struct bpstats) <val>: Now a value_ref_ptr.
2872 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
2873 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
2874 (~watchpoint, print_it_watchpoint, watch_command_1)
2875 (invalidate_bp_value_on_memory_change): Update.
2876
22bc8444
TT
28772018-04-06 Tom Tromey <tom@tromey.com>
2878
2879 * varobj.c (varobj_clear_saved_item)
2880 (update_dynamic_varobj_children, install_new_value, ~varobj):
2881 Update.
2882 * value.h (value_incref): Move declaration earlier.
2883 (value_decref): Rename from value_free.
2884 (struct value_ref_policy): New.
2885 (value_ref_ptr): New typedef.
2886 (struct value_deleter): Remove.
2887 (gdb_value_up): Remove typedef.
2888 (release_value): Change return type.
2889 (release_value_or_incref): Remove.
2890 * value.c (set_value_parent): Update.
2891 (value_incref): Change return type.
2892 (value_decref): Rename from value_free.
2893 (value_free_to_mark, free_all_values, free_value_chain): Update.
2894 (release_value): Return value_ref_ptr.
2895 (release_value_or_incref): Remove.
2896 (record_latest_value, set_internalvar, clear_internalvar):
2897 Update.
2898 * stack.c (info_frame_command): Don't call value_free.
2899 * python/py-value.c (valpy_dealloc, valpy_new)
2900 (value_to_value_object): Update.
2901 * printcmd.c (do_examine): Update.
2902 * opencl-lang.c (lval_func_free_closure): Update.
2903 * mi/mi-main.c (register_changed_p): Don't call value_free.
2904 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
2905 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
2906 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
2907 value_free.
2908 * guile/scm-value.c (vlscm_free_value_smob)
2909 (vlscm_scm_from_value): Update.
2910 * frame.c (frame_register_unwind, frame_unwind_register_signed)
2911 (frame_unwind_register_unsigned, get_frame_register_bytes)
2912 (put_frame_register_bytes): Don't call value_free.
2913 * findvar.c (address_from_register): Don't call value_free.
2914 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
2915 * dwarf2loc.c (entry_data_value_free_closure)
2916 (value_of_dwarf_reg_entry, free_pieced_value_closure)
2917 (dwarf2_evaluate_loc_desc_full): Update.
2918 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
2919 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
2920 (~watchpoint, watch_command_1)
2921 (invalidate_bp_value_on_memory_change): Update.
2922 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
2923
7f8a5d38
SM
29242018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
2925
2926 PR gdb/23022
2927 * warning.m4: Add -Wno-error=deprecated-register.
2928 * configure: Re-generate.
2929
8a76bd3b
TT
29302018-04-05 Tom Tromey <tom@tromey.com>
2931
2932 * linespec.h: Remove include of "vec.h".
2933
8e8d776e
TT
29342018-04-05 Tom Tromey <tom@tromey.com>
2935
2936 * linespec.c (typep): Remove typedef.
2937 (find_methods, find_superclass_methods): Take a std::vector.
2938 (find_method): Use std::vector.
2939
9b2f8581
TT
29402018-04-05 Tom Tromey <tom@tromey.com>
2941
2942 * utils.c (compare_strings): Remove.
2943 * utils.h (compare_strings): Remove.
2944 * objc-lang.h (find_imps): Update.
2945 * objc-lang.c (find_methods): Take a std::vector.
2946 (uniquify_strings, find_imps): Likewise.
2947 * linespec.c (find_methods): Take a std::vector.
2948 (decode_objc): Use std::vector.
2949 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
2950 a std::vector.
2951 (find_method, find_function_symbols): Use std::vector.
2952
459a2e4c
TT
29532018-04-05 Tom Tromey <tom@tromey.com>
2954
2955 * completer.c (completion_tracker::completion_tracker): Remove
2956 cast.
2957 (completion_tracker::discard_completions): Likewise.
2958 * breakpoint.c (ambiguous_names_p): Remove cast.
2959 * ada-lang.c (_initialize_ada_language): Remove cast.
2960 * utils.h (streq): Update.
2961 (streq_hash): Add new declaration.
2962 * utils.c (streq): Return bool.
2963 (streq_hash): New function.
2964
9be2c17a
TT
29652018-04-05 Tom Tromey <tom@tromey.com>
2966
2967 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
2968 Remove a string copy.
2969
f73c6ece
TT
29702018-04-05 Tom Tromey <tom@tromey.com>
2971
2972 * linespec.c (filter_results): Use std::vector.
2973 (decode_line_2, decode_line_full): Update.
2974
53a0f8a2
TT
29752018-04-05 Tom Tromey <tom@tromey.com>
2976
2977 * linespec.c (canonical_to_fullform): Return std::string.
2978 (filter_results): Update.
2979 (struct decode_line_2_item): Add constructor.
2980 <fullform, displayform>: Now std::string.
2981 (decode_line_2_compare_items): Now a std::sort comparator.
2982 (decode_line_2): Update.
2983
a5b5adf5
TT
29842018-04-05 Tom Tromey <tom@tromey.com>
2985
2986 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
2987 (unexpected_linespec_error): Update.
2988 (linespec_parse_basic, parse_linespec): Update.
2989
6a307fc5
TT
29902018-04-05 Tom Tromey <tom@tromey.com>
2991
2992 * linespec.c (linespec_parse_basic): Reindent.
2993
41c1efc6
TT
29942018-04-05 Tom Tromey <tom@tromey.com>
2995
2996 * minsyms.h (iterate_over_minimal_symbols): Update.
2997 * minsyms.c (iterate_over_minimal_symbols): Take a
2998 gdb::function_view.
2999 * linespec.c (struct collect_minsyms): Remove.
3000 (compare_msyms): Now a std::sort comparator.
3001 (add_minsym): Add parameters.
3002 (search_minsyms_for_name): Update. Use std::vector.
3003
c5edbf3d
TT
30042018-04-03 Tom Tromey <tom@tromey.com>
3005
3006 * mipsread.c (read_alphacoff_dynamic_symtab): Use
3007 gdb::byte_vector.
3008
b39efc48
WP
30092018-04-02 Weimin Pan <weimin.pan@oracle.com>
3010
3011 * MAINTAINERS (Write After Approval): Add Weimin Pan.
3012
121ad66c 30132018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
3014
3015 PR gdb/16959
3016 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
3017 printing static type.
3018
09473be8
TT
30192018-04-01 Tom Tromey <tom@tromey.com>
3020
3021 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
3022 (rs6000_xfer_shared_libraries): Update.
3023
ec1f2d91
SM
30242018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
3025
3026 * common/gdb_vecs.h (char_ptr): Remove.
3027 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
3028
d8611974
SM
30292018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3030
3031 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
3032 with std::vector.
3033 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
3034
a18ba4e4
SM
30352018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3036
3037 * tracepoint.h (struct uploaded_tp): Initialize fields.
3038 <actions, step_actions, cmd_strings>: Change type to
3039 std::vector<char *>.
3040 * tracepoint.c (get_uploaded_tp): Allocate with new.
3041 (free_uploaded_tps): Free with delete.
3042 (parse_tracepoint_definition): Adjust to std::vector change.
3043 * breakpoint.c (read_uploaded_action): Likewise.
3044 (create_tracepoint_from_upload): Likewise.
3045 * ctf.c (ctf_write_uploaded_tp): Likewise.
3046 (SET_ARRAY_FIELD): Likewise.
3047 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
3048
a7961323
TT
30492018-03-30 Tom Tromey <tom@tromey.com>
3050
3051 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
3052 std::unique_ptr.
3053 (svr4_keep_data_in_core): Update.
3054 (svr4_read_so_list): Update.
3055
e83e4e24
TT
30562018-03-30 Tom Tromey <tom@tromey.com>
3057
3058 * windows-nat.c (handle_output_debug_string, handle_exception):
3059 Update.
3060 * target.h (target_read_string): Update.
3061 * target.c (target_read_string): Change "string" to
3062 unique_xmalloc_ptr.
3063 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3064 Update.
3065 * solib-frv.c (frv_current_sos): Update.
3066 * solib-dsbt.c (dsbt_current_sos): Update.
3067 * solib-darwin.c (darwin_current_sos): Update.
3068 * linux-thread-db.c (inferior_has_bug): Update.
3069 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
3070 Update. Remove alloca.
3071 * ada-lang.c (ada_main_name): Update.
3072
263db9a1
TT
30732018-03-30 Tom Tromey <tom@tromey.com>
3074
3075 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
3076 (struct dwo_file_deleter): New.
3077 (dwo_file_up): New typedef.
3078 (open_and_init_dwo_file): Use dwo_file_up.
3079 (free_dwo_file_cleanup): Remove.
3080
5dafb3d1
TT
30812018-03-30 Tom Tromey <tom@tromey.com>
3082
3083 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
3084 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
3085
11ed8cad
TT
30862018-03-30 Tom Tromey <tom@tromey.com>
3087
3088 * dwarf2read.c (class free_cached_comp_units): New class.
3089 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
3090 (free_cached_comp_units): Remove function.
3091
9ae79dac
TT
30922018-03-30 Tom Tromey <tom@tromey.com>
3093
3094 * utils.h (make_cleanup_unpush_target): Remove.
3095 * inf-ptrace.c (struct target_unpusher): New.
3096 (target_unpush_up) New typedef.
3097 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
3098 target_unpush_up.
3099 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
3100
5aa89276
TT
31012018-03-27 Tom Tromey <tom@tromey.com>
3102
3103 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
3104
1dbeed45
TT
31052018-03-27 Pedro Alves <palves@redhat.com>
3106 Tom Tromey <tom@tromey.com>
3107
3108 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
3109 destructor. Now a class.
3110 (gdb_readline_wrapper_cleanup): Remove function.
3111 (gdb_readline_wrapper): Remove cleanups.
3112
c819b2c0
TT
31132018-03-27 Tom Tromey <tom@tromey.com>
3114
3115 * typeprint.h (struct type_print_options) <local_typedefs,
3116 global_typedefs>: Remove "struct" keyword.
3117 (class typedef_hash_table): New class.
3118 (recursively_update_typedef_hash, add_template_parameters)
3119 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
3120 (find_typedef_in_hash): Don't declare.
3121 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
3122 (typedef_hash_table::recursively_update): Rename from
3123 recursively_update_typedef_hash. Now a member.
3124 (typedef_hash_table::add_template_parameters): Rename from
3125 add_template_parameters. Now a member.
3126 (typedef_hash_table::typedef_hash_table): Now a constructor;
3127 rename from create_typedef_hash.
3128 (typedef_hash_table::~typedef_hash_table): Now a destructor;
3129 rename from free_typedef_hash.
3130 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
3131 (do_free_global_table): Remove.
3132 (typedef_hash_table::typedef_hash_table): New constructor; renamed
3133 from copy_type_recursive.
3134 (create_global_typedef_table): Remove.
3135 (typedef_hash_table::find_global_typedef): Now a member of
3136 typedef_hash_table.
3137 (typedef_hash_table::find_typedef): Rename from
3138 find_typedef_in_hash; now a member.
3139 (whatis_exp): Update.
3140 * extension.h (struct ext_lang_type_printers): Add constructor and
3141 destructor.
3142 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
3143 declare.
3144 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
3145 Now a constructor; rename from start_ext_lang_type_printers.
3146 (ext_lang_type_printers): Now a destructor; rename from
3147 free_ext_lang_type_printers.
3148 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
3149 Update.
3150 (c_type_print_base_struct_union): Update. Remove cleanups.
3151
608219fb
TT
31522018-03-27 Tom Tromey <tom@tromey.com>
3153
3154 * dwarf-index-write.c: Include <cmath>.
3155
3fcded8f
JB
31562018-03-27 Joel Brobecker <brobecker@adacore.com>
3157
3158 * NEWS: Add entry describing new "set|show varsize-limit" command.
3159 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
3160 command.
3161 * printcmd.c (_initialize_printcmd): Add "set var" alias of
3162 "set variable".
3163
cd4fb1b2
SM
31642018-03-27 Simon Marchi <simon.marchi@ericsson.com>
3165
3166 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
3167 dwarf-index-write.c
3168 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
3169 * dwarf-index-common.c: New file.
3170 * dwarf-index-common.h: New file.
3171 * dwarf-index-write.c: New file.
3172 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
3173 (struct dwarf2_section_info): Move from here.
3174 (dwarf2_section_info_def): Likewise.
3175 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
3176 (offset_type): Likewise.
3177 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
3178 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
3179 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
3180 (byte_swap): Likewise.
3181 (MAYBE_SWAP): Likewise.
3182 (dwarf2_per_cu_ptr): Likewise.
3183 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
3184 (struct tu_stats): Likewise.
3185 (struct dwarf2_per_objfile): Likewise.
3186 (struct dwarf2_per_cu_data): Likewise.
3187 (struct signatured_type): Likewise.
3188 (sig_type_ptr): Likewise.
3189 (DEF_VEC_P (sig_type_ptr)): Likewise.
3190 (INDEX4_SUFFIX): Likewise.
3191 (INDEX5_SUFFIX): Likewise.
3192 (DEBUG_STR_SUFFIX): Likewise.
3193 (dwarf2_read_section): Make non-static.
3194 (mapped_index_string_hash): Move from here.
3195 (dwarf5_djb_hash): Likewise.
3196 (file_write): Likewise.
3197 (class data_buf): Likewise.
3198 (struct symtab_index_entry): Likewise.
3199 (struct mapped_symtab): Likewise.
3200 (find_slot): Likewise.
3201 (hash_expand): Likewise.
3202 (add_index_entry): Likewise.
3203 (uniquify_cu_indices): Likewise.
3204 (class c_str_view): Likewise.
3205 (class c_str_view_hasher): Likewise.
3206 (class vector_hasher): Likewise.
3207 (write_hash_table): Likewise.
3208 (psym_index_map): Likewise.
3209 (struct addrmap_index_data): Likewise.
3210 (add_address_entry): Likewise.
3211 (add_address_entry_worker): Likewise.
3212 (write_address_map): Likewise.
3213 (symbol_kind): Likewise.
3214 (write_psymbols): Likewise.
3215 (struct signatured_type_index_data): Likewise.
3216 (write_one_signatured_type): Likewise.
3217 (recursively_count_psymbols): Likewise.
3218 (recursively_write_psymbols): Likewise.
3219 (class debug_names): Likewise.
3220 (check_dwarf64_offsets): Likewise.
3221 (psyms_seen_size): Likewise.
3222 (write_gdbindex): Likewise.
3223 (write_debug_names): Likewise.
3224 (assert_file_size): Likewise.
3225 (write_psymtabs_to_index): Likewise.
3226 (save_gdb_index_command): Likewise.
3227 (_initialize_dwarf2_read): Don't register the "save gdb-index"
3228 command.
3229 * dwarf2read.h: New file.
3230
59cc4834
JB
32312018-03-27 Joel Brobecker <brobecker@adacore.com>
3232
3233 PR gdb/22670
3234 * dwarf2read.c (dwarf2_physname): Do not return the demangled
3235 symbol name if the CU's language stores symbol names in linkage
3236 format.
3237 * language.h (struct language_defn)
3238 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
3239 all instances of this struct.
3240
67501539
TT
32412018-03-26 Tom Tromey <tom@tromey.com>
3242
3243 * stack.c (backtrace_command_1): Remove verbose code.
3244
76c939ac
TT
32452018-03-26 Tom Tromey <tom@tromey.com>
3246
3247 * python/py-framefilter.c (py_print_type): Don't catch
3248 exceptions. Return void.
3249 (py_print_value): Likewise.
3250 (py_print_single_arg): Likewise.
3251 (enumerate_args): Don't catch exceptions.
3252 (py_print_args): Likewise.
3253 (py_print_frame): Likewise.
3254 (gdbpy_apply_frame_filter): Catch exceptions here.
3255
9507b29c
TT
32562018-03-26 Tom Tromey <tom@tromey.com>
3257
3258 * stack.c (_initialize_stack): Remove trailing newlines from help
3259 text. Add "Usage" line to "backtrace" help.
3260
eb68e487
TT
32612018-03-26 Tom Tromey <tom@tromey.com>
3262
3263 PR python/16486:
3264 * python/py-framefilter.c (py_print_args): Call wrap_hint.
3265
1f111921
TT
32662018-03-26 Tom Tromey <tom@tromey.com>
3267
3268 * python/py-framefilter.c (py_print_single_arg): Return
3269 EXT_LANG_BT_ERROR from catch.
3270
fb7eb8b5
TT
32712018-03-26 Tom Tromey <tom@tromey.com>
3272
3273 PR backtrace/15584:
3274 * stack.c (backtrace_command_1): Move some code into no-filters
3275 "if".
3276
4ca59a9f
TT
32772018-03-26 Tom Tromey <tom@tromey.com>
3278
3279 * python/py-framefilter.c (throw_quit_or_print_exception): New
3280 function.
3281 (gdbpy_apply_frame_filter): Use it.
3282
92256134
TT
32832018-03-26 Tom Tromey <tom@tromey.com>
3284
3285 PR cli/17716:
3286 * python/py-framefilter.c (py_print_type, py_print_value)
3287 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
3288 RETURN_MASK_ERROR.
3289
7a630bc2
TT
32902018-03-26 Tom Tromey <tom@tromey.com>
3291
3292 * python/py-framefilter.c (enumerate_args): Use
3293 gdb::unique_xmalloc_ptr.
3294
63283d4a
TT
32952018-03-26 Tom Tromey <tom@tromey.com>
3296
3297 * python/py-framefilter.c (py_print_frame): Return
3298 EXT_LANG_BT_OK.
3299 (gdbpy_apply_frame_filter): Update comment.
3300 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
3301 Remove.
3302 <EXT_LANG_BT_NO_FILTERS>: Change value.
3303
978d6c75
TT
33042018-03-26 Tom Tromey <tom@tromey.com>
3305
3306 PR backtrace/15582:
3307 * stack.c (backtrace_command): Parse "hide" argument.
3308 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
3309 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
3310 constant.
3311
1cf7e640
TT
33122018-03-26 Tom Tromey <tom@tromey.com>
3313
3314 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
3315 add "flags".
3316 (backtrace_command): Remove "fulltrace", add "flags".
3317
ea3b0687
TT
33182018-03-26 Tom Tromey <tom@tromey.com>
3319
3320 * stack.c (backtrace_command): Rewrite command line parsing.
3321
9f034d75
SM
33222018-03-26 Simon Marchi <simon.marchi@ericsson.com>
3323
3324 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
3325
ce1459e5
SM
33262018-03-26 Simon Marchi <simon.marchi@ericsson.com>
3327
3328 * filename-seen-cache.h: Add include guard.
3329
4f7ae6f5
KS
33302018-03-26 Keith Seitz <keiths@redhat.com>
3331
3332 * symfile.c (place_section): Remove "struct" from section_addr_info
3333 in comment.
3334 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
3335 "struct" keyword from section_addr_info.
3336
5cd3e386
AH
33372018-03-26 Alan Hayward <alan.hayward@arm.com>
3338
3339 * regformats/regdef.h (reg): Add constructors.
3340
3e5ef9a4
PA
33412018-03-25 Pedro Alves <palves@redhat.com>
3342
3343 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
3344 if then/else bodies in var_func_name extraction.
3345
c88d2fcc 33462018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
3347
3348 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
3349 lookup_minimal_symbol() to find symbol entry.
3350 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
3351
b7fee5a3
KS
33522018-03-23 Keith Seitz <keiths@redhat.com>
3353
3354 PR c++/22968
3355 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
3356 nested type definitions for C++, too.
3357
2cc9b304
TT
33582018-03-23 Tom Tromey <tom@tromey.com>
3359
3360 * machoread.c (struct oso_el): Add a constructor. Don't define as
3361 a typedef.
3362 (macho_register_oso): Remove.
3363 (macho_symtab_read): Take a std::vector.
3364 (oso_el_compare_name): Now a std::sort comparator.
3365 (macho_symfile_read_all_oso): Take a std::vector.
3366 (macho_symfile_read): Use std::vector. Remove cleanups.
3367
a2b2bc12
TT
33682018-03-22 Tom Tromey <tom@tromey.com>
3369
3370 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
3371 (record_full_goto_bookmark): Use std::string.
3372
7a8f494c
PFC
33732018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3374
3375 PR tdep/18295
3376 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
3377 a single mask.
3378
dd6d677f
PFC
33792018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3380
3381 * rs6000-tdep.c (store_insn_p): New function.
3382 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
3383 and cr_reg to their unshifted values. Use store_insn_p to
3384 match LR saves using either R1 or fdata->alloca_reg. Use
3385 store_insn_p to match CR saves. Set alloca_reg_offset
3386 when alloca_reg and framep are set. Remove lr_reg shift
3387 when assigning to fdata->lr_register.
3388
26d6cec4
AA
33892018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3390
3391 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
3392 command line args instead of emitting a warning.
3393
5d9310c4
SM
33942018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
3395
3396 * tracepoint.h (struct static_tracepoint_marker): Initialize
3397 fields, define default constructor, move constructor and move
3398 assignment, disable the rest.
3399 <str_id, extra>: Make std::string.
3400 (release_static_tracepoint_marker): Remove.
3401 (free_current_marker): Remove.
3402 * tracepoint.c (free_current_marker): Remove.
3403 (parse_static_tracepoint_marker_definition): Adjust to
3404 std::string, use new hex2str overload.
3405 (release_static_tracepoint_marker): Remove.
3406 (print_one_static_tracepoint_marker): Get marker by reference
3407 and adjust to std::string.
3408 (info_static_tracepoint_markers_command): Adjust to std::vector
3409 changes
3410 * target.h (static_tracepoint_marker_p): Remove typedef.
3411 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
3412 (struct target_ops) <to_static_tracepoint_marker_at>: Return
3413 bool.
3414 <to_static_tracepoint_markers_by_strid>: Return std::vector.
3415 * target-debug.h
3416 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
3417 (target_debug_print_std_vector_static_tracepoint_marker): New.
3418 (target_debug_print_struct_static_tracepoint_marker_p): Rename
3419 to...
3420 (target_debug_print_static_tracepoint_marker_p): ... this.
3421 * target-delegates.c: Re-generate.
3422 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
3423 Make std::string.
3424 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
3425 (decode_static_tracepoint_spec): Adjust to std::vector.
3426 (tracepoint_print_one_detail): Adjust to std::string.
3427 (strace_marker_decode_location): Adjust to std::string.
3428 (update_static_tracepoint): Adjust to std::string, remove call
3429 to release_static_tracepoint_marker.
3430 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3431 Adjust to std::vector.
3432 * remote.c (remote_static_tracepoint_marker_at): Return bool.
3433 (remote_static_tracepoint_markers_by_strid): Adjust to
3434 std::vector.
3435 * common/rsp-low.h (hex2str): New overload with explicit count
3436 of bytes.
3437 * common/rsp-low.c (hex2str): New overload with explicit count
3438 of bytes.
3439 * unittests/rsp-low-selftests.c (test_hex2str): New function.
3440 (_initialize_rsp_low_selftests): Add test_hex2str test.
3441 * unittests/tracepoint-selftests.c
3442 (test_parse_static_tracepoint_marker_definition): Adjust to
3443 std::string.
3444
62c222b6
SM
34452018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
3446
3447 * tracepoint.c (parse_static_tracepoint_marker_definition):
3448 Consider case where the definition is followed by more
3449 definitions.
3450 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3451 tracepoint-selftests.c.
3452 * unittests/tracepoint-selftests.c: New.
3453
7eb2418f
PFC
34542018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3455
3456 * MAINTAINERS (Write After Approval): Add Pedro Franco de
3457 Carvalho.
3458
7cbe16e9
SR
34592018-03-20 Stephen Roberts <stephen.roberts@arm.com>
3460
3d6b3b82 3461 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 3462
4ee89e90
SR
34632018-03-20 Stephen Roberts <stephen.roberts@arm.com>
3464
3d6b3b82 3465 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 3466
92630041
TT
34672018-03-19 Tom Tromey <tom@tromey.com>
3468
3469 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
3470 "IDENT" production.
3471
76727919
TT
34722018-03-19 Pedro Alves <palves@redhat.com>
3473 Tom Tromey <tom@tromey.com>
3474
3475 * unittests/observable-selftests.c: New file.
3476 * common/observable.h: New file.
3477 * observable.h: New file.
3478 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
3479 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
3480 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
3481 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
3482 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
3483 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
3484 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
3485 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
3486 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
3487 python/py-breakpoint.c, python/py-finishbreakpoint.c,
3488 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
3489 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
3490 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
3491 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
3492 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
3493 tui/tui-interp.c, valops.c: Update all users.
3494 * tui/tui-hooks.c (tui_bp_created_observer)
3495 (tui_bp_deleted_observer, tui_bp_modified_observer)
3496 (tui_inferior_exit_observer, tui_before_prompt_observer)
3497 (tui_normal_stop_observer, tui_register_changed_observer):
3498 Remove.
3499 (tui_observers_token): New global.
3500 (attach_or_detach, tui_attach_detach_observers): New functions.
3501 (tui_install_hooks, tui_remove_hooks): Use
3502 tui_attach_detach_observers.
3503 * record-btrace.c (record_btrace_thread_observer): Remove.
3504 (record_btrace_thread_observer_token): New global.
3505 * observer.sh: Remove.
3506 * observer.c: Rename to observable.c.
3507 * observable.c (namespace gdb_observers): Define new objects.
3508 (observer_debug): Move into gdb_observers namespace.
3509 (struct observer, struct observer_list, xalloc_observer_list_node)
3510 (xfree_observer_list_node, generic_observer_attach)
3511 (generic_observer_detach, generic_observer_notify): Remove.
3512 (_initialize_observer): Update.
3513 Don't include observer.inc.
3514 * Makefile.in (generated_files): Remove observer.h, observer.inc.
3515 (clean mostlyclean): Likewise.
3516 (observer.h, observer.inc): Remove targets.
3517 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
3518 (COMMON_SFILES): Use observable.c, not observer.c.
3519 * .gitignore: Remove observer.h.
3520
1cb1f3da
TT
35212018-03-18 Tom Tromey <tom@tromey.com>
3522
3523 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
3524 gdb::def_vector.
3525 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
3526
a06ab151
TT
35272018-03-17 Tom Tromey <tom@tromey.com>
3528
3529 * auto-load.c (auto_load_objfile_script_1): Use std::string.
3530
770623f7
TT
35312018-03-17 Tom Tromey <tom@tromey.com>
3532
3533 * target.c (class scoped_target_fd): New.
3534 (target_fileio_close_cleanup): Remove.
3535 (target_fileio_read_alloc_1): Use scoped_target_fd.
3536
39be3c7e
SM
35372018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3538
3539 * silent-rules.mk: New.
3540 * Makefile.in: Include silent-rules.mk
3541 (srcdir, VPATH, top_srcdir): Move up.
3542 (COMPILE): Add ECHO_CXX.
3543 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
3544 (init.c): Add ECHO_INIT_C.
3545 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3546 (version.c): Add ECHO_GEN.
3547 (printcmd.o): Add ECHO_CXX.
3548 (target-float.o): Add ECHO_CXX.
3549 (ada-exp.o): Add ECHO_CXX.
3550 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
3551 (insight$(EXEEXT)): Add ECHO_CXXLD.
3552 * gnulib/configure.ac: Add AM_SILENT_RULES.
3553 * gnulib/aclocal.m4: Re-generate.
3554 * gnulib/configure: Re-generate.
3555 * gnulib/import/Makefile.in: Re-generate.
3556
37e136b1
TT
35572018-03-16 Tom Tromey <tom@tromey.com>
3558
3559 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
3560 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
3561 * utils.c (do_free_section_addr_info)
3562 (make_cleanup_free_section_addr_info): Remove.
3563 * symfile.h (struct other_sections): Add constructor.
3564 (struct section_addr_info): Remove.
3565 (section_addr_info): New typedef.
3566 (struct sym_fns) <sym_offsets>: Change type of parameter.
3567 (build_section_addr_info_from_objfile)
3568 (relative_addr_info_to_section_offsets, addr_info_make_relative)
3569 (default_symfile_offsets, symbol_file_add)
3570 (symbol_file_add_from_bfd)
3571 (build_section_addr_info_from_section_table): Update.
3572 (alloc_section_addr_info, free_section_addr_info): Don't declare.
3573 * symfile.c (alloc_section_addr_info): Remove.
3574 (build_section_addr_info_from_section_table): Change return type.
3575 Update.
3576 (build_section_addr_info_from_bfd)
3577 (build_section_addr_info_from_objfile): Likewise.
3578 (free_section_addr_info): Remove.
3579 (relative_addr_info_to_section_offsets): Change type of "addrs".
3580 (addrs_section_compar): Now a std::sort comparator.
3581 (addrs_section_sort): Change return type.
3582 (addr_info_make_relative): Change type of "addrs". Update.
3583 (default_symfile_offsets, syms_from_objfile_1)
3584 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
3585 (symbol_file_add_separate): Update.
3586 (symbol_file_add): Change type of "addrs". Update.
3587 (add_symbol_file_command): Update. Remove cleanups.
3588 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
3589 cleanups.
3590 * symfile-debug.c (debug_sym_offsets): Change type of "info".
3591 * solib.c (solib_read_symbols): Update.
3592 * objfiles.c (objfile_relocate): Update. Remove cleanups.
3593 * machoread.c (macho_symfile_offsets): Update.
3594 * jit.c (jit_bfd_try_read_symtab): Update.
3595
03afa6ef
SM
35962018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3597
3598 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3599 unittests/utils-selftests.c.
3600 * unittests/utils-selftests.c: New file.
3601
3ae9ce5d
TT
36022018-03-14 Tom Tromey <tom@tromey.com>
3603
3604 PR cli/14977:
3605 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
3606 for NULL.
3607
b8c2339b
TT
36082018-03-14 Tom Tromey <tom@tromey.com>
3609
3610 PR cli/19918:
3611 * printcmd.c (printf_pointer): Allow "-" in format.
3612
80ae639d
TT
36132018-03-14 Tom Tromey <tom@tromey.com>
3614
3615 * printcmd.c (_initialize_printcmd): Add usage to printf.
3616
0d671d99
YQ
36172018-03-14 Yao Qi <qiyao@sourceware.org>
3618
3619 * MAINTAINERS: Update my email address.
3620
b577b6af
TT
36212018-03-13 Tom Tromey <tom@tromey.com>
3622
3623 * machoread.c (macho_check_dsym): Change filenamep to a
3624 std::string*.
3625 (macho_symfile_read): Update.
3626 * symfile.c (load_command): Use std::string.
3627
89a3b63e
AB
36282018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
3629
3630 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
3631 to error message string.
3632 (riscv_register_name): Use xsnprintf instead of sprintf.
3633 (riscv_insn::fetch_instruction): Use gdb_assert instead of
3634 internal_error.
3635 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
3636 error.
3637 (riscv_push_dummy_call): Likewise.
3638
984c7238
TT
36392018-03-12 Tom Tromey <tom@tromey.com>
3640
3641 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
3642 Use gdb::byte_vector.
3643 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
3644
933522d1
YQ
36452018-03-12 Yao Qi <yao.qi@linaro.org>
3646
3647 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
3648 parameter type to readable_regcache.
3649 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
3650 the declaration.
3651
be2daae6
TT
36522018-03-11 Tom Tromey <tom@tromey.com>
3653
3654 * dwarf2read.c (struct nextfield): Add initializers.
3655 (struct nextfnfield): Remove.
3656 (struct fnfieldlist): Add initializers. Remove "length" and
3657 "head", use std::vector.
3658 (struct decl_field_list): Remove.
3659 (struct field_info): Add initializers.
3660 <fields, baseclasses>: Now std::vector.
3661 <nbaseclasses, nfnfields, typedef_field_list_count,
3662 nested_types_list_count>: Remove.
3663 (dwarf2_add_field, dwarf2_add_type_defn)
3664 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
3665 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
3666 (process_structure_scope): Update.
3667
484cf504
TT
36682018-03-11 Tom Tromey <tom@tromey.com>
3669
3670 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
3671 for use by std::sort.
3672 (build_type_psymtabs_1): Use std::vector.
3673
9bd8e0b0
EZ
36742018-03-09 Eli Zaretskii <eliz@gnu.org>
3675
3676 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
3677 and LIBMPFR in the printed configuration.
3678
5dc1a704
TT
36792018-03-08 Tom Tromey <tom@tromey.com>
3680
3681 * source.c (get_filename_and_charpos): Use scoped_fd.
3682 * nto-procfs.c (procfs_open_1): Use scoped_fd.
3683 (procfs_pidlist): Likewise.
3684 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
3685 (iterate_over_mappings): Likewise.
3686
fdf07f3a
TT
36872018-03-08 Tom Tromey <tom@tromey.com>
3688
3689 * infcall.c (struct call_return_meta_info)
3690 <stack_temporaries_enabled>: Remove.
3691 (get_call_return_value, call_function_by_hand_dummy): Update.
3692 * thread.c (disable_thread_stack_temporaries): Remove.
3693 (enable_thread_stack_temporaries): Remove.
3694 (thread_stack_temporaries_enabled_p): Return bool.
3695 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
3696 (get_last_thread_stack_temporary): Update.
3697 * eval.c (evaluate_subexp): Update.
3698 * gdbthread.h (class enable_thread_stack_temporaries): Now a
3699 class, not a function.
3700 (value_ptr, value_vec): Remove typedefs.
3701 (class thread_info) <stack_temporaries_enabled>: Now bool.
3702 <stack_temporaries>: Now a std::vector.
3703 (thread_stack_temporaries_enabled_p)
3704 (value_in_thread_stack_temporaries): Return bool.
3705
567a3e54
SM
37062018-03-08 Simon Marchi <simon.marchi@ericsson.com>
3707
3708 * remote.c (putpkt_binary): Fix omitted bytes reporting.
3709 (getpkt_or_notif_sane_1): Likewise.
3710
00b40057
SM
37112018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3712
3713 * build-id.c (build_id_to_debug_bfd): Use std::string.
3714
a8dbfd58
SM
37152018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3716
3717 * build-id.c (find_separate_debug_file_by_buildid): Return
3718 std::string.
3719 * build-id.h (find_separate_debug_file_by_buildid): Return
3720 std::string.
3721 * coffread.c (coff_symfile_read): Adjust to std::string.
3722 * elfread.c (elf_symfile_read): Adjust to std::string.
3723 * symfile.c (separate_debug_file_exists): Change parameter to
3724 std::string.
3725 (find_separate_debug_file): Return std::string.
3726 (find_separate_debug_file_by_debuglink): Return std::string.
3727 * symfile.h (find_separate_debug_file_by_debuglink): Return
3728 std::string.
3729
e6a58aa8
SM
37302018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3731
3732 * common/xml-utils.c (xml_escape_text): Move code to...
3733 (xml_escape_text_append): ... this new function.
3734 * common/xml-utils.h (xml_escape_text_append): New declaration.
3735 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
3736 New function.
3737 (_initialize_xml_utils): register test_xml_escape_text_append as
3738 a selftest.
3739
4ef0bef6
AH
37402018-03-07 Alan Hayward <alan.hayward@arm.com>
3741
3742 * defs.h: Remove MAX_REGISTER_SIZE.
3743 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
3744 asserts.
3745 * python/py-unwind.c (pyuw_sniffer): Likewise.
3746
e0d3522b
TT
37472018-03-07 Tom Tromey <tom@tromey.com>
3748
3749 * linux-tdep.c (linux_info_proc): Update.
3750 * target.h (struct target_ops) <to_fileio_readlink>: Return
3751 optional<string>.
3752 (target_fileio_readlink): Return optional<string>.
3753 * remote.c (remote_hostio_readlink): Return optional<string>.
3754 * inf-child.c (inf_child_fileio_readlink): Return
3755 optional<string>.
3756 * target.c (target_fileio_readlink): Return optional<string>.
3757
ea005f31
AB
37582018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3759
3760 * regcache.c (cooked_read_test): Add riscv to the list of
3761 architectures that have a save_reggroup.
3762
e95a97d4
AA
37632018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3764
3765 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
3766 value is not a dynamic class object.
3767
d8344f3d
TT
37682018-03-06 Tom Tromey <tom@tromey.com>
3769
3770 * rust-exp.y: Formatting fixes.
3771
9add17f2
AB
37722018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3773
3774 * riscv-tdep.c (riscv_register_name): Remove target description
3775 support.
3776 (riscv_gdbarch_init): Remove target description check.
3777
c9486dfe
AB
37782018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3779
3780 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
3781 comment.
3782 * riscv-tdep.h: Likewise.
3783
d74aff3d
AB
37842018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3785
3786 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
3787 (riscv_pseudo_register_write): Delete.
3788 (riscv_gdbarch_init): Remove all use of pseudo registers.
3789
7ea78b59
SM
37902018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
3791
3792 * record-btrace.c (btrace_print_lines): Replace cleanup
3793 parameter with RAII equivalents.
3794 (btrace_insn_history): Replace cleanup with RAII equivalents.
3795 * ui-out.h (make_cleanup_ui_out_list_begin_end,
3796 make_cleanup_ui_out_tuple_begin_end): Remove.
3797 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
3798 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
3799 make_cleanup_ui_out_list_begin_end): Remove.
3800
53127008
SM
38012018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
3802
3803 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
3804 parameter types to std::vector. Use bool.
3805 (record_btrace_wait): Replace VEC(tp_t) with
3806 std::vector<thread_info *>.
3807 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
3808
228f1508
SM
38092018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
3810
3811 * record-btrace.c (record_btrace_disable_callback): Remove.
3812 (struct scoped_btrace_disable): New.
3813 (record_btrace_open): Use scoped_btrace_disable.
3814
b2970c23
AB
38152018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3816
3817 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
3818 reading values from registers.
3819
fb294655
AB
38202018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3821
3822 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
3823 where appropriate.
3824
cab5bb9d
AB
38252018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
3828 change parameter type. Use GDB's print functions, and use
3829 core_addr_to_string where appropriate.
3830 (riscv_push_dummy_call): Use core_addr_to_string where
3831 appropriate, update call to riscv_print_arg_location, and reindent
3832 a few lines.
3833 (riscv_return_value): Update call to riscv_print_arg_location.
3834
dbbb1059
AB
38352018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3836 Tim Newsome <tim@sifive.com>
3837 Albert Ou <a0u@eecs.berkeley.edu>
3838 Darius Rad <darius@bluespec.com>
3839
3840 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
3841 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
3842 (ALLDEPFILES): Add riscv-tdep.c
3843 * configure.tgt: Add riscv support.
3844 * riscv-tdep.c: New file.
3845 * riscv-tdep.h: New file.
3846 * NEWS: Mention new target.
3847 * MAINTAINERS: Add entry for riscv.
3848
5dc43913
AB
38492018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3850
3851 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
3852 fields within aggregates.
3853
3dea1ef7
SM
38542018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3855
3856 * record-btrace.c (btrace_print_lines): Change type of flags to
3857 gdb_disassembly_flags.
3858
7efba073
JB
38592018-03-04 John Baldwin <jhb@FreeBSD.org>
3860
3861 * fbsd-nat.c: Include "inf-ptrace.h".
3862 (USE_SIGTRAP_SIGINFO): Conditionally define.
3863 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
3864 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
3865 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
3866 function.
3867 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
3868 Likewise.
3869 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
3870 Likewise.
3871 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
3872 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
3873 "supports_stopped_by_hw_breakpoint" target methods.
3874
386a8676
JB
38752018-03-04 John Baldwin <jhb@FreeBSD.org>
3876
3877 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
3878 * fbsd-nat.c (debug_fbsd_nat): New variable.
3879 (show_fbsd_nat_debug): New function.
3880 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
3881 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
3882
12279366
JB
38832018-03-04 John Baldwin <jhb@FreeBSD.org>
3884
3885 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
3886 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
3887 prototype.
3888 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
3889 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
3890 method.
3891
54693cf5
SM
38922018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3893
3894 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
3895 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
3896
ccb2231c
SM
38972018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3898
3899 * charset.c (struct charset_vector): New.
3900 (charsets): Change type to charset_vector.
3901 (find_charset_names): Adjust.
3902 (add_one): Adjust.
3903 (_initialize_charset): Adjust.
3904
6fb16ce6
SM
39052018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3906
3907 * progspace.h (struct program_space) <deleted_solibs>: Change
3908 type to std::vector<std::string>.
3909 * progspace.c (clear_program_space_solib_cache): Adjust.
3910 * breakpoint.c (print_solib_event): Adjust.
3911 (check_status_catch_solib): Adjust.
3912 * solib.c (update_solib_list): Adjust.
3913 * ui-out.h (class ui_out) <field_string>: New overload.
3914 * ui-out.c (ui_out::field_string): New overload.
3915
564b1e3f
SM
39162018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3917
3918 * progspace.h (struct program_space): Add constructor and
3919 destructor, initialize fields.
3920 (add_program_space): Remove.
3921 * progspace.c (add_program_space): Rename to...
3922 (program_space::program_space): ... this.
3923 (release_program_space): Rename to...
3924 (program_space::~program_space): ... this.
3925 (delete_program_space): Use delete to delete program_space.
3926 (initialize_progspace): Use new to allocate program_space.
3927 * inferior.c (add_inferior_with_spaces): Likewise.
3928 (clone_inferior_command): Likewise.
3929 * infrun.c (follow_fork_inferior): Likewise.
3930 (handle_vfork_child_exec_or_exit): Likewise.
3931
e80aaf61
SM
39322018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3933
3934 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
3935 (delim_string_to_char_ptr_vec): Return std::vector of
3936 gdb::unique_xmalloc_ptr.
3937 (dirnames_to_char_ptr_vec_append): Take std::vector of
3938 gdb::unique_xmalloc_ptr.
3939 (dirnames_to_char_ptr_vec): Return std::vector of
3940 gdb::unique_xmalloc_ptr.
3941 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
3942 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
3943 (delim_string_to_char_ptr_vec): Return an std::vector of
3944 gdb::unique_xmalloc_ptr, adjust the code.
3945 (dirnames_to_char_ptr_vec_append): Take an std::vector of
3946 gdb::unique_xmalloc_ptr, adjust the code.
3947 (dirnames_to_char_ptr_vec): Return an std::vector of
3948 gdb::unique_xmalloc_ptr, adjust the code.
3949 * auto-load.c (auto_load_safe_path_vec): Change type to
3950 std::vector of gdb::unique_xmalloc_ptr.
3951 (auto_load_expand_dir_vars): Return an std::vector of
3952 gdb::unique_xmalloc_ptr, adjust the code.
3953 (auto_load_safe_path_vec_update): Adjust.
3954 (filename_is_in_auto_load_safe_path_vec): Adjust.
3955 (auto_load_objfile_script_1): Adjust.
3956 * build-id.c (build_id_to_debug_bfd): Adjust.
3957 * linux-thread-db.c (thread_db_load_search): Adjust.
3958 * source.c (add_path): Adjust.
3959 (openp): Adjust.
3960 * symfile.c (find_separate_debug_file): Adjust.
3961 * utils.c (do_free_char_ptr_vec): Remove.
3962 (make_cleanup_free_char_ptr_vec): Remove.
3963
ab818ade
SDJ
39642018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
3965
3966 PR gdb/22907
3967 * common/pathstuff.c: Conditionally include "<windows.h>".
3968
e1e6f073
GS
39692018-03-01 Georg Sauthoff <mail@georg.so>
3970
3971 PR gdb/22888
3972 * gcore.in: Quote variables and switch interpreter to bash.
3973
c7b15a66
TT
39742018-03-01 Tom Tromey <tom@tromey.com>
3975
3976 * dwarf2read.c (alloc_discriminant_info): Fix default_index
3977 assertion. Add assertion for discriminant_index.
3978 (quirk_rust_enum): Use correct base type name in univariant case.
3979
0cb7c7b0
SM
39802018-03-01 Simon Marchi <simon.marchi@ericsson.com>
3981
3982 * record.c (get_call_history_modifiers): Return a
3983 record_print_flags.
3984 (cmd_record_call_history): Adjust.
3985 * record-btrace.c (record_btrace_call_history): Adjust.
3986 (record_btrace_call_history_range): Adjust.
3987 (record_btrace_call_history_from): Adjust.
3988 * target-debug.h (target_debug_print_record_print_flags): New.
3989 * target-delegates.c: Re-generate.
3990 * target.c (target_call_history): Change flags type.
3991 (target_call_history_from): Likewise.
3992 (target_call_history_range): Likewise.
3993 * target.h (struct target_ops) <target_call_history>: Likewise.
3994 (target_call_history_from): Likewise.
3995 (target_call_history_range): Likewise.
3996
25e3c82c
SDJ
39972018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3998 Simon Marchi <simon.marchi@polymtl.ca>
3999
4000 * common/common-utils.c: Include "sys/stat.h".
4001 (is_regular_file): Move here from "source.c"; change return
4002 type to "bool".
4003 * common/common-utils.h (is_regular_file): New prototype.
4004 * common/pathstuff.c (contains_dir_separator): New function.
4005 * common/pathstuff.h (contains_dir_separator): New prototype.
4006 * source.c: Don't include "sys/stat.h".
4007 (is_regular_file): Move to "common/common-utils.c".
4008
b4987c95
SDJ
40092018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
4010
4011 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
4012 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
4013 * auto-load.c: Include "common/pathstuff.h".
4014 * common/common-def.h (current_directory): Move here.
4015 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
4016 function.
4017 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
4018 prototype.
4019 * common/pathstuff.c: New file.
4020 * common/pathstuff.h: New file.
4021 * compile/compile.c: Include "common/pathstuff.h".
4022 * defs.h (current_directory): Move to "common/common-defs.h".
4023 * dwarf2read.c: Include "common/pathstuff.h".
4024 * exec.c: Likewise.
4025 * guile/scm-safe-call.c: Likewise.
4026 * linux-thread-db.c: Likewise.
4027 * main.c: Likewise.
4028 * nto-tdep.c: Likewise.
4029 * objfiles.c: Likewise.
4030 * source.c: Likewise.
4031 * symtab.c: Likewise.
4032 * utils.c: Include "common/pathstuff.h".
4033 (gdb_realpath): Move to "common/pathstuff.c".
4034 (gdb_realpath_keepfile): Likewise.
4035 (gdb_abspath): Likewise.
4036 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
4037 (gdb_realpath_keepfile): Likewise.
4038 (gdb_abspath): Likewise.
4039
f169cfdc
JB
40402018-02-28 John Baldwin <jhb@FreeBSD.org>
4041
4042 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
4043 wildcard process pid for super_resume for kernels with a
4044 specific bug.
4045
e05cac70
PM
40462018-02-27 Phil Muldoon <pmuldoon@redhat.com>
4047
4048 * compile/compile.c (get_args): Add additional comments
4049 explaining function.
4050
55089490
TT
40512018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
4052 Tom Tromey <tom@tromey.com>
4053
4054 * target.h (memory_write_request_s): Remove typedef. Don't define
4055 VEC.
4056 (target_write_memory_blocks): Change argument to std::vector.
4057 (struct memory_write_request): Add constructor.
4058 * target-memory.c (compare_block_starting_address): Return bool.
4059 Change argument types.
4060 (claim_memory): Change arguments to use std::vector.
4061 (split_regular_and_flash_blocks, blocks_to_erase)
4062 (compute_garbled_blocks): Likewise.
4063 (cleanup_request_data, cleanup_write_requests_vector): Remove.
4064 (target_write_memory_blocks): Change argument to std::vector.
4065 * symfile.c (struct load_section_data): Add constructor and
4066 destructor. Use std::vector for "requests".
4067 (struct load_progress_data): Add initializers.
4068 (load_section_callback): Update. Use "new".
4069 (clear_memory_write_data): Remove.
4070 (generic_load): Update.
4071
0c305b61
AH
40722018-02-27 Alan Hayward <alan.hayward@arm.com>
4073
4074 * arch/aarch64.h: Use common/tdesc.h.
4075
c5196c92
MR
40762018-02-26 Maciej W. Rozycki <macro@mips.com>
4077
4078 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
4079 architecture with a 64-bit ABI.
4080
37c33887
MR
40812018-02-26 Maciej W. Rozycki <macro@mips.com>
4082
4083 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
4084 ahead of target description loading.
4085
d4dd3282
TT
40862018-02-26 Tom Tromey <tom@tromey.com>
4087
4088 * stack.c (backtrace_command_1): Update.
4089 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
4090 of "flags".
4091 * python/py-framefilter.c (py_print_frame)
4092 (gdbpy_apply_frame_filter): Change type of "flags".
4093 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
4094 of "flags".
4095 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
4096 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
4097 * extension.h (enum frame_filter_flag): Rename from
4098 frame_filter_flags.
4099 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
4100 (apply_ext_lang_frame_filter): Change type of "flags".
4101 * extension.c (apply_ext_lang_frame_filter): Change type of
4102 "flags".
4103 * extension-priv.h (struct extension_language_ops)
4104 <apply_frame_filter>: Change type of "flags".
4105
6893c19a
TT
41062018-02-26 Tom Tromey <tom@tromey.com>
4107
4108 PR python/16497:
4109 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
4110 off-by-one in py_end computation.
4111 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
4112 PRINT_MORE_FRAMES.
4113 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
4114 constant.
4115
2ddeaf8a
TT
41162018-02-26 Tom Tromey <tom@tromey.com>
4117
4118 * dwarf2read.c (struct variant_field): New.
4119 (struct nextfield) <variant>: New field.
4120 (dwarf2_add_field): Handle DW_TAG_variant_part.
4121 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
4122 discriminated union.
4123 (read_structure_type): Handle DW_TAG_variant_part.
4124 (handle_struct_member_die): New function, extracted from
4125 process_structure_scope. Handle DW_TAG_variant.
4126 (process_structure_scope): Handle discriminated unions. Call
4127 handle_struct_member_die.
4128
c9317f21
TT
41292018-02-26 Tom Tromey <tom@tromey.com>
4130
4131 * rust-lang.h (rust_last_path_segment): Declare.
4132 * rust-lang.c (rust_last_path_segment): Now public. Change
4133 contract.
4134 (struct disr_info): Remove.
4135 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
4136 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
4137 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
4138 (rust_enum_p, rust_enum_variant): New function.
4139 (rust_underscore_fields): Remove "offset" parameter.
4140 (rust_print_enum): New function.
4141 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
4142 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
4143 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
4144 enums.
4145 (rust_internal_print_type): New function, from rust_print_type.
4146 Remove enum code.
4147 (rust_print_type): Call rust_internal_print_type.
4148 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
4149 Update enum handling.
4150 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
4151 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
4152 (rust_union_quirks): New functions.
4153 (process_full_comp_unit, process_full_type_unit): Call
4154 rust_union_quirks.
4155 (process_structure_scope): Update rust_unions if necessary.
4156
7c22600a
TT
41572018-02-26 Tom Tromey <tom@tromey.com>
4158
4159 * value.h (value_union_variant): Declare.
4160 * valops.c (value_union_variant): New function.
4161 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
4162 (struct discriminant_info): New.
4163 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
4164 enumerator.
4165 (struct main_type) <flag_discriminated_union>: New field.
4166
15ce8941
TT
41672018-02-26 Tom Tromey <tom@tromey.com>
4168
4169 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4170 unittests/unpack-selftests.c.
4171 * unittests/unpack-selftests.c: New file.
4172 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
4173
48fbe735
YQ
41742018-02-26 Yao Qi <yao.qi@linaro.org>
4175
4176 * dwarf2read.c (struct partial_die_info) <read>: New method.
4177 (read_partial_die): Remove the declaration.
4178 (load_partial_dies): Update.
4179 (partial_die_info::partial_die_info):
4180 (read_partial_die): Change it to partial_die_info::read.
4181
52356b79
YQ
41822018-02-26 Yao Qi <yao.qi@linaro.org>
4183
4184 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
4185 (fixup_partial_die): Remove declaration.
4186 (scan_partial_symbols): Update.
4187 (partial_die_parent_scope): Likewise.
4188 (partial_die_full_name): Likewise.
4189 (fixup_partial_die): Change it to partial_die_info::fixup.
4190
35cc7ed7
YQ
41912018-02-26 Yao Qi <yao.qi@linaro.org>
4192
4193 * dwarf2read.c (read_partial_die): Update the declaration.
4194 (load_partial_dies): Caller update.
4195 (read_partial_die): Remove one argument abbrev_len.
4196
6f06d47b
YQ
41972018-02-26 Yao Qi <yao.qi@linaro.org>
4198
4199 * dwarf2read.c (struct partial_die_info): Add ctor, delete
4200 assignment operator.
4201 (load_partial_dies): Use ctor and copy ctor.
4202 (read_partial_die): Update.
4203 (dwarf2_cu::find_partial_die): Use ctor.
4204
d590ff25
YQ
42052018-02-26 Yao Qi <yao.qi@linaro.org>
4206
4207 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
4208 (find_partial_die_in_comp_unit): Change it to
4209 dwarf2_cu::find_partial_die.
4210 (find_partial_die): Update.
4211
fd0a254f
YQ
42122018-02-26 Yao Qi <yao.qi@linaro.org>
4213
4214 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
4215 is NULL.
4216
cd9983dd
YQ
42172018-02-26 Yao Qi <yao.qi@linaro.org>
4218
4219 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
4220
f46cd62a
AH
42212018-02-26 Alan Hayward <alan.hayward@arm.com>
4222
4223 * arch/amd64.h: Use common/tdesc.h.
4224 * arch/i386.c: Likewise.
4225 * arch/i386.h: Likewise.
4226 * arch/tic6x.c: Likewise.
4227 * arch/tdesc.h: Move file from here...
4228 * common/tdesc.h: ...to here.
4229 * features/aarch64-core.c: Regenerate.
4230 * features/aarch64-fpu.c: Regenerate.
4231 * features/i386/32bit-avx.c: Regenerate.
4232 * features/i386/32bit-avx512.c: Regenerate.
4233 * features/i386/32bit-core.c: Regenerate.
4234 * features/i386/32bit-linux.c: Regenerate.
4235 * features/i386/32bit-mpx.c: Regenerate.
4236 * features/i386/32bit-pkeys.c: Regenerate.
4237 * features/i386/32bit-sse.c: Regenerate.
4238 * features/i386/64bit-avx.c: Regenerate.
4239 * features/i386/64bit-avx512.c: Regenerate.
4240 * features/i386/64bit-core.c: Regenerate.
4241 * features/i386/64bit-linux.c: Regenerate.
4242 * features/i386/64bit-mpx.c: Regenerate.
4243 * features/i386/64bit-pkeys.c: Regenerate.
4244 * features/i386/64bit-segments.c: Regenerate.
4245 * features/i386/64bit-sse.c: Regenerate.
4246 * features/i386/x32-core.c: Regenerate.
4247 * features/tic6x-c6xp.c: Regenerate.
4248 * features/tic6x-core.c: Regenerate.
4249 * features/tic6x-gp.c: Regenerate.
4250 * target-descriptions.c: Use common/tdesc.h.
4251 * target-descriptions.h: Likewise.
4252
9b292f68
TT
42532018-02-24 Tom Tromey <tom@tromey.com>
4254
4255 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4256 (try_thread_db_load_from_dir, thread_db_load_search): Use
4257 std::string.
4258 (info_auto_load_libthread_db_compare): Return bool. Change
4259 argument types.
4260 (info_auto_load_libthread_db): Use std::vector, std::string.
4261 Remove cleanups.
4262
281d762b
TT
42632018-02-24 Tom Tromey <tom@tromey.com>
4264
4265 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
4266 std::string.
4267 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
4268 std::string*.
4269 * gdbarch.c: Rebuild.
4270 * gdbarch.h: Rebuild.
4271 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
4272 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
4273 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
4274 std::string*.
4275
9d8780f0
SM
42762018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4277
4278 * gdbtypes.h (sect_offset): Change type to uint64_t.
4279 (sect_offset_str): New function.
4280 * dwarf2read.c (create_addrmap_from_aranges): Use
4281 sect_offset_str.
4282 (error_check_comp_unit_head): Likewise.
4283 (create_debug_type_hash_table): Likewise.
4284 (read_cutu_die_from_dwo): Likewise.
4285 (init_cutu_and_read_dies): Likewise.
4286 (init_cutu_and_read_dies_no_follow): Likewise.
4287 (process_psymtab_comp_unit_reader): Likewise.
4288 (partial_die_parent_scope): Likewise.
4289 (peek_die_abbrev): Likewise.
4290 (process_queue): Likewise.
4291 (dwarf2_physname): Likewise.
4292 (read_namespace_alias): Likewise.
4293 (read_import_statement): Likewise.
4294 (create_dwo_cu_reader): Likewise.
4295 (create_cus_hash_table): Likewise.
4296 (lookup_dwo_cutu): Likewise.
4297 (inherit_abstract_dies): Likewise.
4298 (read_func_scope): Likewise.
4299 (read_call_site_scope): Likewise.
4300 (dwarf2_add_member_fn): Likewise.
4301 (read_common_block): Likewise.
4302 (read_module_type): Likewise.
4303 (read_typedef): Likewise.
4304 (read_subrange_type): Likewise.
4305 (load_partial_dies): Likewise.
4306 (read_partial_die): Likewise.
4307 (find_partial_die): Likewise.
4308 (read_str_index): Likewise.
4309 (dwarf2_string_attr): Likewise.
4310 (build_error_marker_type): Likewise.
4311 (lookup_die_type): Likewise.
4312 (dump_die_shallow): Likewise.
4313 (follow_die_ref): Likewise.
4314 (dwarf2_fetch_die_loc_sect_off): Likewise.
4315 (dwarf2_fetch_constant_bytes): Likewise.
4316 (follow_die_sig): Likewise.
4317 (get_signatured_type): Likewise.
4318 (get_DW_AT_signature_type): Likewise.
4319 (dwarf2_find_containing_comp_unit): Likewise.
4320 (set_die_type): Likewise.
4321
8ec57239
JB
43222018-02-21 John Baldwin <jhb@FreeBSD.org>
4323
4324 * arch/aarch64.c: Include "common-defs.h".
4325 * arch/amd64.c: Likewise.
4326 * arch/i386.c: Likewise.
4327
3eac2b65
TT
43282018-02-21 Tom Tromey <tom@tromey.com>
4329
4330 * value.h: (extract_field_op): Update.
4331 * eval.c (extract_field_op): Return a const char *.
4332 * expression.h (parse_expression_for_completion): Update.
4333 * completer.c (complete_expression): Update.
4334 (add_struct_fields): Make fieldname const.
4335 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
4336 (mark_completion_tag, parse_exp_in_context_1): Update.
4337 (parse_expression_for_completion): Change "name" to
4338 unique_xmalloc_ptr*.
4339
6ccb583f
TT
43402018-02-21 Tom Tromey <tom@tromey.com>
4341
4342 * infcall.c (call_function_by_hand_dummy): Use std::vector.
4343
c113ed0c
YQ
43442018-02-21 Yao Qi <yao.qi@linaro.org>
4345
4346 * avr-tdep.c (avr_read_pc): Change parameter type to
4347 readable_regcache.
4348 * gdbarch.sh (read_pc): Likewise.
4349 * gdbarch.c: Re-generated.
4350 * gdbarch.h: Re-generated.
4351 * hppa-tdep.c (hppa_read_pc): Change parameter type to
4352 readable_regcache.
4353 * ia64-tdep.c (ia64_read_pc): Likewise.
4354 * mips-tdep.c (mips_read_pc): Likewise.
4355 * spu-tdep.c (spu_read_pc): Likewise.
4356
4c74fe6b
YQ
43572018-02-21 Yao Qi <yao.qi@linaro.org>
4358
4359 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
4360 * regcache-dump.c: New file.
4361 * regcache.c: Move register_dump to regcache-dump.c.
4362 (maintenance_print_registers): Likewise.
4363 (maintenance_print_raw_registers): Likewise.
4364 (maintenance_print_cooked_registers): Likewise.
4365 (maintenance_print_register_groups): Likewise.
4366 (maintenance_print_remote_registers): Likewise.
4367 (_initialize_regcache): Likewise.
4368 * regcache.h (register_dump): Moved from regcache.c.
4369
796bb026
YQ
43702018-02-21 Yao Qi <yao.qi@linaro.org>
4371
4372 * regcache.c (regcache::regcache): Update.
4373 (regcache::invalidate): Move it to detached_regcache::invalidate.
4374 (get_thread_arch_aspace_regcache): Update.
4375 (regcache::raw_update): Update.
4376 (regcache::cooked_read): Remove some code.
4377 (regcache::cooked_read_value): Likewise.
4378 (regcache::raw_write): Remove assert on m_readonly_p.
4379 (regcache::raw_supply_integer): Move it to
4380 detached_regcache::raw_supply_integer.
4381 (regcache::raw_supply_zeroed): Likewise.
4382 * regcache.h (detached_regcache) <raw_supply_integer>: New
4383 declaration.
4384 <raw_supply_zeroed, invalidate>: Likewise.
4385 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
4386 <invalidate>: Likewise.
4387 <m_readonly_p>: Removed.
4388
215c69dc
YQ
43892018-02-21 Yao Qi <yao.qi@linaro.org>
4390
4391 * infcmd.c (get_return_value): Let stop_regs point to
4392 get_current_regcache.
4393 * regcache.c (regcache::regcache): Remove.
4394 (register_dump_reg_buffer): New class.
4395 (regcache_print): Adjust.
4396 * regcache.h (regcache): Remove constructors.
4397
f3384e66
YQ
43982018-02-21 Yao Qi <yao.qi@linaro.org>
4399
4400 * regcache.c (class register_dump): New class.
4401 (register_dump_regcache, register_dump_none): New class.
4402 (register_dump_remote, register_dump_groups): New class.
4403 (regcache_print): Update.
4404 * regcache.h (regcache_dump_what): Move it to regcache.c.
4405 (regcache) <dump>: Remove.
4406
c8ec2f33
YQ
44072018-02-21 Yao Qi <yao.qi@linaro.org>
4408
4409 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
4410 reg_buffer_rw *.
4411 (jit_unwind_reg_set_impl): Call raw_supply.
4412 (jit_frame_sniffer): Use reg_buffer_rw.
4413 * record-full.c (record_full_core_regbuf): Change its type.
4414 (record_full_core_open_1): Use reg_buffer_rw.
4415 (record_full_close): Likewise.
4416 (record_full_core_fetch_registers): Use regcache->raw_supply.
4417 (record_full_core_store_registers): Likewise.
4418 * regcache.c (regcache::get_register_status): Move it to
4419 reg_buffer.
4420 (regcache_raw_set_cached_value): Remove.
4421 (regcache::raw_set_cached_value): Remove.
4422 (regcache::raw_write): Call raw_supply.
4423 (regcache::raw_supply): Move it to reg_buffer_rw.
4424 * regcache.h (regcache_raw_set_cached_value): Remove.
4425 (reg_buffer_rw): New class.
4426
daf6667d
YQ
44272018-02-21 Yao Qi <yao.qi@linaro.org>
4428
4429 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
4430 readonly_detached_regcache.
4431 (dummy_frame_prev_register): Use regcache->cooked_read.
4432 * frame.c (frame_save_as_regcache): Change return type.
4433 (frame_pop): Update.
4434 * frame.h (frame_save_as_regcache): Update declaration.
4435 * inferior.h (get_infcall_suspend_state_regcache): Update
4436 declaration.
4437 * infrun.c (infcall_suspend_state) <registers>: use
4438 readonly_detached_regcache.
4439 (save_infcall_suspend_state): Don't use regcache_dup.
4440 (get_infcall_suspend_state_regcache): Change return type.
4441 * linux-fork.c (struct fork_info) <savedregs>: Change to
4442 readonly_detached_regcache.
4443 <pc>: New field.
4444 (fork_save_infrun_state): Don't use regcache_dup.
4445 (info_checkpoints_command): Adjust.
4446 * mi/mi-main.c (register_changed_p): Update declaration.
4447 (mi_cmd_data_list_changed_registers): Use
4448 readonly_detached_regcache.
4449 (register_changed_p): Change parameter type to
4450 readonly_detached_regcache.
4451 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
4452 readonly_detached_regcache.
4453 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
4454 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
4455 New.
4456 (regcache::save): Move it to reg_buffer.
4457 (regcache::restore): Change parameter type.
4458 (regcache_dup): Remove.
4459 * regcache.h (reg_buffer) <save>: New method.
4460 (readonly_detached_regcache): New class.
4461 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
4462 readonly_detached_regcache.
4463 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
4464
fc5b8736
YQ
44652018-02-21 Yao Qi <yao.qi@linaro.org>
4466
4467 * frame.c (frame_save_as_regcache): Use regcache method save.
4468 (frame_pop): Use regcache method restore.
4469 * infrun.c (restore_infcall_suspend_state): Likewise.
4470 * linux-fork.c (fork_load_infrun_state): Likewise.
4471 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
4472 save.
4473 * regcache.c (regcache_save): Remove.
4474 (regcache::restore): More asserts.
4475 (regcache_cpy): Remove.
4476 * regcache.h (regcache_save): Remove the declaration.
4477 (regcache::restore): Move from private to public.
4478 Remove the friend declaration of regcache_cpy.
4479 (regcache_cpy): Remove declaration.
4480
849d0ba8
YQ
44812018-02-21 Yao Qi <yao.qi@linaro.org>
4482
4483 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
4484 parameter type to 'readable_regcache *'.
4485 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
4486 * arm-tdep.c (arm_neon_quad_read): Likewise.
4487 (arm_pseudo_read): Likewise.
4488 * avr-tdep.c (avr_pseudo_register_read): Likewise.
4489 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
4490 * frv-tdep.c (frv_pseudo_register_read): Likewise.
4491 * gdbarch.c: Re-generated.
4492 * gdbarch.h: Re-generated.
4493 * gdbarch.sh (pseudo_register_read): Change parameter type to
4494 'readable_regcache *'.
4495 (pseudo_register_read_value): Likewise.
4496 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
4497 (h8300_pseudo_register_read): Likewise.
4498 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
4499 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4500 (i386_pseudo_register_read_into_value): Likewise.
4501 (i386_pseudo_register_read_value): Likewise.
4502 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
4503 declaration.
4504 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
4505 * m32c-tdep.c (m32c_raw_read): Likewise.
4506 (m32c_read_flg): Likewise.
4507 (m32c_banked_register): Likewise.
4508 (m32c_banked_read): Likewise.
4509 (m32c_sb_read): Likewise.
4510 (m32c_part_read): Likewise.
4511 (m32c_cat_read): Likewise.
4512 (m32c_r3r2r1r0_read): Likewise.
4513 (m32c_pseudo_register_read): Likewise.
4514 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
4515 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
4516 (mep_pseudo_cr64_read): Likewise.
4517 (mep_pseudo_register_read): Likewise.
4518 * mips-tdep.c (mips_pseudo_register_read): Likewise.
4519 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
4520 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
4521 * regcache.c (regcache::raw_read): Move it to readable_regcache.
4522 (regcache::cooked_read): Likewise.
4523 (regcache::cooked_read_value): Likewise.
4524 (regcache_cooked_read_signed):
4525 (regcache::cooked_read): Likewise.
4526 * regcache.h (readable_regcache): New class.
4527 (regcache): Inherit readable_regcache. Move some methods to
4528 readable_regcache.
4529 * rl78-tdep.c (rl78_pseudo_register_read): Change
4530 parameter type to 'readable_regcache *'.
4531 * rs6000-tdep.c (do_regcache_raw_read): Remove.
4532 (e500_pseudo_register_read): Change parameter type to
4533 'readable_regcache *'.
4534 (dfp_pseudo_register_read): Likewise.
4535 (vsx_pseudo_register_read): Likewise.
4536 (efpr_pseudo_register_read): Likewise.
4537 * s390-tdep.c (s390_pseudo_register_read): Likewise.
4538 * sh-tdep.c (sh_pseudo_register_read): Likewise.
4539 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
4540 (sh64_pseudo_register_read): Likewise.
4541 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
4542 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
4543 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
4544 (spu_pseudo_register_read): Likewise.
4545 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
4546 (xtensa_pseudo_register_read): Likewise.
4547
31716595
YQ
45482018-02-21 Yao Qi <yao.qi@linaro.org>
4549
4550 * regcache.c (regcache::regcache): Call reg_buffer ctor.
4551 (regcache::arch): Move it to reg_buffer::arch.
4552 (regcache::register_buffer): Likewise.
4553 (regcache::assert_regnum): Likewise.
4554 (regcache::num_raw_registers): Likewise.
4555 * regcache.h (reg_buffer): New class.
4556 (regcache): Inherit reg_buffer.
4557
7104e59b
SM
45582018-02-20 Simon Marchi <simon.marchi@ericsson.com>
4559
4560 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
4561 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
4562
2d8adcbd
MM
45632018-02-20 Markus Metzger <markus.t.metzger@intel.com>
4564
4565 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
4566
b5884fa7
AH
45672018-02-19 Alan Hayward <alan.hayward@arm.com>
4568
4569 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
4570 (SFILES): Remove common/*.c files.
4571 (COMMON_OBS): Remove some *.o files built from common/*.c files.
4572 * common/common.host: Add common reference.
4573 * configure.ac: Likewise.
4574 * configure: Regenerate.
4575
fd90ace4
YQ
45762018-02-16 Yao Qi <yao.qi@linaro.org>
4577
4578 * block.c (block_namespace_info): Inherit allocate_on_obstack.
4579 (block_initialize_namespace): Use new.
4580 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
4581 (dwarf2_free_objfile): Use delete.
4582 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
4583 (copy_type_recursive): Use new.
4584 * gdb_obstack.h (allocate_on_obstack): New.
4585
85046ae2
YQ
45862018-02-15 Yao Qi <yao.qi@linaro.org>
4587
4588 PR gdb/22849
4589 * inferior.c (exit_inferior_1): Reset inf->control.
4590
355c559b
JB
45912018-02-15 Joel Brobecker <brobecker@adacore.com>
4592
4593 * ada-lang.c (ada_to_fixed_value_create): Delete advance
4594 declaration.
4595
980548fd
PA
45962018-02-14 Pedro Alves <palves@redhat.com>
4597
4598 * frame-unwind.c (frame_unwind_try_unwinder): Always call
4599 frame_cleanup_after_sniffer on exception.
4600
692d6f97
TT
46012018-02-14 Tom Tromey <tom@tromey.com>
4602
4603 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
4604 const.
4605 (solib_bfd_open): Make pathname const.
4606 * solib.c (solib_bfd_open): Make pathname const.
4607 * solib-spu.c (spu_bfd_fopen): Make name const.
4608 (spu_bfd_open): Make pathname const.
4609 * solib-darwin.c (darwin_bfd_open): Make pathname const.
4610 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
4611
e0cc99a6
TT
46122018-02-14 Tom Tromey <tom@tromey.com>
4613
4614 * symfile.c (symfile_bfd_open): Update.
4615 * source.h (openp, source_full_path_of, find_and_open_source):
4616 Change argument type to unique_xmalloc_ptr.
4617 * source.c (openp): Take a unique_xmalloc_ptr.
4618 (source_full_path_of, find_and_open_source): Likewise.
4619 (open_source_file, symtab_to_fullname): Update.
4620 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
4621 unique_xmalloc_ptr.
4622 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
4623 (exec_file_find): Update.
4624 * psymtab.c (psymtab_to_fullname): Update.
4625 * nto-tdep.h (nto_find_and_open_solib): Update.
4626 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
4627 unique_xmalloc_ptr.
4628 * exec.c (exec_file_attach): Update.
4629 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
4630 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
4631
b46a8d7c
TT
46322018-02-14 Tom Tromey <tom@tromey.com>
4633
4634 * solib.c: Include source.h.
4635 * nto-tdep.c: Include source.h.
4636 * mi/mi-cmd-env.c: Include source.h.
4637 * infcmd.c: Include source.h.
4638 * exec.c: Include source.h.
4639 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
4640 (add_path, directory_switch, source_path, init_source_path): Move
4641 declarations...
4642 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
4643 (add_path, directory_switch, source_path, init_source_path):
4644 ...here.
4645
797bc1cb
TT
46462018-02-14 Tom Tromey <tom@tromey.com>
4647
4648 * solist.h (exec_file_find, solib_find): Return
4649 unique_xmalloc_ptr.
4650 (solib_bfd_fopen): Take a const char *.
4651 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
4652 (exec_file_find, solib_find): Likewise.
4653 (solib_bfd_fopen): Do not take ownership of "pathname".
4654 (solib_bfd_open): Use unique_xmalloc_ptr.
4655 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
4656 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
4657 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
4658 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
4659
f98b2e33
JB
46602018-02-14 Joel Brobecker <brobecker@adacore.com>
4661
4662 * ada-lang.c (name_match_type_from_name): Remove reference to
4663 ada_name_for_lookup in function's documentation.
4664 * ada-lang.h (ada_name_for_lookup): Delete declaration.
4665
24b9144d
SM
46662018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
4667
4668 * defs.h (enum openp_flags): New enum.
4669 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
4670 Move to enum openp_flags.
4671 (openp_flags): New enum flags.
4672 (openp): Change parameter type to openp_flags.
4673 * source.c (openp): Change parameter type to openp_flags.
4674 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
4675 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
4676
387cd15b
SM
46772018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
4678
4679 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
4680 per-command.
4681
b303c6f6
AB
46822018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4683
4684 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
4685 into...
4686 (class dwarf2_queue_guard): ...the destructor of this new class.
4687 (dw2_do_instantiate_symtab): Create instance of the new class
4688 dwarf2_queue_guard, remove cleanup.
4689
9c3630e9
TT
46902018-02-09 Tom Tromey <tom@tromey.com>
4691
4692 * source.c (find_source_lines): Don't reference past the end of
4693 the vector.
4694
c4e12631
MM
46952018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4696
4697 * remote.c (remote_btrace_maybe_reopen): Change error message.
4698 * btrace.c (btrace_enable): Likewise.
4699 (parse_xml_btrace): Likewise.
4700 (parse_xml_btrace_conf): Likewise.
4701
88711fbf
MM
47022018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4703
4704 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
4705 (linux_enable_pt, linux_enable_bts): Call
4706 diagnose_perf_event_open_fail.
4707
17ad2a4f
MM
47082018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4709
4710 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
4711 Remove parameter and change return type. Update callers. Move it.
4712 (linux_enable_bts, linux_enable_pt): Improve error message.
4713 (linux_enable_pt): Remove zero buffer size check.
4714 (linux_enable_btrace): Improve error messages. Remove NULL return
4715 check.
4716
de6242d3
MM
47172018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4718
4719 * btrace.c (btrace_enable): Remove target_supports_btrace call.
4720 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
4721 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
4722 (linux_supports_pt, linux_supports_btrace): Remove.
4723 (linux_enable_bts): Call cpu_supports_bts.
4724 * nat/linux-btrace.h (linux_supports_btrace): Remove.
4725 * remote.c (remote_supports_btrace): Remove.
4726 (init_remote_ops): Remove remote_supports_btrace.
4727 * target-delegates.c: Regenerated.
4728 * target.c (target_supports_btrace): Remove.
4729 * target.h (target_ops) <to_supports_btrace>: Remove
4730 (target_supports_btrace): Remove.
4731 * x86-linux-nat.c (x86_linux_create_target): Remove
4732 linux_supports_btrace.
4733
9ee23a85
MM
47342018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4735
4736 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
4737 btrace failed.
4738 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
4739 exception and use message in own exception.
4740
5c3284c1
MM
47412018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4742
4743 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
4744 (perf_event_pt_event_type): Use gdb_file_up.
4745 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
4746 scoped_fd, and scoped_mmap.
4747
84696f37
MM
47482018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4749
4750 * common/scoped_mmap.h: New.
4751 * unittests/scoped_mmap-selftest.c: New.
4752 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4753 unittests/scoped_mmap-selftest.c.
4754
ea4a0888
MM
47552018-02-09 Markus Metzger <markus.t.metzger@intel.com>
4756
4757 * common/scoped_fd.h: New.
4758 * unittests/scoped_fd-selftest.c: New.
4759 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4760 unittests/scoped_fd-selftest.c.
4761
869e8290
TT
47622018-02-09 Tom Tromey <tom@tromey.com>
4763
4764 * auto-load.c (auto_load_section_scripts): Use
4765 gdb::unique_xmalloc_ptr.
4766
a37a2ae7
TT
47672018-02-09 Tom Tromey <tom@tromey.com>
4768
4769 * auto-load.c (execute_script_contents): Use std::string.
4770
4e725347
JB
47712018-02-09 Joel Brobecker <brobecker@adacore.com>
4772
4773 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
4774 Python function, rather than a new command.
4775
9a897d43
TT
47762018-02-08 Tom Tromey <tom@tromey.com>
4777
4778 * solib.c (solib_find_1): Use std::string.
4779 (solib_bfd_fopen): Use unique_xmalloc_ptr.
4780
58ef3771
TT
47812018-02-08 Tom Tromey <tom@tromey.com>
4782
4783 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
4784
a9abc434
TT
47852018-02-08 Tom Tromey <tom@tromey.com>
4786
4787 * source.c (find_source_lines): Use gdb::def_vector.
4788
84f27c6f
TT
47892018-02-08 Tom Tromey <tom@tromey.com>
4790
4791 * macrocmd.c (struct temporary_macro_definition): New.
4792 (macro_define_command): Use temporary_macro_definition. Remove
4793 cleanups.
4794 (free_macro_definition_ptr): Remove.
4795
0354904b
TT
47962018-02-08 Tom Tromey <tom@tromey.com>
4797
4798 * macroexp.c (maybe_expand): Use std::string.
4799
1739cf24
TT
48002018-02-08 Tom Tromey <tom@tromey.com>
4801
4802 * macroexp.c (struct macro_buffer): Add initializers for some
4803 members.
4804 (init_buffer, init_shared_buffer, free_buffer)
4805 (free_buffer_return_text): Remove.
4806 (macro_buffer): New constructors.
4807 (~macro_buffer): New destructor.
4808 (macro_buffer::set_shared): New method.
4809 (macro_buffer::resize_buffer, macro_buffer::appendc)
4810 (macro_buffer::appendmem): Now methods, not free functions.
4811 (set_token, append_tokens_without_splicing, stringify)
4812 (macro_stringify): Update.
4813 (gather_arguments): Change return type. Remove argc_p argument,
4814 add args_ptr argument. Use std::vector.
4815 (substitute_args): Remove argc argument. Accept std::vector.
4816 (expand): Update. Use std::vector.
4817 (scan, macro_expand, macro_expand_next): Update.
4818
f6c2623e
TT
48192018-02-08 Tom Tromey <tom@tromey.com>
4820
4821 * symtab.c (default_collect_symbol_completion_matches_break_on):
4822 Use unique_xmalloc_ptr.
4823 * macroscope.h: (sal_macro_scope, user_macro_scope)
4824 (default_macro_scope): Return unique_xmalloc_ptr.
4825 * macroscope.c (sal_macro_scope, user_macro_scope)
4826 (default_macro_scope): Return unique_xmalloc_ptr.
4827 * macroexp.h (macro_expand, macro_expand_once): Return
4828 unique_xmalloc_ptr.
4829 * macroexp.c (macro_expand, macro_expand_once): Return
4830 unique_xmalloc_ptr.
4831 * macrocmd.c (macro_expand_command, macro_expand_once_command)
4832 (info_macro_command, info_macros_command): Use
4833 unique_xmalloc_ptr.
4834 * compile/compile-c-support.c (write_macro_definitions): Use
4835 unique_xmalloc_ptr.
4836 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
4837
c2e0e465
SM
48382018-02-07 Simon Marchi <simon.marchi@ericsson.com>
4839
4840 * value.c (value_static_field): Assign field type instead of
4841 containing type when returning an optimized out value.
4842
3f8c94b4
YQ
48432018-02-06 Yao Qi <yao.qi@linaro.org>
4844
4845 * ft32-tdep.c (ft32_read_pc): Remove.
4846 (ft32_write_pc): Remove.
4847 (ft32_gdbarch_init): Update.
4848 * m32r-tdep.c (m32r_read_pc): Remove.
4849 (m32r_gdbarch_init): Update.
4850 * mep-tdep.c (mep_read_pc): Remove.
4851 (mep_gdbarch_init): Update.
4852 * microblaze-tdep.c (microblaze_write_pc): Remove.
4853 (microblaze_gdbarch_init): Update.
4854 * mn10300-tdep.c (mn10300_read_pc): Remove.
4855 (mn10300_write_pc): Remove.
4856 (mn10300_gdbarch_init): Update.
4857 * moxie-tdep.c (moxie_read_pc): Remove.
4858 (moxie_write_pc): Remove.
4859 (moxie_gdbarch_init): Update.
4860
bca65a23
YQ
48612018-02-06 Yao Qi <yao.qi@linaro.org>
4862
4863 * expprint.c (print_subexp_standard): Handle
4864 OP_F77_UNDETERMINED_ARGLIST.
4865 (dump_subexp_body_standard): Likewise.
4866
583e3f90 48672018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 4868
583e3f90
YQ
4869 * target-descriptions.c (tdesc_element_visitor) Add empty
4870 implementations.
b8df6ca7
AH
4871 (tdesc_type): Move make_gdb_type from here.
4872 (tdesc_type_builtin): Likewise.
4873 (tdesc_type_vector): Likewise.
4874 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
4875 (make_gdb_type_struct): Move from tdesc_type_with_fields.
4876 (make_gdb_type_union): Likewise.
4877 (make_gdb_type_flags): Likewise.
4878 (make_gdb_type_enum): Likewise.
4879 (make_gdb_type): New function.
4880 (tdesc_register_type): Use static make_gdb_type.
4881
e813d34a
RK
48822018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
4883
4884 * infcmd.c (default_print_one_register_info): Align natural-format
4885 column values consistently one under another.
4886 (pad_to_column): New function.
4887
0eb876f5
JB
48882018-02-05 Joel Brobecker <brobecker@adacore.com>
4889
4890 * dwarf2read.c (dwarf2_physname): Move commment.
4891
0625771b
LS
48922018-02-01 Leszek Swirski <leszeks@google.com>
4893
4894 * varobj.c (varobj_formatted_print_options): Allow recursive
4895 pretty printing if pretty printing is enabled.
4896
59498c30
LS
48972018-02-01 Leszek Swirski <leszeks@google.com>
4898
4899 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
4900 names after a structop as a filename.
4901
2d9e6acb
YQ
49022018-02-01 Yao Qi <yao.qi@linaro.org>
4903
4904 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
4905 (arm_record_coproc_data_proc): Likewise.
4906
df95a9cf
YQ
49072018-02-01 Yao Qi <yao.qi@linaro.org>
4908
4909 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
4910
07e5f5cf
NP
49112018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
4912
4913 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
4914 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
4915
3045b475
PA
49162018-01-31 Pedro Alves <palves@redhat.com>
4917
4918 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
4919 * inflow.c (child_terminal_save_inferior): Wrap reference to
4920 tcgetpgrp in HAVE_TERMIOS_H.
4921 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
4922 _WIN32.
4923 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
4924 always iterate over all inferiors.
4925 (gdbsim_cntrl_c): Adjust.
4926 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
4927
929b5ad4
JB
49282018-01-31 Joel Brobecker <brobecker@adacore.com>
4929
4930 * gdbtypes.c (lookup_array_range_type): Make sure the array's
4931 index type is objfile-owned if the element type is as well.
4932
29236ca2
JB
49332018-01-31 Joel Brobecker <brobecker@adacore.com>
4934
4935 GDB 8.1 released.
4936
c81e8879
PR
49372018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
4938
4939 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
4940 "features/s390x-linux64.c".
4941 (_initialize_s390_linux_tdep): Remove initialization of tdescs
4942 s390_linux32 and s390x_linux64.
4943 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
4944 default tdesc.
4945 * s390-tdep.c: Include "features/s390-linux32.c" and
4946 "features/s390x-linux64.c".
4947 (s390_tdesc_valid): Add check for tdesc_has_registers.
4948 (s390_gdbarch_init): Make sure there is always a valid tdesc.
4949 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
4950 tdesc_s390x_linux64.
4951 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
4952 tdesc_s390x_linux64 to...
4953 * s390-tdep.h: ...here.
4954
e671cd59
PA
49552018-01-30 Pedro Alves <palves@redhat.com>
4956
4957 PR gdb/13211
4958 * config.in, configure: Regenerate.
4959 * configure.ac: Check for getpgid.
4960 * go32-nat.c (go32_pass_ctrlc): New.
4961 (go32_target): Install it.
4962 * inf-child.c (inf_child_target): Install
4963 child_terminal_save_inferior, child_pass_ctrlc and
4964 child_interrupt.
4965 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
4966 (inf_ptrace_target): No longer install it.
4967 * infcmd.c (interrupt_target_1): Adjust.
4968 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
4969 (child_interrupt): Declare.
4970 (inferior::terminal_state): New.
4971 * inflow.c (struct terminal_info): Update comments.
4972 (inferior_process_group): Delete.
4973 (terminal_is_ours): Delete.
4974 (gdb_tty_state): New.
4975 (child_terminal_init): Adjust.
4976 (is_gdb_terminal, sharing_input_terminal_1)
4977 (sharing_input_terminal): New functions.
4978 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
4979 Set the process's actual process group in the foreground if
4980 possible. Handle is_ours_for_output/is_ours distinction. Don't
4981 mark terminal as the inferior's if not sharing GDB's terminal.
4982 Don't check attach_flag.
4983 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
4984 pass down a target_terminal_state.
4985 (child_terminal_save_inferior): New, factored out from ...
4986 (child_terminal_ours_1): ... this. Handle
4987 target_terminal_state::is_ours_for_output.
4988 (child_interrupt, child_pass_ctrlc): New.
4989 (inflow_inferior_exit): Clear the inferior's terminal_state.
4990 (copy_terminal_info): Copy the inferior's terminal state.
4991 (_initialize_inflow): Remove reference to terminal_is_ours.
4992 * inflow.h (inferior_process_group): Delete.
4993 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
4994 * procfs.c (procfs_target): Don't install procfs_interrupt.
4995 (procfs_interrupt): Delete.
4996 * remote.c (remote_serial_quit_handler): Adjust.
4997 (remote_interrupt): Remove ptid parameter. Adjust.
4998 * target-delegates.c: Regenerate.
4999 * target.c: Include "terminal.h".
5000 (target_terminal::terminal_state): Rename to ...
5001 (target_terminal::m_terminal_state): ... this.
5002 (target_terminal::init): Adjust.
5003 (target_terminal::inferior): Adjust to per-inferior
5004 terminal_state.
5005 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
5006 (target_terminal::ours, target_terminal::ours_for_output): Use
5007 target_terminal_is_ours_kind.
5008 (target_interrupt): Remove ptid parameter. Adjust.
5009 (default_target_pass_ctrlc): Adjust.
5010 * target.h (target_ops::to_terminal_save_inferior): New field.
5011 (target_ops::to_interrupt): Remove ptid_t parameter.
5012 (target_interrupt): Remove ptid_t parameter. Update comment.
5013 (target_pass_ctrlc): Update comment.
5014 * target/target.h (target_terminal_state): New scoped enum,
5015 factored out of ...
5016 (target_terminal::terminal_state): ... here.
5017 (target_terminal::inferior): Update comments.
5018 (target_terminal::restore_inferior): New.
5019 (target_terminal::is_inferior, target_terminal::is_ours)
5020 (target_terminal::is_ours_for_output): Adjust.
5021 (target_terminal::scoped_restore_terminal_state): Adjust to
5022 rename, and call restore_inferior() instead of inferior().
5023 (target_terminal::scoped_restore_terminal_state::m_state): Change
5024 type.
5025 (target_terminal::terminal_state): Rename to ...
5026 (target_terminal::m_terminal_state): ... this and change type.
5027
9c3a5d93
PA
50282018-01-30 Pedro Alves <palves@redhat.com>
5029
5030 * linux-nat.c (wait_for_signal): New function.
5031 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
5032 directly.
5033 (async_terminal_is_ours)
5034 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
5035 (linux_nat_add_target): Don't override
5036 to_terminal_inferior/to_terminal_ours.
5037
69ab5edb
SDJ
50382018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
5039
5040 * remote.c (remote_follow_fork): Don't call "detach_inferior".
5041
fc8e7e75
SM
50422018-01-28 Simon Marchi <simon.marchi@ericsson.com>
5043
5044 * dwarf2read.c (free_dwo_files): Add forward-declaration.
5045 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
5046 dwarf2_per_objfile_free here.
5047 (dwarf2_per_objfile_free): Remove.
5048 (_initialize_dwarf2_read): Don't register
5049 dwarf2_per_objfile_free as a registry cleanup.
5050
b2a426e2
EZ
50512018-01-27 Eli Zaretskii <eliz@gnu.org>
5052
5053 Avoid compilation errors in MinGW native builds
5054
5055 The error is triggered by including python-internal.h, and the
5056 error message is:
5057
5058 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
5059 from build-gnulib/import/math.h:27,
5060 from d:/usr/Python26/include/pyport.h:235,
5061 from d:/usr/Python26/include/Python.h:58,
5062 from python/python-internal.h:94,
5063 from python/py-arch.c:24:
5064 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
5065 using ::hypot;
5066 ^~~~~
5067
5068 This happens because Python headers define 'hypot' to expand t
5069 '_hypot' in the Windows builds.
5070 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
5071 'hypoth'. This avoids a compilation error.
5072
0bdd8eac
AH
50732018-01-26 Alan Hayward <alan.hayward@arm.com>
5074
5075 * MAINTAINERS (Write After Approval): Fix ordering.
5076
56ae9dc3
AH
50772018-01-26 Alan Hayward <alan.hayward@arm.com>
5078
5079 * MAINTAINERS (Write After Approval): Add Alan Hayward.
5080
7433498b
AM
50812018-01-26 Alan Modra <amodra@gmail.com>
5082
5083 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
5084 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
5085 Remove nop. Make const. Comment.
5086 (powerpc32_plt_stub_so_2): New.
5087 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
5088 Correct count. Update uses.
5089 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
5090 Move common code reading PLT entry word. Correct
5091 powerpc32_plt_stub PLT address calculation.
5092 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
5093 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
5094 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
5095 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
5096 (ppc64_standard_linkage8): Likewise.
5097 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
5098 Correct insns description.
5099 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
5100
0f59d5fc
PA
51012018-01-24 Pedro Alves <palves@redhat.com>
5102
5103 GCC PR libstdc++/83906
5104 * gdbtypes.c (operator==(const dynamic_prop &,
5105 const dynamic_prop &)): New.
5106 (operator==(const range_bounds &, const range_bounds &)): New.
5107 (check_types_equal): Use them instead of memcmp.
5108 * gdbtypes.h (operator==(const dynamic_prop &,
5109 const dynamic_prop &)): Declare.
5110 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
5111 (operator==(const range_bounds &, const range_bounds &)): Declare.
5112 (operator!=(const range_bounds &, const range_bounds &)): Declare.
5113
ef8914a4
PR
51142018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5115
5116 * s390-linux-tdep.c (s390_record_address_mask)
5117 (s390_record_calc_disp_common, s390_record_calc_disp)
5118 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
5119 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
5120 (s390_process_record): Move to s390-tdep.c.
5121 (s390_linux_init_abi_any): Adjust.
5122 * s390-tdep.c (s390_record_address_mask)
5123 (s390_record_calc_disp_common, s390_record_calc_disp)
5124 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
5125 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
5126 (s390_process_record): Moved from s390-linux-tdep.c
5127 (s390_gdbarch_init): Adjust.
5128
d6e58945
PR
51292018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5130
5131 * s390-linux-nat.c (s390-tdep.h): New include.
5132 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
5133 (HFILES_NO_SRCDIR): Add s390-tdep.h.
5134 (ALLDEPFILES): Add s390-tdep.c.
5135 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
5136 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
5137 * s390-tdep.h: ...this. New file.
5138 * s390-linux-tdep.c (s390-tdep.h): New include.
5139 (_initialize_s390_tdep): Rename to...
5140 (_initialize_s390_linux_tdep): ...this and adjust.
5141 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
5142 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
5143 s390-tdep.h.
5144 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
5145 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
5146 (s390_is_partial_instruction, s390_software_single_step)
5147 (is_non_branch_ril, s390_displaced_step_copy_insn)
5148 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
5149 (s390_prologue_data, s390_addr, s390_store, s390_load)
5150 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
5151 (s390_register_call_saved, s390_guess_tracepoint_registers)
5152 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
5153 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
5154 (s390_pseudo_register_name, s390_pseudo_register_type)
5155 (s390_pseudo_register_read, s390_pseudo_register_write)
5156 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
5157 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
5158 (s390_addr_bits_remove, s390_address_class_type_flags)
5159 (s390_address_class_type_flags_to_name)
5160 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
5161 (s390_function_arg_float, s390_function_arg_vector)
5162 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
5163 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
5164 (s390_frame_align, s390_register_return_value, s390_return_value)
5165 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
5166 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
5167 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
5168 (s390_trad_frame_prev_register, s390_unwind_cache)
5169 (s390_prologue_frame_unwind_cache)
5170 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
5171 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
5172 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
5173 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
5174 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
5175 (s390_frame_base_address, s390_local_base_address)
5176 (s390_frame_base, s390_gcc_target_options)
5177 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
5178 (s390_validate_reg_range, s390_tdesc_valid)
5179 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
5180 * s390-tdep.c: ...this. New file.
5181
9c0b896e
PR
51822018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5183
5184 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
5185 (s390_process_record, s390_gdbarch_tdep_alloc)
5186 (s390_linux_init_abi_any): Use/set new hook.
5187
7042632b
PR
51882018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5189
5190 * s390-linux-tdep.c (osabi.h): New include.
5191 (s390_linux_init_abi_31, s390_linux_init_abi_64)
5192 (s390_linux_init_abi_any): New functions.
5193 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
5194
650f5e13
PR
51952018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5196
5197 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
5198 tdesc_has_registers check
5199
47c9317e
PR
52002018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5201
5202 * s390-linux-tdep.c (s390_tdesc_valid): New function.
5203 (s390_validate_reg_range): New macro.
5204 (s390_gdbarch_init): Adjust.
5205
095085d8
PR
52062018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5207
5208 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
5209 (s390_gdbarch_tdep_alloc): Adjust.
5210 (s390_gdbarch_init): Adjust.
5211
ab9bcc67
PR
52122018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5213
5214 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
5215 <have_tdb>: Change type to bool.
5216 (s390_gdbarch_tdep_alloc): Adjust.
5217 (s390_gdbarch_init): Adjust.
5218
21f6f5ff
PR
52192018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5220
5221 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
5222 (gdbarch_tdep) <have_upper, have_vx>: New fields.
5223 (s390_gdbarch_tdep_alloc): New function.
5224 (s390_gdbarch_init): Allocate tdep at start and use its fields
5225 instead of separate variables.
5226
0eb97953
PR
52272018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
5228
5229 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
5230 when looking for cached gdbarch and add comment for remaining.
5231
5c319bb2
PA
52322018-01-22 Pedro Alves <palves@redhat.com>
5233 Sergio Durigan Junior <sergiodj@redhat.com>
5234
5235 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
5236 case.
5237
d65ce302
MR
52382018-01-22 Maciej W. Rozycki <macro@mips.com>
5239
5240 * MAINTAINERS: Update my company e-mail address.
5241
ec7a5fcb
YQ
52422018-01-22 Yao Qi <yao.qi@linaro.org>
5243
5244 * regcache.c (cooked_write_test): New function.
5245 (_initialize_regcache): Register the test.
5246
11f57cb6
YQ
52472018-01-22 Yao Qi <yao.qi@linaro.org>
5248
5249 * ia64-tdep.c (ia64_pseudo_register_read): Call
5250 regcache->cooked_read instead of regcache_cooked_read_unsigned.
5251 * m32c-tdep.c (m32c_cat_read): Likewise.
5252 (m32c_r3r2r1r0_read): Likewise.
5253 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
5254 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
5255
03f50fc8
YQ
52562018-01-22 Yao Qi <yao.qi@linaro.org>
5257
5258 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
5259 method raw_read instead of regcache_raw_read.
5260 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
5261 * arm-tdep.c (arm_neon_quad_read): Likewise.
5262 * avr-tdep.c (avr_pseudo_register_read): Likewise.
5263 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
5264 * frv-tdep.c (frv_pseudo_register_read): Likewise.
5265 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
5266 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
5267 (i386_pseudo_register_read_into_value): Likewise.
5268 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
5269 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
5270 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
5271 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
5272 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
5273 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
5274 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
5275 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
5276 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
5277
dc711524
YQ
52782018-01-22 Yao Qi <yao.qi@linaro.org>
5279
5280 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
5281 * configure.tgt: Remove target mt.
5282 * mt-tdep.c: Remove.
5283 * regcache.c (cooked_read_test): Remove the check for mt.
5284
3f5a868b
YQ
52852018-01-22 Yao Qi <yao.qi@linaro.org>
5286
5287 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
5288 instead of gdbarch_pseudo_register_read_value.
5289
de4cb04a
JB
52902018-01-22 Joel Brobecker <brobecker@adacore.com>
5291
5292 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
5293 language is Ada.
5294
a9e40818
JB
52952018-01-22 Joel Brobecker <brobecker@adacore.com>
5296
5297 * linespec.c (create_sals_line_offset): Remove code that preserved
5298 the symtab_and_line's line number.
5299
e707fc44
AB
53002018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5301
5302 * varobj.c (varobj_create): Don't set valid_block when creating a
5303 floating varobj.
5304
03d0bf7b
AB
53052018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5306
5307 * varobj.c (varobj_create): Remove out of date comment.
5308
ae451627
AB
53092018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5310
5311 PR mi/20395
5312 * ada-exp.y (write_var_from_sym): Pass extra parameter when
5313 updating innermost block.
5314 * parse.c (innermost_block_tracker::update): Take extra type
5315 parameter, and check types match before updating innermost block.
5316 (write_dollar_variable): Update innermost block for registers.
5317 * parser-defs.h (enum innermost_block_tracker_type): New enum.
5318 (innermost_block_tracker::innermost_block_tracker): Initialise
5319 m_types member.
5320 (innermost_block_tracker::reset): Take type parameter.
5321 (innermost_block_tracker::update): Take type parameter, and pass
5322 type through as needed.
5323 (innermost_block_tracker::m_types): New member.
5324 * varobj.c (varobj_create): Pass type when reseting innermost
5325 block.
5326
aee1fcdf
AB
53272018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5328
5329 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
5330 * ada-lang.c (resolve_subexp): Likewise.
5331 * breakpoint.c (set_breakpoint_condition) Likewise.
5332 (watch_command_1) Likewise.
5333 * c-exp.y (variable): Likewise.
5334 * d-exp.y (PrimaryExpression): Likewise.
5335 * f-exp.y (variable): Likewise.
5336 * go-exp.y (variable): Likewise.
5337 * m2-exp.y (variable): Likewise.
5338 * objfiles.c (objfile::~objfile): Likewise.
5339 * p-exp.y (variable): Likewise.
5340 * parse.c (innermost_block): Change type.
5341 * parser-defs.h (class innermost_block_tracker): New.
5342 (innermost_block): Change to innermost_block_tracker.
5343 * printcmd.c (display_command): Switch to innermost_block API.
5344 (do_one_display): Likewise.
5345 * rust-exp.y (do_one_display): Likewise.
5346 * symfile.c (clear_symtab_users): Likewise.
5347 * varobj.c (varobj_create): Switch to innermost_block API, replace
5348 use of innermost_block with block stored on varobj object.
5349
396af9a1
AB
53502018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5351
5352 * expression.h (innermost_block): Remove declaration.
5353 * varobj.c: Add 'parser-defs.h' include.
5354
fcfcc376
TT
53552018-01-19 Tom Tromey <tom@tromey.com>
5356
5357 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
5358 symbols in the static and global blocks.
5359
5a6c3296
JC
53602018-01-19 James Clarke <jrtc27@jrtc27.com>
5361
5362 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
5363 gdb_ptrace.h, and move including gdb_wait.h ...
5364 * nat/linux-ptrace.h: ... to here.
5365
bc09b0c1
SM
53662018-01-19 Simon Marchi <simon.marchi@ericsson.com>
5367
5368 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
5369 inf_ptrace_detach_success.
5370 (inf_ptrace_detach_success): Add inferior parameter, use it
5371 instead of inferior_ptid, pass it to detach_inferior.
5372 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
5373 parameter.
5374 * inferior.c (detach_inferior): Add overload that takes an
5375 inferior object.
5376 * inferior.h (detach_inferior): Likewise.
5377 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
5378 use inferior_ptid, adjust call to inf_ptrace_detach_success.
5379 * linux-thread-db.c (thread_db_detach): Use inf parameter.
5380
6e1e1966
SM
53812018-01-19 Simon Marchi <simon.marchi@ericsson.com>
5382
5383 * target.h (struct target_ops) <to_detach>: Add inferior
5384 parameter.
5385 (target_detach): Likewise.
5386 * target.c (dispose_inferior): Pass inferior down.
5387 (target_detach): Pass inferior down. Assert that it is equal to
5388 the current inferior.
5389 * aix-thread.c (aix_thread_detach): Pass inferior down.
5390 * corefile.c (core_file_command): Pass current_inferior() down.
5391 * corelow.c (core_detach): Add inferior parameter.
5392 * darwin-nat.c (darwin_detach): Likewise.
5393 * gnu-nat.c (gnu_detach): Likewise.
5394 * inf-ptrace.c (inf_ptrace_detach): Likewise.
5395 * infcmd.c (detach_command): Pass current_inferior() down to
5396 target_detach.
5397 * infrun.c (follow_fork_inferior): Pass parent_inf to
5398 target_detach.
5399 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
5400 target_detach.
5401 * linux-nat.c (linux_nat_detach): Add inferior parameter.
5402 * linux-thread-db.c (thread_db_detach): Likewise.
5403 * nto-procfs.c (procfs_detach): Likewise.
5404 * procfs.c (procfs_detach): Likewise.
5405 * record.c (record_detach): Likewise.
5406 * record.h (struct inferior): Forward-declare.
5407 (record_detach): Add inferior parameter.
5408 * remote-sim.c (gdbsim_detach): Likewise.
5409 * remote.c (remote_detach_1): Likewise.
5410 (remote_detach): Likewise.
5411 (extended_remote_detach): Likewise.
5412 * sol-thread.c (sol_thread_detach): Likewise.
5413 * target-debug.h (target_debug_print_inferior_p): New macro.
5414 * target-delegates.c: Re-generate.
5415 * top.c (kill_or_detach): Pass inferior down to target_detach.
5416 * windows-nat.c (windows_detach): Add inferior parameter.
5417
6bd6f3b6
SM
54182018-01-19 Simon Marchi <simon.marchi@ericsson.com>
5419
5420 * target.h (struct target_ops) <to_detach>: Remove args
5421 parameter.
5422 (target_detach): Likewise.
5423 * target.c (dispose_inferior): Adjust.
5424 (target_detach): Remove args parameter, adjust.
5425 * aix-thread.c (aix_thread_detach): Adjust.
5426 * corefile.c (core_file_command): Adjust.
5427 * corelow.c (core_detach): Adjust.
5428 * darwin-nat.c (darwin_detach): Adjust.
5429 * gnu-nat.c (gnu_detach): Adjust.
5430 * inf-ptrace.c (inf_ptrace_detach): Adjust.
5431 * infcmd.c (detach_command): Adjust
5432 * infrun.c (follow_fork_inferior): Adjust.
5433 (handle_vfork_child_exec_or_exit): Adjust.
5434 * linux-fork.c (linux_fork_detach): Remove args parameter.
5435 * linux-fork.h (linux_fork_detach): Likewise.
5436 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
5437 * linux-thread-db.c (thread_db_detach): Likewise.
5438 * nto-procfs.c (procfs_detach): Likewise.
5439 * procfs.c (procfs_detach): Likewise.
5440 (do_detach): Remove signo parameter.
5441 * record.c (record_detach): Remove args parameter.
5442 * record.h (record_detach): Likewise.
5443 * remote-sim.c (gdbsim_detach): Likewise.
5444 * remote.c (remote_detach_1): Likewise.
5445 (remote_detach): Likewise.
5446 (extended_remote_detach): Likewise.
5447 * sol-thread.c (sol_thread_detach): Likewise.
5448 * target-delegates.c: Re-generate.
5449 * top.c (struct qt_args) <args>: Remove field.
5450 (kill_or_detach): Don't pass args.
5451 (quit_force): Don't set args.
5452 * windows-nat.c (windows_detach): Remove args parameter.
5453
88af8ea8
YQ
54542018-01-19 Yao Qi <yao.qi@linaro.org>
5455
5456 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
5457 (arm_linux_init_abi): Install it.
5458
dea445b9
YQ
54592018-01-19 Yao Qi <yao.qi@linaro.org>
5460
5461 * osabi.c (gdb_osabi_names): Extend the regexp for
5462 arm-linux-gnueabihf.
5463
4a17f768
YQ
54642018-01-18 Yao Qi <yao.qi@linaro.org>
5465
5466 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
5467 m_abbrevs.
5468 (abbrev_table::add_abbrev): Update.
5469 (abbrev_table::lookup_abbrev): Update.
5470
d679c21a
YQ
54712018-01-18 Yao Qi <yao.qi@linaro.org>
5472
5473 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
5474
7d937cad
SDJ
54752018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
5476
5477 * compile/compile.c (compile_to_object): Convert "triplet_rx"
5478 to "std::string".
5479
9e14690d
TT
54802018-01-17 Tom Tromey <tom@tromey.com>
5481
5482 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
5483
50a82047
TT
54842018-01-17 Tom Tromey <tom@tromey.com>
5485
5486 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
5487 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
5488 (create_array_type_with_stride): Update.
5489 * dwarf2read.c (set_die_type): Update.
5490
c89b44cd
TT
54912018-01-17 Tom Tromey <tom@tromey.com>
5492
5493 * dwarf2read.c (delayed_method_info): Remove typedef.
5494 (dwarf2_cu::method_info): Now a std::vector.
5495 (add_to_method_list): Update.
5496 (free_delayed_list): Remove.
5497 (compute_delayed_physnames): Update.
5498 (process_full_comp_unit, process_full_type_unit): Clear the method
5499 list. Remove cleanups.
5500 (psymtab_include_file_name): Add name_holder parameter. Use
5501 unique_xmalloc_ptr.
5502 (dwarf_decode_lines): Update.
5503
fcd3b13d
SM
55042018-01-17 Tom Tromey <tom@tromey.com>
5505 Simon Marchi <simon.marchi@ericsson.com>
5506
5507 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
5508 (dwarf2_per_objfile::free_cached_comp_units)
5509 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
5510 (init_cutu_and_read_dies_no_follow): Update.
5511 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
5512 (dwarf2_cu::~dwarf2_cu): New.
5513 (free_heap_comp_unit, free_stack_comp_unit): Remove.
5514 (age_cached_comp_units, free_one_cached_comp_unit): Update.
5515
685af9cd
TT
55162018-01-17 Tom Tromey <tom@tromey.com>
5517 Simon Marchi <simon.marchi@ericsson.com>
5518
5519 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
5520 (struct die_reader_specs) <abbrev_table>: New member.
5521 (struct abbrev_table): Add constructor.
5522 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
5523 <abbrev_obstack>: Now an auto_obstack.
5524 (abbrev_table_up): New typedef.
5525 (init_cu_die_reader): Add abbrev_table parameter.
5526 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
5527 Add result_dwo_abbrev_table.
5528 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
5529 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
5530 Update.
5531 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
5532 parameter.
5533 (skip_children): Update.
5534 (abbrev_table::alloc_abbrev): Rename from
5535 abbrev_table_alloc_abbrev.
5536 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
5537 (abbrev_table::lookup_abbrev): Rename from
5538 abbrev_table_lookup_abbrev.
5539 (abbrev_table_read_table): Return abbrev_table_up.
5540 (abbrev_table_free, abbrev_table_free_cleanup)
5541 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
5542 (load_partial_dies): Update.
5543
5e2db402
TT
55442018-01-17 Tom Tromey <tom@tromey.com>
5545
5546 * dwarf2read.c (dwarf2_compute_name): Update comment.
5547 (read_func_scope, read_variable): Update.
5548 (new_symbol): Remove.
5549 (new_symbol_full): Rename to new_symbol.
5550
ee7f689e 55512018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
5552
5553 PR gdb/16577
5554 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
5555 a warning instead of throwing an error, set section size to 0 and return
5556 NULL.
5557 * gdb_bfd.h (gdb_bfd_map_section): Update description.
5558
4d9b86e1
SM
55592018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5560
5561 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
5562 std::string.
5563 (linux_ptrace_attach_fail_reason_string): Likewise.
5564 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
5565 Likewise.
5566 (linux_ptrace_attach_fail_reason_string): Likewise.
5567 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
5568
a7b2d0fb
SM
55692018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5570
5571 * linux-nat.c (linux_nat_attach): Remove xstrdup.
5572
f517c180
EA
55732018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5574
5575 PR gdb/21559
5576 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5577 checking for fs_base/gs_base fields in struct user_regs_struct.
5578 * configure: Regenerate.
5579
7045b1ca
YQ
55802018-01-17 Yao Qi <yao.qi@linaro.org>
5581
5582 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
5583 function.
5584 (aarch64_linux_init_abi): Install it to gdbarch hook
5585 gcc_target_options.
5586
db422fb2
PA
55872018-01-15 Pedro Alves <palves@redhat.com>
5588
5589 * common/signals-state-save-restore.c
5590 (save_original_signals_state): Fix typos.
5591
ba643918
SDJ
55922017-01-12 Tom Tromey <tom@tromey.com>
5593 Sergio Durigan Junior <sergiodj@redhat.com>
5594
5595 * Makefile.in (install-only): Install gdb-add-index.
5596
906b4aac
JB
55972018-01-12 John Baldwin <jhb@FreeBSD.org>
5598
5599 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
5600
bdf2a94a
AA
56012018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
5602
5603 * infrun.c (keep_going_pass_signal): Clear step-over info when
5604 insert_breakpoints fails.
5605
71d378ae
PA
56062018-01-11 Pedro Alves <palves@redhat.com>
5607
5608 PR gdb/22583
5609 * infrun.c (resume): Rename to ...
5610 (resume_1): ... this.
5611 (resume): Reimplement as wrapper around resume_1.
5612
3cada740
PA
56132018-01-11 Pedro Alves <palves@redhat.com>
5614
5615 PR remote/22597
5616 * remote.c (remote_parse_stop_reply): Default to the last-set
5617 general thread instead of to 'magic_null_ptid'.
5618
618daa93
PA
56192018-01-10 Pedro Alves <palves@redhat.com>
5620
5621 * language.h (language_get_symbol_name_matcher): Rename ...
5622 (get_symbol_name_matcher): ... this.
5623 * language.c (language_get_symbol_name_matcher): Ditto.
5624 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
5625 callers adjusted.
5626
c63d3e8d
PA
56272018-01-10 Pedro Alves <palves@redhat.com>
5628
5629 PR gdb/22670
5630 * dwarf2read.c
5631 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
5632 Adjust to use language_get_symbol_name_matcher instead of
5633 language_defn::la_get_symbol_name_matcher.
5634 * language.c (language_get_symbol_name_matcher): If in Ada mode
5635 and the lookup name is a verbatim match, return Ada's matcher.
5636 * language.h (language_get_symbol_name_matcher): Adjust comment.
5637 (ada_lookup_name_info::verbatim_p):: New method.
5638
d4c2a405
PA
56392018-01-10 Pedro Alves <palves@redhat.com>
5640
5641 PR gdb/22670
5642 * ada-lang.c (ada_collect_symbol_completion_matches): If the
5643 minsym's language is language_auto or language_cplus, pass down
5644 language_ada instead.
5645 * symtab.c (compare_symbol_name): Don't frob symbol language here.
5646
8825213e
PA
56472018-01-10 Pedro Alves <palves@redhat.com>
5648
5649 PR gdb/22670
5650 * minsyms.c (linkage_name_str): New function.
5651 (iterate_over_minimal_symbols): Use it.
5652
2d97a5d9
JB
56532018-01-09 John Baldwin <jhb@FreeBSD.org>
5654
5655 * NEWS: Document that 'info proc' now works on FreeBSD.
5656
92fce24d
JB
56572018-01-09 John Baldwin <jhb@FreeBSD.org>
5658
5659 * configure.ac: Check for kinfo_getfile in libutil.
5660 * configure: Regenerate.
5661 * config.in: Regenerate.
5662 * fbsd-nat.c: Include "fbsd-tdep.h".
5663 (fbsd_fetch_cmdline): New.
5664 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
5665 rather than calling error.
5666 (fbsd_info_proc): New.
5667 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
5668 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
5669 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
5670
262f62f5
JB
56712018-01-09 John Baldwin <jhb@FreeBSD.org>
5672
5673 * fbsd-nat.c (struct free_deleter): Remove.
5674 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
5675
b999e203
JB
56762018-01-09 John Baldwin <jhb@FreeBSD.org>
5677
5678 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
5679 NULL for an empty pathname.
5680
d2176225
JB
56812018-01-09 John Baldwin <jhb@FreeBSD.org>
5682
5683 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
5684 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
5685 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5686 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5687 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
5688 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
5689 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
5690 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
5691 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
5692 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
5693 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
5694 (fbsd_core_fetch_timeval, fbsd_print_sigset)
5695 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
5696 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
5697 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
5698
9c4ac400
ST
56992018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
5700
5701 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
5702 (gnu_xfer_auxv): New function.
5703 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
5704 TARGET_OBJECT_AUXV.
5705
1e5ded6c
YQ
57062018-01-08 Yao Qi <yao.qi@linaro.org>
5707 Simon Marchi <simon.marchi@ericsson.com>
5708
5709 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
5710 common/selftest.c.
5711 (COMMON_OBS): Remove selftest.o.
5712 * configure.ac: Append selftest-arch.c and common/selftest.c to
5713 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
5714 * configure: Re-generated.
5715 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
5716 GDB_SELF_TEST.
5717 (maintenance_info_selftests): Likewise.
5718
04bafb1e
XR
57192018-01-08 Xavier Roirand <roirand@adacore.com>
5720
5721 * ada-valprint.c (val_print_packed_array_elements): Use
5722 proper number of elements when printing an array indexed
5723 by an enumeration type.
5724
518817b3
SM
57252018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5726
5727 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
5728 (dw2_get_file_names_reader): Adjust.
5729 (lookup_dwo_signatured_type): Adjust.
5730 (lookup_dwp_signatured_type): Adjust.
5731 (lookup_signatured_type): Adjust.
5732 (create_type_unit_group): Adjust.
5733 (get_type_unit_group): Adjust.
5734 (process_psymtab_comp_unit_reader): Adjust.
5735 (build_type_psymtabs_reader): Adjust.
5736 (scan_partial_symbols): Adjust.
5737 (add_partial_symbol): Adjust.
5738 (add_partial_subprogram): Adjust.
5739 (peek_die_abbrev): Adjust.
5740 (fixup_go_packaging): Adjust.
5741 (process_imported_unit_die): Adjust.
5742 (dwarf2_compute_name): Adjust.
5743 (dwarf2_physname): Adjust.
5744 (read_import_statement): Adjust.
5745 (handle_DW_AT_stmt_list): Adjust.
5746 (read_file_scope): Adjust.
5747 (read_func_scope): Adjust.
5748 (read_lexical_block_scope): Adjust.
5749 (read_call_site_scope): Adjust.
5750 (read_variable): Adjust.
5751 (dwarf2_rnglists_process): Adjust.
5752 (dwarf2_ranges_process): Adjust.
5753 (dwarf2_ranges_read): Adjust.
5754 (dwarf2_get_pc_bounds): Adjust.
5755 (dwarf2_record_block_ranges): Adjust.
5756 (dwarf2_add_field): Adjust.
5757 (dwarf2_add_member_fn): Adjust.
5758 (read_structure_type): Adjust.
5759 (process_structure_scope): Adjust.
5760 (read_enumeration_type): Adjust.
5761 (read_array_type): Adjust.
5762 (mark_common_block_symbol_computed): Adjust.
5763 (read_common_block): Adjust.
5764 (read_namespace_type): Adjust.
5765 (read_namespace): Adjust.
5766 (read_module_type): Adjust.
5767 (read_tag_pointer_type): Adjust.
5768 (read_tag_ptr_to_member_type): Adjust.
5769 (read_tag_string_type): Adjust.
5770 (read_subroutine_type): Adjust.
5771 (read_typedef): Adjust.
5772 (read_base_type): Adjust.
5773 (attr_to_dynamic_prop): Adjust.
5774 (read_subrange_type): Adjust.
5775 (read_unspecified_type): Adjust.
5776 (dwarf2_read_abbrevs): Adjust.
5777 (load_partial_dies): Adjust.
5778 (read_partial_die): Adjust.
5779 (find_partial_die): Adjust.
5780 (guess_partial_die_structure_name): Adjust.
5781 (fixup_partial_die): Adjust.
5782 (read_attribute_value): Adjust.
5783 (read_addr_index): Adjust.
5784 (read_addr_index_from_leb128): Adjust.
5785 (read_str_index): Adjust.
5786 (dwarf2_string_attr): Adjust.
5787 (get_debug_line_section): Adjust.
5788 (dwarf_decode_line_header): Adjust.
5789 (lnp_state_machine::check_line_address): Adjust.
5790 (dwarf_decode_lines_1): Adjust.
5791 (dwarf_decode_lines): Adjust.
5792 (dwarf2_start_symtab): Adjust.
5793 (var_decode_location): Adjust.
5794 (new_symbol_full): Adjust.
5795 (dwarf2_const_value_data): Adjust.
5796 (dwarf2_const_value_attr): Adjust.
5797 (dwarf2_const_value): Adjust.
5798 (die_type): Adjust.
5799 (die_containing_type): Adjust.
5800 (build_error_marker_type): Adjust.
5801 (lookup_die_type): Adjust.
5802 (guess_full_die_structure_name): Adjust.
5803 (anonymous_struct_prefix): Adjust.
5804 (determine_prefix): Adjust.
5805 (dwarf2_name): Adjust.
5806 (follow_die_ref_or_sig): Adjust.
5807 (follow_die_offset): Adjust.
5808 (follow_die_ref): Adjust.
5809 (follow_die_sig_1): Adjust.
5810 (follow_die_sig): Adjust.
5811 (get_signatured_type): Adjust.
5812 (get_DW_AT_signature_type): Adjust.
5813 (decode_locdesc): Adjust.
5814 (dwarf_decode_macros): Adjust.
5815 (cu_debug_loc_section): Adjust.
5816 (fill_in_loclist_baton): Adjust.
5817 (dwarf2_symbol_mark_computed): Adjust.
5818 (init_one_comp_unit): Don't assign
5819 dwarf2_cu::dwarf2_per_objfile.
5820 (set_die_type): Adjust.
5821
ed2dc618
SM
58222018-01-07 Simon Marchi <simon.marchi@ericsson.com>
5823
5824 * dwarf2read.c (struct mapped_debug_names): Add constructor.
5825 <dwarf2_per_objfile>: New field.
5826 (dwarf2_per_objfile): Remove global.
5827 (get_dwarf2_per_objfile): New function.
5828 (set_dwarf2_per_objfile): New function.
5829 (dwarf2_build_psymtabs_hard): Change objfile parameter to
5830 dwarf2_per_objfile.
5831 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
5832 (read_abbrev_offset): Likewise.
5833 (read_indirect_string): Likewise.
5834 (read_indirect_line_string): Likewise.
5835 (read_indirect_string_at_offset): Likewise.
5836 (read_indirect_string_from_dwz): Likewise.
5837 (dwarf2_find_containing_comp_unit): Change objfile parameter to
5838 dwarf2_per_objfile.
5839 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
5840 (create_all_comp_units): Change objfile parameter to
5841 dwarf2_per_objfile.
5842 (create_all_type_units): Likewise.
5843 (process_queue): Add dwarf2_per_objfile parameter.
5844 (read_and_check_comp_unit_head): Likewise.
5845 (lookup_dwo_unit_in_dwp): Likewise.
5846 (get_dwp_file): Likewise.
5847 (process_cu_includes): Likewise.
5848 (struct free_dwo_file_cleanup_data): New struct.
5849 (dwarf2_has_info): Use get_dwarf2_per_objfile and
5850 set_dwarf2_per_objfile.
5851 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
5852 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
5853 context, adjust calls.
5854 (dw2_instantiate_symtab): Likewise.
5855 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
5856 (dw2_get_cu): Likewise.
5857 (create_cu_from_index_list): Change objfile parameter to
5858 dwarf2_per_objfile.
5859 (create_cus_from_index_list): Get dwarf2_per_objfile from
5860 context, adjust calls.
5861 (create_cus_from_index): Likewise.
5862 (create_signatured_type_table_from_index): Change objfile
5863 parameter to dwarf2_per_objfile.
5864 (create_signatured_type_table_from_debug_names): Change objfile
5865 parameter to dwarf2_per_objfile.
5866 (create_addrmap_from_index): Likewise.
5867 (create_addrmap_from_aranges): Likewise.
5868 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
5869 (dw2_setup): Remove.
5870 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
5871 context.
5872 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
5873 get_dwarf2_per_objfile.
5874 (dw2_forget_cached_source_info): Likewise.
5875 (dw2_map_symtabs_matching_filename): Likewise.
5876 (struct dw2_symtab_iterator) <index>: Remove.
5877 <dwarf2_per_objfile>: New field.
5878 (dw2_symtab_iter_init): Replace index parameter with
5879 dwarf2_per_objfile.
5880 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
5881 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
5882 (dw2_print_stats): Likewise.
5883 (dw2_dump): Likewise.
5884 (dw2_expand_symtabs_for_function): Likewise.
5885 (dw2_expand_all_symtabs): Likewise.
5886 (dw2_expand_symtabs_with_fullname): Likewise.
5887 (dw2_expand_marked_cus): Replace index and objfile parameters
5888 with dwarf2_per_objfile.
5889 (dw_expand_symtabs_matching_file_matcher): Add
5890 dwarf2_per_objfile parameter and adjust calls.
5891 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
5892 adjust calls.
5893 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
5894 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
5895 adjust calls.
5896 (create_cus_from_debug_names_list): Replace objfile parameter
5897 with dwarf2_per_objfile and adjust calls.
5898 (create_cus_from_debug_names): Likewise.
5899 (dwarf2_read_debug_names): Likewise.
5900 (mapped_debug_names::namei_to_name): Adjust call.
5901 (dw2_debug_names_iterator::next): Likewise.
5902 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5903 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
5904 (dw2_debug_names_dump): Likewise.
5905 (dw2_debug_names_expand_symtabs_for_function): Likewise.
5906 (dw2_debug_names_expand_symtabs_matching): Likewise.
5907 (dwarf2_initialize_objfile): Likewise.
5908 (dwarf2_build_psymtabs): Likewise.
5909 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
5910 this_cu.
5911 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
5912 (read_and_check_comp_unit_head): Likewise.
5913 (read_abbrev_offset): Likewise.
5914 (create_debug_type_hash_table): Likewise.
5915 (create_debug_types_hash_table): Likewise.
5916 (create_all_type_units): Replace objfile parameter with
5917 dwarf2_per_objfile.
5918 (add_type_unit): Add dwarf2_per_objfile parameter.
5919 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
5920 with dwarf2_per_objfile.
5921 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
5922 (lookup_dwp_signatured_type): Likewise.
5923 (lookup_signatured_type): Likewise.
5924 (read_cutu_die_from_dwo): Likewise.
5925 (init_tu_and_read_dwo_dies): Likewise.
5926 (init_cutu_and_read_dies): Likewise.
5927 (init_cutu_and_read_dies_no_follow): Likewise.
5928 (allocate_type_unit_groups_table): Add objfile parameter.
5929 (create_type_unit_group): Use dwarf2_per_objfile from cu.
5930 (get_type_unit_group): Likewise.
5931 (process_psymtab_comp_unit): Update call.
5932 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
5933 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
5934 (print_tu_stats): Likewise.
5935 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
5936 in void* parameter.
5937 (build_type_psymtabs): Change objfile parameter to
5938 dwarf2_per_objfile.
5939 (process_skeletonless_type_unit): Use dwarf2_per_objfile
5940 passed in void* parameter.
5941 (process_skeletonless_type_units): Change objfile parameter to
5942 dwarf2_per_objfile.
5943 (set_partial_user): Likewise.
5944 (dwarf2_build_psymtabs_hard): Likewise.
5945 (read_comp_units_from_section): Likewise.
5946 (create_all_comp_units): Likewise.
5947 (scan_partial_symbols): Update calls.
5948 (add_partial_symbol): Likewise.
5949 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
5950 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
5951 (process_queue): Add dwarf2_per_objfile parameter.
5952 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
5953 (compute_compunit_symtab_includes): Likewise.
5954 (process_cu_includes): Add dwarf2_per_objfile parameter.
5955 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
5956 (process_full_type_unit): Likewise.
5957 (process_imported_unit_die): Update call.
5958 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
5959 (read_file_scope): Likewise.
5960 (allocate_dwo_file_hash_table): Add objfile parameter.
5961 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
5962 (create_cus_hash_table): Likewise.
5963 (create_dwp_hash_table): Likewise.
5964 (create_dwo_unit_in_dwp_v1): Likewise.
5965 (create_dwp_v2_section): Likewise.
5966 (create_dwo_unit_in_dwp_v2): Likewise.
5967 (lookup_dwo_unit_in_dwp): Likewise.
5968 (try_open_dwop_file): Likewise.
5969 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
5970 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
5971 cleanup to include a reference to dwarf2_per_objfile.
5972 (open_dwp_file): Add dwarf2_per_objfile parameter.
5973 (open_and_init_dwp_file): Likewise.
5974 (get_dwp_file): Likewise.
5975 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
5976 (queue_and_load_all_dwo_tus): Update call.
5977 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
5978 data.
5979 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
5980 (dwarf2_ranges_process): Likewise.
5981 (dwarf2_get_pc_bounds): Likewise.
5982 (mark_common_block_symbol_computed): Likewise.
5983 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
5984 (dwarf2_read_abbrevs): Update call.
5985 (read_partial_die): Use dwarf2_per_objfile from cu.
5986 (find_partial_die): Likewise.
5987 (fixup_partial_die): Likewise.
5988 (read_attribute_value): Likewise.
5989 (read_indirect_string_at_offset_from): Add objfile parameter.
5990 (read_indirect_string_at_offset): Add dwarf2_per_objfile
5991 parameter.
5992 (read_indirect_string_from_dwz): Add objfile parameter.
5993 (read_indirect_string): Add objfile parameter.
5994 (read_addr_index_1): Add dwarf2_per_objfile parameter.
5995 (read_addr_index): Use dwarf2_per_objfile from cu.
5996 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
5997 call dw2_setup.
5998 (read_str_index): Use dwarf2_per_objfile from cu.
5999 (get_debug_line_section): Likewise.
6000 (read_formatted_entries): Add dwarf2_per_objfile parameter.
6001 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
6002 (new_symbol_full): Use dwarf2_per_objfile from cu.
6003 (build_error_marker_type): Likewise.
6004 (lookup_die_type): Likewise.
6005 (determine_prefix): Likewise.
6006 (follow_die_offset): Likewise.
6007 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
6008 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
6009 (dwarf2_fetch_die_type_sect_off): Likewise.
6010 (dwarf2_get_die_type): Likewise.
6011 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
6012 (get_signatured_type): Likewise.
6013 (get_DW_AT_signature_type): Likewise.
6014 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
6015 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
6016 (cu_debug_loc_section): Likewise.
6017 (fill_in_loclist_baton): Likewise.
6018 (dwarf2_symbol_mark_computed): Likewise.
6019 (dwarf2_find_containing_comp_unit): Change objfile parameter to
6020 dwarf2_per_objfile.
6021 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
6022 parameter.
6023 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
6024 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
6025 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
6026 (set_die_type): Use dwarf2_free_objfile from cu.
6027 (get_die_type_at_offset): Likewise.
6028 (dwarf2_per_objfile_free): Don't assign global variable.
6029 (debug_names) <constructor>: Add dwarf2_per_objfile
6030 parameter, update m_debugstrlookup construction.
6031 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
6032 parameter.
6033 <m_dwarf2_per_objfile>: New field.
6034 <lookup>: Use m_dwarf2_per_objfile.
6035 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
6036 (psyms_seen_size): Likewise.
6037 (write_gdbindex): Replace objfile parameter with
6038 dwarf2_per_objfile.
6039 (write_debug_names): Likewise.
6040 (write_psymtabs_to_index): Likewise.
6041 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
6042 calls.
6043
e3b94546
SM
60442018-01-07 Simon Marchi <simon.marchi@ericsson.com>
6045
6046 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
6047 <dwarf2_per_objfile>: New field.
6048 (struct dwarf2_per_cu_data) <objfile>: Remove.
6049 <dwarf2_per_objfile>: New field.
6050 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
6051 of objfile.
6052 (create_signatured_type_table_from_index): Likewise.
6053 (create_debug_type_hash_table): Likewise.
6054 (fill_in_sig_entry_from_dwo_entry): Likewise.
6055 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
6056 (create_type_unit_group): Assign dwarf2_per_objfile instead of
6057 objfile.
6058 (create_partial_symtab): Access objfile through
6059 dwarf2_per_objfile.
6060 (process_psymtab_comp_unit_reader): Likewise.
6061 (read_comp_units_from_section): Likewise.
6062 (scan_partial_symbols): Likewise.
6063 (add_partial_symbol): Likewise.
6064 (add_partial_subprogram): Likewise.
6065 (peek_die_abbrev): Likewise.
6066 (fixup_go_packaging): Likewise.
6067 (process_full_comp_unit): Likewise.
6068 (process_full_type_unit): Likewise.
6069 (process_imported_unit_die): Likewise.
6070 (dwarf2_compute_name): Likewise.
6071 (dwarf2_physname): Likewise.
6072 (read_import_statement): Likewise.
6073 (create_cus_hash_table): Assign dwarf2_physname instead of
6074 objfile.
6075 (read_func_scope): Access objfile through dwarf2_per_objfile.
6076 (read_lexical_block_scope): Likewise.
6077 (read_call_site_scope): Likewise.
6078 (read_variable): Likewise.
6079 (dwarf2_rnglists_process): Likewise.
6080 (dwarf2_ranges_process): Likewise.
6081 (dwarf2_ranges_read): Likewise.
6082 (dwarf2_record_block_ranges): Likewise.
6083 (dwarf2_add_field): Likewise.
6084 (dwarf2_add_member_fn): Likewise.
6085 (read_structure_type): Likewise.
6086 (process_structure_scope): Likewise.
6087 (read_enumeration_type): Likewise.
6088 (read_array_type): Likewise.
6089 (read_common_block): Likewise.
6090 (read_namespace_type): Likewise.
6091 (read_namespace): Likewise.
6092 (read_module_type): Likewise.
6093 (read_tag_pointer_type): Likewise.
6094 (read_tag_ptr_to_member_type): Likewise.
6095 (read_tag_string_type): Likewise.
6096 (read_subroutine_type): Likewise.
6097 (read_typedef): Likewise.
6098 (read_base_type): Likewise.
6099 (attr_to_dynamic_prop): Likewise.
6100 (read_subrange_type): Likewise.
6101 (read_unspecified_type): Likewise.
6102 (load_partial_dies): Likewise.
6103 (read_partial_die): Likewise.
6104 (find_partial_die): Likewise.
6105 (guess_partial_die_structure_name): Likewise.
6106 (fixup_partial_die): Likewise.
6107 (read_attribute_value): Likewise.
6108 (read_addr_index_from_leb128): Likewise.
6109 (dwarf2_read_addr_index): Likewise.
6110 (dwarf2_string_attr): Likewise.
6111 (lnp_state_machine::check_line_address): Likewise.
6112 (dwarf_decode_lines_1): Likewise.
6113 (dwarf_decode_lines): Likewise.
6114 (dwarf2_start_symtab): Likewise.
6115 (var_decode_location): Likewise.
6116 (new_symbol_full): Likewise.
6117 (dwarf2_const_value_data): Likewise.
6118 (dwarf2_const_value_attr): Likewise.
6119 (dwarf2_const_value): Likewise.
6120 (die_type): Likewise.
6121 (die_containing_type): Likewise.
6122 (lookup_die_type): Likewise.
6123 (guess_full_die_structure_name): Likewise.
6124 (anonymous_struct_prefix): Likewise.
6125 (dwarf2_name): Likewise.
6126 (follow_die_ref_or_sig): Likewise.
6127 (follow_die_offset): Likewise.
6128 (follow_die_ref): Likewise.
6129 (dwarf2_fetch_die_loc_sect_off): Likewise.
6130 (dwarf2_fetch_constant_bytes): Likewise.
6131 (dwarf2_fetch_die_type_sect_off): Likewise.
6132 (dwarf2_get_die_type): Likewise.
6133 (follow_die_sig): Likewise.
6134 (decode_locdesc): Likewise.
6135 (dwarf2_per_cu_objfile): Likewise.
6136 (dwarf2_per_cu_text_offset): Likewise.
6137 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
6138 objfile.
6139 (set_die_type): Access objfile through
6140 dwarf2_per_objfile.
6141
b01ba14d
SM
61422018-01-07 Simon Marchi <simon.marchi@ericsson.com>
6143
6144 * valprint.c (converted_character_d): Remove typedef.
6145 (DEF_VEC_O (converted_character_d)): Remove.
6146 (count_next_character): Use std::vector.
6147 (print_converted_chars_to_obstack): Likewise.
6148 (generic_printstr): Likewise.
6149
4d0fdd9b
SM
61502018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6151
6152 * xml-support.h (struct gdb_xml_value): Add constructor.
6153 <value>: Change type to unique_xmalloc_ptr.
6154 (gdb_xml_value_s): Remove typedef.
6155 (DEF_VEC_O (gdb_xml_value_s)): Remove.
6156 (gdb_xml_element_start_handler): Change parameter type to
6157 std::vector.
6158 (xml_find_attribute): Likewise.
6159 * xml-support.c (xml_find_attribute): Change parameter type to
6160 std::vector and adjust.
6161 (gdb_xml_values_cleanup): Remove.
6162 (gdb_xml_parser::start_element): Adjust to std::vector.
6163 (xinclude_start_include): Change paraeter type to std::vector
6164 and adjust.
6165 * btrace.c (check_xml_btrace_version): Likewise.
6166 (parse_xml_btrace_block): Likewise.
6167 (parse_xml_btrace_pt_config_cpu): Likewise.
6168 (parse_xml_btrace_pt): Likewise.
6169 (parse_xml_btrace_conf_bts): Likewise.
6170 (parse_xml_btrace_conf_pt): Likewise.
6171 * memory-map.c (memory_map_start_memory): Likewise.
6172 (memory_map_start_property): Likewise.
6173 * osdata.c (osdata_start_osdata): Likewise.
6174 (osdata_start_item): Likewise.
6175 (osdata_start_column): Likewise.
6176 * remote.c (start_thread): Likewise.
6177 * solib-aix.c (library_list_start_library): Likewise.
6178 (library_list_start_list): Likewise.
6179 * solib-svr4.c (library_list_start_library): Likewise.
6180 (svr4_library_list_start_list): Likewise.
6181 * solib-target.c (library_list_start_segment): Likewise.
6182 (library_list_start_section): Likewise.
6183 (library_list_start_library): Likewise.
6184 (library_list_start_list): Likewise.
6185 * tracepoint.c (traceframe_info_start_memory): Likewise.
6186 (traceframe_info_start_tvar): Likewise.
6187 * xml-syscall.c (syscall_start_syscall): Likewise.
6188 * xml-tdesc.c (tdesc_start_target): Likewise.
6189 (tdesc_start_feature): Likewise.
6190 (tdesc_start_reg): Likewise.
6191 (tdesc_start_union): Likewise.
6192 (tdesc_start_struct): Likewise.
6193 (tdesc_start_flags): Likewise.
6194 (tdesc_start_enum): Likewise.
6195 (tdesc_start_field): Likewise.
6196 (tdesc_start_enum_value): Likewise.
6197 (tdesc_start_vector): Likewise.
6198
f979c73f
SM
61992018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6200
6201 * extension.h (struct xmethod_worker) <clone>: Remove.
6202 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
6203 Remove.
6204 (python_xmethod_worker::clone): Remove.
6205 * valops.c (find_overload_match): Use std::move instead of
6206 clone.
6207
ba18742c
SM
62082018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6209
6210 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
6211 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
6212 <free_xmethod_worker_data>: Remove.
6213 <get_matching_xmethod_workers>: Chance VEC to std::vector.
6214 <get_xmethod_arg_types>: Remove.
6215 <get_xmethod_result_type>: Remove.
6216 <invoke_xmethod>: Remove.
6217 * extension.c (new_xmethod_worker): Remove.
6218 (clone_xmethod_worker): Remove.
6219 (get_matching_xmethod_workers): Return void, pass std::vector by
6220 pointer.
6221 (get_xmethod_arg_types): Rename to...
6222 (xmethod_worker::get_arg_types): ... this, and adjust.
6223 (get_xmethod_result_type): Rename to...
6224 (xmethod_worker::get_result_type): ... this, and adjust.
6225 (invoke_xmethod): Remove.
6226 (free_xmethod_worker): Remove.
6227 (free_xmethod_worker_vec): Remove.
6228 * extension.h (enum ext_lang_rc): Move here from
6229 extension-priv.h.
6230 (struct xmethod_worker): Add constructor and destructor.
6231 <data>: Remove.
6232 <value>: Remove.
6233 <invoke, clone, do_get_result_type, do_get_arg_types>: New
6234 virtual pure methods.
6235 <get_arg_types, get_result_type>: New methods.
6236 (xmethod_worker_ptr): Remove typedef.
6237 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
6238 (xmethod_worker_vec): Remove typedef.
6239 (xmethod_worker_up): New typedef.
6240 (invoke_xmethod): Remove.
6241 (clone_xmethod_worker): Remove.
6242 (free_xmethod_worker): Remove.
6243 (free_xmethod_worker_vec): Remove.
6244 (get_xmethod_arg_types): Remove.
6245 (get_xmethod_result_type): Remove.
6246 * valops.c (find_method_list): Use std::vector, don't use
6247 intermediate vector.
6248 (value_find_oload_method_list): Use std::vector.
6249 (find_overload_match): Use std::vector.
6250 (find_oload_champ): Use std::vector.
6251 * value.c (value_free): Use operator delete.
6252 (value_of_xmethod): Rename to...
6253 (value_from_xmethod): ... this. Don't assign
6254 xmethod_worker::value, take rvalue-reference.
6255 (result_type_of_xmethod): Adjust.
6256 (call_xmethod): Adjust.
6257 * value.h: Include extension.h.
6258 (struct xmethod_worker): Don't forward-declare.
6259 (value_of_xmethod): Rename to...
6260 (value_from_xmethod): ... this, take rvalue-reference.
6261 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
6262 (struct python_xmethod_worker): ... this, add constructor and
6263 destructor.
6264 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
6265 (gdbpy_free_xmethod_worker_data): Rename to...
6266 (python_xmethod_worker::~python_xmethod_worker): ... this and
6267 adjust.
6268 (gdbpy_clone_xmethod_worker_data): Rename to...
6269 (python_xmethod_worker::clone): ... this and adjust.
6270 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
6271 temporary vector.
6272 (gdbpy_get_xmethod_arg_types): Rename to...
6273 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
6274 (gdbpy_get_xmethod_result_type): Rename to...
6275 (python_xmethod_worker::do_get_result_type): ... this and
6276 adjust.
6277 (gdbpy_invoke_xmethod): Rename to...
6278 (python_xmethod_worker::invoke): ... this and adjust.
6279 (new_python_xmethod_worker): Rename to...
6280 (python_xmethod_worker::python_xmethod_worker): ... this and
6281 adjust.
6282 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
6283 Remove.
6284 (gdbpy_free_xmethod_worker_data): Remove.
6285 (gdbpy_get_matching_xmethod_workers): Use std::vector.
6286 (gdbpy_get_xmethod_arg_types): Remove.
6287 (gdbpy_get_xmethod_result_type): Remove.
6288 (gdbpy_invoke_xmethod): Remove.
6289 * python/python.c (python_extension_ops): Remove obsolete
6290 callbacks.
6291
e379cee6
PA
62922018-01-05 Pedro Alves <palves@redhat.com>
6293
6294 PR gdb/18653
6295 * common/signals-state-save-restore.c
6296 (save_original_signals_state): New parameter 'quiet'. Warn if we
6297 find a custom handler preinstalled, instead of internal erroring.
6298 But only warn if !quiet.
6299 * common/signals-state-save-restore.h
6300 (save_original_signals_state): New parameter 'quiet'.
6301 * main.c (captured_main_1): Move save_original_signals_state call
6302 after option handling, and pass QUIET.
6303
a655456c
PA
63042018-01-05 Pedro Alves <palves@redhat.com>
6305
6306 * spu-tdep.c (spu_catch_start): Pass
6307 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
6308
de63c46b
PA
63092018-01-05 Pedro Alves <palves@redhat.com>
6310
6311 PR gdb/22670
6312 * ada-lang.c (literal_symbol_name_matcher): New function.
6313 (ada_get_symbol_name_matcher): Use it for
6314 symbol_name_match_type::SEARCH_NAME.
6315 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
6316 it down instead of assuming symbol_name_match_type::FULL.
6317 * block.h (block_lookup_symbol): New parameter 'match_type'.
6318 * c-valprint.c (print_unpacked_pointer): Use
6319 lookup_symbol_search_name instead of lookup_symbol.
6320 * compile/compile-object-load.c (get_out_value_type): Pass down
6321 symbol_name_match_type::SEARCH_NAME.
6322 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
6323 symbol_name_match_type::FULL.
6324 * cp-support.c (cp_get_symbol_name_matcher): Handle
6325 symbol_name_match_type::SEARCH_NAME.
6326 * infrun.c (insert_exception_resume_breakpoint): Use
6327 lookup_symbol_search_name.
6328 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
6329 * psymtab.c (maintenance_check_psymtabs): Use
6330 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
6331 * stack.c (print_frame_args): Use lookup_symbol_search_name and
6332 SYMBOL_SEARCH_NAME.
6333 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
6334 if symbol_name_match_type::SEARCH_NAME.
6335 (lookup_symbol_in_language): Pass down
6336 symbol_name_match_type::FULL.
6337 (lookup_symbol_search_name): New.
6338 (lookup_language_this): Pass down
6339 symbol_name_match_type::SEARCH_NAME.
6340 (lookup_symbol_aux, lookup_local_symbol): New parameter
6341 'match_type'. Pass it down.
6342 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
6343 (lookup_symbol_search_name): New declaration.
6344 (lookup_symbol_in_block): New 'match_type' parameter.
6345
f98fc17b
PA
63462018-01-05 Pedro Alves <palves@redhat.com>
6347
6348 PR gdb/22670
6349 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
6350 ada_lookup_symbol.
6351 (ada_lookup_symbol): Reimplement in terms of
6352 ada_lookup_symbol_list, bits factored out from
6353 ada_lookup_encoded_symbol.
6354
342f8240
JB
63552018-01-05 Joel Brobecker <brobecker@adacore.com>
6356
6357 * ada-exp.y (write_object_renaming): When subscripting an array
6358 using a symbol as the index, pass the block in call to
6359 ada_lookup_encoded_symbol when looking that symbol up.
6360
7150d33c
JG
63612018-01-05 Jerome Guitton <guitton@adacore.com>
6362
6363 * ada-lang.c (ada_array_length): Use ada_index_type instead of
6364 TYPE_INDEX_TYPE.
6365
cc0e770c
JB
63662018-01-05 Joel Brobecker <brobecker@adacore.com>
6367
6368 * ada-lang.c (ada_to_fixed_value_create): Add handling of
6369 the case where VALUE_LVAL (val0) is not lval_memory.
6370
f79da888 63712018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
6372
6373 * ada-valprint.c (print_optional_low_bound): Handle
6374 character-indexed array printing like boolean-indexed array
6375 printing.
6376
cd385f94
JB
63772018-01-05 Joel Brobecker <brobecker@adacore.com>
6378
6379 * NEWS: Create a new section for the next release branch.
6380 Rename the section of the current branch, now that it has
6381 been cut.
6382
09aca949
JB
63832018-01-05 Joel Brobecker <brobecker@adacore.com>
6384
6385 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
6386 * version.in: Bump version to 8.1.50.DATE-git.
6387
9f757bf7
XR
63882018-01-03 Xavier Roirand <roirand@adacore.com>
6389
6390 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
6391 Add field.
6392 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
6393 Add field.
6394 (default_exception_support_info) <catch_handlers_sym>: Add field.
6395 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
6396 (ada_exception_name_addr_1): Add "catch handlers" handling.
6397 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
6398 Update all callers.
6399 (create_excep_cond_exprs) <ex>: Add parameter.
6400 (re_set_exception): Update create_excep_cond_exprs call.
6401 (print_it_exception, print_one_exception, print_mention_exception)
6402 (print_recreate_exception): Add "catch handler" handling.
6403 (allocate_location_catch_handlers, re_set_catch_handlers)
6404 (check_status_catch_handlers, print_it_catch_handlers)
6405 (print_one_catch_handlers, print_mention_catch_handlers)
6406 (print_recreate_catch_handlers): New function.
6407 (catch_handlers_breakpoint_ops): New variable.
6408 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
6409 Add parameter. Add "catch handler" handling.
6410 (ada_exception_sym_name, ada_exception_breakpoint_ops):
6411 Add "catch handler" handling.
6412 (ada_exception_catchpoint_cond_string): Add "catch handler"
6413 handling.
6414 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
6415 call.
6416 (catch_ada_handlers_command): New function.
6417 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
6418 operations structure.
6419 (_initialize_ada_language): Add "catch handlers" command entry.
6420 * NEWS: Document "catch handlers" feature.
6421
9fe561ab
JB
64222018-01-02 Joel Brobecker <brobecker@adacore.com>
6423
6424 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
6425 account when creating the array type of the slice.
6426 (ada_value_slice): Likewise.
6427
a405673c
JB
64282018-01-02 Joel Brobecker <brobecker@adacore.com>
6429
6430 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
6431 New enum value.
6432 (create_array_type_with_stride): Add byte_stride_prop parameter.
6433 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
6434 New parameter. Update all callers in this file.
6435 (array_type_has_dynamic_stride): New function.
6436 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
6437 of arrays with dynamic byte strides.
6438 * dwarf2read.c (read_array_type): Add support for dynamic
6439 DW_AT_byte_stride attributes.
6440
74a2f8ff
JB
64412018-01-02 Joel Brobecker <brobecker@adacore.com>
6442
6443 * dwarf2read.c (read_unspecified_type): Treat
6444 DW_TAG_enumeration_type DIEs from Ada units as stubs.
6445
e2882c85
JB
64462018-01-01 Joel Brobecker <brobecker@adacore.com>
6447
6448 Update copyright year range in all GDB files.
6449
1690bb24
JB
64502018-01-01 Joel Brobecker <brobecker@adacore.com>
6451
6452 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
6453 and gdb/testsuite/gdb.base/step-line.c.
6454
0f0c98a8
JB
64552018-01-01 Joel Brobecker <brobecker@adacore.com>
6456
6457 * copyright.py (main): Dump the contents of
6458 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
6459 even if BY_HAND is empty.
6460
82e1e79a
JB
64612018-01-01 Joel Brobecker <brobecker@adacore.com>
6462
6463 * top.c (print_gdb_version): Update Copyright year in version
6464 message.
6465
053f54e5 64662018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 6467
053f54e5 6468 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 6469
053f54e5 6470For older changes see ChangeLog-2017.
c906108c
SS
6471\f
6472Local Variables:
6473mode: change-log
6474left-margin: 8
6475fill-column: 74
6476version-control: never
57da7796 6477coding: utf-8
c906108c 6478End: