1 2018-07-16 Tom Tromey <tom@tromey.com>
3 * stabsread.h (within_function): Move from buildsym.h.
4 * stabsread.c (start_stabs): Clear within_function.
5 * coffread.c (coff_start_symtab): Clear within_function.
6 * buildsym.h (within_function): Move to stabsread.h.
7 * buildsym.c (prepare_for_building): Update.
9 2018-07-16 Tom Tromey <tom@tromey.com>
11 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
12 * dwarf2read.c (dwarf2_start_symtab): Don't set
13 processing_gcc_compilation.
14 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
16 2018-07-16 Tom Tromey <tom@tromey.com>
18 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
19 (next_symbol_text_func): Move from buildsym.h.
20 * stabsread.c (hashname): Move from buildsym.c.
21 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
22 (next_symbol_text_func, hashname): Move to stabsread.h.
23 * buildsym.c: Don't include bcache.h
24 (hashname): Move to stasbread.c.
26 2018-07-16 Tom Tromey <tom@tromey.com>
28 * buildsym.h (context_stack_size): Don't declare.
29 * buildsym.c (context_stack_size): New global.
31 2018-07-16 Tom Tromey <tom@tromey.com>
33 * dbxread.c (processing_acc_compilation): New global.
34 * buildsym.h (processing_acc_compilation): Don't declare.
36 2018-07-16 Tom Tromey <tom@tromey.com>
38 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
39 * dbxread.c (read_ofile_symtab): Update.
40 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
41 * buildsym.h (last_source_start_addr): Remove.
42 (set_last_source_start_addr, get_last_source_start_addr):
44 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
46 (struct buildsym_compunit) <m_last_source_start_addr>: New
48 (prepare_for_building): Remove start_addr parameter.
49 (start_symtab, restart_symtab, end_symtab_get_static_block)
50 (end_symtab_with_blockvector): Update.
51 (set_last_source_start_addr, get_last_source_start_addr): New
54 2018-07-16 Tom Tromey <tom@tromey.com>
56 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
58 (have_line_numbers): Remove.
59 (record_line, prepare_for_building, end_symtab_get_static_block)
60 (augment_type_symtab): Update.
62 2018-07-16 Tom Tromey <tom@tromey.com>
64 * buildsym.c (~buildsym_compunit): Free the macro table.
65 (struct buildsym_compunit) <get_macro_table, release_macros>: New
67 <m_pending_macros>: New member.
68 (pending_macros): Remove.
69 (~scoped_free_pendings, get_macro_table, prepare_for_building)
70 (reset_symtab_globals, end_symtab_get_static_block)
71 (end_symtab_with_blockvector, augment_type_symtab)
72 (buildsym_init): Update.
74 2018-07-16 Tom Tromey <tom@tromey.com>
76 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
78 (buildsym_compunit::set_last_source_file): New method.
79 <m_last_source_file>: New member.
80 (prepare_for_building): Remove "name" parameter.
81 (start_symtab, restart_symtab, reset_symtab_globals): Update.
82 (last_source_file): Remove.
83 (set_last_source_file, get_last_source_file): Update.
85 2018-07-16 Tom Tromey <tom@tromey.com>
87 * buildsym.c (prepare_for_building): Add assert.
89 2018-07-16 Tom Tromey <tom@tromey.com>
91 * buildsym.c (~buildsym_compunit): Update.
92 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
93 (start_subfile, patch_subfile_names)
94 (end_symtab_with_blockvector): Update.
96 2018-07-16 Tom Tromey <tom@tromey.com>
98 * buildsym.c (struct buildsym_compunit): Add constructor,
99 destructor, initializers.
100 (start_buildsym_compunit): Remove.
101 (free_buildsym_compunit): Use "delete".
102 (start_symtab, restart_symtab): Use "new".
104 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
106 * symfile.c (set_objfile_default_section_offset): Remove struct
109 2018-07-14 Stafford Horne <shorne@gmail.com>
111 * (Responsible Maintainers): Add myself as or1k maintainer.
113 2018-07-13 Tom Tromey <tom@tromey.com>
115 * symfile.c (set_objfile_default_section_offset): Use extra braces
118 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
120 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
123 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
125 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
126 unittests/cli-utils-selftests.c
127 * unittests/cli-utils-selftests.c: New file.
129 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
131 * NEWS: Mention new commands. Mention change to 'thread apply'.
133 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
135 * thread.c (thr_try_catch_cmd): New function.
136 (thread_apply_all_command): Handle qcs flags.
137 (thread_apply_command): Handle qcs flags.
138 (taas_command): New function.
139 (tfaas_command): New function.
140 (_initialize_thread): Update to setup the new commands 'taas
141 and 'tfaas'. Change doc string for 'thread apply'.
143 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
145 * stack.c: (trailing_outermost_frame): New function, mostly
146 extracted from backtrace_command_1.
147 (leading_innermost_frame): New function.
148 (backtrace_command_1): Update to call trailing_outermost_frame.
149 (frame_apply_command_count): New function.
150 (frame_apply_level_command): New function.
151 (frame_apply_all_command): New function.
152 (frame_apply_command): New function.
153 (faas_command): New function.
154 (frame_cmd_list): New variable.
155 (_initialize_stack): Update to setup the new commands 'frame apply'
158 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
160 * cli-utils.c (number_or_range_parser::get_number): Only handle
161 numbers or convenience var as numbers.
162 (parse_flags): New function.
163 (parse_flags_qcs): New function.
164 (number_or_range_parser::finished): Ensure parsing end is detected
165 before end of string.
166 * cli-utils.h (parse_flags): New function.
167 (parse_flags_qcs): New function.
168 (number_or_range_parser): Remove m_finished bool.
169 (number_or_range_parser::skip_range): Set m_in_range to false.
171 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
173 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
176 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
177 Jan Kratochvil <jan.kratochvil@redhat.com>
178 Paul Fertser <fercerpav@gmail.com>
179 Tsutomu Seki <sekiriki@gmail.com>
180 Pedro Alves <palves@redhat.com>
182 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
183 'unittests/parse-connection-spec-selftests.c'.
184 (COMMON_SFILES): Add 'common/netstuff.c'.
185 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
186 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
187 * common/netstuff.c: New file.
188 * common/netstuff.h: New file.
189 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
190 (wait_for_connect): Update comment. New parameter
191 'gdb::optional<int> sock' instead of 'struct serial *scb'.
192 Use 'sock' directly instead of 'scb->fd'.
193 (try_connect): New function, with code from 'net_open'.
194 (net_open): Rewrite main loop to deal with multiple
195 sockets/addresses. Handle IPv6-style hostnames; implement
196 support for IPv6 connections.
197 * unittests/parse-connection-spec-selftests.c: New file.
199 2018-07-11 Pedro Alves <palves@redhat.com>
202 * remote.c (remote_target::remote_detach_pid): Call
205 2018-07-11 Pedro Alves <palves@redhat.com>
207 * h8300-tdep.c (h8300_gdbarch_init): Remove
208 set_gdbarch_ecoff_reg_to_regnum calls.
210 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
213 * c-typeprint.c (c_type_print_base_struct_union): Don't print
214 offsets/sizes for static members of a class/struct.
216 2018-07-11 Alan Hayward <alan.hayward@arm.com>
218 * target-descriptions.c (tdesc_register_bitsize): Rename.
219 * target-descriptions.h (tdesc_register_bitsize): Likewise.
220 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
221 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
223 2018-07-10 Tom Tromey <tom@tromey.com>
225 * breakpoint.c (moribund_locations): Now static and a
227 (breakpoint_init_inferior, moribund_breakpoint_here_p)
228 (build_bpstat_chain, update_global_location_list)
229 (breakpoint_retire_moribund): Update.
230 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
233 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
235 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
236 (riscv_register_reggroup_p): Use new function, remove unneeded
238 (riscv_push_dummy_call): Extend assert to compare against xlen or
239 flen based on register type.
241 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
243 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
245 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
247 * remote.c (show_hardware_watchpoint_limit): New function.
248 (show_hardware_watchpoint_length_limit): New function.
249 (show_hardware_breakpoint_limit): New function.
250 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
251 where appropriate, update help text.
253 2018-07-09 Tom Tromey <tom@tromey.com>
255 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
256 (CLIBS): Don't mention NAT_CLIBS.
258 2018-07-09 Tom Tromey <tom@tromey.com>
260 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
261 (LIBGDB_OBS, clean mostlyclean): Update.
262 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
264 2018-07-09 Tom Tromey <tom@tromey.com>
266 * Makefile.in (%.c: %.y): Use ECHO_YACC.
267 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
268 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
270 2018-07-09 Tom Tromey <tom@tromey.com>
272 * Makefile.in (ALLDEPFILES): Remove exec.c.
273 (COMMON_OBS): Remove exec.o.
274 (COMMON_SFILES): Add exec.c.
276 2018-07-09 Tom Tromey <tom@tromey.com>
278 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
280 2018-07-09 Tom Tromey <tom@tromey.com>
282 * Makefile.in (clean mostlyclean): Remove stamp-version.
283 (version.c): Depend on stamp-version.
284 (stamp-version): New rule, from version.c rule.
286 2018-07-09 Tom Tromey <tom@tromey.com>
288 * Makefile.in (init.c): Depend on stamp-init.
289 (stamp-init): New rule, from init.c rule.
290 (clean mostlyclean): Remove stamp-init.
292 2018-07-09 Tom Tromey <tom@tromey.com>
294 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
295 SUBDIR_GCC_COMPILE_SRCS.
297 2018-07-09 Tom Tromey <tom@tromey.com>
299 * Makefile.in (init.c): Remove some unused sed rules.
301 2018-07-09 Tom Tromey <tom@tromey.com>
303 * Makefile.in (TSOBS): Remove.
304 (INIT_FILES): Update.
305 (LIBGDB_OBS): Update.
306 (COMMON_SFILES): Add inflow.c.
307 (SFILES): Remove inflow.c.
309 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
311 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
313 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
315 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
316 get_saveloc_name, is_signal_frame_name, step_name,
317 init_remote_name, create_addr_space_name,
318 destroy_addr_space_name, search_unwind_table_name,
319 find_dyn_list_name): Constify.
321 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
323 * darwin-nat.c (darwin_pthread_kill): New function.
324 (darwin_resume_thread): Use darwin_pthread_kill.
326 2018-07-05 Tom de Vries <tdevries@suse.de>
328 * macroexp.c (macro_buffer) <operator=>: New member function.
330 2018-07-04 Tom Tromey <tom@tromey.com>
332 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
334 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
336 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
337 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
341 2018-07-04 Joel Brobecker <brobecker@adacore.com>
343 * NEWS: Create a new section for the next release branch.
344 Rename the section of the current branch, now that it has
347 2018-07-04 Joel Brobecker <brobecker@adacore.com>
349 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
350 * version.in: Bump version to 8.2.50.DATE-git.
352 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
353 Pedro Alves <palves@redhat.com>
355 * linux-nat.c (linux_init_ptrace): Rename to ...
356 (linux_init_ptrace_procfs): ... this. Call
357 linux_proc_init_warnings.
358 (linux_nat_target::post_attach)
359 (linux_nat_target::post_startup_inferior): Adjust.
360 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
361 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
363 2018-07-04 Tom de Vries <tdevries@suse.de>
365 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
367 (read_comp_unit_head): ... here.
369 2018-07-03 Tom Tromey <tom@tromey.com>
371 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
372 (stop_tracing, tstatus_command)
373 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
374 (print_one_static_tracepoint_marker): Update.
375 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
377 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
379 (all_tracepoints, static_tracepoints_here): Return std::vector.
381 2018-07-03 Tom Tromey <tom@tromey.com>
383 * common/ptid.c (ptid_equal): Remove.
384 * common/ptid.h (ptid_equal): Don't declare.
385 * ada-tasks.c: Update.
386 * breakpoint.c: Update.
387 * common/agent.c: Update.
389 * darwin-nat-info.c: Update.
390 * darwin-nat.c: Update.
392 * dtrace-probe.c: Update.
393 * dummy-frame.c: Update.
394 * fbsd-nat.c: Update.
396 * gdbthread.h: Update.
398 * go32-nat.c: Update.
399 * inf-loop.c: Update.
400 * inf-ptrace.c: Update.
405 * linux-fork.c: Update.
406 * linux-nat.c: Update.
407 * linux-thread-db.c: Update.
408 * mi/mi-cmd-var.c: Update.
409 * mi/mi-interp.c: Update.
410 * mi/mi-main.c: Update.
411 * nto-procfs.c: Update.
412 * ppc-linux-tdep.c: Update.
414 * python/py-inferior.c: Update.
415 * python/py-record-btrace.c: Update.
416 * python/py-record.c: Update.
417 * ravenscar-thread.c: Update.
418 * regcache.c: Update.
419 * remote-sim.c: Update.
421 * sol-thread.c: Update.
424 * tui/tui-stack.c: Update.
426 * windows-nat.c: Update.
427 * windows-tdep.c: Update.
429 2018-07-03 Tom Tromey <tom@tromey.com>
431 * common/ptid.c (ptid_match): Remove.
432 * common/ptid.h (ptid_match): Don't declare.
433 * fbsd-nat.c: Update.
436 * linux-nat.c: Update.
437 * record-btrace.c: Update.
438 * regcache.c: Update.
441 2018-07-03 Tom Tromey <tom@tromey.com>
443 * common/ptid.c (ptid_tid_p): Remove.
444 * common/ptid.h (ptid_tid_p): Don't declare.
445 * sol-thread.c: Update.
447 2018-07-03 Tom Tromey <tom@tromey.com>
449 * common/ptid.c (ptid_lwp_p): Remove.
450 * common/ptid.h (ptid_lwp_p): Don't declare.
451 * fbsd-nat.c: Update.
452 * linux-nat.c: Update.
453 * nat/linux-procfs.c: Update.
454 * nat/x86-linux-dregs.c: Update.
455 * sol-thread.c: Update.
457 2018-07-03 Tom Tromey <tom@tromey.com>
459 * common/ptid.c (ptid_is_pid): Remove.
460 * common/ptid.h (ptid_is_pid): Don't declare.
462 * linux-nat.c: Update.
463 * mi/mi-interp.c: Update.
467 2018-07-03 Tom Tromey <tom@tromey.com>
469 * common/ptid.c (ptid_get_tid): Remove.
470 * common/ptid.h (ptid_get_tid): Don't declare.
471 * ada-tasks.c: Update.
472 * aix-thread.c: Update.
473 * bsd-uthread.c: Update.
474 * darwin-nat.c: Update.
475 * fbsd-nat.c: Update.
476 * i386-darwin-nat.c: Update.
478 * linux-tdep.c: Update.
479 * nto-procfs.c: Update.
480 * ppc-ravenscar-thread.c: Update.
481 * python/py-infthread.c: Update.
482 * ravenscar-thread.c: Update.
483 * sol-thread.c: Update.
484 * sparc-ravenscar-thread.c: Update.
485 * windows-nat.c: Update.
487 2018-07-03 Tom Tromey <tom@tromey.com>
489 * common/ptid.c (ptid_get_lwp): Remove.
490 * common/ptid.h (ptid_get_lwp): Don't declare.
491 * aarch64-linux-nat.c: Update.
492 * ada-tasks.c: Update.
493 * aix-thread.c: Update.
494 * amd64-linux-nat.c: Update.
495 * arm-linux-nat.c: Update.
497 * fbsd-nat.c: Update.
498 * fbsd-tdep.c: Update.
500 * i386-cygwin-tdep.c: Update.
501 * i386-gnu-nat.c: Update.
502 * i386-linux-nat.c: Update.
503 * ia64-linux-nat.c: Update.
504 * inf-ptrace.c: Update.
506 * linux-fork.c: Update.
507 * linux-nat.c: Update.
508 * linux-tdep.c: Update.
509 * linux-thread-db.c: Update.
510 * mips-linux-nat.c: Update.
511 * nat/aarch64-linux-hw-point.c: Update.
512 * nat/aarch64-linux.c: Update.
513 * nat/linux-btrace.c: Update.
514 * nat/linux-osdata.c: Update.
515 * nat/linux-procfs.c: Update.
516 * nat/x86-linux-dregs.c: Update.
517 * obsd-nat.c: Update.
518 * ppc-fbsd-nat.c: Update.
519 * ppc-linux-nat.c: Update.
521 * python/py-infthread.c: Update.
522 * ravenscar-thread.c: Update.
524 * s390-linux-nat.c: Update.
525 * sol-thread.c: Update.
526 * sol2-tdep.c: Update.
527 * spu-linux-nat.c: Update.
528 * x86-linux-nat.c: Update.
529 * xtensa-linux-nat.c: Update.
531 2018-07-03 Tom Tromey <tom@tromey.com>
533 * common/ptid.c (ptid_get_pid): Remove.
534 * common/ptid.h (ptid_get_pid): Don't declare.
535 * aarch64-linux-nat.c: Update.
536 * ada-lang.c: Update.
537 * aix-thread.c: Update.
538 * alpha-bsd-nat.c: Update.
539 * amd64-fbsd-nat.c: Update.
540 * amd64-linux-nat.c: Update.
541 * arm-linux-nat.c: Update.
542 * arm-nbsd-nat.c: Update.
544 * break-catch-syscall.c: Update.
545 * breakpoint.c: Update.
546 * bsd-uthread.c: Update.
549 * darwin-nat.c: Update.
550 * fbsd-nat.c: Update.
551 * fbsd-tdep.c: Update.
554 * hppa-nbsd-nat.c: Update.
555 * hppa-obsd-nat.c: Update.
556 * i386-fbsd-nat.c: Update.
557 * ia64-linux-nat.c: Update.
558 * inf-ptrace.c: Update.
560 * inferior.c: Update.
561 * inferior.h: Update.
564 * linux-fork.c: Update.
565 * linux-nat.c: Update.
566 * linux-tdep.c: Update.
567 * linux-thread-db.c: Update.
568 * m68k-bsd-nat.c: Update.
569 * mi/mi-interp.c: Update.
570 * mi/mi-main.c: Update.
571 * mips-linux-nat.c: Update.
572 * mips-nbsd-nat.c: Update.
573 * mips64-obsd-nat.c: Update.
574 * nat/aarch64-linux-hw-point.c: Update.
575 * nat/aarch64-linux.c: Update.
576 * nat/linux-btrace.c: Update.
577 * nat/linux-osdata.c: Update.
578 * nat/linux-procfs.c: Update.
579 * nat/x86-linux-dregs.c: Update.
580 * nto-procfs.c: Update.
581 * obsd-nat.c: Update.
582 * ppc-linux-nat.c: Update.
583 * ppc-nbsd-nat.c: Update.
584 * ppc-obsd-nat.c: Update.
585 * proc-service.c: Update.
587 * python/py-inferior.c: Update.
588 * python/py-infthread.c: Update.
589 * ravenscar-thread.c: Update.
591 * remote-sim.c: Update.
593 * rs6000-nat.c: Update.
594 * s390-linux-nat.c: Update.
595 * sh-nbsd-nat.c: Update.
596 * sol-thread.c: Update.
597 * sparc-nat.c: Update.
598 * sparc64-tdep.c: Update.
599 * spu-linux-nat.c: Update.
600 * spu-tdep.c: Update.
601 * target-debug.h: Update.
604 * tid-parse.c: Update.
605 * tracefile-tfile.c: Update.
606 * vax-bsd-nat.c: Update.
607 * windows-nat.c: Update.
608 * x86-linux-nat.c: Update.
611 2018-07-03 Tom Tromey <tom@tromey.com>
613 * common/ptid.c (pid_to_ptid): Remove.
614 * common/ptid.h (pid_to_ptid): Don't declare.
615 * aix-thread.c: Update.
616 * arm-linux-nat.c: Update.
617 * common/ptid.c: Update.
618 * common/ptid.h: Update.
621 * darwin-nat.c: Update.
622 * fbsd-nat.c: Update.
623 * fork-child.c: Update.
625 * go32-nat.c: Update.
626 * inf-ptrace.c: Update.
628 * inferior.c: Update.
630 * linux-fork.c: Update.
631 * linux-nat.c: Update.
632 * nat/aarch64-linux-hw-point.c: Update.
633 * nat/fork-inferior.c: Update.
634 * nat/x86-linux-dregs.c: Update.
635 * nto-procfs.c: Update.
636 * obsd-nat.c: Update.
638 * progspace.c: Update.
640 * rs6000-nat.c: Update.
641 * s390-linux-nat.c: Update.
642 * sol-thread.c: Update.
643 * spu-linux-nat.c: Update.
646 * tracefile-tfile.c: Update.
647 * windows-nat.c: Update.
649 2018-07-03 Tom Tromey <tom@tromey.com>
651 * common/ptid.h (ptid_build): Don't declare.
652 * common/ptid.c (ptid_build): Remove.
653 * aix-thread.c: Update.
655 * bsd-uthread.c: Update.
656 * common/agent.c: Update.
657 * common/ptid.c: Update.
658 * common/ptid.h: Update.
660 * darwin-nat.c: Update.
661 * fbsd-nat.c: Update.
663 * linux-fork.c: Update.
664 * linux-nat.c: Update.
665 * linux-thread-db.c: Update.
666 * nat/linux-osdata.c: Update.
667 * nat/linux-procfs.c: Update.
668 * nto-procfs.c: Update.
669 * obsd-nat.c: Update.
670 * proc-service.c: Update.
672 * ravenscar-thread.c: Update.
673 * remote-sim.c: Update.
675 * sol-thread.c: Update.
677 * windows-nat.c: Update.
679 2018-07-03 Tom Tromey <tom@tromey.com>
681 * infrun.c (follow_exec): Use exit_inferior_silent.
682 * inferior.c (exit_inferior_num_silent): Remove.
683 * inferior.h (exit_inferior_num_silent): Don't declare.
685 2018-07-03 Tom Tromey <tom@tromey.com>
688 * darwin-nat.c (darwin_attach_pid): Reset inferior and
689 inferior_ptid on error.
691 2018-07-02 Maciej W. Rozycki <macro@mips.com>
692 Simon Marchi <simon.marchi@polymtl.ca>
695 * disasm.h (gdb_disassembler): Add
696 `m_disassembler_options_holder'. member
697 * disasm.c (get_all_disassembler_options): New function.
698 (gdb_disassembler::gdb_disassembler): Use it.
699 (gdb_buffered_insn_length_init_dis): Likewise.
700 (gdb_buffered_insn_length): Adjust accordingly.
701 (set_disassembler_options): Handle options with arguments.
702 (show_disassembler_options_sfunc): Likewise. Add a leading new
703 line if showing options with descriptions.
704 (disassembler_options_completer): Adapt to using the
705 `disasm_options_and_args_t' structure.
706 * mips-tdep.c (mips_disassembler_options): New variable.
707 (mips_disassembler_options_o32): Likewise.
708 (mips_disassembler_options_n32): Likewise.
709 (mips_disassembler_options_n64): Likewise.
710 (gdb_print_insn_mips): Don't set `disassembler_options'.
711 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
713 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
714 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
715 `gdbarch_disassembler_options_implicit' and
716 `gdbarch_valid_disassembler_options'.
717 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
718 `disasm_options_and_args_t' structure.
719 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
721 (valid_disassembler_options): Switch from `disasm_options_t' to
722 the `disasm_options_and_args_t' structure.
723 * NEWS: Document `set disassembler-options' support for the MIPS
725 * gdbarch.h: Regenerate.
726 * gdbarch.c: Regenerate.
728 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
730 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
732 2018-06-29 Joel Brobecker <brobecker@adacore.com>
734 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
735 parameter in call to amd64_target_description.
736 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
737 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
738 (amd64fbsd_init_abi): Likewise.
739 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
740 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
741 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
742 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
744 2018-06-29 Pedro Alves <palves@redhat.com>
746 * gdb/amd64-tdep.h (amd64_create_target_description): Add
747 "segments" parameter.
748 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
749 (_initialize_amd64_tdep): Update call to
750 amd64_create_target_description.
751 (amd64_target_description): Add "segments" parameter. Adjust
752 the implementation to use it.
753 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
754 call to amd64_create_target_description.
755 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
756 * gdb/arch/amd64.h (amd64_create_target_description): Add
758 * gdb/arch/amd64.c (amd64_create_target_description): Add
759 "segments" parameter. Call create_feature_i386_64bit_segments
760 only if SEGMENTS is true.
761 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
762 call to amd64_create_target_description.
764 2018-06-29 Pedro Alves <palves@redhat.com>
766 * thread.c (thread_target_id_str): New, factored out from ...
767 (print_thread_info_1): ... here. Use it to compute the max
768 "Target Id" column width.
770 2018-06-29 Pedro Alves <palves@redhat.com>
772 * remote.c (remote_target::extra_thread_info): Delete
773 'display_buf' and 'n' locals. from the cache, regardless of
774 packet mechanims is in use. Use cache for qThreadExtra and qP
777 2018-06-29 Pedro Alves <palves@redhat.com>
779 * blockframe.c (find_pc_sect_containing_function): New function.
780 * breakpoint.c (print_breakpoint_location): Don't call
781 find_pc_sect_function.
782 * linespec.c (create_sals_line_offset): Record the location's
784 * linespec.c (convert_address_location_to_sals): Fill in sal's
785 symbol with find_pc_sect_containing_function.
786 * symtab.c (find_function_start_sal): Rename to ...
787 (find_function_start_sal_1): ... this.
788 (find_function_start_sal): Reimplement as wrapper around
789 find_function_start_sal_1, and use
790 find_pc_sect_containing_function to fill in the sal's symbol.
791 (find_function_start_sal(symbol*, bool)): Adjust.
792 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
794 (find_pc_sect_containing_function): Declare.
796 2018-06-29 Pedro Alves <palves@redhat.com>
798 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
799 true if the the location has no symbol.
801 2018-06-28 Tom Tromey <tom@tromey.com>
803 * NEWS: Mention --enable-codesign.
804 * silent-rules.mk (ECHO_SIGN): New variable.
805 * configure.ac: Add --enable-codesign.
806 * configure: Rebuild.
807 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
808 (gdb$(EXEEXT)): Optionally invoke codesign.
810 2018-06-28 Pedro Alves <palves@redhat.com>
812 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
814 (switch_to_thread_no_regs): Adjust comment.
815 * infcmd.c (stop_pc): Delete.
816 (post_create_inferior, info_program_command): Replace references
817 to stop_pc with references to thread_info->suspend.stop_pc.
818 * inferior.h (stop_pc): Delete declaration.
819 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
820 (handle_inferior_event_1, handle_signal_stop)
821 (process_event_stop_test, keep_going_stepped_thread)
822 (handle_step_into_function, handle_step_into_function_backward)
823 (print_stop_location): Replace references to stop_pc with
824 references to thread_info->suspend.stop_pc.
825 (struct infcall_suspend_state) <stop_pc>: Delete field.
826 (save_infcall_suspend_state, restore_infcall_suspend_state):
827 Remove references to inf_stat->stop_pc.
828 * linux-fork.c (fork_load_infrun_state): Likewise.
829 * record-btrace.c (record_btrace_set_replay): Likewise.
830 * record-full.c (record_full_goto_entry): Likewise.
831 * remote.c (print_one_stopped_thread): Likewise.
832 * target.c (target_resume): Extend comment.
833 * thread.c (set_executing_thread): New.
834 (set_executing): Use it.
835 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
836 Remove references to stop_pc.
838 2018-06-28 Pedro Alves <palves@redhat.com>
840 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
841 Moving fetching stop_pc until after ecs->event_thread is refreshed.
843 2018-06-28 Tom Tromey <tom@tromey.com>
845 * coffread.c (coff_symfile_finish): Update.
846 * xcoffread.c (xcoff_symfile_finish): Update.
847 * elfread.c (elf_symfile_finish): Update.
848 * symfile.h (dwarf2_free_objfile): Don't declare.
849 * dwarf2read.c (_initialize_dwarf2_read): Use
850 register_objfile_data_with_cleanup.
851 (dwarf2_free_objfile): Now static. Change signature.
853 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
855 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
856 option "-o" to add-symbol-file-load to add an offset to each
857 section's load address.
858 * symfile.c (set_objfile_default_section_offset): New function.
860 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
862 * symfile.c (add_symbol_file_command): Make sure that sections
863 with the same name are sorted in the same order.
865 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
867 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
868 require the second argument. If omitted, load sections at the
869 addresses specified in the file.
871 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
873 * symfile.c (symbol_file_command, symbol_file_add_main_1)
874 (_initialize_symfile): Add option "-o" to symbol-file to add an
875 offset to each section of the symbol file.
877 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
879 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
881 2018-06-27 Tom Tromey <tom@tromey.com>
883 * stack.c (_initialize_stack): Update "func" help text.
885 2018-06-27 Tom Tromey <tom@tromey.com>
887 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
889 (unwind_infopy_str, pyuw_create_unwind_info)
890 (unwind_infopy_add_saved_register, pyuw_sniffer)
891 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
893 (struct saved_reg): Add constructor.
894 <value>: Now a gdbpy_ref<>.
896 2018-06-27 Tom Tromey <tom@tromey.com>
898 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
900 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
902 * gdb-gdb.py.in: Format using autopep8.
904 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
906 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
907 (type_lookup_function): Recognize CORE_ADDR values.
909 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
911 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
914 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
916 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
919 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
921 * gdb-gdb.py: Move to...
922 * gdb-gdb.py.in: ... here.
923 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
924 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
926 (distclean): Remove gdb-gdb.py when cleaning.
927 (gdb-gdb.py, gdb-gdb.gdb): New rules.
928 * configure: Re-generate.
930 2018-06-27 Pedro Alves <palves@redhat.com>
932 * proc-service.c (get_ps_regcache): New.
933 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
934 (ps_lsetfpregs): Use it.
936 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
939 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
940 (dwarf_decode_lines_1): Adjust.
942 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
944 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
946 <info_proc>: Likewise.
948 2018-06-26 Joel Brobecker <brobecker@adacore.com>
950 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
951 to windows_fetch_one_register, and only handle the case of
952 fetching one register. Move the code that reloads the context
953 and iterates over all registers if R is negative to...
954 (windows_nat_target::fetch_registers): ... here.
955 (do_windows_store_inferior_registers): Rename to
956 windows_store_one_register, and only handle the case of storing
957 one register. Move the code that handles the case where r is
959 (windows_nat_target::store_registers) ... here.
961 2018-06-26 Tom Tromey <tom@tromey.com>
964 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
965 * rust-lang.c (rust_print_struct_def): Add podata parameter.
967 (rust_internal_print_type): Add podata parameter.
968 (rust_print_type): Update.
970 2018-06-26 Tom Tromey <tom@tromey.com>
972 * typeprint.h (struct print_offset_data) <update, finish,
973 maybe_print_hole>: New methods.
974 <indentation>: New constant.
975 * typeprint.c (print_offset_data::indentation): Define.
976 (print_offset_data::maybe_print_hole, print_offset_data::update)
977 (print_offset_data::finish): Move from c-typeprint.c and rename.
978 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
979 (print_spaces_filtered_with_print_options): Update.
980 (c_print_type_union_field_offset, maybe_print_hole)
981 (c_print_type_struct_field_offset): Move to typeprint.c and
983 (c_type_print_base_struct_union): Update.
985 2018-06-25 Pedro Alves <palves@redhat.com>
987 * gdbthread.h (thread_info_ref, delete_thread)
988 (delete_thread_silent, first_thread_of_inferior)
989 (any_thread_of_inferior, switch_to_thread)
990 (enable_thread_stack_temporaries)
991 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
992 (get_last_thread_stack_temporary)
993 (value_in_thread_stack_temporaries, can_access_registers_thread):
994 Spell out "struct thread_info" instead of just "thread_info".
995 * inferior.h (notice_new_inferior): Likewise.
997 2018-06-25 Pedro Alves <palves@redhat.com>
999 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
1000 pass thread_info pointer to delete_thread.
1001 (windows_nat_target::detach): Pass inferior pointer to
1003 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
1005 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
1006 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
1007 and pass a thread_info pointer to delete_thread.
1008 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
1009 pass thread_info pointer to delete_thread.
1010 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
1011 delete_thread_silent call.
1012 * procfs.c (procfs_target::detach): Pass inferior pointer to
1014 (procfs_target::wait): Pass thread_info pointer to delete_thread.
1015 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
1016 delete_thread_silent call.
1017 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
1018 pass thread_info pointer to delete_thread.
1019 (windows_nat_target::detach): Pass inferior pointer to
1022 2018-06-22 Alan Hayward <alan.hayward@arm.com>
1024 * regcache.c (readable_regcache::read_part): Fix asserts.
1025 (reg_buffer::raw_collect_part): New function.
1026 (regcache::write_part): Fix asserts.
1027 (reg_buffer::raw_supply_part): New function.
1028 (regcache::transfer_regset_register): New helper function.
1029 (regcache::transfer_regset): Call new functions.
1030 (regcache_supply_regset): Use gdb_byte*.
1031 (regcache::supply_regset): Likewise.
1032 (regcache_collect_regset): Likewise.
1033 (regcache::collect_regset): Likewise.
1034 * regcache.h (reg_buffer::raw_collect_part): New declaration.
1035 (reg_buffer::raw_supply_part): Likewise.
1036 (regcache::transfer_regset_register): Likewise.
1037 (regcache::transfer_regset): Use gdb_byte*.
1039 2018-06-22 Alan Hayward <alan.hayward@arm.com>
1041 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
1043 2018-06-21 Pedro Alves <palves@redhat.com>
1045 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
1046 instead of a ptid_t. All callers adjusted.
1047 * ada-tasks.c (ada_get_task_number): Likewise. All callers
1049 (print_ada_task_info, display_current_task_id, task_command_1):
1051 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
1053 (breakpoint_kind): Adjust.
1054 (remove_breakpoints_pid): Rename to ...
1055 (remove_breakpoints_inf): ... this. Adjust to take an inferior
1056 pointer. All callers adjusted.
1057 (bpstat_clear_actions): Use inferior_thread.
1058 (get_bpstat_thread): New.
1059 (bpstat_do_actions): Use it.
1060 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
1061 to take a thread_info pointer. All callers adjusted.
1062 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
1063 (breakpoint_re_set_thread): Use inferior_thread.
1064 * breakpoint.h (struct inferior): Forward declare.
1065 (bpstat_stop_status): Update.
1066 (remove_breakpoints_pid): Delete.
1067 (remove_breakpoints_inf): New.
1068 * bsd-uthread.c (bsd_uthread_target::wait)
1069 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
1070 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
1071 (maint_btrace_packet_history_cmd)
1072 (maint_btrace_clear_packet_history_cmd): Adjust.
1073 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
1075 * cli/cli-interp.c: Include "inferior.h".
1076 * common/refcounted-object.h (struct
1077 refcounted_object_ref_policy): New.
1078 * compile/compile-object-load.c: Include gdbthread.h.
1079 (store_regs): Use inferior_thread.
1080 * corelow.c (core_target::close): Use current_inferior.
1081 (core_target_open): Adjust to use first_thread_of_inferior and use
1082 the current inferior.
1083 * ctf.c (ctf_target::close): Adjust to use current_inferior.
1084 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
1085 <thread>: ... this new field. All references adjusted.
1086 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
1087 Take a thread_info pointer instead of a ptid_t.
1088 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
1089 (dummy_frame_discard, register_dummy_frame_dtor): Take a
1090 thread_info pointer instead of a ptid_t.
1091 * elfread.c: Include "inferior.h".
1092 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
1093 Use inferior_thread.
1094 * eval.c (evaluate_subexp): Likewise.
1095 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
1097 * gdb_proc_service.h (struct thread_info): Forward declare.
1098 (struct ps_prochandle) <ptid>: Delete, replaced by ...
1099 <thread>: ... this new field. All references adjusted.
1100 * gdbarch.h, gdbarch.c: Regenerate.
1101 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
1102 'thread' parameter. All implementations and callers adjusted.
1103 * gdbthread.h (thread_info) <set_running>: New method.
1104 (delete_thread, delete_thread_silent): Take a thread_info pointer
1106 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
1107 (first_thread_of_process): Delete, replaced by ...
1108 (first_thread_of_inferior): ... this new function. All callers
1110 (any_live_thread_of_process): Delete, replaced by ...
1111 (any_live_thread_of_inferior): ... this new function. All callers
1113 (switch_to_thread, switch_to_no_thread): Declare.
1114 (is_executing): Delete.
1115 (enable_thread_stack_temporaries): Update comment.
1116 <enable_thread_stack_temporaries>: Take a thread_info pointer
1117 instead of a ptid_t. Incref the thread.
1118 <~enable_thread_stack_temporaries>: Decref the thread.
1121 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1122 (get_last_thread_stack_temporary)
1123 (value_in_thread_stack_temporaries, can_access_registers_thread):
1124 Take a thread_info pointer instead of a ptid_t. All callers
1126 * infcall.c (get_call_return_value): Use inferior_thread.
1127 (run_inferior_call): Work with thread pointers instead of ptid_t.
1128 (call_function_by_hand_dummy): Work with thread pointers instead
1129 of ptid_t. Use thread_info_ref.
1130 * infcmd.c (proceed_thread_callback): Access thread's state
1132 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
1133 access thread's state directly.
1134 (continue_command): Use inferior_thread.
1135 (info_program_command): Use find_thread_ptid and access thread
1137 (proceed_after_attach_callback): Use thread state directly.
1138 (notice_new_inferior): Take a thread_info pointer instead of a
1139 ptid_t. All callers adjusted.
1140 (exit_inferior): Take an inferior pointer instead of a pid. All
1142 (exit_inferior_silent): New.
1143 (detach_inferior): Delete.
1144 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
1145 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
1146 (detach_inferior_command, kill_inferior_command): Use
1147 find_inferior_id instead of valid_gdb_inferior_id and
1148 gdb_inferior_id_to_pid.
1149 (inferior_command): Use inferior and thread pointers.
1150 * inferior.h (struct thread_info): Forward declare.
1151 (notice_new_inferior): Take a thread_info pointer instead of a
1152 ptid_t. All callers adjusted.
1153 (detach_inferior): Delete declaration.
1154 (exit_inferior, exit_inferior_silent): Take an inferior pointer
1155 instead of a pid. All callers adjusted.
1156 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
1157 (valid_gdb_inferior_id): Delete.
1158 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
1159 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
1160 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
1162 <inf>: ... this new field.
1163 <step_ptid>: Delete, replaced by ...
1164 <step_thread>: ... this new field.
1165 (get_displaced_stepping_state): Take an inferior pointer instead
1166 of a pid. All callers adjusted.
1167 (displaced_step_in_progress_any_inferior): Adjust.
1168 (displaced_step_in_progress_thread): Take a thread pointer instead
1169 of a ptid_t. All callers adjusted.
1170 (displaced_step_in_progress, add_displaced_stepping_state): Take
1171 an inferior pointer instead of a pid. All callers adjusted.
1172 (get_displaced_step_closure_by_addr): Adjust.
1173 (remove_displaced_stepping_state): Take an inferior pointer
1174 instead of a pid. All callers adjusted.
1175 (displaced_step_prepare_throw, displaced_step_prepare)
1176 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
1177 All callers adjusted.
1178 (start_step_over): Adjust.
1179 (infrun_thread_ptid_changed): Remove bit updating ptids in the
1180 displaced step queue.
1181 (do_target_resume): Adjust.
1182 (fetch_inferior_event): Use inferior_thread.
1183 (context_switch, get_inferior_stop_soon): Take an
1184 execution_control_state pointer instead of a ptid_t. All callers
1186 (switch_to_thread_cleanup): Delete.
1187 (stop_all_threads): Use scoped_restore_current_thread.
1188 * inline-frame.c: Include "gdbthread.h".
1189 (inline_state) <inline_state>: Take a thread pointer instead of a
1190 ptid_t. All callers adjusted.
1191 <ptid>: Delete, replaced by ...
1192 <thread>: ... this new field.
1193 (find_inline_frame_state): Take a thread pointer instead of a
1194 ptid_t. All callers adjusted.
1195 (skip_inline_frames, step_into_inline_frame)
1196 (inline_skipped_frames, inline_skipped_symbol): Take a thread
1197 pointer instead of a ptid_t. All callers adjusted.
1198 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
1199 (inline_skipped_frames, inline_skipped_symbol): Likewise.
1200 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
1202 * linux-nat.c (get_detach_signal): Likewise.
1203 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
1204 (thread_db_notice_clone): Adjust.
1205 (thread_db_find_new_threads_silently)
1206 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
1207 a thread pointer instead of a ptid_t. All callers adjusted.
1208 * mi/mi-cmd-var.c: Include "inferior.h".
1209 (mi_cmd_var_update_iter): Update to use thread pointers.
1210 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
1212 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
1214 (mi_output_running): ... this new function.
1215 (mi_on_resume_1): Adjust to use it.
1216 (mi_user_selected_context_changed): Adjust to use inferior_thread.
1217 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
1219 (interrupt_thread_callback): : Adjust to use thread and inferior
1221 * proc-service.c: Include "gdbthread.h".
1222 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
1223 * progspace-and-thread.c: Include "inferior.h".
1224 * progspace.c: Include "inferior.h".
1225 * python/py-exitedevent.c (create_exited_event_object): Adjust to
1226 hold a reference to an inferior_object.
1227 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
1229 * python/py-inferior.c (struct inferior_object): Give the type a
1230 tag name instead of a typedef.
1231 (python_on_normal_stop): No need to check if the current thread is
1233 (inferior_to_inferior_object): Change return type to
1234 inferior_object. All callers adjusted.
1235 (find_thread_object): Delete, bits factored out to ...
1236 (thread_to_thread_object): ... this new function.
1237 * python/py-infthread.c (create_thread_object): Use
1238 inferior_to_inferior_object.
1239 (thpy_is_stopped): Use thread pointer directly.
1240 (gdbpy_selected_thread): Use inferior_thread.
1241 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
1242 field, replaced with ...
1243 <thread>: ... this new field. All users adjusted.
1244 (btpy_insn_or_gap_new): Drop const.
1245 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
1247 * python/py-record.c: Include "gdbthread.h".
1248 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
1249 a ptid_t. All callers adjusted.
1250 (gdbpy_current_recording): Use inferior_thread.
1251 * python/py-record.h (recpy_record_object) <ptid>: Delete
1252 field, replaced with ...
1253 <thread>: ... this new field. All users adjusted.
1254 (recpy_element_object) <ptid>: Delete
1255 field, replaced with ...
1256 <thread>: ... this new field. All users adjusted.
1257 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
1258 a ptid_t. All callers adjusted.
1259 * python/py-threadevent.c: Include "gdbthread.h".
1260 (get_event_thread): Use thread_to_thread_object.
1261 * python/python-internal.h (struct inferior_object): Forward
1263 (find_thread_object, find_inferior_object): Delete declarations.
1264 (thread_to_thread_object, inferior_to_inferior_object): New
1266 * record-btrace.c: Include "inferior.h".
1267 (require_btrace_thread): Use inferior_thread.
1268 (record_btrace_frame_sniffer)
1269 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
1270 (get_thread_current_frame): Use scoped_restore_current_thread and
1272 (get_thread_current_frame): Use thread pointer directly.
1273 (record_btrace_replay_at_breakpoint): Use thread's inferior
1275 * record-full.c: Include "inferior.h".
1276 * regcache.c: Include "gdbthread.h".
1277 (get_thread_arch_regcache): Use the inferior's address space
1279 (get_thread_regcache, registers_changed_thread): New.
1280 * regcache.h (get_thread_regcache(thread_info *thread)): New
1282 (registers_changed_thread): New.
1283 (remote_target) <remote_detach_1>: Swap order of parameters.
1284 (remote_add_thread): <remote_add_thread>: Return the new thread.
1285 (get_remote_thread_info(ptid_t)): New overload.
1286 (remote_target::remote_notice_new_inferior): Use thread pointers
1288 (remote_target::process_initial_stop_replies): Use
1289 thread_info::set_running.
1290 (remote_target::remote_detach_1, remote_target::detach)
1291 (extended_remote_target::detach): Adjust.
1292 * stack.c (frame_show_address): Use inferior_thread.
1293 * target-debug.h (target_debug_print_thread_info_pp): New.
1294 * target-delegates.c: Regenerate.
1295 * target.c (default_thread_address_space): Delete.
1296 (memory_xfer_partial_1): Use current_inferior.
1297 (target_detach): Use current_inferior.
1298 (target_thread_address_space): Delete.
1299 (generic_mourn_inferior): Use current_inferior.
1300 * target.h (struct target_ops) <thread_address_space>: Delete.
1301 (target_thread_address_space): Delete.
1302 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
1304 (delete_thread_1, delete_thread, delete_thread_silent): Take a
1305 thread pointer instead of a ptid_t. Adjust all callers.
1306 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
1307 (first_thread_of_process): Delete, replaced by ...
1308 (first_thread_of_inferior): ... this new function. All callers
1310 (any_thread_of_process): Rename to ...
1311 (any_thread_of_inferior): ... this, and take an inferior pointer.
1312 (any_live_thread_of_process): Rename to ...
1313 (any_live_thread_of_inferior): ... this, and take an inferior
1315 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1316 (value_in_thread_stack_temporaries)
1317 (get_last_thread_stack_temporary): Take a thread pointer instead
1318 of a ptid_t. Adjust all callers.
1319 (thread_info::set_running): New.
1320 (validate_registers_access): Use inferior_thread.
1321 (can_access_registers_ptid): Rename to ...
1322 (can_access_registers_thread): ... this, and take a thread
1324 (print_thread_info_1): Adjust to compare thread pointers instead
1326 (switch_to_no_thread, switch_to_thread): Make extern.
1327 (scoped_restore_current_thread::~scoped_restore_current_thread):
1328 Use m_thread pointer directly.
1329 (scoped_restore_current_thread::scoped_restore_current_thread):
1330 Use inferior_thread.
1331 (thread_command): Use thread pointer directly.
1332 (thread_num_make_value_helper): Use inferior_thread.
1333 * top.c (execute_command): Use inferior_thread.
1334 * tui/tui-interp.c: Include "inferior.h".
1335 * varobj.c (varobj_create): Use inferior_thread.
1336 (value_of_root_1): Use find_thread_global_id instead of
1337 global_thread_id_to_ptid.
1339 2018-06-21 Alan Hayward <alan.hayward@arm.com>
1341 * regcache.c (readable_regcache::read_part): Avoid memcpy when
1343 (regcache::write_part): Likewise.
1344 (readable_regcache::cooked_read_part): Update comment.
1345 (readable_regcache::cooked_write_part): Likewise.
1346 * regcache.h: (readable_regcache::read_part): Likewise.
1347 (regcache::write_part): Likewise.
1349 2018-06-21 Richard Bunt <richard.bunt@arm.com>
1350 Dirk Schubert <dirk.schubert@arm.com>
1352 * aarch64-linux-nat.c (post_attach): New.
1353 (aarch64_linux_nat_target::post_attach): Override post_attach to
1354 record the number of hardware debug registers.
1356 2018-06-20 Tom Tromey <tom@tromey.com>
1358 * python/py-param.c (add_setshow_generic): Make parameters const.
1359 (parmpy_init): Update.
1361 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
1363 * regcache.h (regcache_cooked_read_ftype): Rename to...
1364 (register_read_ftype): ...this, change type to function_view.
1365 (class reg_buffer) <save>: Remove src parameter.
1366 (readonly_detached_regcache) <readonly_detached_regcache>: Make
1367 parameter non-const in first overload. Remove src parameter in
1369 * regcache.c (do_cooked_read): Remove.
1370 (readonly_detached_regcache::readonly_detached_regcache): Make
1371 parameter non-const, adjust call to other constructor.
1372 (reg_buffer::save): Remove src parameter.
1373 * frame.c (do_frame_register_read): Remove.
1374 (frame_save_as_regcache): Use lambda function.
1375 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
1376 parameter to ppu2spu_data *.
1377 (ppu2spu_sniffer): Use lambda function.
1379 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
1381 * record-full.c (record_full_target::insert_breakpoint): Remove
1382 "struct" keyword, add const.
1384 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1386 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
1387 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
1388 * configure.ac: Remove AC_PREREQ, add missing quoting.
1389 * gnulib/configure.ac: Modernize usage of
1390 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
1391 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
1392 (AUTOMAKE_VERSION): Bump to 1.15.1.
1393 * configure: Re-generate.
1394 * config.in: Re-generate.
1395 * aclocal.m4: Re-generate.
1396 * gnulib/aclocal.m4: Re-generate.
1397 * gnulib/config.in: Re-generate.
1398 * gnulib/configure: Re-generate.
1399 * gnulib/import/Makefile.in: Re-generate.
1401 2018-06-19 Pedro Alves <palves@redhat.com>
1403 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
1404 (lookup_minimal_symbol_by_pc_section): ... here with
1405 gdb_assert_not_reached added.
1407 2018-06-19 Pedro Alves <palves@redhat.com>
1409 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
1410 parameter with a block parameter. Compare location's block symbol
1411 with the frame's block instead of addresses.
1412 (skip_inline_frames): Pass the current block instead of the
1413 frame's address. Break out as soon as we determine the frame
1414 should not be skipped.
1416 2018-06-18 Tom Tromey <tom@tromey.com>
1418 * solib-aix.c (solib_aix_get_section_offsets): Return
1420 (solib_aix_solib_create_inferior_hook): Update.
1422 2018-06-18 Tom Tromey <tom@tromey.com>
1424 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
1426 2018-06-18 Tom Tromey <tom@tromey.com>
1428 * solib-frv.c (frv_relocate_main_executable): Use
1430 * solib-dsbt.c (dsbt_relocate_main_executable): Use
1433 2018-06-18 Tom Tromey <tom@tromey.com>
1435 * objfiles.h (inhibit_section_map_updates): Update.
1436 (resume_section_map_updates, resume_section_map_updates_cleanup):
1438 * solib-svr4.c (svr4_handle_solib_event): Update.
1439 * objfiles.c (inhibit_section_map_updates): Return
1440 scoped_restore_tmpl<int>.
1441 (resume_section_map_updates, resume_section_map_updates_cleanup):
1444 2018-06-18 Tom Tromey <tom@tromey.com>
1446 * valprint.h (read_string): Update.
1447 * valprint.c (read_string): Change type of "buffer".
1448 (val_print_string): Update.
1449 * python/py-value.c (valpy_string): Update.
1450 * language.h (struct language_defn) <la_get_string>: Change
1452 (default_get_string, c_get_string): Update.
1453 * language.c (default_get_string): Change type of "buffer".
1454 * guile/scm-value.c (gdbscm_value_to_string): Update.
1455 * c-lang.c (c_get_string): Change type of "buffer".
1457 2018-06-18 Tom Tromey <tom@tromey.com>
1459 * ser-mingw.c (struct pipe_state_destroyer): New.
1460 (pipe_state_up): New typedef.
1461 (cleanup_pipe_state): Remove.
1462 (pipe_windows_open): Use pipe_state_up. Don't release argv.
1464 2018-06-18 Tom Tromey <tom@tromey.com>
1466 * rust-lang.h (rust_yyerror): Don't declare.
1467 * rust-lang.c (rust_language_defn): Update.
1468 * rust-exp.y (yyerror): Now static.
1469 * parse.c (parse_exp_in_context_1): Update.
1470 * p-lang.h (p_yyerror): Don't declare.
1471 * p-lang.c (p_language_defn): Update.
1472 * p-exp.y (yyerror): Now static.
1473 * opencl-lang.c (opencl_language_defn): Update.
1474 * objc-lang.c (objc_language_defn): Update.
1475 * m2-lang.h (m2_yyerror): Don't declare.
1476 * m2-lang.c (m2_language_defn): Update.
1477 * m2-exp.y (yyerror): Now static.
1478 * language.h (struct language_defn) <la_error>: Remove.
1479 * language.c (unk_lang_error): Remove.
1480 (unknown_language_defn, auto_language_defn): Remove.
1481 * go-lang.h (go_yyerror): Don't declare.
1482 * go-lang.c (go_language_defn): Update.
1483 * go-exp.y (yyerror): Now static.
1484 * f-lang.h (f_yyerror): Don't declare.
1485 * f-lang.c (f_language_defn): Update.
1486 * f-exp.y (yyerror): Now static.
1487 * d-lang.h (d_yyerror): Don't declare.
1488 * d-lang.c (d_language_defn): Update.
1489 * d-exp.y (yyerror): Now static.
1490 * c-lang.h (c_yyerror): Don't declare.
1491 * c-lang.c (c_language_defn, cplus_language_defn)
1492 (asm_language_defn, minimal_language_defn): Update.
1493 * c-exp.y (yyerror): Now static.
1494 * ada-lang.h (ada_yyerror): Don't declare.
1495 * ada-lang.c (ada_language_defn): Update.
1496 * ada-exp.y (yyerror): Now static.
1498 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1500 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
1501 (store_sveregs_to_thread): Likewise.
1502 (aarch64_linux_fetch_inferior_registers): Check for SVE.
1503 (aarch64_linux_store_inferior_registers): Likewise.
1504 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
1506 (aarch64_sve_regs_copy_to_regcache): Likewise.
1507 (aarch64_sve_regs_copy_from_regcache): Likewise.
1508 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
1510 (aarch64_sve_regs_copy_to_regcache): Likewise.
1511 (aarch64_sve_regs_copy_from_regcache): Likewise.
1512 (sve_context): Structure from Linux headers.
1513 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
1514 (SVE_SIG_ZREG_SIZE): Likewise.
1515 (SVE_SIG_PREG_SIZE): Likewise.
1516 (SVE_SIG_FFR_SIZE): Likewise.
1517 (SVE_SIG_REGS_OFFSET): Likewise.
1518 (SVE_SIG_ZREGS_OFFSET): Likewise.
1519 (SVE_SIG_ZREG_OFFSET): Likewise.
1520 (SVE_SIG_ZREGS_SIZE): Likewise.
1521 (SVE_SIG_PREGS_OFFSET): Likewise.
1522 (SVE_SIG_PREG_OFFSET): Likewise.
1523 (SVE_SIG_PREGS_SIZE): Likewise.
1524 (SVE_SIG_FFR_OFFSET): Likewise.
1525 (SVE_SIG_REGS_SIZE): Likewise.
1526 (SVE_SIG_CONTEXT_SIZE): Likewise.
1527 (SVE_PT_REGS_MASK): Likewise.
1528 (SVE_PT_REGS_FPSIMD): Likewise.
1529 (SVE_PT_REGS_SVE): Likewise.
1530 (SVE_PT_VL_INHERIT): Likewise.
1531 (SVE_PT_VL_ONEXEC): Likewise.
1532 (SVE_PT_REGS_OFFSET): Likewise.
1533 (SVE_PT_FPSIMD_OFFSET): Likewise.
1534 (SVE_PT_FPSIMD_SIZE): Likewise.
1535 (SVE_PT_SVE_ZREG_SIZE): Likewise.
1536 (SVE_PT_SVE_PREG_SIZE): Likewise.
1537 (SVE_PT_SVE_FFR_SIZE): Likewise.
1538 (SVE_PT_SVE_FPSR_SIZE): Likewise.
1539 (SVE_PT_SVE_FPCR_SIZE): Likewise.
1540 (__SVE_SIG_TO_PT): Likewise.
1541 (SVE_PT_SVE_OFFSET): Likewise.
1542 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
1543 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
1544 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
1545 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
1546 (SVE_PT_SVE_PREG_OFFSET): Likewise.
1547 (SVE_PT_SVE_PREGS_SIZE): Likewise.
1548 (SVE_PT_SVE_FFR_OFFSET): Likewise.
1549 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
1550 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
1551 (SVE_PT_SVE_SIZE): Likewise.
1552 (SVE_PT_SIZE): Likewise.
1553 (HAS_SVE_STATE): New define.
1555 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1557 * nat/aarch64-sve-linux-sigcontext.h: New file.
1558 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
1560 (SVE_VQ_MIN): Likewise.
1561 (SVE_VQ_MAX): Likewise.
1562 (SVE_VL_MIN): Likewise.
1563 (SVE_VL_MAX): Likewise.
1564 (SVE_NUM_ZREGS): Likewise.
1565 (SVE_NUM_PREGS): Likewise.
1566 (sve_vl_valid): Likewise.
1567 (struct user_sve_header): Likewise.
1569 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
1570 Richard Bunt <Richard.Bunt@arm.com>
1572 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
1573 was requested by GDB.
1575 2018-06-15 Tom de Vries <tdevries@suse.de>
1577 * MAINTAINERS (Write After Approval): Add Tom de Vries.
1579 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
1581 * gnulib/update-gnulib.sh: Print expected versions of
1584 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
1586 * arch-utils.c (default_type_align): Use type_length_units.
1587 * gdbtypes.c (type_align): Use type_length_units.
1589 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1591 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
1592 of 'define' command.
1594 2018-06-14 Tom de Vries <tdevries@suse.de>
1597 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
1598 get_no_prettyformat_print_options.
1600 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
1602 * sparc-nat.h: Include target.h.
1603 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
1604 <fetch_registers>: Remove this argument in function call.
1605 <store_registers>: Remove this argument in function call, remove
1607 <low_forget_process>: Call sparc64_forget_process instead of
1608 sparc_forget_process.
1610 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1612 * procfs.c (_initialize_procfs): Use add_inf_child_target.
1613 (procfs_target::make_corefile_notes): Adjust to new
1614 target_read_alloc return type.
1616 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1617 Stephen Roberts <stephen.roberts@arm.com>
1620 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
1621 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
1622 Move should_notify_stop local into more inner scope.
1624 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1625 Stephen Roberts <stephen.roberts@arm.com>
1628 * infrun.c (resume_1): Add call to mark_async_event_handler.
1630 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1632 * infrun.c (do_target_wait): Change old version of $pc printed.
1634 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
1636 * dwarf2read.c (read_index_from_section): Rename to...
1637 (read_gdb_index_from_section): ... this, update all callers.
1638 (dwarf2_read_index): Rename to...
1639 (dwarf2_read_gdb_index): ... this, update all callers.
1641 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
1643 * gdb/hppa-linux-nat.c
1644 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
1645 hppa_linux_nat_target::fetch_registers.
1647 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1649 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
1650 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
1651 (AARCH64_DWARF_SVE_FFR): Likewise.
1652 (AARCH64_DWARF_SVE_P0): Likewise.
1653 (AARCH64_DWARF_SVE_Z0): Likewise.
1655 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1657 * common/common-regcache.h (raw_compare): New function.
1658 * regcache.c (regcache::raw_compare): Likewise.
1659 * regcache.h (regcache::raw_compare): New declaration.
1661 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1663 * common/common-regcache.h (reg_buffer_common): New structure.
1664 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
1665 (reg_buffer::raw_supply): Likewise.
1666 (reg_buffer::raw_supply_integer): Likewise.
1667 (reg_buffer::raw_supply_zeroed): Likewise.
1668 (reg_buffer::raw_collect): Likewise.
1669 (reg_buffer::raw_collect_integer): Likewise.
1670 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
1671 (reg_buffer::raw_supply): Likewise.
1672 (reg_buffer::raw_supply_integer): Likewise.
1673 (reg_buffer::raw_supply_zeroed): Likewise.
1674 (reg_buffer::raw_collect): Likewise.
1675 (reg_buffer::raw_collect_integer): Likewise.
1677 2018-06-10 Tom Tromey <tom@tromey.com>
1679 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
1680 (class remote_state) <stop_reply_queue>: Now std::vector.
1681 (remote_state::~remote_state)
1682 (remote_target::stop_reply_queue_length): Update.
1683 (struct queue_iter_param, remove_child_of_pending_fork)
1684 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
1685 (check_pending_event_prevents_wildcard_vcont_callback)
1686 (remove_stop_reply_for_inferior)
1687 (remove_stop_reply_of_remote_state)
1688 (remote_notif_remove_once_on_match)
1689 (stop_reply_match_ptid_and_ws)
1690 (remote_kill_child_of_pending_fork): Remove.
1691 (remote_target::remove_new_fork_children)
1692 (remote_target::check_pending_events_prevent_wildcard_vcont)
1693 (remote_target::discard_pending_stop_replies)
1694 (remote_target::discard_pending_stop_replies_in_queue)
1695 (remote_target::remote_notif_remove_queued_reply)
1696 (remote_target::queued_stop_reply)
1697 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
1698 (remote_target::wait, remote_target::kill_new_fork_children)
1699 (remote_target::async): Update.
1701 2018-06-10 Tom Tromey <tom@tromey.com>
1703 * record-full.c (record_full_arch_list_cleanups): Remove.
1704 (record_full_message): Use try/catch.
1705 (record_full_wait_cleanups): Remove.
1706 (record_full_wait_1): Use try/catch.
1707 (record_full_restore): Likewise.
1709 2018-06-10 Tom Tromey <tom@tromey.com>
1711 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
1712 declare VEC. Add constructor.
1713 <in_target_beneath>: Now bool.
1714 (record_full_breakpoints): Now a std::vector, static.
1715 (record_full_sync_record_breakpoints)
1716 (record_full_init_record_breakpoints)
1717 (record_full_target::insert_breakpoint)
1718 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
1720 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
1722 * dwarf2read.c (process_cu_includes): Remove struct keyword.
1723 * serial.c (serial_interface_lookup): Remove struct keyword.
1725 2018-06-10 Tom Tromey <tom@tromey.com>
1727 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
1729 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
1731 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
1733 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
1734 "beneath" as a method.
1735 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
1736 Use "beneath" as a method.
1738 2018-06-10 Tom Tromey <tom@tromey.com>
1740 * tracefile.c (struct trace_file_writer_deleter): New.
1741 <operator()>: Rename from trace_file_writer_xfree.
1742 (trace_file_writer_up): New typedef.
1743 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
1745 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
1747 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
1748 <m_registers, m_register_status>: Change type to
1750 * regcache.c (reg_buffer::reg_buffer): Use new instead of
1753 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
1755 * common/common-regcache.h (enum register_status): Add
1756 underlying type "signed char".
1757 * regcache.h (reg_buffer) <m_register_status>: Change type to
1759 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
1760 register_status instead of signed char.
1761 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
1762 (reg_buffer::get_register_status): Remove cast.
1763 (readable_regcache::raw_read): Remove cast.
1764 (readable_regcache::cooked_read): Remove cast.
1766 2018-06-09 Tom Tromey <tom@tromey.com>
1768 * source.c (reverse_search_command, forward_search_command): Use
1771 2018-06-09 Tom Tromey <tom@tromey.com>
1773 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
1774 (serial_ops_list): Now static, std::vector.
1775 (serial_interface_lookup, serial_add_interface): Update.
1777 2018-06-09 Tom Tromey <tom@tromey.com>
1779 * dwarf2read.c (process_cu_includes): Update.
1780 (process_full_comp_unit): Update.
1781 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
1784 2018-06-08 Paul Koning <paul_koning@dell.com>
1788 * python/python.c (do_start_initialization):
1789 Avoid call to internal Python API.
1790 (init__gdb_module): New function.
1792 2018-06-08 Gary Benson <gbenson@redhat.com>
1794 * linux-thread-db.c (valprint.h): New include.
1795 (struct check_thread_db_info): New structure.
1796 (check_thread_db_on_load, tdb_testinfo): New static globals.
1797 (check_thread_db, check_thread_db_callback): New functions.
1798 (try_thread_db_load_1): Run integrity checks if requested.
1799 (maintenance_check_libthread_db): New function.
1800 (_initialize_thread_db): Register "maint check libthread-db"
1801 and "maint set/show check-libthread-db".
1802 * NEWS: Mention the above new commands.
1804 2018-06-08 Tom Tromey <tom@tromey.com>
1806 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
1809 2018-06-08 Tom Tromey <tom@tromey.com>
1811 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
1813 2018-06-08 Tom Tromey <tom@tromey.com>
1815 * common/btrace-common.h (struct btrace_data): Add constructor,
1816 destructor, move assignment operator.
1817 <empty, clear, fini>: New methods.
1818 <format>: Initialize.
1819 (btrace_data_init, btrace_data_fini, btrace_data_clear)
1820 (btrace_data_empty): Don't declare.
1821 * common/btrace-common.c (btrace_data_init): Remove.
1822 (btrace_data::fini): Rename from btrace_data_fini.
1823 (btrace_data::empty): Rename from btrace_data_empty.
1824 (btrace_data::clear): Rename from btrace_data_clear. Return
1826 * btrace.h (make_cleanup_btrace_data): Don't declare.
1827 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
1828 (parse_xml_btrace): Update.
1829 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
1830 (maint_btrace_clear_packet_history_cmd): Update.
1832 2018-06-07 Pedro Alves <palves@redhat.com>
1834 * target.h (target_ops) <beneath>: Now a method. All references
1836 (class target_stack): New.
1837 * target.c (g_target_stack): New.
1838 (g_current_top_target): Delete.
1839 (current_top_target): Get the top target out of g_target_stack.
1840 (target_stack::push, target_stack::unpush): New.
1841 (push_target, unpush_target): Reimplement.
1842 (target_is_pushed): Reimplement in terms of g_target_stack.
1843 (target_ops::beneath, target_stack::find_beneath): New.
1845 2018-06-07 Pedro Alves <palves@redhat.com>
1847 * target.h (find_target_beneath): Delete declaration.
1848 * target.c (find_target_beneath): Delete definition.
1849 * aix-thread.c: All callers of find_target_beneath adjusted to
1850 call target_ops::beneath instead.
1851 * bsd-uthread.c: Likewise.
1852 * linux-thread-db.c: Likewise.
1853 * ravenscar-thread.c: Likewise.
1854 * sol-thread.c: Likewise.
1855 * spu-multiarch.c: Likewise.
1857 2018-06-07 Pedro Alves <palves@redhat.com>
1859 * target.h (target_ops) <beneath>: Now a method. All references
1861 (target_ops) <m_beneath>: New.
1862 * target.c (target_ops::beneath): New.
1863 * corelow.c: Adjust all references to target_ops::beneath.
1864 * linux-thread-db.c: Likewise.
1865 * make-target-delegates: Likewise.
1866 * record-btrace.c: Likewise.
1867 * record-full.c: Likewise.
1868 * remote.c: Likewise.
1869 * target.c: Likewise.
1870 * target-delegates.c: Regenerate.
1872 2018-06-07 Pedro Alves <palves@redhat.com>
1874 * target.h (target_stack): Delete.
1875 (current_top_target): Declare function.
1876 * target.c (target_stack): Delete.
1877 (g_current_top_target): New.
1878 (current_top_target): New function.
1879 * auxv.c: Use current_top_target instead of target_stack
1881 * avr-tdep.c: Likewise.
1882 * breakpoint.c: Likewise.
1883 * corefile.c: Likewise.
1884 * elfread.c: Likewise.
1886 * exceptions.c: Likewise.
1887 * frame.c: Likewise.
1888 * gdbarch-selftests.c: Likewise.
1889 * gnu-v3-abi.c: Likewise.
1890 * ia64-tdep.c: Likewise.
1891 * ia64-vms-tdep.c: Likewise.
1892 * infcall.c: Likewise.
1893 * infcmd.c: Likewise.
1894 * infrun.c: Likewise.
1895 * linespec.c: Likewise.
1896 * linux-tdep.c: Likewise.
1897 * minsyms.c: Likewise.
1898 * ppc-linux-nat.c: Likewise.
1899 * ppc-linux-tdep.c: Likewise.
1900 * procfs.c: Likewise.
1901 * regcache.c: Likewise.
1902 * remote.c: Likewise.
1903 * rs6000-tdep.c: Likewise.
1904 * s390-linux-nat.c: Likewise.
1905 * s390-tdep.c: Likewise.
1906 * solib-aix.c: Likewise.
1907 * solib-darwin.c: Likewise.
1908 * solib-dsbt.c: Likewise.
1909 * solib-spu.c: Likewise.
1910 * solib-svr4.c: Likewise.
1911 * solib-target.c: Likewise.
1912 * sparc-tdep.c: Likewise.
1913 * sparc64-tdep.c: Likewise.
1914 * spu-tdep.c: Likewise.
1915 * symfile.c: Likewise.
1916 * symtab.c: Likewise.
1917 * target-descriptions.c: Likewise.
1918 * target-memory.c: Likewise.
1919 * target.c: Likewise.
1920 * target.h: Likewise.
1921 * tracefile-tfile.c: Likewise.
1922 * tracepoint.c: Likewise.
1923 * valops.c: Likewise.
1924 * valprint.c: Likewise.
1925 * value.c: Likewise.
1926 * windows-tdep.c: Likewise.
1927 * mi/mi-main.c: Likewise.
1929 2018-06-07 Tom Tromey <tom@tromey.com>
1931 * valprint.h (build_address_symbolic): Declare.
1932 * printcmd.c (print_address_symbolic): Update.
1933 (build_address_symbolic): Change "name" and "filename" to
1935 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1937 * defs.h (build_address_symbolic): Remove declaration.
1939 2018-06-07 Alan Hayward <alan.hayward@arm.com>
1941 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
1942 (aarch64_vnv_type): Add function.
1943 (aarch64_pseudo_register_name): Add V regs for SVE.
1944 (aarch64_pseudo_register_type): Likewise.
1945 (aarch64_pseudo_register_reggroup_p): Likewise.
1946 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
1947 (aarch64_pseudo_read_value): Add V regs for SVE.
1948 (aarch64_pseudo_write_2): Use V0 offset for SVE
1949 (aarch64_pseudo_write): Add V regs for SVE.
1950 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
1952 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
1954 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
1955 (sve_vl_from_vq): Likewise.
1957 2018-06-05 Tom Tromey <tom@tromey.com>
1959 * cli/cli-cmds.c (show_version): Update.
1960 * top.c (print_gdb_version): Add "interactive" parameter.
1962 * main.c (captured_main_1): Update.
1963 * top.h (print_gdb_version): Add "interactive" parameter and a
1966 2018-06-05 David Malcolm <dmalcolm@redhat.com>
1968 * common/enum-flags.h: Add trailing semicolon to example in
1971 2018-06-05 Tom Tromey <tom@tromey.com>
1974 * NEWS: Add entry about pager.
1975 * utils.c (pagination_disabled_for_command): New global.
1976 (prompt_for_continue): Allow "c" response to prompt.
1977 (reinitialize_more_filter): Clear
1978 pagination_disabled_for_command.
1979 (fputs_maybe_filtered): Check pagination_disabled_for_command.
1981 2018-06-04 Tom Tromey <tom@tromey.com>
1983 * ada-lang.h (ada_lookup_symbol_list): Update.
1984 * ada-lang.c (resolve_subexp): Update.
1985 (symbols_are_identical_enums): Change type of syms. Remove nsyms
1987 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
1988 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
1989 results parameter to std::vector.
1990 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
1992 * ada-exp.y (block_lookup): Update.
1993 (select_possible_type_sym): Change type of syms. Remove nsyms
1995 (write_var_or_type, write_name_assoc): Update.
1997 2018-06-04 Joel Brobecker <brobecker@adacore.com>
1999 * windows-nat.c (windows_nat_target::xfer_partial): Return
2000 TARGET_XFER_E_IO if we need to delegate to the target beneath
2001 but BENEATH is NULL.
2003 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
2005 * Makefile.in (config.status): Add configure.nat as a
2008 2018-06-04 Tom Tromey <tom@tromey.com>
2010 * cp-name-parser.y (cpname_state): Add method declarations.
2011 (HANDLE_QUAL): Update.
2012 (cpname_state::d_grab, cpname_state::fill_comp)
2013 (cpname_state::make_operator, cpname_state::make_dtor)
2014 (cpname_state::make_builtin_type, cpname_state::make_name)
2015 (cpname_state::d_qualify, cpname_state::d_int_type)
2016 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
2017 (%union): Move earlier.
2019 2018-06-04 Alan Hayward <alan.hayward@arm.com>
2021 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
2023 2018-06-04 Alan Hayward <alan.hayward@arm.com>
2025 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
2026 (aarch64_pseudo_write_1): Likewise.
2027 (aarch64_pseudo_read_value): Use helper.
2028 (aarch64_pseudo_write): Likewise.
2030 2018-06-04 Pedro Alves <palves@redhat.com>
2032 * darwin-nat.c (darwin_ops): Delete.
2033 (darwin_attach_pid): Use get_native_target.
2035 2018-06-04 Alan Hayward <alan.hayward@arm.com>
2037 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
2038 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
2040 2018-06-04 Alan Hayward <alan.hayward@arm.com>
2042 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
2043 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
2044 (aarch64_gdbarch_init): Check for SVE.
2045 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
2047 2018-06-04 Alan Hayward <alan.hayward@arm.com>
2049 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
2050 * aarch64-tdep.h (aarch64_read_description): Likewise.
2051 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2052 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2053 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
2054 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
2055 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
2057 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
2059 * value.c (value_fetch_lazy_bitfield): New.
2060 (value_fetch_lazy_memory): New.
2061 (value_fetch_lazy_register): New.
2062 (value_fetch_lazy): Factor out to smaller functions.
2064 2018-06-01 Tom Tromey <tom@tromey.com>
2066 * cp-name-parser.y (backslashable, represented): Now const.
2068 2018-06-01 Tom Tromey <tom@tromey.com>
2070 * cp-name-parser.y: Include parser-defs.h.
2071 (parser_fprintf): Remove declaration.
2073 2018-06-01 Tom Tromey <tom@tromey.com>
2075 * cp-name-parser.y: Use %pure-parser, %lex-param, and
2077 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
2078 (global_result): Remove globals.
2079 (struct cpname_state): New.
2080 (yyparse): Don't declare.
2081 (yylex, yyerror): Move declarations after %union.
2082 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
2083 (make_name): Add state parameter.
2085 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
2087 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
2089 (yylex): Add lvalp, state parameters.
2090 (yyerror): Add state parameter.
2091 (cp_demangled_name_to_comp): Update.
2093 2018-06-01 Tom Tromey <tom@tromey.com>
2095 * cp-name-parser.y (parser_fprintf): Declare.
2096 (GDB_YY_REMAP_PREFIX): Define.
2097 Include yy-remap.h. Don't redefine yy* identifiers.
2099 2018-06-01 Tom Tromey <tom@tromey.com>
2101 * python/py-type.c (typy_legacy_template_argument): Update.
2102 * cp-support.h (cp_demangled_name_to_comp): Update.
2103 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
2104 parameter to be a "std::string *".
2107 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
2109 * ada-lex.l: Include "diagnostics.h" instead of
2110 "common/diagnostics.h".
2111 * unittests/environ-selftests.c: Likewise.
2112 * common/diagnostics.h: Moved to ../include.
2114 2018-06-01 Joel Brobecker <brobecker@adacore.com>
2116 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
2117 to language_mode_manual while calling breakpoint_re_set_one.
2119 2018-06-01 Tom Tromey <tom@tromey.com>
2121 * valops.c (value_cast_structs, destructor_name_p): Update.
2122 * symtab.c (gdb_mangle_name): Update.
2123 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
2125 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
2126 (pascal_object_print_value_fields, pascal_object_print_value):
2128 * p-typeprint.c (pascal_type_print_derivation_info): Update.
2129 * linespec.c (find_methods): Update.
2130 * gdbtypes.h (type_name_no_tag): Remove.
2131 (type_name_or_error): Rename from type_name_no_tag_or_error.
2132 * gdbtypes.c (type_name_no_tag): Remove.
2133 (type_name_or_error): Rename from type_name_no_tag_or_error.
2134 (lookup_struct_elt_type, check_typedef): Update.
2135 * expprint.c (print_subexp_standard): Update.
2136 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
2137 * d-namespace.c (d_lookup_nested_symbol): Update.
2138 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
2139 (cp_print_class_member): Update.
2140 * cp-namespace.c (cp_lookup_nested_symbol): Update.
2141 * completer.c (add_struct_fields): Update.
2142 * c-typeprint.c (cp_type_print_derivation_info)
2143 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
2145 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
2146 (ada_prefer_type, ada_is_exception_sym): Update.
2148 2018-06-01 Tom Tromey <tom@tromey.com>
2150 * valops.c (enum_constant_from_type, value_namespace_elt)
2151 (value_maybe_namespace_elt): Update.
2152 * valarith.c (find_size_for_pointer_math): Update.
2153 * target-descriptions.c (make_gdb_type): Update.
2154 * symmisc.c (print_symbol): Update.
2155 * stabsread.c (define_symbol, read_type)
2156 (complain_about_struct_wipeout, add_undefined_type)
2157 (cleanup_undefined_types_1): Update.
2158 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
2159 (rust_range_type_p, val_print_struct, rust_print_struct_def)
2160 (rust_internal_print_type, rust_composite_type)
2161 (rust_evaluate_funcall, rust_evaluate_subexp)
2162 (rust_inclusive_range_type_p): Update.
2163 * python/py-type.c (typy_get_tag): Update.
2164 * p-typeprint.c (pascal_type_print_base): Update.
2165 * mdebugread.c (parse_symbol, parse_type): Update.
2166 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
2168 * guile/scm-type.c (gdbscm_type_tag): Update.
2169 * go-lang.c (sixg_string_p): Update.
2170 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
2172 * gdbtypes.h (struct main_type) <tag_name>: Remove.
2173 (TYPE_TAG_NAME): Remove.
2174 * gdbtypes.c (type_name_no_tag): Simplify.
2175 (check_typedef, check_types_equal, recursive_dump_type)
2176 (copy_type_recursive, arch_composite_type): Update.
2177 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
2178 in summary mode when needed.
2179 * eval.c (evaluate_funcall): Update.
2180 * dwarf2read.c (fixup_go_packaging, read_structure_type)
2181 (process_structure_scope, read_enumeration_type)
2182 (read_namespace_type, read_module_type, determine_prefix): Update.
2183 * cp-support.c (inspect_type): Update.
2184 * coffread.c (process_coff_symbol, decode_base_type): Update.
2185 * c-varobj.c (c_is_path_expr_parent): Update.
2186 * c-typeprint.c (c_type_print_base_struct_union): Update.
2187 (c_type_print_base_1): Update. Print struct/class/union/enum in
2188 summary when using C language.
2189 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
2190 (gen_maybe_namespace_elt): Update.
2191 * ada-lang.c (ada_type_name): Simplify.
2192 (empty_record, ada_template_to_fixed_record_type_1)
2193 (template_to_static_fixed_type)
2194 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
2196 2018-06-01 Tom Tromey <tom@tromey.com>
2198 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
2200 * c-typeprint.c (c_print_type_1): Add "language" parameter.
2201 (c_print_type): Update.
2202 (c_print_type): New overload.
2203 (c_type_print_varspec_prefix, c_type_print_args)
2204 (c_type_print_varspec_suffix, c_print_type_no_offsets)
2205 (c_type_print_base_struct_union, c_type_print_base_1)
2206 (cp_type_print_method_args): Add "language" parameter.
2207 (c_type_print_base): Update.
2208 * c-lang.h (c_print_type): Add new overload.
2210 2018-06-01 Tom Tromey <tom@tromey.com>
2212 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
2213 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
2215 2018-06-01 Alan Hayward <alan.hayward@arm.com>
2217 * aarch64-tdep.c (aarch64_sve_register_names): New const
2219 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
2220 (AARCH64_SVE_Z_REGS_NUM): New define.
2221 (AARCH64_SVE_P_REGS_NUM): Likewise.
2222 (AARCH64_SVE_NUM_REGS): Likewise.
2224 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
2226 * nat/linux-ptrace.h [__alpha__]
2227 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
2230 2018-05-31 Maciej W. Rozycki <macro@mips.com>
2232 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
2233 the endianness selected.
2234 * NEWS: Document `set endian auto' mode operation update.
2236 2018-05-31 Alan Hayward <alan.hayward@arm.com>
2238 * Makefile.in: Add new header.
2239 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
2240 (sve_vl_from_vg): Likewise.
2241 (sve_vq_from_vl): Likewise.
2242 (sve_vl_from_vq): Likewise.
2243 (sve_vq_from_vg): Likewise.
2244 (sve_vg_from_vq): Likewise.
2245 * configure.nat: Add new c file.
2246 * nat/aarch64-sve-linux-ptrace.c: New file.
2247 * nat/aarch64-sve-linux-ptrace.h: New file.
2249 2018-05-31 Alan Hayward <alan.hayward@arm.com>
2251 * aarch64-linux-nat.c (aarch64_linux_read_description):
2253 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2255 * aarch64-tdep.c (tdesc_aarch64_list): Add.
2256 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
2257 (aarch64_gdbarch_init): Add parmeter zero.
2258 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
2259 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
2260 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
2262 * doc/gdb.texinfo: Describe SVE feature
2263 * features/aarch64-sve.c: New file.
2265 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
2268 * gdbarch.sh (significant_addr_bit): Default to zero when
2269 not set by target architecture.
2270 * gdbarch.c: Re-generated.
2271 * utils.c (address_significant): Update.
2273 2018-05-30 Joel Brobecker <brobecker@adacore.com>
2275 * stack.c (func_command): Remove trailing newline in call to error.
2277 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2279 * regcache.h (regcache_raw_collect): Remove, update callers to
2280 use regcache::raw_collect.
2281 * regcache.c (regcache_raw_collect): Remove.
2283 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2285 * regcache.h (regcache_raw_supply): Remove, update callers to
2286 use detached_regcache::raw_supply.
2287 * regcache.c (regcache_raw_supply): Remove.
2289 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2291 * regcache.h (regcache_cooked_write_part): Remove, update
2292 callers to use regcache::cooked_write_part.
2293 * regcache.c (regcache_cooked_write_part): Remove.
2295 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2297 * regcache.h (regcache_cooked_read_part): Remove, update callers
2298 to use readable_regcache::cooked_read_part.
2299 * regcache.c (regcache_cooked_read_part): Remove.
2301 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2303 * regcache.h (regcache_cooked_read_value): Remove, update
2304 callers to use readable_regcache::cooked_read_value.
2305 * regcache.c (regcache_cooked_read_value): Remove.
2307 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2309 * regcache.h (regcache_cooked_write): Remove, update callers to
2310 use regcache::cooked_write.
2311 * regcache.c (regcache_cooked_write): Remove.
2313 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2315 * regcache.h (regcache_invalidate): Remove, update callers to
2316 use detached_regcache::invalidate instead.
2317 * regcache.c (regcache_invalidate): Remove.
2319 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2321 * regcache.h (regcache_raw_write_part): Remove, update callers
2322 to use regcache::raw_write_part instead.
2323 * regcache.c (regcache_raw_write_part): Remove.
2325 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2327 * regcache.h (regcache_raw_read_part): Remove, update callers to
2328 use readable_regcache::raw_read_part instead.
2329 * regcache.c (regcache_raw_read_part): Remove.
2331 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2333 * regcache.h (regcache_cooked_read): Remove, update callers to
2334 use readable_regcache::cooked_read instead.
2335 * regcache.c (regcache_cooked_read): Remove.
2337 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2339 * regcache.h (regcache_raw_write): Remove, update callers to use
2340 regcache::raw_write instead.
2341 * regcache.c (regcache_raw_write): Remove.
2343 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2345 * regcache.h (regcache_raw_read): Remove, update callers to use
2346 readable_regcache::raw_read instead.
2347 * regcache.c (regcache_raw_read): Remove.
2349 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2351 * regcache.h (regcache_raw_update): Remove, update callers to
2352 use readable_regcache::raw_update instead.
2353 * regcache.c (regcache_raw_update): Remove.
2355 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2357 * regcache.h (regcache_register_status): Remove, update callers
2358 to use reg_buffer::get_register_status directly instead.
2359 * regcache.c (regcache_register_status): Remove.
2361 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2363 * regcache.h (regcache_get_ptid): Remove, update all callers to
2364 call regcache::ptid instead.
2365 * regcache.c (regcache_get_ptid): Remove.
2367 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2369 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
2371 2018-05-30 Pedro Alves <palves@redhat.com>
2373 * common/common-exceptions.h (exception_rethrow): Use
2376 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
2378 * breakpoint.c (print_solib_event, check_status_catch_solib):
2379 Remove struct keyword in range-based for loops.
2380 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
2381 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
2383 * linespec.c (find_superclass_methods, search_minsyms_for_name):
2385 * symfile.c (addr_info_make_relative): Likewise.
2386 * thread.c (value_in_thread_stack_temporaries): Likewise.
2388 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
2391 * valops.c (value_struct_elt_for_reference): Call check_typedef on
2392 aggregate type to get its real type before accessing it.
2394 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
2396 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
2397 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
2398 * coff-pe-read.c (add_pe_forwarded_sym): Replace
2399 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
2400 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
2401 * jit.c (jit_breakpoint_re_set_internal): Likewise.
2402 * printcmd.c (info_address_command): Likewise.
2404 2018-05-29 Tom Tromey <tom@tromey.com>
2406 * windows-nat.c (handle_exception): Update fall-through comment.
2408 2018-05-29 Tom Tromey <tom@tromey.com>
2410 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
2411 (struct program_space) <added_solibs>: Now a std::vector.
2412 * breakpoint.c (print_solib_event): Update.
2413 (check_status_catch_solib): Update.
2414 * progspace.c (clear_program_space_solib_cache): Update.
2415 * solib.c (update_solib_list): Update.
2417 2018-05-29 Tom Tromey <tom@tromey.com>
2419 * python/py-type.c (typy_richcompare): Update.
2420 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
2421 * gdbtypes.h (types_deeply_equal): Return bool.
2422 (types_equal): Likewise.
2423 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
2425 (check_types_equal): Change worklist to std::vector. Return
2427 (struct type_equality_entry): Add constructor.
2428 (compare_maybe_null_strings): Return bool.
2429 (check_types_worklist): Return bool. Change worklist to
2431 (types_deeply_equal): Use std::vector.
2432 (types_equal): Return bool.
2433 (compare_maybe_null_strings): Simplify.
2435 2018-05-29 Tom Tromey <tom@tromey.com>
2437 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
2439 2018-05-29 Tom Tromey <tom@tromey.com>
2441 * objc-lang.h: Don't include cp-support.h.
2442 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
2445 2018-05-27 Tom Tromey <tom@tromey.com>
2447 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
2449 2018-05-25 Tom Tromey <tom@tromey.com>
2451 * value.c (value::location): Initialize.
2453 2018-05-25 Tom Tromey <tom@tromey.com>
2455 * dbxread.c (init_bincl_list): Remove.
2456 (bincl_list): Now a std::vector.
2457 (bincls_allocated, next_bincl): Remove.
2458 (free_bincl_list, do_free_bincl_list_cleanup)
2459 (make_cleanup_free_bincl_list): Remove.
2460 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
2462 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
2463 (struct header_file_location): Add constructor.
2464 (add_bincl_to_list): Remove.
2466 2018-05-25 Tom Tromey <tom@tromey.com>
2468 * tui/tui.c (tui_enable): Update.
2469 * mi/mi-interp.c (mi_interp::init): Update.
2470 * interps.h (class interp) <name>: New method.
2471 <m_name>: Rename from name.
2472 (~scoped_restore_interp): Update.
2473 * interps.c (interp::interp): Update.
2474 (interp_add, interp_set, interp_lookup_existing)
2475 (current_interp_named_p): Update.
2477 2018-05-25 Tom Tromey <tom@tromey.com>
2479 * interps.c (interp_name): Remove.
2480 * mi/mi-interp.c (mi_interp::init): Update.
2481 * interps.h (interp_name): Remove.
2482 (~scoped_restore_interp): Update.
2483 * tui/tui.c (tui_enable): Update.
2485 2018-05-25 Tom Tromey <tom@tromey.com>
2487 * utils.c (fputs_maybe_filtered): Update.
2488 * linespec.c (decode_line_full): Update.
2489 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
2490 (mi_print_breakpoint_for_event, mi_solib_loaded)
2491 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
2492 (mi_user_selected_context_changed): Update.
2493 * mi/mi-main.c (mi_execute_command): Update.
2494 * cli/cli-script.c (execute_control_command): Update.
2495 * python/python.c (execute_gdb_command): Update.
2496 * solib.c (info_sharedlibrary_command): Update.
2497 * interps.c (interp_ui_out): Remove.
2498 * interps.h (interp_ui_out): Remove.
2500 2018-05-25 Tom Tromey <tom@tromey.com>
2502 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
2503 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
2504 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
2506 2018-05-25 Tom Tromey <tom@tromey.com>
2508 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
2509 * interps.c (interp_exec): Use scoped_restore.
2511 2018-05-25 Tom Tromey <tom@tromey.com>
2513 * remote.c (remote_target::remote_file_get): Use
2515 (remote_target::remote_file_put): Likewise.
2517 2018-05-25 Tom Tromey <tom@tromey.com>
2519 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
2521 (get_pe_section_index, add_pe_exported_sym): Update.
2522 (read_pe_exported_syms): Use gdb::def_vector.
2524 2018-05-25 Tom Tromey <tom@tromey.com>
2526 * frame.c (remove_prev_frame): Remove.
2527 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
2529 2018-05-25 Maciej W. Rozycki <macro@mips.com>
2531 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
2533 * mips-linux-nat.c (supply_fpregset): Always call
2534 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
2535 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
2536 `mips_fill_fpregset'.
2537 * mips-linux-tdep.c (mips_supply_fpregset)
2538 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
2539 (mips_fill_fpregset_wrapper): Remove functions.
2540 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
2541 (mips_linux_fpregset): Remove variable.
2542 (mips_linux_iterate_over_regset_sections): Use
2543 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
2544 (mips_linux_o32_sigframe_init): Remove comment.
2546 2018-05-25 Pedro Alves <palves@redhat.com>
2548 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
2549 (struct readahead_cache, struct packet_reg, struct
2550 remote_arch_state, class remote_state): Move higher up in the
2552 (remote_target::m_remote_state): Now an object instead of a pointer.
2553 (remote_target::get_remote_state): Adjust.
2555 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
2557 * stack.c (select_and_print_frame): Delete.
2558 (struct function_bounds): Move struct within function.
2559 (func_command): Most content moved into new function
2560 find_frame_for_function, use new function, print result, add
2562 (find_frame_for_function): New function, now returns a result.
2564 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2566 * stack.c (iterate_over_block_arg_vars): Fix comment.
2567 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
2569 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
2573 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2575 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2577 * frame.h (class scoped_restore_selected_frame): New class.
2578 * stack.c (print_frame_local_vars): Remove catching and rethrowing
2579 of any exception, use scoped_restore_selected_frame to restore the
2582 2018-05-24 Pedro Alves <palves@redhat.com>
2584 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
2587 2018-05-23 Tom Tromey <tom@tromey.com>
2589 * complaints.c (struct complaints): Remove.
2590 (symfile_complaint_book): Remove.
2591 (series): New global.
2592 (complaint_internal): Update.
2593 (clear_complaints): Update.
2595 2018-05-23 Tom Tromey <tom@tromey.com>
2597 * complaints.c (counters): New global.
2598 (struct complain): Remove.
2599 (struct complaints) <root>: Remove.
2600 (complaint_sentinel): Remove.
2601 (symfile_complaint_book): Update.
2602 (find_complaint) Remove.
2603 (complaint_internal, clear_complaints): Update.
2605 2018-05-23 Tom Tromey <tom@tromey.com>
2607 * complaints.c (struct complain) <file, line>: Remove.
2608 (find_complaint): Remove file, line parameters.
2609 (complaint_internal): Update.
2611 2018-05-23 Tom Tromey <tom@tromey.com>
2613 * complaints.c (vcomplaint): Remove.
2614 (complaint_internal) Merge in contents of vcomplaint.
2616 2018-05-23 Tom Tromey <tom@tromey.com>
2618 * complaints.c (struct complaints) <explanation>: Remove.
2619 (symfile_explanations): Remove.
2620 (symfile_complaint_book): Update.
2621 (vcomplaint): Update.
2622 (struct explanation): Remove.
2624 2018-05-23 Tom Tromey <tom@tromey.com>
2626 * complaints.c (symfile_complaints): Remove.
2627 (complaint_internal): Remove "complaints" parameter.
2628 (clear_complaints, vcomplaint): Remove "c" parameter.
2629 (get_complaints): Remove.
2630 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
2631 (dwarf2_debug_line_missing_file_complaint)
2632 (dwarf2_debug_line_missing_end_sequence_complaint)
2633 (dwarf2_complex_location_expr_complaint)
2634 (dwarf2_const_value_length_mismatch_complaint)
2635 (dwarf2_section_buffer_overflow_complaint)
2636 (dwarf2_macro_malformed_definition_complaint)
2637 (dwarf2_invalid_attrib_class_complaint)
2638 (create_addrmap_from_index, dw2_symtab_iter_next)
2639 (dw2_expand_marked_cus)
2640 (dw2_debug_names_iterator::find_vec_in_debug_names)
2641 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
2642 (create_debug_type_hash_table, init_cutu_and_read_dies)
2643 (partial_die_parent_scope, add_partial_enumeration)
2644 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
2645 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
2646 (read_import_statement, read_file_scope, create_dwo_cu_reader)
2647 (create_cus_hash_table, create_dwp_hash_table)
2648 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
2649 (dwarf2_rnglists_process, dwarf2_ranges_process)
2650 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
2651 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
2652 (handle_struct_member_die, process_structure_scope)
2653 (read_array_type, read_common_block, read_module_type)
2654 (read_tag_pointer_type, read_typedef, read_base_type)
2655 (read_subrange_type, load_partial_dies, partial_die_info::read)
2656 (partial_die_info::read, partial_die_info::read)
2657 (partial_die_info::read, read_checked_initial_length_and_offset)
2658 (dwarf2_string_attr, read_formatted_entries)
2659 (dwarf_decode_line_header)
2660 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2661 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
2662 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
2663 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2664 (get_signatured_type, get_DW_AT_signature_type)
2665 (decode_locdesc, file_file_name, consume_improper_spaces)
2666 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
2667 (dwarf_decode_macro_bytes, dwarf_decode_macros)
2668 (dwarf2_symbol_mark_computed, set_die_type)
2669 (read_attribute_value): Update.
2670 * stap-probe.c (handle_stap_probe, get_stap_base_address):
2672 * dbxread.c (unknown_symtype_complaint)
2673 (lbrac_mismatch_complaint, repeated_header_complaint)
2674 (set_namestring, function_outside_compilation_unit_complaint)
2675 (read_dbx_symtab, process_one_symbol): Update.
2676 * gdbtypes.c (stub_noname_complaint): Update.
2677 * windows-nat.c (handle_unload_dll): Update.
2678 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
2679 (decode_base_type): Update.
2680 * xcoffread.c (bf_notfound_complaint, ef_complaint)
2681 (eb_complaint, record_include_begin, record_include_end)
2682 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
2683 (process_xcoff_symbol, read_symbol)
2684 (function_outside_compilation_unit_complaint)
2685 (scan_xcoff_symtab): Update.
2686 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
2687 * buildsym.c (finish_block_internal, make_blockvector)
2688 (end_symtab_get_static_block, augment_type_symtab): Update.
2689 * dtrace-probe.c (dtrace_process_dof)
2690 (dtrace_static_probe_ops::get_probes): Update.
2691 * complaints.h (struct complaint): Don't declare.
2692 (symfile_complaints): Remove.
2693 (complaint_internal): Remove "complaints" parameter.
2694 (complaint): Likewise.
2695 (clear_complaints): Likewise.
2696 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2697 (reread_symbols): Update.
2698 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2699 (dwarf2_frame_cache, decode_frame_entry): Update.
2700 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
2701 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2702 (info_selectors_command): Update.
2703 * macrotab.c (macro_include, check_for_redefinition)
2704 (macro_undef): Update.
2705 * objfiles.c (filter_overlapping_sections): Update.
2706 * stabsread.c (invalid_cpp_abbrev_complaint)
2707 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
2708 (define_symbol, error_type, read_type, rs6000_builtin_type)
2709 (stabs_method_name_from_physname, read_member_functions)
2710 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
2711 (attach_fields_to_type, complain_about_struct_wipeout)
2712 (read_range_type, read_args, common_block_start)
2713 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
2715 * mdebugread.c (index_complaint, unknown_ext_complaint)
2716 (basic_type_complaint, bad_tag_guess_complaint)
2717 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
2718 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
2719 (parse_procedure, parse_lines)
2720 (function_outside_compilation_unit_complaint)
2721 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
2722 (bad_tag_guess_complaint, reg_value_complaint): Update.
2723 * cp-support.c (demangled_name_complaint): Update.
2724 * macroscope.c (sal_macro_scope): Update.
2725 * dwarf-index-write.c (class debug_names): Update.
2727 2018-05-23 Tom Tromey <tom@tromey.com>
2729 * complaints.c (clear_complaints): Remove "noisy" parameter.
2730 * complaints.h (clear_complaints): Update.
2731 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2732 (reread_symbols): Update.
2734 2018-05-23 Tom Tromey <tom@tromey.com>
2736 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
2738 (vcomplaint, clear_complaints): Update.
2739 (symfile_explanations): Remove some messages.
2741 2018-05-23 Tom Tromey <tom@tromey.com>
2743 * complaints.c (internal_complaint): Remove.
2744 * complaints.h (internal_complaint): Remove.
2746 2018-05-22 Maciej W. Rozycki <macro@mips.com>
2748 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
2750 2018-05-22 Pedro Alves <palves@redhat.com>
2752 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
2753 (remote_fileio_badfd, remote_fileio_return_errno)
2754 (remote_fileio_return_success, remote_fileio_func_open)
2755 (remote_fileio_func_open, remote_fileio_func_close)
2756 (remote_fileio_func_read, remote_fileio_func_write)
2757 (remote_fileio_func_lseek, remote_fileio_func_rename)
2758 (remote_fileio_func_unlink, remote_fileio_func_stat)
2759 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
2760 (remote_fileio_func_isatty, remote_fileio_func_system): Add
2761 remote_target parameter.
2762 (remote_fio_func_map) <func>: Add remote_target parameter.
2763 (do_remote_fileio_request, remote_fileio_request):
2764 * remote-fileio.h (remote_fileio_request):
2765 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
2766 remote_target parameter.
2767 (remote_notif_process, handle_notification): Adjust to pass down
2769 (remote_notif_state_allocate): Add remote_target parameter. Save
2771 * remote-notif.h (struct remote_target): Forward declare.
2772 (struct notif_client) <parse, ack, can_get_pending_events>: Add
2773 remote_target parameter.
2774 (struct remote_notif_state) <remote>: New field.
2775 (remote_notif_ack, remote_notif_parse): Add remote_target
2777 (remote_notif_state_allocate, remote_notif_state_allocate): Add
2778 remote_target parameter.
2779 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
2780 (threads_listing_context, rmt_thread_action, protocol_feature)
2781 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
2782 (packet_result, struct threads_listing_context, remote_state):
2783 Move definitions and declarations higher up.
2784 (remote_target) <~remote_target>: Declare.
2785 (remote_download_command_source, remote_file_put, remote_file_get)
2786 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
2787 (remote_hostio_pread_vFile, remote_hostio_send_command)
2788 (remote_hostio_set_filesystem, remote_hostio_open)
2789 (remote_hostio_close, remote_hostio_unlink, remote_state)
2790 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
2791 (get_memory_write_packet_size, get_memory_read_packet_size)
2792 (append_pending_thread_resumptions, remote_detach_1)
2793 (append_resumption, remote_resume_with_vcont)
2794 (add_current_inferior_and_thread, wait_ns, wait_as)
2795 (process_stop_reply, remote_notice_new_inferior)
2796 (process_initial_stop_replies, remote_add_thread)
2797 (btrace_sync_conf, remote_btrace_maybe_reopen)
2798 (remove_new_fork_children, kill_new_fork_children)
2799 (discard_pending_stop_replies, stop_reply_queue_length)
2800 (check_pending_events_prevent_wildcard_vcont)
2801 (discard_pending_stop_replies_in_queue, stop_reply)
2802 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
2803 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
2804 (remote_interrupt_as, remote_interrupt_ns)
2805 (remote_get_noisy_reply, remote_query_attached)
2806 (remote_add_inferior, remote_current_thread, get_current_thread)
2807 (set_thread, set_general_thread, set_continue_thread)
2808 (set_general_process, write_ptid)
2809 (remote_unpack_thread_info_response, remote_get_threadinfo)
2810 (parse_threadlist_response, remote_get_threadlist)
2811 (remote_threadlist_iterator, remote_get_threads_with_ql)
2812 (remote_get_threads_with_qxfer)
2813 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
2814 (get_offsets, remote_check_symbols, remote_supported_packet)
2815 (remote_query_supported, remote_packet_size)
2816 (remote_serial_quit_handler, remote_detach_pid)
2817 (remote_vcont_probe, remote_resume_with_hc)
2818 (send_interrupt_sequence, interrupt_query)
2819 (remote_notif_get_pending_events, fetch_register_using_p)
2820 (send_g_packet, process_g_packet, fetch_registers_using_g)
2821 (store_register_using_P, store_registers_using_G)
2822 (set_remote_traceframe, check_binary_download)
2823 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
2824 (remote_xfer_live_readonly_partial, remote_read_bytes)
2825 (remote_send_printf, remote_flash_write, readchar)
2826 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
2827 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
2828 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
2829 (extended_remote_disable_randomization, extended_remote_run)
2830 (send_environment_packet, extended_remote_environment_support)
2831 (extended_remote_set_inferior_cwd, remote_write_qxfer)
2832 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
2833 (packet_command): Now methods of ...
2834 (remote_target): ... this class.
2835 (m_remote_state) <remote_target>: New field.
2836 (struct remote_state) <stop_reply_queue,
2837 remote_async_inferior_event_token, wait_forever_enabled_p>: New
2839 (remote_state::remote_state): Allocate stop_reply_queue.
2840 (remote_state): Delete global.
2841 (get_remote_state_raw): Delete.
2842 (remote_target::get_remote_state): Allocate m_remote_state on
2844 (get_current_remote_target): New.
2845 (remote_ops, extended_remote_ops): Delete.
2846 (wait_forever_enabled_p, remote_async_inferior_event_token):
2847 Delete, moved to struct remote_state.
2848 (remote_target::close): Delete self. Destruction bits split to
2850 (remote_target::~remote_target): ... this.
2851 (show_memory_packet_size): Adjust to use
2852 get_current_remote_target.
2853 (struct protocol_feature) <func>: Add remote_target parameter.
2854 All callers adjusted.
2855 (curr_quit_handler_target): New.
2856 (remote_serial_quit_handler): Reimplement.
2857 (remote_target::open_1): Adjust to use get_current_remote_target.
2858 Heap-allocate remote_target/extended_remote_target instances.
2859 (vcont_builder::vcont_builder): Add remote_target parameter, and
2860 save it in m_remote. All callers adjusted.
2861 (vcont_builder::m_remote): New field.
2862 (vcont_builder::restart, vcont_builder::flush)
2863 (vcont_builder::push_action): Use it.
2864 (remote_target::commit_resume): Use it.
2865 (struct queue_iter_param) <remote>: New field.
2866 (remote_target::remove_new_fork_children): Fill in 'remote' field.
2867 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
2868 (check_pending_event_prevents_wildcard_vcont_callback)
2869 (remote_target::check_pending_events_prevent_wildcard_vcont)
2870 (remote_target::discard_pending_stop_replies)
2871 (remote_target::discard_pending_stop_replies_in_queue)
2872 (remote_target::remote_notif_remove_queued_reply): Fill in
2874 (remote_notif_get_pending_events): New.
2875 (remote_target::readchar, remote_target::remote_serial_write):
2876 Save/restore curr_quit_handler_target.
2878 (kill_new_fork_children): Fill in 'remote' field.
2879 (packet_command): Use get_current_remote_target, defer to
2880 remote_target method of same name.
2881 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
2882 parameter, and save it in m_remote. All callers adjusted.
2883 (scoped_remote_fd::release): Use m_remote.
2884 (scoped_remote_fd::m_remote): New field.
2885 (remote_file_put, remote_file_get, remote_file_delete): Use
2886 get_current_remote_target, defer to remote_target method of same
2888 (remote_btrace_reset): Add remote_state paremeter. Update all
2890 (remote_async_inferior_event_handler). Pass down 'data'.
2891 (remote_new_objfile): Use get_current_remote_target.
2892 (remote_target::vcont_r_supported): New.
2893 (set_range_stepping): Use get_current_remote_target and
2894 remote_target::vcont_r_supported.
2895 (_initialize_remote): Don't allocate 'remote_state' and
2896 'stop_reply_queue' globals.
2897 * remote.h (struct remote_target): Forward declare.
2898 (getpkt, putpkt, remote_notif_get_pending_events): Add
2899 'remote_target' parameter.
2901 2018-05-22 Pedro Alves <palves@redhat.com>
2903 * remote.c (vcont_builder): Now a class. Make all data members
2905 (vcont_builder) <vcont_builder, restart, flush, push_action>:
2907 (vcont_builder_restart): Rename to ...
2908 (vcont_builder::restart): ... this.
2909 (vcont_builder_flush): Rename to ...
2910 (vcont_builder::flush): ... this.
2911 (vcont_builder_push_action): Rename to ...
2912 (vcont_builder::push_action): ... this.
2913 (remote_target::commit_resume): Adjust.
2915 2018-05-22 Pedro Alves <palves@redhat.com>
2917 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
2918 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
2919 (get_fixed_memory_packet_size): New.
2920 (get_memory_packet_size): Use it.
2921 (set_memory_packet_size): Don't override the config size with
2922 DEFAULT_MAX_MEMORY_PACKET_SIZE.
2923 (show_memory_packet_size): Use get_fixed_memory_packet_size.
2924 Don't refer to get_memory_packet_size if not connected to a remote
2925 target. Show "(default)" if configured size is 0.
2927 2018-05-22 Pedro Alves <palves@redhat.com>
2929 * remote.c (remote_target::mourn_inferior): Move
2930 discard_pending_stop_replies call here from ...
2931 (_initialize_remote): ... here.
2933 2018-05-22 Pedro Alves <palves@redhat.com>
2935 * remote.c (compare_section_command): Remove set_general_process
2938 2018-05-22 Pedro Alves <palves@redhat.com>
2940 * remote.c (struct packet_reg, struct remote_arch_state):
2941 Move higher up in the file.
2942 (remote_state) <m_arch_states>: Store remote_arch_state values
2943 instead of remote_arch_state pointers.
2944 (remote_state::get_remote_arch_state): Adjust.
2946 2018-05-22 Pedro Alves <palves@redhat.com>
2948 * remote.c: Include <unordered_map>.
2949 (remote_state): Now a class.
2950 (remote_state) <get_remote_arch_state>: Declare method.
2951 <get_remote_arch_state>: New field.
2952 (remote_arch_state) <remote_arch_state>: Declare ctor.
2953 <regs>: Now a unique_ptr.
2954 (remote_gdbarch_data_handle): Delete.
2955 (get_remote_arch_state): Delete.
2956 (remote_state::get_remote_arch_state): New.
2957 (get_remote_state): Adjust to call remote_state's
2958 get_remote_arch_state method.
2959 (init_remote_state): Delete, bits factored out to ...
2960 (remote_arch_state::remote_arch_state): ... this new method.
2961 (get_remote_packet_size, get_memory_packet_size)
2962 (process_g_packet, remote_target::fetch_registers)
2963 (remote_target::prepare_to_store, store_registers_using_G)
2964 (remote_target::store_registers, remote_target::get_trace_status):
2965 Adjust to call remote_state's method.
2966 (_initialize_remote): Remove reference to
2967 remote_gdbarch_data_handle.
2969 2018-05-22 Pedro Alves <palves@redhat.com>
2971 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
2972 pread>: New method declarations.
2973 (remote_target::open_1): Adjust.
2974 (readahead_cache_invalidate): Rename to ...
2975 (readahead_cache::invalidate): ... this, and adjust to be a class
2977 (readahead_cache_invalidate_fd): Rename to ...
2978 (readahead_cache::invalidate_fd): ... this, and adjust to be a
2980 (remote_hostio_pwrite): Adjust.
2981 (remote_hostio_pread_from_cache): Rename to ...
2982 (readahead_cache::pread): ... this, and adjust to be a class
2984 (remote_hostio_close): Adjust.
2986 2018-05-22 Pedro Alves <palves@redhat.com>
2988 * remote.c (remote_hostio_close_cleanup): Delete.
2989 (class scoped_remote_fd): New.
2990 (remote_file_put, remote_file_get): Use it.
2992 2018-05-22 Pedro Alves <palves@redhat.com>
2994 (struct vCont_action_support): Use bool and initialize all fields.
2995 (struct readahead_cache): Initialize all fields.
2996 (remote_state): Use bool and initialize all fields.
2997 (remote_state::remote_state, remote_state::~remote_state): New.
2998 (new_remote_state): Delete.
2999 (_initialize_remote): Use new to allocate remote_state.
3001 2018-05-22 Pedro Alves <palves@redhat.com>
3005 * c-exp.y: Include "c-support.h".
3006 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
3007 of tolower. Use c_ident_is_alpha to scan names.
3008 * c-lang.c: Include "c-support.h".
3009 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
3010 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
3011 * c-support.h: New file, with bits factored out from ...
3012 * cp-name-parser.y: ... this file.
3013 Include "c-support.h".
3014 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
3015 c-support.h and renamed.
3016 (symbol_end, yylex): Adjust.
3018 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3020 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
3021 parameter type to CORE_ADDR.
3022 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
3023 parameter type in declaration to CORE_ADDR.
3024 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
3025 target_auxv_search to get AT_HWCAP and use the result to get the
3027 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
3028 to CORE_ADDR. Remove the cast of the return value to unsigned
3029 long. Fix error predicate of target_auxv_search.
3030 (ppc_linux_nat_target::read_description): Change the type of the
3031 hwcap variable to CORE_ADDR.
3033 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3035 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
3036 if the size of fpscr is larger than 32 bits.
3038 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3040 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
3041 (ppc32_linux_vsxregmap): New global.
3042 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
3043 regcache_supply_regset, and regcache_collect_regset.
3044 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
3045 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
3046 (fetch_vsx_register, store_vsx_register): Remove.
3047 (fetch_vsx_registers): Add regno parameter. Get regset using
3048 ppc_linux_vsxregset. Use regset to supply registers.
3049 (store_vsx_registers): Add regno parameter. Get regset using
3050 ppc_linux_vsxregset. Use regset to collect registers.
3051 (fetch_register): Call fetch_vsx_registers instead of
3053 (store_register): Call store_vsx_registers instead of
3055 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
3056 new regno parameter.
3057 (store_ppc_registers): Call store_vsx_registers with -1 for the
3058 new regno parameter.
3059 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
3060 (ppc_collect_vsxregset): Remove.
3062 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3064 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
3066 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
3067 for vector register offset fields.
3068 (ppc64_fbsd_reg_offsets): Likewise.
3069 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
3070 to vector register offset fields.
3071 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
3072 to vector register offset fields.
3073 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
3074 vector register offset fields.
3075 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
3076 initializers for vector register offset fields.
3077 (rs6000_aix64_reg_offsets): Likewise.
3078 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
3079 (ppc_supply_vrregset): Remove.
3080 (ppc_collect_vrregset): Remove.
3081 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
3082 (ppc_linux_vrregset) : New function.
3083 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
3084 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
3085 (ppc32_linux_vrregset): Remove.
3086 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
3087 and use result instead of ppc32_linux_vrregset.
3088 (ppc32_linux_reg_offsets): Remove initializers for vector register
3090 (ppc64_linux_reg_offsets): Likewise.
3091 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
3092 * ppc-linux-nat.c: Include regset.h.
3093 (gdb_vrregset_t): Adjust comment to account for little-endian
3095 (supply_vrregset, fill_vrregset): Remove.
3096 (fetch_altivec_register, store_altivec_register): Remove.
3097 (fetch_altivec_registers): Add regno parameter. Get regset using
3098 ppc_linux_vrregset. Use regset to supply registers.
3099 (store_altivec_registers): Add regno parameter. Get regset using
3100 ppc_linux_vrregset. Use regset to collect registers.
3101 (fetch_register): Call fetch_altivec_registers instead of
3102 fetch_altivec_register.
3103 (store_register): Call store_altivec_registers instead of
3104 store_altivec_register.
3105 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
3106 the new regno parameter.
3107 (store_ppc_registers): Call store_altivec_registers with -1 for
3108 the new regno parameter.
3110 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3112 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
3113 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
3114 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3115 (gdb_vrregset_t): Change array type size to
3116 PPC_LINUX_SIZEOF_VRREGSET.
3117 (gdb_vsxregset_t): Change array type size to
3118 PPC_LINUX_SIZEOF_VSXREGSET.
3119 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
3120 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
3121 PPC_LINUX_SIZEOF_VSXREGSET.
3123 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3125 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
3126 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
3128 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
3129 ppc_linux_target_wordsize with tid.
3130 (ppc_linux_nat_target::read_description): Call ppc_linux_target
3132 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
3133 (ppc64_64bit_inferior_p): Add static and inline specifiers.
3134 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
3135 tid parameter. Remove static specifier.
3136 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
3137 (ppc_linux_target_wordsize): New declaration.
3139 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3141 * arch/ppc-linux-common.c: New file.
3142 * arch/ppc-linux-common.h: New file.
3143 * arch/ppc-linux-tdesc.h: New file.
3144 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
3145 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
3146 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
3147 arch/ppc-linux-tdesc.h.
3148 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
3149 arch/ppc-linux-tdesc.h.
3150 (ppc_linux_nat_target::read_description): Remove target
3151 description matching code. Fill a ppc_linux_features struct and
3152 call ppc_linux_match_description with it. Move comment about ISA
3153 2.05 to ppc-linux-common.c.
3154 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
3155 arch/ppc-linux-tdesc.h.
3156 (ppc_linux_core_read_description): Remove target description
3157 matching code. Fill a ppc_linux_features struct and call
3158 ppc_linux_match_description with it.
3159 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3160 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3161 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3162 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3163 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3164 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3165 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3166 (tdesc_powerpc_e500l): Remove.
3168 2018-05-22 Joel Brobecker <brobecker@adacore.com>
3170 * ada-lang.c (catch_assert_command): Pass empty string instead
3171 of NULL for excep_string argument.
3173 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3175 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
3176 the width of the requested register exceeds the width of the
3179 2018-05-21 Tom Tromey <tom@tromey.com>
3181 * printcmd.c (output_command): Remove.
3182 (output_command_const): Rename to output_command.
3183 * valprint.h (output_command): Rename from output_command_const.
3184 * tracepoint.c (trace_dump_actions): Call output_command.
3186 2018-05-21 Tom Tromey <tom@tromey.com>
3188 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3189 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
3190 * ada-lang.h (create_ada_exception_catchpoint): Update.
3191 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
3193 (create_excep_cond_exprs, ~ada_catchpoint)
3194 (should_stop_exception, print_one_exception)
3195 (print_mention_exception, print_recreate_exception): Update.
3196 (ada_get_next_arg): Remove.
3197 (catch_ada_exception_command_split): Use std::string. Change type
3198 of "excep_string", "cond_string".
3199 (catch_ada_exception_command): Update.
3200 (create_ada_exception_catchpoint): Change type of excep_string.
3201 (ada_exception_sal): Remove excep_string parameter.
3202 (~ada_catchpoint): Remove.
3204 2018-05-21 Tom Tromey <tom@tromey.com>
3206 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
3209 2018-05-21 Tom Tromey <tom@tromey.com>
3211 * ada-lang.c (ada_exception_message_1, ada_exception_message):
3212 Return unique_xmalloc_ptr.
3213 (print_it_exception): Update.
3215 2018-05-21 Tom Tromey <tom@tromey.com>
3217 * tracepoint.c (trace_dump_actions): Use std::string.
3219 2018-05-21 Tom Tromey <tom@tromey.com>
3221 * symfile.c (reread_symbols): Use std::string for original_name.
3223 2018-05-21 Tom Tromey <tom@tromey.com>
3225 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
3226 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
3229 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
3231 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
3233 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
3234 * objfiles.c (get_objfile_bfd_data): Allocate
3235 objfile_per_bfd_storage with obstack_new when allocating on
3238 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
3240 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
3242 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3243 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3244 * mdebugread.c (mdebug_build_psymtabs): Likewise.
3245 (add_pending): Likewise.
3246 (parse_symbol): Likewise.
3247 (parse_partial_symbols): Likewise.
3248 (psymtab_to_symtab_1): Likewise.
3249 (new_psymtab): Likewise.
3250 (elfmdebug_build_psymtabs): Likewise.
3251 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3252 * objfiles.c (get_objfile_bfd_data): Likewise.
3253 (objfile_register_static_link): Likewise.
3254 * psymtab.c (allocate_psymtab): Likewise.
3255 * stabsread.c (read_member_functions): Likewise.
3256 * xcoffread.c (xcoff_end_psymtab): Likewise.
3258 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
3260 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
3261 compiler supports std::is_trivially_constructible.
3262 * common/poison.h: Include obstack.h.
3263 (IsMallocable): Define to is_trivially_constructible if the
3264 compiler supports it, define to true_type otherwise.
3268 (XOBNEWVEC): Redefine.
3269 * gdb_obstack.h (obstack_zalloc): New.
3270 (OBSTACK_ZALLOC): Redefine.
3271 (obstack_calloc): New.
3272 (OBSTACK_CALLOC): Redefine.
3274 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
3275 (gdbarch_obstack): New declaration in gdbarch.h, definition in
3277 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
3278 obstack_calloc/obstack_zalloc.
3279 (gdbarch_obstack_zalloc): Remove.
3280 * target-descriptions.c (tdesc_data_init): Use obstack_new.
3282 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3284 * stack.c (backtrace_command_1): Remove useless variable int i.
3286 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3288 * stack.c (print_frame_info): Fix comment.
3290 2018-05-18 Tom Tromey <tom@tromey.com>
3292 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
3293 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
3294 (~dwarf2_per_objfile): Update
3295 (dwarf2_get_dwz_file): Use new.
3296 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
3299 2018-05-18 Tom Tromey <tom@tromey.com>
3301 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
3303 * dwarf2read.c (struct dwp_file): Add constructor and
3305 (open_and_init_dwp_file): Return a unique_ptr.
3306 (dwarf2_per_objfile, create_dwp_hash_table)
3307 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
3308 (lookup_dwo_unit_in_dwp): Update.
3309 (open_and_init_dwp_file, get_dwp_file): Update.
3311 2018-05-18 Tom Tromey <tom@tromey.com>
3313 * dwarf2read.c (dwarf2_per_objfile): Update.
3314 (struct mapped_index): Add initializers.
3315 (dwarf2_read_index): Use new.
3316 (dw2_symtab_iter_init): Update.
3317 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
3320 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
3322 * dwarf2read.c (mapped_index) <total_size>: Remove.
3324 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
3326 * unittests/format_pieces-selftests.c (test_format_specifier):
3329 2018-05-18 Tom Tromey <tom@tromey.com>
3331 * c-typeprint.c (maybe_print_hole): New function.
3332 (c_print_type_struct_field_offset): Update.
3333 (c_type_print_base_struct_union): Call maybe_print_hole.
3335 2018-05-17 Keith Seitz <keiths@redhat.com>
3337 * breakpoint.c (build_bpstat_chain): New function, moved from
3339 (bpstat_stop_status): Add optional parameter, `stop_chain'.
3340 If no stop chain is passed, call build_bpstat_chain to build it.
3341 * breakpoint.h (build_bpstat_chain): Declare.
3342 (bpstat_stop_status): Move documentation here from breakpoint.c.
3343 * infrun.c (handle_signal_stop): Before eliding inlined frames,
3344 build the stop chain and pass it to skip_inline_frames.
3345 Pass this stop chain to bpstat_stop_status.
3346 * inline-frame.c: Include breakpoint.h.
3347 (stopped_by_user_bp_inline_frame): New function.
3348 (skip_inline_frames): Add parameter `stop_chain'.
3349 Move documention to inline-frame.h.
3350 If non-NULL, use stopped_by_user_bp_inline_frame to determine
3351 whether the frame should be elided.
3352 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
3353 Add moved documentation and update for new parameter.
3355 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
3358 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3359 unittests/format_pieces-selftests.c.
3360 * common/format.h (format_piece) <operator==>: New.
3361 (format_pieces) <operator[]>: Remove.
3362 * common/format.c (format_pieces::format_pieces): Handle \e.
3363 * unittests/format_pieces-selftests.c: New.
3365 2018-05-17 Tom Tromey <tom@tromey.com>
3368 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
3369 (dw2_instantiate_symtab): Add skip_partial parameter.
3370 (dw2_find_last_source_symtab, dw2_map_expand_apply)
3371 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
3372 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
3373 (dw2_expand_symtabs_matching_one)
3374 (dw2_find_pc_sect_compunit_symtab)
3375 (dw2_debug_names_lookup_symbol)
3376 (dw2_debug_names_expand_symtabs_for_function): Update.
3377 (init_cutu_and_read_dies): Add skip_partial parameter.
3378 (process_psymtab_comp_unit, build_type_psymtabs_1)
3379 (process_skeletonless_type_unit, load_partial_comp_unit)
3380 (psymtab_to_symtab_1): Update.
3381 (load_full_comp_unit): Add skip_partial parameter.
3382 (process_imported_unit_die, dwarf2_read_addr_index)
3383 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
3384 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
3385 (read_signatured_type): Update.
3387 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
3389 * value.c (release_value): Remove unused variable.
3390 (record_latest_value): Likewise.
3391 (access_value_history): Likewise.
3392 (preserve_values): Likewise.
3394 2018-05-17 Tom Tromey <tom@tromey.com>
3396 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
3399 2018-05-16 Maciej W. Rozycki <macro@mips.com>
3402 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
3403 Also handle registers whose width is not a multiple of
3405 (linux_nat_trad_target::store_register): Likewise.
3407 2018-05-16 Tom Tromey <tom@tromey.com>
3409 * gdbcore.h (core_bfd): Redefine.
3410 * corelow.c (core_target::close): Update.
3411 (core_target_open): Update.
3412 * progspace.h (struct program_space) <cbfd>: Now a
3415 2018-05-16 Tom Tromey <tom@tromey.com>
3418 * symfile-add-flags.h (enum symfile_add_flags)
3419 <SYMFILE_NOT_FILENAME>: New constant.
3420 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
3421 objfile name from BFD.
3422 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
3423 * minidebug.c (find_separate_debug_file_in_section): Put
3424 ".gnu_debugdata" into BFD's file name.
3426 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
3428 * regcache.c (regcache_read_ftype, regcache_write_ftype):
3431 2018-05-15 Tamar Christina <tamar.christina@arm.com>
3434 * aarch64-tdep.c (aarch64_analyze_prologue,
3435 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
3436 Indicate not interested in errors.
3438 2018-05-15 Maciej W. Rozycki <macro@mips.com>
3440 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
3441 Supply the MIPS_ZERO_REGNUM register.
3443 2018-05-15 Maciej W. Rozycki <macro@mips.com>
3445 * mips-tdep.c (mask_address_var): Make variable static.
3447 2018-05-14 Tom Tromey <tom@tromey.com>
3449 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
3451 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
3453 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
3454 FXSAVE_ADDR for the mxcsr register.
3456 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
3458 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
3460 2018-05-11 Pedro Alves <palves@redhat.com>
3462 * corelow.c (core_target) <core_target>: No longer inline.
3463 Initialize m_core_gdbarch, m_core_vec and build the section table
3465 <~core_target>: New.
3466 <core_gdbarch, get_core_register_section>: New methods.
3467 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
3468 factored out from ...
3469 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
3471 (sniff_core_bfd): Add gdbarch parameter.
3472 (core_close): Delete, merged into ...
3473 (core_target::close): ... here. Delete self.
3474 (core_close_cleanup): Delete.
3475 (core_target_open): Allocate a core_target on the heap. Use a
3476 unique_ptr instead of a cleanup. Bits moved into the core_target
3477 ctor. Adjust to use core_target methods instead of globals.
3478 (get_core_register_section): Rename to ...
3479 (core_target::get_core_register_section): ... this and adjust.
3480 (struct get_core_registers_cb_data): New.
3481 (get_core_registers_cb): Use it. Use bool.
3482 (core_target::fetch_registers, core_target::files_info)
3483 (core_target::xfer_partial, core_target::read_description)
3484 (core_target::pid_to, core_target::thread_name): Adjust to
3485 reference class fields instead of globals.
3486 * target.h (struct target_ops_deleter, target_ops_up): New.
3488 2018-05-11 Pedro Alves <palves@redhat.com>
3490 * corefile.c (core_file_command): Move to corelow.c.
3491 * corelow.c (the_core_target): Delete.
3492 (core_file_command): Moved from corefile.c. Check exec_bfd
3493 instead of the_core_target. Use target_detach instead of calling
3494 into the_core_target directly.
3495 (maybe_say_no_core_file_now): New.
3496 (core_target::detach): Use it.
3497 (_initialize_corelow): Remove references to the_core_target.
3498 * gdbcore.h (the_core_target): Delete.
3500 2018-05-11 Tom Tromey <tromey@redhat.com>
3501 Pedro Alves <palves@redhat.com>
3503 * corefile.c (core_bfd): Remove.
3504 * gdbcore.h (core_bfd): Now a macro.
3505 * progspace.h (struct program_space) <cbfd>: New field.
3507 2018-05-11 Tom Tromey <tom@tromey.com>
3509 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
3512 2018-05-10 Tom Tromey <tom@tromey.com>
3514 * configure: Rebuild.
3515 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
3517 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3520 * regformats/regdat.sh: Adjust script, following the addition
3521 of the new expedite_regs parameter to init_target_desc.
3523 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
3526 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
3527 set_gdbarch_significant_addr_bit.
3528 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
3529 set_gdbarch_significant_addr_bit.
3530 * utils.c (address_significant): Update to sign extend addr.
3532 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
3534 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
3535 (xtensa_linux_init_abi): Limit tdep->num_regs by
3536 tdep->num_nopriv_regs.
3537 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
3538 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
3541 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
3543 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
3545 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3547 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
3548 (I387_MXCSR_INIT_VAL): New constant.
3549 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
3550 buffer if it was supplied by the inferior.
3551 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
3552 (i387_xsave_get_clear_bv): New function.
3553 (i387_supply_xsave): Only read x87 control registers from the
3554 xsave buffer if the feature is enabled, and the state will have
3555 been written, otherwise, provide a suitable default.
3556 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
3557 including x87 control registers. Update control registers if they
3558 have changed from the default value, and mark features as enabled
3560 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
3562 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3564 * spu-tdep.c (info_spu_event_command): Fix output formatting.
3566 2018-05-07 Tom Tromey <tom@tromey.com>
3568 * configure: Rebuild.
3569 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
3571 2018-05-07 Tom Tromey <tom@tromey.com>
3574 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
3575 bit. Use correct value for VDIV.
3577 2018-05-04 Tom Tromey <tom@tromey.com>
3579 * configure: Rebuild.
3580 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
3582 2018-05-04 Tom Tromey <tom@tromey.com>
3584 * linux-record.c (record_linux_system_call) <case
3585 RECORD_SYS_RECVFROM>: Add "break".
3587 2018-05-04 Tom Tromey <tom@tromey.com>
3589 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
3590 Add missing "break".
3591 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
3592 Add missing "break".
3594 2018-05-04 Tom Tromey <tom@tromey.com>
3596 * rs6000-tdep.c (ppc_process_record_op4)
3597 (ppc_process_record_op63): Add fall-through comment.
3599 2018-05-04 Tom Tromey <tom@tromey.com>
3601 * i386-tdep.c (i386_process_record): Add fall-through comment.
3603 2018-05-04 Tom Tromey <tom@tromey.com>
3605 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
3608 2018-05-04 Tom Tromey <tom@tromey.com>
3610 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
3611 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
3612 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
3614 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
3616 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
3619 2018-05-04 Tom Tromey <tom@tromey.com>
3621 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
3623 2018-05-04 Tom Tromey <tom@tromey.com>
3625 * s390-tdep.c (s390_process_record): Fix fall-through comments.
3626 * xcoffread.c (scan_xcoff_symtab): Move comment later.
3627 * symfile.c (section_is_mapped): Fix fall-through comment.
3628 * stabsread.c (define_symbol, read_member_functions): Fix
3629 fall-through comment.
3630 * s390-linux-tdep.c (s390_process_record): Fix fall-through
3632 * remote.c (remote_wait_as): Fix fall-through comment.
3633 * p-exp.y (yylex): Fix fall-through comment.
3634 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
3636 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
3637 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
3638 * jv-exp.y (yylex): Fix fall-through comment.
3639 * go-exp.y (lex_one_token): Fix fall-through comment.
3640 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
3641 fall-through comment.
3642 * f-exp.y (yylex): Fix fall-through comment.
3643 * dwarf2read.c (process_die): Fix fall-through comments.
3644 * dbxread.c (process_one_symbol): Fix fall-through comment.
3645 * d-exp.y (lex_one_token): Fix fall-through comment.
3646 * cp-name-parser.y (yylex): Fix fall-through comment.
3647 * coffread.c (coff_symtab_read): Fix fall-through comment.
3648 * c-exp.y (lex_one_token): Fix fall-through comment.
3649 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
3651 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
3654 2018-05-04 Tom Tromey <tom@tromey.com>
3657 * NEWS: Mention gdb.execute change.
3658 * gdbcmd.h (execute_control_command): Don't declare.
3659 * python/python.c (execute_gdb_command): Use read_command_lines_1,
3660 execute_control_commands, execute_control_commands_to_string.
3661 * cli/cli-script.h (execute_control_commands)
3662 (execute_control_commands_to_string): Declare.
3663 (execute_control_command): Add from_tty parameter.
3664 * cli/cli-script.c (execute_control_commands)
3665 (execute_control_commands_to_string): New functions.
3666 (execute_user_command): Use execute_control_commands.
3667 (execute_control_command_1): Add "from_tty" parameter. Update.
3668 (execute_control_command): Likewise.
3670 2018-05-04 Tom Tromey <tom@tromey.com>
3673 * NEWS: Mention that breakpoint commands are writable.
3674 * python/py-breakpoint.c (bppy_set_commands): New function.
3675 (breakpoint_object_getset) <"commands">: Use it.
3677 2018-05-04 Tom Tromey <tom@tromey.com>
3679 * tracepoint.c (actions_command): Update.
3680 * mi/mi-cmd-break.c (mi_command_line_array)
3681 (mi_command_line_array_cnt, mi_command_line_array_ptr)
3682 (mi_read_next_line): Remove.
3683 (mi_cmd_break_commands): Update.
3684 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
3686 * cli/cli-script.c (get_command_line): Update.
3687 (process_next_line): Use function_view. Constify.
3688 (recurse_read_control_structure, read_command_lines)
3689 (read_command_lines_1): Change argument types to function_view.
3690 (do_define_command, document_command): Update.
3691 * breakpoint.h (check_tracepoint_command): Don't declare.
3692 * breakpoint.c (check_tracepoint_command): Remove.
3693 (commands_command_1, create_tracepoint_from_upload): Update.
3695 2018-05-04 Tom Tromey <tom@tromey.com>
3698 * cli/cli-script.h (enum command_control_type) <define_control>:
3700 * cli/cli-script.c (multi_line_command_p): Handle define_control.
3701 (build_command_line, execute_control_command_1)
3702 (process_next_line): Likewise.
3703 (do_define_command): New function, extracted from define_command.
3704 (define_command): Use it.
3706 2018-05-04 Tom Tromey <tom@tromey.com>
3708 * tracepoint.c (actions_command): Update.
3709 * cli/cli-script.h (read_command_lines): Update.
3710 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
3711 (MAX_TMPBUF): Remove define.
3712 (define_command): Use string_printf.
3713 (document_command): Likewise.
3714 * breakpoint.c (commands_command_1): Update.
3716 2018-05-04 Tom Tromey <tom@tromey.com>
3718 * top.c (execute_command): Update.
3719 * cli/cli-script.h (print_command_lines): Now varargs.
3720 * cli/cli-script.c (print_command_lines): Now varargs.
3721 (execute_control_command_1) <case while_control, case if_control>:
3724 2018-05-04 Tom Tromey <tom@tromey.com>
3726 * tracepoint.c (all_tracepoint_actions): Rename from
3727 all_tracepoint_actions_and_cleanup. Change return type.
3728 (actions_command, encode_actions_1, encode_actions)
3729 (trace_dump_actions, tdump_command): Update.
3730 * remote.c (remote_download_command_source): Update.
3731 * python/python.c (gdbpy_eval_from_control_command)
3732 (python_command, python_interactive_command): Update.
3733 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
3734 * guile/guile.c (guile_command)
3735 (gdbscm_eval_from_control_command, guile_command): Update.
3736 * compile/compile.c (compile_code_command)
3737 (compile_print_command, compile_to_object): Update.
3738 * cli/cli-script.h (struct command_lines_deleter): New.
3739 (counted_command_line): New typedef.
3740 (struct command_line): Add constructor, destructor.
3741 <body_list>: Remove.
3742 <body_list_0, body_list_1>: New members.
3743 (command_line_up): Remove typedef.
3744 (read_command_lines, read_command_lines_1, get_command_line):
3746 (copy_command_lines): Don't declare.
3747 * cli/cli-script.c (build_command_line): Use "new".
3748 (get_command_line): Return counted_command_line.
3749 (print_command_lines, execute_user_command)
3750 (execute_control_command_1, while_command, if_command): Update.
3751 (realloc_body_list): Remove.
3752 (process_next_line, recurse_read_control_structure): Update.
3753 (read_command_lines, read_command_lines_1): Return counted_command_line.
3754 (free_command_lines): Use "delete".
3755 (copy_command_lines): Remove.
3756 (define_command, document_command, show_user_1): Update.
3757 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
3758 a counted_command_line.
3759 * breakpoint.h (counted_command_line): Remove typedef.
3760 (breakpoint_set_commands): Update.
3761 * breakpoint.c (check_no_tracepoint_commands)
3762 (validate_commands_for_breakpoint): Update.
3763 (breakpoint_set_commands): Change commands to be a
3764 counted_command_line.
3765 (commands_command_1, update_dprintf_command_list)
3766 (create_tracepoint_from_upload): Update.
3768 2018-05-04 Tom Tromey <tom@tromey.com>
3770 * cli/cli-decode.h (cmd_list_element): New constructor.
3771 (~cmd_list_element): New destructor.
3772 (struct cmd_list_element): Add initializers.
3773 * cli/cli-decode.c (do_add_cmd): Use "new".
3774 (delete_cmd): Use "delete".
3776 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3777 Pedro Alves <palves@redhat.com>
3779 PR breakpoints/19806 and support for PR external/20207.
3780 * NEWS: Mention Aarch64 watchpoint improvements.
3781 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
3782 watchpoints and PR external/20207 watchpoints.
3783 * nat/aarch64-linux-hw-point.c
3784 (kernel_supports_any_contiguous_range): New.
3785 (aarch64_watchpoint_offset): New.
3786 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
3787 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
3788 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
3789 (aarch64_align_watchpoint): New parameters aligned_offset_p and
3790 next_addr_orig_p. Support PR external/20207 watchpoints.
3791 (aarch64_downgrade_regs): New.
3792 (aarch64_dr_state_insert_one_point): New parameters offset and
3794 (aarch64_dr_state_remove_one_point): Likewise.
3795 (aarch64_handle_breakpoint): Update caller.
3796 (aarch64_handle_aligned_watchpoint): Likewise.
3797 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
3799 (aarch64_linux_set_debug_regs): Remove const from state. Call
3800 aarch64_downgrade_regs.
3801 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
3802 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
3803 (DR_CONTROL_MASK): ... this.
3804 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
3805 (unsigned int aarch64_watchpoint_offset): New prototype.
3806 (aarch64_linux_set_debug_regs): Remove const from state.
3807 * utils.c (align_up, align_down): Move to ...
3808 * common/common-utils.c (align_up, align_down): ... here.
3809 * utils.h (align_up, align_down): Move to ...
3810 * common/common-utils.h (align_up, align_down): ... here.
3812 2018-05-04 Joel Brobecker <brobecker@adacore.com>
3814 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
3815 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
3816 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
3817 Re-implement to match the ABI as summarized in GCC's
3818 gcc/config/sparc/sparc.c. All callers updated.
3819 (sparc32_store_arguments): Remove assertion.
3821 2018-05-04 Tom Tromey <tom@tromey.com>
3823 * printcmd.c: Don't include tui.h.
3824 (decode_format): Use skip_spaces.
3826 2018-05-04 Tom Tromey <tom@tromey.com>
3829 * printcmd.c (last_count): New global.
3830 (x_command): Use saved count when repeating.
3832 2018-05-04 Tom Tromey <tom@tromey.com>
3834 * nto-procfs.c (do_closedir_cleanup): Remove.
3835 (procfs_pidlist): Use gdb_dir_up.
3836 * procfs.c (do_closedir_cleanup): Remove.
3837 (proc_update_threads): Use gdb_dir_up.
3838 * common/filestuff.h (struct gdb_dir_deleter): New.
3839 (gdb_dir_up): New typedef.
3841 2018-05-04 Tom Tromey <tom@tromey.com>
3843 * ada-lang.c (print_mention_exception): Use std::string.
3845 2018-05-04 Tom Tromey <tom@tromey.com>
3847 * ada-lang.c (create_excep_cond_exprs): Update.
3848 (ada_exception_catchpoint_cond_string): Use std::string.
3850 2018-05-04 Tom Tromey <tom@tromey.com>
3852 * ada-lang.c (xget_renaming_scope): Return std::string.
3853 (old_renaming_is_invisible): Update.
3855 2018-05-04 Tom Tromey <tom@tromey.com>
3857 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
3858 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
3860 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3862 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
3864 2018-05-04 Tom Tromey <tom@tromey.com>
3866 * remote.c (remote_query_supported_append): Change type.
3867 (remote_check_symbols): Update.
3869 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
3872 * configure.ac: Prepend libpython.
3873 * python/python-config.py: Likewise.
3874 * configure: Regenerate.
3876 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
3878 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
3880 2018-05-03 Pedro Alves <palves@redhat.com>
3883 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
3884 override. Write 'true' instead of '1'.
3885 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
3888 2018-05-02 Pedro Alves <palves@redhat.com>
3890 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
3891 add_inf_child_target.
3892 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
3893 add_inf_child_target.
3894 * aix-thread.c (aix_thread_target_info): New.
3895 (aix_thread_target) <shortname, longname, doc>: Delete.
3897 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
3898 add_inf_child_target.
3899 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
3900 add_inf_child_target.
3901 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
3902 add_inf_child_target.
3903 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
3904 add_inf_child_target.
3905 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
3906 add_inf_child_target.
3907 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
3908 add_inf_child_target.
3909 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
3910 add_inf_child_target.
3911 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
3912 add_inf_child_target.
3913 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
3914 add_inf_child_target.
3915 * bfd-target.c (target_bfd_target_info): New.
3916 (target_bfd) <shortname, longname, doc>: Delete.
3918 * bsd-kvm.c (bsd_kvm_target_info): New.
3919 (bsd_kvm_target) <shortname, longname, doc>: Delete.
3921 (bsd_kvm_target::open): Rename to ...
3922 (bsd_kvm_target_open): ... this. Adjust.
3923 * bsd-uthread.c (bsd_uthread_target_info): New.
3924 (bsd_uthread_target) <shortname, longname, doc>: Delete.
3926 * corefile.c (core_file_command): Adjust.
3927 * corelow.c (core_target_info): New.
3928 (core_target) <shortname, longname, doc>: Delete.
3930 (core_target::open): Rename to ...
3931 (core_target_open): ... this. Adjust.
3932 * ctf.c (ctf_target_info): New.
3933 (ctf_target) <shortname, longname, doc>: Delete.
3935 (ctf_target::open): Rename to ...
3936 (ctf_target_open): ... this.
3937 (_initialize_ctf): Adjust.
3938 * exec.c (exec_target_info): New.
3939 (exec_target) <shortname, longname, doc>: Delete.
3941 (exec_target::open): Rename to ...
3942 (exec_target_open): ... this.
3943 * gdbcore.h (core_target_open): Declare.
3944 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
3945 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
3946 add_inf_child_target.
3947 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
3948 add_inf_child_target.
3949 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
3950 add_inf_child_target.
3951 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
3952 add_inf_child_target.
3953 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
3954 add_inf_child_target.
3955 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
3956 add_inf_child_target.
3957 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
3958 add_inf_child_target.
3959 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
3960 add_inf_child_target.
3961 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
3962 add_inf_child_target.
3963 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
3964 add_inf_child_target.
3965 * inf-child.c (inf_child_target_info): New.
3966 (inf_child_target::info): New.
3967 (inf_child_open_target): Remove 'target' parameter. Use
3968 get_native_target instead.
3969 (inf_child_target::open): Delete.
3970 (add_inf_child_target): New.
3971 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
3974 (add_inf_child_target): Declare.
3975 (inf_child_open_target): Declare.
3976 * linux-thread-db.c (thread_db_target_info): New.
3977 (thread_db_target) <shortname, longname, doc>: Delete.
3979 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
3980 add_inf_child_target.
3981 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
3982 add_inf_child_target.
3983 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
3984 add_inf_child_target.
3985 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
3986 add_inf_child_target.
3987 * make-target-delegates (print_class): Adjust.
3988 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
3989 add_inf_child_target.
3990 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
3991 add_inf_child_target.
3992 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
3993 add_inf_child_target.
3994 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
3995 add_inf_child_target.
3996 * nto-procfs.c (nto_native_target_info): New.
3997 (nto_procfs_target_native) <shortname, longname, doc>:
4000 (nto_procfs_target_info): New.
4001 (nto_procfs_target_procfs) <shortname, longname, doc>:
4004 (init_procfs_targets): Adjust.
4005 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
4006 add_inf_child_target.
4007 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
4008 add_inf_child_target.
4009 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
4010 add_inf_child_target.
4011 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
4012 add_inf_child_target.
4013 * ravenscar-thread.c (ravenscar_target_info): New.
4014 (ravenscar_thread_target) <shortname, longname, doc>:
4017 * record-btrace.c (record_btrace_target_info):
4018 (record_btrace_target) <shortname, longname, doc>: Delete.
4020 (record_btrace_target::open): Rename to ...
4021 (record_btrace_target_open): ... this. Adjust.
4022 * record-full.c (record_longname, record_doc): New.
4023 (record_full_base_target) <shortname, longname, doc>: Delete.
4025 (record_full_target_info): New.
4026 (record_full_target): <shortname>: Delete.
4028 (record_full_core_open_1, record_full_open_1): Update comments.
4029 (record_full_base_target::open): Rename to ...
4030 (record_full_open): ... this.
4031 (cmd_record_full_restore): Update.
4032 (_initialize_record_full): Update.
4033 * remote-sim.c (remote_sim_target_info): New.
4034 (gdbsim_target) <shortname, longname, doc>: Delete.
4036 (gdbsim_target::open): Rename to ...
4037 (gdbsim_target_open): ... this.
4038 (_initialize_remote_sim): Adjust.
4039 * remote.c (remote_doc): New.
4040 (remote_target_info): New.
4041 (remote_target) <shortname, longname, doc>: Delete.
4043 (extended_remote_target_info): New.
4044 (extended_remote_target) <shortname, longname, doc>: Delete.
4046 (remote_target::open_1): Make static. Adjust.
4047 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
4048 * s390-linux-nat.c (_initialize_s390_nat): Use
4049 add_inf_child_target.
4050 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
4051 add_inf_child_target.
4052 * sol-thread.c (thread_db_target_info): New.
4053 (sol_thread_target) <shortname, longname, doc>: Delete.
4055 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
4056 add_inf_child_target.
4057 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
4058 add_inf_child_target.
4059 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
4060 add_inf_child_target.
4061 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
4062 add_inf_child_target.
4063 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
4064 add_inf_child_target.
4065 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
4066 add_inf_child_target.
4067 * spu-linux-nat.c (_initialize_spu_nat): Use
4068 add_inf_child_target.
4069 * spu-multiarch.c (spu_multiarch_target_info): New.
4070 (spu_multiarch_target) <shortname, longname, doc>: Delete.
4072 * target-delegates.c: Regenerate.
4073 * target.c: Include <unordered_map>.
4074 (target_ops_p): Delete.
4075 (DEF_VEC_P(target_ops_p)): Delete.
4076 (target_factories): New.
4077 (test_target_info): New.
4078 (test_target_ops::info): New.
4079 (open_target): Adjust to use target_factories.
4080 (add_target_with_completer): Rename to ...
4081 (add_target): ... this. Change prototype. Register target_info
4082 and open callback in target_factories. Register target_info in
4083 command context instead of target_ops.
4084 (add_target): Delete old implementation.
4085 (add_deprecated_target_alias): Change prototype. Adjust.
4086 (the_native_target): New.
4087 (set_native_target, get_native_target): New.
4088 (find_default_run_target): Use the_native_target.
4089 (find_attach_target, find_run_target): Simplify.
4090 (target_ops::open): Delete.
4091 (dummy_target_info): New.
4092 (dummy_target::shortname, dummy_target::longname)
4093 (dummy_target::doc): Delete.
4094 (dummy_target::info): New.
4095 (debug_target::shortname, debug_target::longname)
4096 (debug_target::doc): Delete.
4097 (debug_target::info): New.
4098 * target.h (struct target_info): New.
4099 (target_ops::~target_ops): Add comment.
4100 (target_ops::info): New.
4101 (target_ops::shortname, target_ops::longname, target_ops::doc): No
4102 longer virtual. Implement in terms of target_info.
4103 (set_native_target, get_native_target): Declare.
4104 (target_open_ftype): New.
4105 (add_target, add_target_with_completer)
4106 (add_deprecated_target_alias): Change prototype.
4107 (test_target) <shortname, longname, doc>: Delete.
4109 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
4110 add_inf_child_target.
4111 * tracefile-tfile.c (tfile_target_info): New.
4112 (tfile_target) <shortname, longname, doc>: Delete.
4114 (tfile_target::open): Rename to ...
4115 (tfile_target_open): ... this.
4116 (_initialize_tracefile_tfile): Adjust.
4117 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
4118 add_inf_child_target.
4119 * windows-nat.c (_initialize_windows_nat): Use
4120 add_inf_child_target.
4121 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
4122 add_inf_child_target.
4124 2018-05-02 Pedro Alves <palves@redhat.com>
4126 * linux-nat.h (linux_nat_target) <low_new_thread,
4127 low_delete_thread, low_new_fork, low_forget_process,
4128 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
4129 New virtual methods.
4130 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
4131 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
4132 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
4133 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
4134 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
4136 * linux-fork.c (delete_fork): Adjust to call low method.
4137 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
4138 (linux_nat_new_fork, linux_nat_forget_process_hook)
4139 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
4140 (linux_nat_status_is_event):
4141 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
4142 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
4144 (sigtrap_is_event): Rename to ...
4145 (linux_nat_target::low_status_is_event): ... this.
4146 (linux_nat_set_status_is_event): Delete.
4147 (save_stop_reason, linux_nat_wait_1)
4148 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
4150 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
4151 (linux_nat_set_new_fork, linux_nat_set_forget_process)
4152 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
4153 (linux_nat_set_prepare_to_resume): Delete.
4154 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
4155 low virtual methods.
4156 * amd64-linux-nat.c: Likewise.
4157 * arm-linux-nat.c: Likewise.
4158 * i386-linux-nat.c: Likewise.
4159 * ia64-linux-nat.c: Likewise.
4160 * mips-linux-nat.c: Likewise.
4161 * ppc-linux-nat.c: Likewise.
4162 * s390-linux-nat.c: Likewise.
4163 * sparc64-linux-nat.c: Likewise.
4164 * x86-linux-nat.c: Likewise.
4165 * x86-linux-nat.h: Include "nat/x86-linux.h".
4166 (x86_linux_nat_target) <low_new_fork, low_forget_process,
4167 low_prepare_to_resume, low_new_thread, low_delete_thread>:
4170 2018-05-02 Pedro Alves <palves@redhat.com>
4172 * target.h (target_ops)
4173 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
4174 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
4175 stopped_by_watchpoint, have_continuable_watchpoint,
4176 stopped_data_address, watchpoint_addr_within_range,
4177 can_accel_watchpoint_condition, can_run, thread_alive,
4178 has_all_memory, has_memory, has_stack, has_registers,
4179 has_execution, can_async_p, is_async_p, supports_non_stop,
4180 always_non_stop_p, can_execute_reverse, supports_multi_process,
4181 supports_enable_disable_tracepoint,
4182 supports_disable_randomization, supports_string_tracing,
4183 supports_evaluation_of_breakpoint_conditions,
4184 can_run_breakpoint_commands, filesystem_is_local,
4185 can_download_tracepoint, get_trace_state_variable_value,
4186 set_trace_notes, get_tib_address, use_agent, can_use_agent,
4187 record_is_replaying, record_will_replay,
4188 augmented_libraries_svr4_read>: Adjust to return bool.
4189 * aarch64-linux-nat.c: All implementations adjusted.
4190 * aix-thread.c: All implementations adjusted.
4191 * arm-linux-nat.c: All implementations adjusted.
4192 * breakpoint.c: All implementations adjusted.
4193 * bsd-kvm.c: All implementations adjusted.
4194 * bsd-uthread.c: All implementations adjusted.
4195 * corelow.c: All implementations adjusted.
4196 * ctf.c: All implementations adjusted.
4197 * darwin-nat.c: All implementations adjusted.
4198 * darwin-nat.h: All implementations adjusted.
4199 * exec.c: All implementations adjusted.
4200 * fbsd-nat.c: All implementations adjusted.
4201 * fbsd-nat.h: All implementations adjusted.
4202 * gnu-nat.c: All implementations adjusted.
4203 * gnu-nat.h: All implementations adjusted.
4204 * go32-nat.c: All implementations adjusted.
4205 * ia64-linux-nat.c: All implementations adjusted.
4206 * inf-child.c: All implementations adjusted.
4207 * inf-child.h: All implementations adjusted.
4208 * inf-ptrace.c: All implementations adjusted.
4209 * inf-ptrace.h: All implementations adjusted.
4210 * linux-nat.c: All implementations adjusted.
4211 * linux-nat.h: All implementations adjusted.
4212 * mips-linux-nat.c: All implementations adjusted.
4213 * nto-procfs.c: All implementations adjusted.
4214 * ppc-linux-nat.c: All implementations adjusted.
4215 * procfs.c: All implementations adjusted.
4216 * ravenscar-thread.c: All implementations adjusted.
4217 * record-btrace.c: All implementations adjusted.
4218 * record-full.c: All implementations adjusted.
4219 * remote-sim.c: All implementations adjusted.
4220 * remote.c: All implementations adjusted.
4221 * s390-linux-nat.c: All implementations adjusted.
4222 * sol-thread.c: All implementations adjusted.
4223 * spu-multiarch.c: All implementations adjusted.
4224 * target-delegates.c: All implementations adjusted.
4225 * target.c: All implementations adjusted.
4226 * target.h: All implementations adjusted.
4227 * tracefile-tfile.c: All implementations adjusted.
4228 * tracefile.c: All implementations adjusted.
4229 * tracefile.h: All implementations adjusted.
4230 * windows-nat.c: All implementations adjusted.
4231 * x86-linux-nat.h: All implementations adjusted.
4232 * x86-nat.h: All implementations adjusted.
4234 2018-05-02 Pedro Alves <palves@redhat.com>
4236 * make-target-delegates (scan_target_h): Don't trim lines here.
4237 Replace sequences of tabs and/or whitespace with a single
4239 (top level, parsing methods): Trim each line before processing it
4242 2018-05-02 Pedro Alves <palves@redhat.com>
4243 John Baldwin <jhb@freebsd.org>
4245 * target.h (enum strata) <debug_stratum>: New.
4246 (struct target_ops) <all delegation methods>: Replace by C++
4247 virtual methods, and drop "to_" prefix. All references updated
4249 <to_shortname, to_longname, to_doc, to_data,
4250 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
4251 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
4252 virtual methods. All references updated throughout.
4253 <can_attach, supports_terminal_ours, can_create_inferior,
4254 get_thread_control_capabilities, attach_no_wait>: New
4256 <insert_breakpoint, remove_breakpoint>: Now
4257 TARGET_DEFAULT_NORETURN methods.
4258 <info_proc>: Now returns bool.
4260 (OPS_MAGIC): Delete.
4261 (current_target): Delete. All references replaced by references
4263 (target_stack): ... this. New.
4264 (target_shortname, target_longname): Adjust.
4265 (target_can_run): Now a function declaration.
4266 (default_child_has_all_memory, default_child_has_memory)
4267 (default_child_has_stack, default_child_has_registers)
4268 (default_child_has_execution): Remove target_ops parameter.
4269 (complete_target_initialization): Delete.
4270 (memory_breakpoint_target): New template class.
4271 (test_target_ops): Refactor as a C++ class with virtual methods.
4272 * make-target-delegates (NAME_PART): Tighten.
4273 (POINTER_PART, CP_SYMBOL): New.
4274 (SIMPLE_RETURN_PART): Reimplement.
4275 (VEC_RETURN_PART): Expect less.
4276 (RETURN_PART, VIRTUAL_PART): New.
4277 (METHOD): Adjust to C++ virtual methods.
4278 (scan_target_h): Remove reference to C99.
4279 (dname): Output "target_ops::" prefix.
4280 (write_function_header): Adjust to output a C++ class method.
4281 (write_declaration): New.
4282 (write_delegator): Adjust to output a C++ class method.
4283 (tdname): Output "dummy_target::" prefix.
4284 (write_tdefault, write_debugmethod): Adjust to output a C++ class
4286 (tdefault_names, debug_names): Delete.
4287 (return_types, tdefaults, styles, argtypes_array): New.
4288 (top level): All methods are delegators.
4290 (top level): Print dummy_target and debug_target classes.
4291 * target-delegates.c: Regenerate.
4292 * target-debug.h (target_debug_print_enum_info_proc_what)
4293 (target_debug_print_thread_control_capabilities)
4294 (target_debug_print_thread_info_p): New.
4295 * target.c (dummy_target): Delete.
4296 (the_dummy_target, the_debug_target): New.
4297 (target_stack): Now extern.
4298 (set_targetdebug): Push/unpush debug target.
4299 (default_child_has_all_memory, default_child_has_memory)
4300 (default_child_has_stack, default_child_has_registers)
4301 (default_child_has_execution): Remove target_ops parameter.
4302 (complete_target_initialization): Delete.
4303 (add_target_with_completer): No longer call
4304 complete_target_initialization.
4305 (target_supports_terminal_ours): Use regular delegation.
4306 (update_current_target): Delete.
4307 (push_target): No longer check magic number. Don't call
4308 update_current_target.
4309 (unpush_target): Don't call update_current_target.
4310 (target_is_pushed): No longer check magic number.
4311 (target_require_runnable): Skip for all stratums over
4313 (target_ops::info_proc): New.
4314 (target_info_proc): Use find_target_at and
4315 find_default_run_target.
4316 (target_supports_disable_randomization): Use regular delegation.
4317 (target_get_osdata): Use find_target_at.
4318 (target_ops::open, target_ops::close, target_ops::can_attach)
4319 (target_ops::attach, target_ops::can_create_inferior)
4320 (target_ops::create_inferior, target_ops::can_run)
4321 (target_can_run): New.
4322 (default_fileio_target): Use regular delegation.
4323 (target_ops::fileio_open, target_ops::fileio_pwrite)
4324 (target_ops::fileio_pread, target_ops::fileio_fstat)
4325 (target_ops::fileio_close, target_ops::fileio_unlink)
4326 (target_ops::fileio_readlink): New.
4327 (target_fileio_open_1, target_fileio_unlink)
4328 (target_fileio_readlink): Always call the target method. Handle
4330 (return_zero, return_zero_has_execution): Delete.
4331 (init_dummy_target): Delete.
4332 (dummy_target::dummy_target, dummy_target::shortname)
4333 (dummy_target::longname, dummy_target::doc)
4334 (debug_target::debug_target, debug_target::shortname)
4335 (debug_target::longname, debug_target::doc): New.
4336 (target_supports_delete_record): Use regular delegation.
4337 (setup_target_debug): Delete.
4338 (maintenance_print_target_stack): Skip debug_stratum.
4339 (initialize_targets): Instantiate the_dummy_target and
4341 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
4343 (target_auxv_search, fprint_target_auxv): Adjust.
4344 (info_auxv_command): Adjust to use target_stack.
4345 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
4346 * exceptions.c (print_flush): Handle a NULL target_stack.
4347 * regcache.c (target_ops_no_register): Refactor as class with
4350 * exec.c (exec_target): New class.
4351 (exec_ops): Now an exec_target.
4352 (exec_open, exec_close_1, exec_get_section_table)
4353 (exec_xfer_partial, exec_files_info, exec_has_memory)
4354 (exec_make_note_section): Refactor as exec_target methods.
4355 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
4357 (exec_target::find_memory_regions): New.
4358 (_initialize_exec): Don't call init_exec_ops.
4359 * gdbcore.h (exec_file_clear): Delete.
4361 * corefile.c (core_target): Delete.
4362 (core_file_command): Adjust.
4363 * corelow.c (core_target): New class.
4364 (the_core_target): New.
4365 (core_close): Remove target_ops parameter.
4366 (core_close_cleanup): Adjust.
4367 (core_target::close): New.
4368 (core_open, core_detach, get_core_registers, core_files_info)
4369 (core_xfer_partial, core_thread_alive, core_read_description)
4370 (core_pid_to_str, core_thread_name, core_has_memory)
4371 (core_has_stack, core_has_registers, core_info_proc): Rework as
4372 core_target methods.
4373 (ignore, core_remove_breakpoint, init_core_ops): Delete.
4374 (_initialize_corelow): Initialize the_core_target.
4375 * gdbcore.h (core_target): Delete.
4376 (the_core_target): New.
4378 * ctf.c: (ctf_target): New class.
4379 (ctf_ops): Now a ctf_target.
4380 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
4381 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
4382 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
4384 (init_ctf_ops): Delete.
4385 (_initialize_ctf): Don't call it.
4386 * tracefile-tfile.c (tfile_target): New class.
4387 (tfile_ops): Now a tfile_target.
4388 (tfile_open, tfile_close, tfile_files_info)
4389 (tfile_get_tracepoint_status, tfile_trace_find)
4390 (tfile_fetch_registers, tfile_xfer_partial)
4391 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
4392 Refactor as tfile_target methods.
4393 (tfile_xfer_partial_features): Remove target_ops parameter.
4394 (init_tfile_ops): Delete.
4395 (_initialize_tracefile_tfile): Don't call it.
4396 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
4397 (tracefile_has_stack, tracefile_has_registers)
4398 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
4399 tracefile_target methods.
4400 (init_tracefile_ops): Delete.
4401 (tracefile_target::tracefile_target): New.
4402 * tracefile.h: Include "target.h".
4403 (tracefile_target): New class.
4404 (init_tracefile_ops): Delete.
4406 * spu-multiarch.c (spu_multiarch_target): New class.
4407 (spu_ops): Now a spu_multiarch_target.
4408 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
4409 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4410 (spu_search_memory, spu_mourn_inferior): Refactor as
4411 spu_multiarch_target methods.
4412 (init_spu_ops): Delete.
4413 (_initialize_spu_multiarch): Remove references to init_spu_ops,
4414 complete_target_initialization.
4416 * ravenscar-thread.c (ravenscar_thread_target): New class.
4417 (ravenscar_ops): Now a ravenscar_thread_target.
4418 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
4419 (ravenscar_thread_alive, ravenscar_pid_to_str)
4420 (ravenscar_fetch_registers, ravenscar_store_registers)
4421 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
4422 (ravenscar_stopped_by_hw_breakpoint)
4423 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
4424 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
4425 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
4427 (init_ravenscar_thread_ops): Delete.
4428 (_initialize_ravenscar): Remove references to
4429 init_ravenscar_thread_ops and complete_target_initialization.
4431 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
4432 (bsd_uthread_target): New class.
4433 (bsd_uthread_ops): Now a bsd_uthread_target.
4434 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
4435 (bsd_uthread_close, bsd_uthread_mourn_inferior)
4436 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
4437 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
4438 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
4439 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
4440 (bsd_uthread_target): Delete function.
4441 (_initialize_bsd_uthread): Remove reference to
4442 complete_target_initialization.
4444 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
4445 (target_bfd): ... this new class.
4446 (target_bfd_xfer_partial, target_bfd_get_section_table)
4447 (target_bfd_close): Refactor as target_bfd methods.
4448 (target_bfd::~target_bfd): New.
4449 (target_bfd_reopen): Adjust.
4450 (target_bfd::close): New.
4452 * record-btrace.c (record_btrace_target): New class.
4453 (record_btrace_ops): Now a record_btrace_target.
4454 (record_btrace_open, record_btrace_stop_recording)
4455 (record_btrace_disconnect, record_btrace_close)
4456 (record_btrace_async, record_btrace_info)
4457 (record_btrace_insn_history, record_btrace_insn_history_range)
4458 (record_btrace_insn_history_from, record_btrace_call_history)
4459 (record_btrace_call_history_range)
4460 (record_btrace_call_history_from, record_btrace_record_method)
4461 (record_btrace_is_replaying, record_btrace_will_replay)
4462 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4463 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
4464 (record_btrace_store_registers, record_btrace_prepare_to_store)
4465 (record_btrace_to_get_unwinder)
4466 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
4467 (record_btrace_commit_resume, record_btrace_wait)
4468 (record_btrace_stop, record_btrace_can_execute_reverse)
4469 (record_btrace_stopped_by_sw_breakpoint)
4470 (record_btrace_supports_stopped_by_sw_breakpoint)
4471 (record_btrace_stopped_by_hw_breakpoint)
4472 (record_btrace_supports_stopped_by_hw_breakpoint)
4473 (record_btrace_update_thread_list, record_btrace_thread_alive)
4474 (record_btrace_goto_begin, record_btrace_goto_end)
4475 (record_btrace_goto, record_btrace_stop_replaying_all)
4476 (record_btrace_execution_direction)
4477 (record_btrace_prepare_to_generate_core)
4478 (record_btrace_done_generating_core): Refactor as
4479 record_btrace_target methods.
4480 (init_record_btrace_ops): Delete.
4481 (_initialize_record_btrace): Remove reference to
4482 init_record_btrace_ops.
4483 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
4484 the execution_direction global.
4485 (record_full_base_target, record_full_target)
4486 (record_full_core_target): New classes.
4487 (record_full_ops): Now a record_full_target.
4488 (record_full_core_ops): Now a record_full_core_target.
4489 (record_full_target::detach, record_full_target::disconnect)
4490 (record_full_core_target::disconnect)
4491 (record_full_target::mourn_inferior, record_full_target::kill):
4493 (record_full_open, record_full_close, record_full_async): Refactor
4494 as methods of the record_full_base_target class.
4495 (record_full_resume, record_full_commit_resume): Refactor
4496 as methods of the record_full_target class.
4497 (record_full_wait, record_full_stopped_by_watchpoint)
4498 (record_full_stopped_data_address)
4499 (record_full_stopped_by_sw_breakpoint)
4500 (record_full_supports_stopped_by_sw_breakpoint)
4501 (record_full_stopped_by_hw_breakpoint)
4502 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
4503 methods of the record_full_base_target class.
4504 (record_full_store_registers, record_full_xfer_partial)
4505 (record_full_insert_breakpoint, record_full_remove_breakpoint):
4506 Refactor as methods of the record_full_target class.
4507 (record_full_can_execute_reverse, record_full_get_bookmark)
4508 (record_full_goto_bookmark, record_full_execution_direction)
4509 (record_full_record_method, record_full_info, record_full_delete)
4510 (record_full_is_replaying, record_full_will_replay)
4511 (record_full_goto_begin, record_full_goto_end, record_full_goto)
4512 (record_full_stop_replaying): Refactor as methods of the
4513 record_full_base_target class.
4514 (record_full_core_resume, record_full_core_kill)
4515 (record_full_core_fetch_registers)
4516 (record_full_core_prepare_to_store)
4517 (record_full_core_store_registers, record_full_core_xfer_partial)
4518 (record_full_core_insert_breakpoint)
4519 (record_full_core_remove_breakpoint)
4520 (record_full_core_has_execution): Refactor
4521 as methods of the record_full_core_target class.
4522 (record_full_base_target::supports_delete_record): New.
4523 (init_record_full_ops): Delete.
4524 (init_record_full_core_ops): Delete.
4525 (record_full_save): Refactor as method of the
4526 record_full_base_target class.
4527 (_initialize_record_full): Remove references to
4528 init_record_full_ops and init_record_full_core_ops.
4530 * remote.c (remote_target, extended_remote_target): New classes.
4531 (remote_ops): Now a remote_target.
4532 (extended_remote_ops): Now an extended_remote_target.
4533 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
4534 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
4535 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
4536 (remote_pass_signals, remote_set_syscall_catchpoint)
4537 (remote_program_signals, )
4538 (remote_thread_always_alive): Remove target_ops parameter.
4539 (remote_thread_alive, remote_thread_name)
4540 (remote_update_thread_list, remote_threads_extra_info)
4541 (remote_static_tracepoint_marker_at)
4542 (remote_static_tracepoint_markers_by_strid)
4543 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
4544 (remote_open): Refactor as methods of remote_target.
4545 (extended_remote_open, extended_remote_detach)
4546 (extended_remote_attach, extended_remote_post_attach):
4547 (extended_remote_supports_disable_randomization)
4548 (extended_remote_create_inferior): : Refactor as method of
4549 extended_remote_target.
4550 (remote_set_permissions, remote_open_1, remote_detach)
4551 (remote_follow_fork, remote_follow_exec, remote_disconnect)
4552 (remote_resume, remote_commit_resume, remote_stop)
4553 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
4554 (remote_terminal_ours, remote_wait, remote_fetch_registers)
4555 (remote_prepare_to_store, remote_store_registers)
4556 (remote_flash_erase, remote_flash_done, remote_files_info)
4557 (remote_kill, remote_mourn, remote_insert_breakpoint)
4558 (remote_remove_breakpoint, remote_insert_watchpoint)
4559 (remote_watchpoint_addr_within_range)
4560 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
4561 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
4562 (remote_supports_stopped_by_sw_breakpoint)
4563 (remote_stopped_by_hw_breakpoint)
4564 (remote_supports_stopped_by_hw_breakpoint)
4565 (remote_stopped_by_watchpoint, remote_stopped_data_address)
4566 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4567 (remote_verify_memory): Refactor as methods of remote_target.
4568 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
4570 (remote_xfer_partial, remote_get_memory_xfer_limit)
4571 (remote_search_memory, remote_rcmd, remote_memory_map)
4572 (remote_pid_to_str, remote_get_thread_local_address)
4573 (remote_get_tib_address, remote_read_description): Refactor as
4574 methods of remote_target.
4575 (remote_target::fileio_open, remote_target::fileio_pwrite)
4576 (remote_target::fileio_pread, remote_target::fileio_close): New.
4577 (remote_hostio_readlink, remote_hostio_fstat)
4578 (remote_filesystem_is_local, remote_can_execute_reverse)
4579 (remote_supports_non_stop, remote_supports_disable_randomization)
4580 (remote_supports_multi_process, remote_supports_cond_breakpoints)
4581 (remote_supports_enable_disable_tracepoint)
4582 (remote_supports_string_tracing)
4583 (remote_can_run_breakpoint_commands, remote_trace_init)
4584 (remote_download_tracepoint, remote_can_download_tracepoint)
4585 (remote_download_trace_state_variable, remote_enable_tracepoint)
4586 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
4587 (remote_trace_start, remote_get_trace_status)
4588 (remote_get_tracepoint_status, remote_trace_stop)
4589 (remote_trace_find, remote_get_trace_state_variable_value)
4590 (remote_save_trace_data, remote_get_raw_trace_data)
4591 (remote_set_disconnected_tracing, remote_core_of_thread)
4592 (remote_set_circular_trace_buffer, remote_traceframe_info)
4593 (remote_get_min_fast_tracepoint_insn_len)
4594 (remote_set_trace_buffer_size, remote_set_trace_notes)
4595 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
4596 (remote_disable_btrace, remote_teardown_btrace)
4597 (remote_read_btrace, remote_btrace_conf)
4598 (remote_augmented_libraries_svr4_read, remote_load)
4599 (remote_pid_to_exec_file, remote_can_do_single_step)
4600 (remote_execution_direction, remote_thread_handle_to_thread_info):
4601 Refactor as methods of remote_target.
4602 (init_remote_ops, init_extended_remote_ops): Delete.
4603 (remote_can_async_p, remote_is_async_p, remote_async)
4604 (remote_thread_events, remote_upload_tracepoints)
4605 (remote_upload_trace_state_variables): Refactor as methods of
4607 (_initialize_remote): Remove references to init_remote_ops and
4608 init_extended_remote_ops.
4610 * remote-sim.c (gdbsim_target): New class.
4611 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
4612 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
4613 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
4614 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
4615 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
4616 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
4617 Refactor as methods of gdbsim_target.
4618 (gdbsim_ops): Now a gdbsim_target.
4619 (init_gdbsim_ops): Delete.
4620 (gdbsim_cntrl_c): Adjust.
4621 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
4623 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
4624 (the_amd64_linux_nat_target): New.
4625 (amd64_linux_fetch_inferior_registers)
4626 (amd64_linux_store_inferior_registers): Refactor as methods of
4627 amd64_linux_nat_target.
4628 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
4629 * i386-linux-nat.c: Don't include "linux-nat.h".
4630 (i386_linux_nat_target): New class.
4631 (the_i386_linux_nat_target): New.
4632 (i386_linux_fetch_inferior_registers)
4633 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
4634 as methods of i386_linux_nat_target.
4635 (_initialize_i386_linux_nat): Adjust. Set linux_target.
4636 * inf-child.c (inf_child_ops): Delete.
4637 (inf_child_fetch_inferior_registers)
4638 (inf_child_store_inferior_registers): Delete.
4639 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
4640 methods of inf_child_target.
4641 (inf_child_target::supports_terminal_ours)
4642 (inf_child_target::terminal_init)
4643 (inf_child_target::terminal_inferior)
4644 (inf_child_target::terminal_ours_for_output)
4645 (inf_child_target::terminal_ours, inf_child_target::interrupt)
4646 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
4648 (inf_child_open, inf_child_disconnect, inf_child_close)
4649 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
4650 (inf_child_post_startup_inferior, inf_child_can_run)
4651 (inf_child_pid_to_exec_file): Refactor as methods of
4653 (inf_child_follow_fork): Delete.
4654 (inf_child_target::can_create_inferior)
4655 (inf_child_target::can_attach): New.
4656 (inf_child_target::has_all_memory, inf_child_target::has_memory)
4657 (inf_child_target::has_stack, inf_child_target::has_registers)
4658 (inf_child_target::has_execution): New.
4659 (inf_child_fileio_open, inf_child_fileio_pwrite)
4660 (inf_child_fileio_pread, inf_child_fileio_fstat)
4661 (inf_child_fileio_close, inf_child_fileio_unlink)
4662 (inf_child_fileio_readlink, inf_child_use_agent)
4663 (inf_child_can_use_agent): Refactor as methods of
4665 (return_zero, inf_child_target): Delete.
4666 (inf_child_target::inf_child_target): New.
4667 * inf-child.h: Include "target.h".
4668 (inf_child_target): Delete function prototype.
4669 (inf_child_target): New class.
4670 (inf_child_open_target, inf_child_mourn_inferior)
4671 (inf_child_maybe_unpush_target): Delete.
4672 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
4673 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
4674 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
4675 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
4676 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
4677 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
4678 (inf_ptrace_wait, inf_ptrace_xfer_partial)
4679 (inf_ptrace_thread_alive, inf_ptrace_files_info)
4680 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
4681 methods of inf_ptrace_target.
4682 (inf_ptrace_target): Delete function.
4683 * inf-ptrace.h: Include "inf-child.h".
4684 (inf_ptrace_target): Delete function declaration.
4685 (inf_ptrace_target): New class.
4686 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
4687 * linux-nat.c (linux_target): New.
4688 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
4689 (linux_nat_target::~linux_nat_target): New.
4690 (linux_child_post_attach, linux_child_post_startup_inferior)
4691 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
4692 (linux_child_remove_fork_catchpoint)
4693 (linux_child_insert_vfork_catchpoint)
4694 (linux_child_remove_vfork_catchpoint)
4695 (linux_child_insert_exec_catchpoint)
4696 (linux_child_remove_exec_catchpoint)
4697 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
4698 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
4699 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
4700 (linux_nat_stopped_data_address)
4701 (linux_nat_stopped_by_sw_breakpoint)
4702 (linux_nat_supports_stopped_by_sw_breakpoint)
4703 (linux_nat_stopped_by_hw_breakpoint)
4704 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
4705 (linux_nat_kill, linux_nat_mourn_inferior)
4706 (linux_nat_xfer_partial, linux_nat_thread_alive)
4707 (linux_nat_update_thread_list, linux_nat_pid_to_str)
4708 (linux_nat_thread_name, linux_child_pid_to_exec_file)
4709 (linux_child_static_tracepoint_markers_by_strid)
4710 (linux_nat_is_async_p, linux_nat_can_async_p)
4711 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
4712 (linux_nat_supports_multi_process)
4713 (linux_nat_supports_disable_randomization, linux_nat_async)
4714 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
4715 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
4716 (linux_nat_fileio_open, linux_nat_fileio_readlink)
4717 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
4718 methods of linux_nat_target.
4719 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
4720 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
4722 (check_stopped_by_watchpoint): Adjust.
4723 (linux_xfer_partial): Delete.
4724 (linux_target_install_ops, linux_target, linux_nat_add_target):
4726 (linux_nat_target::linux_nat_target): New.
4727 * linux-nat.h: Include "inf-ptrace.h".
4728 (linux_nat_target): New.
4729 (linux_target, linux_target_install_ops, linux_nat_add_target):
4730 Delete function declarations.
4731 (linux_target): Declare global.
4732 * linux-thread-db.c (thread_db_target): New.
4733 (thread_db_target::thread_db_target): New.
4734 (thread_db_ops): Delete.
4735 (the_thread_db_target): New.
4736 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
4737 (thread_db_update_thread_list, thread_db_pid_to_str)
4738 (thread_db_extra_thread_info)
4739 (thread_db_thread_handle_to_thread_info)
4740 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
4741 (thread_db_resume): Refactor as methods of thread_db_target.
4742 (init_thread_db_ops): Delete.
4743 (_initialize_thread_db): Remove reference to init_thread_db_ops.
4744 * x86-linux-nat.c: Don't include "linux-nat.h".
4745 (super_post_startup_inferior): Delete.
4746 (x86_linux_nat_target::~x86_linux_nat_target): New.
4747 (x86_linux_child_post_startup_inferior)
4748 (x86_linux_read_description, x86_linux_enable_btrace)
4749 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
4750 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
4751 methods of x86_linux_nat_target.
4752 (x86_linux_create_target): Delete. Bits folded ...
4753 (x86_linux_add_target): ... here. Now takes a linux_nat_target
4755 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
4756 (x86_linux_nat_target): New class.
4757 (x86_linux_create_target): Delete.
4758 (x86_linux_add_target): Now takes a linux_nat_target pointer.
4759 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
4760 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
4761 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
4762 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
4763 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
4765 (x86_use_watchpoints): Delete.
4766 * x86-nat.h: Include "breakpoint.h" and "target.h".
4767 (x86_use_watchpoints): Delete.
4768 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
4769 (x86_stopped_by_watchpoint, x86_stopped_data_address)
4770 (x86_insert_watchpoint, x86_remove_watchpoint)
4771 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
4772 (x86_stopped_by_hw_breakpoint): New declarations.
4773 (x86_nat_target): New template class.
4775 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
4776 (the_ppc_linux_nat_target): New.
4777 (ppc_linux_fetch_inferior_registers)
4778 (ppc_linux_can_use_hw_breakpoint)
4779 (ppc_linux_region_ok_for_hw_watchpoint)
4780 (ppc_linux_ranged_break_num_registers)
4781 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
4782 (ppc_linux_insert_mask_watchpoint)
4783 (ppc_linux_remove_mask_watchpoint)
4784 (ppc_linux_can_accel_watchpoint_condition)
4785 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
4786 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
4787 (ppc_linux_watchpoint_addr_within_range)
4788 (ppc_linux_masked_watch_num_registers)
4789 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
4790 (ppc_linux_read_description): Refactor as methods of
4791 ppc_linux_nat_target.
4792 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
4794 * procfs.c (procfs_xfer_partial): Delete forward declaration.
4795 (procfs_target): New class.
4796 (the_procfs_target): New.
4797 (procfs_target): Delete function.
4798 (procfs_auxv_parse, procfs_attach, procfs_detach)
4799 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
4800 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
4801 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
4802 (procfs_create_inferior, procfs_update_thread_list)
4803 (procfs_thread_alive, procfs_pid_to_str)
4804 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
4805 (procfs_stopped_data_address, procfs_insert_watchpoint)
4806 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
4807 (proc_find_memory_regions, procfs_info_proc)
4808 (procfs_make_note_section): Refactor as methods of procfs_target.
4809 (_initialize_procfs): Adjust.
4810 * sol-thread.c (sol_thread_target): New class.
4811 (sol_thread_ops): Now a sol_thread_target.
4812 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
4813 (sol_thread_fetch_registers, sol_thread_store_registers)
4814 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
4815 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
4816 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
4817 (init_sol_thread_ops): Delete.
4818 (_initialize_sol_thread): Adjust. Remove references to
4819 init_sol_thread_ops and complete_target_initialization.
4821 * windows-nat.c (windows_nat_target): New class.
4822 (windows_fetch_inferior_registers)
4823 (windows_store_inferior_registers, windows_resume, windows_wait)
4824 (windows_attach, windows_detach, windows_pid_to_exec_file)
4825 (windows_files_info, windows_create_inferior)
4826 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
4827 (windows_close, windows_pid_to_str, windows_xfer_partial)
4828 (windows_get_tib_address, windows_get_ada_task_ptid)
4829 (windows_thread_name, windows_thread_alive): Refactor as
4830 windows_nat_target methods.
4831 (do_initial_windows_stuff): Adjust.
4832 (windows_target): Delete function.
4833 (_initialize_windows_nat): Adjust.
4835 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
4836 (darwin_mourn_inferior, darwin_kill_inferior)
4837 (darwin_create_inferior, darwin_attach, darwin_detach)
4838 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
4839 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
4840 (darwin_supports_multi_process): Refactor as darwin_nat_target
4842 (darwin_resume_to, darwin_files_info): Delete.
4843 (_initialize_darwin_inferior): Rename to ...
4844 (_initialize_darwin_nat): ... this. Adjust to C++ification.
4845 * darwin-nat.h: Include "inf-child.h".
4846 (darwin_nat_target): New class.
4847 (darwin_complete_target): Delete.
4848 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
4849 (darwin_target): New.
4850 (i386_darwin_fetch_inferior_registers)
4851 (i386_darwin_store_inferior_registers): Refactor as methods of
4853 (darwin_complete_target): Delete, with ...
4854 (_initialize_i386_darwin_nat): ... bits factored out here.
4856 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
4857 (the_alpha_linux_nat_target): New.
4858 (alpha_linux_register_u_offset): Refactor as
4859 alpha_linux_nat_target method.
4860 (_initialize_alpha_linux_nat): Adjust.
4861 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
4862 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
4863 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
4864 methods of linux_nat_trad_target.
4865 (linux_trad_target): Delete.
4866 * linux-nat-trad.h (linux_trad_target): Delete function.
4867 (linux_nat_trad_target): New class.
4868 * mips-linux-nat.c (mips_linux_nat_target): New class.
4869 (super_fetch_registers, super_store_registers, super_close):
4871 (the_mips_linux_nat_target): New.
4872 (mips64_linux_regsets_fetch_registers)
4873 (mips64_linux_regsets_store_registers)
4874 (mips64_linux_fetch_registers, mips64_linux_store_registers)
4875 (mips_linux_register_u_offset, mips_linux_read_description)
4876 (mips_linux_can_use_hw_breakpoint)
4877 (mips_linux_stopped_by_watchpoint)
4878 (mips_linux_stopped_data_address)
4879 (mips_linux_region_ok_for_hw_watchpoint)
4880 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
4881 (mips_linux_close): Refactor as methods of mips_linux_nat.
4882 (_initialize_mips_linux_nat): Adjust to C++ification.
4884 * aix-thread.c (aix_thread_target): New class.
4885 (aix_thread_ops): Now an aix_thread_target.
4886 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
4887 (aix_thread_fetch_registers, aix_thread_store_registers)
4888 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
4889 (aix_thread_thread_alive, aix_thread_pid_to_str)
4890 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
4891 Refactor as methods of aix_thread_target.
4892 (init_aix_thread_ops): Delete.
4893 (_initialize_aix_thread): Remove references to init_aix_thread_ops
4894 and complete_target_initialization.
4895 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
4896 (rs6000_nat_target): New class.
4897 (the_rs6000_nat_target): New.
4898 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
4899 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
4900 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
4901 (super_create_inferior): Delete.
4902 (_initialize_rs6000_nat): Adjust to C++ification.
4904 * arm-linux-nat.c (arm_linux_nat_target): New class.
4905 (the_arm_linux_nat_target): New.
4906 (arm_linux_fetch_inferior_registers)
4907 (arm_linux_store_inferior_registers, arm_linux_read_description)
4908 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
4909 (arm_linux_remove_hw_breakpoint)
4910 (arm_linux_region_ok_for_hw_watchpoint)
4911 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
4912 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
4913 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
4914 arm_linux_nat_target.
4915 (_initialize_arm_linux_nat): Adjust to C++ification.
4917 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
4918 (the_aarch64_linux_nat_target): New.
4919 (aarch64_linux_fetch_inferior_registers)
4920 (aarch64_linux_store_inferior_registers)
4921 (aarch64_linux_child_post_startup_inferior)
4922 (aarch64_linux_read_description)
4923 (aarch64_linux_can_use_hw_breakpoint)
4924 (aarch64_linux_insert_hw_breakpoint)
4925 (aarch64_linux_remove_hw_breakpoint)
4926 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
4927 (aarch64_linux_region_ok_for_hw_watchpoint)
4928 (aarch64_linux_stopped_data_address)
4929 (aarch64_linux_stopped_by_watchpoint)
4930 (aarch64_linux_watchpoint_addr_within_range)
4931 (aarch64_linux_can_do_single_step): Refactor as methods of
4932 aarch64_linux_nat_target.
4933 (super_post_startup_inferior): Delete.
4934 (_initialize_aarch64_linux_nat): Adjust to C++ification.
4936 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
4937 (the_hppa_linux_nat_target): New.
4938 (hppa_linux_fetch_inferior_registers)
4939 (hppa_linux_store_inferior_registers): Refactor as methods of
4940 hppa_linux_nat_target.
4941 (_initialize_hppa_linux_nat): Adjust to C++ification.
4943 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
4944 (the_ia64_linux_nat_target): New.
4945 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
4946 (ia64_linux_stopped_data_address)
4947 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
4948 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
4949 ia64_linux_nat_target methods.
4950 (super_xfer_partial): Delete.
4951 (_initialize_ia64_linux_nat): Adjust to C++ification.
4953 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
4954 (the_m32r_linux_nat_target): New.
4955 (m32r_linux_fetch_inferior_registers)
4956 (m32r_linux_store_inferior_registers): Refactor as
4957 m32r_linux_nat_target methods.
4958 (_initialize_m32r_linux_nat): Adjust to C++ification.
4960 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
4961 (the_m68k_linux_nat_target): New.
4962 (m68k_linux_fetch_inferior_registers)
4963 (m68k_linux_store_inferior_registers): Refactor as
4964 m68k_linux_nat_target methods.
4965 (_initialize_m68k_linux_nat): Adjust to C++ification.
4967 * s390-linux-nat.c (s390_linux_nat_target): New class.
4968 (the_s390_linux_nat_target): New.
4969 (s390_linux_fetch_inferior_registers)
4970 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
4971 (s390_insert_watchpoint, s390_remove_watchpoint)
4972 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
4973 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
4974 (s390_auxv_parse, s390_read_description): Refactor as methods of
4975 s390_linux_nat_target.
4976 (_initialize_s390_nat): Adjust to C++ification.
4978 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
4979 (the_sparc_linux_nat_target): New.
4980 (_initialize_sparc_linux_nat): Adjust to C++ification.
4981 * sparc-nat.c (sparc_fetch_inferior_registers)
4982 (sparc_store_inferior_registers): Remove target_ops parameter.
4983 * sparc-nat.h (sparc_fetch_inferior_registers)
4984 (sparc_store_inferior_registers): Remove target_ops parameter.
4985 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
4986 (the_sparc64_linux_nat_target): New.
4987 (_initialize_sparc64_linux_nat): Adjust to C++ification.
4989 * spu-linux-nat.c (spu_linux_nat_target): New class.
4990 (the_spu_linux_nat_target): New.
4991 (spu_child_post_startup_inferior, spu_child_post_attach)
4992 (spu_child_wait, spu_fetch_inferior_registers)
4993 (spu_store_inferior_registers, spu_xfer_partial)
4994 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
4996 (_initialize_spu_nat): Adjust to C++ification.
4998 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
4999 (the_tilegx_linux_nat_target): New.
5000 (fetch_inferior_registers, store_inferior_registers):
5001 Refactor as methods.
5002 (_initialize_tile_linux_nat): Adjust to C++ification.
5004 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
5005 (the_xtensa_linux_nat_target): New.
5006 (xtensa_linux_fetch_inferior_registers)
5007 (xtensa_linux_store_inferior_registers): Refactor as
5008 xtensa_linux_nat_target methods.
5009 (_initialize_xtensa_linux_nat): Adjust to C++ification.
5011 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
5012 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
5013 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
5014 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
5015 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
5016 (fbsd_stopped_by_sw_breakpoint)
5017 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
5018 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
5019 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
5020 (fbsd_post_startup_inferior, fbsd_post_attach)
5021 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
5022 (fbsd_set_syscall_catchpoint)
5023 (super_xfer_partial, super_resume, super_wait)
5024 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
5025 (fbsd_handle_debug_trap): Remove target_ops parameter.
5026 (fbsd_nat_add_target): Delete.
5027 * fbsd-nat.h: Include "inf-ptrace.h".
5028 (fbsd_nat_add_target): Delete.
5029 (USE_SIGTRAP_SIGINFO): Define.
5030 (fbsd_nat_target): New class.
5032 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
5033 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
5034 (amd64bsd_target): Delete.
5035 * amd64-bsd-nat.h: New file.
5036 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
5038 (amd64_fbsd_nat_target): New class.
5039 (the_amd64_fbsd_nat_target): New.
5040 (amd64fbsd_read_description): Refactor as method of
5041 amd64_fbsd_nat_target.
5042 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
5043 (_initialize_amd64fbsd_nat): Adjust to C++ification.
5044 * amd64-nat.h (amd64bsd_target): Delete function declaration.
5045 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
5046 (i386bsd_store_inferior_registers): Remove target_ops parameter.
5047 (i386bsd_target): Delete.
5048 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
5049 (i386bsd_fetch_inferior_registers)
5050 (i386bsd_store_inferior_registers): Declare.
5051 (i386_bsd_nat_target): New class.
5052 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
5053 (the_i386_fbsd_nat_target): New.
5054 (i386fbsd_resume, i386fbsd_read_description): Refactor as
5055 i386_fbsd_nat_target methods.
5056 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
5057 (_initialize_i386fbsd_nat): Adjust to C++ification.
5058 * x86-bsd-nat.c (super_mourn_inferior): Delete.
5059 (x86bsd_mourn_inferior, x86bsd_target): Delete.
5060 (_initialize_x86_bsd_nat): Adjust to C++ification.
5061 * x86-bsd-nat.h: Include "x86-nat.h".
5062 (x86bsd_target): Delete declaration.
5063 (x86bsd_nat_target): New class.
5065 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
5066 (the_aarch64_fbsd_nat_target): New.
5067 (aarch64_fbsd_fetch_inferior_registers)
5068 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
5069 aarch64_fbsd_nat_target.
5070 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
5071 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
5072 (the_alpha_bsd_nat_target): New.
5073 (alphabsd_fetch_inferior_registers)
5074 (alphabsd_store_inferior_registers): Refactor as
5075 alpha_bsd_nat_target methods.
5076 (_initialize_alphabsd_nat): Refactor as methods of
5077 alpha_bsd_nat_target.
5078 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
5079 (the_amd64_nbsd_nat_target): New.
5080 (_initialize_amd64nbsd_nat): Adjust to C++ification.
5081 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
5082 (the_amd64_obsd_nat_target): New.
5083 (_initialize_amd64obsd_nat): Adjust to C++ification.
5084 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
5085 (the_arm_fbsd_nat_target): New.
5086 (arm_fbsd_fetch_inferior_registers)
5087 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
5088 (_initialize_arm_fbsd_nat): Refactor as methods of
5089 arm_fbsd_nat_target.
5090 (_initialize_arm_fbsd_nat): Adjust to C++ification.
5091 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
5092 (the_arm_netbsd_nat_target): New.
5093 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
5094 arm_netbsd_nat_target.
5095 (_initialize_arm_netbsd_nat): Adjust to C++ification.
5096 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
5097 (the_hppa_nbsd_nat_target): New.
5098 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
5099 hppa_nbsd_nat_target methods.
5100 (_initialize_hppanbsd_nat): Adjust to C++ification.
5101 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
5102 (the_hppa_obsd_nat_target): New.
5103 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
5104 methods of hppa_obsd_nat_target.
5105 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
5107 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
5108 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
5110 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
5111 (_initialize_i386obsd_nat): Use add_target.
5112 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
5113 (the_m68k_bsd_nat_target): New.
5114 (m68kbsd_fetch_inferior_registers)
5115 (m68kbsd_store_inferior_registers): Refactor as methods of
5116 m68k_bsd_nat_target.
5117 (_initialize_m68kbsd_nat): Adjust to C++ification.
5118 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
5119 (the_mips_fbsd_nat_target): New.
5120 (mips_fbsd_fetch_inferior_registers)
5121 (mips_fbsd_store_inferior_registers): Refactor as methods of
5122 mips_fbsd_nat_target.
5123 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
5125 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
5126 (the_mips_nbsd_nat_target): New.
5127 (mipsnbsd_fetch_inferior_registers)
5128 (mipsnbsd_store_inferior_registers): Refactor as methods of
5129 mips_nbsd_nat_target.
5130 (_initialize_mipsnbsd_nat): Adjust to C++ification.
5131 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
5132 (the_mips64_obsd_nat_target): New.
5133 (mips64obsd_fetch_inferior_registers)
5134 (mips64obsd_store_inferior_registers): Refactor as methods of
5135 mips64_obsd_nat_target.
5136 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
5138 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
5140 * nbsd-nat.h: Include "inf-ptrace.h".
5141 (nbsd_nat_target): New class.
5142 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
5143 (obsd_wait): Refactor as methods of obsd_nat_target.
5144 (obsd_add_target): Delete.
5145 * obsd-nat.h: Include "inf-ptrace.h".
5146 (obsd_nat_target): New class.
5147 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
5148 (the_ppc_fbsd_nat_target): New.
5149 (ppcfbsd_fetch_inferior_registers)
5150 (ppcfbsd_store_inferior_registers): Refactor as methods of
5151 ppc_fbsd_nat_target.
5152 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
5154 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
5155 (the_ppc_nbsd_nat_target): New.
5156 (ppcnbsd_fetch_inferior_registers)
5157 (ppcnbsd_store_inferior_registers): Refactor as methods of
5158 ppc_nbsd_nat_target.
5159 (_initialize_ppcnbsd_nat): Adjust to C++ification.
5160 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
5161 (the_ppc_obsd_nat_target): New.
5162 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
5163 methods of ppc_obsd_nat_target.
5164 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
5166 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
5167 (the_sh_nbsd_nat_target): New.
5168 (shnbsd_fetch_inferior_registers)
5169 (shnbsd_store_inferior_registers): Refactor as methods of
5171 (_initialize_shnbsd_nat): Adjust to C++ification.
5172 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
5173 (inf_ptrace_xfer_partial): Delete.
5174 (sparc_xfer_partial, sparc_target): Delete.
5175 * sparc-nat.h (sparc_fetch_inferior_registers)
5176 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
5177 (sparc_target): Delete function declaration.
5178 (sparc_target): New template class.
5179 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
5180 (_initialize_sparcnbsd_nat): Adjust to C++ification.
5181 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
5182 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
5184 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
5185 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
5186 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
5187 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
5189 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
5190 (the_vax_bsd_nat_target): New.
5191 (vaxbsd_fetch_inferior_registers)
5192 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
5194 (_initialize_vaxbsd_nat): Adjust to C++ification.
5196 * bsd-kvm.c (bsd_kvm_target): New class.
5197 (bsd_kvm_ops): Now a bsd_kvm_target.
5198 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
5199 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
5200 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
5202 (bsd_kvm_return_one): Delete.
5203 (bsd_kvm_add_target): Adjust to C++ification.
5205 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
5206 (nto_procfs_target_procfs): New classes.
5207 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
5208 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
5209 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
5210 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
5211 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
5212 (procfs_remove_hw_breakpoint, procfs_resume)
5213 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
5214 (procfs_kill_inferior, procfs_store_registers)
5215 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
5216 as methods of nto_procfs_target.
5217 (nto_procfs_ops): Now an nto_procfs_target_procfs.
5218 (nto_native_ops): Delete.
5219 (procfs_open, procfs_native_open): Delete.
5220 (nto_native_ops): Now an nto_procfs_target_native.
5221 (init_procfs_targets): Adjust to C++ification.
5222 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
5223 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
5224 Refactor as methods of nto_procfs_target.
5226 * go32-nat.c (go32_nat_target): New class.
5227 (the_go32_nat_target): New.
5228 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
5229 (go32_store_registers, go32_xfer_partial, go32_files_info)
5230 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
5231 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
5232 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
5233 (go32_pid_to_str): Refactor as methods of go32_nat_target.
5234 (go32_target): Delete.
5235 (_initialize_go32_nat): Adjust to C++ification.
5237 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
5238 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
5239 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
5240 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
5242 (gnu_target): Delete.
5243 * gnu-nat.h (gnu_target): Delete.
5244 (gnu_nat_target): New class.
5245 * i386-gnu-nat.c (gnu_base_target): New.
5246 (i386_gnu_nat_target): New class.
5247 (the_i386_gnu_nat_target): New.
5248 (_initialize_i386gnu_nat): Adjust to C++ification.
5250 2018-05-02 Pedro Alves <palves@redhat.com>
5252 * bfd-target.c (target_bfd_xclose): Rename to ...
5253 (target_bfd_close): ... this.
5254 (target_bfd_reopen): Adjust.
5255 * target.c (target_close): Remove references to to_xclose.
5256 * target.h (target_ops::to_xclose): Delete.
5257 (target_ops::to_close): Update comments.
5259 2018-05-02 Pedro Alves <palves@redhat.com>
5261 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
5263 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
5264 * inf-ptrace.c (inf_ptrace_register_u_offset)
5265 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
5266 (inf_ptrace_store_register, inf_ptrace_store_registers)
5267 (inf_ptrace_trad_target): Move to ...
5268 * linux-nat-trad.c: ... this new file.
5269 * linux-nat-trad.h: New file.
5270 * linux-nat.c (linux_target_install_ops): Make extern.
5271 (linux_trad_target): Delete.
5272 * linux-nat.h (linux_trad_target): Delete declaration.
5273 (linux_target_install_ops): Declare.
5274 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
5277 2018-05-02 Pedro Alves <palves@redhat.com>
5279 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
5280 procfs_target/add_target here.
5281 * procfs.c (procfs_target): Make static.
5282 (_initialize_procfs): Call add_target here.
5283 * procfs.h (struct target_ops): Remove forward declaration.
5284 (procfs_target): Remove declaration.
5285 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
5287 2018-05-02 Pedro Alves <palves@redhat.com>
5289 * procfs.c (procfs_stopped_by_watchpoint)
5290 (procfs_insert_watchpoint, procfs_remove_watchpoint)
5291 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
5293 (procfs_use_watchpoints): Delete, move contents...
5294 (procfs_target): ... here.
5295 * procfs.h (procfs_use_watchpoints): Delete declaration.
5296 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
5297 procfs_use_watchpoints.
5298 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
5299 procfs_use_watchpoints.
5301 2018-05-02 Tom Tromey <tom@tromey.com>
5304 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
5305 and var_zuinteger_unlimited.
5306 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
5307 and PARAM_ZUINTEGER_UNLIMITED.
5308 (set_parameter_value): Handle var_zuinteger and
5309 var_zuinteger_unlimited.
5310 (add_setshow_generic): Likewise.
5311 (parmpy_init): Likewise.
5313 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
5316 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
5317 pointer is not null before dereferencing it.
5319 2018-04-30 Tom Tromey <tom@tromey.com>
5321 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
5324 2018-04-30 Tom Tromey <tom@tromey.com>
5326 * breakpoint.c (mention): Remove use of is_mi_like_p.
5327 (print_mention_ranged_breakpoint): Likewise.
5328 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
5331 2018-04-30 Tom Tromey <tom@tromey.com>
5333 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
5335 2018-04-30 Tom Tromey <tom@tromey.com>
5337 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
5338 (info_spu_event_command): Remove some uses of is_mi_like_p.
5340 2018-04-30 Tom Tromey <tom@tromey.com>
5342 * python/py-framefilter.c (py_print_single_arg)
5343 (enumerate_locals, py_print_args, py_print_frame): Remove some
5344 uses of is_mi_like_p.
5346 2018-04-30 Tom Tromey <tom@tromey.com>
5349 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
5350 * ui-out.h (ui_out::is_mi_like_p): Now const.
5351 (ui_out::do_is_mi_like_p): Now const.
5352 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
5354 2018-04-30 Tom Tromey <tom@tromey.com>
5356 * varobj.c (varobj_set_visualizer): Use new_reference.
5357 * python/python.c (gdbpy_decode_line): Use new_reference.
5358 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
5361 2018-04-30 Tom Tromey <tom@tromey.com>
5363 * varobj.c (install_new_value): Use new_reference.
5364 * value.h (value_incref): Return void. Swap intro comment with
5366 * value.c (set_value_parent): Use new_reference.
5367 (value_incref): Return void. Update intro comment.
5368 (release_value): Use new_reference.
5369 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
5371 2018-04-30 Tom Tromey <tom@tromey.com>
5373 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
5374 * gdb_bfd.h (new_bfd_ref): Remove.
5375 (gdb_bfd_open): Update comment.
5376 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5377 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
5378 (gdb_bfd_fdopenr): Use new_reference.
5379 * exec.c (exec_file_attach): Use new_reference.
5381 2018-04-30 Tom Tromey <tom@tromey.com>
5383 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
5386 2018-04-30 Tom Tromey <tom@tromey.com>
5388 * jit.c (jit_read_code_entry): Use type_align.
5389 * i386-tdep.c (i386_gdbarch_init): Don't call
5390 set_gdbarch_long_long_align_bit.
5391 * gdbarch.sh: Remove long_long_align_bit.
5392 * gdbarch.c, gdbarch.h: Rebuild.
5393 * arc-tdep.c (arc_type_align): New function.
5394 (arc_gdbarch_init): Use arc_type_align. Don't call
5395 set_gdbarch_long_long_align_bit.
5397 2018-04-30 Tom Tromey <tom@tromey.com>
5399 * rust-lang.c (rust_type_alignment): Remove.
5400 (rust_composite_type): Use type_align.
5402 2018-04-30 Tom Tromey <tom@tromey.com>
5404 * NEWS: Mention Type.align.
5405 * python/py-type.c (typy_get_alignof): New function.
5406 (type_object_getset): Add "alignof".
5408 2018-04-30 Tom Tromey <tom@tromey.com>
5412 * std-operator.def (UNOP_ALIGNOF): New operator.
5413 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
5415 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
5416 * c-lang.c (c_op_print_tab): Add alignof.
5417 * c-exp.y (ALIGNOF): New token.
5418 (exp): Add "ALIGNOF" production.
5419 (ident_tokens): Add _Alignof and alignof.
5421 2018-04-30 Tom Tromey <tom@tromey.com>
5423 * i386-tdep.c (i386_type_align): New function.
5424 (i386_gdbarch_init): Update.
5425 * gdbarch.sh (type_align): New method.
5426 * gdbarch.c, gdbarch.h: Rebuild.
5427 * arch-utils.h (default_type_align): Declare.
5428 * arch-utils.c (default_type_align): New function.
5429 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
5430 (struct type) <align_log2>: New field.
5431 <instance_flags>: Now a bitfield.
5432 (TYPE_RAW_ALIGN): New macro.
5433 (type_align, type_raw_align, set_type_align): Declare.
5434 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
5436 * dwarf2read.c (quirk_rust_enum): Set type alignment.
5437 (get_alignment, maybe_set_alignment): New functions.
5438 (read_structure_type, read_enumeration_type, read_array_type)
5439 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
5440 (read_subrange_type, read_base_type): Set type alignment.
5442 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
5444 * dwarf2read.c (read_index_from_section): Use bool.
5446 2018-04-29 Fabian Groffen <grobian@gentoo.org>
5449 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
5452 2018-04-29 John Reiser <jreiser@BitWagon.com>
5455 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
5456 last step, and do it atomically.
5458 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
5460 * compile/compile-c-types.c (convert_int, convert_float):
5463 2018-04-27 Tom Tromey <tom@tromey.com>
5466 * rust-lang.c (rust_inclusive_range_type_p): New function.
5467 (rust_range): Handle inclusive ranges.
5468 (rust_compute_range): Likewise.
5469 * rust-exp.y (struct rust_op) <inclusive>: New field.
5470 (DOTDOTEQ): New constant.
5471 (range_expr): Add "..=" productions.
5472 (operator_tokens): Add "..=" token.
5473 (ast_range): Add "inclusive" parameter.
5474 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
5476 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
5478 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
5479 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
5481 * expprint.c (print_subexp_standard): Handle new bounds values.
5482 (dump_subexp_body_standard): Likewise.
5484 2018-04-27 Tom Tromey <tom@tromey.com>
5486 * configure: Rebuild.
5487 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
5488 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
5490 (class symbol_needs_eval_context): Likewise.
5491 * dwarf2read.c (mock_mapped_index::symbol_name_count)
5492 (mock_mapped_index::symbol_name_at): Use "override". Remove
5494 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
5496 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
5497 * aarch64-tdep.c (instruction_reader::read): Use "override".
5498 (instruction_reader_test::read): Likewise.
5499 * arm-tdep.c (instruction_reader::read): Use "override".
5500 (instruction_reader_thumb::read): Likewise.
5502 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
5505 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
5506 instead of remote_send.
5507 (remote_send): Remove.
5509 2018-04-26 Pedro Alves <palves@redhat.com>
5511 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
5512 find_function_start_sal instead of find_pc_line.
5514 2018-04-26 Pedro Alves <palves@redhat.com>
5516 * breakpoint.c (set_breakpoint_location_function): Handle
5518 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
5519 * elfread.c (elf_symtab_read): Give data symbols with
5520 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
5521 (elf_rel_plt_read): Update comment.
5522 * linespec.c (convert_linespec_to_sals): Handle
5524 (minsym_found): Handle mst_data_gnu_ifunc.
5525 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
5526 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
5527 * parse.c (find_minsym_type_and_address): Handle
5529 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
5530 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
5531 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
5533 <mst_data_gnu_ifunc>: New enumerator.
5535 2018-04-26 Pedro Alves <palves@redhat.com>
5537 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
5538 (lookup_minimal_symbol_by_pc_section): ... this. Replace
5539 'want_trampoline' parameter by a lookup_msym_prefer parameter.
5541 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
5542 (lookup_minimal_symbol_by_pc): Adjust.
5543 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
5544 (lookup_solib_trampoline_symbol_by_pc): Adjust.
5545 * minsyms.h (lookup_msym_prefer): New enum.
5546 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
5547 parameter by a lookup_msym_prefer parameter.
5549 2018-04-26 Pedro Alves <palves@redhat.com>
5551 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
5552 ends in "@plt" instead of looking at the symbol's section.
5554 2018-04-26 Pedro Alves <palves@redhat.com>
5556 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
5558 (find_pc_partial_function_gnu_ifunc): Rename to ...
5559 (find_pc_partial_function): ... this, and remove references to
5561 (find_pc_partial_function): Delete old implementation.
5562 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
5564 2018-04-26 Pedro Alves <palves@redhat.com>
5566 * linespec.c (struct bound_minimal_symbol_search_key): New.
5567 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
5568 skip first line if we found a GNU ifunc minimal symbol by name.
5569 (compare_msymbols): Change parameters to work with a destructured
5571 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
5574 2018-04-26 Pedro Alves <palves@redhat.com>
5576 * breakpoint.c (set_breakpoint_location_function): Don't resolve
5577 ifunc targets here. Instead, if we have an ifunc minsym, use its
5579 (add_location_to_breakpoint): Store the minsym and the objfile in
5580 the breakpoint location.
5581 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
5582 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
5583 Record the minsym in the sal.
5584 * symtab.h (symtab_and_line) <msymbol>: New field.
5586 2018-04-26 Pedro Alves <palves@redhat.com>
5588 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
5589 unless we actually resolved the ifunc.
5591 2018-04-26 Pedro Alves <palves@redhat.com>
5593 * c-exp.y (variable production): Prefer ifunc minsyms over
5594 regular function symbols.
5595 * symtab.c (find_gnu_ifunc): New function.
5596 * minsyms.h (lookup_msym_prefer): New enum.
5597 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
5598 parameter by a lookup_msym_prefer parameter.
5599 * symtab.h (find_gnu_ifunc): New declaration.
5601 2018-04-26 Pedro Alves <palves@redhat.com>
5603 * blockframe.c (find_gnu_ifunc_target_type): New function.
5604 (find_function_type): New.
5605 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
5606 return a value with a memory address.
5607 (eval_call): For calls to GNU ifunc functions, try to find the
5608 type of the target function from the type that the resolver
5610 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
5612 * infcall.c (find_function_return_type): Delete.
5613 (find_function_addr): Add 'function_type' parameter. For calls to
5614 GNU ifunc functions, try to find the type of the target function
5615 from the type that the resolver returns, and return it via
5617 (call_function_by_hand_dummy): Adjust to use the function type
5618 returned by find_function_addr.
5619 (find_function_addr): Add 'function_type' parameter and move
5621 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
5624 2018-04-26 Pedro Alves <palves@redhat.com>
5626 * c-exp.y (variable production): Skip finding an alias for ifunc
5629 2018-04-26 Pedro Alves <palves@redhat.com>
5631 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
5633 2018-04-25 Pedro Alves <palves@redhat.com>
5635 * infcmd.c (kill_command): Print the pid as string, not the whole
5636 thread's ptid. Add comment. s/has been killed/killed/ in output
5638 * remote.c (remote_detach_1): Print the pid as string, not the
5639 whole thread's ptid.
5641 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5642 Sergio Durigan Junior <sergiodj@redhat.com>
5643 Pedro Alves <palves@redhat.com>
5645 * infcmd.c (kill_command): Print message when inferior has
5647 * inferior.c (print_inferior_events): Remove 'static'. Set as
5649 (add_inferior): Improve message printed when
5650 'print_inferior_events' is on.
5651 (exit_inferior): Remove message printed when
5652 'print_inferior_events' is on.
5653 (detach_inferior): Improve message printed when
5654 'print_inferior_events' is on.
5655 (initialize_inferiors): Use 'add_inferior_silent' to set
5656 'current_inferior_'.
5657 * inferior.h (print_inferior_events): Declare here as
5659 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
5660 '[Detaching...]' messages when 'print_inferior_events' is on.
5661 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
5662 as prefix/suffix for messages. Remove periods. Fix erroneous
5663 'Detaching after fork from child...', replace it by '... from
5665 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
5666 prefix/suffix when printing 'Detaching...' messages. Print
5667 them when 'print_inferior_events' is on.
5668 * remote.c (remote_detach_1): Print message when detaching
5669 from inferior and '!is_fork_parent'.
5671 2018-04-24 Tom Tromey <tom@tromey.com>
5673 * cli-out.h: Reindent.
5675 2018-04-24 Tom Tromey <tom@tromey.com>
5677 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
5678 (cli_ui_out::do_field_string): Use fputs_filtered.
5679 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
5681 2018-04-23 Tom Tromey <tom@tromey.com>
5683 * guile/scm-frame.c (gdbscm_frame_read_var): Use
5684 gdb::unique_xmalloc_ptr.
5686 2018-04-23 Tom Tromey <tom@tromey.com>
5688 * configure: Rebuild.
5690 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
5693 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
5694 prepare_for_testing. Set normal_bp to r_debug_state if target
5697 2018-04-21 Pedro Alves <palves@redhat.com>
5698 Rajendra SY <rajendra.sy@gmail.com>
5700 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
5701 * remote.c (extended_remote_attach): In all-stop mode, mark the
5702 thread as executing.
5704 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5706 * thread.c (thread_apply_all_command): Fix comment.
5707 (thread_command): Fix comment.
5709 2018-04-10 Alan Hayward <alan.hayward@arm.com>
5711 * common/tdesc.h (tdesc_create_feature): Remove xml filename
5713 * features/aarch64-core.c (create_feature_aarch64_core):
5715 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
5717 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
5719 * features/i386/32bit-avx512.c
5720 (create_feature_i386_32bit_avx512): Likewise.
5721 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
5723 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
5725 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
5727 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
5729 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
5731 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
5733 * features/i386/64bit-avx512.c
5734 (create_feature_i386_64bit_avx512): Likewise.
5735 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
5737 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
5739 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
5741 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
5743 * features/i386/64bit-segments.c
5744 (create_feature_i386_64bit_segments): Likewise.
5745 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
5747 * features/i386/x32-core.c
5748 (create_feature_i386_x32_core): Likewise.
5749 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
5750 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
5751 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
5752 * target-descriptions.c: In generated code, don't pass xml
5755 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5757 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
5758 (print_xml_feature::visit_post): Likewise.
5759 (print_xml_feature::visit): Likewise.
5760 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
5761 (print_xml_feature): Add new class.
5762 * regformats/regdat.sh: Null xmltarget on feature targets.
5763 * target-descriptions.c (struct target_desc): Add xmltarget.
5764 (maintenance_check_tdesc_xml_convert): Add unittest function.
5765 (tdesc_get_features_xml): Add function to get xml.
5766 (maintenance_check_xml_descriptions): Test xml generation.
5767 * xml-tdesc.c (string_read_description_xml): Add function.
5768 * xml-tdesc.h (string_read_description_xml): Add declaration.
5770 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5772 * features/Makefile: Add feature marker to targets with new style
5773 target descriptions.
5774 * regformats/aarch64.dat: Regenerate.
5775 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
5776 * regformats/i386/amd64-avx-linux.dat: Likewise.
5777 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
5778 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
5779 * regformats/i386/amd64-linux.dat: Likewise.
5780 * regformats/i386/amd64-mpx-linux.dat: Likewise.
5781 * regformats/i386/amd64.dat: Likewise.
5782 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
5783 * regformats/i386/i386-avx-linux.dat: Likewise.
5784 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
5785 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
5786 * regformats/i386/i386-linux.dat: Likewise.
5787 * regformats/i386/i386-mmx-linux.dat: Likewise.
5788 * regformats/i386/i386-mpx-linux.dat: Likewise.
5789 * regformats/i386/i386.dat: Likewise.
5790 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
5791 * regformats/i386/x32-avx-linux.dat: Likewise.
5792 * regformats/i386/x32-linux.dat: Likewise.
5793 * regformats/tic6x-c62x-linux.dat: Likewise.
5794 * regformats/tic6x-c64x-linux.dat: Likewise.
5795 * regformats/tic6x-c64xp-linux.dat: Likewise.
5796 * regformats/regdat.sh: Parse feature marker.
5798 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5800 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
5801 (tdesc_osabi_name): Likewise.
5802 * target-descriptions.c (tdesc_architecture_name): Add new
5804 (tdesc_osabi_name): Likewise.
5806 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5808 * common/tdesc.c (tdesc_predefined_type): Move to here.
5809 (tdesc_named_type): Likewise.
5810 (tdesc_create_vector): Likewise.
5811 (tdesc_create_struct): Likewise.
5812 (tdesc_set_struct_size): Likewise.
5813 (tdesc_create_union): Likewise.
5814 (tdesc_create_flags): Likewise.
5815 (tdesc_create_enum): Likewise.
5816 (tdesc_add_field): Likewise.
5817 (tdesc_add_typed_bitfield): Likewise.
5818 (tdesc_add_bitfield): Likewise.
5819 (tdesc_add_flag): Likewise.
5820 (tdesc_add_enum_value): Likewise.
5821 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
5822 (struct tdesc_type_vector): Likewise.
5823 (struct tdesc_type_field): Likewise.
5824 (struct tdesc_type_with_fields): Likewise.
5825 (tdesc_create_enum): Add declaration.
5826 (tdesc_add_typed_bitfield): Likewise.
5827 (tdesc_add_enum_value): Likewise.
5828 * target-descriptions.c (tdesc_type_field): Move from here.
5829 (tdesc_type_builtin): Likewise.
5830 (tdesc_type_vector): Likewise.
5831 (tdesc_type_with_fields): Likewise.
5832 (tdesc_predefined_types): Likewise.
5833 (tdesc_named_type): Likewise.
5834 (tdesc_create_vector): Likewise.
5835 (tdesc_create_struct): Likewise.
5836 (tdesc_set_struct_size): Likewise.
5837 (tdesc_create_union): Likewise.
5838 (tdesc_create_flags): Likewise.
5839 (tdesc_create_enum): Likewise.
5840 (tdesc_add_field): Likewise.
5841 (tdesc_add_typed_bitfield): Likewise.
5842 (tdesc_add_bitfield): Likewise.
5843 (tdesc_add_flag): Likewise.
5844 (tdesc_add_enum_value): Likewise.
5845 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
5846 (tdesc_add_typed_bitfield): Likewise.
5847 (tdesc_add_enum_value): Likewise.
5849 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5851 * common/tdesc.c (tdesc_feature::accept): Move to here.
5852 (tdesc_feature::operator==): Likewise.
5853 (tdesc_create_reg): Likewise.
5854 * common/tdesc.h (tdesc_type_kind): Likewise.
5855 (struct tdesc_type): Likewise.
5856 (struct tdesc_feature): Likewise.
5857 * regformats/regdat.sh: Create a feature.
5858 * target-descriptions.c (tdesc_type_kind): Move from here.
5859 (tdesc_type): Likewise.
5860 (tdesc_type_up): Likewise.
5861 (tdesc_feature): Likewise.
5862 (tdesc_create_reg): Likewise.
5864 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5866 * Makefile.in: Add arch/tdesc.c
5867 * common/tdesc.c: New file.
5868 * common/tdesc.h (tdesc_element_visitor): Move to here.
5869 (tdesc_element): Likewise.
5870 (tdesc_reg): Likewise.
5871 (tdesc_reg_up): Likewise.
5872 * regformats/regdef.h (reg): Add offset to constructors.
5873 * target-descriptions.c (tdesc_element_visitor): Move from here.
5874 (tdesc_element): Likewise.
5875 (tdesc_reg): Likewise.
5876 (tdesc_reg_up): Likewise.
5878 2018-04-17 Tom Tromey <tom@tromey.com>
5880 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
5883 2018-04-17 Tom Tromey <tom@tromey.com>
5885 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
5887 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
5889 * symtab.c (print_symbol_info): Skip printing filename and line
5890 number when `last' is NULL.
5891 (symtab_symbol_info): Use empty string instead of NULL for first
5892 invocation of print_symbol_info.
5893 (rbreak_command): Pass NULL to `last' parameter of
5896 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
5898 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
5901 2018-04-16 Pedro Alves <palves@redhat.com>
5903 * MAINTAINERS (sh): Remove.
5904 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
5905 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
5906 (ALLDEPFILES): Remove sh64-tdep.c.
5907 * NEWS: Mentions that support for SH-5/SH64 is removed.
5908 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
5909 (sh*-*-openbsd*): Ditto.
5910 (sh64-*-elf*): Remove.
5912 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
5913 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
5914 * sh-tdep.c: No longer include "sh64-tdep.h".
5915 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
5916 * sh64-tdep.c, sh64-tdep.h: Remove files.
5918 2018-04-16 Pedro Alves <palves@redhat.com>
5920 * MAINTAINERS: Remove m88k.
5921 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
5922 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
5923 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
5924 * NEWS: Mention that support for m88k was removed.
5925 * configure.host (m88*-*-*): Remove support.
5926 * configure.nat (m88k-*-*): Remove support.
5927 * configure.tgt (m88*-*-openbsd*): Remove.
5928 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
5930 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
5932 * configure.tgt (x86_tobjs): New variable.
5933 (amd64_tobjs, i386_tobjs): Use it.
5935 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5937 * symtab.c (print_symbol_info): Precede the symbol definition by
5938 the line number when available.
5939 * NEWS: Advertise this enhancement.
5941 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5943 * NEWS (New options): announce set/show record btrace cpu.
5944 * btrace.c: Include record-btrace.h.
5945 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
5946 the vendor is unknown.
5947 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
5948 Maybe overwrite the btrace configuration's cpu.
5949 (btrace_compute_ftrace): Add cpu parameter. Update callers.
5950 (btrace_fetch): Add cpu parameter. Update callers.
5951 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
5952 Maybe overwrite the btrace configuration's cpu. Skip enabling
5953 errata workarounds if the vendor is unknown.
5954 * python/py-record-btrace.c: Include record-btrace.h.
5955 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
5956 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
5957 * record-btrace.c (record_btrace_cpu_state_kind): New.
5958 (record_btrace_cpu): New.
5959 (set_record_btrace_cpu_cmdlist): New.
5960 (record_btrace_get_cpu): New.
5961 (require_btrace_thread, record_btrace_info)
5962 (record_btrace_resume_thread): Call record_btrace_get_cpu.
5963 (cmd_set_record_btrace_cpu_none): New.
5964 (cmd_set_record_btrace_cpu_auto): New.
5965 (cmd_set_record_btrace_cpu): New.
5966 (cmd_show_record_btrace_cpu): New.
5967 (_initialize_record_btrace): Initialize set/show record btrace cpu
5969 * record-btrace.h (record_btrace_get_cpu): New.
5971 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5973 * record.c (set_record_command): Fix typo in message.
5975 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5977 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
5979 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
5981 * infrun.c (process_event_stop_test): Call
5982 gdbarch_in_indirect_branch_thunk.
5983 * gdbarch.sh (in_indirect_branch_thunk): New.
5984 * gdbarch.c: Regenerated.
5985 * gdbarch.h: Regenerated.
5988 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
5989 (HFILES_NO_SRCDIR): Add x86-tdep.h.
5990 (ALLDEPFILES): Add x86-tdep.c.
5991 * arch-utils.h (default_in_indirect_branch_thunk): New.
5992 * arch-utils.c (default_in_indirect_branch_thunk): New.
5993 * i386-tdep: Include x86-tdep.h.
5994 (i386_in_indirect_branch_thunk): New.
5995 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
5997 * amd64-tdep: Include x86-tdep.h.
5998 (amd64_in_indirect_branch_thunk): New.
5999 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
6001 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6004 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
6005 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
6006 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
6009 2018-04-12 Tom Tromey <tom@tromey.com>
6011 * rust-lang.c (rust_print_struct_def): Remove univariant code.
6012 (rust_evaluate_subexp): Likewise.
6014 2018-04-12 Pedro Alves <palves@redhat.com>
6016 * procfs.c (procfs_detach): Make forward declaration's prototype
6017 match definition's protototype.
6018 (proc_get_LDT_entry): Remove stale do_cleanups call.
6020 2018-04-12 Pedro Alves <palves@redhat.com>
6022 * target.h (target_ops::to_has_exited): Delete.
6023 (target_has_exited): Delete.
6024 * target-delegates.c: Regenerate.
6026 2018-04-11 Pedro Alves <palves@redhat.com>
6028 * target.c (fileio_fh_t::t): Add comment.
6029 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
6030 (target_fileio_close): Handle a NULL target.
6031 (invalidate_fileio_fh): New.
6032 (target_close): Call it.
6033 * remote.c (remote_hostio_send_command): No longer check whether
6034 remote_desc is open.
6036 2018-04-11 Pedro Alves <palves@redhat.com>
6038 * target.c (fileio_fh_t): Make it a named struct instead of a
6040 (fileio_fh_t::is_closed): New method.
6041 (DEF_VEC_O (fileio_fh_t)): Remove.
6042 (fileio_fhandles): Now a std::vector.
6043 (is_closed_fileio_fh): Delete.
6044 (acquire_fileio_fd): Adjust. Rename parameters.
6045 (release_fileio_fd): Adjust.
6046 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
6047 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
6048 (target_fileio_close): Adjust.
6050 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
6052 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
6055 2018-04-10 Pedro Alves <palves@redhat.com>
6057 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
6058 (scoped_finish_thread_state): New class.
6059 * infcmd.c (run_command_1): Use it instead of finish_thread_state
6061 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
6062 (fetch_inferior_event, normal_stop): Likewise.
6063 * thread.c (finish_thread_state_cleanup): Delete.
6065 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6066 Pedro Alves <palves@redhat.com>
6068 * value.c: Include "selftest.h" and "common/array-view.h".
6069 (struct range) <operator ==>: New.
6070 (test_ranges_contain): New.
6071 (check_ranges_vector): New.
6072 (test_insert_into_bit_range_vector): New.
6073 (_initialize_values): Register selftests.
6074 * common/array-view.h (operator==, operator!=): New.
6076 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6078 * common/gdb_vecs.h (unordered_remove): Add overload that takes
6080 * inline-frame.c: Include <algorithm>.
6081 (struct inline_state): Add constructor.
6082 (inline_state_s): Remove.
6083 (DEF_VEC_O(inline_state_s)): Remove.
6084 (inline_states): Change type to std::vector.
6085 (find_inline_frame_state): Adjust to std::vector.
6086 (allocate_inline_frame_state): Remove.
6087 (clear_inline_frame_state): Adjust to std::vector.
6088 (skip_inline_frames): Adjust to std::vector.
6090 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6092 * tracepoint.h (struct trace_state_variable): Add constructor.
6093 <name>: Change type to std::string.
6094 * tracepoint.c (tsv_s): Remove.
6095 (DEF_VEC_O(tsv_s)): Remove.
6096 (tvariables): Change to std::vector.
6097 (create_trace_state_variable): Adjust to std::vector.
6098 (find_trace_state_variable): Likewise.
6099 (find_trace_state_variable_by_number): Likewise.
6100 (delete_trace_state_variable): Likewise.
6101 (trace_variable_command): Adjust to std::string.
6102 (delete_trace_variable_command): Likewise.
6103 (tvariables_info_1): Adjust to std::vector.
6104 (save_trace_state_variables): Likewise.
6105 (start_tracing): Likewise.
6106 (merge_uploaded_trace_state_variables): Adjust to std::vector
6108 * target.h (struct target_ops)
6109 <to_download_trace_state_variable>: Pass reference to
6110 trace_state_variable.
6111 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
6112 * target-delegates.c: Re-generate.
6113 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
6114 (mi_tsv_deleted): Likewise.
6115 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6116 * remote.c (remote_download_trace_state_variable): Change
6117 pointer to reference and adjust.
6118 * make-target-delegates (parse_argtypes): Handle references.
6119 (write_function_header): Likewise.
6120 (munge_type): Likewise.
6122 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6124 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6125 string_view-selftests.c.
6126 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
6128 * unittests/basic_string_view/cons/char/1.cc: Likewise.
6129 * unittests/basic_string_view/cons/char/2.cc: Likewise.
6130 * unittests/basic_string_view/cons/char/3.cc: Likewise.
6131 * unittests/basic_string_view/element_access/char/1.cc:
6133 * unittests/basic_string_view/element_access/char/empty.cc:
6135 * unittests/basic_string_view/element_access/char/front_back.cc:
6137 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
6138 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
6140 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
6142 * unittests/basic_string_view/modifiers/swap/char/1.cc:
6144 * unittests/basic_string_view/operations/compare/char/1.cc:
6146 * unittests/basic_string_view/operations/compare/char/13650.cc:
6148 * unittests/basic_string_view/operations/copy/char/1.cc:
6150 * unittests/basic_string_view/operations/data/char/1.cc:
6152 * unittests/basic_string_view/operations/find/char/1.cc:
6154 * unittests/basic_string_view/operations/find/char/2.cc:
6156 * unittests/basic_string_view/operations/find/char/3.cc:
6158 * unittests/basic_string_view/operations/find/char/4.cc:
6160 * unittests/basic_string_view/operations/rfind/char/1.cc:
6162 * unittests/basic_string_view/operations/rfind/char/2.cc:
6164 * unittests/basic_string_view/operations/rfind/char/3.cc:
6166 * unittests/basic_string_view/operations/substr/char/1.cc:
6168 * unittests/basic_string_view/operators/char/2.cc: Likewise.
6169 * unittests/string_view-selftests.c: New file.
6171 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6173 * unittests/basic_string_view/capacity/1.cc: New file.
6174 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
6175 * unittests/basic_string_view/cons/char/1.cc: New file.
6176 * unittests/basic_string_view/cons/char/2.cc: New file.
6177 * unittests/basic_string_view/cons/char/3.cc: New file.
6178 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
6179 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
6180 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
6181 * unittests/basic_string_view/element_access/char/1.cc: New file.
6182 * unittests/basic_string_view/element_access/char/2.cc: New file.
6183 * unittests/basic_string_view/element_access/char/empty.cc: New file.
6184 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
6185 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
6186 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
6187 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
6188 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
6189 * unittests/basic_string_view/include.cc: New file.
6190 * unittests/basic_string_view/inserters/char/1.cc: New file.
6191 * unittests/basic_string_view/inserters/char/2.cc: New file.
6192 * unittests/basic_string_view/inserters/char/3.cc: New file.
6193 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
6194 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
6195 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
6196 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
6197 * unittests/basic_string_view/literals/types.cc: New file.
6198 * unittests/basic_string_view/literals/values.cc: New file.
6199 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
6200 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
6201 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
6202 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
6203 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
6204 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
6205 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
6206 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
6207 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
6208 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
6209 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
6210 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
6211 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
6212 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
6213 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
6214 * unittests/basic_string_view/operations/data/char/1.cc: New file.
6215 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
6216 * unittests/basic_string_view/operations/find/char/1.cc: New file.
6217 * unittests/basic_string_view/operations/find/char/2.cc: New file.
6218 * unittests/basic_string_view/operations/find/char/3.cc: New file.
6219 * unittests/basic_string_view/operations/find/char/4.cc: New file.
6220 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
6221 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
6222 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
6223 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
6224 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
6225 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
6226 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
6227 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
6228 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
6229 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
6230 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
6231 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
6232 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
6233 * unittests/basic_string_view/operators/char/2.cc: New file.
6234 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
6235 * unittests/basic_string_view/range_access/char/1.cc: New file.
6236 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
6237 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
6238 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
6239 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
6240 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
6241 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
6242 * unittests/basic_string_view/requirements/typedefs.cc: New file.
6243 * unittests/basic_string_view/typedefs.cc: New file.
6244 * unittests/basic_string_view/types/1.cc: New file.
6246 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6248 * common/gdb_string_view.h: Remove libstdc++ implementation
6249 details, adjust to gdb reality.
6250 * common/gdb_string_view.tcc: Likewise.
6251 * cli/cli-script.c (struct string_view): Remove.
6252 (user_args) <m_args>: Change element type to gdb::string_view.
6253 (user_args::insert_args): Adjust.
6255 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6257 * common/gdb_string_view.h: New file.
6258 * common/gdb_string_view.tcc: New file.
6260 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6262 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
6263 * configure: Re-generate.
6265 2018-04-09 Pedro Alves <palves@redhat.com>
6267 * gdbarch.sh: Include "observable.h" instead of "observer.h".
6268 (set_target_gdbarch): Call
6269 gdb::observers::architecture_changed.notify instead of
6270 observer_notify_architecture_changed.
6272 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6274 * tracepoint.c (struct current_traceframe_cleanup): Remove.
6275 (do_restore_current_traceframe_cleanup): Remove.
6276 (restore_current_traceframe_cleanup_dtor): Remove.
6277 (make_cleanup_restore_current_traceframe): Remove.
6278 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
6280 * tracepoint.h (struct scoped_restore_current_traceframe): New.
6281 * infrun.c (fetch_inferior_event): Use
6282 scoped_restore_current_traceframe.
6284 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6286 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
6288 <n_allocated_type_units>: Remove.
6289 <all_type_units>: Change to std::vector.
6290 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
6291 to std::vector change.
6292 (dwarf2_per_objfile::get_cutu): Likewise.
6293 (dwarf2_per_objfile::get_tu): Likewise.
6294 (create_signatured_type_table_from_index): Likewise.
6295 (create_signatured_type_table_from_debug_names): Likewise.
6296 (dw2_symtab_iter_next): Likewise.
6297 (dw2_print_stats): Likewise.
6298 (dw2_expand_all_symtabs): Likewise.
6299 (dw2_expand_marked_cus): Likewise.
6300 (dw2_debug_names_iterator::next): Likewise.
6301 (dwarf2_initialize_objfile): Likewise.
6302 (add_signatured_type_cu_to_table): Likewise.
6303 (create_all_type_units): Likewise.
6304 (add_type_unit): Likewise.
6305 (struct tu_abbrev_offset): Add constructor.
6306 (build_type_psymtabs_1): Adjust to std::vector change.
6307 (print_tu_stats): Likewise.
6308 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
6309 (write_debug_names): Likewise.
6311 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6313 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
6314 Make an std::vector.
6315 <n_comp_units>: Remove.
6316 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
6317 to std::vector change.
6318 (dwarf2_per_objfile::get_cutu): Likewise.
6319 (dwarf2_per_objfile::get_cu): Likewise.
6320 (create_cus_from_index): Likewise.
6321 (create_addrmap_from_index): Likewise.
6322 (create_addrmap_from_aranges): Likewise.
6323 (dwarf2_read_index): Likewise.
6324 (dw2_find_last_source_symtab): Likewise.
6325 (dw2_map_symtabs_matching_filename): Likewise.
6326 (dw2_symtab_iter_next): Likewise.
6327 (dw2_print_stats): Likewise.
6328 (dw2_expand_all_symtabs): Likewise.
6329 (dw2_expand_symtabs_with_fullname): Likewise.
6330 (dw2_expand_marked_cus): Likewise.
6331 (dw2_map_symbol_filenames): Likewise.
6332 (create_cus_from_debug_names): Likewise.
6333 (dwarf2_read_debug_names): Likewise.
6334 (dw2_debug_names_iterator::next): Likewise.
6335 (dwarf2_initialize_objfile): Likewise.
6336 (set_partial_user): Likewise.
6337 (dwarf2_build_psymtabs_hard): Likewise.
6338 (read_comp_units_from_section): Remove arguments, adjust to
6340 (create_all_comp_units): Adjust to std::vector and
6341 read_comp_units_from_section changes.
6342 (dwarf2_find_containing_comp_unit): Adjust to std::vector
6344 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
6345 (psyms_seen_size): Likewise.
6346 (write_gdbindex): Likewise.
6347 (write_debug_names): Likewise.
6349 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6351 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
6352 with dwarf2_per_objfile.
6353 (create_cus_from_index): Likewise.
6354 (create_signatured_type_table_from_index): Likewise.
6355 (dwarf2_read_index): Likewise.
6356 (dwarf2_initialize_objfile): Likewise.
6357 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
6358 per_cu rather than get_dwarf2_per_objfile.
6360 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6362 * dwarf2read.h (struct signatured_type): Forward declare.
6363 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
6365 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
6366 (dw2_get_cutu): ...this.
6367 (dwarf2_per_objfile::get_cu): Rename from...
6368 (dw2_get_cu): ...this.
6369 (dwarf2_per_objfile::get_tu): New.
6370 (create_addrmap_from_index): Adjust.
6371 (create_addrmap_from_aranges): Adjust.
6372 (dw2_find_last_source_symtab): Adjust.
6373 (dw2_map_symtabs_matching_filename): Adjust.
6374 (dw2_symtab_iter_next): Adjust.
6375 (dw2_print_stats): Adjust.
6376 (dw2_expand_all_symtabs): Adjust.
6377 (dw2_expand_symtabs_with_fullname): Adjust.
6378 (dw2_expand_marked_cus): Adjust.
6379 (dw_expand_symtabs_matching_file_matcher): Adjust.
6380 (dw2_map_symbol_filenames): Adjust.
6381 (dw2_debug_names_iterator::next): Adjust.
6382 (dwarf2_initialize_objfile): Adjust.
6383 (set_partial_user): Adjust.
6384 (dwarf2_build_psymtabs_hard): Adjust.
6386 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6388 * dwarf2read.c (create_signatured_type_table_from_debug_names):
6389 Remove unused variables.
6390 (dw2_map_symtabs_matching_filename): Likewise.
6391 (dwarf2_record_block_ranges): Likewise.
6392 (dwarf2_read_addr_index): Likewise.
6393 (follow_die_offset): Likewise.
6395 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6397 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
6398 to symbol_file_add_main.
6400 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6403 * mi/mi-console.c (do_fputc_async_safe): New.
6404 (mi_console_file::write_async_safe): New.
6405 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
6406 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
6408 * ui-file.c (ui_file::putstrn): Adjust call to
6409 fputstrn_unfiltered.
6410 * utils.c (printchar): Replace do_fputs and do_fprintf
6411 parameters by do_fputc.
6412 (fputstr_filtered): Adjust call to printchar.
6413 (fputstr_unfiltered): Likewise.
6414 (fputstrn_filtered): Likewise.
6415 (fputstrn_unfiltered): Add do_fputc parameter, pass to
6417 * utils.h (do_fputc_ftype): New typedef.
6418 (fputstrn_unfiltered): Add do_fputc parameter.
6420 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6422 * regformats/i386/i386-avx.dat: Remove.
6424 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6427 * amd64-tdep.c (amd64_none_init_abi): New function.
6428 (amd64_x32_none_init_abi): New function.
6429 (_initialize_amd64_tdep): Register handlers for x86-64 and
6430 x64_32 with GDB_OSABI_NONE.
6431 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
6432 GDB_OSABI_NONE osabi.
6434 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6437 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
6439 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
6440 * osabi.c (gdb_osabi_names): Add "unknown" entry.
6442 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6444 * common/byte-vector.h (char_vector): New type.
6445 * target.h (target_read_alloc): Return
6446 gdb::optional<byte_vector>.
6447 (target_read_stralloc): Return gdb::optional<char_vector>.
6448 (target_get_osdata): Return gdb::optional<char_vector>.
6449 * target.c (target_read_alloc_1): Templatize. Replacement
6450 manual memory management with vector.
6451 (target_read_alloc): Change return type, adjust.
6452 (target_read_stralloc): Change return type, adjust.
6453 (target_get_osdata): Change return type, adjust.
6454 * auxv.c (struct auxv_info) <length>: Remove.
6455 <data>: Change type to gdb::optional<byte_vector>.
6456 (auxv_inferior_data_cleanup): Free auxv_info with delete.
6457 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
6458 (target_auxv_search): Adjust.
6459 (fprint_target_auxv): Adjust.
6460 * avr-tdep.c (avr_io_reg_read_command): Adjust.
6461 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
6462 (linux_make_corefile_notes): Adjust.
6463 * osdata.c (get_osdata): Adjust.
6464 * remote.c (remote_get_threads_with_qxfer): Adjust.
6465 (remote_memory_map): Adjust.
6466 (remote_traceframe_info): Adjust.
6467 (btrace_read_config): Adjust.
6468 (remote_read_btrace): Adjust.
6469 (remote_pid_to_exec_file): Adjust.
6470 * solib-aix.c (solib_aix_get_library_list): Adjust.
6471 * solib-dsbt.c (decode_loadmap): Don't free buf.
6472 (dsbt_get_initial_loadmaps): Adjust.
6473 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
6474 * solib-target.c (solib_target_current_sos): Adjust.
6475 * tracepoint.c (sdata_make_value): Adjust.
6476 * xml-support.c (xinclude_start_include): Adjust.
6477 (xml_fetch_content_from_file): Adjust.
6478 * xml-support.h (xml_fetch_another): Change return type.
6479 (xml_fetch_content_from_file): Change return type.
6480 * xml-syscall.c (xml_init_syscalls_info): Adjust.
6481 * xml-tdesc.c (file_read_description_xml): Adjust.
6482 (fetch_available_features_from_target): Change return type.
6483 (target_fetch_description_xml): Adjust.
6484 (target_read_description_xml): Adjust.
6486 2018-04-06 Tom Tromey <tom@tromey.com>
6488 * value.c (~value): Update.
6489 (struct value) <contents>: Now unique_xmalloc_ptr.
6490 (value_contents_bits_eq, allocate_value_contents)
6491 (value_contents_raw, value_contents_all_raw)
6492 (value_contents_for_printing, value_contents_for_printing_const)
6493 (set_value_enclosing_type): Update.
6495 2018-04-06 Tom Tromey <tom@tromey.com>
6497 * value.c (range_s): Remove typedef, VEC.
6498 (struct range): Add operator<.
6499 (range_lessthan): Remove.
6500 (ranges_contain): Change type.
6502 (struct value) <unavailable, optimized_out>: Now std::vector.
6503 (value_entirely_available)
6504 (value_entirely_covered_by_range_vector)
6505 (value_entirely_unavailable, value_entirely_optimized_out):
6507 (insert_into_bit_range_vector): Change argument type.
6508 (find_first_range_overlap): Likewise.
6509 (struct ranges_and_idx, value_contents_bits_eq)
6510 (require_not_optimized_out, require_available): Update.
6511 (ranges_copy_adjusted): Change argument types.
6512 (value_optimized_out, value_copy, value_fetch_lazy): Update.
6514 2018-04-06 Tom Tromey <tom@tromey.com>
6516 * value.c (~value): Update.
6517 (struct value) <parent>: Now a value_ref_ptr.
6518 (value_parent, set_value_parent, value_address, value_copy):
6521 2018-04-06 Tom Tromey <tom@tromey.com>
6523 * value.c (struct value): Add constructor, destructor, and member
6525 (allocate_value_lazy, value_decref): Update.
6527 2018-04-06 Tom Tromey <tom@tromey.com>
6529 * value.c (struct value) <released, next>: Remove.
6530 (all_values): Now a std::vector.
6531 (allocate_value_lazy): Update.
6532 (value_next): Remove.
6533 (value_mark, value_free_to_mark, release_value)
6534 (value_release_to_mark): Update.
6536 2018-04-06 Tom Tromey <tom@tromey.com>
6538 * value.h (fetch_subexp_value, value_release_to_mark): Update.
6539 (free_value_chain): Remove.
6540 * value.c (free_value_chain): Remove.
6541 (value_release_to_mark): Return a std::vector.
6542 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
6544 (check_condition): Update.
6545 * eval.c (fetch_subexp_value): Change "val_chain" to a
6547 * breakpoint.c (update_watchpoint): Update.
6548 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
6550 2018-04-06 Tom Tromey <tom@tromey.com>
6552 * value.h (free_all_values): Remove.
6553 * value.c (free_all_values): Remove.
6555 2018-04-06 Tom Tromey <tom@tromey.com>
6557 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
6558 (value_history_chain, value_history_count): Remove.
6559 (value_history): New global.
6560 (record_latest_value, access_value_history, show_values)
6561 (preserve_values): Update.
6563 2018-04-06 Tom Tromey <tom@tromey.com>
6565 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
6566 * varobj.c (varobj_set_display_format, varobj_set_value)
6567 (install_default_visualizer, construct_visualizer)
6568 (install_new_value, ~varobj, varobj_get_value_type)
6569 (my_value_of_variable, varobj_editable_p): Update.
6570 * c-varobj.c (c_describe_child, c_value_of_variable)
6571 (cplus_number_of_children, cplus_describe_child): Update.
6572 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
6573 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
6574 (ada_value_of_variable, ada_value_is_changeable_p): Update.
6576 2018-04-06 Tom Tromey <tom@tromey.com>
6578 * printcmd.c (last_examine_address): Change type to
6580 (do_examine, x_command): Update.
6582 2018-04-06 Tom Tromey <tom@tromey.com>
6584 * value.c (release_value): Update.
6585 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
6586 (struct bpstats) <val>: Now a value_ref_ptr.
6587 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
6588 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
6589 (~watchpoint, print_it_watchpoint, watch_command_1)
6590 (invalidate_bp_value_on_memory_change): Update.
6592 2018-04-06 Tom Tromey <tom@tromey.com>
6594 * varobj.c (varobj_clear_saved_item)
6595 (update_dynamic_varobj_children, install_new_value, ~varobj):
6597 * value.h (value_incref): Move declaration earlier.
6598 (value_decref): Rename from value_free.
6599 (struct value_ref_policy): New.
6600 (value_ref_ptr): New typedef.
6601 (struct value_deleter): Remove.
6602 (gdb_value_up): Remove typedef.
6603 (release_value): Change return type.
6604 (release_value_or_incref): Remove.
6605 * value.c (set_value_parent): Update.
6606 (value_incref): Change return type.
6607 (value_decref): Rename from value_free.
6608 (value_free_to_mark, free_all_values, free_value_chain): Update.
6609 (release_value): Return value_ref_ptr.
6610 (release_value_or_incref): Remove.
6611 (record_latest_value, set_internalvar, clear_internalvar):
6613 * stack.c (info_frame_command): Don't call value_free.
6614 * python/py-value.c (valpy_dealloc, valpy_new)
6615 (value_to_value_object): Update.
6616 * printcmd.c (do_examine): Update.
6617 * opencl-lang.c (lval_func_free_closure): Update.
6618 * mi/mi-main.c (register_changed_p): Don't call value_free.
6619 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
6620 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
6621 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
6623 * guile/scm-value.c (vlscm_free_value_smob)
6624 (vlscm_scm_from_value): Update.
6625 * frame.c (frame_register_unwind, frame_unwind_register_signed)
6626 (frame_unwind_register_unsigned, get_frame_register_bytes)
6627 (put_frame_register_bytes): Don't call value_free.
6628 * findvar.c (address_from_register): Don't call value_free.
6629 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
6630 * dwarf2loc.c (entry_data_value_free_closure)
6631 (value_of_dwarf_reg_entry, free_pieced_value_closure)
6632 (dwarf2_evaluate_loc_desc_full): Update.
6633 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
6634 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
6635 (~watchpoint, watch_command_1)
6636 (invalidate_bp_value_on_memory_change): Update.
6637 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
6639 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
6642 * warning.m4: Add -Wno-error=deprecated-register.
6643 * configure: Re-generate.
6645 2018-04-05 Tom Tromey <tom@tromey.com>
6647 * linespec.h: Remove include of "vec.h".
6649 2018-04-05 Tom Tromey <tom@tromey.com>
6651 * linespec.c (typep): Remove typedef.
6652 (find_methods, find_superclass_methods): Take a std::vector.
6653 (find_method): Use std::vector.
6655 2018-04-05 Tom Tromey <tom@tromey.com>
6657 * utils.c (compare_strings): Remove.
6658 * utils.h (compare_strings): Remove.
6659 * objc-lang.h (find_imps): Update.
6660 * objc-lang.c (find_methods): Take a std::vector.
6661 (uniquify_strings, find_imps): Likewise.
6662 * linespec.c (find_methods): Take a std::vector.
6663 (decode_objc): Use std::vector.
6664 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
6666 (find_method, find_function_symbols): Use std::vector.
6668 2018-04-05 Tom Tromey <tom@tromey.com>
6670 * completer.c (completion_tracker::completion_tracker): Remove
6672 (completion_tracker::discard_completions): Likewise.
6673 * breakpoint.c (ambiguous_names_p): Remove cast.
6674 * ada-lang.c (_initialize_ada_language): Remove cast.
6675 * utils.h (streq): Update.
6676 (streq_hash): Add new declaration.
6677 * utils.c (streq): Return bool.
6678 (streq_hash): New function.
6680 2018-04-05 Tom Tromey <tom@tromey.com>
6682 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
6683 Remove a string copy.
6685 2018-04-05 Tom Tromey <tom@tromey.com>
6687 * linespec.c (filter_results): Use std::vector.
6688 (decode_line_2, decode_line_full): Update.
6690 2018-04-05 Tom Tromey <tom@tromey.com>
6692 * linespec.c (canonical_to_fullform): Return std::string.
6693 (filter_results): Update.
6694 (struct decode_line_2_item): Add constructor.
6695 <fullform, displayform>: Now std::string.
6696 (decode_line_2_compare_items): Now a std::sort comparator.
6697 (decode_line_2): Update.
6699 2018-04-05 Tom Tromey <tom@tromey.com>
6701 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
6702 (unexpected_linespec_error): Update.
6703 (linespec_parse_basic, parse_linespec): Update.
6705 2018-04-05 Tom Tromey <tom@tromey.com>
6707 * linespec.c (linespec_parse_basic): Reindent.
6709 2018-04-05 Tom Tromey <tom@tromey.com>
6711 * minsyms.h (iterate_over_minimal_symbols): Update.
6712 * minsyms.c (iterate_over_minimal_symbols): Take a
6714 * linespec.c (struct collect_minsyms): Remove.
6715 (compare_msyms): Now a std::sort comparator.
6716 (add_minsym): Add parameters.
6717 (search_minsyms_for_name): Update. Use std::vector.
6719 2018-04-03 Tom Tromey <tom@tromey.com>
6721 * mipsread.c (read_alphacoff_dynamic_symtab): Use
6724 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
6726 * MAINTAINERS (Write After Approval): Add Weimin Pan.
6728 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
6731 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
6732 printing static type.
6734 2018-04-01 Tom Tromey <tom@tromey.com>
6736 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
6737 (rs6000_xfer_shared_libraries): Update.
6739 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6741 * common/gdb_vecs.h (char_ptr): Remove.
6742 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
6744 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6746 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
6748 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
6750 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6752 * tracepoint.h (struct uploaded_tp): Initialize fields.
6753 <actions, step_actions, cmd_strings>: Change type to
6754 std::vector<char *>.
6755 * tracepoint.c (get_uploaded_tp): Allocate with new.
6756 (free_uploaded_tps): Free with delete.
6757 (parse_tracepoint_definition): Adjust to std::vector change.
6758 * breakpoint.c (read_uploaded_action): Likewise.
6759 (create_tracepoint_from_upload): Likewise.
6760 * ctf.c (ctf_write_uploaded_tp): Likewise.
6761 (SET_ARRAY_FIELD): Likewise.
6762 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
6764 2018-03-30 Tom Tromey <tom@tromey.com>
6766 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
6768 (svr4_keep_data_in_core): Update.
6769 (svr4_read_so_list): Update.
6771 2018-03-30 Tom Tromey <tom@tromey.com>
6773 * windows-nat.c (handle_output_debug_string, handle_exception):
6775 * target.h (target_read_string): Update.
6776 * target.c (target_read_string): Change "string" to
6778 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6780 * solib-frv.c (frv_current_sos): Update.
6781 * solib-dsbt.c (dsbt_current_sos): Update.
6782 * solib-darwin.c (darwin_current_sos): Update.
6783 * linux-thread-db.c (inferior_has_bug): Update.
6784 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
6785 Update. Remove alloca.
6786 * ada-lang.c (ada_main_name): Update.
6788 2018-03-30 Tom Tromey <tom@tromey.com>
6790 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
6791 (struct dwo_file_deleter): New.
6792 (dwo_file_up): New typedef.
6793 (open_and_init_dwo_file): Use dwo_file_up.
6794 (free_dwo_file_cleanup): Remove.
6796 2018-03-30 Tom Tromey <tom@tromey.com>
6798 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
6799 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
6801 2018-03-30 Tom Tromey <tom@tromey.com>
6803 * dwarf2read.c (class free_cached_comp_units): New class.
6804 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
6805 (free_cached_comp_units): Remove function.
6807 2018-03-30 Tom Tromey <tom@tromey.com>
6809 * utils.h (make_cleanup_unpush_target): Remove.
6810 * inf-ptrace.c (struct target_unpusher): New.
6811 (target_unpush_up) New typedef.
6812 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
6814 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
6816 2018-03-27 Tom Tromey <tom@tromey.com>
6818 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
6820 2018-03-27 Pedro Alves <palves@redhat.com>
6821 Tom Tromey <tom@tromey.com>
6823 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
6824 destructor. Now a class.
6825 (gdb_readline_wrapper_cleanup): Remove function.
6826 (gdb_readline_wrapper): Remove cleanups.
6828 2018-03-27 Tom Tromey <tom@tromey.com>
6830 * typeprint.h (struct type_print_options) <local_typedefs,
6831 global_typedefs>: Remove "struct" keyword.
6832 (class typedef_hash_table): New class.
6833 (recursively_update_typedef_hash, add_template_parameters)
6834 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
6835 (find_typedef_in_hash): Don't declare.
6836 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
6837 (typedef_hash_table::recursively_update): Rename from
6838 recursively_update_typedef_hash. Now a member.
6839 (typedef_hash_table::add_template_parameters): Rename from
6840 add_template_parameters. Now a member.
6841 (typedef_hash_table::typedef_hash_table): Now a constructor;
6842 rename from create_typedef_hash.
6843 (typedef_hash_table::~typedef_hash_table): Now a destructor;
6844 rename from free_typedef_hash.
6845 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
6846 (do_free_global_table): Remove.
6847 (typedef_hash_table::typedef_hash_table): New constructor; renamed
6848 from copy_type_recursive.
6849 (create_global_typedef_table): Remove.
6850 (typedef_hash_table::find_global_typedef): Now a member of
6852 (typedef_hash_table::find_typedef): Rename from
6853 find_typedef_in_hash; now a member.
6854 (whatis_exp): Update.
6855 * extension.h (struct ext_lang_type_printers): Add constructor and
6857 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
6859 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
6860 Now a constructor; rename from start_ext_lang_type_printers.
6861 (ext_lang_type_printers): Now a destructor; rename from
6862 free_ext_lang_type_printers.
6863 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
6865 (c_type_print_base_struct_union): Update. Remove cleanups.
6867 2018-03-27 Tom Tromey <tom@tromey.com>
6869 * dwarf-index-write.c: Include <cmath>.
6871 2018-03-27 Joel Brobecker <brobecker@adacore.com>
6873 * NEWS: Add entry describing new "set|show varsize-limit" command.
6874 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
6876 * printcmd.c (_initialize_printcmd): Add "set var" alias of
6879 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
6881 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
6883 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
6884 * dwarf-index-common.c: New file.
6885 * dwarf-index-common.h: New file.
6886 * dwarf-index-write.c: New file.
6887 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
6888 (struct dwarf2_section_info): Move from here.
6889 (dwarf2_section_info_def): Likewise.
6890 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
6891 (offset_type): Likewise.
6892 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
6893 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
6894 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
6895 (byte_swap): Likewise.
6896 (MAYBE_SWAP): Likewise.
6897 (dwarf2_per_cu_ptr): Likewise.
6898 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
6899 (struct tu_stats): Likewise.
6900 (struct dwarf2_per_objfile): Likewise.
6901 (struct dwarf2_per_cu_data): Likewise.
6902 (struct signatured_type): Likewise.
6903 (sig_type_ptr): Likewise.
6904 (DEF_VEC_P (sig_type_ptr)): Likewise.
6905 (INDEX4_SUFFIX): Likewise.
6906 (INDEX5_SUFFIX): Likewise.
6907 (DEBUG_STR_SUFFIX): Likewise.
6908 (dwarf2_read_section): Make non-static.
6909 (mapped_index_string_hash): Move from here.
6910 (dwarf5_djb_hash): Likewise.
6911 (file_write): Likewise.
6912 (class data_buf): Likewise.
6913 (struct symtab_index_entry): Likewise.
6914 (struct mapped_symtab): Likewise.
6915 (find_slot): Likewise.
6916 (hash_expand): Likewise.
6917 (add_index_entry): Likewise.
6918 (uniquify_cu_indices): Likewise.
6919 (class c_str_view): Likewise.
6920 (class c_str_view_hasher): Likewise.
6921 (class vector_hasher): Likewise.
6922 (write_hash_table): Likewise.
6923 (psym_index_map): Likewise.
6924 (struct addrmap_index_data): Likewise.
6925 (add_address_entry): Likewise.
6926 (add_address_entry_worker): Likewise.
6927 (write_address_map): Likewise.
6928 (symbol_kind): Likewise.
6929 (write_psymbols): Likewise.
6930 (struct signatured_type_index_data): Likewise.
6931 (write_one_signatured_type): Likewise.
6932 (recursively_count_psymbols): Likewise.
6933 (recursively_write_psymbols): Likewise.
6934 (class debug_names): Likewise.
6935 (check_dwarf64_offsets): Likewise.
6936 (psyms_seen_size): Likewise.
6937 (write_gdbindex): Likewise.
6938 (write_debug_names): Likewise.
6939 (assert_file_size): Likewise.
6940 (write_psymtabs_to_index): Likewise.
6941 (save_gdb_index_command): Likewise.
6942 (_initialize_dwarf2_read): Don't register the "save gdb-index"
6944 * dwarf2read.h: New file.
6946 2018-03-27 Joel Brobecker <brobecker@adacore.com>
6949 * dwarf2read.c (dwarf2_physname): Do not return the demangled
6950 symbol name if the CU's language stores symbol names in linkage
6952 * language.h (struct language_defn)
6953 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
6954 all instances of this struct.
6956 2018-03-26 Tom Tromey <tom@tromey.com>
6958 * stack.c (backtrace_command_1): Remove verbose code.
6960 2018-03-26 Tom Tromey <tom@tromey.com>
6962 * python/py-framefilter.c (py_print_type): Don't catch
6963 exceptions. Return void.
6964 (py_print_value): Likewise.
6965 (py_print_single_arg): Likewise.
6966 (enumerate_args): Don't catch exceptions.
6967 (py_print_args): Likewise.
6968 (py_print_frame): Likewise.
6969 (gdbpy_apply_frame_filter): Catch exceptions here.
6971 2018-03-26 Tom Tromey <tom@tromey.com>
6973 * stack.c (_initialize_stack): Remove trailing newlines from help
6974 text. Add "Usage" line to "backtrace" help.
6976 2018-03-26 Tom Tromey <tom@tromey.com>
6979 * python/py-framefilter.c (py_print_args): Call wrap_hint.
6981 2018-03-26 Tom Tromey <tom@tromey.com>
6983 * python/py-framefilter.c (py_print_single_arg): Return
6984 EXT_LANG_BT_ERROR from catch.
6986 2018-03-26 Tom Tromey <tom@tromey.com>
6989 * stack.c (backtrace_command_1): Move some code into no-filters
6992 2018-03-26 Tom Tromey <tom@tromey.com>
6994 * python/py-framefilter.c (throw_quit_or_print_exception): New
6996 (gdbpy_apply_frame_filter): Use it.
6998 2018-03-26 Tom Tromey <tom@tromey.com>
7001 * python/py-framefilter.c (py_print_type, py_print_value)
7002 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
7005 2018-03-26 Tom Tromey <tom@tromey.com>
7007 * python/py-framefilter.c (enumerate_args): Use
7008 gdb::unique_xmalloc_ptr.
7010 2018-03-26 Tom Tromey <tom@tromey.com>
7012 * python/py-framefilter.c (py_print_frame): Return
7014 (gdbpy_apply_frame_filter): Update comment.
7015 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
7017 <EXT_LANG_BT_NO_FILTERS>: Change value.
7019 2018-03-26 Tom Tromey <tom@tromey.com>
7022 * stack.c (backtrace_command): Parse "hide" argument.
7023 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
7024 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
7027 2018-03-26 Tom Tromey <tom@tromey.com>
7029 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
7031 (backtrace_command): Remove "fulltrace", add "flags".
7033 2018-03-26 Tom Tromey <tom@tromey.com>
7035 * stack.c (backtrace_command): Rewrite command line parsing.
7037 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
7039 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
7041 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
7043 * filename-seen-cache.h: Add include guard.
7045 2018-03-26 Keith Seitz <keiths@redhat.com>
7047 * symfile.c (place_section): Remove "struct" from section_addr_info
7049 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
7050 "struct" keyword from section_addr_info.
7052 2018-03-26 Alan Hayward <alan.hayward@arm.com>
7054 * regformats/regdef.h (reg): Add constructors.
7056 2018-03-25 Pedro Alves <palves@redhat.com>
7058 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
7059 if then/else bodies in var_func_name extraction.
7061 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
7063 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
7064 lookup_minimal_symbol() to find symbol entry.
7065 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
7067 2018-03-23 Keith Seitz <keiths@redhat.com>
7070 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
7071 nested type definitions for C++, too.
7073 2018-03-23 Tom Tromey <tom@tromey.com>
7075 * machoread.c (struct oso_el): Add a constructor. Don't define as
7077 (macho_register_oso): Remove.
7078 (macho_symtab_read): Take a std::vector.
7079 (oso_el_compare_name): Now a std::sort comparator.
7080 (macho_symfile_read_all_oso): Take a std::vector.
7081 (macho_symfile_read): Use std::vector. Remove cleanups.
7083 2018-03-22 Tom Tromey <tom@tromey.com>
7085 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
7086 (record_full_goto_bookmark): Use std::string.
7088 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7091 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
7094 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7096 * rs6000-tdep.c (store_insn_p): New function.
7097 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
7098 and cr_reg to their unshifted values. Use store_insn_p to
7099 match LR saves using either R1 or fdata->alloca_reg. Use
7100 store_insn_p to match CR saves. Set alloca_reg_offset
7101 when alloca_reg and framep are set. Remove lr_reg shift
7102 when assigning to fdata->lr_register.
7104 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
7106 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
7107 command line args instead of emitting a warning.
7109 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
7111 * tracepoint.h (struct static_tracepoint_marker): Initialize
7112 fields, define default constructor, move constructor and move
7113 assignment, disable the rest.
7114 <str_id, extra>: Make std::string.
7115 (release_static_tracepoint_marker): Remove.
7116 (free_current_marker): Remove.
7117 * tracepoint.c (free_current_marker): Remove.
7118 (parse_static_tracepoint_marker_definition): Adjust to
7119 std::string, use new hex2str overload.
7120 (release_static_tracepoint_marker): Remove.
7121 (print_one_static_tracepoint_marker): Get marker by reference
7122 and adjust to std::string.
7123 (info_static_tracepoint_markers_command): Adjust to std::vector
7125 * target.h (static_tracepoint_marker_p): Remove typedef.
7126 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
7127 (struct target_ops) <to_static_tracepoint_marker_at>: Return
7129 <to_static_tracepoint_markers_by_strid>: Return std::vector.
7131 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
7132 (target_debug_print_std_vector_static_tracepoint_marker): New.
7133 (target_debug_print_struct_static_tracepoint_marker_p): Rename
7135 (target_debug_print_static_tracepoint_marker_p): ... this.
7136 * target-delegates.c: Re-generate.
7137 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
7139 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
7140 (decode_static_tracepoint_spec): Adjust to std::vector.
7141 (tracepoint_print_one_detail): Adjust to std::string.
7142 (strace_marker_decode_location): Adjust to std::string.
7143 (update_static_tracepoint): Adjust to std::string, remove call
7144 to release_static_tracepoint_marker.
7145 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7146 Adjust to std::vector.
7147 * remote.c (remote_static_tracepoint_marker_at): Return bool.
7148 (remote_static_tracepoint_markers_by_strid): Adjust to
7150 * common/rsp-low.h (hex2str): New overload with explicit count
7152 * common/rsp-low.c (hex2str): New overload with explicit count
7154 * unittests/rsp-low-selftests.c (test_hex2str): New function.
7155 (_initialize_rsp_low_selftests): Add test_hex2str test.
7156 * unittests/tracepoint-selftests.c
7157 (test_parse_static_tracepoint_marker_definition): Adjust to
7160 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
7162 * tracepoint.c (parse_static_tracepoint_marker_definition):
7163 Consider case where the definition is followed by more
7165 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7166 tracepoint-selftests.c.
7167 * unittests/tracepoint-selftests.c: New.
7169 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7171 * MAINTAINERS (Write After Approval): Add Pedro Franco de
7174 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
7176 * symtab.c (find_pc_sect_line): fixed indentation.
7178 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
7180 * symtab.c (find_pc_sect_line): now uses binary search.
7182 2018-03-19 Tom Tromey <tom@tromey.com>
7184 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
7187 2018-03-19 Pedro Alves <palves@redhat.com>
7188 Tom Tromey <tom@tromey.com>
7190 * unittests/observable-selftests.c: New file.
7191 * common/observable.h: New file.
7192 * observable.h: New file.
7193 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
7194 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
7195 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
7196 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
7197 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
7198 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
7199 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
7200 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
7201 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
7202 python/py-breakpoint.c, python/py-finishbreakpoint.c,
7203 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
7204 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
7205 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
7206 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
7207 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
7208 tui/tui-interp.c, valops.c: Update all users.
7209 * tui/tui-hooks.c (tui_bp_created_observer)
7210 (tui_bp_deleted_observer, tui_bp_modified_observer)
7211 (tui_inferior_exit_observer, tui_before_prompt_observer)
7212 (tui_normal_stop_observer, tui_register_changed_observer):
7214 (tui_observers_token): New global.
7215 (attach_or_detach, tui_attach_detach_observers): New functions.
7216 (tui_install_hooks, tui_remove_hooks): Use
7217 tui_attach_detach_observers.
7218 * record-btrace.c (record_btrace_thread_observer): Remove.
7219 (record_btrace_thread_observer_token): New global.
7220 * observer.sh: Remove.
7221 * observer.c: Rename to observable.c.
7222 * observable.c (namespace gdb_observers): Define new objects.
7223 (observer_debug): Move into gdb_observers namespace.
7224 (struct observer, struct observer_list, xalloc_observer_list_node)
7225 (xfree_observer_list_node, generic_observer_attach)
7226 (generic_observer_detach, generic_observer_notify): Remove.
7227 (_initialize_observer): Update.
7228 Don't include observer.inc.
7229 * Makefile.in (generated_files): Remove observer.h, observer.inc.
7230 (clean mostlyclean): Likewise.
7231 (observer.h, observer.inc): Remove targets.
7232 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
7233 (COMMON_SFILES): Use observable.c, not observer.c.
7234 * .gitignore: Remove observer.h.
7236 2018-03-18 Tom Tromey <tom@tromey.com>
7238 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
7240 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
7242 2018-03-17 Tom Tromey <tom@tromey.com>
7244 * auto-load.c (auto_load_objfile_script_1): Use std::string.
7246 2018-03-17 Tom Tromey <tom@tromey.com>
7248 * target.c (class scoped_target_fd): New.
7249 (target_fileio_close_cleanup): Remove.
7250 (target_fileio_read_alloc_1): Use scoped_target_fd.
7252 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
7254 * silent-rules.mk: New.
7255 * Makefile.in: Include silent-rules.mk
7256 (srcdir, VPATH, top_srcdir): Move up.
7257 (COMPILE): Add ECHO_CXX.
7258 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
7259 (init.c): Add ECHO_INIT_C.
7260 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
7261 (version.c): Add ECHO_GEN.
7262 (printcmd.o): Add ECHO_CXX.
7263 (target-float.o): Add ECHO_CXX.
7264 (ada-exp.o): Add ECHO_CXX.
7265 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
7266 (insight$(EXEEXT)): Add ECHO_CXXLD.
7267 * gnulib/configure.ac: Add AM_SILENT_RULES.
7268 * gnulib/aclocal.m4: Re-generate.
7269 * gnulib/configure: Re-generate.
7270 * gnulib/import/Makefile.in: Re-generate.
7272 2018-03-16 Tom Tromey <tom@tromey.com>
7274 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
7275 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
7276 * utils.c (do_free_section_addr_info)
7277 (make_cleanup_free_section_addr_info): Remove.
7278 * symfile.h (struct other_sections): Add constructor.
7279 (struct section_addr_info): Remove.
7280 (section_addr_info): New typedef.
7281 (struct sym_fns) <sym_offsets>: Change type of parameter.
7282 (build_section_addr_info_from_objfile)
7283 (relative_addr_info_to_section_offsets, addr_info_make_relative)
7284 (default_symfile_offsets, symbol_file_add)
7285 (symbol_file_add_from_bfd)
7286 (build_section_addr_info_from_section_table): Update.
7287 (alloc_section_addr_info, free_section_addr_info): Don't declare.
7288 * symfile.c (alloc_section_addr_info): Remove.
7289 (build_section_addr_info_from_section_table): Change return type.
7291 (build_section_addr_info_from_bfd)
7292 (build_section_addr_info_from_objfile): Likewise.
7293 (free_section_addr_info): Remove.
7294 (relative_addr_info_to_section_offsets): Change type of "addrs".
7295 (addrs_section_compar): Now a std::sort comparator.
7296 (addrs_section_sort): Change return type.
7297 (addr_info_make_relative): Change type of "addrs". Update.
7298 (default_symfile_offsets, syms_from_objfile_1)
7299 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
7300 (symbol_file_add_separate): Update.
7301 (symbol_file_add): Change type of "addrs". Update.
7302 (add_symbol_file_command): Update. Remove cleanups.
7303 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
7305 * symfile-debug.c (debug_sym_offsets): Change type of "info".
7306 * solib.c (solib_read_symbols): Update.
7307 * objfiles.c (objfile_relocate): Update. Remove cleanups.
7308 * machoread.c (macho_symfile_offsets): Update.
7309 * jit.c (jit_bfd_try_read_symtab): Update.
7311 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
7313 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7314 unittests/utils-selftests.c.
7315 * unittests/utils-selftests.c: New file.
7317 2018-03-14 Tom Tromey <tom@tromey.com>
7320 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
7323 2018-03-14 Tom Tromey <tom@tromey.com>
7326 * printcmd.c (printf_pointer): Allow "-" in format.
7328 2018-03-14 Tom Tromey <tom@tromey.com>
7330 * printcmd.c (_initialize_printcmd): Add usage to printf.
7332 2018-03-14 Yao Qi <qiyao@sourceware.org>
7334 * MAINTAINERS: Update my email address.
7336 2018-03-13 Tom Tromey <tom@tromey.com>
7338 * machoread.c (macho_check_dsym): Change filenamep to a
7340 (macho_symfile_read): Update.
7341 * symfile.c (load_command): Use std::string.
7343 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
7345 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
7346 to error message string.
7347 (riscv_register_name): Use xsnprintf instead of sprintf.
7348 (riscv_insn::fetch_instruction): Use gdb_assert instead of
7350 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
7352 (riscv_push_dummy_call): Likewise.
7354 2018-03-12 Tom Tromey <tom@tromey.com>
7356 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
7357 Use gdb::byte_vector.
7358 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
7360 2018-03-12 Yao Qi <yao.qi@linaro.org>
7362 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
7363 parameter type to readable_regcache.
7364 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
7367 2018-03-11 Tom Tromey <tom@tromey.com>
7369 * dwarf2read.c (struct nextfield): Add initializers.
7370 (struct nextfnfield): Remove.
7371 (struct fnfieldlist): Add initializers. Remove "length" and
7372 "head", use std::vector.
7373 (struct decl_field_list): Remove.
7374 (struct field_info): Add initializers.
7375 <fields, baseclasses>: Now std::vector.
7376 <nbaseclasses, nfnfields, typedef_field_list_count,
7377 nested_types_list_count>: Remove.
7378 (dwarf2_add_field, dwarf2_add_type_defn)
7379 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
7380 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
7381 (process_structure_scope): Update.
7383 2018-03-11 Tom Tromey <tom@tromey.com>
7385 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
7386 for use by std::sort.
7387 (build_type_psymtabs_1): Use std::vector.
7389 2018-03-09 Eli Zaretskii <eliz@gnu.org>
7391 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
7392 and LIBMPFR in the printed configuration.
7394 2018-03-08 Tom Tromey <tom@tromey.com>
7396 * source.c (get_filename_and_charpos): Use scoped_fd.
7397 * nto-procfs.c (procfs_open_1): Use scoped_fd.
7398 (procfs_pidlist): Likewise.
7399 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
7400 (iterate_over_mappings): Likewise.
7402 2018-03-08 Tom Tromey <tom@tromey.com>
7404 * infcall.c (struct call_return_meta_info)
7405 <stack_temporaries_enabled>: Remove.
7406 (get_call_return_value, call_function_by_hand_dummy): Update.
7407 * thread.c (disable_thread_stack_temporaries): Remove.
7408 (enable_thread_stack_temporaries): Remove.
7409 (thread_stack_temporaries_enabled_p): Return bool.
7410 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
7411 (get_last_thread_stack_temporary): Update.
7412 * eval.c (evaluate_subexp): Update.
7413 * gdbthread.h (class enable_thread_stack_temporaries): Now a
7414 class, not a function.
7415 (value_ptr, value_vec): Remove typedefs.
7416 (class thread_info) <stack_temporaries_enabled>: Now bool.
7417 <stack_temporaries>: Now a std::vector.
7418 (thread_stack_temporaries_enabled_p)
7419 (value_in_thread_stack_temporaries): Return bool.
7421 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
7423 * remote.c (putpkt_binary): Fix omitted bytes reporting.
7424 (getpkt_or_notif_sane_1): Likewise.
7426 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7428 * build-id.c (build_id_to_debug_bfd): Use std::string.
7430 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7432 * build-id.c (find_separate_debug_file_by_buildid): Return
7434 * build-id.h (find_separate_debug_file_by_buildid): Return
7436 * coffread.c (coff_symfile_read): Adjust to std::string.
7437 * elfread.c (elf_symfile_read): Adjust to std::string.
7438 * symfile.c (separate_debug_file_exists): Change parameter to
7440 (find_separate_debug_file): Return std::string.
7441 (find_separate_debug_file_by_debuglink): Return std::string.
7442 * symfile.h (find_separate_debug_file_by_debuglink): Return
7445 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7447 * common/xml-utils.c (xml_escape_text): Move code to...
7448 (xml_escape_text_append): ... this new function.
7449 * common/xml-utils.h (xml_escape_text_append): New declaration.
7450 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
7452 (_initialize_xml_utils): register test_xml_escape_text_append as
7455 2018-03-07 Alan Hayward <alan.hayward@arm.com>
7457 * defs.h: Remove MAX_REGISTER_SIZE.
7458 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
7460 * python/py-unwind.c (pyuw_sniffer): Likewise.
7462 2018-03-07 Tom Tromey <tom@tromey.com>
7464 * linux-tdep.c (linux_info_proc): Update.
7465 * target.h (struct target_ops) <to_fileio_readlink>: Return
7467 (target_fileio_readlink): Return optional<string>.
7468 * remote.c (remote_hostio_readlink): Return optional<string>.
7469 * inf-child.c (inf_child_fileio_readlink): Return
7471 * target.c (target_fileio_readlink): Return optional<string>.
7473 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
7475 * regcache.c (cooked_read_test): Add riscv to the list of
7476 architectures that have a save_reggroup.
7478 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
7480 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
7481 value is not a dynamic class object.
7483 2018-03-06 Tom Tromey <tom@tromey.com>
7485 * rust-exp.y: Formatting fixes.
7487 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7489 * riscv-tdep.c (riscv_register_name): Remove target description
7491 (riscv_gdbarch_init): Remove target description check.
7493 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7495 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
7497 * riscv-tdep.h: Likewise.
7499 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7501 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
7502 (riscv_pseudo_register_write): Delete.
7503 (riscv_gdbarch_init): Remove all use of pseudo registers.
7505 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7507 * record-btrace.c (btrace_print_lines): Replace cleanup
7508 parameter with RAII equivalents.
7509 (btrace_insn_history): Replace cleanup with RAII equivalents.
7510 * ui-out.h (make_cleanup_ui_out_list_begin_end,
7511 make_cleanup_ui_out_tuple_begin_end): Remove.
7512 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
7513 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
7514 make_cleanup_ui_out_list_begin_end): Remove.
7516 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7518 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
7519 parameter types to std::vector. Use bool.
7520 (record_btrace_wait): Replace VEC(tp_t) with
7521 std::vector<thread_info *>.
7522 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
7524 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7526 * record-btrace.c (record_btrace_disable_callback): Remove.
7527 (struct scoped_btrace_disable): New.
7528 (record_btrace_open): Use scoped_btrace_disable.
7530 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7532 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
7533 reading values from registers.
7535 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7537 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
7540 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7542 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
7543 change parameter type. Use GDB's print functions, and use
7544 core_addr_to_string where appropriate.
7545 (riscv_push_dummy_call): Use core_addr_to_string where
7546 appropriate, update call to riscv_print_arg_location, and reindent
7548 (riscv_return_value): Update call to riscv_print_arg_location.
7550 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7551 Tim Newsome <tim@sifive.com>
7552 Albert Ou <a0u@eecs.berkeley.edu>
7553 Darius Rad <darius@bluespec.com>
7555 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
7556 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
7557 (ALLDEPFILES): Add riscv-tdep.c
7558 * configure.tgt: Add riscv support.
7559 * riscv-tdep.c: New file.
7560 * riscv-tdep.h: New file.
7561 * NEWS: Mention new target.
7562 * MAINTAINERS: Add entry for riscv.
7564 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7566 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
7567 fields within aggregates.
7569 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
7571 * record-btrace.c (btrace_print_lines): Change type of flags to
7572 gdb_disassembly_flags.
7574 2018-03-04 John Baldwin <jhb@FreeBSD.org>
7576 * fbsd-nat.c: Include "inf-ptrace.h".
7577 (USE_SIGTRAP_SIGINFO): Conditionally define.
7578 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
7579 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
7580 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
7582 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
7584 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
7586 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
7587 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
7588 "supports_stopped_by_hw_breakpoint" target methods.
7590 2018-03-04 John Baldwin <jhb@FreeBSD.org>
7592 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
7593 * fbsd-nat.c (debug_fbsd_nat): New variable.
7594 (show_fbsd_nat_debug): New function.
7595 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
7596 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
7598 2018-03-04 John Baldwin <jhb@FreeBSD.org>
7600 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
7601 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
7603 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
7604 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
7607 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7609 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
7610 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
7612 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7614 * charset.c (struct charset_vector): New.
7615 (charsets): Change type to charset_vector.
7616 (find_charset_names): Adjust.
7618 (_initialize_charset): Adjust.
7620 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7622 * progspace.h (struct program_space) <deleted_solibs>: Change
7623 type to std::vector<std::string>.
7624 * progspace.c (clear_program_space_solib_cache): Adjust.
7625 * breakpoint.c (print_solib_event): Adjust.
7626 (check_status_catch_solib): Adjust.
7627 * solib.c (update_solib_list): Adjust.
7628 * ui-out.h (class ui_out) <field_string>: New overload.
7629 * ui-out.c (ui_out::field_string): New overload.
7631 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7633 * progspace.h (struct program_space): Add constructor and
7634 destructor, initialize fields.
7635 (add_program_space): Remove.
7636 * progspace.c (add_program_space): Rename to...
7637 (program_space::program_space): ... this.
7638 (release_program_space): Rename to...
7639 (program_space::~program_space): ... this.
7640 (delete_program_space): Use delete to delete program_space.
7641 (initialize_progspace): Use new to allocate program_space.
7642 * inferior.c (add_inferior_with_spaces): Likewise.
7643 (clone_inferior_command): Likewise.
7644 * infrun.c (follow_fork_inferior): Likewise.
7645 (handle_vfork_child_exec_or_exit): Likewise.
7647 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7649 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
7650 (delim_string_to_char_ptr_vec): Return std::vector of
7651 gdb::unique_xmalloc_ptr.
7652 (dirnames_to_char_ptr_vec_append): Take std::vector of
7653 gdb::unique_xmalloc_ptr.
7654 (dirnames_to_char_ptr_vec): Return std::vector of
7655 gdb::unique_xmalloc_ptr.
7656 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
7657 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
7658 (delim_string_to_char_ptr_vec): Return an std::vector of
7659 gdb::unique_xmalloc_ptr, adjust the code.
7660 (dirnames_to_char_ptr_vec_append): Take an std::vector of
7661 gdb::unique_xmalloc_ptr, adjust the code.
7662 (dirnames_to_char_ptr_vec): Return an std::vector of
7663 gdb::unique_xmalloc_ptr, adjust the code.
7664 * auto-load.c (auto_load_safe_path_vec): Change type to
7665 std::vector of gdb::unique_xmalloc_ptr.
7666 (auto_load_expand_dir_vars): Return an std::vector of
7667 gdb::unique_xmalloc_ptr, adjust the code.
7668 (auto_load_safe_path_vec_update): Adjust.
7669 (filename_is_in_auto_load_safe_path_vec): Adjust.
7670 (auto_load_objfile_script_1): Adjust.
7671 * build-id.c (build_id_to_debug_bfd): Adjust.
7672 * linux-thread-db.c (thread_db_load_search): Adjust.
7673 * source.c (add_path): Adjust.
7675 * symfile.c (find_separate_debug_file): Adjust.
7676 * utils.c (do_free_char_ptr_vec): Remove.
7677 (make_cleanup_free_char_ptr_vec): Remove.
7679 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
7682 * common/pathstuff.c: Conditionally include "<windows.h>".
7684 2018-03-01 Georg Sauthoff <mail@georg.so>
7687 * gcore.in: Quote variables and switch interpreter to bash.
7689 2018-03-01 Tom Tromey <tom@tromey.com>
7691 * dwarf2read.c (alloc_discriminant_info): Fix default_index
7692 assertion. Add assertion for discriminant_index.
7693 (quirk_rust_enum): Use correct base type name in univariant case.
7695 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
7697 * record.c (get_call_history_modifiers): Return a
7699 (cmd_record_call_history): Adjust.
7700 * record-btrace.c (record_btrace_call_history): Adjust.
7701 (record_btrace_call_history_range): Adjust.
7702 (record_btrace_call_history_from): Adjust.
7703 * target-debug.h (target_debug_print_record_print_flags): New.
7704 * target-delegates.c: Re-generate.
7705 * target.c (target_call_history): Change flags type.
7706 (target_call_history_from): Likewise.
7707 (target_call_history_range): Likewise.
7708 * target.h (struct target_ops) <target_call_history>: Likewise.
7709 (target_call_history_from): Likewise.
7710 (target_call_history_range): Likewise.
7712 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
7713 Simon Marchi <simon.marchi@polymtl.ca>
7715 * common/common-utils.c: Include "sys/stat.h".
7716 (is_regular_file): Move here from "source.c"; change return
7718 * common/common-utils.h (is_regular_file): New prototype.
7719 * common/pathstuff.c (contains_dir_separator): New function.
7720 * common/pathstuff.h (contains_dir_separator): New prototype.
7721 * source.c: Don't include "sys/stat.h".
7722 (is_regular_file): Move to "common/common-utils.c".
7724 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
7726 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
7727 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
7728 * auto-load.c: Include "common/pathstuff.h".
7729 * common/common-def.h (current_directory): Move here.
7730 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
7732 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
7734 * common/pathstuff.c: New file.
7735 * common/pathstuff.h: New file.
7736 * compile/compile.c: Include "common/pathstuff.h".
7737 * defs.h (current_directory): Move to "common/common-defs.h".
7738 * dwarf2read.c: Include "common/pathstuff.h".
7740 * guile/scm-safe-call.c: Likewise.
7741 * linux-thread-db.c: Likewise.
7743 * nto-tdep.c: Likewise.
7744 * objfiles.c: Likewise.
7745 * source.c: Likewise.
7746 * symtab.c: Likewise.
7747 * utils.c: Include "common/pathstuff.h".
7748 (gdb_realpath): Move to "common/pathstuff.c".
7749 (gdb_realpath_keepfile): Likewise.
7750 (gdb_abspath): Likewise.
7751 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
7752 (gdb_realpath_keepfile): Likewise.
7753 (gdb_abspath): Likewise.
7755 2018-02-28 John Baldwin <jhb@FreeBSD.org>
7757 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
7758 wildcard process pid for super_resume for kernels with a
7761 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
7763 * compile/compile.c (get_args): Add additional comments
7764 explaining function.
7766 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
7767 Tom Tromey <tom@tromey.com>
7769 * target.h (memory_write_request_s): Remove typedef. Don't define
7771 (target_write_memory_blocks): Change argument to std::vector.
7772 (struct memory_write_request): Add constructor.
7773 * target-memory.c (compare_block_starting_address): Return bool.
7774 Change argument types.
7775 (claim_memory): Change arguments to use std::vector.
7776 (split_regular_and_flash_blocks, blocks_to_erase)
7777 (compute_garbled_blocks): Likewise.
7778 (cleanup_request_data, cleanup_write_requests_vector): Remove.
7779 (target_write_memory_blocks): Change argument to std::vector.
7780 * symfile.c (struct load_section_data): Add constructor and
7781 destructor. Use std::vector for "requests".
7782 (struct load_progress_data): Add initializers.
7783 (load_section_callback): Update. Use "new".
7784 (clear_memory_write_data): Remove.
7785 (generic_load): Update.
7787 2018-02-27 Alan Hayward <alan.hayward@arm.com>
7789 * arch/aarch64.h: Use common/tdesc.h.
7791 2018-02-26 Maciej W. Rozycki <macro@mips.com>
7793 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
7794 architecture with a 64-bit ABI.
7796 2018-02-26 Maciej W. Rozycki <macro@mips.com>
7798 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
7799 ahead of target description loading.
7801 2018-02-26 Tom Tromey <tom@tromey.com>
7803 * stack.c (backtrace_command_1): Update.
7804 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
7806 * python/py-framefilter.c (py_print_frame)
7807 (gdbpy_apply_frame_filter): Change type of "flags".
7808 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
7810 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
7811 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
7812 * extension.h (enum frame_filter_flag): Rename from
7814 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
7815 (apply_ext_lang_frame_filter): Change type of "flags".
7816 * extension.c (apply_ext_lang_frame_filter): Change type of
7818 * extension-priv.h (struct extension_language_ops)
7819 <apply_frame_filter>: Change type of "flags".
7821 2018-02-26 Tom Tromey <tom@tromey.com>
7824 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
7825 off-by-one in py_end computation.
7826 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
7828 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
7831 2018-02-26 Tom Tromey <tom@tromey.com>
7833 * dwarf2read.c (struct variant_field): New.
7834 (struct nextfield) <variant>: New field.
7835 (dwarf2_add_field): Handle DW_TAG_variant_part.
7836 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
7837 discriminated union.
7838 (read_structure_type): Handle DW_TAG_variant_part.
7839 (handle_struct_member_die): New function, extracted from
7840 process_structure_scope. Handle DW_TAG_variant.
7841 (process_structure_scope): Handle discriminated unions. Call
7842 handle_struct_member_die.
7844 2018-02-26 Tom Tromey <tom@tromey.com>
7846 * rust-lang.h (rust_last_path_segment): Declare.
7847 * rust-lang.c (rust_last_path_segment): Now public. Change
7849 (struct disr_info): Remove.
7850 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
7851 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
7852 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
7853 (rust_enum_p, rust_enum_variant): New function.
7854 (rust_underscore_fields): Remove "offset" parameter.
7855 (rust_print_enum): New function.
7856 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
7857 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
7858 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
7860 (rust_internal_print_type): New function, from rust_print_type.
7862 (rust_print_type): Call rust_internal_print_type.
7863 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
7864 Update enum handling.
7865 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
7866 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
7867 (rust_union_quirks): New functions.
7868 (process_full_comp_unit, process_full_type_unit): Call
7870 (process_structure_scope): Update rust_unions if necessary.
7872 2018-02-26 Tom Tromey <tom@tromey.com>
7874 * value.h (value_union_variant): Declare.
7875 * valops.c (value_union_variant): New function.
7876 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
7877 (struct discriminant_info): New.
7878 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
7880 (struct main_type) <flag_discriminated_union>: New field.
7882 2018-02-26 Tom Tromey <tom@tromey.com>
7884 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7885 unittests/unpack-selftests.c.
7886 * unittests/unpack-selftests.c: New file.
7887 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
7889 2018-02-26 Yao Qi <yao.qi@linaro.org>
7891 * dwarf2read.c (struct partial_die_info) <read>: New method.
7892 (read_partial_die): Remove the declaration.
7893 (load_partial_dies): Update.
7894 (partial_die_info::partial_die_info):
7895 (read_partial_die): Change it to partial_die_info::read.
7897 2018-02-26 Yao Qi <yao.qi@linaro.org>
7899 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
7900 (fixup_partial_die): Remove declaration.
7901 (scan_partial_symbols): Update.
7902 (partial_die_parent_scope): Likewise.
7903 (partial_die_full_name): Likewise.
7904 (fixup_partial_die): Change it to partial_die_info::fixup.
7906 2018-02-26 Yao Qi <yao.qi@linaro.org>
7908 * dwarf2read.c (read_partial_die): Update the declaration.
7909 (load_partial_dies): Caller update.
7910 (read_partial_die): Remove one argument abbrev_len.
7912 2018-02-26 Yao Qi <yao.qi@linaro.org>
7914 * dwarf2read.c (struct partial_die_info): Add ctor, delete
7915 assignment operator.
7916 (load_partial_dies): Use ctor and copy ctor.
7917 (read_partial_die): Update.
7918 (dwarf2_cu::find_partial_die): Use ctor.
7920 2018-02-26 Yao Qi <yao.qi@linaro.org>
7922 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
7923 (find_partial_die_in_comp_unit): Change it to
7924 dwarf2_cu::find_partial_die.
7925 (find_partial_die): Update.
7927 2018-02-26 Yao Qi <yao.qi@linaro.org>
7929 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
7932 2018-02-26 Yao Qi <yao.qi@linaro.org>
7934 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
7936 2018-02-26 Alan Hayward <alan.hayward@arm.com>
7938 * arch/amd64.h: Use common/tdesc.h.
7939 * arch/i386.c: Likewise.
7940 * arch/i386.h: Likewise.
7941 * arch/tic6x.c: Likewise.
7942 * arch/tdesc.h: Move file from here...
7943 * common/tdesc.h: ...to here.
7944 * features/aarch64-core.c: Regenerate.
7945 * features/aarch64-fpu.c: Regenerate.
7946 * features/i386/32bit-avx.c: Regenerate.
7947 * features/i386/32bit-avx512.c: Regenerate.
7948 * features/i386/32bit-core.c: Regenerate.
7949 * features/i386/32bit-linux.c: Regenerate.
7950 * features/i386/32bit-mpx.c: Regenerate.
7951 * features/i386/32bit-pkeys.c: Regenerate.
7952 * features/i386/32bit-sse.c: Regenerate.
7953 * features/i386/64bit-avx.c: Regenerate.
7954 * features/i386/64bit-avx512.c: Regenerate.
7955 * features/i386/64bit-core.c: Regenerate.
7956 * features/i386/64bit-linux.c: Regenerate.
7957 * features/i386/64bit-mpx.c: Regenerate.
7958 * features/i386/64bit-pkeys.c: Regenerate.
7959 * features/i386/64bit-segments.c: Regenerate.
7960 * features/i386/64bit-sse.c: Regenerate.
7961 * features/i386/x32-core.c: Regenerate.
7962 * features/tic6x-c6xp.c: Regenerate.
7963 * features/tic6x-core.c: Regenerate.
7964 * features/tic6x-gp.c: Regenerate.
7965 * target-descriptions.c: Use common/tdesc.h.
7966 * target-descriptions.h: Likewise.
7968 2018-02-24 Tom Tromey <tom@tromey.com>
7970 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7971 (try_thread_db_load_from_dir, thread_db_load_search): Use
7973 (info_auto_load_libthread_db_compare): Return bool. Change
7975 (info_auto_load_libthread_db): Use std::vector, std::string.
7978 2018-02-24 Tom Tromey <tom@tromey.com>
7980 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
7982 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
7984 * gdbarch.c: Rebuild.
7985 * gdbarch.h: Rebuild.
7986 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
7987 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
7988 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
7991 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
7993 * gdbtypes.h (sect_offset): Change type to uint64_t.
7994 (sect_offset_str): New function.
7995 * dwarf2read.c (create_addrmap_from_aranges): Use
7997 (error_check_comp_unit_head): Likewise.
7998 (create_debug_type_hash_table): Likewise.
7999 (read_cutu_die_from_dwo): Likewise.
8000 (init_cutu_and_read_dies): Likewise.
8001 (init_cutu_and_read_dies_no_follow): Likewise.
8002 (process_psymtab_comp_unit_reader): Likewise.
8003 (partial_die_parent_scope): Likewise.
8004 (peek_die_abbrev): Likewise.
8005 (process_queue): Likewise.
8006 (dwarf2_physname): Likewise.
8007 (read_namespace_alias): Likewise.
8008 (read_import_statement): Likewise.
8009 (create_dwo_cu_reader): Likewise.
8010 (create_cus_hash_table): Likewise.
8011 (lookup_dwo_cutu): Likewise.
8012 (inherit_abstract_dies): Likewise.
8013 (read_func_scope): Likewise.
8014 (read_call_site_scope): Likewise.
8015 (dwarf2_add_member_fn): Likewise.
8016 (read_common_block): Likewise.
8017 (read_module_type): Likewise.
8018 (read_typedef): Likewise.
8019 (read_subrange_type): Likewise.
8020 (load_partial_dies): Likewise.
8021 (read_partial_die): Likewise.
8022 (find_partial_die): Likewise.
8023 (read_str_index): Likewise.
8024 (dwarf2_string_attr): Likewise.
8025 (build_error_marker_type): Likewise.
8026 (lookup_die_type): Likewise.
8027 (dump_die_shallow): Likewise.
8028 (follow_die_ref): Likewise.
8029 (dwarf2_fetch_die_loc_sect_off): Likewise.
8030 (dwarf2_fetch_constant_bytes): Likewise.
8031 (follow_die_sig): Likewise.
8032 (get_signatured_type): Likewise.
8033 (get_DW_AT_signature_type): Likewise.
8034 (dwarf2_find_containing_comp_unit): Likewise.
8035 (set_die_type): Likewise.
8037 2018-02-21 John Baldwin <jhb@FreeBSD.org>
8039 * arch/aarch64.c: Include "common-defs.h".
8040 * arch/amd64.c: Likewise.
8041 * arch/i386.c: Likewise.
8043 2018-02-21 Tom Tromey <tom@tromey.com>
8045 * value.h: (extract_field_op): Update.
8046 * eval.c (extract_field_op): Return a const char *.
8047 * expression.h (parse_expression_for_completion): Update.
8048 * completer.c (complete_expression): Update.
8049 (add_struct_fields): Make fieldname const.
8050 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
8051 (mark_completion_tag, parse_exp_in_context_1): Update.
8052 (parse_expression_for_completion): Change "name" to
8053 unique_xmalloc_ptr*.
8055 2018-02-21 Tom Tromey <tom@tromey.com>
8057 * infcall.c (call_function_by_hand_dummy): Use std::vector.
8059 2018-02-21 Yao Qi <yao.qi@linaro.org>
8061 * avr-tdep.c (avr_read_pc): Change parameter type to
8063 * gdbarch.sh (read_pc): Likewise.
8064 * gdbarch.c: Re-generated.
8065 * gdbarch.h: Re-generated.
8066 * hppa-tdep.c (hppa_read_pc): Change parameter type to
8068 * ia64-tdep.c (ia64_read_pc): Likewise.
8069 * mips-tdep.c (mips_read_pc): Likewise.
8070 * spu-tdep.c (spu_read_pc): Likewise.
8072 2018-02-21 Yao Qi <yao.qi@linaro.org>
8074 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
8075 * regcache-dump.c: New file.
8076 * regcache.c: Move register_dump to regcache-dump.c.
8077 (maintenance_print_registers): Likewise.
8078 (maintenance_print_raw_registers): Likewise.
8079 (maintenance_print_cooked_registers): Likewise.
8080 (maintenance_print_register_groups): Likewise.
8081 (maintenance_print_remote_registers): Likewise.
8082 (_initialize_regcache): Likewise.
8083 * regcache.h (register_dump): Moved from regcache.c.
8085 2018-02-21 Yao Qi <yao.qi@linaro.org>
8087 * regcache.c (regcache::regcache): Update.
8088 (regcache::invalidate): Move it to detached_regcache::invalidate.
8089 (get_thread_arch_aspace_regcache): Update.
8090 (regcache::raw_update): Update.
8091 (regcache::cooked_read): Remove some code.
8092 (regcache::cooked_read_value): Likewise.
8093 (regcache::raw_write): Remove assert on m_readonly_p.
8094 (regcache::raw_supply_integer): Move it to
8095 detached_regcache::raw_supply_integer.
8096 (regcache::raw_supply_zeroed): Likewise.
8097 * regcache.h (detached_regcache) <raw_supply_integer>: New
8099 <raw_supply_zeroed, invalidate>: Likewise.
8100 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
8101 <invalidate>: Likewise.
8102 <m_readonly_p>: Removed.
8104 2018-02-21 Yao Qi <yao.qi@linaro.org>
8106 * infcmd.c (get_return_value): Let stop_regs point to
8107 get_current_regcache.
8108 * regcache.c (regcache::regcache): Remove.
8109 (register_dump_reg_buffer): New class.
8110 (regcache_print): Adjust.
8111 * regcache.h (regcache): Remove constructors.
8113 2018-02-21 Yao Qi <yao.qi@linaro.org>
8115 * regcache.c (class register_dump): New class.
8116 (register_dump_regcache, register_dump_none): New class.
8117 (register_dump_remote, register_dump_groups): New class.
8118 (regcache_print): Update.
8119 * regcache.h (regcache_dump_what): Move it to regcache.c.
8120 (regcache) <dump>: Remove.
8122 2018-02-21 Yao Qi <yao.qi@linaro.org>
8124 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
8126 (jit_unwind_reg_set_impl): Call raw_supply.
8127 (jit_frame_sniffer): Use reg_buffer_rw.
8128 * record-full.c (record_full_core_regbuf): Change its type.
8129 (record_full_core_open_1): Use reg_buffer_rw.
8130 (record_full_close): Likewise.
8131 (record_full_core_fetch_registers): Use regcache->raw_supply.
8132 (record_full_core_store_registers): Likewise.
8133 * regcache.c (regcache::get_register_status): Move it to
8135 (regcache_raw_set_cached_value): Remove.
8136 (regcache::raw_set_cached_value): Remove.
8137 (regcache::raw_write): Call raw_supply.
8138 (regcache::raw_supply): Move it to reg_buffer_rw.
8139 * regcache.h (regcache_raw_set_cached_value): Remove.
8140 (reg_buffer_rw): New class.
8142 2018-02-21 Yao Qi <yao.qi@linaro.org>
8144 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
8145 readonly_detached_regcache.
8146 (dummy_frame_prev_register): Use regcache->cooked_read.
8147 * frame.c (frame_save_as_regcache): Change return type.
8148 (frame_pop): Update.
8149 * frame.h (frame_save_as_regcache): Update declaration.
8150 * inferior.h (get_infcall_suspend_state_regcache): Update
8152 * infrun.c (infcall_suspend_state) <registers>: use
8153 readonly_detached_regcache.
8154 (save_infcall_suspend_state): Don't use regcache_dup.
8155 (get_infcall_suspend_state_regcache): Change return type.
8156 * linux-fork.c (struct fork_info) <savedregs>: Change to
8157 readonly_detached_regcache.
8159 (fork_save_infrun_state): Don't use regcache_dup.
8160 (info_checkpoints_command): Adjust.
8161 * mi/mi-main.c (register_changed_p): Update declaration.
8162 (mi_cmd_data_list_changed_registers): Use
8163 readonly_detached_regcache.
8164 (register_changed_p): Change parameter type to
8165 readonly_detached_regcache.
8166 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
8167 readonly_detached_regcache.
8168 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
8169 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
8171 (regcache::save): Move it to reg_buffer.
8172 (regcache::restore): Change parameter type.
8173 (regcache_dup): Remove.
8174 * regcache.h (reg_buffer) <save>: New method.
8175 (readonly_detached_regcache): New class.
8176 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
8177 readonly_detached_regcache.
8178 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
8180 2018-02-21 Yao Qi <yao.qi@linaro.org>
8182 * frame.c (frame_save_as_regcache): Use regcache method save.
8183 (frame_pop): Use regcache method restore.
8184 * infrun.c (restore_infcall_suspend_state): Likewise.
8185 * linux-fork.c (fork_load_infrun_state): Likewise.
8186 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
8188 * regcache.c (regcache_save): Remove.
8189 (regcache::restore): More asserts.
8190 (regcache_cpy): Remove.
8191 * regcache.h (regcache_save): Remove the declaration.
8192 (regcache::restore): Move from private to public.
8193 Remove the friend declaration of regcache_cpy.
8194 (regcache_cpy): Remove declaration.
8196 2018-02-21 Yao Qi <yao.qi@linaro.org>
8198 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
8199 parameter type to 'readable_regcache *'.
8200 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
8201 * arm-tdep.c (arm_neon_quad_read): Likewise.
8202 (arm_pseudo_read): Likewise.
8203 * avr-tdep.c (avr_pseudo_register_read): Likewise.
8204 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
8205 * frv-tdep.c (frv_pseudo_register_read): Likewise.
8206 * gdbarch.c: Re-generated.
8207 * gdbarch.h: Re-generated.
8208 * gdbarch.sh (pseudo_register_read): Change parameter type to
8209 'readable_regcache *'.
8210 (pseudo_register_read_value): Likewise.
8211 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
8212 (h8300_pseudo_register_read): Likewise.
8213 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
8214 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
8215 (i386_pseudo_register_read_into_value): Likewise.
8216 (i386_pseudo_register_read_value): Likewise.
8217 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
8219 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
8220 * m32c-tdep.c (m32c_raw_read): Likewise.
8221 (m32c_read_flg): Likewise.
8222 (m32c_banked_register): Likewise.
8223 (m32c_banked_read): Likewise.
8224 (m32c_sb_read): Likewise.
8225 (m32c_part_read): Likewise.
8226 (m32c_cat_read): Likewise.
8227 (m32c_r3r2r1r0_read): Likewise.
8228 (m32c_pseudo_register_read): Likewise.
8229 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
8230 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
8231 (mep_pseudo_cr64_read): Likewise.
8232 (mep_pseudo_register_read): Likewise.
8233 * mips-tdep.c (mips_pseudo_register_read): Likewise.
8234 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
8235 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
8236 * regcache.c (regcache::raw_read): Move it to readable_regcache.
8237 (regcache::cooked_read): Likewise.
8238 (regcache::cooked_read_value): Likewise.
8239 (regcache_cooked_read_signed):
8240 (regcache::cooked_read): Likewise.
8241 * regcache.h (readable_regcache): New class.
8242 (regcache): Inherit readable_regcache. Move some methods to
8244 * rl78-tdep.c (rl78_pseudo_register_read): Change
8245 parameter type to 'readable_regcache *'.
8246 * rs6000-tdep.c (do_regcache_raw_read): Remove.
8247 (e500_pseudo_register_read): Change parameter type to
8248 'readable_regcache *'.
8249 (dfp_pseudo_register_read): Likewise.
8250 (vsx_pseudo_register_read): Likewise.
8251 (efpr_pseudo_register_read): Likewise.
8252 * s390-tdep.c (s390_pseudo_register_read): Likewise.
8253 * sh-tdep.c (sh_pseudo_register_read): Likewise.
8254 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
8255 (sh64_pseudo_register_read): Likewise.
8256 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
8257 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
8258 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
8259 (spu_pseudo_register_read): Likewise.
8260 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
8261 (xtensa_pseudo_register_read): Likewise.
8263 2018-02-21 Yao Qi <yao.qi@linaro.org>
8265 * regcache.c (regcache::regcache): Call reg_buffer ctor.
8266 (regcache::arch): Move it to reg_buffer::arch.
8267 (regcache::register_buffer): Likewise.
8268 (regcache::assert_regnum): Likewise.
8269 (regcache::num_raw_registers): Likewise.
8270 * regcache.h (reg_buffer): New class.
8271 (regcache): Inherit reg_buffer.
8273 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
8275 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
8276 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
8278 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
8280 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
8282 2018-02-19 Alan Hayward <alan.hayward@arm.com>
8284 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
8285 (SFILES): Remove common/*.c files.
8286 (COMMON_OBS): Remove some *.o files built from common/*.c files.
8287 * common/common.host: Add common reference.
8288 * configure.ac: Likewise.
8289 * configure: Regenerate.
8291 2018-02-16 Yao Qi <yao.qi@linaro.org>
8293 * block.c (block_namespace_info): Inherit allocate_on_obstack.
8294 (block_initialize_namespace): Use new.
8295 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
8296 (dwarf2_free_objfile): Use delete.
8297 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
8298 (copy_type_recursive): Use new.
8299 * gdb_obstack.h (allocate_on_obstack): New.
8301 2018-02-15 Yao Qi <yao.qi@linaro.org>
8304 * inferior.c (exit_inferior_1): Reset inf->control.
8306 2018-02-15 Joel Brobecker <brobecker@adacore.com>
8308 * ada-lang.c (ada_to_fixed_value_create): Delete advance
8311 2018-02-14 Pedro Alves <palves@redhat.com>
8313 * frame-unwind.c (frame_unwind_try_unwinder): Always call
8314 frame_cleanup_after_sniffer on exception.
8316 2018-02-14 Tom Tromey <tom@tromey.com>
8318 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
8320 (solib_bfd_open): Make pathname const.
8321 * solib.c (solib_bfd_open): Make pathname const.
8322 * solib-spu.c (spu_bfd_fopen): Make name const.
8323 (spu_bfd_open): Make pathname const.
8324 * solib-darwin.c (darwin_bfd_open): Make pathname const.
8325 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
8327 2018-02-14 Tom Tromey <tom@tromey.com>
8329 * symfile.c (symfile_bfd_open): Update.
8330 * source.h (openp, source_full_path_of, find_and_open_source):
8331 Change argument type to unique_xmalloc_ptr.
8332 * source.c (openp): Take a unique_xmalloc_ptr.
8333 (source_full_path_of, find_and_open_source): Likewise.
8334 (open_source_file, symtab_to_fullname): Update.
8335 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
8337 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
8338 (exec_file_find): Update.
8339 * psymtab.c (psymtab_to_fullname): Update.
8340 * nto-tdep.h (nto_find_and_open_solib): Update.
8341 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
8343 * exec.c (exec_file_attach): Update.
8344 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
8345 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
8347 2018-02-14 Tom Tromey <tom@tromey.com>
8349 * solib.c: Include source.h.
8350 * nto-tdep.c: Include source.h.
8351 * mi/mi-cmd-env.c: Include source.h.
8352 * infcmd.c: Include source.h.
8353 * exec.c: Include source.h.
8354 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
8355 (add_path, directory_switch, source_path, init_source_path): Move
8357 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
8358 (add_path, directory_switch, source_path, init_source_path):
8361 2018-02-14 Tom Tromey <tom@tromey.com>
8363 * solist.h (exec_file_find, solib_find): Return
8365 (solib_bfd_fopen): Take a const char *.
8366 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
8367 (exec_file_find, solib_find): Likewise.
8368 (solib_bfd_fopen): Do not take ownership of "pathname".
8369 (solib_bfd_open): Use unique_xmalloc_ptr.
8370 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
8371 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
8372 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
8373 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
8375 2018-02-14 Joel Brobecker <brobecker@adacore.com>
8377 * ada-lang.c (name_match_type_from_name): Remove reference to
8378 ada_name_for_lookup in function's documentation.
8379 * ada-lang.h (ada_name_for_lookup): Delete declaration.
8381 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
8383 * defs.h (enum openp_flags): New enum.
8384 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
8385 Move to enum openp_flags.
8386 (openp_flags): New enum flags.
8387 (openp): Change parameter type to openp_flags.
8388 * source.c (openp): Change parameter type to openp_flags.
8389 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
8390 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
8392 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
8394 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
8397 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
8399 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
8401 (class dwarf2_queue_guard): ...the destructor of this new class.
8402 (dw2_do_instantiate_symtab): Create instance of the new class
8403 dwarf2_queue_guard, remove cleanup.
8405 2018-02-09 Tom Tromey <tom@tromey.com>
8407 * source.c (find_source_lines): Don't reference past the end of
8410 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8412 * remote.c (remote_btrace_maybe_reopen): Change error message.
8413 * btrace.c (btrace_enable): Likewise.
8414 (parse_xml_btrace): Likewise.
8415 (parse_xml_btrace_conf): Likewise.
8417 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8419 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
8420 (linux_enable_pt, linux_enable_bts): Call
8421 diagnose_perf_event_open_fail.
8423 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8425 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
8426 Remove parameter and change return type. Update callers. Move it.
8427 (linux_enable_bts, linux_enable_pt): Improve error message.
8428 (linux_enable_pt): Remove zero buffer size check.
8429 (linux_enable_btrace): Improve error messages. Remove NULL return
8432 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8434 * btrace.c (btrace_enable): Remove target_supports_btrace call.
8435 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
8436 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
8437 (linux_supports_pt, linux_supports_btrace): Remove.
8438 (linux_enable_bts): Call cpu_supports_bts.
8439 * nat/linux-btrace.h (linux_supports_btrace): Remove.
8440 * remote.c (remote_supports_btrace): Remove.
8441 (init_remote_ops): Remove remote_supports_btrace.
8442 * target-delegates.c: Regenerated.
8443 * target.c (target_supports_btrace): Remove.
8444 * target.h (target_ops) <to_supports_btrace>: Remove
8445 (target_supports_btrace): Remove.
8446 * x86-linux-nat.c (x86_linux_create_target): Remove
8447 linux_supports_btrace.
8449 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8451 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
8453 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
8454 exception and use message in own exception.
8456 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8458 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
8459 (perf_event_pt_event_type): Use gdb_file_up.
8460 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
8461 scoped_fd, and scoped_mmap.
8463 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8465 * common/scoped_mmap.h: New.
8466 * unittests/scoped_mmap-selftest.c: New.
8467 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8468 unittests/scoped_mmap-selftest.c.
8470 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8472 * common/scoped_fd.h: New.
8473 * unittests/scoped_fd-selftest.c: New.
8474 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8475 unittests/scoped_fd-selftest.c.
8477 2018-02-09 Tom Tromey <tom@tromey.com>
8479 * auto-load.c (auto_load_section_scripts): Use
8480 gdb::unique_xmalloc_ptr.
8482 2018-02-09 Tom Tromey <tom@tromey.com>
8484 * auto-load.c (execute_script_contents): Use std::string.
8486 2018-02-09 Joel Brobecker <brobecker@adacore.com>
8488 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
8489 Python function, rather than a new command.
8491 2018-02-08 Tom Tromey <tom@tromey.com>
8493 * solib.c (solib_find_1): Use std::string.
8494 (solib_bfd_fopen): Use unique_xmalloc_ptr.
8496 2018-02-08 Tom Tromey <tom@tromey.com>
8498 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
8500 2018-02-08 Tom Tromey <tom@tromey.com>
8502 * source.c (find_source_lines): Use gdb::def_vector.
8504 2018-02-08 Tom Tromey <tom@tromey.com>
8506 * macrocmd.c (struct temporary_macro_definition): New.
8507 (macro_define_command): Use temporary_macro_definition. Remove
8509 (free_macro_definition_ptr): Remove.
8511 2018-02-08 Tom Tromey <tom@tromey.com>
8513 * macroexp.c (maybe_expand): Use std::string.
8515 2018-02-08 Tom Tromey <tom@tromey.com>
8517 * macroexp.c (struct macro_buffer): Add initializers for some
8519 (init_buffer, init_shared_buffer, free_buffer)
8520 (free_buffer_return_text): Remove.
8521 (macro_buffer): New constructors.
8522 (~macro_buffer): New destructor.
8523 (macro_buffer::set_shared): New method.
8524 (macro_buffer::resize_buffer, macro_buffer::appendc)
8525 (macro_buffer::appendmem): Now methods, not free functions.
8526 (set_token, append_tokens_without_splicing, stringify)
8527 (macro_stringify): Update.
8528 (gather_arguments): Change return type. Remove argc_p argument,
8529 add args_ptr argument. Use std::vector.
8530 (substitute_args): Remove argc argument. Accept std::vector.
8531 (expand): Update. Use std::vector.
8532 (scan, macro_expand, macro_expand_next): Update.
8534 2018-02-08 Tom Tromey <tom@tromey.com>
8536 * symtab.c (default_collect_symbol_completion_matches_break_on):
8537 Use unique_xmalloc_ptr.
8538 * macroscope.h: (sal_macro_scope, user_macro_scope)
8539 (default_macro_scope): Return unique_xmalloc_ptr.
8540 * macroscope.c (sal_macro_scope, user_macro_scope)
8541 (default_macro_scope): Return unique_xmalloc_ptr.
8542 * macroexp.h (macro_expand, macro_expand_once): Return
8544 * macroexp.c (macro_expand, macro_expand_once): Return
8546 * macrocmd.c (macro_expand_command, macro_expand_once_command)
8547 (info_macro_command, info_macros_command): Use
8549 * compile/compile-c-support.c (write_macro_definitions): Use
8551 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
8553 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
8555 * value.c (value_static_field): Assign field type instead of
8556 containing type when returning an optimized out value.
8558 2018-02-06 Yao Qi <yao.qi@linaro.org>
8560 * ft32-tdep.c (ft32_read_pc): Remove.
8561 (ft32_write_pc): Remove.
8562 (ft32_gdbarch_init): Update.
8563 * m32r-tdep.c (m32r_read_pc): Remove.
8564 (m32r_gdbarch_init): Update.
8565 * mep-tdep.c (mep_read_pc): Remove.
8566 (mep_gdbarch_init): Update.
8567 * microblaze-tdep.c (microblaze_write_pc): Remove.
8568 (microblaze_gdbarch_init): Update.
8569 * mn10300-tdep.c (mn10300_read_pc): Remove.
8570 (mn10300_write_pc): Remove.
8571 (mn10300_gdbarch_init): Update.
8572 * moxie-tdep.c (moxie_read_pc): Remove.
8573 (moxie_write_pc): Remove.
8574 (moxie_gdbarch_init): Update.
8576 2018-02-06 Yao Qi <yao.qi@linaro.org>
8578 * expprint.c (print_subexp_standard): Handle
8579 OP_F77_UNDETERMINED_ARGLIST.
8580 (dump_subexp_body_standard): Likewise.
8582 2018-02-05 Alan Hayward <alan.hayward@arm.com>
8584 * target-descriptions.c (tdesc_element_visitor) Add empty
8586 (tdesc_type): Move make_gdb_type from here.
8587 (tdesc_type_builtin): Likewise.
8588 (tdesc_type_vector): Likewise.
8589 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
8590 (make_gdb_type_struct): Move from tdesc_type_with_fields.
8591 (make_gdb_type_union): Likewise.
8592 (make_gdb_type_flags): Likewise.
8593 (make_gdb_type_enum): Likewise.
8594 (make_gdb_type): New function.
8595 (tdesc_register_type): Use static make_gdb_type.
8597 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
8599 * infcmd.c (default_print_one_register_info): Align natural-format
8600 column values consistently one under another.
8601 (pad_to_column): New function.
8603 2018-02-05 Joel Brobecker <brobecker@adacore.com>
8605 * dwarf2read.c (dwarf2_physname): Move commment.
8607 2018-02-01 Leszek Swirski <leszeks@google.com>
8609 * varobj.c (varobj_formatted_print_options): Allow recursive
8610 pretty printing if pretty printing is enabled.
8612 2018-02-01 Leszek Swirski <leszeks@google.com>
8614 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
8615 names after a structop as a filename.
8617 2018-02-01 Yao Qi <yao.qi@linaro.org>
8619 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
8620 (arm_record_coproc_data_proc): Likewise.
8622 2018-02-01 Yao Qi <yao.qi@linaro.org>
8624 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
8626 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
8628 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
8629 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
8631 2018-01-31 Pedro Alves <palves@redhat.com>
8633 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
8634 * inflow.c (child_terminal_save_inferior): Wrap reference to
8635 tcgetpgrp in HAVE_TERMIOS_H.
8636 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
8638 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
8639 always iterate over all inferiors.
8640 (gdbsim_cntrl_c): Adjust.
8641 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
8643 2018-01-31 Joel Brobecker <brobecker@adacore.com>
8645 * gdbtypes.c (lookup_array_range_type): Make sure the array's
8646 index type is objfile-owned if the element type is as well.
8648 2018-01-31 Joel Brobecker <brobecker@adacore.com>
8652 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
8654 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
8655 "features/s390x-linux64.c".
8656 (_initialize_s390_linux_tdep): Remove initialization of tdescs
8657 s390_linux32 and s390x_linux64.
8658 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
8660 * s390-tdep.c: Include "features/s390-linux32.c" and
8661 "features/s390x-linux64.c".
8662 (s390_tdesc_valid): Add check for tdesc_has_registers.
8663 (s390_gdbarch_init): Make sure there is always a valid tdesc.
8664 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
8665 tdesc_s390x_linux64.
8666 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
8667 tdesc_s390x_linux64 to...
8668 * s390-tdep.h: ...here.
8670 2018-01-30 Pedro Alves <palves@redhat.com>
8673 * config.in, configure: Regenerate.
8674 * configure.ac: Check for getpgid.
8675 * go32-nat.c (go32_pass_ctrlc): New.
8676 (go32_target): Install it.
8677 * inf-child.c (inf_child_target): Install
8678 child_terminal_save_inferior, child_pass_ctrlc and
8680 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
8681 (inf_ptrace_target): No longer install it.
8682 * infcmd.c (interrupt_target_1): Adjust.
8683 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
8684 (child_interrupt): Declare.
8685 (inferior::terminal_state): New.
8686 * inflow.c (struct terminal_info): Update comments.
8687 (inferior_process_group): Delete.
8688 (terminal_is_ours): Delete.
8689 (gdb_tty_state): New.
8690 (child_terminal_init): Adjust.
8691 (is_gdb_terminal, sharing_input_terminal_1)
8692 (sharing_input_terminal): New functions.
8693 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
8694 Set the process's actual process group in the foreground if
8695 possible. Handle is_ours_for_output/is_ours distinction. Don't
8696 mark terminal as the inferior's if not sharing GDB's terminal.
8697 Don't check attach_flag.
8698 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
8699 pass down a target_terminal_state.
8700 (child_terminal_save_inferior): New, factored out from ...
8701 (child_terminal_ours_1): ... this. Handle
8702 target_terminal_state::is_ours_for_output.
8703 (child_interrupt, child_pass_ctrlc): New.
8704 (inflow_inferior_exit): Clear the inferior's terminal_state.
8705 (copy_terminal_info): Copy the inferior's terminal state.
8706 (_initialize_inflow): Remove reference to terminal_is_ours.
8707 * inflow.h (inferior_process_group): Delete.
8708 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
8709 * procfs.c (procfs_target): Don't install procfs_interrupt.
8710 (procfs_interrupt): Delete.
8711 * remote.c (remote_serial_quit_handler): Adjust.
8712 (remote_interrupt): Remove ptid parameter. Adjust.
8713 * target-delegates.c: Regenerate.
8714 * target.c: Include "terminal.h".
8715 (target_terminal::terminal_state): Rename to ...
8716 (target_terminal::m_terminal_state): ... this.
8717 (target_terminal::init): Adjust.
8718 (target_terminal::inferior): Adjust to per-inferior
8720 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
8721 (target_terminal::ours, target_terminal::ours_for_output): Use
8722 target_terminal_is_ours_kind.
8723 (target_interrupt): Remove ptid parameter. Adjust.
8724 (default_target_pass_ctrlc): Adjust.
8725 * target.h (target_ops::to_terminal_save_inferior): New field.
8726 (target_ops::to_interrupt): Remove ptid_t parameter.
8727 (target_interrupt): Remove ptid_t parameter. Update comment.
8728 (target_pass_ctrlc): Update comment.
8729 * target/target.h (target_terminal_state): New scoped enum,
8731 (target_terminal::terminal_state): ... here.
8732 (target_terminal::inferior): Update comments.
8733 (target_terminal::restore_inferior): New.
8734 (target_terminal::is_inferior, target_terminal::is_ours)
8735 (target_terminal::is_ours_for_output): Adjust.
8736 (target_terminal::scoped_restore_terminal_state): Adjust to
8737 rename, and call restore_inferior() instead of inferior().
8738 (target_terminal::scoped_restore_terminal_state::m_state): Change
8740 (target_terminal::terminal_state): Rename to ...
8741 (target_terminal::m_terminal_state): ... this and change type.
8743 2018-01-30 Pedro Alves <palves@redhat.com>
8745 * linux-nat.c (wait_for_signal): New function.
8746 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
8748 (async_terminal_is_ours)
8749 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
8750 (linux_nat_add_target): Don't override
8751 to_terminal_inferior/to_terminal_ours.
8753 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
8755 * remote.c (remote_follow_fork): Don't call "detach_inferior".
8757 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
8759 * dwarf2read.c (free_dwo_files): Add forward-declaration.
8760 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
8761 dwarf2_per_objfile_free here.
8762 (dwarf2_per_objfile_free): Remove.
8763 (_initialize_dwarf2_read): Don't register
8764 dwarf2_per_objfile_free as a registry cleanup.
8766 2018-01-27 Eli Zaretskii <eliz@gnu.org>
8768 Avoid compilation errors in MinGW native builds
8770 The error is triggered by including python-internal.h, and the
8773 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
8774 from build-gnulib/import/math.h:27,
8775 from d:/usr/Python26/include/pyport.h:235,
8776 from d:/usr/Python26/include/Python.h:58,
8777 from python/python-internal.h:94,
8778 from python/py-arch.c:24:
8779 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
8783 This happens because Python headers define 'hypot' to expand t
8784 '_hypot' in the Windows builds.
8785 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
8786 'hypoth'. This avoids a compilation error.
8788 2018-01-26 Alan Hayward <alan.hayward@arm.com>
8790 * MAINTAINERS (Write After Approval): Fix ordering.
8792 2018-01-26 Alan Hayward <alan.hayward@arm.com>
8794 * MAINTAINERS (Write After Approval): Add Alan Hayward.
8796 2018-01-26 Alan Modra <amodra@gmail.com>
8798 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
8799 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
8800 Remove nop. Make const. Comment.
8801 (powerpc32_plt_stub_so_2): New.
8802 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
8803 Correct count. Update uses.
8804 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
8805 Move common code reading PLT entry word. Correct
8806 powerpc32_plt_stub PLT address calculation.
8807 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
8808 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
8809 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
8810 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
8811 (ppc64_standard_linkage8): Likewise.
8812 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
8813 Correct insns description.
8814 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
8816 2018-01-24 Pedro Alves <palves@redhat.com>
8818 GCC PR libstdc++/83906
8819 * gdbtypes.c (operator==(const dynamic_prop &,
8820 const dynamic_prop &)): New.
8821 (operator==(const range_bounds &, const range_bounds &)): New.
8822 (check_types_equal): Use them instead of memcmp.
8823 * gdbtypes.h (operator==(const dynamic_prop &,
8824 const dynamic_prop &)): Declare.
8825 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
8826 (operator==(const range_bounds &, const range_bounds &)): Declare.
8827 (operator!=(const range_bounds &, const range_bounds &)): Declare.
8829 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8831 * s390-linux-tdep.c (s390_record_address_mask)
8832 (s390_record_calc_disp_common, s390_record_calc_disp)
8833 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
8834 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
8835 (s390_process_record): Move to s390-tdep.c.
8836 (s390_linux_init_abi_any): Adjust.
8837 * s390-tdep.c (s390_record_address_mask)
8838 (s390_record_calc_disp_common, s390_record_calc_disp)
8839 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
8840 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
8841 (s390_process_record): Moved from s390-linux-tdep.c
8842 (s390_gdbarch_init): Adjust.
8844 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8846 * s390-linux-nat.c (s390-tdep.h): New include.
8847 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
8848 (HFILES_NO_SRCDIR): Add s390-tdep.h.
8849 (ALLDEPFILES): Add s390-tdep.c.
8850 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
8851 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
8852 * s390-tdep.h: ...this. New file.
8853 * s390-linux-tdep.c (s390-tdep.h): New include.
8854 (_initialize_s390_tdep): Rename to...
8855 (_initialize_s390_linux_tdep): ...this and adjust.
8856 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
8857 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
8859 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
8860 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
8861 (s390_is_partial_instruction, s390_software_single_step)
8862 (is_non_branch_ril, s390_displaced_step_copy_insn)
8863 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
8864 (s390_prologue_data, s390_addr, s390_store, s390_load)
8865 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
8866 (s390_register_call_saved, s390_guess_tracepoint_registers)
8867 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
8868 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
8869 (s390_pseudo_register_name, s390_pseudo_register_type)
8870 (s390_pseudo_register_read, s390_pseudo_register_write)
8871 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
8872 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
8873 (s390_addr_bits_remove, s390_address_class_type_flags)
8874 (s390_address_class_type_flags_to_name)
8875 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
8876 (s390_function_arg_float, s390_function_arg_vector)
8877 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
8878 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
8879 (s390_frame_align, s390_register_return_value, s390_return_value)
8880 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
8881 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
8882 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
8883 (s390_trad_frame_prev_register, s390_unwind_cache)
8884 (s390_prologue_frame_unwind_cache)
8885 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
8886 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
8887 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
8888 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
8889 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
8890 (s390_frame_base_address, s390_local_base_address)
8891 (s390_frame_base, s390_gcc_target_options)
8892 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
8893 (s390_validate_reg_range, s390_tdesc_valid)
8894 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
8895 * s390-tdep.c: ...this. New file.
8897 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8899 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
8900 (s390_process_record, s390_gdbarch_tdep_alloc)
8901 (s390_linux_init_abi_any): Use/set new hook.
8903 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8905 * s390-linux-tdep.c (osabi.h): New include.
8906 (s390_linux_init_abi_31, s390_linux_init_abi_64)
8907 (s390_linux_init_abi_any): New functions.
8908 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
8910 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8912 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
8913 tdesc_has_registers check
8915 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8917 * s390-linux-tdep.c (s390_tdesc_valid): New function.
8918 (s390_validate_reg_range): New macro.
8919 (s390_gdbarch_init): Adjust.
8921 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8923 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
8924 (s390_gdbarch_tdep_alloc): Adjust.
8925 (s390_gdbarch_init): Adjust.
8927 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8929 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
8930 <have_tdb>: Change type to bool.
8931 (s390_gdbarch_tdep_alloc): Adjust.
8932 (s390_gdbarch_init): Adjust.
8934 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8936 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
8937 (gdbarch_tdep) <have_upper, have_vx>: New fields.
8938 (s390_gdbarch_tdep_alloc): New function.
8939 (s390_gdbarch_init): Allocate tdep at start and use its fields
8940 instead of separate variables.
8942 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8944 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
8945 when looking for cached gdbarch and add comment for remaining.
8947 2018-01-22 Pedro Alves <palves@redhat.com>
8948 Sergio Durigan Junior <sergiodj@redhat.com>
8950 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
8953 2018-01-22 Maciej W. Rozycki <macro@mips.com>
8955 * MAINTAINERS: Update my company e-mail address.
8957 2018-01-22 Yao Qi <yao.qi@linaro.org>
8959 * regcache.c (cooked_write_test): New function.
8960 (_initialize_regcache): Register the test.
8962 2018-01-22 Yao Qi <yao.qi@linaro.org>
8964 * ia64-tdep.c (ia64_pseudo_register_read): Call
8965 regcache->cooked_read instead of regcache_cooked_read_unsigned.
8966 * m32c-tdep.c (m32c_cat_read): Likewise.
8967 (m32c_r3r2r1r0_read): Likewise.
8968 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
8969 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
8971 2018-01-22 Yao Qi <yao.qi@linaro.org>
8973 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
8974 method raw_read instead of regcache_raw_read.
8975 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
8976 * arm-tdep.c (arm_neon_quad_read): Likewise.
8977 * avr-tdep.c (avr_pseudo_register_read): Likewise.
8978 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
8979 * frv-tdep.c (frv_pseudo_register_read): Likewise.
8980 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
8981 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
8982 (i386_pseudo_register_read_into_value): Likewise.
8983 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
8984 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
8985 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
8986 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
8987 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
8988 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
8989 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
8990 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
8991 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
8993 2018-01-22 Yao Qi <yao.qi@linaro.org>
8995 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
8996 * configure.tgt: Remove target mt.
8997 * mt-tdep.c: Remove.
8998 * regcache.c (cooked_read_test): Remove the check for mt.
9000 2018-01-22 Yao Qi <yao.qi@linaro.org>
9002 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
9003 instead of gdbarch_pseudo_register_read_value.
9005 2018-01-22 Joel Brobecker <brobecker@adacore.com>
9007 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
9010 2018-01-22 Joel Brobecker <brobecker@adacore.com>
9012 * linespec.c (create_sals_line_offset): Remove code that preserved
9013 the symtab_and_line's line number.
9015 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9017 * varobj.c (varobj_create): Don't set valid_block when creating a
9020 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9022 * varobj.c (varobj_create): Remove out of date comment.
9024 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9027 * ada-exp.y (write_var_from_sym): Pass extra parameter when
9028 updating innermost block.
9029 * parse.c (innermost_block_tracker::update): Take extra type
9030 parameter, and check types match before updating innermost block.
9031 (write_dollar_variable): Update innermost block for registers.
9032 * parser-defs.h (enum innermost_block_tracker_type): New enum.
9033 (innermost_block_tracker::innermost_block_tracker): Initialise
9035 (innermost_block_tracker::reset): Take type parameter.
9036 (innermost_block_tracker::update): Take type parameter, and pass
9037 type through as needed.
9038 (innermost_block_tracker::m_types): New member.
9039 * varobj.c (varobj_create): Pass type when reseting innermost
9042 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9044 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
9045 * ada-lang.c (resolve_subexp): Likewise.
9046 * breakpoint.c (set_breakpoint_condition) Likewise.
9047 (watch_command_1) Likewise.
9048 * c-exp.y (variable): Likewise.
9049 * d-exp.y (PrimaryExpression): Likewise.
9050 * f-exp.y (variable): Likewise.
9051 * go-exp.y (variable): Likewise.
9052 * m2-exp.y (variable): Likewise.
9053 * objfiles.c (objfile::~objfile): Likewise.
9054 * p-exp.y (variable): Likewise.
9055 * parse.c (innermost_block): Change type.
9056 * parser-defs.h (class innermost_block_tracker): New.
9057 (innermost_block): Change to innermost_block_tracker.
9058 * printcmd.c (display_command): Switch to innermost_block API.
9059 (do_one_display): Likewise.
9060 * rust-exp.y (do_one_display): Likewise.
9061 * symfile.c (clear_symtab_users): Likewise.
9062 * varobj.c (varobj_create): Switch to innermost_block API, replace
9063 use of innermost_block with block stored on varobj object.
9065 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9067 * expression.h (innermost_block): Remove declaration.
9068 * varobj.c: Add 'parser-defs.h' include.
9070 2018-01-19 Tom Tromey <tom@tromey.com>
9072 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
9073 symbols in the static and global blocks.
9075 2018-01-19 James Clarke <jrtc27@jrtc27.com>
9077 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
9078 gdb_ptrace.h, and move including gdb_wait.h ...
9079 * nat/linux-ptrace.h: ... to here.
9081 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9083 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
9084 inf_ptrace_detach_success.
9085 (inf_ptrace_detach_success): Add inferior parameter, use it
9086 instead of inferior_ptid, pass it to detach_inferior.
9087 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
9089 * inferior.c (detach_inferior): Add overload that takes an
9091 * inferior.h (detach_inferior): Likewise.
9092 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
9093 use inferior_ptid, adjust call to inf_ptrace_detach_success.
9094 * linux-thread-db.c (thread_db_detach): Use inf parameter.
9096 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9098 * target.h (struct target_ops) <to_detach>: Add inferior
9100 (target_detach): Likewise.
9101 * target.c (dispose_inferior): Pass inferior down.
9102 (target_detach): Pass inferior down. Assert that it is equal to
9103 the current inferior.
9104 * aix-thread.c (aix_thread_detach): Pass inferior down.
9105 * corefile.c (core_file_command): Pass current_inferior() down.
9106 * corelow.c (core_detach): Add inferior parameter.
9107 * darwin-nat.c (darwin_detach): Likewise.
9108 * gnu-nat.c (gnu_detach): Likewise.
9109 * inf-ptrace.c (inf_ptrace_detach): Likewise.
9110 * infcmd.c (detach_command): Pass current_inferior() down to
9112 * infrun.c (follow_fork_inferior): Pass parent_inf to
9114 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
9116 * linux-nat.c (linux_nat_detach): Add inferior parameter.
9117 * linux-thread-db.c (thread_db_detach): Likewise.
9118 * nto-procfs.c (procfs_detach): Likewise.
9119 * procfs.c (procfs_detach): Likewise.
9120 * record.c (record_detach): Likewise.
9121 * record.h (struct inferior): Forward-declare.
9122 (record_detach): Add inferior parameter.
9123 * remote-sim.c (gdbsim_detach): Likewise.
9124 * remote.c (remote_detach_1): Likewise.
9125 (remote_detach): Likewise.
9126 (extended_remote_detach): Likewise.
9127 * sol-thread.c (sol_thread_detach): Likewise.
9128 * target-debug.h (target_debug_print_inferior_p): New macro.
9129 * target-delegates.c: Re-generate.
9130 * top.c (kill_or_detach): Pass inferior down to target_detach.
9131 * windows-nat.c (windows_detach): Add inferior parameter.
9133 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9135 * target.h (struct target_ops) <to_detach>: Remove args
9137 (target_detach): Likewise.
9138 * target.c (dispose_inferior): Adjust.
9139 (target_detach): Remove args parameter, adjust.
9140 * aix-thread.c (aix_thread_detach): Adjust.
9141 * corefile.c (core_file_command): Adjust.
9142 * corelow.c (core_detach): Adjust.
9143 * darwin-nat.c (darwin_detach): Adjust.
9144 * gnu-nat.c (gnu_detach): Adjust.
9145 * inf-ptrace.c (inf_ptrace_detach): Adjust.
9146 * infcmd.c (detach_command): Adjust
9147 * infrun.c (follow_fork_inferior): Adjust.
9148 (handle_vfork_child_exec_or_exit): Adjust.
9149 * linux-fork.c (linux_fork_detach): Remove args parameter.
9150 * linux-fork.h (linux_fork_detach): Likewise.
9151 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
9152 * linux-thread-db.c (thread_db_detach): Likewise.
9153 * nto-procfs.c (procfs_detach): Likewise.
9154 * procfs.c (procfs_detach): Likewise.
9155 (do_detach): Remove signo parameter.
9156 * record.c (record_detach): Remove args parameter.
9157 * record.h (record_detach): Likewise.
9158 * remote-sim.c (gdbsim_detach): Likewise.
9159 * remote.c (remote_detach_1): Likewise.
9160 (remote_detach): Likewise.
9161 (extended_remote_detach): Likewise.
9162 * sol-thread.c (sol_thread_detach): Likewise.
9163 * target-delegates.c: Re-generate.
9164 * top.c (struct qt_args) <args>: Remove field.
9165 (kill_or_detach): Don't pass args.
9166 (quit_force): Don't set args.
9167 * windows-nat.c (windows_detach): Remove args parameter.
9169 2018-01-19 Yao Qi <yao.qi@linaro.org>
9171 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
9172 (arm_linux_init_abi): Install it.
9174 2018-01-19 Yao Qi <yao.qi@linaro.org>
9176 * osabi.c (gdb_osabi_names): Extend the regexp for
9177 arm-linux-gnueabihf.
9179 2018-01-18 Yao Qi <yao.qi@linaro.org>
9181 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
9183 (abbrev_table::add_abbrev): Update.
9184 (abbrev_table::lookup_abbrev): Update.
9186 2018-01-18 Yao Qi <yao.qi@linaro.org>
9188 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
9190 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9192 * compile/compile.c (compile_to_object): Convert "triplet_rx"
9195 2018-01-17 Tom Tromey <tom@tromey.com>
9197 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
9199 2018-01-17 Tom Tromey <tom@tromey.com>
9201 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
9202 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
9203 (create_array_type_with_stride): Update.
9204 * dwarf2read.c (set_die_type): Update.
9206 2018-01-17 Tom Tromey <tom@tromey.com>
9208 * dwarf2read.c (delayed_method_info): Remove typedef.
9209 (dwarf2_cu::method_info): Now a std::vector.
9210 (add_to_method_list): Update.
9211 (free_delayed_list): Remove.
9212 (compute_delayed_physnames): Update.
9213 (process_full_comp_unit, process_full_type_unit): Clear the method
9214 list. Remove cleanups.
9215 (psymtab_include_file_name): Add name_holder parameter. Use
9217 (dwarf_decode_lines): Update.
9219 2018-01-17 Tom Tromey <tom@tromey.com>
9220 Simon Marchi <simon.marchi@ericsson.com>
9222 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
9223 (dwarf2_per_objfile::free_cached_comp_units)
9224 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
9225 (init_cutu_and_read_dies_no_follow): Update.
9226 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
9227 (dwarf2_cu::~dwarf2_cu): New.
9228 (free_heap_comp_unit, free_stack_comp_unit): Remove.
9229 (age_cached_comp_units, free_one_cached_comp_unit): Update.
9231 2018-01-17 Tom Tromey <tom@tromey.com>
9232 Simon Marchi <simon.marchi@ericsson.com>
9234 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
9235 (struct die_reader_specs) <abbrev_table>: New member.
9236 (struct abbrev_table): Add constructor.
9237 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
9238 <abbrev_obstack>: Now an auto_obstack.
9239 (abbrev_table_up): New typedef.
9240 (init_cu_die_reader): Add abbrev_table parameter.
9241 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
9242 Add result_dwo_abbrev_table.
9243 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
9244 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
9246 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
9248 (skip_children): Update.
9249 (abbrev_table::alloc_abbrev): Rename from
9250 abbrev_table_alloc_abbrev.
9251 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
9252 (abbrev_table::lookup_abbrev): Rename from
9253 abbrev_table_lookup_abbrev.
9254 (abbrev_table_read_table): Return abbrev_table_up.
9255 (abbrev_table_free, abbrev_table_free_cleanup)
9256 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
9257 (load_partial_dies): Update.
9259 2018-01-17 Tom Tromey <tom@tromey.com>
9261 * dwarf2read.c (dwarf2_compute_name): Update comment.
9262 (read_func_scope, read_variable): Update.
9263 (new_symbol): Remove.
9264 (new_symbol_full): Rename to new_symbol.
9266 2018-01-17 Mike Gulick <mgulick@mathworks.com>
9269 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
9270 a warning instead of throwing an error, set section size to 0 and return
9272 * gdb_bfd.h (gdb_bfd_map_section): Update description.
9274 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
9276 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
9278 (linux_ptrace_attach_fail_reason_string): Likewise.
9279 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
9281 (linux_ptrace_attach_fail_reason_string): Likewise.
9282 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
9284 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
9286 * linux-nat.c (linux_nat_attach): Remove xstrdup.
9288 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
9291 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
9292 checking for fs_base/gs_base fields in struct user_regs_struct.
9293 * configure: Regenerate.
9295 2018-01-17 Yao Qi <yao.qi@linaro.org>
9297 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
9299 (aarch64_linux_init_abi): Install it to gdbarch hook
9302 2018-01-15 Pedro Alves <palves@redhat.com>
9304 * common/signals-state-save-restore.c
9305 (save_original_signals_state): Fix typos.
9307 2017-01-12 Tom Tromey <tom@tromey.com>
9308 Sergio Durigan Junior <sergiodj@redhat.com>
9310 * Makefile.in (install-only): Install gdb-add-index.
9312 2018-01-12 John Baldwin <jhb@FreeBSD.org>
9314 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
9316 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9318 * infrun.c (keep_going_pass_signal): Clear step-over info when
9319 insert_breakpoints fails.
9321 2018-01-11 Pedro Alves <palves@redhat.com>
9324 * infrun.c (resume): Rename to ...
9325 (resume_1): ... this.
9326 (resume): Reimplement as wrapper around resume_1.
9328 2018-01-11 Pedro Alves <palves@redhat.com>
9331 * remote.c (remote_parse_stop_reply): Default to the last-set
9332 general thread instead of to 'magic_null_ptid'.
9334 2018-01-10 Pedro Alves <palves@redhat.com>
9336 * language.h (language_get_symbol_name_matcher): Rename ...
9337 (get_symbol_name_matcher): ... this.
9338 * language.c (language_get_symbol_name_matcher): Ditto.
9339 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
9342 2018-01-10 Pedro Alves <palves@redhat.com>
9346 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
9347 Adjust to use language_get_symbol_name_matcher instead of
9348 language_defn::la_get_symbol_name_matcher.
9349 * language.c (language_get_symbol_name_matcher): If in Ada mode
9350 and the lookup name is a verbatim match, return Ada's matcher.
9351 * language.h (language_get_symbol_name_matcher): Adjust comment.
9352 (ada_lookup_name_info::verbatim_p):: New method.
9354 2018-01-10 Pedro Alves <palves@redhat.com>
9357 * ada-lang.c (ada_collect_symbol_completion_matches): If the
9358 minsym's language is language_auto or language_cplus, pass down
9359 language_ada instead.
9360 * symtab.c (compare_symbol_name): Don't frob symbol language here.
9362 2018-01-10 Pedro Alves <palves@redhat.com>
9365 * minsyms.c (linkage_name_str): New function.
9366 (iterate_over_minimal_symbols): Use it.
9368 2018-01-09 John Baldwin <jhb@FreeBSD.org>
9370 * NEWS: Document that 'info proc' now works on FreeBSD.
9372 2018-01-09 John Baldwin <jhb@FreeBSD.org>
9374 * configure.ac: Check for kinfo_getfile in libutil.
9375 * configure: Regenerate.
9376 * config.in: Regenerate.
9377 * fbsd-nat.c: Include "fbsd-tdep.h".
9378 (fbsd_fetch_cmdline): New.
9379 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
9380 rather than calling error.
9381 (fbsd_info_proc): New.
9382 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
9383 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
9384 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
9386 2018-01-09 John Baldwin <jhb@FreeBSD.org>
9388 * fbsd-nat.c (struct free_deleter): Remove.
9389 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
9391 2018-01-09 John Baldwin <jhb@FreeBSD.org>
9393 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
9394 NULL for an empty pathname.
9396 2018-01-09 John Baldwin <jhb@FreeBSD.org>
9398 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
9399 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
9400 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9401 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9402 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
9403 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
9404 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
9405 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
9406 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
9407 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
9408 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
9409 (fbsd_core_fetch_timeval, fbsd_print_sigset)
9410 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
9411 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
9412 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
9414 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9416 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
9417 (gnu_xfer_auxv): New function.
9418 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
9421 2018-01-08 Yao Qi <yao.qi@linaro.org>
9422 Simon Marchi <simon.marchi@ericsson.com>
9424 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
9426 (COMMON_OBS): Remove selftest.o.
9427 * configure.ac: Append selftest-arch.c and common/selftest.c to
9428 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
9429 * configure: Re-generated.
9430 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
9432 (maintenance_info_selftests): Likewise.
9434 2018-01-08 Xavier Roirand <roirand@adacore.com>
9436 * ada-valprint.c (val_print_packed_array_elements): Use
9437 proper number of elements when printing an array indexed
9438 by an enumeration type.
9440 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9442 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
9443 (dw2_get_file_names_reader): Adjust.
9444 (lookup_dwo_signatured_type): Adjust.
9445 (lookup_dwp_signatured_type): Adjust.
9446 (lookup_signatured_type): Adjust.
9447 (create_type_unit_group): Adjust.
9448 (get_type_unit_group): Adjust.
9449 (process_psymtab_comp_unit_reader): Adjust.
9450 (build_type_psymtabs_reader): Adjust.
9451 (scan_partial_symbols): Adjust.
9452 (add_partial_symbol): Adjust.
9453 (add_partial_subprogram): Adjust.
9454 (peek_die_abbrev): Adjust.
9455 (fixup_go_packaging): Adjust.
9456 (process_imported_unit_die): Adjust.
9457 (dwarf2_compute_name): Adjust.
9458 (dwarf2_physname): Adjust.
9459 (read_import_statement): Adjust.
9460 (handle_DW_AT_stmt_list): Adjust.
9461 (read_file_scope): Adjust.
9462 (read_func_scope): Adjust.
9463 (read_lexical_block_scope): Adjust.
9464 (read_call_site_scope): Adjust.
9465 (read_variable): Adjust.
9466 (dwarf2_rnglists_process): Adjust.
9467 (dwarf2_ranges_process): Adjust.
9468 (dwarf2_ranges_read): Adjust.
9469 (dwarf2_get_pc_bounds): Adjust.
9470 (dwarf2_record_block_ranges): Adjust.
9471 (dwarf2_add_field): Adjust.
9472 (dwarf2_add_member_fn): Adjust.
9473 (read_structure_type): Adjust.
9474 (process_structure_scope): Adjust.
9475 (read_enumeration_type): Adjust.
9476 (read_array_type): Adjust.
9477 (mark_common_block_symbol_computed): Adjust.
9478 (read_common_block): Adjust.
9479 (read_namespace_type): Adjust.
9480 (read_namespace): Adjust.
9481 (read_module_type): Adjust.
9482 (read_tag_pointer_type): Adjust.
9483 (read_tag_ptr_to_member_type): Adjust.
9484 (read_tag_string_type): Adjust.
9485 (read_subroutine_type): Adjust.
9486 (read_typedef): Adjust.
9487 (read_base_type): Adjust.
9488 (attr_to_dynamic_prop): Adjust.
9489 (read_subrange_type): Adjust.
9490 (read_unspecified_type): Adjust.
9491 (dwarf2_read_abbrevs): Adjust.
9492 (load_partial_dies): Adjust.
9493 (read_partial_die): Adjust.
9494 (find_partial_die): Adjust.
9495 (guess_partial_die_structure_name): Adjust.
9496 (fixup_partial_die): Adjust.
9497 (read_attribute_value): Adjust.
9498 (read_addr_index): Adjust.
9499 (read_addr_index_from_leb128): Adjust.
9500 (read_str_index): Adjust.
9501 (dwarf2_string_attr): Adjust.
9502 (get_debug_line_section): Adjust.
9503 (dwarf_decode_line_header): Adjust.
9504 (lnp_state_machine::check_line_address): Adjust.
9505 (dwarf_decode_lines_1): Adjust.
9506 (dwarf_decode_lines): Adjust.
9507 (dwarf2_start_symtab): Adjust.
9508 (var_decode_location): Adjust.
9509 (new_symbol_full): Adjust.
9510 (dwarf2_const_value_data): Adjust.
9511 (dwarf2_const_value_attr): Adjust.
9512 (dwarf2_const_value): Adjust.
9514 (die_containing_type): Adjust.
9515 (build_error_marker_type): Adjust.
9516 (lookup_die_type): Adjust.
9517 (guess_full_die_structure_name): Adjust.
9518 (anonymous_struct_prefix): Adjust.
9519 (determine_prefix): Adjust.
9520 (dwarf2_name): Adjust.
9521 (follow_die_ref_or_sig): Adjust.
9522 (follow_die_offset): Adjust.
9523 (follow_die_ref): Adjust.
9524 (follow_die_sig_1): Adjust.
9525 (follow_die_sig): Adjust.
9526 (get_signatured_type): Adjust.
9527 (get_DW_AT_signature_type): Adjust.
9528 (decode_locdesc): Adjust.
9529 (dwarf_decode_macros): Adjust.
9530 (cu_debug_loc_section): Adjust.
9531 (fill_in_loclist_baton): Adjust.
9532 (dwarf2_symbol_mark_computed): Adjust.
9533 (init_one_comp_unit): Don't assign
9534 dwarf2_cu::dwarf2_per_objfile.
9535 (set_die_type): Adjust.
9537 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9539 * dwarf2read.c (struct mapped_debug_names): Add constructor.
9540 <dwarf2_per_objfile>: New field.
9541 (dwarf2_per_objfile): Remove global.
9542 (get_dwarf2_per_objfile): New function.
9543 (set_dwarf2_per_objfile): New function.
9544 (dwarf2_build_psymtabs_hard): Change objfile parameter to
9546 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
9547 (read_abbrev_offset): Likewise.
9548 (read_indirect_string): Likewise.
9549 (read_indirect_line_string): Likewise.
9550 (read_indirect_string_at_offset): Likewise.
9551 (read_indirect_string_from_dwz): Likewise.
9552 (dwarf2_find_containing_comp_unit): Change objfile parameter to
9554 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
9555 (create_all_comp_units): Change objfile parameter to
9557 (create_all_type_units): Likewise.
9558 (process_queue): Add dwarf2_per_objfile parameter.
9559 (read_and_check_comp_unit_head): Likewise.
9560 (lookup_dwo_unit_in_dwp): Likewise.
9561 (get_dwp_file): Likewise.
9562 (process_cu_includes): Likewise.
9563 (struct free_dwo_file_cleanup_data): New struct.
9564 (dwarf2_has_info): Use get_dwarf2_per_objfile and
9565 set_dwarf2_per_objfile.
9566 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
9567 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
9568 context, adjust calls.
9569 (dw2_instantiate_symtab): Likewise.
9570 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
9571 (dw2_get_cu): Likewise.
9572 (create_cu_from_index_list): Change objfile parameter to
9574 (create_cus_from_index_list): Get dwarf2_per_objfile from
9575 context, adjust calls.
9576 (create_cus_from_index): Likewise.
9577 (create_signatured_type_table_from_index): Change objfile
9578 parameter to dwarf2_per_objfile.
9579 (create_signatured_type_table_from_debug_names): Change objfile
9580 parameter to dwarf2_per_objfile.
9581 (create_addrmap_from_index): Likewise.
9582 (create_addrmap_from_aranges): Likewise.
9583 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
9584 (dw2_setup): Remove.
9585 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
9587 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
9588 get_dwarf2_per_objfile.
9589 (dw2_forget_cached_source_info): Likewise.
9590 (dw2_map_symtabs_matching_filename): Likewise.
9591 (struct dw2_symtab_iterator) <index>: Remove.
9592 <dwarf2_per_objfile>: New field.
9593 (dw2_symtab_iter_init): Replace index parameter with
9595 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
9596 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
9597 (dw2_print_stats): Likewise.
9598 (dw2_dump): Likewise.
9599 (dw2_expand_symtabs_for_function): Likewise.
9600 (dw2_expand_all_symtabs): Likewise.
9601 (dw2_expand_symtabs_with_fullname): Likewise.
9602 (dw2_expand_marked_cus): Replace index and objfile parameters
9603 with dwarf2_per_objfile.
9604 (dw_expand_symtabs_matching_file_matcher): Add
9605 dwarf2_per_objfile parameter and adjust calls.
9606 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
9608 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
9609 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
9611 (create_cus_from_debug_names_list): Replace objfile parameter
9612 with dwarf2_per_objfile and adjust calls.
9613 (create_cus_from_debug_names): Likewise.
9614 (dwarf2_read_debug_names): Likewise.
9615 (mapped_debug_names::namei_to_name): Adjust call.
9616 (dw2_debug_names_iterator::next): Likewise.
9617 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9618 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
9619 (dw2_debug_names_dump): Likewise.
9620 (dw2_debug_names_expand_symtabs_for_function): Likewise.
9621 (dw2_debug_names_expand_symtabs_matching): Likewise.
9622 (dwarf2_initialize_objfile): Likewise.
9623 (dwarf2_build_psymtabs): Likewise.
9624 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
9626 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
9627 (read_and_check_comp_unit_head): Likewise.
9628 (read_abbrev_offset): Likewise.
9629 (create_debug_type_hash_table): Likewise.
9630 (create_debug_types_hash_table): Likewise.
9631 (create_all_type_units): Replace objfile parameter with
9633 (add_type_unit): Add dwarf2_per_objfile parameter.
9634 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
9635 with dwarf2_per_objfile.
9636 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
9637 (lookup_dwp_signatured_type): Likewise.
9638 (lookup_signatured_type): Likewise.
9639 (read_cutu_die_from_dwo): Likewise.
9640 (init_tu_and_read_dwo_dies): Likewise.
9641 (init_cutu_and_read_dies): Likewise.
9642 (init_cutu_and_read_dies_no_follow): Likewise.
9643 (allocate_type_unit_groups_table): Add objfile parameter.
9644 (create_type_unit_group): Use dwarf2_per_objfile from cu.
9645 (get_type_unit_group): Likewise.
9646 (process_psymtab_comp_unit): Update call.
9647 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
9648 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
9649 (print_tu_stats): Likewise.
9650 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
9652 (build_type_psymtabs): Change objfile parameter to
9654 (process_skeletonless_type_unit): Use dwarf2_per_objfile
9655 passed in void* parameter.
9656 (process_skeletonless_type_units): Change objfile parameter to
9658 (set_partial_user): Likewise.
9659 (dwarf2_build_psymtabs_hard): Likewise.
9660 (read_comp_units_from_section): Likewise.
9661 (create_all_comp_units): Likewise.
9662 (scan_partial_symbols): Update calls.
9663 (add_partial_symbol): Likewise.
9664 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
9665 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
9666 (process_queue): Add dwarf2_per_objfile parameter.
9667 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
9668 (compute_compunit_symtab_includes): Likewise.
9669 (process_cu_includes): Add dwarf2_per_objfile parameter.
9670 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
9671 (process_full_type_unit): Likewise.
9672 (process_imported_unit_die): Update call.
9673 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
9674 (read_file_scope): Likewise.
9675 (allocate_dwo_file_hash_table): Add objfile parameter.
9676 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
9677 (create_cus_hash_table): Likewise.
9678 (create_dwp_hash_table): Likewise.
9679 (create_dwo_unit_in_dwp_v1): Likewise.
9680 (create_dwp_v2_section): Likewise.
9681 (create_dwo_unit_in_dwp_v2): Likewise.
9682 (lookup_dwo_unit_in_dwp): Likewise.
9683 (try_open_dwop_file): Likewise.
9684 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
9685 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
9686 cleanup to include a reference to dwarf2_per_objfile.
9687 (open_dwp_file): Add dwarf2_per_objfile parameter.
9688 (open_and_init_dwp_file): Likewise.
9689 (get_dwp_file): Likewise.
9690 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
9691 (queue_and_load_all_dwo_tus): Update call.
9692 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
9694 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
9695 (dwarf2_ranges_process): Likewise.
9696 (dwarf2_get_pc_bounds): Likewise.
9697 (mark_common_block_symbol_computed): Likewise.
9698 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
9699 (dwarf2_read_abbrevs): Update call.
9700 (read_partial_die): Use dwarf2_per_objfile from cu.
9701 (find_partial_die): Likewise.
9702 (fixup_partial_die): Likewise.
9703 (read_attribute_value): Likewise.
9704 (read_indirect_string_at_offset_from): Add objfile parameter.
9705 (read_indirect_string_at_offset): Add dwarf2_per_objfile
9707 (read_indirect_string_from_dwz): Add objfile parameter.
9708 (read_indirect_string): Add objfile parameter.
9709 (read_addr_index_1): Add dwarf2_per_objfile parameter.
9710 (read_addr_index): Use dwarf2_per_objfile from cu.
9711 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
9713 (read_str_index): Use dwarf2_per_objfile from cu.
9714 (get_debug_line_section): Likewise.
9715 (read_formatted_entries): Add dwarf2_per_objfile parameter.
9716 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
9717 (new_symbol_full): Use dwarf2_per_objfile from cu.
9718 (build_error_marker_type): Likewise.
9719 (lookup_die_type): Likewise.
9720 (determine_prefix): Likewise.
9721 (follow_die_offset): Likewise.
9722 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
9723 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
9724 (dwarf2_fetch_die_type_sect_off): Likewise.
9725 (dwarf2_get_die_type): Likewise.
9726 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
9727 (get_signatured_type): Likewise.
9728 (get_DW_AT_signature_type): Likewise.
9729 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
9730 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
9731 (cu_debug_loc_section): Likewise.
9732 (fill_in_loclist_baton): Likewise.
9733 (dwarf2_symbol_mark_computed): Likewise.
9734 (dwarf2_find_containing_comp_unit): Change objfile parameter to
9736 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
9738 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
9739 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
9740 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
9741 (set_die_type): Use dwarf2_free_objfile from cu.
9742 (get_die_type_at_offset): Likewise.
9743 (dwarf2_per_objfile_free): Don't assign global variable.
9744 (debug_names) <constructor>: Add dwarf2_per_objfile
9745 parameter, update m_debugstrlookup construction.
9746 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
9748 <m_dwarf2_per_objfile>: New field.
9749 <lookup>: Use m_dwarf2_per_objfile.
9750 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
9751 (psyms_seen_size): Likewise.
9752 (write_gdbindex): Replace objfile parameter with
9754 (write_debug_names): Likewise.
9755 (write_psymtabs_to_index): Likewise.
9756 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
9759 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9761 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
9762 <dwarf2_per_objfile>: New field.
9763 (struct dwarf2_per_cu_data) <objfile>: Remove.
9764 <dwarf2_per_objfile>: New field.
9765 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
9767 (create_signatured_type_table_from_index): Likewise.
9768 (create_debug_type_hash_table): Likewise.
9769 (fill_in_sig_entry_from_dwo_entry): Likewise.
9770 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
9771 (create_type_unit_group): Assign dwarf2_per_objfile instead of
9773 (create_partial_symtab): Access objfile through
9775 (process_psymtab_comp_unit_reader): Likewise.
9776 (read_comp_units_from_section): Likewise.
9777 (scan_partial_symbols): Likewise.
9778 (add_partial_symbol): Likewise.
9779 (add_partial_subprogram): Likewise.
9780 (peek_die_abbrev): Likewise.
9781 (fixup_go_packaging): Likewise.
9782 (process_full_comp_unit): Likewise.
9783 (process_full_type_unit): Likewise.
9784 (process_imported_unit_die): Likewise.
9785 (dwarf2_compute_name): Likewise.
9786 (dwarf2_physname): Likewise.
9787 (read_import_statement): Likewise.
9788 (create_cus_hash_table): Assign dwarf2_physname instead of
9790 (read_func_scope): Access objfile through dwarf2_per_objfile.
9791 (read_lexical_block_scope): Likewise.
9792 (read_call_site_scope): Likewise.
9793 (read_variable): Likewise.
9794 (dwarf2_rnglists_process): Likewise.
9795 (dwarf2_ranges_process): Likewise.
9796 (dwarf2_ranges_read): Likewise.
9797 (dwarf2_record_block_ranges): Likewise.
9798 (dwarf2_add_field): Likewise.
9799 (dwarf2_add_member_fn): Likewise.
9800 (read_structure_type): Likewise.
9801 (process_structure_scope): Likewise.
9802 (read_enumeration_type): Likewise.
9803 (read_array_type): Likewise.
9804 (read_common_block): Likewise.
9805 (read_namespace_type): Likewise.
9806 (read_namespace): Likewise.
9807 (read_module_type): Likewise.
9808 (read_tag_pointer_type): Likewise.
9809 (read_tag_ptr_to_member_type): Likewise.
9810 (read_tag_string_type): Likewise.
9811 (read_subroutine_type): Likewise.
9812 (read_typedef): Likewise.
9813 (read_base_type): Likewise.
9814 (attr_to_dynamic_prop): Likewise.
9815 (read_subrange_type): Likewise.
9816 (read_unspecified_type): Likewise.
9817 (load_partial_dies): Likewise.
9818 (read_partial_die): Likewise.
9819 (find_partial_die): Likewise.
9820 (guess_partial_die_structure_name): Likewise.
9821 (fixup_partial_die): Likewise.
9822 (read_attribute_value): Likewise.
9823 (read_addr_index_from_leb128): Likewise.
9824 (dwarf2_read_addr_index): Likewise.
9825 (dwarf2_string_attr): Likewise.
9826 (lnp_state_machine::check_line_address): Likewise.
9827 (dwarf_decode_lines_1): Likewise.
9828 (dwarf_decode_lines): Likewise.
9829 (dwarf2_start_symtab): Likewise.
9830 (var_decode_location): Likewise.
9831 (new_symbol_full): Likewise.
9832 (dwarf2_const_value_data): Likewise.
9833 (dwarf2_const_value_attr): Likewise.
9834 (dwarf2_const_value): Likewise.
9835 (die_type): Likewise.
9836 (die_containing_type): Likewise.
9837 (lookup_die_type): Likewise.
9838 (guess_full_die_structure_name): Likewise.
9839 (anonymous_struct_prefix): Likewise.
9840 (dwarf2_name): Likewise.
9841 (follow_die_ref_or_sig): Likewise.
9842 (follow_die_offset): Likewise.
9843 (follow_die_ref): Likewise.
9844 (dwarf2_fetch_die_loc_sect_off): Likewise.
9845 (dwarf2_fetch_constant_bytes): Likewise.
9846 (dwarf2_fetch_die_type_sect_off): Likewise.
9847 (dwarf2_get_die_type): Likewise.
9848 (follow_die_sig): Likewise.
9849 (decode_locdesc): Likewise.
9850 (dwarf2_per_cu_objfile): Likewise.
9851 (dwarf2_per_cu_text_offset): Likewise.
9852 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
9854 (set_die_type): Access objfile through
9857 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9859 * valprint.c (converted_character_d): Remove typedef.
9860 (DEF_VEC_O (converted_character_d)): Remove.
9861 (count_next_character): Use std::vector.
9862 (print_converted_chars_to_obstack): Likewise.
9863 (generic_printstr): Likewise.
9865 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9867 * xml-support.h (struct gdb_xml_value): Add constructor.
9868 <value>: Change type to unique_xmalloc_ptr.
9869 (gdb_xml_value_s): Remove typedef.
9870 (DEF_VEC_O (gdb_xml_value_s)): Remove.
9871 (gdb_xml_element_start_handler): Change parameter type to
9873 (xml_find_attribute): Likewise.
9874 * xml-support.c (xml_find_attribute): Change parameter type to
9875 std::vector and adjust.
9876 (gdb_xml_values_cleanup): Remove.
9877 (gdb_xml_parser::start_element): Adjust to std::vector.
9878 (xinclude_start_include): Change paraeter type to std::vector
9880 * btrace.c (check_xml_btrace_version): Likewise.
9881 (parse_xml_btrace_block): Likewise.
9882 (parse_xml_btrace_pt_config_cpu): Likewise.
9883 (parse_xml_btrace_pt): Likewise.
9884 (parse_xml_btrace_conf_bts): Likewise.
9885 (parse_xml_btrace_conf_pt): Likewise.
9886 * memory-map.c (memory_map_start_memory): Likewise.
9887 (memory_map_start_property): Likewise.
9888 * osdata.c (osdata_start_osdata): Likewise.
9889 (osdata_start_item): Likewise.
9890 (osdata_start_column): Likewise.
9891 * remote.c (start_thread): Likewise.
9892 * solib-aix.c (library_list_start_library): Likewise.
9893 (library_list_start_list): Likewise.
9894 * solib-svr4.c (library_list_start_library): Likewise.
9895 (svr4_library_list_start_list): Likewise.
9896 * solib-target.c (library_list_start_segment): Likewise.
9897 (library_list_start_section): Likewise.
9898 (library_list_start_library): Likewise.
9899 (library_list_start_list): Likewise.
9900 * tracepoint.c (traceframe_info_start_memory): Likewise.
9901 (traceframe_info_start_tvar): Likewise.
9902 * xml-syscall.c (syscall_start_syscall): Likewise.
9903 * xml-tdesc.c (tdesc_start_target): Likewise.
9904 (tdesc_start_feature): Likewise.
9905 (tdesc_start_reg): Likewise.
9906 (tdesc_start_union): Likewise.
9907 (tdesc_start_struct): Likewise.
9908 (tdesc_start_flags): Likewise.
9909 (tdesc_start_enum): Likewise.
9910 (tdesc_start_field): Likewise.
9911 (tdesc_start_enum_value): Likewise.
9912 (tdesc_start_vector): Likewise.
9914 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9916 * extension.h (struct xmethod_worker) <clone>: Remove.
9917 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
9919 (python_xmethod_worker::clone): Remove.
9920 * valops.c (find_overload_match): Use std::move instead of
9923 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9925 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
9926 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
9927 <free_xmethod_worker_data>: Remove.
9928 <get_matching_xmethod_workers>: Chance VEC to std::vector.
9929 <get_xmethod_arg_types>: Remove.
9930 <get_xmethod_result_type>: Remove.
9931 <invoke_xmethod>: Remove.
9932 * extension.c (new_xmethod_worker): Remove.
9933 (clone_xmethod_worker): Remove.
9934 (get_matching_xmethod_workers): Return void, pass std::vector by
9936 (get_xmethod_arg_types): Rename to...
9937 (xmethod_worker::get_arg_types): ... this, and adjust.
9938 (get_xmethod_result_type): Rename to...
9939 (xmethod_worker::get_result_type): ... this, and adjust.
9940 (invoke_xmethod): Remove.
9941 (free_xmethod_worker): Remove.
9942 (free_xmethod_worker_vec): Remove.
9943 * extension.h (enum ext_lang_rc): Move here from
9945 (struct xmethod_worker): Add constructor and destructor.
9948 <invoke, clone, do_get_result_type, do_get_arg_types>: New
9949 virtual pure methods.
9950 <get_arg_types, get_result_type>: New methods.
9951 (xmethod_worker_ptr): Remove typedef.
9952 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
9953 (xmethod_worker_vec): Remove typedef.
9954 (xmethod_worker_up): New typedef.
9955 (invoke_xmethod): Remove.
9956 (clone_xmethod_worker): Remove.
9957 (free_xmethod_worker): Remove.
9958 (free_xmethod_worker_vec): Remove.
9959 (get_xmethod_arg_types): Remove.
9960 (get_xmethod_result_type): Remove.
9961 * valops.c (find_method_list): Use std::vector, don't use
9962 intermediate vector.
9963 (value_find_oload_method_list): Use std::vector.
9964 (find_overload_match): Use std::vector.
9965 (find_oload_champ): Use std::vector.
9966 * value.c (value_free): Use operator delete.
9967 (value_of_xmethod): Rename to...
9968 (value_from_xmethod): ... this. Don't assign
9969 xmethod_worker::value, take rvalue-reference.
9970 (result_type_of_xmethod): Adjust.
9971 (call_xmethod): Adjust.
9972 * value.h: Include extension.h.
9973 (struct xmethod_worker): Don't forward-declare.
9974 (value_of_xmethod): Rename to...
9975 (value_from_xmethod): ... this, take rvalue-reference.
9976 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
9977 (struct python_xmethod_worker): ... this, add constructor and
9979 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
9980 (gdbpy_free_xmethod_worker_data): Rename to...
9981 (python_xmethod_worker::~python_xmethod_worker): ... this and
9983 (gdbpy_clone_xmethod_worker_data): Rename to...
9984 (python_xmethod_worker::clone): ... this and adjust.
9985 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
9987 (gdbpy_get_xmethod_arg_types): Rename to...
9988 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
9989 (gdbpy_get_xmethod_result_type): Rename to...
9990 (python_xmethod_worker::do_get_result_type): ... this and
9992 (gdbpy_invoke_xmethod): Rename to...
9993 (python_xmethod_worker::invoke): ... this and adjust.
9994 (new_python_xmethod_worker): Rename to...
9995 (python_xmethod_worker::python_xmethod_worker): ... this and
9997 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
9999 (gdbpy_free_xmethod_worker_data): Remove.
10000 (gdbpy_get_matching_xmethod_workers): Use std::vector.
10001 (gdbpy_get_xmethod_arg_types): Remove.
10002 (gdbpy_get_xmethod_result_type): Remove.
10003 (gdbpy_invoke_xmethod): Remove.
10004 * python/python.c (python_extension_ops): Remove obsolete
10007 2018-01-05 Pedro Alves <palves@redhat.com>
10010 * common/signals-state-save-restore.c
10011 (save_original_signals_state): New parameter 'quiet'. Warn if we
10012 find a custom handler preinstalled, instead of internal erroring.
10013 But only warn if !quiet.
10014 * common/signals-state-save-restore.h
10015 (save_original_signals_state): New parameter 'quiet'.
10016 * main.c (captured_main_1): Move save_original_signals_state call
10017 after option handling, and pass QUIET.
10019 2018-01-05 Pedro Alves <palves@redhat.com>
10021 * spu-tdep.c (spu_catch_start): Pass
10022 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
10024 2018-01-05 Pedro Alves <palves@redhat.com>
10027 * ada-lang.c (literal_symbol_name_matcher): New function.
10028 (ada_get_symbol_name_matcher): Use it for
10029 symbol_name_match_type::SEARCH_NAME.
10030 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
10031 it down instead of assuming symbol_name_match_type::FULL.
10032 * block.h (block_lookup_symbol): New parameter 'match_type'.
10033 * c-valprint.c (print_unpacked_pointer): Use
10034 lookup_symbol_search_name instead of lookup_symbol.
10035 * compile/compile-object-load.c (get_out_value_type): Pass down
10036 symbol_name_match_type::SEARCH_NAME.
10037 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
10038 symbol_name_match_type::FULL.
10039 * cp-support.c (cp_get_symbol_name_matcher): Handle
10040 symbol_name_match_type::SEARCH_NAME.
10041 * infrun.c (insert_exception_resume_breakpoint): Use
10042 lookup_symbol_search_name.
10043 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
10044 * psymtab.c (maintenance_check_psymtabs): Use
10045 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
10046 * stack.c (print_frame_args): Use lookup_symbol_search_name and
10047 SYMBOL_SEARCH_NAME.
10048 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
10049 if symbol_name_match_type::SEARCH_NAME.
10050 (lookup_symbol_in_language): Pass down
10051 symbol_name_match_type::FULL.
10052 (lookup_symbol_search_name): New.
10053 (lookup_language_this): Pass down
10054 symbol_name_match_type::SEARCH_NAME.
10055 (lookup_symbol_aux, lookup_local_symbol): New parameter
10056 'match_type'. Pass it down.
10057 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
10058 (lookup_symbol_search_name): New declaration.
10059 (lookup_symbol_in_block): New 'match_type' parameter.
10061 2018-01-05 Pedro Alves <palves@redhat.com>
10064 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
10066 (ada_lookup_symbol): Reimplement in terms of
10067 ada_lookup_symbol_list, bits factored out from
10068 ada_lookup_encoded_symbol.
10070 2018-01-05 Joel Brobecker <brobecker@adacore.com>
10072 * ada-exp.y (write_object_renaming): When subscripting an array
10073 using a symbol as the index, pass the block in call to
10074 ada_lookup_encoded_symbol when looking that symbol up.
10076 2018-01-05 Jerome Guitton <guitton@adacore.com>
10078 * ada-lang.c (ada_array_length): Use ada_index_type instead of
10081 2018-01-05 Joel Brobecker <brobecker@adacore.com>
10083 * ada-lang.c (ada_to_fixed_value_create): Add handling of
10084 the case where VALUE_LVAL (val0) is not lval_memory.
10086 2018-01-05 Xavier Roirand <roirand@adacore.com>
10088 * ada-valprint.c (print_optional_low_bound): Handle
10089 character-indexed array printing like boolean-indexed array
10092 2018-01-05 Joel Brobecker <brobecker@adacore.com>
10094 * NEWS: Create a new section for the next release branch.
10095 Rename the section of the current branch, now that it has
10098 2018-01-05 Joel Brobecker <brobecker@adacore.com>
10100 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
10101 * version.in: Bump version to 8.1.50.DATE-git.
10103 2018-01-03 Xavier Roirand <roirand@adacore.com>
10105 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
10107 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
10109 (default_exception_support_info) <catch_handlers_sym>: Add field.
10110 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
10111 (ada_exception_name_addr_1): Add "catch handlers" handling.
10112 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
10113 Update all callers.
10114 (create_excep_cond_exprs) <ex>: Add parameter.
10115 (re_set_exception): Update create_excep_cond_exprs call.
10116 (print_it_exception, print_one_exception, print_mention_exception)
10117 (print_recreate_exception): Add "catch handler" handling.
10118 (allocate_location_catch_handlers, re_set_catch_handlers)
10119 (check_status_catch_handlers, print_it_catch_handlers)
10120 (print_one_catch_handlers, print_mention_catch_handlers)
10121 (print_recreate_catch_handlers): New function.
10122 (catch_handlers_breakpoint_ops): New variable.
10123 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
10124 Add parameter. Add "catch handler" handling.
10125 (ada_exception_sym_name, ada_exception_breakpoint_ops):
10126 Add "catch handler" handling.
10127 (ada_exception_catchpoint_cond_string): Add "catch handler"
10129 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
10131 (catch_ada_handlers_command): New function.
10132 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
10133 operations structure.
10134 (_initialize_ada_language): Add "catch handlers" command entry.
10135 * NEWS: Document "catch handlers" feature.
10137 2018-01-02 Joel Brobecker <brobecker@adacore.com>
10139 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
10140 account when creating the array type of the slice.
10141 (ada_value_slice): Likewise.
10143 2018-01-02 Joel Brobecker <brobecker@adacore.com>
10145 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
10147 (create_array_type_with_stride): Add byte_stride_prop parameter.
10148 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
10149 New parameter. Update all callers in this file.
10150 (array_type_has_dynamic_stride): New function.
10151 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
10152 of arrays with dynamic byte strides.
10153 * dwarf2read.c (read_array_type): Add support for dynamic
10154 DW_AT_byte_stride attributes.
10156 2018-01-02 Joel Brobecker <brobecker@adacore.com>
10158 * dwarf2read.c (read_unspecified_type): Treat
10159 DW_TAG_enumeration_type DIEs from Ada units as stubs.
10161 2018-01-01 Joel Brobecker <brobecker@adacore.com>
10163 Update copyright year range in all GDB files.
10165 2018-01-01 Joel Brobecker <brobecker@adacore.com>
10167 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
10168 and gdb/testsuite/gdb.base/step-line.c.
10170 2018-01-01 Joel Brobecker <brobecker@adacore.com>
10172 * copyright.py (main): Dump the contents of
10173 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
10174 even if BY_HAND is empty.
10176 2018-01-01 Joel Brobecker <brobecker@adacore.com>
10178 * top.c (print_gdb_version): Update Copyright year in version
10181 2018-01-01 Joel Brobecker <brobecker@adacore.com>
10183 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
10185 For older changes see ChangeLog-2017.
10191 version-control: never