1 2018-07-17 Jim Wilson <jimw@sifive.com>
3 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4 RISCV_LAST_FP_REGNUM + 1.
5 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
7 2018-07-17 Tom Tromey <tom@tromey.com>
9 * configure.ac: Remove --disable-gdbcli.
11 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
12 (SUBDIR_CLI_CFLAGS): Remove.
13 (SFILES): Use SUBDIR_CLI_SRCS.
14 (COMMON_OBS): Use SUBDIR_CLI_OBS.
16 2018-07-17 Tom Tromey <tom@tromey.com>
19 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
21 2018-07-16 Jim Wilson <jimw@sifive.com>
23 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
25 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
27 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
29 (libunwind_frame_sniffer): Likewise.
30 (libunwind_frame_prev_register): Likewise.
31 (libunwind_sigtramp_frame_sniffer): Likewise.
32 * ia64-tdep.c (ia64_access_reg): Likewise.
33 (ia64_access_rse_reg): Likewise.
34 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
35 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
37 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
39 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
41 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
43 * remote-sim.c (gdbsim_target::close,
44 gdbsim_target::mourn_inferior): Remove unused variables.
46 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
48 * ia64-tdep.c (ktab_buf): New global.
49 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
50 (get_kernel_table): Adjust.
52 2018-07-16 Tom Tromey <tom@tromey.com>
54 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
55 * dwarf2read.c (using_directives, new_symbol): Use
57 * dbxread.c (process_one_symbol): Use outermost_context_p.
58 * coffread.c (coff_symtab_read): Use outermost_context_p.
60 2018-07-16 Tom Tromey <tom@tromey.com>
62 * dwarf2read.c (using_directives, read_func_scope)
63 (read_lexical_block_scope): Update.
64 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
65 * buildsym.h (local_using_directives, global_using_directives):
67 (get_local_using_directives, set_local_using_directives)
68 (get_global_using_directives): Declare.
69 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
70 m_global_using_directives>: New members.
71 (finish_block_internal, prepare_for_building)
72 (reset_symtab_globals, end_symtab_get_static_block)
73 (push_context): Update.
74 (get_local_using_directives, set_local_using_directives)
75 (get_global_using_directives): New functions.
76 (buildsym_init): Update.
78 2018-07-16 Tom Tromey <tom@tromey.com>
80 * xcoffread.c (xcoff_initial_scan): Don't call
82 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
83 * buildsym.h (class scoped_free_pendings): Add constructor.
84 (free_pending_blocks): Don't declare.
85 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
86 (free_pending_blocks): Now static.
88 2018-07-16 Tom Tromey <tom@tromey.com>
90 * buildsym.h (push_subfile, pop_subfile): Update declarations.
91 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
93 (struct subfile_stack): Remove.
94 (subfile_stack): Remove.
95 (push_subfile, pop_subfile, buildsym_init): Update.
97 2018-07-16 Tom Tromey <tom@tromey.com>
99 * buildsym.c (push_subfile): Use gdb_assert.
100 (pop_subfile): Use gdb_assert.
102 2018-07-16 Tom Tromey <tom@tromey.com>
104 * buildsym.h (merge_symbol_lists): Remove.
105 * buildsym.c (merge_symbol_lists): Remove.
107 2018-07-16 Tom Tromey <tom@tromey.com>
109 * stabsread.c (scan_file_globals): Update comment.
110 * stabsread.h (scan_file_globals): Move from buildsym.h.
111 * buildsym.h (scan_file_globals): Move to stabsread.h.
113 2018-07-16 Tom Tromey <tom@tromey.com>
115 * xcoffread.c (xcoff_new_init): Update.
116 * mipsread.c (mipscoff_new_init): Update.
117 * mdebugread.c (mdebug_build_psymtabs): Update.
118 * elfread.c (elf_new_init): Update.
119 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
120 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
121 * buildsym.h (buildsym_new_init): Don't declare.
122 * buildsym.c (buildsym_new_init): Remove.
124 2018-07-16 Tom Tromey <tom@tromey.com>
126 * stabsread.h (within_function): Move from buildsym.h.
127 * stabsread.c (start_stabs): Clear within_function.
128 * coffread.c (coff_start_symtab): Clear within_function.
129 * buildsym.h (within_function): Move to stabsread.h.
130 * buildsym.c (prepare_for_building): Update.
132 2018-07-16 Tom Tromey <tom@tromey.com>
134 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
135 * dwarf2read.c (dwarf2_start_symtab): Don't set
136 processing_gcc_compilation.
137 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
139 2018-07-16 Tom Tromey <tom@tromey.com>
141 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
142 (next_symbol_text_func): Move from buildsym.h.
143 * stabsread.c (hashname): Move from buildsym.c.
144 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
145 (next_symbol_text_func, hashname): Move to stabsread.h.
146 * buildsym.c: Don't include bcache.h
147 (hashname): Move to stasbread.c.
149 2018-07-16 Tom Tromey <tom@tromey.com>
151 * buildsym.h (context_stack_size): Don't declare.
152 * buildsym.c (context_stack_size): New global.
154 2018-07-16 Tom Tromey <tom@tromey.com>
156 * dbxread.c (processing_acc_compilation): New global.
157 * buildsym.h (processing_acc_compilation): Don't declare.
159 2018-07-16 Tom Tromey <tom@tromey.com>
161 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
162 * dbxread.c (read_ofile_symtab): Update.
163 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
164 * buildsym.h (last_source_start_addr): Remove.
165 (set_last_source_start_addr, get_last_source_start_addr):
167 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
169 (struct buildsym_compunit) <m_last_source_start_addr>: New
171 (prepare_for_building): Remove start_addr parameter.
172 (start_symtab, restart_symtab, end_symtab_get_static_block)
173 (end_symtab_with_blockvector): Update.
174 (set_last_source_start_addr, get_last_source_start_addr): New
177 2018-07-16 Tom Tromey <tom@tromey.com>
179 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
181 (have_line_numbers): Remove.
182 (record_line, prepare_for_building, end_symtab_get_static_block)
183 (augment_type_symtab): Update.
185 2018-07-16 Tom Tromey <tom@tromey.com>
187 * buildsym.c (~buildsym_compunit): Free the macro table.
188 (struct buildsym_compunit) <get_macro_table, release_macros>: New
190 <m_pending_macros>: New member.
191 (pending_macros): Remove.
192 (~scoped_free_pendings, get_macro_table, prepare_for_building)
193 (reset_symtab_globals, end_symtab_get_static_block)
194 (end_symtab_with_blockvector, augment_type_symtab)
195 (buildsym_init): Update.
197 2018-07-16 Tom Tromey <tom@tromey.com>
199 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
201 (buildsym_compunit::set_last_source_file): New method.
202 <m_last_source_file>: New member.
203 (prepare_for_building): Remove "name" parameter.
204 (start_symtab, restart_symtab, reset_symtab_globals): Update.
205 (last_source_file): Remove.
206 (set_last_source_file, get_last_source_file): Update.
208 2018-07-16 Tom Tromey <tom@tromey.com>
210 * buildsym.c (prepare_for_building): Add assert.
212 2018-07-16 Tom Tromey <tom@tromey.com>
214 * buildsym.c (~buildsym_compunit): Update.
215 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
216 (start_subfile, patch_subfile_names)
217 (end_symtab_with_blockvector): Update.
219 2018-07-16 Tom Tromey <tom@tromey.com>
221 * buildsym.c (struct buildsym_compunit): Add constructor,
222 destructor, initializers.
223 (start_buildsym_compunit): Remove.
224 (free_buildsym_compunit): Use "delete".
225 (start_symtab, restart_symtab): Use "new".
227 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
229 * symfile.c (set_objfile_default_section_offset): Remove struct
232 2018-07-14 Stafford Horne <shorne@gmail.com>
234 * (Responsible Maintainers): Add myself as or1k maintainer.
236 2018-07-13 Tom Tromey <tom@tromey.com>
238 * symfile.c (set_objfile_default_section_offset): Use extra braces
241 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
243 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
246 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
248 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
249 unittests/cli-utils-selftests.c
250 * unittests/cli-utils-selftests.c: New file.
252 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
254 * NEWS: Mention new commands. Mention change to 'thread apply'.
256 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
258 * thread.c (thr_try_catch_cmd): New function.
259 (thread_apply_all_command): Handle qcs flags.
260 (thread_apply_command): Handle qcs flags.
261 (taas_command): New function.
262 (tfaas_command): New function.
263 (_initialize_thread): Update to setup the new commands 'taas
264 and 'tfaas'. Change doc string for 'thread apply'.
266 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
268 * stack.c: (trailing_outermost_frame): New function, mostly
269 extracted from backtrace_command_1.
270 (leading_innermost_frame): New function.
271 (backtrace_command_1): Update to call trailing_outermost_frame.
272 (frame_apply_command_count): New function.
273 (frame_apply_level_command): New function.
274 (frame_apply_all_command): New function.
275 (frame_apply_command): New function.
276 (faas_command): New function.
277 (frame_cmd_list): New variable.
278 (_initialize_stack): Update to setup the new commands 'frame apply'
281 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
283 * cli-utils.c (number_or_range_parser::get_number): Only handle
284 numbers or convenience var as numbers.
285 (parse_flags): New function.
286 (parse_flags_qcs): New function.
287 (number_or_range_parser::finished): Ensure parsing end is detected
288 before end of string.
289 * cli-utils.h (parse_flags): New function.
290 (parse_flags_qcs): New function.
291 (number_or_range_parser): Remove m_finished bool.
292 (number_or_range_parser::skip_range): Set m_in_range to false.
294 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
296 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
299 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
300 Jan Kratochvil <jan.kratochvil@redhat.com>
301 Paul Fertser <fercerpav@gmail.com>
302 Tsutomu Seki <sekiriki@gmail.com>
303 Pedro Alves <palves@redhat.com>
305 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
306 'unittests/parse-connection-spec-selftests.c'.
307 (COMMON_SFILES): Add 'common/netstuff.c'.
308 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
309 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
310 * common/netstuff.c: New file.
311 * common/netstuff.h: New file.
312 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
313 (wait_for_connect): Update comment. New parameter
314 'gdb::optional<int> sock' instead of 'struct serial *scb'.
315 Use 'sock' directly instead of 'scb->fd'.
316 (try_connect): New function, with code from 'net_open'.
317 (net_open): Rewrite main loop to deal with multiple
318 sockets/addresses. Handle IPv6-style hostnames; implement
319 support for IPv6 connections.
320 * unittests/parse-connection-spec-selftests.c: New file.
322 2018-07-11 Pedro Alves <palves@redhat.com>
325 * remote.c (remote_target::remote_detach_pid): Call
328 2018-07-11 Pedro Alves <palves@redhat.com>
330 * h8300-tdep.c (h8300_gdbarch_init): Remove
331 set_gdbarch_ecoff_reg_to_regnum calls.
333 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
336 * c-typeprint.c (c_type_print_base_struct_union): Don't print
337 offsets/sizes for static members of a class/struct.
339 2018-07-11 Alan Hayward <alan.hayward@arm.com>
341 * target-descriptions.c (tdesc_register_bitsize): Rename.
342 * target-descriptions.h (tdesc_register_bitsize): Likewise.
343 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
344 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
346 2018-07-10 Tom Tromey <tom@tromey.com>
348 * breakpoint.c (moribund_locations): Now static and a
350 (breakpoint_init_inferior, moribund_breakpoint_here_p)
351 (build_bpstat_chain, update_global_location_list)
352 (breakpoint_retire_moribund): Update.
353 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
356 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
358 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
359 (riscv_register_reggroup_p): Use new function, remove unneeded
361 (riscv_push_dummy_call): Extend assert to compare against xlen or
362 flen based on register type.
364 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
366 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
368 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
370 * remote.c (show_hardware_watchpoint_limit): New function.
371 (show_hardware_watchpoint_length_limit): New function.
372 (show_hardware_breakpoint_limit): New function.
373 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
374 where appropriate, update help text.
376 2018-07-09 Tom Tromey <tom@tromey.com>
378 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
379 (CLIBS): Don't mention NAT_CLIBS.
381 2018-07-09 Tom Tromey <tom@tromey.com>
383 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
384 (LIBGDB_OBS, clean mostlyclean): Update.
385 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
387 2018-07-09 Tom Tromey <tom@tromey.com>
389 * Makefile.in (%.c: %.y): Use ECHO_YACC.
390 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
391 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
393 2018-07-09 Tom Tromey <tom@tromey.com>
395 * Makefile.in (ALLDEPFILES): Remove exec.c.
396 (COMMON_OBS): Remove exec.o.
397 (COMMON_SFILES): Add exec.c.
399 2018-07-09 Tom Tromey <tom@tromey.com>
401 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
403 2018-07-09 Tom Tromey <tom@tromey.com>
405 * Makefile.in (clean mostlyclean): Remove stamp-version.
406 (version.c): Depend on stamp-version.
407 (stamp-version): New rule, from version.c rule.
409 2018-07-09 Tom Tromey <tom@tromey.com>
411 * Makefile.in (init.c): Depend on stamp-init.
412 (stamp-init): New rule, from init.c rule.
413 (clean mostlyclean): Remove stamp-init.
415 2018-07-09 Tom Tromey <tom@tromey.com>
417 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
418 SUBDIR_GCC_COMPILE_SRCS.
420 2018-07-09 Tom Tromey <tom@tromey.com>
422 * Makefile.in (init.c): Remove some unused sed rules.
424 2018-07-09 Tom Tromey <tom@tromey.com>
426 * Makefile.in (TSOBS): Remove.
427 (INIT_FILES): Update.
428 (LIBGDB_OBS): Update.
429 (COMMON_SFILES): Add inflow.c.
430 (SFILES): Remove inflow.c.
432 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
434 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
436 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
438 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
439 get_saveloc_name, is_signal_frame_name, step_name,
440 init_remote_name, create_addr_space_name,
441 destroy_addr_space_name, search_unwind_table_name,
442 find_dyn_list_name): Constify.
444 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
446 * darwin-nat.c (darwin_pthread_kill): New function.
447 (darwin_resume_thread): Use darwin_pthread_kill.
449 2018-07-05 Tom de Vries <tdevries@suse.de>
451 * macroexp.c (macro_buffer) <operator=>: New member function.
453 2018-07-04 Tom Tromey <tom@tromey.com>
455 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
457 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
459 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
460 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
464 2018-07-04 Joel Brobecker <brobecker@adacore.com>
466 * NEWS: Create a new section for the next release branch.
467 Rename the section of the current branch, now that it has
470 2018-07-04 Joel Brobecker <brobecker@adacore.com>
472 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
473 * version.in: Bump version to 8.2.50.DATE-git.
475 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
476 Pedro Alves <palves@redhat.com>
478 * linux-nat.c (linux_init_ptrace): Rename to ...
479 (linux_init_ptrace_procfs): ... this. Call
480 linux_proc_init_warnings.
481 (linux_nat_target::post_attach)
482 (linux_nat_target::post_startup_inferior): Adjust.
483 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
484 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
486 2018-07-04 Tom de Vries <tdevries@suse.de>
488 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
490 (read_comp_unit_head): ... here.
492 2018-07-03 Tom Tromey <tom@tromey.com>
494 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
495 (stop_tracing, tstatus_command)
496 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
497 (print_one_static_tracepoint_marker): Update.
498 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
500 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
502 (all_tracepoints, static_tracepoints_here): Return std::vector.
504 2018-07-03 Tom Tromey <tom@tromey.com>
506 * common/ptid.c (ptid_equal): Remove.
507 * common/ptid.h (ptid_equal): Don't declare.
508 * ada-tasks.c: Update.
509 * breakpoint.c: Update.
510 * common/agent.c: Update.
512 * darwin-nat-info.c: Update.
513 * darwin-nat.c: Update.
515 * dtrace-probe.c: Update.
516 * dummy-frame.c: Update.
517 * fbsd-nat.c: Update.
519 * gdbthread.h: Update.
521 * go32-nat.c: Update.
522 * inf-loop.c: Update.
523 * inf-ptrace.c: Update.
528 * linux-fork.c: Update.
529 * linux-nat.c: Update.
530 * linux-thread-db.c: Update.
531 * mi/mi-cmd-var.c: Update.
532 * mi/mi-interp.c: Update.
533 * mi/mi-main.c: Update.
534 * nto-procfs.c: Update.
535 * ppc-linux-tdep.c: Update.
537 * python/py-inferior.c: Update.
538 * python/py-record-btrace.c: Update.
539 * python/py-record.c: Update.
540 * ravenscar-thread.c: Update.
541 * regcache.c: Update.
542 * remote-sim.c: Update.
544 * sol-thread.c: Update.
547 * tui/tui-stack.c: Update.
549 * windows-nat.c: Update.
550 * windows-tdep.c: Update.
552 2018-07-03 Tom Tromey <tom@tromey.com>
554 * common/ptid.c (ptid_match): Remove.
555 * common/ptid.h (ptid_match): Don't declare.
556 * fbsd-nat.c: Update.
559 * linux-nat.c: Update.
560 * record-btrace.c: Update.
561 * regcache.c: Update.
564 2018-07-03 Tom Tromey <tom@tromey.com>
566 * common/ptid.c (ptid_tid_p): Remove.
567 * common/ptid.h (ptid_tid_p): Don't declare.
568 * sol-thread.c: Update.
570 2018-07-03 Tom Tromey <tom@tromey.com>
572 * common/ptid.c (ptid_lwp_p): Remove.
573 * common/ptid.h (ptid_lwp_p): Don't declare.
574 * fbsd-nat.c: Update.
575 * linux-nat.c: Update.
576 * nat/linux-procfs.c: Update.
577 * nat/x86-linux-dregs.c: Update.
578 * sol-thread.c: Update.
580 2018-07-03 Tom Tromey <tom@tromey.com>
582 * common/ptid.c (ptid_is_pid): Remove.
583 * common/ptid.h (ptid_is_pid): Don't declare.
585 * linux-nat.c: Update.
586 * mi/mi-interp.c: Update.
590 2018-07-03 Tom Tromey <tom@tromey.com>
592 * common/ptid.c (ptid_get_tid): Remove.
593 * common/ptid.h (ptid_get_tid): Don't declare.
594 * ada-tasks.c: Update.
595 * aix-thread.c: Update.
596 * bsd-uthread.c: Update.
597 * darwin-nat.c: Update.
598 * fbsd-nat.c: Update.
599 * i386-darwin-nat.c: Update.
601 * linux-tdep.c: Update.
602 * nto-procfs.c: Update.
603 * ppc-ravenscar-thread.c: Update.
604 * python/py-infthread.c: Update.
605 * ravenscar-thread.c: Update.
606 * sol-thread.c: Update.
607 * sparc-ravenscar-thread.c: Update.
608 * windows-nat.c: Update.
610 2018-07-03 Tom Tromey <tom@tromey.com>
612 * common/ptid.c (ptid_get_lwp): Remove.
613 * common/ptid.h (ptid_get_lwp): Don't declare.
614 * aarch64-linux-nat.c: Update.
615 * ada-tasks.c: Update.
616 * aix-thread.c: Update.
617 * amd64-linux-nat.c: Update.
618 * arm-linux-nat.c: Update.
620 * fbsd-nat.c: Update.
621 * fbsd-tdep.c: Update.
623 * i386-cygwin-tdep.c: Update.
624 * i386-gnu-nat.c: Update.
625 * i386-linux-nat.c: Update.
626 * ia64-linux-nat.c: Update.
627 * inf-ptrace.c: Update.
629 * linux-fork.c: Update.
630 * linux-nat.c: Update.
631 * linux-tdep.c: Update.
632 * linux-thread-db.c: Update.
633 * mips-linux-nat.c: Update.
634 * nat/aarch64-linux-hw-point.c: Update.
635 * nat/aarch64-linux.c: Update.
636 * nat/linux-btrace.c: Update.
637 * nat/linux-osdata.c: Update.
638 * nat/linux-procfs.c: Update.
639 * nat/x86-linux-dregs.c: Update.
640 * obsd-nat.c: Update.
641 * ppc-fbsd-nat.c: Update.
642 * ppc-linux-nat.c: Update.
644 * python/py-infthread.c: Update.
645 * ravenscar-thread.c: Update.
647 * s390-linux-nat.c: Update.
648 * sol-thread.c: Update.
649 * sol2-tdep.c: Update.
650 * spu-linux-nat.c: Update.
651 * x86-linux-nat.c: Update.
652 * xtensa-linux-nat.c: Update.
654 2018-07-03 Tom Tromey <tom@tromey.com>
656 * common/ptid.c (ptid_get_pid): Remove.
657 * common/ptid.h (ptid_get_pid): Don't declare.
658 * aarch64-linux-nat.c: Update.
659 * ada-lang.c: Update.
660 * aix-thread.c: Update.
661 * alpha-bsd-nat.c: Update.
662 * amd64-fbsd-nat.c: Update.
663 * amd64-linux-nat.c: Update.
664 * arm-linux-nat.c: Update.
665 * arm-nbsd-nat.c: Update.
667 * break-catch-syscall.c: Update.
668 * breakpoint.c: Update.
669 * bsd-uthread.c: Update.
672 * darwin-nat.c: Update.
673 * fbsd-nat.c: Update.
674 * fbsd-tdep.c: Update.
677 * hppa-nbsd-nat.c: Update.
678 * hppa-obsd-nat.c: Update.
679 * i386-fbsd-nat.c: Update.
680 * ia64-linux-nat.c: Update.
681 * inf-ptrace.c: Update.
683 * inferior.c: Update.
684 * inferior.h: Update.
687 * linux-fork.c: Update.
688 * linux-nat.c: Update.
689 * linux-tdep.c: Update.
690 * linux-thread-db.c: Update.
691 * m68k-bsd-nat.c: Update.
692 * mi/mi-interp.c: Update.
693 * mi/mi-main.c: Update.
694 * mips-linux-nat.c: Update.
695 * mips-nbsd-nat.c: Update.
696 * mips64-obsd-nat.c: Update.
697 * nat/aarch64-linux-hw-point.c: Update.
698 * nat/aarch64-linux.c: Update.
699 * nat/linux-btrace.c: Update.
700 * nat/linux-osdata.c: Update.
701 * nat/linux-procfs.c: Update.
702 * nat/x86-linux-dregs.c: Update.
703 * nto-procfs.c: Update.
704 * obsd-nat.c: Update.
705 * ppc-linux-nat.c: Update.
706 * ppc-nbsd-nat.c: Update.
707 * ppc-obsd-nat.c: Update.
708 * proc-service.c: Update.
710 * python/py-inferior.c: Update.
711 * python/py-infthread.c: Update.
712 * ravenscar-thread.c: Update.
714 * remote-sim.c: Update.
716 * rs6000-nat.c: Update.
717 * s390-linux-nat.c: Update.
718 * sh-nbsd-nat.c: Update.
719 * sol-thread.c: Update.
720 * sparc-nat.c: Update.
721 * sparc64-tdep.c: Update.
722 * spu-linux-nat.c: Update.
723 * spu-tdep.c: Update.
724 * target-debug.h: Update.
727 * tid-parse.c: Update.
728 * tracefile-tfile.c: Update.
729 * vax-bsd-nat.c: Update.
730 * windows-nat.c: Update.
731 * x86-linux-nat.c: Update.
734 2018-07-03 Tom Tromey <tom@tromey.com>
736 * common/ptid.c (pid_to_ptid): Remove.
737 * common/ptid.h (pid_to_ptid): Don't declare.
738 * aix-thread.c: Update.
739 * arm-linux-nat.c: Update.
740 * common/ptid.c: Update.
741 * common/ptid.h: Update.
744 * darwin-nat.c: Update.
745 * fbsd-nat.c: Update.
746 * fork-child.c: Update.
748 * go32-nat.c: Update.
749 * inf-ptrace.c: Update.
751 * inferior.c: Update.
753 * linux-fork.c: Update.
754 * linux-nat.c: Update.
755 * nat/aarch64-linux-hw-point.c: Update.
756 * nat/fork-inferior.c: Update.
757 * nat/x86-linux-dregs.c: Update.
758 * nto-procfs.c: Update.
759 * obsd-nat.c: Update.
761 * progspace.c: Update.
763 * rs6000-nat.c: Update.
764 * s390-linux-nat.c: Update.
765 * sol-thread.c: Update.
766 * spu-linux-nat.c: Update.
769 * tracefile-tfile.c: Update.
770 * windows-nat.c: Update.
772 2018-07-03 Tom Tromey <tom@tromey.com>
774 * common/ptid.h (ptid_build): Don't declare.
775 * common/ptid.c (ptid_build): Remove.
776 * aix-thread.c: Update.
778 * bsd-uthread.c: Update.
779 * common/agent.c: Update.
780 * common/ptid.c: Update.
781 * common/ptid.h: Update.
783 * darwin-nat.c: Update.
784 * fbsd-nat.c: Update.
786 * linux-fork.c: Update.
787 * linux-nat.c: Update.
788 * linux-thread-db.c: Update.
789 * nat/linux-osdata.c: Update.
790 * nat/linux-procfs.c: Update.
791 * nto-procfs.c: Update.
792 * obsd-nat.c: Update.
793 * proc-service.c: Update.
795 * ravenscar-thread.c: Update.
796 * remote-sim.c: Update.
798 * sol-thread.c: Update.
800 * windows-nat.c: Update.
802 2018-07-03 Tom Tromey <tom@tromey.com>
804 * infrun.c (follow_exec): Use exit_inferior_silent.
805 * inferior.c (exit_inferior_num_silent): Remove.
806 * inferior.h (exit_inferior_num_silent): Don't declare.
808 2018-07-03 Tom Tromey <tom@tromey.com>
811 * darwin-nat.c (darwin_attach_pid): Reset inferior and
812 inferior_ptid on error.
814 2018-07-02 Maciej W. Rozycki <macro@mips.com>
815 Simon Marchi <simon.marchi@polymtl.ca>
818 * disasm.h (gdb_disassembler): Add
819 `m_disassembler_options_holder'. member
820 * disasm.c (get_all_disassembler_options): New function.
821 (gdb_disassembler::gdb_disassembler): Use it.
822 (gdb_buffered_insn_length_init_dis): Likewise.
823 (gdb_buffered_insn_length): Adjust accordingly.
824 (set_disassembler_options): Handle options with arguments.
825 (show_disassembler_options_sfunc): Likewise. Add a leading new
826 line if showing options with descriptions.
827 (disassembler_options_completer): Adapt to using the
828 `disasm_options_and_args_t' structure.
829 * mips-tdep.c (mips_disassembler_options): New variable.
830 (mips_disassembler_options_o32): Likewise.
831 (mips_disassembler_options_n32): Likewise.
832 (mips_disassembler_options_n64): Likewise.
833 (gdb_print_insn_mips): Don't set `disassembler_options'.
834 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
836 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
837 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
838 `gdbarch_disassembler_options_implicit' and
839 `gdbarch_valid_disassembler_options'.
840 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
841 `disasm_options_and_args_t' structure.
842 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
844 (valid_disassembler_options): Switch from `disasm_options_t' to
845 the `disasm_options_and_args_t' structure.
846 * NEWS: Document `set disassembler-options' support for the MIPS
848 * gdbarch.h: Regenerate.
849 * gdbarch.c: Regenerate.
851 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
853 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
855 2018-06-29 Joel Brobecker <brobecker@adacore.com>
857 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
858 parameter in call to amd64_target_description.
859 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
860 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
861 (amd64fbsd_init_abi): Likewise.
862 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
863 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
864 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
865 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
867 2018-06-29 Pedro Alves <palves@redhat.com>
869 * gdb/amd64-tdep.h (amd64_create_target_description): Add
870 "segments" parameter.
871 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
872 (_initialize_amd64_tdep): Update call to
873 amd64_create_target_description.
874 (amd64_target_description): Add "segments" parameter. Adjust
875 the implementation to use it.
876 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
877 call to amd64_create_target_description.
878 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
879 * gdb/arch/amd64.h (amd64_create_target_description): Add
881 * gdb/arch/amd64.c (amd64_create_target_description): Add
882 "segments" parameter. Call create_feature_i386_64bit_segments
883 only if SEGMENTS is true.
884 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
885 call to amd64_create_target_description.
887 2018-06-29 Pedro Alves <palves@redhat.com>
889 * thread.c (thread_target_id_str): New, factored out from ...
890 (print_thread_info_1): ... here. Use it to compute the max
891 "Target Id" column width.
893 2018-06-29 Pedro Alves <palves@redhat.com>
895 * remote.c (remote_target::extra_thread_info): Delete
896 'display_buf' and 'n' locals. from the cache, regardless of
897 packet mechanims is in use. Use cache for qThreadExtra and qP
900 2018-06-29 Pedro Alves <palves@redhat.com>
902 * blockframe.c (find_pc_sect_containing_function): New function.
903 * breakpoint.c (print_breakpoint_location): Don't call
904 find_pc_sect_function.
905 * linespec.c (create_sals_line_offset): Record the location's
907 * linespec.c (convert_address_location_to_sals): Fill in sal's
908 symbol with find_pc_sect_containing_function.
909 * symtab.c (find_function_start_sal): Rename to ...
910 (find_function_start_sal_1): ... this.
911 (find_function_start_sal): Reimplement as wrapper around
912 find_function_start_sal_1, and use
913 find_pc_sect_containing_function to fill in the sal's symbol.
914 (find_function_start_sal(symbol*, bool)): Adjust.
915 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
917 (find_pc_sect_containing_function): Declare.
919 2018-06-29 Pedro Alves <palves@redhat.com>
921 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
922 true if the the location has no symbol.
924 2018-06-28 Tom Tromey <tom@tromey.com>
926 * NEWS: Mention --enable-codesign.
927 * silent-rules.mk (ECHO_SIGN): New variable.
928 * configure.ac: Add --enable-codesign.
929 * configure: Rebuild.
930 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
931 (gdb$(EXEEXT)): Optionally invoke codesign.
933 2018-06-28 Pedro Alves <palves@redhat.com>
935 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
937 (switch_to_thread_no_regs): Adjust comment.
938 * infcmd.c (stop_pc): Delete.
939 (post_create_inferior, info_program_command): Replace references
940 to stop_pc with references to thread_info->suspend.stop_pc.
941 * inferior.h (stop_pc): Delete declaration.
942 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
943 (handle_inferior_event_1, handle_signal_stop)
944 (process_event_stop_test, keep_going_stepped_thread)
945 (handle_step_into_function, handle_step_into_function_backward)
946 (print_stop_location): Replace references to stop_pc with
947 references to thread_info->suspend.stop_pc.
948 (struct infcall_suspend_state) <stop_pc>: Delete field.
949 (save_infcall_suspend_state, restore_infcall_suspend_state):
950 Remove references to inf_stat->stop_pc.
951 * linux-fork.c (fork_load_infrun_state): Likewise.
952 * record-btrace.c (record_btrace_set_replay): Likewise.
953 * record-full.c (record_full_goto_entry): Likewise.
954 * remote.c (print_one_stopped_thread): Likewise.
955 * target.c (target_resume): Extend comment.
956 * thread.c (set_executing_thread): New.
957 (set_executing): Use it.
958 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
959 Remove references to stop_pc.
961 2018-06-28 Pedro Alves <palves@redhat.com>
963 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
964 Moving fetching stop_pc until after ecs->event_thread is refreshed.
966 2018-06-28 Tom Tromey <tom@tromey.com>
968 * coffread.c (coff_symfile_finish): Update.
969 * xcoffread.c (xcoff_symfile_finish): Update.
970 * elfread.c (elf_symfile_finish): Update.
971 * symfile.h (dwarf2_free_objfile): Don't declare.
972 * dwarf2read.c (_initialize_dwarf2_read): Use
973 register_objfile_data_with_cleanup.
974 (dwarf2_free_objfile): Now static. Change signature.
976 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
978 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
979 option "-o" to add-symbol-file-load to add an offset to each
980 section's load address.
981 * symfile.c (set_objfile_default_section_offset): New function.
983 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
985 * symfile.c (add_symbol_file_command): Make sure that sections
986 with the same name are sorted in the same order.
988 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
990 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
991 require the second argument. If omitted, load sections at the
992 addresses specified in the file.
994 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
996 * symfile.c (symbol_file_command, symbol_file_add_main_1)
997 (_initialize_symfile): Add option "-o" to symbol-file to add an
998 offset to each section of the symbol file.
1000 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
1002 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
1004 2018-06-27 Tom Tromey <tom@tromey.com>
1006 * stack.c (_initialize_stack): Update "func" help text.
1008 2018-06-27 Tom Tromey <tom@tromey.com>
1010 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
1012 (unwind_infopy_str, pyuw_create_unwind_info)
1013 (unwind_infopy_add_saved_register, pyuw_sniffer)
1014 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
1016 (struct saved_reg): Add constructor.
1017 <value>: Now a gdbpy_ref<>.
1019 2018-06-27 Tom Tromey <tom@tromey.com>
1021 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
1023 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1025 * gdb-gdb.py.in: Format using autopep8.
1027 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1029 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
1030 (type_lookup_function): Recognize CORE_ADDR values.
1032 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1034 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
1037 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1039 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
1042 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1044 * gdb-gdb.py: Move to...
1045 * gdb-gdb.py.in: ... here.
1046 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
1047 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
1049 (distclean): Remove gdb-gdb.py when cleaning.
1050 (gdb-gdb.py, gdb-gdb.gdb): New rules.
1051 * configure: Re-generate.
1053 2018-06-27 Pedro Alves <palves@redhat.com>
1055 * proc-service.c (get_ps_regcache): New.
1056 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
1057 (ps_lsetfpregs): Use it.
1059 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
1062 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
1063 (dwarf_decode_lines_1): Adjust.
1065 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1067 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
1069 <info_proc>: Likewise.
1071 2018-06-26 Joel Brobecker <brobecker@adacore.com>
1073 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
1074 to windows_fetch_one_register, and only handle the case of
1075 fetching one register. Move the code that reloads the context
1076 and iterates over all registers if R is negative to...
1077 (windows_nat_target::fetch_registers): ... here.
1078 (do_windows_store_inferior_registers): Rename to
1079 windows_store_one_register, and only handle the case of storing
1080 one register. Move the code that handles the case where r is
1082 (windows_nat_target::store_registers) ... here.
1084 2018-06-26 Tom Tromey <tom@tromey.com>
1087 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
1088 * rust-lang.c (rust_print_struct_def): Add podata parameter.
1090 (rust_internal_print_type): Add podata parameter.
1091 (rust_print_type): Update.
1093 2018-06-26 Tom Tromey <tom@tromey.com>
1095 * typeprint.h (struct print_offset_data) <update, finish,
1096 maybe_print_hole>: New methods.
1097 <indentation>: New constant.
1098 * typeprint.c (print_offset_data::indentation): Define.
1099 (print_offset_data::maybe_print_hole, print_offset_data::update)
1100 (print_offset_data::finish): Move from c-typeprint.c and rename.
1101 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
1102 (print_spaces_filtered_with_print_options): Update.
1103 (c_print_type_union_field_offset, maybe_print_hole)
1104 (c_print_type_struct_field_offset): Move to typeprint.c and
1106 (c_type_print_base_struct_union): Update.
1108 2018-06-25 Pedro Alves <palves@redhat.com>
1110 * gdbthread.h (thread_info_ref, delete_thread)
1111 (delete_thread_silent, first_thread_of_inferior)
1112 (any_thread_of_inferior, switch_to_thread)
1113 (enable_thread_stack_temporaries)
1114 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1115 (get_last_thread_stack_temporary)
1116 (value_in_thread_stack_temporaries, can_access_registers_thread):
1117 Spell out "struct thread_info" instead of just "thread_info".
1118 * inferior.h (notice_new_inferior): Likewise.
1120 2018-06-25 Pedro Alves <palves@redhat.com>
1122 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
1123 pass thread_info pointer to delete_thread.
1124 (windows_nat_target::detach): Pass inferior pointer to
1126 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
1128 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
1129 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
1130 and pass a thread_info pointer to delete_thread.
1131 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
1132 pass thread_info pointer to delete_thread.
1133 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
1134 delete_thread_silent call.
1135 * procfs.c (procfs_target::detach): Pass inferior pointer to
1137 (procfs_target::wait): Pass thread_info pointer to delete_thread.
1138 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
1139 delete_thread_silent call.
1140 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
1141 pass thread_info pointer to delete_thread.
1142 (windows_nat_target::detach): Pass inferior pointer to
1145 2018-06-22 Alan Hayward <alan.hayward@arm.com>
1147 * regcache.c (readable_regcache::read_part): Fix asserts.
1148 (reg_buffer::raw_collect_part): New function.
1149 (regcache::write_part): Fix asserts.
1150 (reg_buffer::raw_supply_part): New function.
1151 (regcache::transfer_regset_register): New helper function.
1152 (regcache::transfer_regset): Call new functions.
1153 (regcache_supply_regset): Use gdb_byte*.
1154 (regcache::supply_regset): Likewise.
1155 (regcache_collect_regset): Likewise.
1156 (regcache::collect_regset): Likewise.
1157 * regcache.h (reg_buffer::raw_collect_part): New declaration.
1158 (reg_buffer::raw_supply_part): Likewise.
1159 (regcache::transfer_regset_register): Likewise.
1160 (regcache::transfer_regset): Use gdb_byte*.
1162 2018-06-22 Alan Hayward <alan.hayward@arm.com>
1164 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
1166 2018-06-21 Pedro Alves <palves@redhat.com>
1168 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
1169 instead of a ptid_t. All callers adjusted.
1170 * ada-tasks.c (ada_get_task_number): Likewise. All callers
1172 (print_ada_task_info, display_current_task_id, task_command_1):
1174 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
1176 (breakpoint_kind): Adjust.
1177 (remove_breakpoints_pid): Rename to ...
1178 (remove_breakpoints_inf): ... this. Adjust to take an inferior
1179 pointer. All callers adjusted.
1180 (bpstat_clear_actions): Use inferior_thread.
1181 (get_bpstat_thread): New.
1182 (bpstat_do_actions): Use it.
1183 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
1184 to take a thread_info pointer. All callers adjusted.
1185 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
1186 (breakpoint_re_set_thread): Use inferior_thread.
1187 * breakpoint.h (struct inferior): Forward declare.
1188 (bpstat_stop_status): Update.
1189 (remove_breakpoints_pid): Delete.
1190 (remove_breakpoints_inf): New.
1191 * bsd-uthread.c (bsd_uthread_target::wait)
1192 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
1193 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
1194 (maint_btrace_packet_history_cmd)
1195 (maint_btrace_clear_packet_history_cmd): Adjust.
1196 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
1198 * cli/cli-interp.c: Include "inferior.h".
1199 * common/refcounted-object.h (struct
1200 refcounted_object_ref_policy): New.
1201 * compile/compile-object-load.c: Include gdbthread.h.
1202 (store_regs): Use inferior_thread.
1203 * corelow.c (core_target::close): Use current_inferior.
1204 (core_target_open): Adjust to use first_thread_of_inferior and use
1205 the current inferior.
1206 * ctf.c (ctf_target::close): Adjust to use current_inferior.
1207 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
1208 <thread>: ... this new field. All references adjusted.
1209 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
1210 Take a thread_info pointer instead of a ptid_t.
1211 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
1212 (dummy_frame_discard, register_dummy_frame_dtor): Take a
1213 thread_info pointer instead of a ptid_t.
1214 * elfread.c: Include "inferior.h".
1215 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
1216 Use inferior_thread.
1217 * eval.c (evaluate_subexp): Likewise.
1218 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
1220 * gdb_proc_service.h (struct thread_info): Forward declare.
1221 (struct ps_prochandle) <ptid>: Delete, replaced by ...
1222 <thread>: ... this new field. All references adjusted.
1223 * gdbarch.h, gdbarch.c: Regenerate.
1224 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
1225 'thread' parameter. All implementations and callers adjusted.
1226 * gdbthread.h (thread_info) <set_running>: New method.
1227 (delete_thread, delete_thread_silent): Take a thread_info pointer
1229 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
1230 (first_thread_of_process): Delete, replaced by ...
1231 (first_thread_of_inferior): ... this new function. All callers
1233 (any_live_thread_of_process): Delete, replaced by ...
1234 (any_live_thread_of_inferior): ... this new function. All callers
1236 (switch_to_thread, switch_to_no_thread): Declare.
1237 (is_executing): Delete.
1238 (enable_thread_stack_temporaries): Update comment.
1239 <enable_thread_stack_temporaries>: Take a thread_info pointer
1240 instead of a ptid_t. Incref the thread.
1241 <~enable_thread_stack_temporaries>: Decref the thread.
1244 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1245 (get_last_thread_stack_temporary)
1246 (value_in_thread_stack_temporaries, can_access_registers_thread):
1247 Take a thread_info pointer instead of a ptid_t. All callers
1249 * infcall.c (get_call_return_value): Use inferior_thread.
1250 (run_inferior_call): Work with thread pointers instead of ptid_t.
1251 (call_function_by_hand_dummy): Work with thread pointers instead
1252 of ptid_t. Use thread_info_ref.
1253 * infcmd.c (proceed_thread_callback): Access thread's state
1255 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
1256 access thread's state directly.
1257 (continue_command): Use inferior_thread.
1258 (info_program_command): Use find_thread_ptid and access thread
1260 (proceed_after_attach_callback): Use thread state directly.
1261 (notice_new_inferior): Take a thread_info pointer instead of a
1262 ptid_t. All callers adjusted.
1263 (exit_inferior): Take an inferior pointer instead of a pid. All
1265 (exit_inferior_silent): New.
1266 (detach_inferior): Delete.
1267 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
1268 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
1269 (detach_inferior_command, kill_inferior_command): Use
1270 find_inferior_id instead of valid_gdb_inferior_id and
1271 gdb_inferior_id_to_pid.
1272 (inferior_command): Use inferior and thread pointers.
1273 * inferior.h (struct thread_info): Forward declare.
1274 (notice_new_inferior): Take a thread_info pointer instead of a
1275 ptid_t. All callers adjusted.
1276 (detach_inferior): Delete declaration.
1277 (exit_inferior, exit_inferior_silent): Take an inferior pointer
1278 instead of a pid. All callers adjusted.
1279 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
1280 (valid_gdb_inferior_id): Delete.
1281 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
1282 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
1283 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
1285 <inf>: ... this new field.
1286 <step_ptid>: Delete, replaced by ...
1287 <step_thread>: ... this new field.
1288 (get_displaced_stepping_state): Take an inferior pointer instead
1289 of a pid. All callers adjusted.
1290 (displaced_step_in_progress_any_inferior): Adjust.
1291 (displaced_step_in_progress_thread): Take a thread pointer instead
1292 of a ptid_t. All callers adjusted.
1293 (displaced_step_in_progress, add_displaced_stepping_state): Take
1294 an inferior pointer instead of a pid. All callers adjusted.
1295 (get_displaced_step_closure_by_addr): Adjust.
1296 (remove_displaced_stepping_state): Take an inferior pointer
1297 instead of a pid. All callers adjusted.
1298 (displaced_step_prepare_throw, displaced_step_prepare)
1299 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
1300 All callers adjusted.
1301 (start_step_over): Adjust.
1302 (infrun_thread_ptid_changed): Remove bit updating ptids in the
1303 displaced step queue.
1304 (do_target_resume): Adjust.
1305 (fetch_inferior_event): Use inferior_thread.
1306 (context_switch, get_inferior_stop_soon): Take an
1307 execution_control_state pointer instead of a ptid_t. All callers
1309 (switch_to_thread_cleanup): Delete.
1310 (stop_all_threads): Use scoped_restore_current_thread.
1311 * inline-frame.c: Include "gdbthread.h".
1312 (inline_state) <inline_state>: Take a thread pointer instead of a
1313 ptid_t. All callers adjusted.
1314 <ptid>: Delete, replaced by ...
1315 <thread>: ... this new field.
1316 (find_inline_frame_state): Take a thread pointer instead of a
1317 ptid_t. All callers adjusted.
1318 (skip_inline_frames, step_into_inline_frame)
1319 (inline_skipped_frames, inline_skipped_symbol): Take a thread
1320 pointer instead of a ptid_t. All callers adjusted.
1321 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
1322 (inline_skipped_frames, inline_skipped_symbol): Likewise.
1323 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
1325 * linux-nat.c (get_detach_signal): Likewise.
1326 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
1327 (thread_db_notice_clone): Adjust.
1328 (thread_db_find_new_threads_silently)
1329 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
1330 a thread pointer instead of a ptid_t. All callers adjusted.
1331 * mi/mi-cmd-var.c: Include "inferior.h".
1332 (mi_cmd_var_update_iter): Update to use thread pointers.
1333 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
1335 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
1337 (mi_output_running): ... this new function.
1338 (mi_on_resume_1): Adjust to use it.
1339 (mi_user_selected_context_changed): Adjust to use inferior_thread.
1340 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
1342 (interrupt_thread_callback): : Adjust to use thread and inferior
1344 * proc-service.c: Include "gdbthread.h".
1345 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
1346 * progspace-and-thread.c: Include "inferior.h".
1347 * progspace.c: Include "inferior.h".
1348 * python/py-exitedevent.c (create_exited_event_object): Adjust to
1349 hold a reference to an inferior_object.
1350 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
1352 * python/py-inferior.c (struct inferior_object): Give the type a
1353 tag name instead of a typedef.
1354 (python_on_normal_stop): No need to check if the current thread is
1356 (inferior_to_inferior_object): Change return type to
1357 inferior_object. All callers adjusted.
1358 (find_thread_object): Delete, bits factored out to ...
1359 (thread_to_thread_object): ... this new function.
1360 * python/py-infthread.c (create_thread_object): Use
1361 inferior_to_inferior_object.
1362 (thpy_is_stopped): Use thread pointer directly.
1363 (gdbpy_selected_thread): Use inferior_thread.
1364 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
1365 field, replaced with ...
1366 <thread>: ... this new field. All users adjusted.
1367 (btpy_insn_or_gap_new): Drop const.
1368 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
1370 * python/py-record.c: Include "gdbthread.h".
1371 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
1372 a ptid_t. All callers adjusted.
1373 (gdbpy_current_recording): Use inferior_thread.
1374 * python/py-record.h (recpy_record_object) <ptid>: Delete
1375 field, replaced with ...
1376 <thread>: ... this new field. All users adjusted.
1377 (recpy_element_object) <ptid>: Delete
1378 field, replaced with ...
1379 <thread>: ... this new field. All users adjusted.
1380 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
1381 a ptid_t. All callers adjusted.
1382 * python/py-threadevent.c: Include "gdbthread.h".
1383 (get_event_thread): Use thread_to_thread_object.
1384 * python/python-internal.h (struct inferior_object): Forward
1386 (find_thread_object, find_inferior_object): Delete declarations.
1387 (thread_to_thread_object, inferior_to_inferior_object): New
1389 * record-btrace.c: Include "inferior.h".
1390 (require_btrace_thread): Use inferior_thread.
1391 (record_btrace_frame_sniffer)
1392 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
1393 (get_thread_current_frame): Use scoped_restore_current_thread and
1395 (get_thread_current_frame): Use thread pointer directly.
1396 (record_btrace_replay_at_breakpoint): Use thread's inferior
1398 * record-full.c: Include "inferior.h".
1399 * regcache.c: Include "gdbthread.h".
1400 (get_thread_arch_regcache): Use the inferior's address space
1402 (get_thread_regcache, registers_changed_thread): New.
1403 * regcache.h (get_thread_regcache(thread_info *thread)): New
1405 (registers_changed_thread): New.
1406 (remote_target) <remote_detach_1>: Swap order of parameters.
1407 (remote_add_thread): <remote_add_thread>: Return the new thread.
1408 (get_remote_thread_info(ptid_t)): New overload.
1409 (remote_target::remote_notice_new_inferior): Use thread pointers
1411 (remote_target::process_initial_stop_replies): Use
1412 thread_info::set_running.
1413 (remote_target::remote_detach_1, remote_target::detach)
1414 (extended_remote_target::detach): Adjust.
1415 * stack.c (frame_show_address): Use inferior_thread.
1416 * target-debug.h (target_debug_print_thread_info_pp): New.
1417 * target-delegates.c: Regenerate.
1418 * target.c (default_thread_address_space): Delete.
1419 (memory_xfer_partial_1): Use current_inferior.
1420 (target_detach): Use current_inferior.
1421 (target_thread_address_space): Delete.
1422 (generic_mourn_inferior): Use current_inferior.
1423 * target.h (struct target_ops) <thread_address_space>: Delete.
1424 (target_thread_address_space): Delete.
1425 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
1427 (delete_thread_1, delete_thread, delete_thread_silent): Take a
1428 thread pointer instead of a ptid_t. Adjust all callers.
1429 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
1430 (first_thread_of_process): Delete, replaced by ...
1431 (first_thread_of_inferior): ... this new function. All callers
1433 (any_thread_of_process): Rename to ...
1434 (any_thread_of_inferior): ... this, and take an inferior pointer.
1435 (any_live_thread_of_process): Rename to ...
1436 (any_live_thread_of_inferior): ... this, and take an inferior
1438 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1439 (value_in_thread_stack_temporaries)
1440 (get_last_thread_stack_temporary): Take a thread pointer instead
1441 of a ptid_t. Adjust all callers.
1442 (thread_info::set_running): New.
1443 (validate_registers_access): Use inferior_thread.
1444 (can_access_registers_ptid): Rename to ...
1445 (can_access_registers_thread): ... this, and take a thread
1447 (print_thread_info_1): Adjust to compare thread pointers instead
1449 (switch_to_no_thread, switch_to_thread): Make extern.
1450 (scoped_restore_current_thread::~scoped_restore_current_thread):
1451 Use m_thread pointer directly.
1452 (scoped_restore_current_thread::scoped_restore_current_thread):
1453 Use inferior_thread.
1454 (thread_command): Use thread pointer directly.
1455 (thread_num_make_value_helper): Use inferior_thread.
1456 * top.c (execute_command): Use inferior_thread.
1457 * tui/tui-interp.c: Include "inferior.h".
1458 * varobj.c (varobj_create): Use inferior_thread.
1459 (value_of_root_1): Use find_thread_global_id instead of
1460 global_thread_id_to_ptid.
1462 2018-06-21 Alan Hayward <alan.hayward@arm.com>
1464 * regcache.c (readable_regcache::read_part): Avoid memcpy when
1466 (regcache::write_part): Likewise.
1467 (readable_regcache::cooked_read_part): Update comment.
1468 (readable_regcache::cooked_write_part): Likewise.
1469 * regcache.h: (readable_regcache::read_part): Likewise.
1470 (regcache::write_part): Likewise.
1472 2018-06-21 Richard Bunt <richard.bunt@arm.com>
1473 Dirk Schubert <dirk.schubert@arm.com>
1475 * aarch64-linux-nat.c (post_attach): New.
1476 (aarch64_linux_nat_target::post_attach): Override post_attach to
1477 record the number of hardware debug registers.
1479 2018-06-20 Tom Tromey <tom@tromey.com>
1481 * python/py-param.c (add_setshow_generic): Make parameters const.
1482 (parmpy_init): Update.
1484 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
1486 * regcache.h (regcache_cooked_read_ftype): Rename to...
1487 (register_read_ftype): ...this, change type to function_view.
1488 (class reg_buffer) <save>: Remove src parameter.
1489 (readonly_detached_regcache) <readonly_detached_regcache>: Make
1490 parameter non-const in first overload. Remove src parameter in
1492 * regcache.c (do_cooked_read): Remove.
1493 (readonly_detached_regcache::readonly_detached_regcache): Make
1494 parameter non-const, adjust call to other constructor.
1495 (reg_buffer::save): Remove src parameter.
1496 * frame.c (do_frame_register_read): Remove.
1497 (frame_save_as_regcache): Use lambda function.
1498 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
1499 parameter to ppu2spu_data *.
1500 (ppu2spu_sniffer): Use lambda function.
1502 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
1504 * record-full.c (record_full_target::insert_breakpoint): Remove
1505 "struct" keyword, add const.
1507 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1509 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
1510 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
1511 * configure.ac: Remove AC_PREREQ, add missing quoting.
1512 * gnulib/configure.ac: Modernize usage of
1513 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
1514 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
1515 (AUTOMAKE_VERSION): Bump to 1.15.1.
1516 * configure: Re-generate.
1517 * config.in: Re-generate.
1518 * aclocal.m4: Re-generate.
1519 * gnulib/aclocal.m4: Re-generate.
1520 * gnulib/config.in: Re-generate.
1521 * gnulib/configure: Re-generate.
1522 * gnulib/import/Makefile.in: Re-generate.
1524 2018-06-19 Pedro Alves <palves@redhat.com>
1526 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
1527 (lookup_minimal_symbol_by_pc_section): ... here with
1528 gdb_assert_not_reached added.
1530 2018-06-19 Pedro Alves <palves@redhat.com>
1532 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
1533 parameter with a block parameter. Compare location's block symbol
1534 with the frame's block instead of addresses.
1535 (skip_inline_frames): Pass the current block instead of the
1536 frame's address. Break out as soon as we determine the frame
1537 should not be skipped.
1539 2018-06-18 Tom Tromey <tom@tromey.com>
1541 * solib-aix.c (solib_aix_get_section_offsets): Return
1543 (solib_aix_solib_create_inferior_hook): Update.
1545 2018-06-18 Tom Tromey <tom@tromey.com>
1547 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
1549 2018-06-18 Tom Tromey <tom@tromey.com>
1551 * solib-frv.c (frv_relocate_main_executable): Use
1553 * solib-dsbt.c (dsbt_relocate_main_executable): Use
1556 2018-06-18 Tom Tromey <tom@tromey.com>
1558 * objfiles.h (inhibit_section_map_updates): Update.
1559 (resume_section_map_updates, resume_section_map_updates_cleanup):
1561 * solib-svr4.c (svr4_handle_solib_event): Update.
1562 * objfiles.c (inhibit_section_map_updates): Return
1563 scoped_restore_tmpl<int>.
1564 (resume_section_map_updates, resume_section_map_updates_cleanup):
1567 2018-06-18 Tom Tromey <tom@tromey.com>
1569 * valprint.h (read_string): Update.
1570 * valprint.c (read_string): Change type of "buffer".
1571 (val_print_string): Update.
1572 * python/py-value.c (valpy_string): Update.
1573 * language.h (struct language_defn) <la_get_string>: Change
1575 (default_get_string, c_get_string): Update.
1576 * language.c (default_get_string): Change type of "buffer".
1577 * guile/scm-value.c (gdbscm_value_to_string): Update.
1578 * c-lang.c (c_get_string): Change type of "buffer".
1580 2018-06-18 Tom Tromey <tom@tromey.com>
1582 * ser-mingw.c (struct pipe_state_destroyer): New.
1583 (pipe_state_up): New typedef.
1584 (cleanup_pipe_state): Remove.
1585 (pipe_windows_open): Use pipe_state_up. Don't release argv.
1587 2018-06-18 Tom Tromey <tom@tromey.com>
1589 * rust-lang.h (rust_yyerror): Don't declare.
1590 * rust-lang.c (rust_language_defn): Update.
1591 * rust-exp.y (yyerror): Now static.
1592 * parse.c (parse_exp_in_context_1): Update.
1593 * p-lang.h (p_yyerror): Don't declare.
1594 * p-lang.c (p_language_defn): Update.
1595 * p-exp.y (yyerror): Now static.
1596 * opencl-lang.c (opencl_language_defn): Update.
1597 * objc-lang.c (objc_language_defn): Update.
1598 * m2-lang.h (m2_yyerror): Don't declare.
1599 * m2-lang.c (m2_language_defn): Update.
1600 * m2-exp.y (yyerror): Now static.
1601 * language.h (struct language_defn) <la_error>: Remove.
1602 * language.c (unk_lang_error): Remove.
1603 (unknown_language_defn, auto_language_defn): Remove.
1604 * go-lang.h (go_yyerror): Don't declare.
1605 * go-lang.c (go_language_defn): Update.
1606 * go-exp.y (yyerror): Now static.
1607 * f-lang.h (f_yyerror): Don't declare.
1608 * f-lang.c (f_language_defn): Update.
1609 * f-exp.y (yyerror): Now static.
1610 * d-lang.h (d_yyerror): Don't declare.
1611 * d-lang.c (d_language_defn): Update.
1612 * d-exp.y (yyerror): Now static.
1613 * c-lang.h (c_yyerror): Don't declare.
1614 * c-lang.c (c_language_defn, cplus_language_defn)
1615 (asm_language_defn, minimal_language_defn): Update.
1616 * c-exp.y (yyerror): Now static.
1617 * ada-lang.h (ada_yyerror): Don't declare.
1618 * ada-lang.c (ada_language_defn): Update.
1619 * ada-exp.y (yyerror): Now static.
1621 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1623 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
1624 (store_sveregs_to_thread): Likewise.
1625 (aarch64_linux_fetch_inferior_registers): Check for SVE.
1626 (aarch64_linux_store_inferior_registers): Likewise.
1627 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
1629 (aarch64_sve_regs_copy_to_regcache): Likewise.
1630 (aarch64_sve_regs_copy_from_regcache): Likewise.
1631 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
1633 (aarch64_sve_regs_copy_to_regcache): Likewise.
1634 (aarch64_sve_regs_copy_from_regcache): Likewise.
1635 (sve_context): Structure from Linux headers.
1636 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
1637 (SVE_SIG_ZREG_SIZE): Likewise.
1638 (SVE_SIG_PREG_SIZE): Likewise.
1639 (SVE_SIG_FFR_SIZE): Likewise.
1640 (SVE_SIG_REGS_OFFSET): Likewise.
1641 (SVE_SIG_ZREGS_OFFSET): Likewise.
1642 (SVE_SIG_ZREG_OFFSET): Likewise.
1643 (SVE_SIG_ZREGS_SIZE): Likewise.
1644 (SVE_SIG_PREGS_OFFSET): Likewise.
1645 (SVE_SIG_PREG_OFFSET): Likewise.
1646 (SVE_SIG_PREGS_SIZE): Likewise.
1647 (SVE_SIG_FFR_OFFSET): Likewise.
1648 (SVE_SIG_REGS_SIZE): Likewise.
1649 (SVE_SIG_CONTEXT_SIZE): Likewise.
1650 (SVE_PT_REGS_MASK): Likewise.
1651 (SVE_PT_REGS_FPSIMD): Likewise.
1652 (SVE_PT_REGS_SVE): Likewise.
1653 (SVE_PT_VL_INHERIT): Likewise.
1654 (SVE_PT_VL_ONEXEC): Likewise.
1655 (SVE_PT_REGS_OFFSET): Likewise.
1656 (SVE_PT_FPSIMD_OFFSET): Likewise.
1657 (SVE_PT_FPSIMD_SIZE): Likewise.
1658 (SVE_PT_SVE_ZREG_SIZE): Likewise.
1659 (SVE_PT_SVE_PREG_SIZE): Likewise.
1660 (SVE_PT_SVE_FFR_SIZE): Likewise.
1661 (SVE_PT_SVE_FPSR_SIZE): Likewise.
1662 (SVE_PT_SVE_FPCR_SIZE): Likewise.
1663 (__SVE_SIG_TO_PT): Likewise.
1664 (SVE_PT_SVE_OFFSET): Likewise.
1665 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
1666 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
1667 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
1668 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
1669 (SVE_PT_SVE_PREG_OFFSET): Likewise.
1670 (SVE_PT_SVE_PREGS_SIZE): Likewise.
1671 (SVE_PT_SVE_FFR_OFFSET): Likewise.
1672 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
1673 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
1674 (SVE_PT_SVE_SIZE): Likewise.
1675 (SVE_PT_SIZE): Likewise.
1676 (HAS_SVE_STATE): New define.
1678 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1680 * nat/aarch64-sve-linux-sigcontext.h: New file.
1681 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
1683 (SVE_VQ_MIN): Likewise.
1684 (SVE_VQ_MAX): Likewise.
1685 (SVE_VL_MIN): Likewise.
1686 (SVE_VL_MAX): Likewise.
1687 (SVE_NUM_ZREGS): Likewise.
1688 (SVE_NUM_PREGS): Likewise.
1689 (sve_vl_valid): Likewise.
1690 (struct user_sve_header): Likewise.
1692 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
1693 Richard Bunt <Richard.Bunt@arm.com>
1695 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
1696 was requested by GDB.
1698 2018-06-15 Tom de Vries <tdevries@suse.de>
1700 * MAINTAINERS (Write After Approval): Add Tom de Vries.
1702 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
1704 * gnulib/update-gnulib.sh: Print expected versions of
1707 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
1709 * arch-utils.c (default_type_align): Use type_length_units.
1710 * gdbtypes.c (type_align): Use type_length_units.
1712 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1714 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
1715 of 'define' command.
1717 2018-06-14 Tom de Vries <tdevries@suse.de>
1720 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
1721 get_no_prettyformat_print_options.
1723 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
1725 * sparc-nat.h: Include target.h.
1726 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
1727 <fetch_registers>: Remove this argument in function call.
1728 <store_registers>: Remove this argument in function call, remove
1730 <low_forget_process>: Call sparc64_forget_process instead of
1731 sparc_forget_process.
1733 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1735 * procfs.c (_initialize_procfs): Use add_inf_child_target.
1736 (procfs_target::make_corefile_notes): Adjust to new
1737 target_read_alloc return type.
1739 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1740 Stephen Roberts <stephen.roberts@arm.com>
1743 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
1744 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
1745 Move should_notify_stop local into more inner scope.
1747 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1748 Stephen Roberts <stephen.roberts@arm.com>
1751 * infrun.c (resume_1): Add call to mark_async_event_handler.
1753 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1755 * infrun.c (do_target_wait): Change old version of $pc printed.
1757 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
1759 * dwarf2read.c (read_index_from_section): Rename to...
1760 (read_gdb_index_from_section): ... this, update all callers.
1761 (dwarf2_read_index): Rename to...
1762 (dwarf2_read_gdb_index): ... this, update all callers.
1764 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
1766 * gdb/hppa-linux-nat.c
1767 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
1768 hppa_linux_nat_target::fetch_registers.
1770 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1772 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
1773 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
1774 (AARCH64_DWARF_SVE_FFR): Likewise.
1775 (AARCH64_DWARF_SVE_P0): Likewise.
1776 (AARCH64_DWARF_SVE_Z0): Likewise.
1778 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1780 * common/common-regcache.h (raw_compare): New function.
1781 * regcache.c (regcache::raw_compare): Likewise.
1782 * regcache.h (regcache::raw_compare): New declaration.
1784 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1786 * common/common-regcache.h (reg_buffer_common): New structure.
1787 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
1788 (reg_buffer::raw_supply): Likewise.
1789 (reg_buffer::raw_supply_integer): Likewise.
1790 (reg_buffer::raw_supply_zeroed): Likewise.
1791 (reg_buffer::raw_collect): Likewise.
1792 (reg_buffer::raw_collect_integer): Likewise.
1793 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
1794 (reg_buffer::raw_supply): Likewise.
1795 (reg_buffer::raw_supply_integer): Likewise.
1796 (reg_buffer::raw_supply_zeroed): Likewise.
1797 (reg_buffer::raw_collect): Likewise.
1798 (reg_buffer::raw_collect_integer): Likewise.
1800 2018-06-10 Tom Tromey <tom@tromey.com>
1802 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
1803 (class remote_state) <stop_reply_queue>: Now std::vector.
1804 (remote_state::~remote_state)
1805 (remote_target::stop_reply_queue_length): Update.
1806 (struct queue_iter_param, remove_child_of_pending_fork)
1807 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
1808 (check_pending_event_prevents_wildcard_vcont_callback)
1809 (remove_stop_reply_for_inferior)
1810 (remove_stop_reply_of_remote_state)
1811 (remote_notif_remove_once_on_match)
1812 (stop_reply_match_ptid_and_ws)
1813 (remote_kill_child_of_pending_fork): Remove.
1814 (remote_target::remove_new_fork_children)
1815 (remote_target::check_pending_events_prevent_wildcard_vcont)
1816 (remote_target::discard_pending_stop_replies)
1817 (remote_target::discard_pending_stop_replies_in_queue)
1818 (remote_target::remote_notif_remove_queued_reply)
1819 (remote_target::queued_stop_reply)
1820 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
1821 (remote_target::wait, remote_target::kill_new_fork_children)
1822 (remote_target::async): Update.
1824 2018-06-10 Tom Tromey <tom@tromey.com>
1826 * record-full.c (record_full_arch_list_cleanups): Remove.
1827 (record_full_message): Use try/catch.
1828 (record_full_wait_cleanups): Remove.
1829 (record_full_wait_1): Use try/catch.
1830 (record_full_restore): Likewise.
1832 2018-06-10 Tom Tromey <tom@tromey.com>
1834 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
1835 declare VEC. Add constructor.
1836 <in_target_beneath>: Now bool.
1837 (record_full_breakpoints): Now a std::vector, static.
1838 (record_full_sync_record_breakpoints)
1839 (record_full_init_record_breakpoints)
1840 (record_full_target::insert_breakpoint)
1841 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
1843 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
1845 * dwarf2read.c (process_cu_includes): Remove struct keyword.
1846 * serial.c (serial_interface_lookup): Remove struct keyword.
1848 2018-06-10 Tom Tromey <tom@tromey.com>
1850 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
1852 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
1854 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
1856 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
1857 "beneath" as a method.
1858 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
1859 Use "beneath" as a method.
1861 2018-06-10 Tom Tromey <tom@tromey.com>
1863 * tracefile.c (struct trace_file_writer_deleter): New.
1864 <operator()>: Rename from trace_file_writer_xfree.
1865 (trace_file_writer_up): New typedef.
1866 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
1868 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
1870 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
1871 <m_registers, m_register_status>: Change type to
1873 * regcache.c (reg_buffer::reg_buffer): Use new instead of
1876 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
1878 * common/common-regcache.h (enum register_status): Add
1879 underlying type "signed char".
1880 * regcache.h (reg_buffer) <m_register_status>: Change type to
1882 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
1883 register_status instead of signed char.
1884 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
1885 (reg_buffer::get_register_status): Remove cast.
1886 (readable_regcache::raw_read): Remove cast.
1887 (readable_regcache::cooked_read): Remove cast.
1889 2018-06-09 Tom Tromey <tom@tromey.com>
1891 * source.c (reverse_search_command, forward_search_command): Use
1894 2018-06-09 Tom Tromey <tom@tromey.com>
1896 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
1897 (serial_ops_list): Now static, std::vector.
1898 (serial_interface_lookup, serial_add_interface): Update.
1900 2018-06-09 Tom Tromey <tom@tromey.com>
1902 * dwarf2read.c (process_cu_includes): Update.
1903 (process_full_comp_unit): Update.
1904 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
1907 2018-06-08 Paul Koning <paul_koning@dell.com>
1911 * python/python.c (do_start_initialization):
1912 Avoid call to internal Python API.
1913 (init__gdb_module): New function.
1915 2018-06-08 Gary Benson <gbenson@redhat.com>
1917 * linux-thread-db.c (valprint.h): New include.
1918 (struct check_thread_db_info): New structure.
1919 (check_thread_db_on_load, tdb_testinfo): New static globals.
1920 (check_thread_db, check_thread_db_callback): New functions.
1921 (try_thread_db_load_1): Run integrity checks if requested.
1922 (maintenance_check_libthread_db): New function.
1923 (_initialize_thread_db): Register "maint check libthread-db"
1924 and "maint set/show check-libthread-db".
1925 * NEWS: Mention the above new commands.
1927 2018-06-08 Tom Tromey <tom@tromey.com>
1929 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
1932 2018-06-08 Tom Tromey <tom@tromey.com>
1934 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
1936 2018-06-08 Tom Tromey <tom@tromey.com>
1938 * common/btrace-common.h (struct btrace_data): Add constructor,
1939 destructor, move assignment operator.
1940 <empty, clear, fini>: New methods.
1941 <format>: Initialize.
1942 (btrace_data_init, btrace_data_fini, btrace_data_clear)
1943 (btrace_data_empty): Don't declare.
1944 * common/btrace-common.c (btrace_data_init): Remove.
1945 (btrace_data::fini): Rename from btrace_data_fini.
1946 (btrace_data::empty): Rename from btrace_data_empty.
1947 (btrace_data::clear): Rename from btrace_data_clear. Return
1949 * btrace.h (make_cleanup_btrace_data): Don't declare.
1950 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
1951 (parse_xml_btrace): Update.
1952 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
1953 (maint_btrace_clear_packet_history_cmd): Update.
1955 2018-06-07 Pedro Alves <palves@redhat.com>
1957 * target.h (target_ops) <beneath>: Now a method. All references
1959 (class target_stack): New.
1960 * target.c (g_target_stack): New.
1961 (g_current_top_target): Delete.
1962 (current_top_target): Get the top target out of g_target_stack.
1963 (target_stack::push, target_stack::unpush): New.
1964 (push_target, unpush_target): Reimplement.
1965 (target_is_pushed): Reimplement in terms of g_target_stack.
1966 (target_ops::beneath, target_stack::find_beneath): New.
1968 2018-06-07 Pedro Alves <palves@redhat.com>
1970 * target.h (find_target_beneath): Delete declaration.
1971 * target.c (find_target_beneath): Delete definition.
1972 * aix-thread.c: All callers of find_target_beneath adjusted to
1973 call target_ops::beneath instead.
1974 * bsd-uthread.c: Likewise.
1975 * linux-thread-db.c: Likewise.
1976 * ravenscar-thread.c: Likewise.
1977 * sol-thread.c: Likewise.
1978 * spu-multiarch.c: Likewise.
1980 2018-06-07 Pedro Alves <palves@redhat.com>
1982 * target.h (target_ops) <beneath>: Now a method. All references
1984 (target_ops) <m_beneath>: New.
1985 * target.c (target_ops::beneath): New.
1986 * corelow.c: Adjust all references to target_ops::beneath.
1987 * linux-thread-db.c: Likewise.
1988 * make-target-delegates: Likewise.
1989 * record-btrace.c: Likewise.
1990 * record-full.c: Likewise.
1991 * remote.c: Likewise.
1992 * target.c: Likewise.
1993 * target-delegates.c: Regenerate.
1995 2018-06-07 Pedro Alves <palves@redhat.com>
1997 * target.h (target_stack): Delete.
1998 (current_top_target): Declare function.
1999 * target.c (target_stack): Delete.
2000 (g_current_top_target): New.
2001 (current_top_target): New function.
2002 * auxv.c: Use current_top_target instead of target_stack
2004 * avr-tdep.c: Likewise.
2005 * breakpoint.c: Likewise.
2006 * corefile.c: Likewise.
2007 * elfread.c: Likewise.
2009 * exceptions.c: Likewise.
2010 * frame.c: Likewise.
2011 * gdbarch-selftests.c: Likewise.
2012 * gnu-v3-abi.c: Likewise.
2013 * ia64-tdep.c: Likewise.
2014 * ia64-vms-tdep.c: Likewise.
2015 * infcall.c: Likewise.
2016 * infcmd.c: Likewise.
2017 * infrun.c: Likewise.
2018 * linespec.c: Likewise.
2019 * linux-tdep.c: Likewise.
2020 * minsyms.c: Likewise.
2021 * ppc-linux-nat.c: Likewise.
2022 * ppc-linux-tdep.c: Likewise.
2023 * procfs.c: Likewise.
2024 * regcache.c: Likewise.
2025 * remote.c: Likewise.
2026 * rs6000-tdep.c: Likewise.
2027 * s390-linux-nat.c: Likewise.
2028 * s390-tdep.c: Likewise.
2029 * solib-aix.c: Likewise.
2030 * solib-darwin.c: Likewise.
2031 * solib-dsbt.c: Likewise.
2032 * solib-spu.c: Likewise.
2033 * solib-svr4.c: Likewise.
2034 * solib-target.c: Likewise.
2035 * sparc-tdep.c: Likewise.
2036 * sparc64-tdep.c: Likewise.
2037 * spu-tdep.c: Likewise.
2038 * symfile.c: Likewise.
2039 * symtab.c: Likewise.
2040 * target-descriptions.c: Likewise.
2041 * target-memory.c: Likewise.
2042 * target.c: Likewise.
2043 * target.h: Likewise.
2044 * tracefile-tfile.c: Likewise.
2045 * tracepoint.c: Likewise.
2046 * valops.c: Likewise.
2047 * valprint.c: Likewise.
2048 * value.c: Likewise.
2049 * windows-tdep.c: Likewise.
2050 * mi/mi-main.c: Likewise.
2052 2018-06-07 Tom Tromey <tom@tromey.com>
2054 * valprint.h (build_address_symbolic): Declare.
2055 * printcmd.c (print_address_symbolic): Update.
2056 (build_address_symbolic): Change "name" and "filename" to
2058 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2060 * defs.h (build_address_symbolic): Remove declaration.
2062 2018-06-07 Alan Hayward <alan.hayward@arm.com>
2064 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
2065 (aarch64_vnv_type): Add function.
2066 (aarch64_pseudo_register_name): Add V regs for SVE.
2067 (aarch64_pseudo_register_type): Likewise.
2068 (aarch64_pseudo_register_reggroup_p): Likewise.
2069 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
2070 (aarch64_pseudo_read_value): Add V regs for SVE.
2071 (aarch64_pseudo_write_2): Use V0 offset for SVE
2072 (aarch64_pseudo_write): Add V regs for SVE.
2073 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
2075 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
2077 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
2078 (sve_vl_from_vq): Likewise.
2080 2018-06-05 Tom Tromey <tom@tromey.com>
2082 * cli/cli-cmds.c (show_version): Update.
2083 * top.c (print_gdb_version): Add "interactive" parameter.
2085 * main.c (captured_main_1): Update.
2086 * top.h (print_gdb_version): Add "interactive" parameter and a
2089 2018-06-05 David Malcolm <dmalcolm@redhat.com>
2091 * common/enum-flags.h: Add trailing semicolon to example in
2094 2018-06-05 Tom Tromey <tom@tromey.com>
2097 * NEWS: Add entry about pager.
2098 * utils.c (pagination_disabled_for_command): New global.
2099 (prompt_for_continue): Allow "c" response to prompt.
2100 (reinitialize_more_filter): Clear
2101 pagination_disabled_for_command.
2102 (fputs_maybe_filtered): Check pagination_disabled_for_command.
2104 2018-06-04 Tom Tromey <tom@tromey.com>
2106 * ada-lang.h (ada_lookup_symbol_list): Update.
2107 * ada-lang.c (resolve_subexp): Update.
2108 (symbols_are_identical_enums): Change type of syms. Remove nsyms
2110 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
2111 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
2112 results parameter to std::vector.
2113 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
2115 * ada-exp.y (block_lookup): Update.
2116 (select_possible_type_sym): Change type of syms. Remove nsyms
2118 (write_var_or_type, write_name_assoc): Update.
2120 2018-06-04 Joel Brobecker <brobecker@adacore.com>
2122 * windows-nat.c (windows_nat_target::xfer_partial): Return
2123 TARGET_XFER_E_IO if we need to delegate to the target beneath
2124 but BENEATH is NULL.
2126 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
2128 * Makefile.in (config.status): Add configure.nat as a
2131 2018-06-04 Tom Tromey <tom@tromey.com>
2133 * cp-name-parser.y (cpname_state): Add method declarations.
2134 (HANDLE_QUAL): Update.
2135 (cpname_state::d_grab, cpname_state::fill_comp)
2136 (cpname_state::make_operator, cpname_state::make_dtor)
2137 (cpname_state::make_builtin_type, cpname_state::make_name)
2138 (cpname_state::d_qualify, cpname_state::d_int_type)
2139 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
2140 (%union): Move earlier.
2142 2018-06-04 Alan Hayward <alan.hayward@arm.com>
2144 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
2146 2018-06-04 Alan Hayward <alan.hayward@arm.com>
2148 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
2149 (aarch64_pseudo_write_1): Likewise.
2150 (aarch64_pseudo_read_value): Use helper.
2151 (aarch64_pseudo_write): Likewise.
2153 2018-06-04 Pedro Alves <palves@redhat.com>
2155 * darwin-nat.c (darwin_ops): Delete.
2156 (darwin_attach_pid): Use get_native_target.
2158 2018-06-04 Alan Hayward <alan.hayward@arm.com>
2160 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
2161 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
2163 2018-06-04 Alan Hayward <alan.hayward@arm.com>
2165 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
2166 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
2167 (aarch64_gdbarch_init): Check for SVE.
2168 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
2170 2018-06-04 Alan Hayward <alan.hayward@arm.com>
2172 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
2173 * aarch64-tdep.h (aarch64_read_description): Likewise.
2174 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2175 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2176 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
2177 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
2178 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
2180 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
2182 * value.c (value_fetch_lazy_bitfield): New.
2183 (value_fetch_lazy_memory): New.
2184 (value_fetch_lazy_register): New.
2185 (value_fetch_lazy): Factor out to smaller functions.
2187 2018-06-01 Tom Tromey <tom@tromey.com>
2189 * cp-name-parser.y (backslashable, represented): Now const.
2191 2018-06-01 Tom Tromey <tom@tromey.com>
2193 * cp-name-parser.y: Include parser-defs.h.
2194 (parser_fprintf): Remove declaration.
2196 2018-06-01 Tom Tromey <tom@tromey.com>
2198 * cp-name-parser.y: Use %pure-parser, %lex-param, and
2200 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
2201 (global_result): Remove globals.
2202 (struct cpname_state): New.
2203 (yyparse): Don't declare.
2204 (yylex, yyerror): Move declarations after %union.
2205 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
2206 (make_name): Add state parameter.
2208 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
2210 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
2212 (yylex): Add lvalp, state parameters.
2213 (yyerror): Add state parameter.
2214 (cp_demangled_name_to_comp): Update.
2216 2018-06-01 Tom Tromey <tom@tromey.com>
2218 * cp-name-parser.y (parser_fprintf): Declare.
2219 (GDB_YY_REMAP_PREFIX): Define.
2220 Include yy-remap.h. Don't redefine yy* identifiers.
2222 2018-06-01 Tom Tromey <tom@tromey.com>
2224 * python/py-type.c (typy_legacy_template_argument): Update.
2225 * cp-support.h (cp_demangled_name_to_comp): Update.
2226 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
2227 parameter to be a "std::string *".
2230 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
2232 * ada-lex.l: Include "diagnostics.h" instead of
2233 "common/diagnostics.h".
2234 * unittests/environ-selftests.c: Likewise.
2235 * common/diagnostics.h: Moved to ../include.
2237 2018-06-01 Joel Brobecker <brobecker@adacore.com>
2239 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
2240 to language_mode_manual while calling breakpoint_re_set_one.
2242 2018-06-01 Tom Tromey <tom@tromey.com>
2244 * valops.c (value_cast_structs, destructor_name_p): Update.
2245 * symtab.c (gdb_mangle_name): Update.
2246 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
2248 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
2249 (pascal_object_print_value_fields, pascal_object_print_value):
2251 * p-typeprint.c (pascal_type_print_derivation_info): Update.
2252 * linespec.c (find_methods): Update.
2253 * gdbtypes.h (type_name_no_tag): Remove.
2254 (type_name_or_error): Rename from type_name_no_tag_or_error.
2255 * gdbtypes.c (type_name_no_tag): Remove.
2256 (type_name_or_error): Rename from type_name_no_tag_or_error.
2257 (lookup_struct_elt_type, check_typedef): Update.
2258 * expprint.c (print_subexp_standard): Update.
2259 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
2260 * d-namespace.c (d_lookup_nested_symbol): Update.
2261 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
2262 (cp_print_class_member): Update.
2263 * cp-namespace.c (cp_lookup_nested_symbol): Update.
2264 * completer.c (add_struct_fields): Update.
2265 * c-typeprint.c (cp_type_print_derivation_info)
2266 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
2268 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
2269 (ada_prefer_type, ada_is_exception_sym): Update.
2271 2018-06-01 Tom Tromey <tom@tromey.com>
2273 * valops.c (enum_constant_from_type, value_namespace_elt)
2274 (value_maybe_namespace_elt): Update.
2275 * valarith.c (find_size_for_pointer_math): Update.
2276 * target-descriptions.c (make_gdb_type): Update.
2277 * symmisc.c (print_symbol): Update.
2278 * stabsread.c (define_symbol, read_type)
2279 (complain_about_struct_wipeout, add_undefined_type)
2280 (cleanup_undefined_types_1): Update.
2281 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
2282 (rust_range_type_p, val_print_struct, rust_print_struct_def)
2283 (rust_internal_print_type, rust_composite_type)
2284 (rust_evaluate_funcall, rust_evaluate_subexp)
2285 (rust_inclusive_range_type_p): Update.
2286 * python/py-type.c (typy_get_tag): Update.
2287 * p-typeprint.c (pascal_type_print_base): Update.
2288 * mdebugread.c (parse_symbol, parse_type): Update.
2289 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
2291 * guile/scm-type.c (gdbscm_type_tag): Update.
2292 * go-lang.c (sixg_string_p): Update.
2293 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
2295 * gdbtypes.h (struct main_type) <tag_name>: Remove.
2296 (TYPE_TAG_NAME): Remove.
2297 * gdbtypes.c (type_name_no_tag): Simplify.
2298 (check_typedef, check_types_equal, recursive_dump_type)
2299 (copy_type_recursive, arch_composite_type): Update.
2300 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
2301 in summary mode when needed.
2302 * eval.c (evaluate_funcall): Update.
2303 * dwarf2read.c (fixup_go_packaging, read_structure_type)
2304 (process_structure_scope, read_enumeration_type)
2305 (read_namespace_type, read_module_type, determine_prefix): Update.
2306 * cp-support.c (inspect_type): Update.
2307 * coffread.c (process_coff_symbol, decode_base_type): Update.
2308 * c-varobj.c (c_is_path_expr_parent): Update.
2309 * c-typeprint.c (c_type_print_base_struct_union): Update.
2310 (c_type_print_base_1): Update. Print struct/class/union/enum in
2311 summary when using C language.
2312 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
2313 (gen_maybe_namespace_elt): Update.
2314 * ada-lang.c (ada_type_name): Simplify.
2315 (empty_record, ada_template_to_fixed_record_type_1)
2316 (template_to_static_fixed_type)
2317 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
2319 2018-06-01 Tom Tromey <tom@tromey.com>
2321 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
2323 * c-typeprint.c (c_print_type_1): Add "language" parameter.
2324 (c_print_type): Update.
2325 (c_print_type): New overload.
2326 (c_type_print_varspec_prefix, c_type_print_args)
2327 (c_type_print_varspec_suffix, c_print_type_no_offsets)
2328 (c_type_print_base_struct_union, c_type_print_base_1)
2329 (cp_type_print_method_args): Add "language" parameter.
2330 (c_type_print_base): Update.
2331 * c-lang.h (c_print_type): Add new overload.
2333 2018-06-01 Tom Tromey <tom@tromey.com>
2335 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
2336 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
2338 2018-06-01 Alan Hayward <alan.hayward@arm.com>
2340 * aarch64-tdep.c (aarch64_sve_register_names): New const
2342 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
2343 (AARCH64_SVE_Z_REGS_NUM): New define.
2344 (AARCH64_SVE_P_REGS_NUM): Likewise.
2345 (AARCH64_SVE_NUM_REGS): Likewise.
2347 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
2349 * nat/linux-ptrace.h [__alpha__]
2350 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
2353 2018-05-31 Maciej W. Rozycki <macro@mips.com>
2355 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
2356 the endianness selected.
2357 * NEWS: Document `set endian auto' mode operation update.
2359 2018-05-31 Alan Hayward <alan.hayward@arm.com>
2361 * Makefile.in: Add new header.
2362 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
2363 (sve_vl_from_vg): Likewise.
2364 (sve_vq_from_vl): Likewise.
2365 (sve_vl_from_vq): Likewise.
2366 (sve_vq_from_vg): Likewise.
2367 (sve_vg_from_vq): Likewise.
2368 * configure.nat: Add new c file.
2369 * nat/aarch64-sve-linux-ptrace.c: New file.
2370 * nat/aarch64-sve-linux-ptrace.h: New file.
2372 2018-05-31 Alan Hayward <alan.hayward@arm.com>
2374 * aarch64-linux-nat.c (aarch64_linux_read_description):
2376 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2378 * aarch64-tdep.c (tdesc_aarch64_list): Add.
2379 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
2380 (aarch64_gdbarch_init): Add parmeter zero.
2381 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
2382 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
2383 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
2385 * doc/gdb.texinfo: Describe SVE feature
2386 * features/aarch64-sve.c: New file.
2388 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
2391 * gdbarch.sh (significant_addr_bit): Default to zero when
2392 not set by target architecture.
2393 * gdbarch.c: Re-generated.
2394 * utils.c (address_significant): Update.
2396 2018-05-30 Joel Brobecker <brobecker@adacore.com>
2398 * stack.c (func_command): Remove trailing newline in call to error.
2400 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2402 * regcache.h (regcache_raw_collect): Remove, update callers to
2403 use regcache::raw_collect.
2404 * regcache.c (regcache_raw_collect): Remove.
2406 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2408 * regcache.h (regcache_raw_supply): Remove, update callers to
2409 use detached_regcache::raw_supply.
2410 * regcache.c (regcache_raw_supply): Remove.
2412 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2414 * regcache.h (regcache_cooked_write_part): Remove, update
2415 callers to use regcache::cooked_write_part.
2416 * regcache.c (regcache_cooked_write_part): Remove.
2418 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2420 * regcache.h (regcache_cooked_read_part): Remove, update callers
2421 to use readable_regcache::cooked_read_part.
2422 * regcache.c (regcache_cooked_read_part): Remove.
2424 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2426 * regcache.h (regcache_cooked_read_value): Remove, update
2427 callers to use readable_regcache::cooked_read_value.
2428 * regcache.c (regcache_cooked_read_value): Remove.
2430 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2432 * regcache.h (regcache_cooked_write): Remove, update callers to
2433 use regcache::cooked_write.
2434 * regcache.c (regcache_cooked_write): Remove.
2436 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2438 * regcache.h (regcache_invalidate): Remove, update callers to
2439 use detached_regcache::invalidate instead.
2440 * regcache.c (regcache_invalidate): Remove.
2442 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2444 * regcache.h (regcache_raw_write_part): Remove, update callers
2445 to use regcache::raw_write_part instead.
2446 * regcache.c (regcache_raw_write_part): Remove.
2448 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2450 * regcache.h (regcache_raw_read_part): Remove, update callers to
2451 use readable_regcache::raw_read_part instead.
2452 * regcache.c (regcache_raw_read_part): Remove.
2454 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2456 * regcache.h (regcache_cooked_read): Remove, update callers to
2457 use readable_regcache::cooked_read instead.
2458 * regcache.c (regcache_cooked_read): Remove.
2460 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2462 * regcache.h (regcache_raw_write): Remove, update callers to use
2463 regcache::raw_write instead.
2464 * regcache.c (regcache_raw_write): Remove.
2466 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2468 * regcache.h (regcache_raw_read): Remove, update callers to use
2469 readable_regcache::raw_read instead.
2470 * regcache.c (regcache_raw_read): Remove.
2472 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2474 * regcache.h (regcache_raw_update): Remove, update callers to
2475 use readable_regcache::raw_update instead.
2476 * regcache.c (regcache_raw_update): Remove.
2478 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2480 * regcache.h (regcache_register_status): Remove, update callers
2481 to use reg_buffer::get_register_status directly instead.
2482 * regcache.c (regcache_register_status): Remove.
2484 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2486 * regcache.h (regcache_get_ptid): Remove, update all callers to
2487 call regcache::ptid instead.
2488 * regcache.c (regcache_get_ptid): Remove.
2490 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2492 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
2494 2018-05-30 Pedro Alves <palves@redhat.com>
2496 * common/common-exceptions.h (exception_rethrow): Use
2499 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
2501 * breakpoint.c (print_solib_event, check_status_catch_solib):
2502 Remove struct keyword in range-based for loops.
2503 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
2504 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
2506 * linespec.c (find_superclass_methods, search_minsyms_for_name):
2508 * symfile.c (addr_info_make_relative): Likewise.
2509 * thread.c (value_in_thread_stack_temporaries): Likewise.
2511 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
2514 * valops.c (value_struct_elt_for_reference): Call check_typedef on
2515 aggregate type to get its real type before accessing it.
2517 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
2519 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
2520 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
2521 * coff-pe-read.c (add_pe_forwarded_sym): Replace
2522 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
2523 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
2524 * jit.c (jit_breakpoint_re_set_internal): Likewise.
2525 * printcmd.c (info_address_command): Likewise.
2527 2018-05-29 Tom Tromey <tom@tromey.com>
2529 * windows-nat.c (handle_exception): Update fall-through comment.
2531 2018-05-29 Tom Tromey <tom@tromey.com>
2533 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
2534 (struct program_space) <added_solibs>: Now a std::vector.
2535 * breakpoint.c (print_solib_event): Update.
2536 (check_status_catch_solib): Update.
2537 * progspace.c (clear_program_space_solib_cache): Update.
2538 * solib.c (update_solib_list): Update.
2540 2018-05-29 Tom Tromey <tom@tromey.com>
2542 * python/py-type.c (typy_richcompare): Update.
2543 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
2544 * gdbtypes.h (types_deeply_equal): Return bool.
2545 (types_equal): Likewise.
2546 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
2548 (check_types_equal): Change worklist to std::vector. Return
2550 (struct type_equality_entry): Add constructor.
2551 (compare_maybe_null_strings): Return bool.
2552 (check_types_worklist): Return bool. Change worklist to
2554 (types_deeply_equal): Use std::vector.
2555 (types_equal): Return bool.
2556 (compare_maybe_null_strings): Simplify.
2558 2018-05-29 Tom Tromey <tom@tromey.com>
2560 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
2562 2018-05-29 Tom Tromey <tom@tromey.com>
2564 * objc-lang.h: Don't include cp-support.h.
2565 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
2568 2018-05-27 Tom Tromey <tom@tromey.com>
2570 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
2572 2018-05-25 Tom Tromey <tom@tromey.com>
2574 * value.c (value::location): Initialize.
2576 2018-05-25 Tom Tromey <tom@tromey.com>
2578 * dbxread.c (init_bincl_list): Remove.
2579 (bincl_list): Now a std::vector.
2580 (bincls_allocated, next_bincl): Remove.
2581 (free_bincl_list, do_free_bincl_list_cleanup)
2582 (make_cleanup_free_bincl_list): Remove.
2583 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
2585 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
2586 (struct header_file_location): Add constructor.
2587 (add_bincl_to_list): Remove.
2589 2018-05-25 Tom Tromey <tom@tromey.com>
2591 * tui/tui.c (tui_enable): Update.
2592 * mi/mi-interp.c (mi_interp::init): Update.
2593 * interps.h (class interp) <name>: New method.
2594 <m_name>: Rename from name.
2595 (~scoped_restore_interp): Update.
2596 * interps.c (interp::interp): Update.
2597 (interp_add, interp_set, interp_lookup_existing)
2598 (current_interp_named_p): Update.
2600 2018-05-25 Tom Tromey <tom@tromey.com>
2602 * interps.c (interp_name): Remove.
2603 * mi/mi-interp.c (mi_interp::init): Update.
2604 * interps.h (interp_name): Remove.
2605 (~scoped_restore_interp): Update.
2606 * tui/tui.c (tui_enable): Update.
2608 2018-05-25 Tom Tromey <tom@tromey.com>
2610 * utils.c (fputs_maybe_filtered): Update.
2611 * linespec.c (decode_line_full): Update.
2612 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
2613 (mi_print_breakpoint_for_event, mi_solib_loaded)
2614 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
2615 (mi_user_selected_context_changed): Update.
2616 * mi/mi-main.c (mi_execute_command): Update.
2617 * cli/cli-script.c (execute_control_command): Update.
2618 * python/python.c (execute_gdb_command): Update.
2619 * solib.c (info_sharedlibrary_command): Update.
2620 * interps.c (interp_ui_out): Remove.
2621 * interps.h (interp_ui_out): Remove.
2623 2018-05-25 Tom Tromey <tom@tromey.com>
2625 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
2626 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
2627 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
2629 2018-05-25 Tom Tromey <tom@tromey.com>
2631 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
2632 * interps.c (interp_exec): Use scoped_restore.
2634 2018-05-25 Tom Tromey <tom@tromey.com>
2636 * remote.c (remote_target::remote_file_get): Use
2638 (remote_target::remote_file_put): Likewise.
2640 2018-05-25 Tom Tromey <tom@tromey.com>
2642 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
2644 (get_pe_section_index, add_pe_exported_sym): Update.
2645 (read_pe_exported_syms): Use gdb::def_vector.
2647 2018-05-25 Tom Tromey <tom@tromey.com>
2649 * frame.c (remove_prev_frame): Remove.
2650 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
2652 2018-05-25 Maciej W. Rozycki <macro@mips.com>
2654 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
2656 * mips-linux-nat.c (supply_fpregset): Always call
2657 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
2658 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
2659 `mips_fill_fpregset'.
2660 * mips-linux-tdep.c (mips_supply_fpregset)
2661 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
2662 (mips_fill_fpregset_wrapper): Remove functions.
2663 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
2664 (mips_linux_fpregset): Remove variable.
2665 (mips_linux_iterate_over_regset_sections): Use
2666 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
2667 (mips_linux_o32_sigframe_init): Remove comment.
2669 2018-05-25 Pedro Alves <palves@redhat.com>
2671 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
2672 (struct readahead_cache, struct packet_reg, struct
2673 remote_arch_state, class remote_state): Move higher up in the
2675 (remote_target::m_remote_state): Now an object instead of a pointer.
2676 (remote_target::get_remote_state): Adjust.
2678 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
2680 * stack.c (select_and_print_frame): Delete.
2681 (struct function_bounds): Move struct within function.
2682 (func_command): Most content moved into new function
2683 find_frame_for_function, use new function, print result, add
2685 (find_frame_for_function): New function, now returns a result.
2687 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2689 * stack.c (iterate_over_block_arg_vars): Fix comment.
2690 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
2692 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
2696 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2698 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2700 * frame.h (class scoped_restore_selected_frame): New class.
2701 * stack.c (print_frame_local_vars): Remove catching and rethrowing
2702 of any exception, use scoped_restore_selected_frame to restore the
2705 2018-05-24 Pedro Alves <palves@redhat.com>
2707 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
2710 2018-05-23 Tom Tromey <tom@tromey.com>
2712 * complaints.c (struct complaints): Remove.
2713 (symfile_complaint_book): Remove.
2714 (series): New global.
2715 (complaint_internal): Update.
2716 (clear_complaints): Update.
2718 2018-05-23 Tom Tromey <tom@tromey.com>
2720 * complaints.c (counters): New global.
2721 (struct complain): Remove.
2722 (struct complaints) <root>: Remove.
2723 (complaint_sentinel): Remove.
2724 (symfile_complaint_book): Update.
2725 (find_complaint) Remove.
2726 (complaint_internal, clear_complaints): Update.
2728 2018-05-23 Tom Tromey <tom@tromey.com>
2730 * complaints.c (struct complain) <file, line>: Remove.
2731 (find_complaint): Remove file, line parameters.
2732 (complaint_internal): Update.
2734 2018-05-23 Tom Tromey <tom@tromey.com>
2736 * complaints.c (vcomplaint): Remove.
2737 (complaint_internal) Merge in contents of vcomplaint.
2739 2018-05-23 Tom Tromey <tom@tromey.com>
2741 * complaints.c (struct complaints) <explanation>: Remove.
2742 (symfile_explanations): Remove.
2743 (symfile_complaint_book): Update.
2744 (vcomplaint): Update.
2745 (struct explanation): Remove.
2747 2018-05-23 Tom Tromey <tom@tromey.com>
2749 * complaints.c (symfile_complaints): Remove.
2750 (complaint_internal): Remove "complaints" parameter.
2751 (clear_complaints, vcomplaint): Remove "c" parameter.
2752 (get_complaints): Remove.
2753 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
2754 (dwarf2_debug_line_missing_file_complaint)
2755 (dwarf2_debug_line_missing_end_sequence_complaint)
2756 (dwarf2_complex_location_expr_complaint)
2757 (dwarf2_const_value_length_mismatch_complaint)
2758 (dwarf2_section_buffer_overflow_complaint)
2759 (dwarf2_macro_malformed_definition_complaint)
2760 (dwarf2_invalid_attrib_class_complaint)
2761 (create_addrmap_from_index, dw2_symtab_iter_next)
2762 (dw2_expand_marked_cus)
2763 (dw2_debug_names_iterator::find_vec_in_debug_names)
2764 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
2765 (create_debug_type_hash_table, init_cutu_and_read_dies)
2766 (partial_die_parent_scope, add_partial_enumeration)
2767 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
2768 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
2769 (read_import_statement, read_file_scope, create_dwo_cu_reader)
2770 (create_cus_hash_table, create_dwp_hash_table)
2771 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
2772 (dwarf2_rnglists_process, dwarf2_ranges_process)
2773 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
2774 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
2775 (handle_struct_member_die, process_structure_scope)
2776 (read_array_type, read_common_block, read_module_type)
2777 (read_tag_pointer_type, read_typedef, read_base_type)
2778 (read_subrange_type, load_partial_dies, partial_die_info::read)
2779 (partial_die_info::read, partial_die_info::read)
2780 (partial_die_info::read, read_checked_initial_length_and_offset)
2781 (dwarf2_string_attr, read_formatted_entries)
2782 (dwarf_decode_line_header)
2783 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2784 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
2785 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
2786 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2787 (get_signatured_type, get_DW_AT_signature_type)
2788 (decode_locdesc, file_file_name, consume_improper_spaces)
2789 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
2790 (dwarf_decode_macro_bytes, dwarf_decode_macros)
2791 (dwarf2_symbol_mark_computed, set_die_type)
2792 (read_attribute_value): Update.
2793 * stap-probe.c (handle_stap_probe, get_stap_base_address):
2795 * dbxread.c (unknown_symtype_complaint)
2796 (lbrac_mismatch_complaint, repeated_header_complaint)
2797 (set_namestring, function_outside_compilation_unit_complaint)
2798 (read_dbx_symtab, process_one_symbol): Update.
2799 * gdbtypes.c (stub_noname_complaint): Update.
2800 * windows-nat.c (handle_unload_dll): Update.
2801 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
2802 (decode_base_type): Update.
2803 * xcoffread.c (bf_notfound_complaint, ef_complaint)
2804 (eb_complaint, record_include_begin, record_include_end)
2805 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
2806 (process_xcoff_symbol, read_symbol)
2807 (function_outside_compilation_unit_complaint)
2808 (scan_xcoff_symtab): Update.
2809 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
2810 * buildsym.c (finish_block_internal, make_blockvector)
2811 (end_symtab_get_static_block, augment_type_symtab): Update.
2812 * dtrace-probe.c (dtrace_process_dof)
2813 (dtrace_static_probe_ops::get_probes): Update.
2814 * complaints.h (struct complaint): Don't declare.
2815 (symfile_complaints): Remove.
2816 (complaint_internal): Remove "complaints" parameter.
2817 (complaint): Likewise.
2818 (clear_complaints): Likewise.
2819 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2820 (reread_symbols): Update.
2821 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2822 (dwarf2_frame_cache, decode_frame_entry): Update.
2823 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
2824 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2825 (info_selectors_command): Update.
2826 * macrotab.c (macro_include, check_for_redefinition)
2827 (macro_undef): Update.
2828 * objfiles.c (filter_overlapping_sections): Update.
2829 * stabsread.c (invalid_cpp_abbrev_complaint)
2830 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
2831 (define_symbol, error_type, read_type, rs6000_builtin_type)
2832 (stabs_method_name_from_physname, read_member_functions)
2833 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
2834 (attach_fields_to_type, complain_about_struct_wipeout)
2835 (read_range_type, read_args, common_block_start)
2836 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
2838 * mdebugread.c (index_complaint, unknown_ext_complaint)
2839 (basic_type_complaint, bad_tag_guess_complaint)
2840 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
2841 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
2842 (parse_procedure, parse_lines)
2843 (function_outside_compilation_unit_complaint)
2844 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
2845 (bad_tag_guess_complaint, reg_value_complaint): Update.
2846 * cp-support.c (demangled_name_complaint): Update.
2847 * macroscope.c (sal_macro_scope): Update.
2848 * dwarf-index-write.c (class debug_names): Update.
2850 2018-05-23 Tom Tromey <tom@tromey.com>
2852 * complaints.c (clear_complaints): Remove "noisy" parameter.
2853 * complaints.h (clear_complaints): Update.
2854 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2855 (reread_symbols): Update.
2857 2018-05-23 Tom Tromey <tom@tromey.com>
2859 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
2861 (vcomplaint, clear_complaints): Update.
2862 (symfile_explanations): Remove some messages.
2864 2018-05-23 Tom Tromey <tom@tromey.com>
2866 * complaints.c (internal_complaint): Remove.
2867 * complaints.h (internal_complaint): Remove.
2869 2018-05-22 Maciej W. Rozycki <macro@mips.com>
2871 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
2873 2018-05-22 Pedro Alves <palves@redhat.com>
2875 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
2876 (remote_fileio_badfd, remote_fileio_return_errno)
2877 (remote_fileio_return_success, remote_fileio_func_open)
2878 (remote_fileio_func_open, remote_fileio_func_close)
2879 (remote_fileio_func_read, remote_fileio_func_write)
2880 (remote_fileio_func_lseek, remote_fileio_func_rename)
2881 (remote_fileio_func_unlink, remote_fileio_func_stat)
2882 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
2883 (remote_fileio_func_isatty, remote_fileio_func_system): Add
2884 remote_target parameter.
2885 (remote_fio_func_map) <func>: Add remote_target parameter.
2886 (do_remote_fileio_request, remote_fileio_request):
2887 * remote-fileio.h (remote_fileio_request):
2888 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
2889 remote_target parameter.
2890 (remote_notif_process, handle_notification): Adjust to pass down
2892 (remote_notif_state_allocate): Add remote_target parameter. Save
2894 * remote-notif.h (struct remote_target): Forward declare.
2895 (struct notif_client) <parse, ack, can_get_pending_events>: Add
2896 remote_target parameter.
2897 (struct remote_notif_state) <remote>: New field.
2898 (remote_notif_ack, remote_notif_parse): Add remote_target
2900 (remote_notif_state_allocate, remote_notif_state_allocate): Add
2901 remote_target parameter.
2902 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
2903 (threads_listing_context, rmt_thread_action, protocol_feature)
2904 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
2905 (packet_result, struct threads_listing_context, remote_state):
2906 Move definitions and declarations higher up.
2907 (remote_target) <~remote_target>: Declare.
2908 (remote_download_command_source, remote_file_put, remote_file_get)
2909 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
2910 (remote_hostio_pread_vFile, remote_hostio_send_command)
2911 (remote_hostio_set_filesystem, remote_hostio_open)
2912 (remote_hostio_close, remote_hostio_unlink, remote_state)
2913 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
2914 (get_memory_write_packet_size, get_memory_read_packet_size)
2915 (append_pending_thread_resumptions, remote_detach_1)
2916 (append_resumption, remote_resume_with_vcont)
2917 (add_current_inferior_and_thread, wait_ns, wait_as)
2918 (process_stop_reply, remote_notice_new_inferior)
2919 (process_initial_stop_replies, remote_add_thread)
2920 (btrace_sync_conf, remote_btrace_maybe_reopen)
2921 (remove_new_fork_children, kill_new_fork_children)
2922 (discard_pending_stop_replies, stop_reply_queue_length)
2923 (check_pending_events_prevent_wildcard_vcont)
2924 (discard_pending_stop_replies_in_queue, stop_reply)
2925 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
2926 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
2927 (remote_interrupt_as, remote_interrupt_ns)
2928 (remote_get_noisy_reply, remote_query_attached)
2929 (remote_add_inferior, remote_current_thread, get_current_thread)
2930 (set_thread, set_general_thread, set_continue_thread)
2931 (set_general_process, write_ptid)
2932 (remote_unpack_thread_info_response, remote_get_threadinfo)
2933 (parse_threadlist_response, remote_get_threadlist)
2934 (remote_threadlist_iterator, remote_get_threads_with_ql)
2935 (remote_get_threads_with_qxfer)
2936 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
2937 (get_offsets, remote_check_symbols, remote_supported_packet)
2938 (remote_query_supported, remote_packet_size)
2939 (remote_serial_quit_handler, remote_detach_pid)
2940 (remote_vcont_probe, remote_resume_with_hc)
2941 (send_interrupt_sequence, interrupt_query)
2942 (remote_notif_get_pending_events, fetch_register_using_p)
2943 (send_g_packet, process_g_packet, fetch_registers_using_g)
2944 (store_register_using_P, store_registers_using_G)
2945 (set_remote_traceframe, check_binary_download)
2946 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
2947 (remote_xfer_live_readonly_partial, remote_read_bytes)
2948 (remote_send_printf, remote_flash_write, readchar)
2949 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
2950 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
2951 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
2952 (extended_remote_disable_randomization, extended_remote_run)
2953 (send_environment_packet, extended_remote_environment_support)
2954 (extended_remote_set_inferior_cwd, remote_write_qxfer)
2955 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
2956 (packet_command): Now methods of ...
2957 (remote_target): ... this class.
2958 (m_remote_state) <remote_target>: New field.
2959 (struct remote_state) <stop_reply_queue,
2960 remote_async_inferior_event_token, wait_forever_enabled_p>: New
2962 (remote_state::remote_state): Allocate stop_reply_queue.
2963 (remote_state): Delete global.
2964 (get_remote_state_raw): Delete.
2965 (remote_target::get_remote_state): Allocate m_remote_state on
2967 (get_current_remote_target): New.
2968 (remote_ops, extended_remote_ops): Delete.
2969 (wait_forever_enabled_p, remote_async_inferior_event_token):
2970 Delete, moved to struct remote_state.
2971 (remote_target::close): Delete self. Destruction bits split to
2973 (remote_target::~remote_target): ... this.
2974 (show_memory_packet_size): Adjust to use
2975 get_current_remote_target.
2976 (struct protocol_feature) <func>: Add remote_target parameter.
2977 All callers adjusted.
2978 (curr_quit_handler_target): New.
2979 (remote_serial_quit_handler): Reimplement.
2980 (remote_target::open_1): Adjust to use get_current_remote_target.
2981 Heap-allocate remote_target/extended_remote_target instances.
2982 (vcont_builder::vcont_builder): Add remote_target parameter, and
2983 save it in m_remote. All callers adjusted.
2984 (vcont_builder::m_remote): New field.
2985 (vcont_builder::restart, vcont_builder::flush)
2986 (vcont_builder::push_action): Use it.
2987 (remote_target::commit_resume): Use it.
2988 (struct queue_iter_param) <remote>: New field.
2989 (remote_target::remove_new_fork_children): Fill in 'remote' field.
2990 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
2991 (check_pending_event_prevents_wildcard_vcont_callback)
2992 (remote_target::check_pending_events_prevent_wildcard_vcont)
2993 (remote_target::discard_pending_stop_replies)
2994 (remote_target::discard_pending_stop_replies_in_queue)
2995 (remote_target::remote_notif_remove_queued_reply): Fill in
2997 (remote_notif_get_pending_events): New.
2998 (remote_target::readchar, remote_target::remote_serial_write):
2999 Save/restore curr_quit_handler_target.
3001 (kill_new_fork_children): Fill in 'remote' field.
3002 (packet_command): Use get_current_remote_target, defer to
3003 remote_target method of same name.
3004 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
3005 parameter, and save it in m_remote. All callers adjusted.
3006 (scoped_remote_fd::release): Use m_remote.
3007 (scoped_remote_fd::m_remote): New field.
3008 (remote_file_put, remote_file_get, remote_file_delete): Use
3009 get_current_remote_target, defer to remote_target method of same
3011 (remote_btrace_reset): Add remote_state paremeter. Update all
3013 (remote_async_inferior_event_handler). Pass down 'data'.
3014 (remote_new_objfile): Use get_current_remote_target.
3015 (remote_target::vcont_r_supported): New.
3016 (set_range_stepping): Use get_current_remote_target and
3017 remote_target::vcont_r_supported.
3018 (_initialize_remote): Don't allocate 'remote_state' and
3019 'stop_reply_queue' globals.
3020 * remote.h (struct remote_target): Forward declare.
3021 (getpkt, putpkt, remote_notif_get_pending_events): Add
3022 'remote_target' parameter.
3024 2018-05-22 Pedro Alves <palves@redhat.com>
3026 * remote.c (vcont_builder): Now a class. Make all data members
3028 (vcont_builder) <vcont_builder, restart, flush, push_action>:
3030 (vcont_builder_restart): Rename to ...
3031 (vcont_builder::restart): ... this.
3032 (vcont_builder_flush): Rename to ...
3033 (vcont_builder::flush): ... this.
3034 (vcont_builder_push_action): Rename to ...
3035 (vcont_builder::push_action): ... this.
3036 (remote_target::commit_resume): Adjust.
3038 2018-05-22 Pedro Alves <palves@redhat.com>
3040 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
3041 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
3042 (get_fixed_memory_packet_size): New.
3043 (get_memory_packet_size): Use it.
3044 (set_memory_packet_size): Don't override the config size with
3045 DEFAULT_MAX_MEMORY_PACKET_SIZE.
3046 (show_memory_packet_size): Use get_fixed_memory_packet_size.
3047 Don't refer to get_memory_packet_size if not connected to a remote
3048 target. Show "(default)" if configured size is 0.
3050 2018-05-22 Pedro Alves <palves@redhat.com>
3052 * remote.c (remote_target::mourn_inferior): Move
3053 discard_pending_stop_replies call here from ...
3054 (_initialize_remote): ... here.
3056 2018-05-22 Pedro Alves <palves@redhat.com>
3058 * remote.c (compare_section_command): Remove set_general_process
3061 2018-05-22 Pedro Alves <palves@redhat.com>
3063 * remote.c (struct packet_reg, struct remote_arch_state):
3064 Move higher up in the file.
3065 (remote_state) <m_arch_states>: Store remote_arch_state values
3066 instead of remote_arch_state pointers.
3067 (remote_state::get_remote_arch_state): Adjust.
3069 2018-05-22 Pedro Alves <palves@redhat.com>
3071 * remote.c: Include <unordered_map>.
3072 (remote_state): Now a class.
3073 (remote_state) <get_remote_arch_state>: Declare method.
3074 <get_remote_arch_state>: New field.
3075 (remote_arch_state) <remote_arch_state>: Declare ctor.
3076 <regs>: Now a unique_ptr.
3077 (remote_gdbarch_data_handle): Delete.
3078 (get_remote_arch_state): Delete.
3079 (remote_state::get_remote_arch_state): New.
3080 (get_remote_state): Adjust to call remote_state's
3081 get_remote_arch_state method.
3082 (init_remote_state): Delete, bits factored out to ...
3083 (remote_arch_state::remote_arch_state): ... this new method.
3084 (get_remote_packet_size, get_memory_packet_size)
3085 (process_g_packet, remote_target::fetch_registers)
3086 (remote_target::prepare_to_store, store_registers_using_G)
3087 (remote_target::store_registers, remote_target::get_trace_status):
3088 Adjust to call remote_state's method.
3089 (_initialize_remote): Remove reference to
3090 remote_gdbarch_data_handle.
3092 2018-05-22 Pedro Alves <palves@redhat.com>
3094 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
3095 pread>: New method declarations.
3096 (remote_target::open_1): Adjust.
3097 (readahead_cache_invalidate): Rename to ...
3098 (readahead_cache::invalidate): ... this, and adjust to be a class
3100 (readahead_cache_invalidate_fd): Rename to ...
3101 (readahead_cache::invalidate_fd): ... this, and adjust to be a
3103 (remote_hostio_pwrite): Adjust.
3104 (remote_hostio_pread_from_cache): Rename to ...
3105 (readahead_cache::pread): ... this, and adjust to be a class
3107 (remote_hostio_close): Adjust.
3109 2018-05-22 Pedro Alves <palves@redhat.com>
3111 * remote.c (remote_hostio_close_cleanup): Delete.
3112 (class scoped_remote_fd): New.
3113 (remote_file_put, remote_file_get): Use it.
3115 2018-05-22 Pedro Alves <palves@redhat.com>
3117 (struct vCont_action_support): Use bool and initialize all fields.
3118 (struct readahead_cache): Initialize all fields.
3119 (remote_state): Use bool and initialize all fields.
3120 (remote_state::remote_state, remote_state::~remote_state): New.
3121 (new_remote_state): Delete.
3122 (_initialize_remote): Use new to allocate remote_state.
3124 2018-05-22 Pedro Alves <palves@redhat.com>
3128 * c-exp.y: Include "c-support.h".
3129 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
3130 of tolower. Use c_ident_is_alpha to scan names.
3131 * c-lang.c: Include "c-support.h".
3132 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
3133 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
3134 * c-support.h: New file, with bits factored out from ...
3135 * cp-name-parser.y: ... this file.
3136 Include "c-support.h".
3137 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
3138 c-support.h and renamed.
3139 (symbol_end, yylex): Adjust.
3141 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3143 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
3144 parameter type to CORE_ADDR.
3145 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
3146 parameter type in declaration to CORE_ADDR.
3147 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
3148 target_auxv_search to get AT_HWCAP and use the result to get the
3150 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
3151 to CORE_ADDR. Remove the cast of the return value to unsigned
3152 long. Fix error predicate of target_auxv_search.
3153 (ppc_linux_nat_target::read_description): Change the type of the
3154 hwcap variable to CORE_ADDR.
3156 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3158 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
3159 if the size of fpscr is larger than 32 bits.
3161 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3163 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
3164 (ppc32_linux_vsxregmap): New global.
3165 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
3166 regcache_supply_regset, and regcache_collect_regset.
3167 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
3168 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
3169 (fetch_vsx_register, store_vsx_register): Remove.
3170 (fetch_vsx_registers): Add regno parameter. Get regset using
3171 ppc_linux_vsxregset. Use regset to supply registers.
3172 (store_vsx_registers): Add regno parameter. Get regset using
3173 ppc_linux_vsxregset. Use regset to collect registers.
3174 (fetch_register): Call fetch_vsx_registers instead of
3176 (store_register): Call store_vsx_registers instead of
3178 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
3179 new regno parameter.
3180 (store_ppc_registers): Call store_vsx_registers with -1 for the
3181 new regno parameter.
3182 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
3183 (ppc_collect_vsxregset): Remove.
3185 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3187 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
3189 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
3190 for vector register offset fields.
3191 (ppc64_fbsd_reg_offsets): Likewise.
3192 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
3193 to vector register offset fields.
3194 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
3195 to vector register offset fields.
3196 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
3197 vector register offset fields.
3198 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
3199 initializers for vector register offset fields.
3200 (rs6000_aix64_reg_offsets): Likewise.
3201 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
3202 (ppc_supply_vrregset): Remove.
3203 (ppc_collect_vrregset): Remove.
3204 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
3205 (ppc_linux_vrregset) : New function.
3206 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
3207 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
3208 (ppc32_linux_vrregset): Remove.
3209 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
3210 and use result instead of ppc32_linux_vrregset.
3211 (ppc32_linux_reg_offsets): Remove initializers for vector register
3213 (ppc64_linux_reg_offsets): Likewise.
3214 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
3215 * ppc-linux-nat.c: Include regset.h.
3216 (gdb_vrregset_t): Adjust comment to account for little-endian
3218 (supply_vrregset, fill_vrregset): Remove.
3219 (fetch_altivec_register, store_altivec_register): Remove.
3220 (fetch_altivec_registers): Add regno parameter. Get regset using
3221 ppc_linux_vrregset. Use regset to supply registers.
3222 (store_altivec_registers): Add regno parameter. Get regset using
3223 ppc_linux_vrregset. Use regset to collect registers.
3224 (fetch_register): Call fetch_altivec_registers instead of
3225 fetch_altivec_register.
3226 (store_register): Call store_altivec_registers instead of
3227 store_altivec_register.
3228 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
3229 the new regno parameter.
3230 (store_ppc_registers): Call store_altivec_registers with -1 for
3231 the new regno parameter.
3233 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3235 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
3236 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
3237 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3238 (gdb_vrregset_t): Change array type size to
3239 PPC_LINUX_SIZEOF_VRREGSET.
3240 (gdb_vsxregset_t): Change array type size to
3241 PPC_LINUX_SIZEOF_VSXREGSET.
3242 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
3243 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
3244 PPC_LINUX_SIZEOF_VSXREGSET.
3246 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3248 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
3249 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
3251 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
3252 ppc_linux_target_wordsize with tid.
3253 (ppc_linux_nat_target::read_description): Call ppc_linux_target
3255 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
3256 (ppc64_64bit_inferior_p): Add static and inline specifiers.
3257 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
3258 tid parameter. Remove static specifier.
3259 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
3260 (ppc_linux_target_wordsize): New declaration.
3262 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3264 * arch/ppc-linux-common.c: New file.
3265 * arch/ppc-linux-common.h: New file.
3266 * arch/ppc-linux-tdesc.h: New file.
3267 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
3268 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
3269 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
3270 arch/ppc-linux-tdesc.h.
3271 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
3272 arch/ppc-linux-tdesc.h.
3273 (ppc_linux_nat_target::read_description): Remove target
3274 description matching code. Fill a ppc_linux_features struct and
3275 call ppc_linux_match_description with it. Move comment about ISA
3276 2.05 to ppc-linux-common.c.
3277 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
3278 arch/ppc-linux-tdesc.h.
3279 (ppc_linux_core_read_description): Remove target description
3280 matching code. Fill a ppc_linux_features struct and call
3281 ppc_linux_match_description with it.
3282 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3283 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3284 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3285 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3286 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3287 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3288 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3289 (tdesc_powerpc_e500l): Remove.
3291 2018-05-22 Joel Brobecker <brobecker@adacore.com>
3293 * ada-lang.c (catch_assert_command): Pass empty string instead
3294 of NULL for excep_string argument.
3296 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3298 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
3299 the width of the requested register exceeds the width of the
3302 2018-05-21 Tom Tromey <tom@tromey.com>
3304 * printcmd.c (output_command): Remove.
3305 (output_command_const): Rename to output_command.
3306 * valprint.h (output_command): Rename from output_command_const.
3307 * tracepoint.c (trace_dump_actions): Call output_command.
3309 2018-05-21 Tom Tromey <tom@tromey.com>
3311 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3312 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
3313 * ada-lang.h (create_ada_exception_catchpoint): Update.
3314 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
3316 (create_excep_cond_exprs, ~ada_catchpoint)
3317 (should_stop_exception, print_one_exception)
3318 (print_mention_exception, print_recreate_exception): Update.
3319 (ada_get_next_arg): Remove.
3320 (catch_ada_exception_command_split): Use std::string. Change type
3321 of "excep_string", "cond_string".
3322 (catch_ada_exception_command): Update.
3323 (create_ada_exception_catchpoint): Change type of excep_string.
3324 (ada_exception_sal): Remove excep_string parameter.
3325 (~ada_catchpoint): Remove.
3327 2018-05-21 Tom Tromey <tom@tromey.com>
3329 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
3332 2018-05-21 Tom Tromey <tom@tromey.com>
3334 * ada-lang.c (ada_exception_message_1, ada_exception_message):
3335 Return unique_xmalloc_ptr.
3336 (print_it_exception): Update.
3338 2018-05-21 Tom Tromey <tom@tromey.com>
3340 * tracepoint.c (trace_dump_actions): Use std::string.
3342 2018-05-21 Tom Tromey <tom@tromey.com>
3344 * symfile.c (reread_symbols): Use std::string for original_name.
3346 2018-05-21 Tom Tromey <tom@tromey.com>
3348 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
3349 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
3352 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
3354 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
3356 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
3357 * objfiles.c (get_objfile_bfd_data): Allocate
3358 objfile_per_bfd_storage with obstack_new when allocating on
3361 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
3363 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
3365 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3366 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3367 * mdebugread.c (mdebug_build_psymtabs): Likewise.
3368 (add_pending): Likewise.
3369 (parse_symbol): Likewise.
3370 (parse_partial_symbols): Likewise.
3371 (psymtab_to_symtab_1): Likewise.
3372 (new_psymtab): Likewise.
3373 (elfmdebug_build_psymtabs): Likewise.
3374 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3375 * objfiles.c (get_objfile_bfd_data): Likewise.
3376 (objfile_register_static_link): Likewise.
3377 * psymtab.c (allocate_psymtab): Likewise.
3378 * stabsread.c (read_member_functions): Likewise.
3379 * xcoffread.c (xcoff_end_psymtab): Likewise.
3381 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
3383 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
3384 compiler supports std::is_trivially_constructible.
3385 * common/poison.h: Include obstack.h.
3386 (IsMallocable): Define to is_trivially_constructible if the
3387 compiler supports it, define to true_type otherwise.
3391 (XOBNEWVEC): Redefine.
3392 * gdb_obstack.h (obstack_zalloc): New.
3393 (OBSTACK_ZALLOC): Redefine.
3394 (obstack_calloc): New.
3395 (OBSTACK_CALLOC): Redefine.
3397 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
3398 (gdbarch_obstack): New declaration in gdbarch.h, definition in
3400 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
3401 obstack_calloc/obstack_zalloc.
3402 (gdbarch_obstack_zalloc): Remove.
3403 * target-descriptions.c (tdesc_data_init): Use obstack_new.
3405 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3407 * stack.c (backtrace_command_1): Remove useless variable int i.
3409 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3411 * stack.c (print_frame_info): Fix comment.
3413 2018-05-18 Tom Tromey <tom@tromey.com>
3415 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
3416 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
3417 (~dwarf2_per_objfile): Update
3418 (dwarf2_get_dwz_file): Use new.
3419 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
3422 2018-05-18 Tom Tromey <tom@tromey.com>
3424 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
3426 * dwarf2read.c (struct dwp_file): Add constructor and
3428 (open_and_init_dwp_file): Return a unique_ptr.
3429 (dwarf2_per_objfile, create_dwp_hash_table)
3430 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
3431 (lookup_dwo_unit_in_dwp): Update.
3432 (open_and_init_dwp_file, get_dwp_file): Update.
3434 2018-05-18 Tom Tromey <tom@tromey.com>
3436 * dwarf2read.c (dwarf2_per_objfile): Update.
3437 (struct mapped_index): Add initializers.
3438 (dwarf2_read_index): Use new.
3439 (dw2_symtab_iter_init): Update.
3440 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
3443 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
3445 * dwarf2read.c (mapped_index) <total_size>: Remove.
3447 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
3449 * unittests/format_pieces-selftests.c (test_format_specifier):
3452 2018-05-18 Tom Tromey <tom@tromey.com>
3454 * c-typeprint.c (maybe_print_hole): New function.
3455 (c_print_type_struct_field_offset): Update.
3456 (c_type_print_base_struct_union): Call maybe_print_hole.
3458 2018-05-17 Keith Seitz <keiths@redhat.com>
3460 * breakpoint.c (build_bpstat_chain): New function, moved from
3462 (bpstat_stop_status): Add optional parameter, `stop_chain'.
3463 If no stop chain is passed, call build_bpstat_chain to build it.
3464 * breakpoint.h (build_bpstat_chain): Declare.
3465 (bpstat_stop_status): Move documentation here from breakpoint.c.
3466 * infrun.c (handle_signal_stop): Before eliding inlined frames,
3467 build the stop chain and pass it to skip_inline_frames.
3468 Pass this stop chain to bpstat_stop_status.
3469 * inline-frame.c: Include breakpoint.h.
3470 (stopped_by_user_bp_inline_frame): New function.
3471 (skip_inline_frames): Add parameter `stop_chain'.
3472 Move documention to inline-frame.h.
3473 If non-NULL, use stopped_by_user_bp_inline_frame to determine
3474 whether the frame should be elided.
3475 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
3476 Add moved documentation and update for new parameter.
3478 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
3481 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3482 unittests/format_pieces-selftests.c.
3483 * common/format.h (format_piece) <operator==>: New.
3484 (format_pieces) <operator[]>: Remove.
3485 * common/format.c (format_pieces::format_pieces): Handle \e.
3486 * unittests/format_pieces-selftests.c: New.
3488 2018-05-17 Tom Tromey <tom@tromey.com>
3491 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
3492 (dw2_instantiate_symtab): Add skip_partial parameter.
3493 (dw2_find_last_source_symtab, dw2_map_expand_apply)
3494 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
3495 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
3496 (dw2_expand_symtabs_matching_one)
3497 (dw2_find_pc_sect_compunit_symtab)
3498 (dw2_debug_names_lookup_symbol)
3499 (dw2_debug_names_expand_symtabs_for_function): Update.
3500 (init_cutu_and_read_dies): Add skip_partial parameter.
3501 (process_psymtab_comp_unit, build_type_psymtabs_1)
3502 (process_skeletonless_type_unit, load_partial_comp_unit)
3503 (psymtab_to_symtab_1): Update.
3504 (load_full_comp_unit): Add skip_partial parameter.
3505 (process_imported_unit_die, dwarf2_read_addr_index)
3506 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
3507 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
3508 (read_signatured_type): Update.
3510 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
3512 * value.c (release_value): Remove unused variable.
3513 (record_latest_value): Likewise.
3514 (access_value_history): Likewise.
3515 (preserve_values): Likewise.
3517 2018-05-17 Tom Tromey <tom@tromey.com>
3519 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
3522 2018-05-16 Maciej W. Rozycki <macro@mips.com>
3525 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
3526 Also handle registers whose width is not a multiple of
3528 (linux_nat_trad_target::store_register): Likewise.
3530 2018-05-16 Tom Tromey <tom@tromey.com>
3532 * gdbcore.h (core_bfd): Redefine.
3533 * corelow.c (core_target::close): Update.
3534 (core_target_open): Update.
3535 * progspace.h (struct program_space) <cbfd>: Now a
3538 2018-05-16 Tom Tromey <tom@tromey.com>
3541 * symfile-add-flags.h (enum symfile_add_flags)
3542 <SYMFILE_NOT_FILENAME>: New constant.
3543 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
3544 objfile name from BFD.
3545 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
3546 * minidebug.c (find_separate_debug_file_in_section): Put
3547 ".gnu_debugdata" into BFD's file name.
3549 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
3551 * regcache.c (regcache_read_ftype, regcache_write_ftype):
3554 2018-05-15 Tamar Christina <tamar.christina@arm.com>
3557 * aarch64-tdep.c (aarch64_analyze_prologue,
3558 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
3559 Indicate not interested in errors.
3561 2018-05-15 Maciej W. Rozycki <macro@mips.com>
3563 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
3564 Supply the MIPS_ZERO_REGNUM register.
3566 2018-05-15 Maciej W. Rozycki <macro@mips.com>
3568 * mips-tdep.c (mask_address_var): Make variable static.
3570 2018-05-14 Tom Tromey <tom@tromey.com>
3572 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
3574 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
3576 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
3577 FXSAVE_ADDR for the mxcsr register.
3579 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
3581 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
3583 2018-05-11 Pedro Alves <palves@redhat.com>
3585 * corelow.c (core_target) <core_target>: No longer inline.
3586 Initialize m_core_gdbarch, m_core_vec and build the section table
3588 <~core_target>: New.
3589 <core_gdbarch, get_core_register_section>: New methods.
3590 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
3591 factored out from ...
3592 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
3594 (sniff_core_bfd): Add gdbarch parameter.
3595 (core_close): Delete, merged into ...
3596 (core_target::close): ... here. Delete self.
3597 (core_close_cleanup): Delete.
3598 (core_target_open): Allocate a core_target on the heap. Use a
3599 unique_ptr instead of a cleanup. Bits moved into the core_target
3600 ctor. Adjust to use core_target methods instead of globals.
3601 (get_core_register_section): Rename to ...
3602 (core_target::get_core_register_section): ... this and adjust.
3603 (struct get_core_registers_cb_data): New.
3604 (get_core_registers_cb): Use it. Use bool.
3605 (core_target::fetch_registers, core_target::files_info)
3606 (core_target::xfer_partial, core_target::read_description)
3607 (core_target::pid_to, core_target::thread_name): Adjust to
3608 reference class fields instead of globals.
3609 * target.h (struct target_ops_deleter, target_ops_up): New.
3611 2018-05-11 Pedro Alves <palves@redhat.com>
3613 * corefile.c (core_file_command): Move to corelow.c.
3614 * corelow.c (the_core_target): Delete.
3615 (core_file_command): Moved from corefile.c. Check exec_bfd
3616 instead of the_core_target. Use target_detach instead of calling
3617 into the_core_target directly.
3618 (maybe_say_no_core_file_now): New.
3619 (core_target::detach): Use it.
3620 (_initialize_corelow): Remove references to the_core_target.
3621 * gdbcore.h (the_core_target): Delete.
3623 2018-05-11 Tom Tromey <tromey@redhat.com>
3624 Pedro Alves <palves@redhat.com>
3626 * corefile.c (core_bfd): Remove.
3627 * gdbcore.h (core_bfd): Now a macro.
3628 * progspace.h (struct program_space) <cbfd>: New field.
3630 2018-05-11 Tom Tromey <tom@tromey.com>
3632 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
3635 2018-05-10 Tom Tromey <tom@tromey.com>
3637 * configure: Rebuild.
3638 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
3640 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3643 * regformats/regdat.sh: Adjust script, following the addition
3644 of the new expedite_regs parameter to init_target_desc.
3646 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
3649 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
3650 set_gdbarch_significant_addr_bit.
3651 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
3652 set_gdbarch_significant_addr_bit.
3653 * utils.c (address_significant): Update to sign extend addr.
3655 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
3657 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
3658 (xtensa_linux_init_abi): Limit tdep->num_regs by
3659 tdep->num_nopriv_regs.
3660 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
3661 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
3664 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
3666 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
3668 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3670 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
3671 (I387_MXCSR_INIT_VAL): New constant.
3672 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
3673 buffer if it was supplied by the inferior.
3674 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
3675 (i387_xsave_get_clear_bv): New function.
3676 (i387_supply_xsave): Only read x87 control registers from the
3677 xsave buffer if the feature is enabled, and the state will have
3678 been written, otherwise, provide a suitable default.
3679 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
3680 including x87 control registers. Update control registers if they
3681 have changed from the default value, and mark features as enabled
3683 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
3685 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3687 * spu-tdep.c (info_spu_event_command): Fix output formatting.
3689 2018-05-07 Tom Tromey <tom@tromey.com>
3691 * configure: Rebuild.
3692 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
3694 2018-05-07 Tom Tromey <tom@tromey.com>
3697 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
3698 bit. Use correct value for VDIV.
3700 2018-05-04 Tom Tromey <tom@tromey.com>
3702 * configure: Rebuild.
3703 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
3705 2018-05-04 Tom Tromey <tom@tromey.com>
3707 * linux-record.c (record_linux_system_call) <case
3708 RECORD_SYS_RECVFROM>: Add "break".
3710 2018-05-04 Tom Tromey <tom@tromey.com>
3712 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
3713 Add missing "break".
3714 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
3715 Add missing "break".
3717 2018-05-04 Tom Tromey <tom@tromey.com>
3719 * rs6000-tdep.c (ppc_process_record_op4)
3720 (ppc_process_record_op63): Add fall-through comment.
3722 2018-05-04 Tom Tromey <tom@tromey.com>
3724 * i386-tdep.c (i386_process_record): Add fall-through comment.
3726 2018-05-04 Tom Tromey <tom@tromey.com>
3728 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
3731 2018-05-04 Tom Tromey <tom@tromey.com>
3733 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
3734 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
3735 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
3737 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
3739 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
3742 2018-05-04 Tom Tromey <tom@tromey.com>
3744 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
3746 2018-05-04 Tom Tromey <tom@tromey.com>
3748 * s390-tdep.c (s390_process_record): Fix fall-through comments.
3749 * xcoffread.c (scan_xcoff_symtab): Move comment later.
3750 * symfile.c (section_is_mapped): Fix fall-through comment.
3751 * stabsread.c (define_symbol, read_member_functions): Fix
3752 fall-through comment.
3753 * s390-linux-tdep.c (s390_process_record): Fix fall-through
3755 * remote.c (remote_wait_as): Fix fall-through comment.
3756 * p-exp.y (yylex): Fix fall-through comment.
3757 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
3759 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
3760 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
3761 * jv-exp.y (yylex): Fix fall-through comment.
3762 * go-exp.y (lex_one_token): Fix fall-through comment.
3763 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
3764 fall-through comment.
3765 * f-exp.y (yylex): Fix fall-through comment.
3766 * dwarf2read.c (process_die): Fix fall-through comments.
3767 * dbxread.c (process_one_symbol): Fix fall-through comment.
3768 * d-exp.y (lex_one_token): Fix fall-through comment.
3769 * cp-name-parser.y (yylex): Fix fall-through comment.
3770 * coffread.c (coff_symtab_read): Fix fall-through comment.
3771 * c-exp.y (lex_one_token): Fix fall-through comment.
3772 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
3774 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
3777 2018-05-04 Tom Tromey <tom@tromey.com>
3780 * NEWS: Mention gdb.execute change.
3781 * gdbcmd.h (execute_control_command): Don't declare.
3782 * python/python.c (execute_gdb_command): Use read_command_lines_1,
3783 execute_control_commands, execute_control_commands_to_string.
3784 * cli/cli-script.h (execute_control_commands)
3785 (execute_control_commands_to_string): Declare.
3786 (execute_control_command): Add from_tty parameter.
3787 * cli/cli-script.c (execute_control_commands)
3788 (execute_control_commands_to_string): New functions.
3789 (execute_user_command): Use execute_control_commands.
3790 (execute_control_command_1): Add "from_tty" parameter. Update.
3791 (execute_control_command): Likewise.
3793 2018-05-04 Tom Tromey <tom@tromey.com>
3796 * NEWS: Mention that breakpoint commands are writable.
3797 * python/py-breakpoint.c (bppy_set_commands): New function.
3798 (breakpoint_object_getset) <"commands">: Use it.
3800 2018-05-04 Tom Tromey <tom@tromey.com>
3802 * tracepoint.c (actions_command): Update.
3803 * mi/mi-cmd-break.c (mi_command_line_array)
3804 (mi_command_line_array_cnt, mi_command_line_array_ptr)
3805 (mi_read_next_line): Remove.
3806 (mi_cmd_break_commands): Update.
3807 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
3809 * cli/cli-script.c (get_command_line): Update.
3810 (process_next_line): Use function_view. Constify.
3811 (recurse_read_control_structure, read_command_lines)
3812 (read_command_lines_1): Change argument types to function_view.
3813 (do_define_command, document_command): Update.
3814 * breakpoint.h (check_tracepoint_command): Don't declare.
3815 * breakpoint.c (check_tracepoint_command): Remove.
3816 (commands_command_1, create_tracepoint_from_upload): Update.
3818 2018-05-04 Tom Tromey <tom@tromey.com>
3821 * cli/cli-script.h (enum command_control_type) <define_control>:
3823 * cli/cli-script.c (multi_line_command_p): Handle define_control.
3824 (build_command_line, execute_control_command_1)
3825 (process_next_line): Likewise.
3826 (do_define_command): New function, extracted from define_command.
3827 (define_command): Use it.
3829 2018-05-04 Tom Tromey <tom@tromey.com>
3831 * tracepoint.c (actions_command): Update.
3832 * cli/cli-script.h (read_command_lines): Update.
3833 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
3834 (MAX_TMPBUF): Remove define.
3835 (define_command): Use string_printf.
3836 (document_command): Likewise.
3837 * breakpoint.c (commands_command_1): Update.
3839 2018-05-04 Tom Tromey <tom@tromey.com>
3841 * top.c (execute_command): Update.
3842 * cli/cli-script.h (print_command_lines): Now varargs.
3843 * cli/cli-script.c (print_command_lines): Now varargs.
3844 (execute_control_command_1) <case while_control, case if_control>:
3847 2018-05-04 Tom Tromey <tom@tromey.com>
3849 * tracepoint.c (all_tracepoint_actions): Rename from
3850 all_tracepoint_actions_and_cleanup. Change return type.
3851 (actions_command, encode_actions_1, encode_actions)
3852 (trace_dump_actions, tdump_command): Update.
3853 * remote.c (remote_download_command_source): Update.
3854 * python/python.c (gdbpy_eval_from_control_command)
3855 (python_command, python_interactive_command): Update.
3856 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
3857 * guile/guile.c (guile_command)
3858 (gdbscm_eval_from_control_command, guile_command): Update.
3859 * compile/compile.c (compile_code_command)
3860 (compile_print_command, compile_to_object): Update.
3861 * cli/cli-script.h (struct command_lines_deleter): New.
3862 (counted_command_line): New typedef.
3863 (struct command_line): Add constructor, destructor.
3864 <body_list>: Remove.
3865 <body_list_0, body_list_1>: New members.
3866 (command_line_up): Remove typedef.
3867 (read_command_lines, read_command_lines_1, get_command_line):
3869 (copy_command_lines): Don't declare.
3870 * cli/cli-script.c (build_command_line): Use "new".
3871 (get_command_line): Return counted_command_line.
3872 (print_command_lines, execute_user_command)
3873 (execute_control_command_1, while_command, if_command): Update.
3874 (realloc_body_list): Remove.
3875 (process_next_line, recurse_read_control_structure): Update.
3876 (read_command_lines, read_command_lines_1): Return counted_command_line.
3877 (free_command_lines): Use "delete".
3878 (copy_command_lines): Remove.
3879 (define_command, document_command, show_user_1): Update.
3880 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
3881 a counted_command_line.
3882 * breakpoint.h (counted_command_line): Remove typedef.
3883 (breakpoint_set_commands): Update.
3884 * breakpoint.c (check_no_tracepoint_commands)
3885 (validate_commands_for_breakpoint): Update.
3886 (breakpoint_set_commands): Change commands to be a
3887 counted_command_line.
3888 (commands_command_1, update_dprintf_command_list)
3889 (create_tracepoint_from_upload): Update.
3891 2018-05-04 Tom Tromey <tom@tromey.com>
3893 * cli/cli-decode.h (cmd_list_element): New constructor.
3894 (~cmd_list_element): New destructor.
3895 (struct cmd_list_element): Add initializers.
3896 * cli/cli-decode.c (do_add_cmd): Use "new".
3897 (delete_cmd): Use "delete".
3899 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3900 Pedro Alves <palves@redhat.com>
3902 PR breakpoints/19806 and support for PR external/20207.
3903 * NEWS: Mention Aarch64 watchpoint improvements.
3904 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
3905 watchpoints and PR external/20207 watchpoints.
3906 * nat/aarch64-linux-hw-point.c
3907 (kernel_supports_any_contiguous_range): New.
3908 (aarch64_watchpoint_offset): New.
3909 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
3910 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
3911 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
3912 (aarch64_align_watchpoint): New parameters aligned_offset_p and
3913 next_addr_orig_p. Support PR external/20207 watchpoints.
3914 (aarch64_downgrade_regs): New.
3915 (aarch64_dr_state_insert_one_point): New parameters offset and
3917 (aarch64_dr_state_remove_one_point): Likewise.
3918 (aarch64_handle_breakpoint): Update caller.
3919 (aarch64_handle_aligned_watchpoint): Likewise.
3920 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
3922 (aarch64_linux_set_debug_regs): Remove const from state. Call
3923 aarch64_downgrade_regs.
3924 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
3925 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
3926 (DR_CONTROL_MASK): ... this.
3927 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
3928 (unsigned int aarch64_watchpoint_offset): New prototype.
3929 (aarch64_linux_set_debug_regs): Remove const from state.
3930 * utils.c (align_up, align_down): Move to ...
3931 * common/common-utils.c (align_up, align_down): ... here.
3932 * utils.h (align_up, align_down): Move to ...
3933 * common/common-utils.h (align_up, align_down): ... here.
3935 2018-05-04 Joel Brobecker <brobecker@adacore.com>
3937 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
3938 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
3939 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
3940 Re-implement to match the ABI as summarized in GCC's
3941 gcc/config/sparc/sparc.c. All callers updated.
3942 (sparc32_store_arguments): Remove assertion.
3944 2018-05-04 Tom Tromey <tom@tromey.com>
3946 * printcmd.c: Don't include tui.h.
3947 (decode_format): Use skip_spaces.
3949 2018-05-04 Tom Tromey <tom@tromey.com>
3952 * printcmd.c (last_count): New global.
3953 (x_command): Use saved count when repeating.
3955 2018-05-04 Tom Tromey <tom@tromey.com>
3957 * nto-procfs.c (do_closedir_cleanup): Remove.
3958 (procfs_pidlist): Use gdb_dir_up.
3959 * procfs.c (do_closedir_cleanup): Remove.
3960 (proc_update_threads): Use gdb_dir_up.
3961 * common/filestuff.h (struct gdb_dir_deleter): New.
3962 (gdb_dir_up): New typedef.
3964 2018-05-04 Tom Tromey <tom@tromey.com>
3966 * ada-lang.c (print_mention_exception): Use std::string.
3968 2018-05-04 Tom Tromey <tom@tromey.com>
3970 * ada-lang.c (create_excep_cond_exprs): Update.
3971 (ada_exception_catchpoint_cond_string): Use std::string.
3973 2018-05-04 Tom Tromey <tom@tromey.com>
3975 * ada-lang.c (xget_renaming_scope): Return std::string.
3976 (old_renaming_is_invisible): Update.
3978 2018-05-04 Tom Tromey <tom@tromey.com>
3980 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
3981 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
3983 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3985 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
3987 2018-05-04 Tom Tromey <tom@tromey.com>
3989 * remote.c (remote_query_supported_append): Change type.
3990 (remote_check_symbols): Update.
3992 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
3995 * configure.ac: Prepend libpython.
3996 * python/python-config.py: Likewise.
3997 * configure: Regenerate.
3999 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
4001 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
4003 2018-05-03 Pedro Alves <palves@redhat.com>
4006 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
4007 override. Write 'true' instead of '1'.
4008 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
4011 2018-05-02 Pedro Alves <palves@redhat.com>
4013 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
4014 add_inf_child_target.
4015 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
4016 add_inf_child_target.
4017 * aix-thread.c (aix_thread_target_info): New.
4018 (aix_thread_target) <shortname, longname, doc>: Delete.
4020 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
4021 add_inf_child_target.
4022 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
4023 add_inf_child_target.
4024 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
4025 add_inf_child_target.
4026 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
4027 add_inf_child_target.
4028 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
4029 add_inf_child_target.
4030 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
4031 add_inf_child_target.
4032 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
4033 add_inf_child_target.
4034 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
4035 add_inf_child_target.
4036 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
4037 add_inf_child_target.
4038 * bfd-target.c (target_bfd_target_info): New.
4039 (target_bfd) <shortname, longname, doc>: Delete.
4041 * bsd-kvm.c (bsd_kvm_target_info): New.
4042 (bsd_kvm_target) <shortname, longname, doc>: Delete.
4044 (bsd_kvm_target::open): Rename to ...
4045 (bsd_kvm_target_open): ... this. Adjust.
4046 * bsd-uthread.c (bsd_uthread_target_info): New.
4047 (bsd_uthread_target) <shortname, longname, doc>: Delete.
4049 * corefile.c (core_file_command): Adjust.
4050 * corelow.c (core_target_info): New.
4051 (core_target) <shortname, longname, doc>: Delete.
4053 (core_target::open): Rename to ...
4054 (core_target_open): ... this. Adjust.
4055 * ctf.c (ctf_target_info): New.
4056 (ctf_target) <shortname, longname, doc>: Delete.
4058 (ctf_target::open): Rename to ...
4059 (ctf_target_open): ... this.
4060 (_initialize_ctf): Adjust.
4061 * exec.c (exec_target_info): New.
4062 (exec_target) <shortname, longname, doc>: Delete.
4064 (exec_target::open): Rename to ...
4065 (exec_target_open): ... this.
4066 * gdbcore.h (core_target_open): Declare.
4067 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
4068 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
4069 add_inf_child_target.
4070 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
4071 add_inf_child_target.
4072 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
4073 add_inf_child_target.
4074 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
4075 add_inf_child_target.
4076 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
4077 add_inf_child_target.
4078 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
4079 add_inf_child_target.
4080 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
4081 add_inf_child_target.
4082 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
4083 add_inf_child_target.
4084 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
4085 add_inf_child_target.
4086 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
4087 add_inf_child_target.
4088 * inf-child.c (inf_child_target_info): New.
4089 (inf_child_target::info): New.
4090 (inf_child_open_target): Remove 'target' parameter. Use
4091 get_native_target instead.
4092 (inf_child_target::open): Delete.
4093 (add_inf_child_target): New.
4094 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
4097 (add_inf_child_target): Declare.
4098 (inf_child_open_target): Declare.
4099 * linux-thread-db.c (thread_db_target_info): New.
4100 (thread_db_target) <shortname, longname, doc>: Delete.
4102 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
4103 add_inf_child_target.
4104 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
4105 add_inf_child_target.
4106 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
4107 add_inf_child_target.
4108 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
4109 add_inf_child_target.
4110 * make-target-delegates (print_class): Adjust.
4111 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
4112 add_inf_child_target.
4113 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
4114 add_inf_child_target.
4115 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
4116 add_inf_child_target.
4117 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
4118 add_inf_child_target.
4119 * nto-procfs.c (nto_native_target_info): New.
4120 (nto_procfs_target_native) <shortname, longname, doc>:
4123 (nto_procfs_target_info): New.
4124 (nto_procfs_target_procfs) <shortname, longname, doc>:
4127 (init_procfs_targets): Adjust.
4128 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
4129 add_inf_child_target.
4130 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
4131 add_inf_child_target.
4132 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
4133 add_inf_child_target.
4134 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
4135 add_inf_child_target.
4136 * ravenscar-thread.c (ravenscar_target_info): New.
4137 (ravenscar_thread_target) <shortname, longname, doc>:
4140 * record-btrace.c (record_btrace_target_info):
4141 (record_btrace_target) <shortname, longname, doc>: Delete.
4143 (record_btrace_target::open): Rename to ...
4144 (record_btrace_target_open): ... this. Adjust.
4145 * record-full.c (record_longname, record_doc): New.
4146 (record_full_base_target) <shortname, longname, doc>: Delete.
4148 (record_full_target_info): New.
4149 (record_full_target): <shortname>: Delete.
4151 (record_full_core_open_1, record_full_open_1): Update comments.
4152 (record_full_base_target::open): Rename to ...
4153 (record_full_open): ... this.
4154 (cmd_record_full_restore): Update.
4155 (_initialize_record_full): Update.
4156 * remote-sim.c (remote_sim_target_info): New.
4157 (gdbsim_target) <shortname, longname, doc>: Delete.
4159 (gdbsim_target::open): Rename to ...
4160 (gdbsim_target_open): ... this.
4161 (_initialize_remote_sim): Adjust.
4162 * remote.c (remote_doc): New.
4163 (remote_target_info): New.
4164 (remote_target) <shortname, longname, doc>: Delete.
4166 (extended_remote_target_info): New.
4167 (extended_remote_target) <shortname, longname, doc>: Delete.
4169 (remote_target::open_1): Make static. Adjust.
4170 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
4171 * s390-linux-nat.c (_initialize_s390_nat): Use
4172 add_inf_child_target.
4173 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
4174 add_inf_child_target.
4175 * sol-thread.c (thread_db_target_info): New.
4176 (sol_thread_target) <shortname, longname, doc>: Delete.
4178 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
4179 add_inf_child_target.
4180 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
4181 add_inf_child_target.
4182 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
4183 add_inf_child_target.
4184 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
4185 add_inf_child_target.
4186 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
4187 add_inf_child_target.
4188 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
4189 add_inf_child_target.
4190 * spu-linux-nat.c (_initialize_spu_nat): Use
4191 add_inf_child_target.
4192 * spu-multiarch.c (spu_multiarch_target_info): New.
4193 (spu_multiarch_target) <shortname, longname, doc>: Delete.
4195 * target-delegates.c: Regenerate.
4196 * target.c: Include <unordered_map>.
4197 (target_ops_p): Delete.
4198 (DEF_VEC_P(target_ops_p)): Delete.
4199 (target_factories): New.
4200 (test_target_info): New.
4201 (test_target_ops::info): New.
4202 (open_target): Adjust to use target_factories.
4203 (add_target_with_completer): Rename to ...
4204 (add_target): ... this. Change prototype. Register target_info
4205 and open callback in target_factories. Register target_info in
4206 command context instead of target_ops.
4207 (add_target): Delete old implementation.
4208 (add_deprecated_target_alias): Change prototype. Adjust.
4209 (the_native_target): New.
4210 (set_native_target, get_native_target): New.
4211 (find_default_run_target): Use the_native_target.
4212 (find_attach_target, find_run_target): Simplify.
4213 (target_ops::open): Delete.
4214 (dummy_target_info): New.
4215 (dummy_target::shortname, dummy_target::longname)
4216 (dummy_target::doc): Delete.
4217 (dummy_target::info): New.
4218 (debug_target::shortname, debug_target::longname)
4219 (debug_target::doc): Delete.
4220 (debug_target::info): New.
4221 * target.h (struct target_info): New.
4222 (target_ops::~target_ops): Add comment.
4223 (target_ops::info): New.
4224 (target_ops::shortname, target_ops::longname, target_ops::doc): No
4225 longer virtual. Implement in terms of target_info.
4226 (set_native_target, get_native_target): Declare.
4227 (target_open_ftype): New.
4228 (add_target, add_target_with_completer)
4229 (add_deprecated_target_alias): Change prototype.
4230 (test_target) <shortname, longname, doc>: Delete.
4232 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
4233 add_inf_child_target.
4234 * tracefile-tfile.c (tfile_target_info): New.
4235 (tfile_target) <shortname, longname, doc>: Delete.
4237 (tfile_target::open): Rename to ...
4238 (tfile_target_open): ... this.
4239 (_initialize_tracefile_tfile): Adjust.
4240 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
4241 add_inf_child_target.
4242 * windows-nat.c (_initialize_windows_nat): Use
4243 add_inf_child_target.
4244 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
4245 add_inf_child_target.
4247 2018-05-02 Pedro Alves <palves@redhat.com>
4249 * linux-nat.h (linux_nat_target) <low_new_thread,
4250 low_delete_thread, low_new_fork, low_forget_process,
4251 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
4252 New virtual methods.
4253 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
4254 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
4255 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
4256 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
4257 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
4259 * linux-fork.c (delete_fork): Adjust to call low method.
4260 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
4261 (linux_nat_new_fork, linux_nat_forget_process_hook)
4262 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
4263 (linux_nat_status_is_event):
4264 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
4265 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
4267 (sigtrap_is_event): Rename to ...
4268 (linux_nat_target::low_status_is_event): ... this.
4269 (linux_nat_set_status_is_event): Delete.
4270 (save_stop_reason, linux_nat_wait_1)
4271 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
4273 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
4274 (linux_nat_set_new_fork, linux_nat_set_forget_process)
4275 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
4276 (linux_nat_set_prepare_to_resume): Delete.
4277 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
4278 low virtual methods.
4279 * amd64-linux-nat.c: Likewise.
4280 * arm-linux-nat.c: Likewise.
4281 * i386-linux-nat.c: Likewise.
4282 * ia64-linux-nat.c: Likewise.
4283 * mips-linux-nat.c: Likewise.
4284 * ppc-linux-nat.c: Likewise.
4285 * s390-linux-nat.c: Likewise.
4286 * sparc64-linux-nat.c: Likewise.
4287 * x86-linux-nat.c: Likewise.
4288 * x86-linux-nat.h: Include "nat/x86-linux.h".
4289 (x86_linux_nat_target) <low_new_fork, low_forget_process,
4290 low_prepare_to_resume, low_new_thread, low_delete_thread>:
4293 2018-05-02 Pedro Alves <palves@redhat.com>
4295 * target.h (target_ops)
4296 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
4297 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
4298 stopped_by_watchpoint, have_continuable_watchpoint,
4299 stopped_data_address, watchpoint_addr_within_range,
4300 can_accel_watchpoint_condition, can_run, thread_alive,
4301 has_all_memory, has_memory, has_stack, has_registers,
4302 has_execution, can_async_p, is_async_p, supports_non_stop,
4303 always_non_stop_p, can_execute_reverse, supports_multi_process,
4304 supports_enable_disable_tracepoint,
4305 supports_disable_randomization, supports_string_tracing,
4306 supports_evaluation_of_breakpoint_conditions,
4307 can_run_breakpoint_commands, filesystem_is_local,
4308 can_download_tracepoint, get_trace_state_variable_value,
4309 set_trace_notes, get_tib_address, use_agent, can_use_agent,
4310 record_is_replaying, record_will_replay,
4311 augmented_libraries_svr4_read>: Adjust to return bool.
4312 * aarch64-linux-nat.c: All implementations adjusted.
4313 * aix-thread.c: All implementations adjusted.
4314 * arm-linux-nat.c: All implementations adjusted.
4315 * breakpoint.c: All implementations adjusted.
4316 * bsd-kvm.c: All implementations adjusted.
4317 * bsd-uthread.c: All implementations adjusted.
4318 * corelow.c: All implementations adjusted.
4319 * ctf.c: All implementations adjusted.
4320 * darwin-nat.c: All implementations adjusted.
4321 * darwin-nat.h: All implementations adjusted.
4322 * exec.c: All implementations adjusted.
4323 * fbsd-nat.c: All implementations adjusted.
4324 * fbsd-nat.h: All implementations adjusted.
4325 * gnu-nat.c: All implementations adjusted.
4326 * gnu-nat.h: All implementations adjusted.
4327 * go32-nat.c: All implementations adjusted.
4328 * ia64-linux-nat.c: All implementations adjusted.
4329 * inf-child.c: All implementations adjusted.
4330 * inf-child.h: All implementations adjusted.
4331 * inf-ptrace.c: All implementations adjusted.
4332 * inf-ptrace.h: All implementations adjusted.
4333 * linux-nat.c: All implementations adjusted.
4334 * linux-nat.h: All implementations adjusted.
4335 * mips-linux-nat.c: All implementations adjusted.
4336 * nto-procfs.c: All implementations adjusted.
4337 * ppc-linux-nat.c: All implementations adjusted.
4338 * procfs.c: All implementations adjusted.
4339 * ravenscar-thread.c: All implementations adjusted.
4340 * record-btrace.c: All implementations adjusted.
4341 * record-full.c: All implementations adjusted.
4342 * remote-sim.c: All implementations adjusted.
4343 * remote.c: All implementations adjusted.
4344 * s390-linux-nat.c: All implementations adjusted.
4345 * sol-thread.c: All implementations adjusted.
4346 * spu-multiarch.c: All implementations adjusted.
4347 * target-delegates.c: All implementations adjusted.
4348 * target.c: All implementations adjusted.
4349 * target.h: All implementations adjusted.
4350 * tracefile-tfile.c: All implementations adjusted.
4351 * tracefile.c: All implementations adjusted.
4352 * tracefile.h: All implementations adjusted.
4353 * windows-nat.c: All implementations adjusted.
4354 * x86-linux-nat.h: All implementations adjusted.
4355 * x86-nat.h: All implementations adjusted.
4357 2018-05-02 Pedro Alves <palves@redhat.com>
4359 * make-target-delegates (scan_target_h): Don't trim lines here.
4360 Replace sequences of tabs and/or whitespace with a single
4362 (top level, parsing methods): Trim each line before processing it
4365 2018-05-02 Pedro Alves <palves@redhat.com>
4366 John Baldwin <jhb@freebsd.org>
4368 * target.h (enum strata) <debug_stratum>: New.
4369 (struct target_ops) <all delegation methods>: Replace by C++
4370 virtual methods, and drop "to_" prefix. All references updated
4372 <to_shortname, to_longname, to_doc, to_data,
4373 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
4374 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
4375 virtual methods. All references updated throughout.
4376 <can_attach, supports_terminal_ours, can_create_inferior,
4377 get_thread_control_capabilities, attach_no_wait>: New
4379 <insert_breakpoint, remove_breakpoint>: Now
4380 TARGET_DEFAULT_NORETURN methods.
4381 <info_proc>: Now returns bool.
4383 (OPS_MAGIC): Delete.
4384 (current_target): Delete. All references replaced by references
4386 (target_stack): ... this. New.
4387 (target_shortname, target_longname): Adjust.
4388 (target_can_run): Now a function declaration.
4389 (default_child_has_all_memory, default_child_has_memory)
4390 (default_child_has_stack, default_child_has_registers)
4391 (default_child_has_execution): Remove target_ops parameter.
4392 (complete_target_initialization): Delete.
4393 (memory_breakpoint_target): New template class.
4394 (test_target_ops): Refactor as a C++ class with virtual methods.
4395 * make-target-delegates (NAME_PART): Tighten.
4396 (POINTER_PART, CP_SYMBOL): New.
4397 (SIMPLE_RETURN_PART): Reimplement.
4398 (VEC_RETURN_PART): Expect less.
4399 (RETURN_PART, VIRTUAL_PART): New.
4400 (METHOD): Adjust to C++ virtual methods.
4401 (scan_target_h): Remove reference to C99.
4402 (dname): Output "target_ops::" prefix.
4403 (write_function_header): Adjust to output a C++ class method.
4404 (write_declaration): New.
4405 (write_delegator): Adjust to output a C++ class method.
4406 (tdname): Output "dummy_target::" prefix.
4407 (write_tdefault, write_debugmethod): Adjust to output a C++ class
4409 (tdefault_names, debug_names): Delete.
4410 (return_types, tdefaults, styles, argtypes_array): New.
4411 (top level): All methods are delegators.
4413 (top level): Print dummy_target and debug_target classes.
4414 * target-delegates.c: Regenerate.
4415 * target-debug.h (target_debug_print_enum_info_proc_what)
4416 (target_debug_print_thread_control_capabilities)
4417 (target_debug_print_thread_info_p): New.
4418 * target.c (dummy_target): Delete.
4419 (the_dummy_target, the_debug_target): New.
4420 (target_stack): Now extern.
4421 (set_targetdebug): Push/unpush debug target.
4422 (default_child_has_all_memory, default_child_has_memory)
4423 (default_child_has_stack, default_child_has_registers)
4424 (default_child_has_execution): Remove target_ops parameter.
4425 (complete_target_initialization): Delete.
4426 (add_target_with_completer): No longer call
4427 complete_target_initialization.
4428 (target_supports_terminal_ours): Use regular delegation.
4429 (update_current_target): Delete.
4430 (push_target): No longer check magic number. Don't call
4431 update_current_target.
4432 (unpush_target): Don't call update_current_target.
4433 (target_is_pushed): No longer check magic number.
4434 (target_require_runnable): Skip for all stratums over
4436 (target_ops::info_proc): New.
4437 (target_info_proc): Use find_target_at and
4438 find_default_run_target.
4439 (target_supports_disable_randomization): Use regular delegation.
4440 (target_get_osdata): Use find_target_at.
4441 (target_ops::open, target_ops::close, target_ops::can_attach)
4442 (target_ops::attach, target_ops::can_create_inferior)
4443 (target_ops::create_inferior, target_ops::can_run)
4444 (target_can_run): New.
4445 (default_fileio_target): Use regular delegation.
4446 (target_ops::fileio_open, target_ops::fileio_pwrite)
4447 (target_ops::fileio_pread, target_ops::fileio_fstat)
4448 (target_ops::fileio_close, target_ops::fileio_unlink)
4449 (target_ops::fileio_readlink): New.
4450 (target_fileio_open_1, target_fileio_unlink)
4451 (target_fileio_readlink): Always call the target method. Handle
4453 (return_zero, return_zero_has_execution): Delete.
4454 (init_dummy_target): Delete.
4455 (dummy_target::dummy_target, dummy_target::shortname)
4456 (dummy_target::longname, dummy_target::doc)
4457 (debug_target::debug_target, debug_target::shortname)
4458 (debug_target::longname, debug_target::doc): New.
4459 (target_supports_delete_record): Use regular delegation.
4460 (setup_target_debug): Delete.
4461 (maintenance_print_target_stack): Skip debug_stratum.
4462 (initialize_targets): Instantiate the_dummy_target and
4464 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
4466 (target_auxv_search, fprint_target_auxv): Adjust.
4467 (info_auxv_command): Adjust to use target_stack.
4468 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
4469 * exceptions.c (print_flush): Handle a NULL target_stack.
4470 * regcache.c (target_ops_no_register): Refactor as class with
4473 * exec.c (exec_target): New class.
4474 (exec_ops): Now an exec_target.
4475 (exec_open, exec_close_1, exec_get_section_table)
4476 (exec_xfer_partial, exec_files_info, exec_has_memory)
4477 (exec_make_note_section): Refactor as exec_target methods.
4478 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
4480 (exec_target::find_memory_regions): New.
4481 (_initialize_exec): Don't call init_exec_ops.
4482 * gdbcore.h (exec_file_clear): Delete.
4484 * corefile.c (core_target): Delete.
4485 (core_file_command): Adjust.
4486 * corelow.c (core_target): New class.
4487 (the_core_target): New.
4488 (core_close): Remove target_ops parameter.
4489 (core_close_cleanup): Adjust.
4490 (core_target::close): New.
4491 (core_open, core_detach, get_core_registers, core_files_info)
4492 (core_xfer_partial, core_thread_alive, core_read_description)
4493 (core_pid_to_str, core_thread_name, core_has_memory)
4494 (core_has_stack, core_has_registers, core_info_proc): Rework as
4495 core_target methods.
4496 (ignore, core_remove_breakpoint, init_core_ops): Delete.
4497 (_initialize_corelow): Initialize the_core_target.
4498 * gdbcore.h (core_target): Delete.
4499 (the_core_target): New.
4501 * ctf.c: (ctf_target): New class.
4502 (ctf_ops): Now a ctf_target.
4503 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
4504 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
4505 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
4507 (init_ctf_ops): Delete.
4508 (_initialize_ctf): Don't call it.
4509 * tracefile-tfile.c (tfile_target): New class.
4510 (tfile_ops): Now a tfile_target.
4511 (tfile_open, tfile_close, tfile_files_info)
4512 (tfile_get_tracepoint_status, tfile_trace_find)
4513 (tfile_fetch_registers, tfile_xfer_partial)
4514 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
4515 Refactor as tfile_target methods.
4516 (tfile_xfer_partial_features): Remove target_ops parameter.
4517 (init_tfile_ops): Delete.
4518 (_initialize_tracefile_tfile): Don't call it.
4519 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
4520 (tracefile_has_stack, tracefile_has_registers)
4521 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
4522 tracefile_target methods.
4523 (init_tracefile_ops): Delete.
4524 (tracefile_target::tracefile_target): New.
4525 * tracefile.h: Include "target.h".
4526 (tracefile_target): New class.
4527 (init_tracefile_ops): Delete.
4529 * spu-multiarch.c (spu_multiarch_target): New class.
4530 (spu_ops): Now a spu_multiarch_target.
4531 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
4532 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4533 (spu_search_memory, spu_mourn_inferior): Refactor as
4534 spu_multiarch_target methods.
4535 (init_spu_ops): Delete.
4536 (_initialize_spu_multiarch): Remove references to init_spu_ops,
4537 complete_target_initialization.
4539 * ravenscar-thread.c (ravenscar_thread_target): New class.
4540 (ravenscar_ops): Now a ravenscar_thread_target.
4541 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
4542 (ravenscar_thread_alive, ravenscar_pid_to_str)
4543 (ravenscar_fetch_registers, ravenscar_store_registers)
4544 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
4545 (ravenscar_stopped_by_hw_breakpoint)
4546 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
4547 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
4548 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
4550 (init_ravenscar_thread_ops): Delete.
4551 (_initialize_ravenscar): Remove references to
4552 init_ravenscar_thread_ops and complete_target_initialization.
4554 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
4555 (bsd_uthread_target): New class.
4556 (bsd_uthread_ops): Now a bsd_uthread_target.
4557 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
4558 (bsd_uthread_close, bsd_uthread_mourn_inferior)
4559 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
4560 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
4561 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
4562 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
4563 (bsd_uthread_target): Delete function.
4564 (_initialize_bsd_uthread): Remove reference to
4565 complete_target_initialization.
4567 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
4568 (target_bfd): ... this new class.
4569 (target_bfd_xfer_partial, target_bfd_get_section_table)
4570 (target_bfd_close): Refactor as target_bfd methods.
4571 (target_bfd::~target_bfd): New.
4572 (target_bfd_reopen): Adjust.
4573 (target_bfd::close): New.
4575 * record-btrace.c (record_btrace_target): New class.
4576 (record_btrace_ops): Now a record_btrace_target.
4577 (record_btrace_open, record_btrace_stop_recording)
4578 (record_btrace_disconnect, record_btrace_close)
4579 (record_btrace_async, record_btrace_info)
4580 (record_btrace_insn_history, record_btrace_insn_history_range)
4581 (record_btrace_insn_history_from, record_btrace_call_history)
4582 (record_btrace_call_history_range)
4583 (record_btrace_call_history_from, record_btrace_record_method)
4584 (record_btrace_is_replaying, record_btrace_will_replay)
4585 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4586 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
4587 (record_btrace_store_registers, record_btrace_prepare_to_store)
4588 (record_btrace_to_get_unwinder)
4589 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
4590 (record_btrace_commit_resume, record_btrace_wait)
4591 (record_btrace_stop, record_btrace_can_execute_reverse)
4592 (record_btrace_stopped_by_sw_breakpoint)
4593 (record_btrace_supports_stopped_by_sw_breakpoint)
4594 (record_btrace_stopped_by_hw_breakpoint)
4595 (record_btrace_supports_stopped_by_hw_breakpoint)
4596 (record_btrace_update_thread_list, record_btrace_thread_alive)
4597 (record_btrace_goto_begin, record_btrace_goto_end)
4598 (record_btrace_goto, record_btrace_stop_replaying_all)
4599 (record_btrace_execution_direction)
4600 (record_btrace_prepare_to_generate_core)
4601 (record_btrace_done_generating_core): Refactor as
4602 record_btrace_target methods.
4603 (init_record_btrace_ops): Delete.
4604 (_initialize_record_btrace): Remove reference to
4605 init_record_btrace_ops.
4606 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
4607 the execution_direction global.
4608 (record_full_base_target, record_full_target)
4609 (record_full_core_target): New classes.
4610 (record_full_ops): Now a record_full_target.
4611 (record_full_core_ops): Now a record_full_core_target.
4612 (record_full_target::detach, record_full_target::disconnect)
4613 (record_full_core_target::disconnect)
4614 (record_full_target::mourn_inferior, record_full_target::kill):
4616 (record_full_open, record_full_close, record_full_async): Refactor
4617 as methods of the record_full_base_target class.
4618 (record_full_resume, record_full_commit_resume): Refactor
4619 as methods of the record_full_target class.
4620 (record_full_wait, record_full_stopped_by_watchpoint)
4621 (record_full_stopped_data_address)
4622 (record_full_stopped_by_sw_breakpoint)
4623 (record_full_supports_stopped_by_sw_breakpoint)
4624 (record_full_stopped_by_hw_breakpoint)
4625 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
4626 methods of the record_full_base_target class.
4627 (record_full_store_registers, record_full_xfer_partial)
4628 (record_full_insert_breakpoint, record_full_remove_breakpoint):
4629 Refactor as methods of the record_full_target class.
4630 (record_full_can_execute_reverse, record_full_get_bookmark)
4631 (record_full_goto_bookmark, record_full_execution_direction)
4632 (record_full_record_method, record_full_info, record_full_delete)
4633 (record_full_is_replaying, record_full_will_replay)
4634 (record_full_goto_begin, record_full_goto_end, record_full_goto)
4635 (record_full_stop_replaying): Refactor as methods of the
4636 record_full_base_target class.
4637 (record_full_core_resume, record_full_core_kill)
4638 (record_full_core_fetch_registers)
4639 (record_full_core_prepare_to_store)
4640 (record_full_core_store_registers, record_full_core_xfer_partial)
4641 (record_full_core_insert_breakpoint)
4642 (record_full_core_remove_breakpoint)
4643 (record_full_core_has_execution): Refactor
4644 as methods of the record_full_core_target class.
4645 (record_full_base_target::supports_delete_record): New.
4646 (init_record_full_ops): Delete.
4647 (init_record_full_core_ops): Delete.
4648 (record_full_save): Refactor as method of the
4649 record_full_base_target class.
4650 (_initialize_record_full): Remove references to
4651 init_record_full_ops and init_record_full_core_ops.
4653 * remote.c (remote_target, extended_remote_target): New classes.
4654 (remote_ops): Now a remote_target.
4655 (extended_remote_ops): Now an extended_remote_target.
4656 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
4657 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
4658 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
4659 (remote_pass_signals, remote_set_syscall_catchpoint)
4660 (remote_program_signals, )
4661 (remote_thread_always_alive): Remove target_ops parameter.
4662 (remote_thread_alive, remote_thread_name)
4663 (remote_update_thread_list, remote_threads_extra_info)
4664 (remote_static_tracepoint_marker_at)
4665 (remote_static_tracepoint_markers_by_strid)
4666 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
4667 (remote_open): Refactor as methods of remote_target.
4668 (extended_remote_open, extended_remote_detach)
4669 (extended_remote_attach, extended_remote_post_attach):
4670 (extended_remote_supports_disable_randomization)
4671 (extended_remote_create_inferior): : Refactor as method of
4672 extended_remote_target.
4673 (remote_set_permissions, remote_open_1, remote_detach)
4674 (remote_follow_fork, remote_follow_exec, remote_disconnect)
4675 (remote_resume, remote_commit_resume, remote_stop)
4676 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
4677 (remote_terminal_ours, remote_wait, remote_fetch_registers)
4678 (remote_prepare_to_store, remote_store_registers)
4679 (remote_flash_erase, remote_flash_done, remote_files_info)
4680 (remote_kill, remote_mourn, remote_insert_breakpoint)
4681 (remote_remove_breakpoint, remote_insert_watchpoint)
4682 (remote_watchpoint_addr_within_range)
4683 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
4684 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
4685 (remote_supports_stopped_by_sw_breakpoint)
4686 (remote_stopped_by_hw_breakpoint)
4687 (remote_supports_stopped_by_hw_breakpoint)
4688 (remote_stopped_by_watchpoint, remote_stopped_data_address)
4689 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4690 (remote_verify_memory): Refactor as methods of remote_target.
4691 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
4693 (remote_xfer_partial, remote_get_memory_xfer_limit)
4694 (remote_search_memory, remote_rcmd, remote_memory_map)
4695 (remote_pid_to_str, remote_get_thread_local_address)
4696 (remote_get_tib_address, remote_read_description): Refactor as
4697 methods of remote_target.
4698 (remote_target::fileio_open, remote_target::fileio_pwrite)
4699 (remote_target::fileio_pread, remote_target::fileio_close): New.
4700 (remote_hostio_readlink, remote_hostio_fstat)
4701 (remote_filesystem_is_local, remote_can_execute_reverse)
4702 (remote_supports_non_stop, remote_supports_disable_randomization)
4703 (remote_supports_multi_process, remote_supports_cond_breakpoints)
4704 (remote_supports_enable_disable_tracepoint)
4705 (remote_supports_string_tracing)
4706 (remote_can_run_breakpoint_commands, remote_trace_init)
4707 (remote_download_tracepoint, remote_can_download_tracepoint)
4708 (remote_download_trace_state_variable, remote_enable_tracepoint)
4709 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
4710 (remote_trace_start, remote_get_trace_status)
4711 (remote_get_tracepoint_status, remote_trace_stop)
4712 (remote_trace_find, remote_get_trace_state_variable_value)
4713 (remote_save_trace_data, remote_get_raw_trace_data)
4714 (remote_set_disconnected_tracing, remote_core_of_thread)
4715 (remote_set_circular_trace_buffer, remote_traceframe_info)
4716 (remote_get_min_fast_tracepoint_insn_len)
4717 (remote_set_trace_buffer_size, remote_set_trace_notes)
4718 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
4719 (remote_disable_btrace, remote_teardown_btrace)
4720 (remote_read_btrace, remote_btrace_conf)
4721 (remote_augmented_libraries_svr4_read, remote_load)
4722 (remote_pid_to_exec_file, remote_can_do_single_step)
4723 (remote_execution_direction, remote_thread_handle_to_thread_info):
4724 Refactor as methods of remote_target.
4725 (init_remote_ops, init_extended_remote_ops): Delete.
4726 (remote_can_async_p, remote_is_async_p, remote_async)
4727 (remote_thread_events, remote_upload_tracepoints)
4728 (remote_upload_trace_state_variables): Refactor as methods of
4730 (_initialize_remote): Remove references to init_remote_ops and
4731 init_extended_remote_ops.
4733 * remote-sim.c (gdbsim_target): New class.
4734 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
4735 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
4736 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
4737 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
4738 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
4739 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
4740 Refactor as methods of gdbsim_target.
4741 (gdbsim_ops): Now a gdbsim_target.
4742 (init_gdbsim_ops): Delete.
4743 (gdbsim_cntrl_c): Adjust.
4744 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
4746 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
4747 (the_amd64_linux_nat_target): New.
4748 (amd64_linux_fetch_inferior_registers)
4749 (amd64_linux_store_inferior_registers): Refactor as methods of
4750 amd64_linux_nat_target.
4751 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
4752 * i386-linux-nat.c: Don't include "linux-nat.h".
4753 (i386_linux_nat_target): New class.
4754 (the_i386_linux_nat_target): New.
4755 (i386_linux_fetch_inferior_registers)
4756 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
4757 as methods of i386_linux_nat_target.
4758 (_initialize_i386_linux_nat): Adjust. Set linux_target.
4759 * inf-child.c (inf_child_ops): Delete.
4760 (inf_child_fetch_inferior_registers)
4761 (inf_child_store_inferior_registers): Delete.
4762 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
4763 methods of inf_child_target.
4764 (inf_child_target::supports_terminal_ours)
4765 (inf_child_target::terminal_init)
4766 (inf_child_target::terminal_inferior)
4767 (inf_child_target::terminal_ours_for_output)
4768 (inf_child_target::terminal_ours, inf_child_target::interrupt)
4769 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
4771 (inf_child_open, inf_child_disconnect, inf_child_close)
4772 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
4773 (inf_child_post_startup_inferior, inf_child_can_run)
4774 (inf_child_pid_to_exec_file): Refactor as methods of
4776 (inf_child_follow_fork): Delete.
4777 (inf_child_target::can_create_inferior)
4778 (inf_child_target::can_attach): New.
4779 (inf_child_target::has_all_memory, inf_child_target::has_memory)
4780 (inf_child_target::has_stack, inf_child_target::has_registers)
4781 (inf_child_target::has_execution): New.
4782 (inf_child_fileio_open, inf_child_fileio_pwrite)
4783 (inf_child_fileio_pread, inf_child_fileio_fstat)
4784 (inf_child_fileio_close, inf_child_fileio_unlink)
4785 (inf_child_fileio_readlink, inf_child_use_agent)
4786 (inf_child_can_use_agent): Refactor as methods of
4788 (return_zero, inf_child_target): Delete.
4789 (inf_child_target::inf_child_target): New.
4790 * inf-child.h: Include "target.h".
4791 (inf_child_target): Delete function prototype.
4792 (inf_child_target): New class.
4793 (inf_child_open_target, inf_child_mourn_inferior)
4794 (inf_child_maybe_unpush_target): Delete.
4795 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
4796 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
4797 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
4798 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
4799 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
4800 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
4801 (inf_ptrace_wait, inf_ptrace_xfer_partial)
4802 (inf_ptrace_thread_alive, inf_ptrace_files_info)
4803 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
4804 methods of inf_ptrace_target.
4805 (inf_ptrace_target): Delete function.
4806 * inf-ptrace.h: Include "inf-child.h".
4807 (inf_ptrace_target): Delete function declaration.
4808 (inf_ptrace_target): New class.
4809 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
4810 * linux-nat.c (linux_target): New.
4811 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
4812 (linux_nat_target::~linux_nat_target): New.
4813 (linux_child_post_attach, linux_child_post_startup_inferior)
4814 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
4815 (linux_child_remove_fork_catchpoint)
4816 (linux_child_insert_vfork_catchpoint)
4817 (linux_child_remove_vfork_catchpoint)
4818 (linux_child_insert_exec_catchpoint)
4819 (linux_child_remove_exec_catchpoint)
4820 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
4821 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
4822 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
4823 (linux_nat_stopped_data_address)
4824 (linux_nat_stopped_by_sw_breakpoint)
4825 (linux_nat_supports_stopped_by_sw_breakpoint)
4826 (linux_nat_stopped_by_hw_breakpoint)
4827 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
4828 (linux_nat_kill, linux_nat_mourn_inferior)
4829 (linux_nat_xfer_partial, linux_nat_thread_alive)
4830 (linux_nat_update_thread_list, linux_nat_pid_to_str)
4831 (linux_nat_thread_name, linux_child_pid_to_exec_file)
4832 (linux_child_static_tracepoint_markers_by_strid)
4833 (linux_nat_is_async_p, linux_nat_can_async_p)
4834 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
4835 (linux_nat_supports_multi_process)
4836 (linux_nat_supports_disable_randomization, linux_nat_async)
4837 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
4838 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
4839 (linux_nat_fileio_open, linux_nat_fileio_readlink)
4840 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
4841 methods of linux_nat_target.
4842 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
4843 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
4845 (check_stopped_by_watchpoint): Adjust.
4846 (linux_xfer_partial): Delete.
4847 (linux_target_install_ops, linux_target, linux_nat_add_target):
4849 (linux_nat_target::linux_nat_target): New.
4850 * linux-nat.h: Include "inf-ptrace.h".
4851 (linux_nat_target): New.
4852 (linux_target, linux_target_install_ops, linux_nat_add_target):
4853 Delete function declarations.
4854 (linux_target): Declare global.
4855 * linux-thread-db.c (thread_db_target): New.
4856 (thread_db_target::thread_db_target): New.
4857 (thread_db_ops): Delete.
4858 (the_thread_db_target): New.
4859 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
4860 (thread_db_update_thread_list, thread_db_pid_to_str)
4861 (thread_db_extra_thread_info)
4862 (thread_db_thread_handle_to_thread_info)
4863 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
4864 (thread_db_resume): Refactor as methods of thread_db_target.
4865 (init_thread_db_ops): Delete.
4866 (_initialize_thread_db): Remove reference to init_thread_db_ops.
4867 * x86-linux-nat.c: Don't include "linux-nat.h".
4868 (super_post_startup_inferior): Delete.
4869 (x86_linux_nat_target::~x86_linux_nat_target): New.
4870 (x86_linux_child_post_startup_inferior)
4871 (x86_linux_read_description, x86_linux_enable_btrace)
4872 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
4873 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
4874 methods of x86_linux_nat_target.
4875 (x86_linux_create_target): Delete. Bits folded ...
4876 (x86_linux_add_target): ... here. Now takes a linux_nat_target
4878 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
4879 (x86_linux_nat_target): New class.
4880 (x86_linux_create_target): Delete.
4881 (x86_linux_add_target): Now takes a linux_nat_target pointer.
4882 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
4883 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
4884 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
4885 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
4886 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
4888 (x86_use_watchpoints): Delete.
4889 * x86-nat.h: Include "breakpoint.h" and "target.h".
4890 (x86_use_watchpoints): Delete.
4891 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
4892 (x86_stopped_by_watchpoint, x86_stopped_data_address)
4893 (x86_insert_watchpoint, x86_remove_watchpoint)
4894 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
4895 (x86_stopped_by_hw_breakpoint): New declarations.
4896 (x86_nat_target): New template class.
4898 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
4899 (the_ppc_linux_nat_target): New.
4900 (ppc_linux_fetch_inferior_registers)
4901 (ppc_linux_can_use_hw_breakpoint)
4902 (ppc_linux_region_ok_for_hw_watchpoint)
4903 (ppc_linux_ranged_break_num_registers)
4904 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
4905 (ppc_linux_insert_mask_watchpoint)
4906 (ppc_linux_remove_mask_watchpoint)
4907 (ppc_linux_can_accel_watchpoint_condition)
4908 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
4909 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
4910 (ppc_linux_watchpoint_addr_within_range)
4911 (ppc_linux_masked_watch_num_registers)
4912 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
4913 (ppc_linux_read_description): Refactor as methods of
4914 ppc_linux_nat_target.
4915 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
4917 * procfs.c (procfs_xfer_partial): Delete forward declaration.
4918 (procfs_target): New class.
4919 (the_procfs_target): New.
4920 (procfs_target): Delete function.
4921 (procfs_auxv_parse, procfs_attach, procfs_detach)
4922 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
4923 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
4924 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
4925 (procfs_create_inferior, procfs_update_thread_list)
4926 (procfs_thread_alive, procfs_pid_to_str)
4927 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
4928 (procfs_stopped_data_address, procfs_insert_watchpoint)
4929 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
4930 (proc_find_memory_regions, procfs_info_proc)
4931 (procfs_make_note_section): Refactor as methods of procfs_target.
4932 (_initialize_procfs): Adjust.
4933 * sol-thread.c (sol_thread_target): New class.
4934 (sol_thread_ops): Now a sol_thread_target.
4935 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
4936 (sol_thread_fetch_registers, sol_thread_store_registers)
4937 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
4938 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
4939 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
4940 (init_sol_thread_ops): Delete.
4941 (_initialize_sol_thread): Adjust. Remove references to
4942 init_sol_thread_ops and complete_target_initialization.
4944 * windows-nat.c (windows_nat_target): New class.
4945 (windows_fetch_inferior_registers)
4946 (windows_store_inferior_registers, windows_resume, windows_wait)
4947 (windows_attach, windows_detach, windows_pid_to_exec_file)
4948 (windows_files_info, windows_create_inferior)
4949 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
4950 (windows_close, windows_pid_to_str, windows_xfer_partial)
4951 (windows_get_tib_address, windows_get_ada_task_ptid)
4952 (windows_thread_name, windows_thread_alive): Refactor as
4953 windows_nat_target methods.
4954 (do_initial_windows_stuff): Adjust.
4955 (windows_target): Delete function.
4956 (_initialize_windows_nat): Adjust.
4958 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
4959 (darwin_mourn_inferior, darwin_kill_inferior)
4960 (darwin_create_inferior, darwin_attach, darwin_detach)
4961 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
4962 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
4963 (darwin_supports_multi_process): Refactor as darwin_nat_target
4965 (darwin_resume_to, darwin_files_info): Delete.
4966 (_initialize_darwin_inferior): Rename to ...
4967 (_initialize_darwin_nat): ... this. Adjust to C++ification.
4968 * darwin-nat.h: Include "inf-child.h".
4969 (darwin_nat_target): New class.
4970 (darwin_complete_target): Delete.
4971 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
4972 (darwin_target): New.
4973 (i386_darwin_fetch_inferior_registers)
4974 (i386_darwin_store_inferior_registers): Refactor as methods of
4976 (darwin_complete_target): Delete, with ...
4977 (_initialize_i386_darwin_nat): ... bits factored out here.
4979 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
4980 (the_alpha_linux_nat_target): New.
4981 (alpha_linux_register_u_offset): Refactor as
4982 alpha_linux_nat_target method.
4983 (_initialize_alpha_linux_nat): Adjust.
4984 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
4985 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
4986 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
4987 methods of linux_nat_trad_target.
4988 (linux_trad_target): Delete.
4989 * linux-nat-trad.h (linux_trad_target): Delete function.
4990 (linux_nat_trad_target): New class.
4991 * mips-linux-nat.c (mips_linux_nat_target): New class.
4992 (super_fetch_registers, super_store_registers, super_close):
4994 (the_mips_linux_nat_target): New.
4995 (mips64_linux_regsets_fetch_registers)
4996 (mips64_linux_regsets_store_registers)
4997 (mips64_linux_fetch_registers, mips64_linux_store_registers)
4998 (mips_linux_register_u_offset, mips_linux_read_description)
4999 (mips_linux_can_use_hw_breakpoint)
5000 (mips_linux_stopped_by_watchpoint)
5001 (mips_linux_stopped_data_address)
5002 (mips_linux_region_ok_for_hw_watchpoint)
5003 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
5004 (mips_linux_close): Refactor as methods of mips_linux_nat.
5005 (_initialize_mips_linux_nat): Adjust to C++ification.
5007 * aix-thread.c (aix_thread_target): New class.
5008 (aix_thread_ops): Now an aix_thread_target.
5009 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
5010 (aix_thread_fetch_registers, aix_thread_store_registers)
5011 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
5012 (aix_thread_thread_alive, aix_thread_pid_to_str)
5013 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
5014 Refactor as methods of aix_thread_target.
5015 (init_aix_thread_ops): Delete.
5016 (_initialize_aix_thread): Remove references to init_aix_thread_ops
5017 and complete_target_initialization.
5018 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
5019 (rs6000_nat_target): New class.
5020 (the_rs6000_nat_target): New.
5021 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
5022 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
5023 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
5024 (super_create_inferior): Delete.
5025 (_initialize_rs6000_nat): Adjust to C++ification.
5027 * arm-linux-nat.c (arm_linux_nat_target): New class.
5028 (the_arm_linux_nat_target): New.
5029 (arm_linux_fetch_inferior_registers)
5030 (arm_linux_store_inferior_registers, arm_linux_read_description)
5031 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
5032 (arm_linux_remove_hw_breakpoint)
5033 (arm_linux_region_ok_for_hw_watchpoint)
5034 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
5035 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
5036 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
5037 arm_linux_nat_target.
5038 (_initialize_arm_linux_nat): Adjust to C++ification.
5040 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
5041 (the_aarch64_linux_nat_target): New.
5042 (aarch64_linux_fetch_inferior_registers)
5043 (aarch64_linux_store_inferior_registers)
5044 (aarch64_linux_child_post_startup_inferior)
5045 (aarch64_linux_read_description)
5046 (aarch64_linux_can_use_hw_breakpoint)
5047 (aarch64_linux_insert_hw_breakpoint)
5048 (aarch64_linux_remove_hw_breakpoint)
5049 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
5050 (aarch64_linux_region_ok_for_hw_watchpoint)
5051 (aarch64_linux_stopped_data_address)
5052 (aarch64_linux_stopped_by_watchpoint)
5053 (aarch64_linux_watchpoint_addr_within_range)
5054 (aarch64_linux_can_do_single_step): Refactor as methods of
5055 aarch64_linux_nat_target.
5056 (super_post_startup_inferior): Delete.
5057 (_initialize_aarch64_linux_nat): Adjust to C++ification.
5059 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
5060 (the_hppa_linux_nat_target): New.
5061 (hppa_linux_fetch_inferior_registers)
5062 (hppa_linux_store_inferior_registers): Refactor as methods of
5063 hppa_linux_nat_target.
5064 (_initialize_hppa_linux_nat): Adjust to C++ification.
5066 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
5067 (the_ia64_linux_nat_target): New.
5068 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
5069 (ia64_linux_stopped_data_address)
5070 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
5071 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
5072 ia64_linux_nat_target methods.
5073 (super_xfer_partial): Delete.
5074 (_initialize_ia64_linux_nat): Adjust to C++ification.
5076 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
5077 (the_m32r_linux_nat_target): New.
5078 (m32r_linux_fetch_inferior_registers)
5079 (m32r_linux_store_inferior_registers): Refactor as
5080 m32r_linux_nat_target methods.
5081 (_initialize_m32r_linux_nat): Adjust to C++ification.
5083 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
5084 (the_m68k_linux_nat_target): New.
5085 (m68k_linux_fetch_inferior_registers)
5086 (m68k_linux_store_inferior_registers): Refactor as
5087 m68k_linux_nat_target methods.
5088 (_initialize_m68k_linux_nat): Adjust to C++ification.
5090 * s390-linux-nat.c (s390_linux_nat_target): New class.
5091 (the_s390_linux_nat_target): New.
5092 (s390_linux_fetch_inferior_registers)
5093 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
5094 (s390_insert_watchpoint, s390_remove_watchpoint)
5095 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
5096 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
5097 (s390_auxv_parse, s390_read_description): Refactor as methods of
5098 s390_linux_nat_target.
5099 (_initialize_s390_nat): Adjust to C++ification.
5101 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
5102 (the_sparc_linux_nat_target): New.
5103 (_initialize_sparc_linux_nat): Adjust to C++ification.
5104 * sparc-nat.c (sparc_fetch_inferior_registers)
5105 (sparc_store_inferior_registers): Remove target_ops parameter.
5106 * sparc-nat.h (sparc_fetch_inferior_registers)
5107 (sparc_store_inferior_registers): Remove target_ops parameter.
5108 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
5109 (the_sparc64_linux_nat_target): New.
5110 (_initialize_sparc64_linux_nat): Adjust to C++ification.
5112 * spu-linux-nat.c (spu_linux_nat_target): New class.
5113 (the_spu_linux_nat_target): New.
5114 (spu_child_post_startup_inferior, spu_child_post_attach)
5115 (spu_child_wait, spu_fetch_inferior_registers)
5116 (spu_store_inferior_registers, spu_xfer_partial)
5117 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
5119 (_initialize_spu_nat): Adjust to C++ification.
5121 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
5122 (the_tilegx_linux_nat_target): New.
5123 (fetch_inferior_registers, store_inferior_registers):
5124 Refactor as methods.
5125 (_initialize_tile_linux_nat): Adjust to C++ification.
5127 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
5128 (the_xtensa_linux_nat_target): New.
5129 (xtensa_linux_fetch_inferior_registers)
5130 (xtensa_linux_store_inferior_registers): Refactor as
5131 xtensa_linux_nat_target methods.
5132 (_initialize_xtensa_linux_nat): Adjust to C++ification.
5134 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
5135 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
5136 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
5137 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
5138 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
5139 (fbsd_stopped_by_sw_breakpoint)
5140 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
5141 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
5142 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
5143 (fbsd_post_startup_inferior, fbsd_post_attach)
5144 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
5145 (fbsd_set_syscall_catchpoint)
5146 (super_xfer_partial, super_resume, super_wait)
5147 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
5148 (fbsd_handle_debug_trap): Remove target_ops parameter.
5149 (fbsd_nat_add_target): Delete.
5150 * fbsd-nat.h: Include "inf-ptrace.h".
5151 (fbsd_nat_add_target): Delete.
5152 (USE_SIGTRAP_SIGINFO): Define.
5153 (fbsd_nat_target): New class.
5155 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
5156 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
5157 (amd64bsd_target): Delete.
5158 * amd64-bsd-nat.h: New file.
5159 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
5161 (amd64_fbsd_nat_target): New class.
5162 (the_amd64_fbsd_nat_target): New.
5163 (amd64fbsd_read_description): Refactor as method of
5164 amd64_fbsd_nat_target.
5165 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
5166 (_initialize_amd64fbsd_nat): Adjust to C++ification.
5167 * amd64-nat.h (amd64bsd_target): Delete function declaration.
5168 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
5169 (i386bsd_store_inferior_registers): Remove target_ops parameter.
5170 (i386bsd_target): Delete.
5171 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
5172 (i386bsd_fetch_inferior_registers)
5173 (i386bsd_store_inferior_registers): Declare.
5174 (i386_bsd_nat_target): New class.
5175 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
5176 (the_i386_fbsd_nat_target): New.
5177 (i386fbsd_resume, i386fbsd_read_description): Refactor as
5178 i386_fbsd_nat_target methods.
5179 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
5180 (_initialize_i386fbsd_nat): Adjust to C++ification.
5181 * x86-bsd-nat.c (super_mourn_inferior): Delete.
5182 (x86bsd_mourn_inferior, x86bsd_target): Delete.
5183 (_initialize_x86_bsd_nat): Adjust to C++ification.
5184 * x86-bsd-nat.h: Include "x86-nat.h".
5185 (x86bsd_target): Delete declaration.
5186 (x86bsd_nat_target): New class.
5188 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
5189 (the_aarch64_fbsd_nat_target): New.
5190 (aarch64_fbsd_fetch_inferior_registers)
5191 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
5192 aarch64_fbsd_nat_target.
5193 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
5194 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
5195 (the_alpha_bsd_nat_target): New.
5196 (alphabsd_fetch_inferior_registers)
5197 (alphabsd_store_inferior_registers): Refactor as
5198 alpha_bsd_nat_target methods.
5199 (_initialize_alphabsd_nat): Refactor as methods of
5200 alpha_bsd_nat_target.
5201 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
5202 (the_amd64_nbsd_nat_target): New.
5203 (_initialize_amd64nbsd_nat): Adjust to C++ification.
5204 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
5205 (the_amd64_obsd_nat_target): New.
5206 (_initialize_amd64obsd_nat): Adjust to C++ification.
5207 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
5208 (the_arm_fbsd_nat_target): New.
5209 (arm_fbsd_fetch_inferior_registers)
5210 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
5211 (_initialize_arm_fbsd_nat): Refactor as methods of
5212 arm_fbsd_nat_target.
5213 (_initialize_arm_fbsd_nat): Adjust to C++ification.
5214 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
5215 (the_arm_netbsd_nat_target): New.
5216 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
5217 arm_netbsd_nat_target.
5218 (_initialize_arm_netbsd_nat): Adjust to C++ification.
5219 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
5220 (the_hppa_nbsd_nat_target): New.
5221 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
5222 hppa_nbsd_nat_target methods.
5223 (_initialize_hppanbsd_nat): Adjust to C++ification.
5224 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
5225 (the_hppa_obsd_nat_target): New.
5226 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
5227 methods of hppa_obsd_nat_target.
5228 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
5230 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
5231 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
5233 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
5234 (_initialize_i386obsd_nat): Use add_target.
5235 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
5236 (the_m68k_bsd_nat_target): New.
5237 (m68kbsd_fetch_inferior_registers)
5238 (m68kbsd_store_inferior_registers): Refactor as methods of
5239 m68k_bsd_nat_target.
5240 (_initialize_m68kbsd_nat): Adjust to C++ification.
5241 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
5242 (the_mips_fbsd_nat_target): New.
5243 (mips_fbsd_fetch_inferior_registers)
5244 (mips_fbsd_store_inferior_registers): Refactor as methods of
5245 mips_fbsd_nat_target.
5246 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
5248 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
5249 (the_mips_nbsd_nat_target): New.
5250 (mipsnbsd_fetch_inferior_registers)
5251 (mipsnbsd_store_inferior_registers): Refactor as methods of
5252 mips_nbsd_nat_target.
5253 (_initialize_mipsnbsd_nat): Adjust to C++ification.
5254 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
5255 (the_mips64_obsd_nat_target): New.
5256 (mips64obsd_fetch_inferior_registers)
5257 (mips64obsd_store_inferior_registers): Refactor as methods of
5258 mips64_obsd_nat_target.
5259 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
5261 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
5263 * nbsd-nat.h: Include "inf-ptrace.h".
5264 (nbsd_nat_target): New class.
5265 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
5266 (obsd_wait): Refactor as methods of obsd_nat_target.
5267 (obsd_add_target): Delete.
5268 * obsd-nat.h: Include "inf-ptrace.h".
5269 (obsd_nat_target): New class.
5270 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
5271 (the_ppc_fbsd_nat_target): New.
5272 (ppcfbsd_fetch_inferior_registers)
5273 (ppcfbsd_store_inferior_registers): Refactor as methods of
5274 ppc_fbsd_nat_target.
5275 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
5277 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
5278 (the_ppc_nbsd_nat_target): New.
5279 (ppcnbsd_fetch_inferior_registers)
5280 (ppcnbsd_store_inferior_registers): Refactor as methods of
5281 ppc_nbsd_nat_target.
5282 (_initialize_ppcnbsd_nat): Adjust to C++ification.
5283 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
5284 (the_ppc_obsd_nat_target): New.
5285 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
5286 methods of ppc_obsd_nat_target.
5287 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
5289 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
5290 (the_sh_nbsd_nat_target): New.
5291 (shnbsd_fetch_inferior_registers)
5292 (shnbsd_store_inferior_registers): Refactor as methods of
5294 (_initialize_shnbsd_nat): Adjust to C++ification.
5295 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
5296 (inf_ptrace_xfer_partial): Delete.
5297 (sparc_xfer_partial, sparc_target): Delete.
5298 * sparc-nat.h (sparc_fetch_inferior_registers)
5299 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
5300 (sparc_target): Delete function declaration.
5301 (sparc_target): New template class.
5302 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
5303 (_initialize_sparcnbsd_nat): Adjust to C++ification.
5304 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
5305 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
5307 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
5308 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
5309 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
5310 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
5312 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
5313 (the_vax_bsd_nat_target): New.
5314 (vaxbsd_fetch_inferior_registers)
5315 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
5317 (_initialize_vaxbsd_nat): Adjust to C++ification.
5319 * bsd-kvm.c (bsd_kvm_target): New class.
5320 (bsd_kvm_ops): Now a bsd_kvm_target.
5321 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
5322 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
5323 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
5325 (bsd_kvm_return_one): Delete.
5326 (bsd_kvm_add_target): Adjust to C++ification.
5328 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
5329 (nto_procfs_target_procfs): New classes.
5330 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
5331 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
5332 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
5333 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
5334 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
5335 (procfs_remove_hw_breakpoint, procfs_resume)
5336 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
5337 (procfs_kill_inferior, procfs_store_registers)
5338 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
5339 as methods of nto_procfs_target.
5340 (nto_procfs_ops): Now an nto_procfs_target_procfs.
5341 (nto_native_ops): Delete.
5342 (procfs_open, procfs_native_open): Delete.
5343 (nto_native_ops): Now an nto_procfs_target_native.
5344 (init_procfs_targets): Adjust to C++ification.
5345 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
5346 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
5347 Refactor as methods of nto_procfs_target.
5349 * go32-nat.c (go32_nat_target): New class.
5350 (the_go32_nat_target): New.
5351 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
5352 (go32_store_registers, go32_xfer_partial, go32_files_info)
5353 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
5354 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
5355 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
5356 (go32_pid_to_str): Refactor as methods of go32_nat_target.
5357 (go32_target): Delete.
5358 (_initialize_go32_nat): Adjust to C++ification.
5360 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
5361 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
5362 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
5363 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
5365 (gnu_target): Delete.
5366 * gnu-nat.h (gnu_target): Delete.
5367 (gnu_nat_target): New class.
5368 * i386-gnu-nat.c (gnu_base_target): New.
5369 (i386_gnu_nat_target): New class.
5370 (the_i386_gnu_nat_target): New.
5371 (_initialize_i386gnu_nat): Adjust to C++ification.
5373 2018-05-02 Pedro Alves <palves@redhat.com>
5375 * bfd-target.c (target_bfd_xclose): Rename to ...
5376 (target_bfd_close): ... this.
5377 (target_bfd_reopen): Adjust.
5378 * target.c (target_close): Remove references to to_xclose.
5379 * target.h (target_ops::to_xclose): Delete.
5380 (target_ops::to_close): Update comments.
5382 2018-05-02 Pedro Alves <palves@redhat.com>
5384 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
5386 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
5387 * inf-ptrace.c (inf_ptrace_register_u_offset)
5388 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
5389 (inf_ptrace_store_register, inf_ptrace_store_registers)
5390 (inf_ptrace_trad_target): Move to ...
5391 * linux-nat-trad.c: ... this new file.
5392 * linux-nat-trad.h: New file.
5393 * linux-nat.c (linux_target_install_ops): Make extern.
5394 (linux_trad_target): Delete.
5395 * linux-nat.h (linux_trad_target): Delete declaration.
5396 (linux_target_install_ops): Declare.
5397 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
5400 2018-05-02 Pedro Alves <palves@redhat.com>
5402 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
5403 procfs_target/add_target here.
5404 * procfs.c (procfs_target): Make static.
5405 (_initialize_procfs): Call add_target here.
5406 * procfs.h (struct target_ops): Remove forward declaration.
5407 (procfs_target): Remove declaration.
5408 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
5410 2018-05-02 Pedro Alves <palves@redhat.com>
5412 * procfs.c (procfs_stopped_by_watchpoint)
5413 (procfs_insert_watchpoint, procfs_remove_watchpoint)
5414 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
5416 (procfs_use_watchpoints): Delete, move contents...
5417 (procfs_target): ... here.
5418 * procfs.h (procfs_use_watchpoints): Delete declaration.
5419 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
5420 procfs_use_watchpoints.
5421 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
5422 procfs_use_watchpoints.
5424 2018-05-02 Tom Tromey <tom@tromey.com>
5427 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
5428 and var_zuinteger_unlimited.
5429 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
5430 and PARAM_ZUINTEGER_UNLIMITED.
5431 (set_parameter_value): Handle var_zuinteger and
5432 var_zuinteger_unlimited.
5433 (add_setshow_generic): Likewise.
5434 (parmpy_init): Likewise.
5436 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
5439 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
5440 pointer is not null before dereferencing it.
5442 2018-04-30 Tom Tromey <tom@tromey.com>
5444 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
5447 2018-04-30 Tom Tromey <tom@tromey.com>
5449 * breakpoint.c (mention): Remove use of is_mi_like_p.
5450 (print_mention_ranged_breakpoint): Likewise.
5451 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
5454 2018-04-30 Tom Tromey <tom@tromey.com>
5456 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
5458 2018-04-30 Tom Tromey <tom@tromey.com>
5460 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
5461 (info_spu_event_command): Remove some uses of is_mi_like_p.
5463 2018-04-30 Tom Tromey <tom@tromey.com>
5465 * python/py-framefilter.c (py_print_single_arg)
5466 (enumerate_locals, py_print_args, py_print_frame): Remove some
5467 uses of is_mi_like_p.
5469 2018-04-30 Tom Tromey <tom@tromey.com>
5472 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
5473 * ui-out.h (ui_out::is_mi_like_p): Now const.
5474 (ui_out::do_is_mi_like_p): Now const.
5475 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
5477 2018-04-30 Tom Tromey <tom@tromey.com>
5479 * varobj.c (varobj_set_visualizer): Use new_reference.
5480 * python/python.c (gdbpy_decode_line): Use new_reference.
5481 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
5484 2018-04-30 Tom Tromey <tom@tromey.com>
5486 * varobj.c (install_new_value): Use new_reference.
5487 * value.h (value_incref): Return void. Swap intro comment with
5489 * value.c (set_value_parent): Use new_reference.
5490 (value_incref): Return void. Update intro comment.
5491 (release_value): Use new_reference.
5492 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
5494 2018-04-30 Tom Tromey <tom@tromey.com>
5496 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
5497 * gdb_bfd.h (new_bfd_ref): Remove.
5498 (gdb_bfd_open): Update comment.
5499 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5500 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
5501 (gdb_bfd_fdopenr): Use new_reference.
5502 * exec.c (exec_file_attach): Use new_reference.
5504 2018-04-30 Tom Tromey <tom@tromey.com>
5506 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
5509 2018-04-30 Tom Tromey <tom@tromey.com>
5511 * jit.c (jit_read_code_entry): Use type_align.
5512 * i386-tdep.c (i386_gdbarch_init): Don't call
5513 set_gdbarch_long_long_align_bit.
5514 * gdbarch.sh: Remove long_long_align_bit.
5515 * gdbarch.c, gdbarch.h: Rebuild.
5516 * arc-tdep.c (arc_type_align): New function.
5517 (arc_gdbarch_init): Use arc_type_align. Don't call
5518 set_gdbarch_long_long_align_bit.
5520 2018-04-30 Tom Tromey <tom@tromey.com>
5522 * rust-lang.c (rust_type_alignment): Remove.
5523 (rust_composite_type): Use type_align.
5525 2018-04-30 Tom Tromey <tom@tromey.com>
5527 * NEWS: Mention Type.align.
5528 * python/py-type.c (typy_get_alignof): New function.
5529 (type_object_getset): Add "alignof".
5531 2018-04-30 Tom Tromey <tom@tromey.com>
5535 * std-operator.def (UNOP_ALIGNOF): New operator.
5536 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
5538 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
5539 * c-lang.c (c_op_print_tab): Add alignof.
5540 * c-exp.y (ALIGNOF): New token.
5541 (exp): Add "ALIGNOF" production.
5542 (ident_tokens): Add _Alignof and alignof.
5544 2018-04-30 Tom Tromey <tom@tromey.com>
5546 * i386-tdep.c (i386_type_align): New function.
5547 (i386_gdbarch_init): Update.
5548 * gdbarch.sh (type_align): New method.
5549 * gdbarch.c, gdbarch.h: Rebuild.
5550 * arch-utils.h (default_type_align): Declare.
5551 * arch-utils.c (default_type_align): New function.
5552 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
5553 (struct type) <align_log2>: New field.
5554 <instance_flags>: Now a bitfield.
5555 (TYPE_RAW_ALIGN): New macro.
5556 (type_align, type_raw_align, set_type_align): Declare.
5557 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
5559 * dwarf2read.c (quirk_rust_enum): Set type alignment.
5560 (get_alignment, maybe_set_alignment): New functions.
5561 (read_structure_type, read_enumeration_type, read_array_type)
5562 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
5563 (read_subrange_type, read_base_type): Set type alignment.
5565 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
5567 * dwarf2read.c (read_index_from_section): Use bool.
5569 2018-04-29 Fabian Groffen <grobian@gentoo.org>
5572 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
5575 2018-04-29 John Reiser <jreiser@BitWagon.com>
5578 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
5579 last step, and do it atomically.
5581 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
5583 * compile/compile-c-types.c (convert_int, convert_float):
5586 2018-04-27 Tom Tromey <tom@tromey.com>
5589 * rust-lang.c (rust_inclusive_range_type_p): New function.
5590 (rust_range): Handle inclusive ranges.
5591 (rust_compute_range): Likewise.
5592 * rust-exp.y (struct rust_op) <inclusive>: New field.
5593 (DOTDOTEQ): New constant.
5594 (range_expr): Add "..=" productions.
5595 (operator_tokens): Add "..=" token.
5596 (ast_range): Add "inclusive" parameter.
5597 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
5599 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
5601 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
5602 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
5604 * expprint.c (print_subexp_standard): Handle new bounds values.
5605 (dump_subexp_body_standard): Likewise.
5607 2018-04-27 Tom Tromey <tom@tromey.com>
5609 * configure: Rebuild.
5610 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
5611 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
5613 (class symbol_needs_eval_context): Likewise.
5614 * dwarf2read.c (mock_mapped_index::symbol_name_count)
5615 (mock_mapped_index::symbol_name_at): Use "override". Remove
5617 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
5619 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
5620 * aarch64-tdep.c (instruction_reader::read): Use "override".
5621 (instruction_reader_test::read): Likewise.
5622 * arm-tdep.c (instruction_reader::read): Use "override".
5623 (instruction_reader_thumb::read): Likewise.
5625 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
5628 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
5629 instead of remote_send.
5630 (remote_send): Remove.
5632 2018-04-26 Pedro Alves <palves@redhat.com>
5634 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
5635 find_function_start_sal instead of find_pc_line.
5637 2018-04-26 Pedro Alves <palves@redhat.com>
5639 * breakpoint.c (set_breakpoint_location_function): Handle
5641 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
5642 * elfread.c (elf_symtab_read): Give data symbols with
5643 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
5644 (elf_rel_plt_read): Update comment.
5645 * linespec.c (convert_linespec_to_sals): Handle
5647 (minsym_found): Handle mst_data_gnu_ifunc.
5648 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
5649 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
5650 * parse.c (find_minsym_type_and_address): Handle
5652 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
5653 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
5654 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
5656 <mst_data_gnu_ifunc>: New enumerator.
5658 2018-04-26 Pedro Alves <palves@redhat.com>
5660 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
5661 (lookup_minimal_symbol_by_pc_section): ... this. Replace
5662 'want_trampoline' parameter by a lookup_msym_prefer parameter.
5664 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
5665 (lookup_minimal_symbol_by_pc): Adjust.
5666 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
5667 (lookup_solib_trampoline_symbol_by_pc): Adjust.
5668 * minsyms.h (lookup_msym_prefer): New enum.
5669 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
5670 parameter by a lookup_msym_prefer parameter.
5672 2018-04-26 Pedro Alves <palves@redhat.com>
5674 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
5675 ends in "@plt" instead of looking at the symbol's section.
5677 2018-04-26 Pedro Alves <palves@redhat.com>
5679 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
5681 (find_pc_partial_function_gnu_ifunc): Rename to ...
5682 (find_pc_partial_function): ... this, and remove references to
5684 (find_pc_partial_function): Delete old implementation.
5685 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
5687 2018-04-26 Pedro Alves <palves@redhat.com>
5689 * linespec.c (struct bound_minimal_symbol_search_key): New.
5690 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
5691 skip first line if we found a GNU ifunc minimal symbol by name.
5692 (compare_msymbols): Change parameters to work with a destructured
5694 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
5697 2018-04-26 Pedro Alves <palves@redhat.com>
5699 * breakpoint.c (set_breakpoint_location_function): Don't resolve
5700 ifunc targets here. Instead, if we have an ifunc minsym, use its
5702 (add_location_to_breakpoint): Store the minsym and the objfile in
5703 the breakpoint location.
5704 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
5705 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
5706 Record the minsym in the sal.
5707 * symtab.h (symtab_and_line) <msymbol>: New field.
5709 2018-04-26 Pedro Alves <palves@redhat.com>
5711 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
5712 unless we actually resolved the ifunc.
5714 2018-04-26 Pedro Alves <palves@redhat.com>
5716 * c-exp.y (variable production): Prefer ifunc minsyms over
5717 regular function symbols.
5718 * symtab.c (find_gnu_ifunc): New function.
5719 * minsyms.h (lookup_msym_prefer): New enum.
5720 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
5721 parameter by a lookup_msym_prefer parameter.
5722 * symtab.h (find_gnu_ifunc): New declaration.
5724 2018-04-26 Pedro Alves <palves@redhat.com>
5726 * blockframe.c (find_gnu_ifunc_target_type): New function.
5727 (find_function_type): New.
5728 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
5729 return a value with a memory address.
5730 (eval_call): For calls to GNU ifunc functions, try to find the
5731 type of the target function from the type that the resolver
5733 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
5735 * infcall.c (find_function_return_type): Delete.
5736 (find_function_addr): Add 'function_type' parameter. For calls to
5737 GNU ifunc functions, try to find the type of the target function
5738 from the type that the resolver returns, and return it via
5740 (call_function_by_hand_dummy): Adjust to use the function type
5741 returned by find_function_addr.
5742 (find_function_addr): Add 'function_type' parameter and move
5744 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
5747 2018-04-26 Pedro Alves <palves@redhat.com>
5749 * c-exp.y (variable production): Skip finding an alias for ifunc
5752 2018-04-26 Pedro Alves <palves@redhat.com>
5754 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
5756 2018-04-25 Pedro Alves <palves@redhat.com>
5758 * infcmd.c (kill_command): Print the pid as string, not the whole
5759 thread's ptid. Add comment. s/has been killed/killed/ in output
5761 * remote.c (remote_detach_1): Print the pid as string, not the
5762 whole thread's ptid.
5764 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5765 Sergio Durigan Junior <sergiodj@redhat.com>
5766 Pedro Alves <palves@redhat.com>
5768 * infcmd.c (kill_command): Print message when inferior has
5770 * inferior.c (print_inferior_events): Remove 'static'. Set as
5772 (add_inferior): Improve message printed when
5773 'print_inferior_events' is on.
5774 (exit_inferior): Remove message printed when
5775 'print_inferior_events' is on.
5776 (detach_inferior): Improve message printed when
5777 'print_inferior_events' is on.
5778 (initialize_inferiors): Use 'add_inferior_silent' to set
5779 'current_inferior_'.
5780 * inferior.h (print_inferior_events): Declare here as
5782 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
5783 '[Detaching...]' messages when 'print_inferior_events' is on.
5784 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
5785 as prefix/suffix for messages. Remove periods. Fix erroneous
5786 'Detaching after fork from child...', replace it by '... from
5788 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
5789 prefix/suffix when printing 'Detaching...' messages. Print
5790 them when 'print_inferior_events' is on.
5791 * remote.c (remote_detach_1): Print message when detaching
5792 from inferior and '!is_fork_parent'.
5794 2018-04-24 Tom Tromey <tom@tromey.com>
5796 * cli-out.h: Reindent.
5798 2018-04-24 Tom Tromey <tom@tromey.com>
5800 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
5801 (cli_ui_out::do_field_string): Use fputs_filtered.
5802 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
5804 2018-04-23 Tom Tromey <tom@tromey.com>
5806 * guile/scm-frame.c (gdbscm_frame_read_var): Use
5807 gdb::unique_xmalloc_ptr.
5809 2018-04-23 Tom Tromey <tom@tromey.com>
5811 * configure: Rebuild.
5813 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
5816 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
5817 prepare_for_testing. Set normal_bp to r_debug_state if target
5820 2018-04-21 Pedro Alves <palves@redhat.com>
5821 Rajendra SY <rajendra.sy@gmail.com>
5823 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
5824 * remote.c (extended_remote_attach): In all-stop mode, mark the
5825 thread as executing.
5827 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5829 * thread.c (thread_apply_all_command): Fix comment.
5830 (thread_command): Fix comment.
5832 2018-04-10 Alan Hayward <alan.hayward@arm.com>
5834 * common/tdesc.h (tdesc_create_feature): Remove xml filename
5836 * features/aarch64-core.c (create_feature_aarch64_core):
5838 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
5840 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
5842 * features/i386/32bit-avx512.c
5843 (create_feature_i386_32bit_avx512): Likewise.
5844 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
5846 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
5848 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
5850 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
5852 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
5854 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
5856 * features/i386/64bit-avx512.c
5857 (create_feature_i386_64bit_avx512): Likewise.
5858 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
5860 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
5862 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
5864 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
5866 * features/i386/64bit-segments.c
5867 (create_feature_i386_64bit_segments): Likewise.
5868 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
5870 * features/i386/x32-core.c
5871 (create_feature_i386_x32_core): Likewise.
5872 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
5873 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
5874 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
5875 * target-descriptions.c: In generated code, don't pass xml
5878 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5880 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
5881 (print_xml_feature::visit_post): Likewise.
5882 (print_xml_feature::visit): Likewise.
5883 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
5884 (print_xml_feature): Add new class.
5885 * regformats/regdat.sh: Null xmltarget on feature targets.
5886 * target-descriptions.c (struct target_desc): Add xmltarget.
5887 (maintenance_check_tdesc_xml_convert): Add unittest function.
5888 (tdesc_get_features_xml): Add function to get xml.
5889 (maintenance_check_xml_descriptions): Test xml generation.
5890 * xml-tdesc.c (string_read_description_xml): Add function.
5891 * xml-tdesc.h (string_read_description_xml): Add declaration.
5893 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5895 * features/Makefile: Add feature marker to targets with new style
5896 target descriptions.
5897 * regformats/aarch64.dat: Regenerate.
5898 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
5899 * regformats/i386/amd64-avx-linux.dat: Likewise.
5900 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
5901 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
5902 * regformats/i386/amd64-linux.dat: Likewise.
5903 * regformats/i386/amd64-mpx-linux.dat: Likewise.
5904 * regformats/i386/amd64.dat: Likewise.
5905 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
5906 * regformats/i386/i386-avx-linux.dat: Likewise.
5907 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
5908 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
5909 * regformats/i386/i386-linux.dat: Likewise.
5910 * regformats/i386/i386-mmx-linux.dat: Likewise.
5911 * regformats/i386/i386-mpx-linux.dat: Likewise.
5912 * regformats/i386/i386.dat: Likewise.
5913 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
5914 * regformats/i386/x32-avx-linux.dat: Likewise.
5915 * regformats/i386/x32-linux.dat: Likewise.
5916 * regformats/tic6x-c62x-linux.dat: Likewise.
5917 * regformats/tic6x-c64x-linux.dat: Likewise.
5918 * regformats/tic6x-c64xp-linux.dat: Likewise.
5919 * regformats/regdat.sh: Parse feature marker.
5921 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5923 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
5924 (tdesc_osabi_name): Likewise.
5925 * target-descriptions.c (tdesc_architecture_name): Add new
5927 (tdesc_osabi_name): Likewise.
5929 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5931 * common/tdesc.c (tdesc_predefined_type): Move to here.
5932 (tdesc_named_type): Likewise.
5933 (tdesc_create_vector): Likewise.
5934 (tdesc_create_struct): Likewise.
5935 (tdesc_set_struct_size): Likewise.
5936 (tdesc_create_union): Likewise.
5937 (tdesc_create_flags): Likewise.
5938 (tdesc_create_enum): Likewise.
5939 (tdesc_add_field): Likewise.
5940 (tdesc_add_typed_bitfield): Likewise.
5941 (tdesc_add_bitfield): Likewise.
5942 (tdesc_add_flag): Likewise.
5943 (tdesc_add_enum_value): Likewise.
5944 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
5945 (struct tdesc_type_vector): Likewise.
5946 (struct tdesc_type_field): Likewise.
5947 (struct tdesc_type_with_fields): Likewise.
5948 (tdesc_create_enum): Add declaration.
5949 (tdesc_add_typed_bitfield): Likewise.
5950 (tdesc_add_enum_value): Likewise.
5951 * target-descriptions.c (tdesc_type_field): Move from here.
5952 (tdesc_type_builtin): Likewise.
5953 (tdesc_type_vector): Likewise.
5954 (tdesc_type_with_fields): Likewise.
5955 (tdesc_predefined_types): Likewise.
5956 (tdesc_named_type): Likewise.
5957 (tdesc_create_vector): Likewise.
5958 (tdesc_create_struct): Likewise.
5959 (tdesc_set_struct_size): Likewise.
5960 (tdesc_create_union): Likewise.
5961 (tdesc_create_flags): Likewise.
5962 (tdesc_create_enum): Likewise.
5963 (tdesc_add_field): Likewise.
5964 (tdesc_add_typed_bitfield): Likewise.
5965 (tdesc_add_bitfield): Likewise.
5966 (tdesc_add_flag): Likewise.
5967 (tdesc_add_enum_value): Likewise.
5968 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
5969 (tdesc_add_typed_bitfield): Likewise.
5970 (tdesc_add_enum_value): Likewise.
5972 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5974 * common/tdesc.c (tdesc_feature::accept): Move to here.
5975 (tdesc_feature::operator==): Likewise.
5976 (tdesc_create_reg): Likewise.
5977 * common/tdesc.h (tdesc_type_kind): Likewise.
5978 (struct tdesc_type): Likewise.
5979 (struct tdesc_feature): Likewise.
5980 * regformats/regdat.sh: Create a feature.
5981 * target-descriptions.c (tdesc_type_kind): Move from here.
5982 (tdesc_type): Likewise.
5983 (tdesc_type_up): Likewise.
5984 (tdesc_feature): Likewise.
5985 (tdesc_create_reg): Likewise.
5987 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5989 * Makefile.in: Add arch/tdesc.c
5990 * common/tdesc.c: New file.
5991 * common/tdesc.h (tdesc_element_visitor): Move to here.
5992 (tdesc_element): Likewise.
5993 (tdesc_reg): Likewise.
5994 (tdesc_reg_up): Likewise.
5995 * regformats/regdef.h (reg): Add offset to constructors.
5996 * target-descriptions.c (tdesc_element_visitor): Move from here.
5997 (tdesc_element): Likewise.
5998 (tdesc_reg): Likewise.
5999 (tdesc_reg_up): Likewise.
6001 2018-04-17 Tom Tromey <tom@tromey.com>
6003 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
6006 2018-04-17 Tom Tromey <tom@tromey.com>
6008 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
6010 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6012 * symtab.c (print_symbol_info): Skip printing filename and line
6013 number when `last' is NULL.
6014 (symtab_symbol_info): Use empty string instead of NULL for first
6015 invocation of print_symbol_info.
6016 (rbreak_command): Pass NULL to `last' parameter of
6019 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
6021 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
6024 2018-04-16 Pedro Alves <palves@redhat.com>
6026 * MAINTAINERS (sh): Remove.
6027 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
6028 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
6029 (ALLDEPFILES): Remove sh64-tdep.c.
6030 * NEWS: Mentions that support for SH-5/SH64 is removed.
6031 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
6032 (sh*-*-openbsd*): Ditto.
6033 (sh64-*-elf*): Remove.
6035 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
6036 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
6037 * sh-tdep.c: No longer include "sh64-tdep.h".
6038 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
6039 * sh64-tdep.c, sh64-tdep.h: Remove files.
6041 2018-04-16 Pedro Alves <palves@redhat.com>
6043 * MAINTAINERS: Remove m88k.
6044 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
6045 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
6046 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
6047 * NEWS: Mention that support for m88k was removed.
6048 * configure.host (m88*-*-*): Remove support.
6049 * configure.nat (m88k-*-*): Remove support.
6050 * configure.tgt (m88*-*-openbsd*): Remove.
6051 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
6053 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
6055 * configure.tgt (x86_tobjs): New variable.
6056 (amd64_tobjs, i386_tobjs): Use it.
6058 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6060 * symtab.c (print_symbol_info): Precede the symbol definition by
6061 the line number when available.
6062 * NEWS: Advertise this enhancement.
6064 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6066 * NEWS (New options): announce set/show record btrace cpu.
6067 * btrace.c: Include record-btrace.h.
6068 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
6069 the vendor is unknown.
6070 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
6071 Maybe overwrite the btrace configuration's cpu.
6072 (btrace_compute_ftrace): Add cpu parameter. Update callers.
6073 (btrace_fetch): Add cpu parameter. Update callers.
6074 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
6075 Maybe overwrite the btrace configuration's cpu. Skip enabling
6076 errata workarounds if the vendor is unknown.
6077 * python/py-record-btrace.c: Include record-btrace.h.
6078 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
6079 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
6080 * record-btrace.c (record_btrace_cpu_state_kind): New.
6081 (record_btrace_cpu): New.
6082 (set_record_btrace_cpu_cmdlist): New.
6083 (record_btrace_get_cpu): New.
6084 (require_btrace_thread, record_btrace_info)
6085 (record_btrace_resume_thread): Call record_btrace_get_cpu.
6086 (cmd_set_record_btrace_cpu_none): New.
6087 (cmd_set_record_btrace_cpu_auto): New.
6088 (cmd_set_record_btrace_cpu): New.
6089 (cmd_show_record_btrace_cpu): New.
6090 (_initialize_record_btrace): Initialize set/show record btrace cpu
6092 * record-btrace.h (record_btrace_get_cpu): New.
6094 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6096 * record.c (set_record_command): Fix typo in message.
6098 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6100 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
6102 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6104 * infrun.c (process_event_stop_test): Call
6105 gdbarch_in_indirect_branch_thunk.
6106 * gdbarch.sh (in_indirect_branch_thunk): New.
6107 * gdbarch.c: Regenerated.
6108 * gdbarch.h: Regenerated.
6111 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
6112 (HFILES_NO_SRCDIR): Add x86-tdep.h.
6113 (ALLDEPFILES): Add x86-tdep.c.
6114 * arch-utils.h (default_in_indirect_branch_thunk): New.
6115 * arch-utils.c (default_in_indirect_branch_thunk): New.
6116 * i386-tdep: Include x86-tdep.h.
6117 (i386_in_indirect_branch_thunk): New.
6118 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
6120 * amd64-tdep: Include x86-tdep.h.
6121 (amd64_in_indirect_branch_thunk): New.
6122 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
6124 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6127 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
6128 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
6129 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
6132 2018-04-12 Tom Tromey <tom@tromey.com>
6134 * rust-lang.c (rust_print_struct_def): Remove univariant code.
6135 (rust_evaluate_subexp): Likewise.
6137 2018-04-12 Pedro Alves <palves@redhat.com>
6139 * procfs.c (procfs_detach): Make forward declaration's prototype
6140 match definition's protototype.
6141 (proc_get_LDT_entry): Remove stale do_cleanups call.
6143 2018-04-12 Pedro Alves <palves@redhat.com>
6145 * target.h (target_ops::to_has_exited): Delete.
6146 (target_has_exited): Delete.
6147 * target-delegates.c: Regenerate.
6149 2018-04-11 Pedro Alves <palves@redhat.com>
6151 * target.c (fileio_fh_t::t): Add comment.
6152 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
6153 (target_fileio_close): Handle a NULL target.
6154 (invalidate_fileio_fh): New.
6155 (target_close): Call it.
6156 * remote.c (remote_hostio_send_command): No longer check whether
6157 remote_desc is open.
6159 2018-04-11 Pedro Alves <palves@redhat.com>
6161 * target.c (fileio_fh_t): Make it a named struct instead of a
6163 (fileio_fh_t::is_closed): New method.
6164 (DEF_VEC_O (fileio_fh_t)): Remove.
6165 (fileio_fhandles): Now a std::vector.
6166 (is_closed_fileio_fh): Delete.
6167 (acquire_fileio_fd): Adjust. Rename parameters.
6168 (release_fileio_fd): Adjust.
6169 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
6170 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
6171 (target_fileio_close): Adjust.
6173 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
6175 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
6178 2018-04-10 Pedro Alves <palves@redhat.com>
6180 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
6181 (scoped_finish_thread_state): New class.
6182 * infcmd.c (run_command_1): Use it instead of finish_thread_state
6184 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
6185 (fetch_inferior_event, normal_stop): Likewise.
6186 * thread.c (finish_thread_state_cleanup): Delete.
6188 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6189 Pedro Alves <palves@redhat.com>
6191 * value.c: Include "selftest.h" and "common/array-view.h".
6192 (struct range) <operator ==>: New.
6193 (test_ranges_contain): New.
6194 (check_ranges_vector): New.
6195 (test_insert_into_bit_range_vector): New.
6196 (_initialize_values): Register selftests.
6197 * common/array-view.h (operator==, operator!=): New.
6199 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6201 * common/gdb_vecs.h (unordered_remove): Add overload that takes
6203 * inline-frame.c: Include <algorithm>.
6204 (struct inline_state): Add constructor.
6205 (inline_state_s): Remove.
6206 (DEF_VEC_O(inline_state_s)): Remove.
6207 (inline_states): Change type to std::vector.
6208 (find_inline_frame_state): Adjust to std::vector.
6209 (allocate_inline_frame_state): Remove.
6210 (clear_inline_frame_state): Adjust to std::vector.
6211 (skip_inline_frames): Adjust to std::vector.
6213 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6215 * tracepoint.h (struct trace_state_variable): Add constructor.
6216 <name>: Change type to std::string.
6217 * tracepoint.c (tsv_s): Remove.
6218 (DEF_VEC_O(tsv_s)): Remove.
6219 (tvariables): Change to std::vector.
6220 (create_trace_state_variable): Adjust to std::vector.
6221 (find_trace_state_variable): Likewise.
6222 (find_trace_state_variable_by_number): Likewise.
6223 (delete_trace_state_variable): Likewise.
6224 (trace_variable_command): Adjust to std::string.
6225 (delete_trace_variable_command): Likewise.
6226 (tvariables_info_1): Adjust to std::vector.
6227 (save_trace_state_variables): Likewise.
6228 (start_tracing): Likewise.
6229 (merge_uploaded_trace_state_variables): Adjust to std::vector
6231 * target.h (struct target_ops)
6232 <to_download_trace_state_variable>: Pass reference to
6233 trace_state_variable.
6234 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
6235 * target-delegates.c: Re-generate.
6236 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
6237 (mi_tsv_deleted): Likewise.
6238 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6239 * remote.c (remote_download_trace_state_variable): Change
6240 pointer to reference and adjust.
6241 * make-target-delegates (parse_argtypes): Handle references.
6242 (write_function_header): Likewise.
6243 (munge_type): Likewise.
6245 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6247 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6248 string_view-selftests.c.
6249 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
6251 * unittests/basic_string_view/cons/char/1.cc: Likewise.
6252 * unittests/basic_string_view/cons/char/2.cc: Likewise.
6253 * unittests/basic_string_view/cons/char/3.cc: Likewise.
6254 * unittests/basic_string_view/element_access/char/1.cc:
6256 * unittests/basic_string_view/element_access/char/empty.cc:
6258 * unittests/basic_string_view/element_access/char/front_back.cc:
6260 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
6261 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
6263 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
6265 * unittests/basic_string_view/modifiers/swap/char/1.cc:
6267 * unittests/basic_string_view/operations/compare/char/1.cc:
6269 * unittests/basic_string_view/operations/compare/char/13650.cc:
6271 * unittests/basic_string_view/operations/copy/char/1.cc:
6273 * unittests/basic_string_view/operations/data/char/1.cc:
6275 * unittests/basic_string_view/operations/find/char/1.cc:
6277 * unittests/basic_string_view/operations/find/char/2.cc:
6279 * unittests/basic_string_view/operations/find/char/3.cc:
6281 * unittests/basic_string_view/operations/find/char/4.cc:
6283 * unittests/basic_string_view/operations/rfind/char/1.cc:
6285 * unittests/basic_string_view/operations/rfind/char/2.cc:
6287 * unittests/basic_string_view/operations/rfind/char/3.cc:
6289 * unittests/basic_string_view/operations/substr/char/1.cc:
6291 * unittests/basic_string_view/operators/char/2.cc: Likewise.
6292 * unittests/string_view-selftests.c: New file.
6294 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6296 * unittests/basic_string_view/capacity/1.cc: New file.
6297 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
6298 * unittests/basic_string_view/cons/char/1.cc: New file.
6299 * unittests/basic_string_view/cons/char/2.cc: New file.
6300 * unittests/basic_string_view/cons/char/3.cc: New file.
6301 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
6302 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
6303 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
6304 * unittests/basic_string_view/element_access/char/1.cc: New file.
6305 * unittests/basic_string_view/element_access/char/2.cc: New file.
6306 * unittests/basic_string_view/element_access/char/empty.cc: New file.
6307 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
6308 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
6309 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
6310 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
6311 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
6312 * unittests/basic_string_view/include.cc: New file.
6313 * unittests/basic_string_view/inserters/char/1.cc: New file.
6314 * unittests/basic_string_view/inserters/char/2.cc: New file.
6315 * unittests/basic_string_view/inserters/char/3.cc: New file.
6316 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
6317 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
6318 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
6319 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
6320 * unittests/basic_string_view/literals/types.cc: New file.
6321 * unittests/basic_string_view/literals/values.cc: New file.
6322 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
6323 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
6324 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
6325 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
6326 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
6327 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
6328 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
6329 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
6330 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
6331 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
6332 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
6333 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
6334 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
6335 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
6336 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
6337 * unittests/basic_string_view/operations/data/char/1.cc: New file.
6338 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
6339 * unittests/basic_string_view/operations/find/char/1.cc: New file.
6340 * unittests/basic_string_view/operations/find/char/2.cc: New file.
6341 * unittests/basic_string_view/operations/find/char/3.cc: New file.
6342 * unittests/basic_string_view/operations/find/char/4.cc: New file.
6343 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
6344 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
6345 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
6346 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
6347 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
6348 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
6349 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
6350 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
6351 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
6352 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
6353 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
6354 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
6355 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
6356 * unittests/basic_string_view/operators/char/2.cc: New file.
6357 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
6358 * unittests/basic_string_view/range_access/char/1.cc: New file.
6359 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
6360 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
6361 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
6362 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
6363 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
6364 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
6365 * unittests/basic_string_view/requirements/typedefs.cc: New file.
6366 * unittests/basic_string_view/typedefs.cc: New file.
6367 * unittests/basic_string_view/types/1.cc: New file.
6369 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6371 * common/gdb_string_view.h: Remove libstdc++ implementation
6372 details, adjust to gdb reality.
6373 * common/gdb_string_view.tcc: Likewise.
6374 * cli/cli-script.c (struct string_view): Remove.
6375 (user_args) <m_args>: Change element type to gdb::string_view.
6376 (user_args::insert_args): Adjust.
6378 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6380 * common/gdb_string_view.h: New file.
6381 * common/gdb_string_view.tcc: New file.
6383 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6385 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
6386 * configure: Re-generate.
6388 2018-04-09 Pedro Alves <palves@redhat.com>
6390 * gdbarch.sh: Include "observable.h" instead of "observer.h".
6391 (set_target_gdbarch): Call
6392 gdb::observers::architecture_changed.notify instead of
6393 observer_notify_architecture_changed.
6395 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6397 * tracepoint.c (struct current_traceframe_cleanup): Remove.
6398 (do_restore_current_traceframe_cleanup): Remove.
6399 (restore_current_traceframe_cleanup_dtor): Remove.
6400 (make_cleanup_restore_current_traceframe): Remove.
6401 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
6403 * tracepoint.h (struct scoped_restore_current_traceframe): New.
6404 * infrun.c (fetch_inferior_event): Use
6405 scoped_restore_current_traceframe.
6407 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6409 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
6411 <n_allocated_type_units>: Remove.
6412 <all_type_units>: Change to std::vector.
6413 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
6414 to std::vector change.
6415 (dwarf2_per_objfile::get_cutu): Likewise.
6416 (dwarf2_per_objfile::get_tu): Likewise.
6417 (create_signatured_type_table_from_index): Likewise.
6418 (create_signatured_type_table_from_debug_names): Likewise.
6419 (dw2_symtab_iter_next): Likewise.
6420 (dw2_print_stats): Likewise.
6421 (dw2_expand_all_symtabs): Likewise.
6422 (dw2_expand_marked_cus): Likewise.
6423 (dw2_debug_names_iterator::next): Likewise.
6424 (dwarf2_initialize_objfile): Likewise.
6425 (add_signatured_type_cu_to_table): Likewise.
6426 (create_all_type_units): Likewise.
6427 (add_type_unit): Likewise.
6428 (struct tu_abbrev_offset): Add constructor.
6429 (build_type_psymtabs_1): Adjust to std::vector change.
6430 (print_tu_stats): Likewise.
6431 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
6432 (write_debug_names): Likewise.
6434 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6436 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
6437 Make an std::vector.
6438 <n_comp_units>: Remove.
6439 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
6440 to std::vector change.
6441 (dwarf2_per_objfile::get_cutu): Likewise.
6442 (dwarf2_per_objfile::get_cu): Likewise.
6443 (create_cus_from_index): Likewise.
6444 (create_addrmap_from_index): Likewise.
6445 (create_addrmap_from_aranges): Likewise.
6446 (dwarf2_read_index): Likewise.
6447 (dw2_find_last_source_symtab): Likewise.
6448 (dw2_map_symtabs_matching_filename): Likewise.
6449 (dw2_symtab_iter_next): Likewise.
6450 (dw2_print_stats): Likewise.
6451 (dw2_expand_all_symtabs): Likewise.
6452 (dw2_expand_symtabs_with_fullname): Likewise.
6453 (dw2_expand_marked_cus): Likewise.
6454 (dw2_map_symbol_filenames): Likewise.
6455 (create_cus_from_debug_names): Likewise.
6456 (dwarf2_read_debug_names): Likewise.
6457 (dw2_debug_names_iterator::next): Likewise.
6458 (dwarf2_initialize_objfile): Likewise.
6459 (set_partial_user): Likewise.
6460 (dwarf2_build_psymtabs_hard): Likewise.
6461 (read_comp_units_from_section): Remove arguments, adjust to
6463 (create_all_comp_units): Adjust to std::vector and
6464 read_comp_units_from_section changes.
6465 (dwarf2_find_containing_comp_unit): Adjust to std::vector
6467 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
6468 (psyms_seen_size): Likewise.
6469 (write_gdbindex): Likewise.
6470 (write_debug_names): Likewise.
6472 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6474 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
6475 with dwarf2_per_objfile.
6476 (create_cus_from_index): Likewise.
6477 (create_signatured_type_table_from_index): Likewise.
6478 (dwarf2_read_index): Likewise.
6479 (dwarf2_initialize_objfile): Likewise.
6480 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
6481 per_cu rather than get_dwarf2_per_objfile.
6483 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6485 * dwarf2read.h (struct signatured_type): Forward declare.
6486 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
6488 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
6489 (dw2_get_cutu): ...this.
6490 (dwarf2_per_objfile::get_cu): Rename from...
6491 (dw2_get_cu): ...this.
6492 (dwarf2_per_objfile::get_tu): New.
6493 (create_addrmap_from_index): Adjust.
6494 (create_addrmap_from_aranges): Adjust.
6495 (dw2_find_last_source_symtab): Adjust.
6496 (dw2_map_symtabs_matching_filename): Adjust.
6497 (dw2_symtab_iter_next): Adjust.
6498 (dw2_print_stats): Adjust.
6499 (dw2_expand_all_symtabs): Adjust.
6500 (dw2_expand_symtabs_with_fullname): Adjust.
6501 (dw2_expand_marked_cus): Adjust.
6502 (dw_expand_symtabs_matching_file_matcher): Adjust.
6503 (dw2_map_symbol_filenames): Adjust.
6504 (dw2_debug_names_iterator::next): Adjust.
6505 (dwarf2_initialize_objfile): Adjust.
6506 (set_partial_user): Adjust.
6507 (dwarf2_build_psymtabs_hard): Adjust.
6509 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6511 * dwarf2read.c (create_signatured_type_table_from_debug_names):
6512 Remove unused variables.
6513 (dw2_map_symtabs_matching_filename): Likewise.
6514 (dwarf2_record_block_ranges): Likewise.
6515 (dwarf2_read_addr_index): Likewise.
6516 (follow_die_offset): Likewise.
6518 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6520 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
6521 to symbol_file_add_main.
6523 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6526 * mi/mi-console.c (do_fputc_async_safe): New.
6527 (mi_console_file::write_async_safe): New.
6528 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
6529 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
6531 * ui-file.c (ui_file::putstrn): Adjust call to
6532 fputstrn_unfiltered.
6533 * utils.c (printchar): Replace do_fputs and do_fprintf
6534 parameters by do_fputc.
6535 (fputstr_filtered): Adjust call to printchar.
6536 (fputstr_unfiltered): Likewise.
6537 (fputstrn_filtered): Likewise.
6538 (fputstrn_unfiltered): Add do_fputc parameter, pass to
6540 * utils.h (do_fputc_ftype): New typedef.
6541 (fputstrn_unfiltered): Add do_fputc parameter.
6543 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6545 * regformats/i386/i386-avx.dat: Remove.
6547 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6550 * amd64-tdep.c (amd64_none_init_abi): New function.
6551 (amd64_x32_none_init_abi): New function.
6552 (_initialize_amd64_tdep): Register handlers for x86-64 and
6553 x64_32 with GDB_OSABI_NONE.
6554 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
6555 GDB_OSABI_NONE osabi.
6557 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6560 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
6562 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
6563 * osabi.c (gdb_osabi_names): Add "unknown" entry.
6565 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6567 * common/byte-vector.h (char_vector): New type.
6568 * target.h (target_read_alloc): Return
6569 gdb::optional<byte_vector>.
6570 (target_read_stralloc): Return gdb::optional<char_vector>.
6571 (target_get_osdata): Return gdb::optional<char_vector>.
6572 * target.c (target_read_alloc_1): Templatize. Replacement
6573 manual memory management with vector.
6574 (target_read_alloc): Change return type, adjust.
6575 (target_read_stralloc): Change return type, adjust.
6576 (target_get_osdata): Change return type, adjust.
6577 * auxv.c (struct auxv_info) <length>: Remove.
6578 <data>: Change type to gdb::optional<byte_vector>.
6579 (auxv_inferior_data_cleanup): Free auxv_info with delete.
6580 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
6581 (target_auxv_search): Adjust.
6582 (fprint_target_auxv): Adjust.
6583 * avr-tdep.c (avr_io_reg_read_command): Adjust.
6584 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
6585 (linux_make_corefile_notes): Adjust.
6586 * osdata.c (get_osdata): Adjust.
6587 * remote.c (remote_get_threads_with_qxfer): Adjust.
6588 (remote_memory_map): Adjust.
6589 (remote_traceframe_info): Adjust.
6590 (btrace_read_config): Adjust.
6591 (remote_read_btrace): Adjust.
6592 (remote_pid_to_exec_file): Adjust.
6593 * solib-aix.c (solib_aix_get_library_list): Adjust.
6594 * solib-dsbt.c (decode_loadmap): Don't free buf.
6595 (dsbt_get_initial_loadmaps): Adjust.
6596 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
6597 * solib-target.c (solib_target_current_sos): Adjust.
6598 * tracepoint.c (sdata_make_value): Adjust.
6599 * xml-support.c (xinclude_start_include): Adjust.
6600 (xml_fetch_content_from_file): Adjust.
6601 * xml-support.h (xml_fetch_another): Change return type.
6602 (xml_fetch_content_from_file): Change return type.
6603 * xml-syscall.c (xml_init_syscalls_info): Adjust.
6604 * xml-tdesc.c (file_read_description_xml): Adjust.
6605 (fetch_available_features_from_target): Change return type.
6606 (target_fetch_description_xml): Adjust.
6607 (target_read_description_xml): Adjust.
6609 2018-04-06 Tom Tromey <tom@tromey.com>
6611 * value.c (~value): Update.
6612 (struct value) <contents>: Now unique_xmalloc_ptr.
6613 (value_contents_bits_eq, allocate_value_contents)
6614 (value_contents_raw, value_contents_all_raw)
6615 (value_contents_for_printing, value_contents_for_printing_const)
6616 (set_value_enclosing_type): Update.
6618 2018-04-06 Tom Tromey <tom@tromey.com>
6620 * value.c (range_s): Remove typedef, VEC.
6621 (struct range): Add operator<.
6622 (range_lessthan): Remove.
6623 (ranges_contain): Change type.
6625 (struct value) <unavailable, optimized_out>: Now std::vector.
6626 (value_entirely_available)
6627 (value_entirely_covered_by_range_vector)
6628 (value_entirely_unavailable, value_entirely_optimized_out):
6630 (insert_into_bit_range_vector): Change argument type.
6631 (find_first_range_overlap): Likewise.
6632 (struct ranges_and_idx, value_contents_bits_eq)
6633 (require_not_optimized_out, require_available): Update.
6634 (ranges_copy_adjusted): Change argument types.
6635 (value_optimized_out, value_copy, value_fetch_lazy): Update.
6637 2018-04-06 Tom Tromey <tom@tromey.com>
6639 * value.c (~value): Update.
6640 (struct value) <parent>: Now a value_ref_ptr.
6641 (value_parent, set_value_parent, value_address, value_copy):
6644 2018-04-06 Tom Tromey <tom@tromey.com>
6646 * value.c (struct value): Add constructor, destructor, and member
6648 (allocate_value_lazy, value_decref): Update.
6650 2018-04-06 Tom Tromey <tom@tromey.com>
6652 * value.c (struct value) <released, next>: Remove.
6653 (all_values): Now a std::vector.
6654 (allocate_value_lazy): Update.
6655 (value_next): Remove.
6656 (value_mark, value_free_to_mark, release_value)
6657 (value_release_to_mark): Update.
6659 2018-04-06 Tom Tromey <tom@tromey.com>
6661 * value.h (fetch_subexp_value, value_release_to_mark): Update.
6662 (free_value_chain): Remove.
6663 * value.c (free_value_chain): Remove.
6664 (value_release_to_mark): Return a std::vector.
6665 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
6667 (check_condition): Update.
6668 * eval.c (fetch_subexp_value): Change "val_chain" to a
6670 * breakpoint.c (update_watchpoint): Update.
6671 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
6673 2018-04-06 Tom Tromey <tom@tromey.com>
6675 * value.h (free_all_values): Remove.
6676 * value.c (free_all_values): Remove.
6678 2018-04-06 Tom Tromey <tom@tromey.com>
6680 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
6681 (value_history_chain, value_history_count): Remove.
6682 (value_history): New global.
6683 (record_latest_value, access_value_history, show_values)
6684 (preserve_values): Update.
6686 2018-04-06 Tom Tromey <tom@tromey.com>
6688 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
6689 * varobj.c (varobj_set_display_format, varobj_set_value)
6690 (install_default_visualizer, construct_visualizer)
6691 (install_new_value, ~varobj, varobj_get_value_type)
6692 (my_value_of_variable, varobj_editable_p): Update.
6693 * c-varobj.c (c_describe_child, c_value_of_variable)
6694 (cplus_number_of_children, cplus_describe_child): Update.
6695 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
6696 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
6697 (ada_value_of_variable, ada_value_is_changeable_p): Update.
6699 2018-04-06 Tom Tromey <tom@tromey.com>
6701 * printcmd.c (last_examine_address): Change type to
6703 (do_examine, x_command): Update.
6705 2018-04-06 Tom Tromey <tom@tromey.com>
6707 * value.c (release_value): Update.
6708 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
6709 (struct bpstats) <val>: Now a value_ref_ptr.
6710 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
6711 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
6712 (~watchpoint, print_it_watchpoint, watch_command_1)
6713 (invalidate_bp_value_on_memory_change): Update.
6715 2018-04-06 Tom Tromey <tom@tromey.com>
6717 * varobj.c (varobj_clear_saved_item)
6718 (update_dynamic_varobj_children, install_new_value, ~varobj):
6720 * value.h (value_incref): Move declaration earlier.
6721 (value_decref): Rename from value_free.
6722 (struct value_ref_policy): New.
6723 (value_ref_ptr): New typedef.
6724 (struct value_deleter): Remove.
6725 (gdb_value_up): Remove typedef.
6726 (release_value): Change return type.
6727 (release_value_or_incref): Remove.
6728 * value.c (set_value_parent): Update.
6729 (value_incref): Change return type.
6730 (value_decref): Rename from value_free.
6731 (value_free_to_mark, free_all_values, free_value_chain): Update.
6732 (release_value): Return value_ref_ptr.
6733 (release_value_or_incref): Remove.
6734 (record_latest_value, set_internalvar, clear_internalvar):
6736 * stack.c (info_frame_command): Don't call value_free.
6737 * python/py-value.c (valpy_dealloc, valpy_new)
6738 (value_to_value_object): Update.
6739 * printcmd.c (do_examine): Update.
6740 * opencl-lang.c (lval_func_free_closure): Update.
6741 * mi/mi-main.c (register_changed_p): Don't call value_free.
6742 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
6743 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
6744 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
6746 * guile/scm-value.c (vlscm_free_value_smob)
6747 (vlscm_scm_from_value): Update.
6748 * frame.c (frame_register_unwind, frame_unwind_register_signed)
6749 (frame_unwind_register_unsigned, get_frame_register_bytes)
6750 (put_frame_register_bytes): Don't call value_free.
6751 * findvar.c (address_from_register): Don't call value_free.
6752 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
6753 * dwarf2loc.c (entry_data_value_free_closure)
6754 (value_of_dwarf_reg_entry, free_pieced_value_closure)
6755 (dwarf2_evaluate_loc_desc_full): Update.
6756 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
6757 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
6758 (~watchpoint, watch_command_1)
6759 (invalidate_bp_value_on_memory_change): Update.
6760 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
6762 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
6765 * warning.m4: Add -Wno-error=deprecated-register.
6766 * configure: Re-generate.
6768 2018-04-05 Tom Tromey <tom@tromey.com>
6770 * linespec.h: Remove include of "vec.h".
6772 2018-04-05 Tom Tromey <tom@tromey.com>
6774 * linespec.c (typep): Remove typedef.
6775 (find_methods, find_superclass_methods): Take a std::vector.
6776 (find_method): Use std::vector.
6778 2018-04-05 Tom Tromey <tom@tromey.com>
6780 * utils.c (compare_strings): Remove.
6781 * utils.h (compare_strings): Remove.
6782 * objc-lang.h (find_imps): Update.
6783 * objc-lang.c (find_methods): Take a std::vector.
6784 (uniquify_strings, find_imps): Likewise.
6785 * linespec.c (find_methods): Take a std::vector.
6786 (decode_objc): Use std::vector.
6787 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
6789 (find_method, find_function_symbols): Use std::vector.
6791 2018-04-05 Tom Tromey <tom@tromey.com>
6793 * completer.c (completion_tracker::completion_tracker): Remove
6795 (completion_tracker::discard_completions): Likewise.
6796 * breakpoint.c (ambiguous_names_p): Remove cast.
6797 * ada-lang.c (_initialize_ada_language): Remove cast.
6798 * utils.h (streq): Update.
6799 (streq_hash): Add new declaration.
6800 * utils.c (streq): Return bool.
6801 (streq_hash): New function.
6803 2018-04-05 Tom Tromey <tom@tromey.com>
6805 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
6806 Remove a string copy.
6808 2018-04-05 Tom Tromey <tom@tromey.com>
6810 * linespec.c (filter_results): Use std::vector.
6811 (decode_line_2, decode_line_full): Update.
6813 2018-04-05 Tom Tromey <tom@tromey.com>
6815 * linespec.c (canonical_to_fullform): Return std::string.
6816 (filter_results): Update.
6817 (struct decode_line_2_item): Add constructor.
6818 <fullform, displayform>: Now std::string.
6819 (decode_line_2_compare_items): Now a std::sort comparator.
6820 (decode_line_2): Update.
6822 2018-04-05 Tom Tromey <tom@tromey.com>
6824 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
6825 (unexpected_linespec_error): Update.
6826 (linespec_parse_basic, parse_linespec): Update.
6828 2018-04-05 Tom Tromey <tom@tromey.com>
6830 * linespec.c (linespec_parse_basic): Reindent.
6832 2018-04-05 Tom Tromey <tom@tromey.com>
6834 * minsyms.h (iterate_over_minimal_symbols): Update.
6835 * minsyms.c (iterate_over_minimal_symbols): Take a
6837 * linespec.c (struct collect_minsyms): Remove.
6838 (compare_msyms): Now a std::sort comparator.
6839 (add_minsym): Add parameters.
6840 (search_minsyms_for_name): Update. Use std::vector.
6842 2018-04-03 Tom Tromey <tom@tromey.com>
6844 * mipsread.c (read_alphacoff_dynamic_symtab): Use
6847 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
6849 * MAINTAINERS (Write After Approval): Add Weimin Pan.
6851 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
6854 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
6855 printing static type.
6857 2018-04-01 Tom Tromey <tom@tromey.com>
6859 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
6860 (rs6000_xfer_shared_libraries): Update.
6862 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6864 * common/gdb_vecs.h (char_ptr): Remove.
6865 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
6867 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6869 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
6871 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
6873 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6875 * tracepoint.h (struct uploaded_tp): Initialize fields.
6876 <actions, step_actions, cmd_strings>: Change type to
6877 std::vector<char *>.
6878 * tracepoint.c (get_uploaded_tp): Allocate with new.
6879 (free_uploaded_tps): Free with delete.
6880 (parse_tracepoint_definition): Adjust to std::vector change.
6881 * breakpoint.c (read_uploaded_action): Likewise.
6882 (create_tracepoint_from_upload): Likewise.
6883 * ctf.c (ctf_write_uploaded_tp): Likewise.
6884 (SET_ARRAY_FIELD): Likewise.
6885 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
6887 2018-03-30 Tom Tromey <tom@tromey.com>
6889 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
6891 (svr4_keep_data_in_core): Update.
6892 (svr4_read_so_list): Update.
6894 2018-03-30 Tom Tromey <tom@tromey.com>
6896 * windows-nat.c (handle_output_debug_string, handle_exception):
6898 * target.h (target_read_string): Update.
6899 * target.c (target_read_string): Change "string" to
6901 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6903 * solib-frv.c (frv_current_sos): Update.
6904 * solib-dsbt.c (dsbt_current_sos): Update.
6905 * solib-darwin.c (darwin_current_sos): Update.
6906 * linux-thread-db.c (inferior_has_bug): Update.
6907 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
6908 Update. Remove alloca.
6909 * ada-lang.c (ada_main_name): Update.
6911 2018-03-30 Tom Tromey <tom@tromey.com>
6913 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
6914 (struct dwo_file_deleter): New.
6915 (dwo_file_up): New typedef.
6916 (open_and_init_dwo_file): Use dwo_file_up.
6917 (free_dwo_file_cleanup): Remove.
6919 2018-03-30 Tom Tromey <tom@tromey.com>
6921 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
6922 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
6924 2018-03-30 Tom Tromey <tom@tromey.com>
6926 * dwarf2read.c (class free_cached_comp_units): New class.
6927 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
6928 (free_cached_comp_units): Remove function.
6930 2018-03-30 Tom Tromey <tom@tromey.com>
6932 * utils.h (make_cleanup_unpush_target): Remove.
6933 * inf-ptrace.c (struct target_unpusher): New.
6934 (target_unpush_up) New typedef.
6935 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
6937 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
6939 2018-03-27 Tom Tromey <tom@tromey.com>
6941 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
6943 2018-03-27 Pedro Alves <palves@redhat.com>
6944 Tom Tromey <tom@tromey.com>
6946 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
6947 destructor. Now a class.
6948 (gdb_readline_wrapper_cleanup): Remove function.
6949 (gdb_readline_wrapper): Remove cleanups.
6951 2018-03-27 Tom Tromey <tom@tromey.com>
6953 * typeprint.h (struct type_print_options) <local_typedefs,
6954 global_typedefs>: Remove "struct" keyword.
6955 (class typedef_hash_table): New class.
6956 (recursively_update_typedef_hash, add_template_parameters)
6957 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
6958 (find_typedef_in_hash): Don't declare.
6959 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
6960 (typedef_hash_table::recursively_update): Rename from
6961 recursively_update_typedef_hash. Now a member.
6962 (typedef_hash_table::add_template_parameters): Rename from
6963 add_template_parameters. Now a member.
6964 (typedef_hash_table::typedef_hash_table): Now a constructor;
6965 rename from create_typedef_hash.
6966 (typedef_hash_table::~typedef_hash_table): Now a destructor;
6967 rename from free_typedef_hash.
6968 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
6969 (do_free_global_table): Remove.
6970 (typedef_hash_table::typedef_hash_table): New constructor; renamed
6971 from copy_type_recursive.
6972 (create_global_typedef_table): Remove.
6973 (typedef_hash_table::find_global_typedef): Now a member of
6975 (typedef_hash_table::find_typedef): Rename from
6976 find_typedef_in_hash; now a member.
6977 (whatis_exp): Update.
6978 * extension.h (struct ext_lang_type_printers): Add constructor and
6980 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
6982 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
6983 Now a constructor; rename from start_ext_lang_type_printers.
6984 (ext_lang_type_printers): Now a destructor; rename from
6985 free_ext_lang_type_printers.
6986 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
6988 (c_type_print_base_struct_union): Update. Remove cleanups.
6990 2018-03-27 Tom Tromey <tom@tromey.com>
6992 * dwarf-index-write.c: Include <cmath>.
6994 2018-03-27 Joel Brobecker <brobecker@adacore.com>
6996 * NEWS: Add entry describing new "set|show varsize-limit" command.
6997 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
6999 * printcmd.c (_initialize_printcmd): Add "set var" alias of
7002 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
7004 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
7006 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
7007 * dwarf-index-common.c: New file.
7008 * dwarf-index-common.h: New file.
7009 * dwarf-index-write.c: New file.
7010 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
7011 (struct dwarf2_section_info): Move from here.
7012 (dwarf2_section_info_def): Likewise.
7013 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
7014 (offset_type): Likewise.
7015 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
7016 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
7017 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
7018 (byte_swap): Likewise.
7019 (MAYBE_SWAP): Likewise.
7020 (dwarf2_per_cu_ptr): Likewise.
7021 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
7022 (struct tu_stats): Likewise.
7023 (struct dwarf2_per_objfile): Likewise.
7024 (struct dwarf2_per_cu_data): Likewise.
7025 (struct signatured_type): Likewise.
7026 (sig_type_ptr): Likewise.
7027 (DEF_VEC_P (sig_type_ptr)): Likewise.
7028 (INDEX4_SUFFIX): Likewise.
7029 (INDEX5_SUFFIX): Likewise.
7030 (DEBUG_STR_SUFFIX): Likewise.
7031 (dwarf2_read_section): Make non-static.
7032 (mapped_index_string_hash): Move from here.
7033 (dwarf5_djb_hash): Likewise.
7034 (file_write): Likewise.
7035 (class data_buf): Likewise.
7036 (struct symtab_index_entry): Likewise.
7037 (struct mapped_symtab): Likewise.
7038 (find_slot): Likewise.
7039 (hash_expand): Likewise.
7040 (add_index_entry): Likewise.
7041 (uniquify_cu_indices): Likewise.
7042 (class c_str_view): Likewise.
7043 (class c_str_view_hasher): Likewise.
7044 (class vector_hasher): Likewise.
7045 (write_hash_table): Likewise.
7046 (psym_index_map): Likewise.
7047 (struct addrmap_index_data): Likewise.
7048 (add_address_entry): Likewise.
7049 (add_address_entry_worker): Likewise.
7050 (write_address_map): Likewise.
7051 (symbol_kind): Likewise.
7052 (write_psymbols): Likewise.
7053 (struct signatured_type_index_data): Likewise.
7054 (write_one_signatured_type): Likewise.
7055 (recursively_count_psymbols): Likewise.
7056 (recursively_write_psymbols): Likewise.
7057 (class debug_names): Likewise.
7058 (check_dwarf64_offsets): Likewise.
7059 (psyms_seen_size): Likewise.
7060 (write_gdbindex): Likewise.
7061 (write_debug_names): Likewise.
7062 (assert_file_size): Likewise.
7063 (write_psymtabs_to_index): Likewise.
7064 (save_gdb_index_command): Likewise.
7065 (_initialize_dwarf2_read): Don't register the "save gdb-index"
7067 * dwarf2read.h: New file.
7069 2018-03-27 Joel Brobecker <brobecker@adacore.com>
7072 * dwarf2read.c (dwarf2_physname): Do not return the demangled
7073 symbol name if the CU's language stores symbol names in linkage
7075 * language.h (struct language_defn)
7076 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
7077 all instances of this struct.
7079 2018-03-26 Tom Tromey <tom@tromey.com>
7081 * stack.c (backtrace_command_1): Remove verbose code.
7083 2018-03-26 Tom Tromey <tom@tromey.com>
7085 * python/py-framefilter.c (py_print_type): Don't catch
7086 exceptions. Return void.
7087 (py_print_value): Likewise.
7088 (py_print_single_arg): Likewise.
7089 (enumerate_args): Don't catch exceptions.
7090 (py_print_args): Likewise.
7091 (py_print_frame): Likewise.
7092 (gdbpy_apply_frame_filter): Catch exceptions here.
7094 2018-03-26 Tom Tromey <tom@tromey.com>
7096 * stack.c (_initialize_stack): Remove trailing newlines from help
7097 text. Add "Usage" line to "backtrace" help.
7099 2018-03-26 Tom Tromey <tom@tromey.com>
7102 * python/py-framefilter.c (py_print_args): Call wrap_hint.
7104 2018-03-26 Tom Tromey <tom@tromey.com>
7106 * python/py-framefilter.c (py_print_single_arg): Return
7107 EXT_LANG_BT_ERROR from catch.
7109 2018-03-26 Tom Tromey <tom@tromey.com>
7112 * stack.c (backtrace_command_1): Move some code into no-filters
7115 2018-03-26 Tom Tromey <tom@tromey.com>
7117 * python/py-framefilter.c (throw_quit_or_print_exception): New
7119 (gdbpy_apply_frame_filter): Use it.
7121 2018-03-26 Tom Tromey <tom@tromey.com>
7124 * python/py-framefilter.c (py_print_type, py_print_value)
7125 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
7128 2018-03-26 Tom Tromey <tom@tromey.com>
7130 * python/py-framefilter.c (enumerate_args): Use
7131 gdb::unique_xmalloc_ptr.
7133 2018-03-26 Tom Tromey <tom@tromey.com>
7135 * python/py-framefilter.c (py_print_frame): Return
7137 (gdbpy_apply_frame_filter): Update comment.
7138 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
7140 <EXT_LANG_BT_NO_FILTERS>: Change value.
7142 2018-03-26 Tom Tromey <tom@tromey.com>
7145 * stack.c (backtrace_command): Parse "hide" argument.
7146 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
7147 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
7150 2018-03-26 Tom Tromey <tom@tromey.com>
7152 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
7154 (backtrace_command): Remove "fulltrace", add "flags".
7156 2018-03-26 Tom Tromey <tom@tromey.com>
7158 * stack.c (backtrace_command): Rewrite command line parsing.
7160 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
7162 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
7164 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
7166 * filename-seen-cache.h: Add include guard.
7168 2018-03-26 Keith Seitz <keiths@redhat.com>
7170 * symfile.c (place_section): Remove "struct" from section_addr_info
7172 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
7173 "struct" keyword from section_addr_info.
7175 2018-03-26 Alan Hayward <alan.hayward@arm.com>
7177 * regformats/regdef.h (reg): Add constructors.
7179 2018-03-25 Pedro Alves <palves@redhat.com>
7181 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
7182 if then/else bodies in var_func_name extraction.
7184 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
7186 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
7187 lookup_minimal_symbol() to find symbol entry.
7188 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
7190 2018-03-23 Keith Seitz <keiths@redhat.com>
7193 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
7194 nested type definitions for C++, too.
7196 2018-03-23 Tom Tromey <tom@tromey.com>
7198 * machoread.c (struct oso_el): Add a constructor. Don't define as
7200 (macho_register_oso): Remove.
7201 (macho_symtab_read): Take a std::vector.
7202 (oso_el_compare_name): Now a std::sort comparator.
7203 (macho_symfile_read_all_oso): Take a std::vector.
7204 (macho_symfile_read): Use std::vector. Remove cleanups.
7206 2018-03-22 Tom Tromey <tom@tromey.com>
7208 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
7209 (record_full_goto_bookmark): Use std::string.
7211 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7214 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
7217 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7219 * rs6000-tdep.c (store_insn_p): New function.
7220 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
7221 and cr_reg to their unshifted values. Use store_insn_p to
7222 match LR saves using either R1 or fdata->alloca_reg. Use
7223 store_insn_p to match CR saves. Set alloca_reg_offset
7224 when alloca_reg and framep are set. Remove lr_reg shift
7225 when assigning to fdata->lr_register.
7227 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
7229 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
7230 command line args instead of emitting a warning.
7232 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
7234 * tracepoint.h (struct static_tracepoint_marker): Initialize
7235 fields, define default constructor, move constructor and move
7236 assignment, disable the rest.
7237 <str_id, extra>: Make std::string.
7238 (release_static_tracepoint_marker): Remove.
7239 (free_current_marker): Remove.
7240 * tracepoint.c (free_current_marker): Remove.
7241 (parse_static_tracepoint_marker_definition): Adjust to
7242 std::string, use new hex2str overload.
7243 (release_static_tracepoint_marker): Remove.
7244 (print_one_static_tracepoint_marker): Get marker by reference
7245 and adjust to std::string.
7246 (info_static_tracepoint_markers_command): Adjust to std::vector
7248 * target.h (static_tracepoint_marker_p): Remove typedef.
7249 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
7250 (struct target_ops) <to_static_tracepoint_marker_at>: Return
7252 <to_static_tracepoint_markers_by_strid>: Return std::vector.
7254 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
7255 (target_debug_print_std_vector_static_tracepoint_marker): New.
7256 (target_debug_print_struct_static_tracepoint_marker_p): Rename
7258 (target_debug_print_static_tracepoint_marker_p): ... this.
7259 * target-delegates.c: Re-generate.
7260 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
7262 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
7263 (decode_static_tracepoint_spec): Adjust to std::vector.
7264 (tracepoint_print_one_detail): Adjust to std::string.
7265 (strace_marker_decode_location): Adjust to std::string.
7266 (update_static_tracepoint): Adjust to std::string, remove call
7267 to release_static_tracepoint_marker.
7268 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7269 Adjust to std::vector.
7270 * remote.c (remote_static_tracepoint_marker_at): Return bool.
7271 (remote_static_tracepoint_markers_by_strid): Adjust to
7273 * common/rsp-low.h (hex2str): New overload with explicit count
7275 * common/rsp-low.c (hex2str): New overload with explicit count
7277 * unittests/rsp-low-selftests.c (test_hex2str): New function.
7278 (_initialize_rsp_low_selftests): Add test_hex2str test.
7279 * unittests/tracepoint-selftests.c
7280 (test_parse_static_tracepoint_marker_definition): Adjust to
7283 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
7285 * tracepoint.c (parse_static_tracepoint_marker_definition):
7286 Consider case where the definition is followed by more
7288 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7289 tracepoint-selftests.c.
7290 * unittests/tracepoint-selftests.c: New.
7292 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7294 * MAINTAINERS (Write After Approval): Add Pedro Franco de
7297 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
7299 * symtab.c (find_pc_sect_line): fixed indentation.
7301 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
7303 * symtab.c (find_pc_sect_line): now uses binary search.
7305 2018-03-19 Tom Tromey <tom@tromey.com>
7307 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
7310 2018-03-19 Pedro Alves <palves@redhat.com>
7311 Tom Tromey <tom@tromey.com>
7313 * unittests/observable-selftests.c: New file.
7314 * common/observable.h: New file.
7315 * observable.h: New file.
7316 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
7317 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
7318 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
7319 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
7320 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
7321 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
7322 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
7323 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
7324 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
7325 python/py-breakpoint.c, python/py-finishbreakpoint.c,
7326 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
7327 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
7328 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
7329 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
7330 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
7331 tui/tui-interp.c, valops.c: Update all users.
7332 * tui/tui-hooks.c (tui_bp_created_observer)
7333 (tui_bp_deleted_observer, tui_bp_modified_observer)
7334 (tui_inferior_exit_observer, tui_before_prompt_observer)
7335 (tui_normal_stop_observer, tui_register_changed_observer):
7337 (tui_observers_token): New global.
7338 (attach_or_detach, tui_attach_detach_observers): New functions.
7339 (tui_install_hooks, tui_remove_hooks): Use
7340 tui_attach_detach_observers.
7341 * record-btrace.c (record_btrace_thread_observer): Remove.
7342 (record_btrace_thread_observer_token): New global.
7343 * observer.sh: Remove.
7344 * observer.c: Rename to observable.c.
7345 * observable.c (namespace gdb_observers): Define new objects.
7346 (observer_debug): Move into gdb_observers namespace.
7347 (struct observer, struct observer_list, xalloc_observer_list_node)
7348 (xfree_observer_list_node, generic_observer_attach)
7349 (generic_observer_detach, generic_observer_notify): Remove.
7350 (_initialize_observer): Update.
7351 Don't include observer.inc.
7352 * Makefile.in (generated_files): Remove observer.h, observer.inc.
7353 (clean mostlyclean): Likewise.
7354 (observer.h, observer.inc): Remove targets.
7355 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
7356 (COMMON_SFILES): Use observable.c, not observer.c.
7357 * .gitignore: Remove observer.h.
7359 2018-03-18 Tom Tromey <tom@tromey.com>
7361 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
7363 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
7365 2018-03-17 Tom Tromey <tom@tromey.com>
7367 * auto-load.c (auto_load_objfile_script_1): Use std::string.
7369 2018-03-17 Tom Tromey <tom@tromey.com>
7371 * target.c (class scoped_target_fd): New.
7372 (target_fileio_close_cleanup): Remove.
7373 (target_fileio_read_alloc_1): Use scoped_target_fd.
7375 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
7377 * silent-rules.mk: New.
7378 * Makefile.in: Include silent-rules.mk
7379 (srcdir, VPATH, top_srcdir): Move up.
7380 (COMPILE): Add ECHO_CXX.
7381 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
7382 (init.c): Add ECHO_INIT_C.
7383 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
7384 (version.c): Add ECHO_GEN.
7385 (printcmd.o): Add ECHO_CXX.
7386 (target-float.o): Add ECHO_CXX.
7387 (ada-exp.o): Add ECHO_CXX.
7388 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
7389 (insight$(EXEEXT)): Add ECHO_CXXLD.
7390 * gnulib/configure.ac: Add AM_SILENT_RULES.
7391 * gnulib/aclocal.m4: Re-generate.
7392 * gnulib/configure: Re-generate.
7393 * gnulib/import/Makefile.in: Re-generate.
7395 2018-03-16 Tom Tromey <tom@tromey.com>
7397 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
7398 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
7399 * utils.c (do_free_section_addr_info)
7400 (make_cleanup_free_section_addr_info): Remove.
7401 * symfile.h (struct other_sections): Add constructor.
7402 (struct section_addr_info): Remove.
7403 (section_addr_info): New typedef.
7404 (struct sym_fns) <sym_offsets>: Change type of parameter.
7405 (build_section_addr_info_from_objfile)
7406 (relative_addr_info_to_section_offsets, addr_info_make_relative)
7407 (default_symfile_offsets, symbol_file_add)
7408 (symbol_file_add_from_bfd)
7409 (build_section_addr_info_from_section_table): Update.
7410 (alloc_section_addr_info, free_section_addr_info): Don't declare.
7411 * symfile.c (alloc_section_addr_info): Remove.
7412 (build_section_addr_info_from_section_table): Change return type.
7414 (build_section_addr_info_from_bfd)
7415 (build_section_addr_info_from_objfile): Likewise.
7416 (free_section_addr_info): Remove.
7417 (relative_addr_info_to_section_offsets): Change type of "addrs".
7418 (addrs_section_compar): Now a std::sort comparator.
7419 (addrs_section_sort): Change return type.
7420 (addr_info_make_relative): Change type of "addrs". Update.
7421 (default_symfile_offsets, syms_from_objfile_1)
7422 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
7423 (symbol_file_add_separate): Update.
7424 (symbol_file_add): Change type of "addrs". Update.
7425 (add_symbol_file_command): Update. Remove cleanups.
7426 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
7428 * symfile-debug.c (debug_sym_offsets): Change type of "info".
7429 * solib.c (solib_read_symbols): Update.
7430 * objfiles.c (objfile_relocate): Update. Remove cleanups.
7431 * machoread.c (macho_symfile_offsets): Update.
7432 * jit.c (jit_bfd_try_read_symtab): Update.
7434 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
7436 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7437 unittests/utils-selftests.c.
7438 * unittests/utils-selftests.c: New file.
7440 2018-03-14 Tom Tromey <tom@tromey.com>
7443 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
7446 2018-03-14 Tom Tromey <tom@tromey.com>
7449 * printcmd.c (printf_pointer): Allow "-" in format.
7451 2018-03-14 Tom Tromey <tom@tromey.com>
7453 * printcmd.c (_initialize_printcmd): Add usage to printf.
7455 2018-03-14 Yao Qi <qiyao@sourceware.org>
7457 * MAINTAINERS: Update my email address.
7459 2018-03-13 Tom Tromey <tom@tromey.com>
7461 * machoread.c (macho_check_dsym): Change filenamep to a
7463 (macho_symfile_read): Update.
7464 * symfile.c (load_command): Use std::string.
7466 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
7468 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
7469 to error message string.
7470 (riscv_register_name): Use xsnprintf instead of sprintf.
7471 (riscv_insn::fetch_instruction): Use gdb_assert instead of
7473 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
7475 (riscv_push_dummy_call): Likewise.
7477 2018-03-12 Tom Tromey <tom@tromey.com>
7479 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
7480 Use gdb::byte_vector.
7481 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
7483 2018-03-12 Yao Qi <yao.qi@linaro.org>
7485 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
7486 parameter type to readable_regcache.
7487 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
7490 2018-03-11 Tom Tromey <tom@tromey.com>
7492 * dwarf2read.c (struct nextfield): Add initializers.
7493 (struct nextfnfield): Remove.
7494 (struct fnfieldlist): Add initializers. Remove "length" and
7495 "head", use std::vector.
7496 (struct decl_field_list): Remove.
7497 (struct field_info): Add initializers.
7498 <fields, baseclasses>: Now std::vector.
7499 <nbaseclasses, nfnfields, typedef_field_list_count,
7500 nested_types_list_count>: Remove.
7501 (dwarf2_add_field, dwarf2_add_type_defn)
7502 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
7503 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
7504 (process_structure_scope): Update.
7506 2018-03-11 Tom Tromey <tom@tromey.com>
7508 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
7509 for use by std::sort.
7510 (build_type_psymtabs_1): Use std::vector.
7512 2018-03-09 Eli Zaretskii <eliz@gnu.org>
7514 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
7515 and LIBMPFR in the printed configuration.
7517 2018-03-08 Tom Tromey <tom@tromey.com>
7519 * source.c (get_filename_and_charpos): Use scoped_fd.
7520 * nto-procfs.c (procfs_open_1): Use scoped_fd.
7521 (procfs_pidlist): Likewise.
7522 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
7523 (iterate_over_mappings): Likewise.
7525 2018-03-08 Tom Tromey <tom@tromey.com>
7527 * infcall.c (struct call_return_meta_info)
7528 <stack_temporaries_enabled>: Remove.
7529 (get_call_return_value, call_function_by_hand_dummy): Update.
7530 * thread.c (disable_thread_stack_temporaries): Remove.
7531 (enable_thread_stack_temporaries): Remove.
7532 (thread_stack_temporaries_enabled_p): Return bool.
7533 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
7534 (get_last_thread_stack_temporary): Update.
7535 * eval.c (evaluate_subexp): Update.
7536 * gdbthread.h (class enable_thread_stack_temporaries): Now a
7537 class, not a function.
7538 (value_ptr, value_vec): Remove typedefs.
7539 (class thread_info) <stack_temporaries_enabled>: Now bool.
7540 <stack_temporaries>: Now a std::vector.
7541 (thread_stack_temporaries_enabled_p)
7542 (value_in_thread_stack_temporaries): Return bool.
7544 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
7546 * remote.c (putpkt_binary): Fix omitted bytes reporting.
7547 (getpkt_or_notif_sane_1): Likewise.
7549 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7551 * build-id.c (build_id_to_debug_bfd): Use std::string.
7553 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7555 * build-id.c (find_separate_debug_file_by_buildid): Return
7557 * build-id.h (find_separate_debug_file_by_buildid): Return
7559 * coffread.c (coff_symfile_read): Adjust to std::string.
7560 * elfread.c (elf_symfile_read): Adjust to std::string.
7561 * symfile.c (separate_debug_file_exists): Change parameter to
7563 (find_separate_debug_file): Return std::string.
7564 (find_separate_debug_file_by_debuglink): Return std::string.
7565 * symfile.h (find_separate_debug_file_by_debuglink): Return
7568 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7570 * common/xml-utils.c (xml_escape_text): Move code to...
7571 (xml_escape_text_append): ... this new function.
7572 * common/xml-utils.h (xml_escape_text_append): New declaration.
7573 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
7575 (_initialize_xml_utils): register test_xml_escape_text_append as
7578 2018-03-07 Alan Hayward <alan.hayward@arm.com>
7580 * defs.h: Remove MAX_REGISTER_SIZE.
7581 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
7583 * python/py-unwind.c (pyuw_sniffer): Likewise.
7585 2018-03-07 Tom Tromey <tom@tromey.com>
7587 * linux-tdep.c (linux_info_proc): Update.
7588 * target.h (struct target_ops) <to_fileio_readlink>: Return
7590 (target_fileio_readlink): Return optional<string>.
7591 * remote.c (remote_hostio_readlink): Return optional<string>.
7592 * inf-child.c (inf_child_fileio_readlink): Return
7594 * target.c (target_fileio_readlink): Return optional<string>.
7596 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
7598 * regcache.c (cooked_read_test): Add riscv to the list of
7599 architectures that have a save_reggroup.
7601 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
7603 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
7604 value is not a dynamic class object.
7606 2018-03-06 Tom Tromey <tom@tromey.com>
7608 * rust-exp.y: Formatting fixes.
7610 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7612 * riscv-tdep.c (riscv_register_name): Remove target description
7614 (riscv_gdbarch_init): Remove target description check.
7616 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7618 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
7620 * riscv-tdep.h: Likewise.
7622 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7624 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
7625 (riscv_pseudo_register_write): Delete.
7626 (riscv_gdbarch_init): Remove all use of pseudo registers.
7628 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7630 * record-btrace.c (btrace_print_lines): Replace cleanup
7631 parameter with RAII equivalents.
7632 (btrace_insn_history): Replace cleanup with RAII equivalents.
7633 * ui-out.h (make_cleanup_ui_out_list_begin_end,
7634 make_cleanup_ui_out_tuple_begin_end): Remove.
7635 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
7636 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
7637 make_cleanup_ui_out_list_begin_end): Remove.
7639 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7641 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
7642 parameter types to std::vector. Use bool.
7643 (record_btrace_wait): Replace VEC(tp_t) with
7644 std::vector<thread_info *>.
7645 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
7647 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7649 * record-btrace.c (record_btrace_disable_callback): Remove.
7650 (struct scoped_btrace_disable): New.
7651 (record_btrace_open): Use scoped_btrace_disable.
7653 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7655 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
7656 reading values from registers.
7658 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7660 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
7663 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7665 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
7666 change parameter type. Use GDB's print functions, and use
7667 core_addr_to_string where appropriate.
7668 (riscv_push_dummy_call): Use core_addr_to_string where
7669 appropriate, update call to riscv_print_arg_location, and reindent
7671 (riscv_return_value): Update call to riscv_print_arg_location.
7673 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7674 Tim Newsome <tim@sifive.com>
7675 Albert Ou <a0u@eecs.berkeley.edu>
7676 Darius Rad <darius@bluespec.com>
7678 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
7679 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
7680 (ALLDEPFILES): Add riscv-tdep.c
7681 * configure.tgt: Add riscv support.
7682 * riscv-tdep.c: New file.
7683 * riscv-tdep.h: New file.
7684 * NEWS: Mention new target.
7685 * MAINTAINERS: Add entry for riscv.
7687 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7689 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
7690 fields within aggregates.
7692 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
7694 * record-btrace.c (btrace_print_lines): Change type of flags to
7695 gdb_disassembly_flags.
7697 2018-03-04 John Baldwin <jhb@FreeBSD.org>
7699 * fbsd-nat.c: Include "inf-ptrace.h".
7700 (USE_SIGTRAP_SIGINFO): Conditionally define.
7701 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
7702 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
7703 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
7705 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
7707 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
7709 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
7710 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
7711 "supports_stopped_by_hw_breakpoint" target methods.
7713 2018-03-04 John Baldwin <jhb@FreeBSD.org>
7715 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
7716 * fbsd-nat.c (debug_fbsd_nat): New variable.
7717 (show_fbsd_nat_debug): New function.
7718 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
7719 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
7721 2018-03-04 John Baldwin <jhb@FreeBSD.org>
7723 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
7724 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
7726 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
7727 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
7730 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7732 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
7733 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
7735 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7737 * charset.c (struct charset_vector): New.
7738 (charsets): Change type to charset_vector.
7739 (find_charset_names): Adjust.
7741 (_initialize_charset): Adjust.
7743 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7745 * progspace.h (struct program_space) <deleted_solibs>: Change
7746 type to std::vector<std::string>.
7747 * progspace.c (clear_program_space_solib_cache): Adjust.
7748 * breakpoint.c (print_solib_event): Adjust.
7749 (check_status_catch_solib): Adjust.
7750 * solib.c (update_solib_list): Adjust.
7751 * ui-out.h (class ui_out) <field_string>: New overload.
7752 * ui-out.c (ui_out::field_string): New overload.
7754 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7756 * progspace.h (struct program_space): Add constructor and
7757 destructor, initialize fields.
7758 (add_program_space): Remove.
7759 * progspace.c (add_program_space): Rename to...
7760 (program_space::program_space): ... this.
7761 (release_program_space): Rename to...
7762 (program_space::~program_space): ... this.
7763 (delete_program_space): Use delete to delete program_space.
7764 (initialize_progspace): Use new to allocate program_space.
7765 * inferior.c (add_inferior_with_spaces): Likewise.
7766 (clone_inferior_command): Likewise.
7767 * infrun.c (follow_fork_inferior): Likewise.
7768 (handle_vfork_child_exec_or_exit): Likewise.
7770 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7772 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
7773 (delim_string_to_char_ptr_vec): Return std::vector of
7774 gdb::unique_xmalloc_ptr.
7775 (dirnames_to_char_ptr_vec_append): Take std::vector of
7776 gdb::unique_xmalloc_ptr.
7777 (dirnames_to_char_ptr_vec): Return std::vector of
7778 gdb::unique_xmalloc_ptr.
7779 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
7780 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
7781 (delim_string_to_char_ptr_vec): Return an std::vector of
7782 gdb::unique_xmalloc_ptr, adjust the code.
7783 (dirnames_to_char_ptr_vec_append): Take an std::vector of
7784 gdb::unique_xmalloc_ptr, adjust the code.
7785 (dirnames_to_char_ptr_vec): Return an std::vector of
7786 gdb::unique_xmalloc_ptr, adjust the code.
7787 * auto-load.c (auto_load_safe_path_vec): Change type to
7788 std::vector of gdb::unique_xmalloc_ptr.
7789 (auto_load_expand_dir_vars): Return an std::vector of
7790 gdb::unique_xmalloc_ptr, adjust the code.
7791 (auto_load_safe_path_vec_update): Adjust.
7792 (filename_is_in_auto_load_safe_path_vec): Adjust.
7793 (auto_load_objfile_script_1): Adjust.
7794 * build-id.c (build_id_to_debug_bfd): Adjust.
7795 * linux-thread-db.c (thread_db_load_search): Adjust.
7796 * source.c (add_path): Adjust.
7798 * symfile.c (find_separate_debug_file): Adjust.
7799 * utils.c (do_free_char_ptr_vec): Remove.
7800 (make_cleanup_free_char_ptr_vec): Remove.
7802 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
7805 * common/pathstuff.c: Conditionally include "<windows.h>".
7807 2018-03-01 Georg Sauthoff <mail@georg.so>
7810 * gcore.in: Quote variables and switch interpreter to bash.
7812 2018-03-01 Tom Tromey <tom@tromey.com>
7814 * dwarf2read.c (alloc_discriminant_info): Fix default_index
7815 assertion. Add assertion for discriminant_index.
7816 (quirk_rust_enum): Use correct base type name in univariant case.
7818 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
7820 * record.c (get_call_history_modifiers): Return a
7822 (cmd_record_call_history): Adjust.
7823 * record-btrace.c (record_btrace_call_history): Adjust.
7824 (record_btrace_call_history_range): Adjust.
7825 (record_btrace_call_history_from): Adjust.
7826 * target-debug.h (target_debug_print_record_print_flags): New.
7827 * target-delegates.c: Re-generate.
7828 * target.c (target_call_history): Change flags type.
7829 (target_call_history_from): Likewise.
7830 (target_call_history_range): Likewise.
7831 * target.h (struct target_ops) <target_call_history>: Likewise.
7832 (target_call_history_from): Likewise.
7833 (target_call_history_range): Likewise.
7835 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
7836 Simon Marchi <simon.marchi@polymtl.ca>
7838 * common/common-utils.c: Include "sys/stat.h".
7839 (is_regular_file): Move here from "source.c"; change return
7841 * common/common-utils.h (is_regular_file): New prototype.
7842 * common/pathstuff.c (contains_dir_separator): New function.
7843 * common/pathstuff.h (contains_dir_separator): New prototype.
7844 * source.c: Don't include "sys/stat.h".
7845 (is_regular_file): Move to "common/common-utils.c".
7847 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
7849 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
7850 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
7851 * auto-load.c: Include "common/pathstuff.h".
7852 * common/common-def.h (current_directory): Move here.
7853 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
7855 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
7857 * common/pathstuff.c: New file.
7858 * common/pathstuff.h: New file.
7859 * compile/compile.c: Include "common/pathstuff.h".
7860 * defs.h (current_directory): Move to "common/common-defs.h".
7861 * dwarf2read.c: Include "common/pathstuff.h".
7863 * guile/scm-safe-call.c: Likewise.
7864 * linux-thread-db.c: Likewise.
7866 * nto-tdep.c: Likewise.
7867 * objfiles.c: Likewise.
7868 * source.c: Likewise.
7869 * symtab.c: Likewise.
7870 * utils.c: Include "common/pathstuff.h".
7871 (gdb_realpath): Move to "common/pathstuff.c".
7872 (gdb_realpath_keepfile): Likewise.
7873 (gdb_abspath): Likewise.
7874 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
7875 (gdb_realpath_keepfile): Likewise.
7876 (gdb_abspath): Likewise.
7878 2018-02-28 John Baldwin <jhb@FreeBSD.org>
7880 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
7881 wildcard process pid for super_resume for kernels with a
7884 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
7886 * compile/compile.c (get_args): Add additional comments
7887 explaining function.
7889 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
7890 Tom Tromey <tom@tromey.com>
7892 * target.h (memory_write_request_s): Remove typedef. Don't define
7894 (target_write_memory_blocks): Change argument to std::vector.
7895 (struct memory_write_request): Add constructor.
7896 * target-memory.c (compare_block_starting_address): Return bool.
7897 Change argument types.
7898 (claim_memory): Change arguments to use std::vector.
7899 (split_regular_and_flash_blocks, blocks_to_erase)
7900 (compute_garbled_blocks): Likewise.
7901 (cleanup_request_data, cleanup_write_requests_vector): Remove.
7902 (target_write_memory_blocks): Change argument to std::vector.
7903 * symfile.c (struct load_section_data): Add constructor and
7904 destructor. Use std::vector for "requests".
7905 (struct load_progress_data): Add initializers.
7906 (load_section_callback): Update. Use "new".
7907 (clear_memory_write_data): Remove.
7908 (generic_load): Update.
7910 2018-02-27 Alan Hayward <alan.hayward@arm.com>
7912 * arch/aarch64.h: Use common/tdesc.h.
7914 2018-02-26 Maciej W. Rozycki <macro@mips.com>
7916 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
7917 architecture with a 64-bit ABI.
7919 2018-02-26 Maciej W. Rozycki <macro@mips.com>
7921 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
7922 ahead of target description loading.
7924 2018-02-26 Tom Tromey <tom@tromey.com>
7926 * stack.c (backtrace_command_1): Update.
7927 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
7929 * python/py-framefilter.c (py_print_frame)
7930 (gdbpy_apply_frame_filter): Change type of "flags".
7931 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
7933 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
7934 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
7935 * extension.h (enum frame_filter_flag): Rename from
7937 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
7938 (apply_ext_lang_frame_filter): Change type of "flags".
7939 * extension.c (apply_ext_lang_frame_filter): Change type of
7941 * extension-priv.h (struct extension_language_ops)
7942 <apply_frame_filter>: Change type of "flags".
7944 2018-02-26 Tom Tromey <tom@tromey.com>
7947 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
7948 off-by-one in py_end computation.
7949 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
7951 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
7954 2018-02-26 Tom Tromey <tom@tromey.com>
7956 * dwarf2read.c (struct variant_field): New.
7957 (struct nextfield) <variant>: New field.
7958 (dwarf2_add_field): Handle DW_TAG_variant_part.
7959 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
7960 discriminated union.
7961 (read_structure_type): Handle DW_TAG_variant_part.
7962 (handle_struct_member_die): New function, extracted from
7963 process_structure_scope. Handle DW_TAG_variant.
7964 (process_structure_scope): Handle discriminated unions. Call
7965 handle_struct_member_die.
7967 2018-02-26 Tom Tromey <tom@tromey.com>
7969 * rust-lang.h (rust_last_path_segment): Declare.
7970 * rust-lang.c (rust_last_path_segment): Now public. Change
7972 (struct disr_info): Remove.
7973 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
7974 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
7975 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
7976 (rust_enum_p, rust_enum_variant): New function.
7977 (rust_underscore_fields): Remove "offset" parameter.
7978 (rust_print_enum): New function.
7979 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
7980 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
7981 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
7983 (rust_internal_print_type): New function, from rust_print_type.
7985 (rust_print_type): Call rust_internal_print_type.
7986 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
7987 Update enum handling.
7988 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
7989 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
7990 (rust_union_quirks): New functions.
7991 (process_full_comp_unit, process_full_type_unit): Call
7993 (process_structure_scope): Update rust_unions if necessary.
7995 2018-02-26 Tom Tromey <tom@tromey.com>
7997 * value.h (value_union_variant): Declare.
7998 * valops.c (value_union_variant): New function.
7999 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
8000 (struct discriminant_info): New.
8001 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
8003 (struct main_type) <flag_discriminated_union>: New field.
8005 2018-02-26 Tom Tromey <tom@tromey.com>
8007 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8008 unittests/unpack-selftests.c.
8009 * unittests/unpack-selftests.c: New file.
8010 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
8012 2018-02-26 Yao Qi <yao.qi@linaro.org>
8014 * dwarf2read.c (struct partial_die_info) <read>: New method.
8015 (read_partial_die): Remove the declaration.
8016 (load_partial_dies): Update.
8017 (partial_die_info::partial_die_info):
8018 (read_partial_die): Change it to partial_die_info::read.
8020 2018-02-26 Yao Qi <yao.qi@linaro.org>
8022 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
8023 (fixup_partial_die): Remove declaration.
8024 (scan_partial_symbols): Update.
8025 (partial_die_parent_scope): Likewise.
8026 (partial_die_full_name): Likewise.
8027 (fixup_partial_die): Change it to partial_die_info::fixup.
8029 2018-02-26 Yao Qi <yao.qi@linaro.org>
8031 * dwarf2read.c (read_partial_die): Update the declaration.
8032 (load_partial_dies): Caller update.
8033 (read_partial_die): Remove one argument abbrev_len.
8035 2018-02-26 Yao Qi <yao.qi@linaro.org>
8037 * dwarf2read.c (struct partial_die_info): Add ctor, delete
8038 assignment operator.
8039 (load_partial_dies): Use ctor and copy ctor.
8040 (read_partial_die): Update.
8041 (dwarf2_cu::find_partial_die): Use ctor.
8043 2018-02-26 Yao Qi <yao.qi@linaro.org>
8045 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
8046 (find_partial_die_in_comp_unit): Change it to
8047 dwarf2_cu::find_partial_die.
8048 (find_partial_die): Update.
8050 2018-02-26 Yao Qi <yao.qi@linaro.org>
8052 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
8055 2018-02-26 Yao Qi <yao.qi@linaro.org>
8057 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
8059 2018-02-26 Alan Hayward <alan.hayward@arm.com>
8061 * arch/amd64.h: Use common/tdesc.h.
8062 * arch/i386.c: Likewise.
8063 * arch/i386.h: Likewise.
8064 * arch/tic6x.c: Likewise.
8065 * arch/tdesc.h: Move file from here...
8066 * common/tdesc.h: ...to here.
8067 * features/aarch64-core.c: Regenerate.
8068 * features/aarch64-fpu.c: Regenerate.
8069 * features/i386/32bit-avx.c: Regenerate.
8070 * features/i386/32bit-avx512.c: Regenerate.
8071 * features/i386/32bit-core.c: Regenerate.
8072 * features/i386/32bit-linux.c: Regenerate.
8073 * features/i386/32bit-mpx.c: Regenerate.
8074 * features/i386/32bit-pkeys.c: Regenerate.
8075 * features/i386/32bit-sse.c: Regenerate.
8076 * features/i386/64bit-avx.c: Regenerate.
8077 * features/i386/64bit-avx512.c: Regenerate.
8078 * features/i386/64bit-core.c: Regenerate.
8079 * features/i386/64bit-linux.c: Regenerate.
8080 * features/i386/64bit-mpx.c: Regenerate.
8081 * features/i386/64bit-pkeys.c: Regenerate.
8082 * features/i386/64bit-segments.c: Regenerate.
8083 * features/i386/64bit-sse.c: Regenerate.
8084 * features/i386/x32-core.c: Regenerate.
8085 * features/tic6x-c6xp.c: Regenerate.
8086 * features/tic6x-core.c: Regenerate.
8087 * features/tic6x-gp.c: Regenerate.
8088 * target-descriptions.c: Use common/tdesc.h.
8089 * target-descriptions.h: Likewise.
8091 2018-02-24 Tom Tromey <tom@tromey.com>
8093 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8094 (try_thread_db_load_from_dir, thread_db_load_search): Use
8096 (info_auto_load_libthread_db_compare): Return bool. Change
8098 (info_auto_load_libthread_db): Use std::vector, std::string.
8101 2018-02-24 Tom Tromey <tom@tromey.com>
8103 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
8105 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
8107 * gdbarch.c: Rebuild.
8108 * gdbarch.h: Rebuild.
8109 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
8110 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
8111 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
8114 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
8116 * gdbtypes.h (sect_offset): Change type to uint64_t.
8117 (sect_offset_str): New function.
8118 * dwarf2read.c (create_addrmap_from_aranges): Use
8120 (error_check_comp_unit_head): Likewise.
8121 (create_debug_type_hash_table): Likewise.
8122 (read_cutu_die_from_dwo): Likewise.
8123 (init_cutu_and_read_dies): Likewise.
8124 (init_cutu_and_read_dies_no_follow): Likewise.
8125 (process_psymtab_comp_unit_reader): Likewise.
8126 (partial_die_parent_scope): Likewise.
8127 (peek_die_abbrev): Likewise.
8128 (process_queue): Likewise.
8129 (dwarf2_physname): Likewise.
8130 (read_namespace_alias): Likewise.
8131 (read_import_statement): Likewise.
8132 (create_dwo_cu_reader): Likewise.
8133 (create_cus_hash_table): Likewise.
8134 (lookup_dwo_cutu): Likewise.
8135 (inherit_abstract_dies): Likewise.
8136 (read_func_scope): Likewise.
8137 (read_call_site_scope): Likewise.
8138 (dwarf2_add_member_fn): Likewise.
8139 (read_common_block): Likewise.
8140 (read_module_type): Likewise.
8141 (read_typedef): Likewise.
8142 (read_subrange_type): Likewise.
8143 (load_partial_dies): Likewise.
8144 (read_partial_die): Likewise.
8145 (find_partial_die): Likewise.
8146 (read_str_index): Likewise.
8147 (dwarf2_string_attr): Likewise.
8148 (build_error_marker_type): Likewise.
8149 (lookup_die_type): Likewise.
8150 (dump_die_shallow): Likewise.
8151 (follow_die_ref): Likewise.
8152 (dwarf2_fetch_die_loc_sect_off): Likewise.
8153 (dwarf2_fetch_constant_bytes): Likewise.
8154 (follow_die_sig): Likewise.
8155 (get_signatured_type): Likewise.
8156 (get_DW_AT_signature_type): Likewise.
8157 (dwarf2_find_containing_comp_unit): Likewise.
8158 (set_die_type): Likewise.
8160 2018-02-21 John Baldwin <jhb@FreeBSD.org>
8162 * arch/aarch64.c: Include "common-defs.h".
8163 * arch/amd64.c: Likewise.
8164 * arch/i386.c: Likewise.
8166 2018-02-21 Tom Tromey <tom@tromey.com>
8168 * value.h: (extract_field_op): Update.
8169 * eval.c (extract_field_op): Return a const char *.
8170 * expression.h (parse_expression_for_completion): Update.
8171 * completer.c (complete_expression): Update.
8172 (add_struct_fields): Make fieldname const.
8173 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
8174 (mark_completion_tag, parse_exp_in_context_1): Update.
8175 (parse_expression_for_completion): Change "name" to
8176 unique_xmalloc_ptr*.
8178 2018-02-21 Tom Tromey <tom@tromey.com>
8180 * infcall.c (call_function_by_hand_dummy): Use std::vector.
8182 2018-02-21 Yao Qi <yao.qi@linaro.org>
8184 * avr-tdep.c (avr_read_pc): Change parameter type to
8186 * gdbarch.sh (read_pc): Likewise.
8187 * gdbarch.c: Re-generated.
8188 * gdbarch.h: Re-generated.
8189 * hppa-tdep.c (hppa_read_pc): Change parameter type to
8191 * ia64-tdep.c (ia64_read_pc): Likewise.
8192 * mips-tdep.c (mips_read_pc): Likewise.
8193 * spu-tdep.c (spu_read_pc): Likewise.
8195 2018-02-21 Yao Qi <yao.qi@linaro.org>
8197 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
8198 * regcache-dump.c: New file.
8199 * regcache.c: Move register_dump to regcache-dump.c.
8200 (maintenance_print_registers): Likewise.
8201 (maintenance_print_raw_registers): Likewise.
8202 (maintenance_print_cooked_registers): Likewise.
8203 (maintenance_print_register_groups): Likewise.
8204 (maintenance_print_remote_registers): Likewise.
8205 (_initialize_regcache): Likewise.
8206 * regcache.h (register_dump): Moved from regcache.c.
8208 2018-02-21 Yao Qi <yao.qi@linaro.org>
8210 * regcache.c (regcache::regcache): Update.
8211 (regcache::invalidate): Move it to detached_regcache::invalidate.
8212 (get_thread_arch_aspace_regcache): Update.
8213 (regcache::raw_update): Update.
8214 (regcache::cooked_read): Remove some code.
8215 (regcache::cooked_read_value): Likewise.
8216 (regcache::raw_write): Remove assert on m_readonly_p.
8217 (regcache::raw_supply_integer): Move it to
8218 detached_regcache::raw_supply_integer.
8219 (regcache::raw_supply_zeroed): Likewise.
8220 * regcache.h (detached_regcache) <raw_supply_integer>: New
8222 <raw_supply_zeroed, invalidate>: Likewise.
8223 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
8224 <invalidate>: Likewise.
8225 <m_readonly_p>: Removed.
8227 2018-02-21 Yao Qi <yao.qi@linaro.org>
8229 * infcmd.c (get_return_value): Let stop_regs point to
8230 get_current_regcache.
8231 * regcache.c (regcache::regcache): Remove.
8232 (register_dump_reg_buffer): New class.
8233 (regcache_print): Adjust.
8234 * regcache.h (regcache): Remove constructors.
8236 2018-02-21 Yao Qi <yao.qi@linaro.org>
8238 * regcache.c (class register_dump): New class.
8239 (register_dump_regcache, register_dump_none): New class.
8240 (register_dump_remote, register_dump_groups): New class.
8241 (regcache_print): Update.
8242 * regcache.h (regcache_dump_what): Move it to regcache.c.
8243 (regcache) <dump>: Remove.
8245 2018-02-21 Yao Qi <yao.qi@linaro.org>
8247 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
8249 (jit_unwind_reg_set_impl): Call raw_supply.
8250 (jit_frame_sniffer): Use reg_buffer_rw.
8251 * record-full.c (record_full_core_regbuf): Change its type.
8252 (record_full_core_open_1): Use reg_buffer_rw.
8253 (record_full_close): Likewise.
8254 (record_full_core_fetch_registers): Use regcache->raw_supply.
8255 (record_full_core_store_registers): Likewise.
8256 * regcache.c (regcache::get_register_status): Move it to
8258 (regcache_raw_set_cached_value): Remove.
8259 (regcache::raw_set_cached_value): Remove.
8260 (regcache::raw_write): Call raw_supply.
8261 (regcache::raw_supply): Move it to reg_buffer_rw.
8262 * regcache.h (regcache_raw_set_cached_value): Remove.
8263 (reg_buffer_rw): New class.
8265 2018-02-21 Yao Qi <yao.qi@linaro.org>
8267 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
8268 readonly_detached_regcache.
8269 (dummy_frame_prev_register): Use regcache->cooked_read.
8270 * frame.c (frame_save_as_regcache): Change return type.
8271 (frame_pop): Update.
8272 * frame.h (frame_save_as_regcache): Update declaration.
8273 * inferior.h (get_infcall_suspend_state_regcache): Update
8275 * infrun.c (infcall_suspend_state) <registers>: use
8276 readonly_detached_regcache.
8277 (save_infcall_suspend_state): Don't use regcache_dup.
8278 (get_infcall_suspend_state_regcache): Change return type.
8279 * linux-fork.c (struct fork_info) <savedregs>: Change to
8280 readonly_detached_regcache.
8282 (fork_save_infrun_state): Don't use regcache_dup.
8283 (info_checkpoints_command): Adjust.
8284 * mi/mi-main.c (register_changed_p): Update declaration.
8285 (mi_cmd_data_list_changed_registers): Use
8286 readonly_detached_regcache.
8287 (register_changed_p): Change parameter type to
8288 readonly_detached_regcache.
8289 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
8290 readonly_detached_regcache.
8291 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
8292 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
8294 (regcache::save): Move it to reg_buffer.
8295 (regcache::restore): Change parameter type.
8296 (regcache_dup): Remove.
8297 * regcache.h (reg_buffer) <save>: New method.
8298 (readonly_detached_regcache): New class.
8299 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
8300 readonly_detached_regcache.
8301 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
8303 2018-02-21 Yao Qi <yao.qi@linaro.org>
8305 * frame.c (frame_save_as_regcache): Use regcache method save.
8306 (frame_pop): Use regcache method restore.
8307 * infrun.c (restore_infcall_suspend_state): Likewise.
8308 * linux-fork.c (fork_load_infrun_state): Likewise.
8309 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
8311 * regcache.c (regcache_save): Remove.
8312 (regcache::restore): More asserts.
8313 (regcache_cpy): Remove.
8314 * regcache.h (regcache_save): Remove the declaration.
8315 (regcache::restore): Move from private to public.
8316 Remove the friend declaration of regcache_cpy.
8317 (regcache_cpy): Remove declaration.
8319 2018-02-21 Yao Qi <yao.qi@linaro.org>
8321 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
8322 parameter type to 'readable_regcache *'.
8323 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
8324 * arm-tdep.c (arm_neon_quad_read): Likewise.
8325 (arm_pseudo_read): Likewise.
8326 * avr-tdep.c (avr_pseudo_register_read): Likewise.
8327 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
8328 * frv-tdep.c (frv_pseudo_register_read): Likewise.
8329 * gdbarch.c: Re-generated.
8330 * gdbarch.h: Re-generated.
8331 * gdbarch.sh (pseudo_register_read): Change parameter type to
8332 'readable_regcache *'.
8333 (pseudo_register_read_value): Likewise.
8334 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
8335 (h8300_pseudo_register_read): Likewise.
8336 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
8337 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
8338 (i386_pseudo_register_read_into_value): Likewise.
8339 (i386_pseudo_register_read_value): Likewise.
8340 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
8342 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
8343 * m32c-tdep.c (m32c_raw_read): Likewise.
8344 (m32c_read_flg): Likewise.
8345 (m32c_banked_register): Likewise.
8346 (m32c_banked_read): Likewise.
8347 (m32c_sb_read): Likewise.
8348 (m32c_part_read): Likewise.
8349 (m32c_cat_read): Likewise.
8350 (m32c_r3r2r1r0_read): Likewise.
8351 (m32c_pseudo_register_read): Likewise.
8352 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
8353 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
8354 (mep_pseudo_cr64_read): Likewise.
8355 (mep_pseudo_register_read): Likewise.
8356 * mips-tdep.c (mips_pseudo_register_read): Likewise.
8357 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
8358 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
8359 * regcache.c (regcache::raw_read): Move it to readable_regcache.
8360 (regcache::cooked_read): Likewise.
8361 (regcache::cooked_read_value): Likewise.
8362 (regcache_cooked_read_signed):
8363 (regcache::cooked_read): Likewise.
8364 * regcache.h (readable_regcache): New class.
8365 (regcache): Inherit readable_regcache. Move some methods to
8367 * rl78-tdep.c (rl78_pseudo_register_read): Change
8368 parameter type to 'readable_regcache *'.
8369 * rs6000-tdep.c (do_regcache_raw_read): Remove.
8370 (e500_pseudo_register_read): Change parameter type to
8371 'readable_regcache *'.
8372 (dfp_pseudo_register_read): Likewise.
8373 (vsx_pseudo_register_read): Likewise.
8374 (efpr_pseudo_register_read): Likewise.
8375 * s390-tdep.c (s390_pseudo_register_read): Likewise.
8376 * sh-tdep.c (sh_pseudo_register_read): Likewise.
8377 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
8378 (sh64_pseudo_register_read): Likewise.
8379 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
8380 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
8381 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
8382 (spu_pseudo_register_read): Likewise.
8383 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
8384 (xtensa_pseudo_register_read): Likewise.
8386 2018-02-21 Yao Qi <yao.qi@linaro.org>
8388 * regcache.c (regcache::regcache): Call reg_buffer ctor.
8389 (regcache::arch): Move it to reg_buffer::arch.
8390 (regcache::register_buffer): Likewise.
8391 (regcache::assert_regnum): Likewise.
8392 (regcache::num_raw_registers): Likewise.
8393 * regcache.h (reg_buffer): New class.
8394 (regcache): Inherit reg_buffer.
8396 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
8398 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
8399 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
8401 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
8403 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
8405 2018-02-19 Alan Hayward <alan.hayward@arm.com>
8407 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
8408 (SFILES): Remove common/*.c files.
8409 (COMMON_OBS): Remove some *.o files built from common/*.c files.
8410 * common/common.host: Add common reference.
8411 * configure.ac: Likewise.
8412 * configure: Regenerate.
8414 2018-02-16 Yao Qi <yao.qi@linaro.org>
8416 * block.c (block_namespace_info): Inherit allocate_on_obstack.
8417 (block_initialize_namespace): Use new.
8418 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
8419 (dwarf2_free_objfile): Use delete.
8420 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
8421 (copy_type_recursive): Use new.
8422 * gdb_obstack.h (allocate_on_obstack): New.
8424 2018-02-15 Yao Qi <yao.qi@linaro.org>
8427 * inferior.c (exit_inferior_1): Reset inf->control.
8429 2018-02-15 Joel Brobecker <brobecker@adacore.com>
8431 * ada-lang.c (ada_to_fixed_value_create): Delete advance
8434 2018-02-14 Pedro Alves <palves@redhat.com>
8436 * frame-unwind.c (frame_unwind_try_unwinder): Always call
8437 frame_cleanup_after_sniffer on exception.
8439 2018-02-14 Tom Tromey <tom@tromey.com>
8441 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
8443 (solib_bfd_open): Make pathname const.
8444 * solib.c (solib_bfd_open): Make pathname const.
8445 * solib-spu.c (spu_bfd_fopen): Make name const.
8446 (spu_bfd_open): Make pathname const.
8447 * solib-darwin.c (darwin_bfd_open): Make pathname const.
8448 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
8450 2018-02-14 Tom Tromey <tom@tromey.com>
8452 * symfile.c (symfile_bfd_open): Update.
8453 * source.h (openp, source_full_path_of, find_and_open_source):
8454 Change argument type to unique_xmalloc_ptr.
8455 * source.c (openp): Take a unique_xmalloc_ptr.
8456 (source_full_path_of, find_and_open_source): Likewise.
8457 (open_source_file, symtab_to_fullname): Update.
8458 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
8460 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
8461 (exec_file_find): Update.
8462 * psymtab.c (psymtab_to_fullname): Update.
8463 * nto-tdep.h (nto_find_and_open_solib): Update.
8464 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
8466 * exec.c (exec_file_attach): Update.
8467 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
8468 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
8470 2018-02-14 Tom Tromey <tom@tromey.com>
8472 * solib.c: Include source.h.
8473 * nto-tdep.c: Include source.h.
8474 * mi/mi-cmd-env.c: Include source.h.
8475 * infcmd.c: Include source.h.
8476 * exec.c: Include source.h.
8477 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
8478 (add_path, directory_switch, source_path, init_source_path): Move
8480 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
8481 (add_path, directory_switch, source_path, init_source_path):
8484 2018-02-14 Tom Tromey <tom@tromey.com>
8486 * solist.h (exec_file_find, solib_find): Return
8488 (solib_bfd_fopen): Take a const char *.
8489 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
8490 (exec_file_find, solib_find): Likewise.
8491 (solib_bfd_fopen): Do not take ownership of "pathname".
8492 (solib_bfd_open): Use unique_xmalloc_ptr.
8493 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
8494 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
8495 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
8496 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
8498 2018-02-14 Joel Brobecker <brobecker@adacore.com>
8500 * ada-lang.c (name_match_type_from_name): Remove reference to
8501 ada_name_for_lookup in function's documentation.
8502 * ada-lang.h (ada_name_for_lookup): Delete declaration.
8504 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
8506 * defs.h (enum openp_flags): New enum.
8507 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
8508 Move to enum openp_flags.
8509 (openp_flags): New enum flags.
8510 (openp): Change parameter type to openp_flags.
8511 * source.c (openp): Change parameter type to openp_flags.
8512 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
8513 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
8515 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
8517 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
8520 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
8522 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
8524 (class dwarf2_queue_guard): ...the destructor of this new class.
8525 (dw2_do_instantiate_symtab): Create instance of the new class
8526 dwarf2_queue_guard, remove cleanup.
8528 2018-02-09 Tom Tromey <tom@tromey.com>
8530 * source.c (find_source_lines): Don't reference past the end of
8533 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8535 * remote.c (remote_btrace_maybe_reopen): Change error message.
8536 * btrace.c (btrace_enable): Likewise.
8537 (parse_xml_btrace): Likewise.
8538 (parse_xml_btrace_conf): Likewise.
8540 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8542 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
8543 (linux_enable_pt, linux_enable_bts): Call
8544 diagnose_perf_event_open_fail.
8546 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8548 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
8549 Remove parameter and change return type. Update callers. Move it.
8550 (linux_enable_bts, linux_enable_pt): Improve error message.
8551 (linux_enable_pt): Remove zero buffer size check.
8552 (linux_enable_btrace): Improve error messages. Remove NULL return
8555 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8557 * btrace.c (btrace_enable): Remove target_supports_btrace call.
8558 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
8559 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
8560 (linux_supports_pt, linux_supports_btrace): Remove.
8561 (linux_enable_bts): Call cpu_supports_bts.
8562 * nat/linux-btrace.h (linux_supports_btrace): Remove.
8563 * remote.c (remote_supports_btrace): Remove.
8564 (init_remote_ops): Remove remote_supports_btrace.
8565 * target-delegates.c: Regenerated.
8566 * target.c (target_supports_btrace): Remove.
8567 * target.h (target_ops) <to_supports_btrace>: Remove
8568 (target_supports_btrace): Remove.
8569 * x86-linux-nat.c (x86_linux_create_target): Remove
8570 linux_supports_btrace.
8572 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8574 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
8576 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
8577 exception and use message in own exception.
8579 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8581 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
8582 (perf_event_pt_event_type): Use gdb_file_up.
8583 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
8584 scoped_fd, and scoped_mmap.
8586 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8588 * common/scoped_mmap.h: New.
8589 * unittests/scoped_mmap-selftest.c: New.
8590 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8591 unittests/scoped_mmap-selftest.c.
8593 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8595 * common/scoped_fd.h: New.
8596 * unittests/scoped_fd-selftest.c: New.
8597 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8598 unittests/scoped_fd-selftest.c.
8600 2018-02-09 Tom Tromey <tom@tromey.com>
8602 * auto-load.c (auto_load_section_scripts): Use
8603 gdb::unique_xmalloc_ptr.
8605 2018-02-09 Tom Tromey <tom@tromey.com>
8607 * auto-load.c (execute_script_contents): Use std::string.
8609 2018-02-09 Joel Brobecker <brobecker@adacore.com>
8611 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
8612 Python function, rather than a new command.
8614 2018-02-08 Tom Tromey <tom@tromey.com>
8616 * solib.c (solib_find_1): Use std::string.
8617 (solib_bfd_fopen): Use unique_xmalloc_ptr.
8619 2018-02-08 Tom Tromey <tom@tromey.com>
8621 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
8623 2018-02-08 Tom Tromey <tom@tromey.com>
8625 * source.c (find_source_lines): Use gdb::def_vector.
8627 2018-02-08 Tom Tromey <tom@tromey.com>
8629 * macrocmd.c (struct temporary_macro_definition): New.
8630 (macro_define_command): Use temporary_macro_definition. Remove
8632 (free_macro_definition_ptr): Remove.
8634 2018-02-08 Tom Tromey <tom@tromey.com>
8636 * macroexp.c (maybe_expand): Use std::string.
8638 2018-02-08 Tom Tromey <tom@tromey.com>
8640 * macroexp.c (struct macro_buffer): Add initializers for some
8642 (init_buffer, init_shared_buffer, free_buffer)
8643 (free_buffer_return_text): Remove.
8644 (macro_buffer): New constructors.
8645 (~macro_buffer): New destructor.
8646 (macro_buffer::set_shared): New method.
8647 (macro_buffer::resize_buffer, macro_buffer::appendc)
8648 (macro_buffer::appendmem): Now methods, not free functions.
8649 (set_token, append_tokens_without_splicing, stringify)
8650 (macro_stringify): Update.
8651 (gather_arguments): Change return type. Remove argc_p argument,
8652 add args_ptr argument. Use std::vector.
8653 (substitute_args): Remove argc argument. Accept std::vector.
8654 (expand): Update. Use std::vector.
8655 (scan, macro_expand, macro_expand_next): Update.
8657 2018-02-08 Tom Tromey <tom@tromey.com>
8659 * symtab.c (default_collect_symbol_completion_matches_break_on):
8660 Use unique_xmalloc_ptr.
8661 * macroscope.h: (sal_macro_scope, user_macro_scope)
8662 (default_macro_scope): Return unique_xmalloc_ptr.
8663 * macroscope.c (sal_macro_scope, user_macro_scope)
8664 (default_macro_scope): Return unique_xmalloc_ptr.
8665 * macroexp.h (macro_expand, macro_expand_once): Return
8667 * macroexp.c (macro_expand, macro_expand_once): Return
8669 * macrocmd.c (macro_expand_command, macro_expand_once_command)
8670 (info_macro_command, info_macros_command): Use
8672 * compile/compile-c-support.c (write_macro_definitions): Use
8674 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
8676 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
8678 * value.c (value_static_field): Assign field type instead of
8679 containing type when returning an optimized out value.
8681 2018-02-06 Yao Qi <yao.qi@linaro.org>
8683 * ft32-tdep.c (ft32_read_pc): Remove.
8684 (ft32_write_pc): Remove.
8685 (ft32_gdbarch_init): Update.
8686 * m32r-tdep.c (m32r_read_pc): Remove.
8687 (m32r_gdbarch_init): Update.
8688 * mep-tdep.c (mep_read_pc): Remove.
8689 (mep_gdbarch_init): Update.
8690 * microblaze-tdep.c (microblaze_write_pc): Remove.
8691 (microblaze_gdbarch_init): Update.
8692 * mn10300-tdep.c (mn10300_read_pc): Remove.
8693 (mn10300_write_pc): Remove.
8694 (mn10300_gdbarch_init): Update.
8695 * moxie-tdep.c (moxie_read_pc): Remove.
8696 (moxie_write_pc): Remove.
8697 (moxie_gdbarch_init): Update.
8699 2018-02-06 Yao Qi <yao.qi@linaro.org>
8701 * expprint.c (print_subexp_standard): Handle
8702 OP_F77_UNDETERMINED_ARGLIST.
8703 (dump_subexp_body_standard): Likewise.
8705 2018-02-05 Alan Hayward <alan.hayward@arm.com>
8707 * target-descriptions.c (tdesc_element_visitor) Add empty
8709 (tdesc_type): Move make_gdb_type from here.
8710 (tdesc_type_builtin): Likewise.
8711 (tdesc_type_vector): Likewise.
8712 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
8713 (make_gdb_type_struct): Move from tdesc_type_with_fields.
8714 (make_gdb_type_union): Likewise.
8715 (make_gdb_type_flags): Likewise.
8716 (make_gdb_type_enum): Likewise.
8717 (make_gdb_type): New function.
8718 (tdesc_register_type): Use static make_gdb_type.
8720 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
8722 * infcmd.c (default_print_one_register_info): Align natural-format
8723 column values consistently one under another.
8724 (pad_to_column): New function.
8726 2018-02-05 Joel Brobecker <brobecker@adacore.com>
8728 * dwarf2read.c (dwarf2_physname): Move commment.
8730 2018-02-01 Leszek Swirski <leszeks@google.com>
8732 * varobj.c (varobj_formatted_print_options): Allow recursive
8733 pretty printing if pretty printing is enabled.
8735 2018-02-01 Leszek Swirski <leszeks@google.com>
8737 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
8738 names after a structop as a filename.
8740 2018-02-01 Yao Qi <yao.qi@linaro.org>
8742 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
8743 (arm_record_coproc_data_proc): Likewise.
8745 2018-02-01 Yao Qi <yao.qi@linaro.org>
8747 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
8749 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
8751 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
8752 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
8754 2018-01-31 Pedro Alves <palves@redhat.com>
8756 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
8757 * inflow.c (child_terminal_save_inferior): Wrap reference to
8758 tcgetpgrp in HAVE_TERMIOS_H.
8759 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
8761 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
8762 always iterate over all inferiors.
8763 (gdbsim_cntrl_c): Adjust.
8764 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
8766 2018-01-31 Joel Brobecker <brobecker@adacore.com>
8768 * gdbtypes.c (lookup_array_range_type): Make sure the array's
8769 index type is objfile-owned if the element type is as well.
8771 2018-01-31 Joel Brobecker <brobecker@adacore.com>
8775 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
8777 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
8778 "features/s390x-linux64.c".
8779 (_initialize_s390_linux_tdep): Remove initialization of tdescs
8780 s390_linux32 and s390x_linux64.
8781 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
8783 * s390-tdep.c: Include "features/s390-linux32.c" and
8784 "features/s390x-linux64.c".
8785 (s390_tdesc_valid): Add check for tdesc_has_registers.
8786 (s390_gdbarch_init): Make sure there is always a valid tdesc.
8787 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
8788 tdesc_s390x_linux64.
8789 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
8790 tdesc_s390x_linux64 to...
8791 * s390-tdep.h: ...here.
8793 2018-01-30 Pedro Alves <palves@redhat.com>
8796 * config.in, configure: Regenerate.
8797 * configure.ac: Check for getpgid.
8798 * go32-nat.c (go32_pass_ctrlc): New.
8799 (go32_target): Install it.
8800 * inf-child.c (inf_child_target): Install
8801 child_terminal_save_inferior, child_pass_ctrlc and
8803 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
8804 (inf_ptrace_target): No longer install it.
8805 * infcmd.c (interrupt_target_1): Adjust.
8806 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
8807 (child_interrupt): Declare.
8808 (inferior::terminal_state): New.
8809 * inflow.c (struct terminal_info): Update comments.
8810 (inferior_process_group): Delete.
8811 (terminal_is_ours): Delete.
8812 (gdb_tty_state): New.
8813 (child_terminal_init): Adjust.
8814 (is_gdb_terminal, sharing_input_terminal_1)
8815 (sharing_input_terminal): New functions.
8816 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
8817 Set the process's actual process group in the foreground if
8818 possible. Handle is_ours_for_output/is_ours distinction. Don't
8819 mark terminal as the inferior's if not sharing GDB's terminal.
8820 Don't check attach_flag.
8821 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
8822 pass down a target_terminal_state.
8823 (child_terminal_save_inferior): New, factored out from ...
8824 (child_terminal_ours_1): ... this. Handle
8825 target_terminal_state::is_ours_for_output.
8826 (child_interrupt, child_pass_ctrlc): New.
8827 (inflow_inferior_exit): Clear the inferior's terminal_state.
8828 (copy_terminal_info): Copy the inferior's terminal state.
8829 (_initialize_inflow): Remove reference to terminal_is_ours.
8830 * inflow.h (inferior_process_group): Delete.
8831 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
8832 * procfs.c (procfs_target): Don't install procfs_interrupt.
8833 (procfs_interrupt): Delete.
8834 * remote.c (remote_serial_quit_handler): Adjust.
8835 (remote_interrupt): Remove ptid parameter. Adjust.
8836 * target-delegates.c: Regenerate.
8837 * target.c: Include "terminal.h".
8838 (target_terminal::terminal_state): Rename to ...
8839 (target_terminal::m_terminal_state): ... this.
8840 (target_terminal::init): Adjust.
8841 (target_terminal::inferior): Adjust to per-inferior
8843 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
8844 (target_terminal::ours, target_terminal::ours_for_output): Use
8845 target_terminal_is_ours_kind.
8846 (target_interrupt): Remove ptid parameter. Adjust.
8847 (default_target_pass_ctrlc): Adjust.
8848 * target.h (target_ops::to_terminal_save_inferior): New field.
8849 (target_ops::to_interrupt): Remove ptid_t parameter.
8850 (target_interrupt): Remove ptid_t parameter. Update comment.
8851 (target_pass_ctrlc): Update comment.
8852 * target/target.h (target_terminal_state): New scoped enum,
8854 (target_terminal::terminal_state): ... here.
8855 (target_terminal::inferior): Update comments.
8856 (target_terminal::restore_inferior): New.
8857 (target_terminal::is_inferior, target_terminal::is_ours)
8858 (target_terminal::is_ours_for_output): Adjust.
8859 (target_terminal::scoped_restore_terminal_state): Adjust to
8860 rename, and call restore_inferior() instead of inferior().
8861 (target_terminal::scoped_restore_terminal_state::m_state): Change
8863 (target_terminal::terminal_state): Rename to ...
8864 (target_terminal::m_terminal_state): ... this and change type.
8866 2018-01-30 Pedro Alves <palves@redhat.com>
8868 * linux-nat.c (wait_for_signal): New function.
8869 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
8871 (async_terminal_is_ours)
8872 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
8873 (linux_nat_add_target): Don't override
8874 to_terminal_inferior/to_terminal_ours.
8876 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
8878 * remote.c (remote_follow_fork): Don't call "detach_inferior".
8880 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
8882 * dwarf2read.c (free_dwo_files): Add forward-declaration.
8883 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
8884 dwarf2_per_objfile_free here.
8885 (dwarf2_per_objfile_free): Remove.
8886 (_initialize_dwarf2_read): Don't register
8887 dwarf2_per_objfile_free as a registry cleanup.
8889 2018-01-27 Eli Zaretskii <eliz@gnu.org>
8891 Avoid compilation errors in MinGW native builds
8893 The error is triggered by including python-internal.h, and the
8896 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
8897 from build-gnulib/import/math.h:27,
8898 from d:/usr/Python26/include/pyport.h:235,
8899 from d:/usr/Python26/include/Python.h:58,
8900 from python/python-internal.h:94,
8901 from python/py-arch.c:24:
8902 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
8906 This happens because Python headers define 'hypot' to expand t
8907 '_hypot' in the Windows builds.
8908 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
8909 'hypoth'. This avoids a compilation error.
8911 2018-01-26 Alan Hayward <alan.hayward@arm.com>
8913 * MAINTAINERS (Write After Approval): Fix ordering.
8915 2018-01-26 Alan Hayward <alan.hayward@arm.com>
8917 * MAINTAINERS (Write After Approval): Add Alan Hayward.
8919 2018-01-26 Alan Modra <amodra@gmail.com>
8921 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
8922 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
8923 Remove nop. Make const. Comment.
8924 (powerpc32_plt_stub_so_2): New.
8925 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
8926 Correct count. Update uses.
8927 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
8928 Move common code reading PLT entry word. Correct
8929 powerpc32_plt_stub PLT address calculation.
8930 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
8931 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
8932 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
8933 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
8934 (ppc64_standard_linkage8): Likewise.
8935 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
8936 Correct insns description.
8937 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
8939 2018-01-24 Pedro Alves <palves@redhat.com>
8941 GCC PR libstdc++/83906
8942 * gdbtypes.c (operator==(const dynamic_prop &,
8943 const dynamic_prop &)): New.
8944 (operator==(const range_bounds &, const range_bounds &)): New.
8945 (check_types_equal): Use them instead of memcmp.
8946 * gdbtypes.h (operator==(const dynamic_prop &,
8947 const dynamic_prop &)): Declare.
8948 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
8949 (operator==(const range_bounds &, const range_bounds &)): Declare.
8950 (operator!=(const range_bounds &, const range_bounds &)): Declare.
8952 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8954 * s390-linux-tdep.c (s390_record_address_mask)
8955 (s390_record_calc_disp_common, s390_record_calc_disp)
8956 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
8957 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
8958 (s390_process_record): Move to s390-tdep.c.
8959 (s390_linux_init_abi_any): Adjust.
8960 * s390-tdep.c (s390_record_address_mask)
8961 (s390_record_calc_disp_common, s390_record_calc_disp)
8962 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
8963 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
8964 (s390_process_record): Moved from s390-linux-tdep.c
8965 (s390_gdbarch_init): Adjust.
8967 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8969 * s390-linux-nat.c (s390-tdep.h): New include.
8970 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
8971 (HFILES_NO_SRCDIR): Add s390-tdep.h.
8972 (ALLDEPFILES): Add s390-tdep.c.
8973 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
8974 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
8975 * s390-tdep.h: ...this. New file.
8976 * s390-linux-tdep.c (s390-tdep.h): New include.
8977 (_initialize_s390_tdep): Rename to...
8978 (_initialize_s390_linux_tdep): ...this and adjust.
8979 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
8980 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
8982 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
8983 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
8984 (s390_is_partial_instruction, s390_software_single_step)
8985 (is_non_branch_ril, s390_displaced_step_copy_insn)
8986 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
8987 (s390_prologue_data, s390_addr, s390_store, s390_load)
8988 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
8989 (s390_register_call_saved, s390_guess_tracepoint_registers)
8990 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
8991 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
8992 (s390_pseudo_register_name, s390_pseudo_register_type)
8993 (s390_pseudo_register_read, s390_pseudo_register_write)
8994 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
8995 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
8996 (s390_addr_bits_remove, s390_address_class_type_flags)
8997 (s390_address_class_type_flags_to_name)
8998 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
8999 (s390_function_arg_float, s390_function_arg_vector)
9000 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
9001 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
9002 (s390_frame_align, s390_register_return_value, s390_return_value)
9003 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
9004 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
9005 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
9006 (s390_trad_frame_prev_register, s390_unwind_cache)
9007 (s390_prologue_frame_unwind_cache)
9008 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
9009 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
9010 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
9011 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
9012 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
9013 (s390_frame_base_address, s390_local_base_address)
9014 (s390_frame_base, s390_gcc_target_options)
9015 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
9016 (s390_validate_reg_range, s390_tdesc_valid)
9017 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
9018 * s390-tdep.c: ...this. New file.
9020 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9022 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
9023 (s390_process_record, s390_gdbarch_tdep_alloc)
9024 (s390_linux_init_abi_any): Use/set new hook.
9026 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9028 * s390-linux-tdep.c (osabi.h): New include.
9029 (s390_linux_init_abi_31, s390_linux_init_abi_64)
9030 (s390_linux_init_abi_any): New functions.
9031 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
9033 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9035 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
9036 tdesc_has_registers check
9038 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9040 * s390-linux-tdep.c (s390_tdesc_valid): New function.
9041 (s390_validate_reg_range): New macro.
9042 (s390_gdbarch_init): Adjust.
9044 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9046 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
9047 (s390_gdbarch_tdep_alloc): Adjust.
9048 (s390_gdbarch_init): Adjust.
9050 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9052 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
9053 <have_tdb>: Change type to bool.
9054 (s390_gdbarch_tdep_alloc): Adjust.
9055 (s390_gdbarch_init): Adjust.
9057 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9059 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
9060 (gdbarch_tdep) <have_upper, have_vx>: New fields.
9061 (s390_gdbarch_tdep_alloc): New function.
9062 (s390_gdbarch_init): Allocate tdep at start and use its fields
9063 instead of separate variables.
9065 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9067 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
9068 when looking for cached gdbarch and add comment for remaining.
9070 2018-01-22 Pedro Alves <palves@redhat.com>
9071 Sergio Durigan Junior <sergiodj@redhat.com>
9073 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
9076 2018-01-22 Maciej W. Rozycki <macro@mips.com>
9078 * MAINTAINERS: Update my company e-mail address.
9080 2018-01-22 Yao Qi <yao.qi@linaro.org>
9082 * regcache.c (cooked_write_test): New function.
9083 (_initialize_regcache): Register the test.
9085 2018-01-22 Yao Qi <yao.qi@linaro.org>
9087 * ia64-tdep.c (ia64_pseudo_register_read): Call
9088 regcache->cooked_read instead of regcache_cooked_read_unsigned.
9089 * m32c-tdep.c (m32c_cat_read): Likewise.
9090 (m32c_r3r2r1r0_read): Likewise.
9091 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
9092 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
9094 2018-01-22 Yao Qi <yao.qi@linaro.org>
9096 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
9097 method raw_read instead of regcache_raw_read.
9098 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
9099 * arm-tdep.c (arm_neon_quad_read): Likewise.
9100 * avr-tdep.c (avr_pseudo_register_read): Likewise.
9101 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
9102 * frv-tdep.c (frv_pseudo_register_read): Likewise.
9103 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
9104 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
9105 (i386_pseudo_register_read_into_value): Likewise.
9106 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
9107 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
9108 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
9109 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
9110 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
9111 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
9112 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
9113 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
9114 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
9116 2018-01-22 Yao Qi <yao.qi@linaro.org>
9118 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
9119 * configure.tgt: Remove target mt.
9120 * mt-tdep.c: Remove.
9121 * regcache.c (cooked_read_test): Remove the check for mt.
9123 2018-01-22 Yao Qi <yao.qi@linaro.org>
9125 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
9126 instead of gdbarch_pseudo_register_read_value.
9128 2018-01-22 Joel Brobecker <brobecker@adacore.com>
9130 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
9133 2018-01-22 Joel Brobecker <brobecker@adacore.com>
9135 * linespec.c (create_sals_line_offset): Remove code that preserved
9136 the symtab_and_line's line number.
9138 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9140 * varobj.c (varobj_create): Don't set valid_block when creating a
9143 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9145 * varobj.c (varobj_create): Remove out of date comment.
9147 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9150 * ada-exp.y (write_var_from_sym): Pass extra parameter when
9151 updating innermost block.
9152 * parse.c (innermost_block_tracker::update): Take extra type
9153 parameter, and check types match before updating innermost block.
9154 (write_dollar_variable): Update innermost block for registers.
9155 * parser-defs.h (enum innermost_block_tracker_type): New enum.
9156 (innermost_block_tracker::innermost_block_tracker): Initialise
9158 (innermost_block_tracker::reset): Take type parameter.
9159 (innermost_block_tracker::update): Take type parameter, and pass
9160 type through as needed.
9161 (innermost_block_tracker::m_types): New member.
9162 * varobj.c (varobj_create): Pass type when reseting innermost
9165 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9167 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
9168 * ada-lang.c (resolve_subexp): Likewise.
9169 * breakpoint.c (set_breakpoint_condition) Likewise.
9170 (watch_command_1) Likewise.
9171 * c-exp.y (variable): Likewise.
9172 * d-exp.y (PrimaryExpression): Likewise.
9173 * f-exp.y (variable): Likewise.
9174 * go-exp.y (variable): Likewise.
9175 * m2-exp.y (variable): Likewise.
9176 * objfiles.c (objfile::~objfile): Likewise.
9177 * p-exp.y (variable): Likewise.
9178 * parse.c (innermost_block): Change type.
9179 * parser-defs.h (class innermost_block_tracker): New.
9180 (innermost_block): Change to innermost_block_tracker.
9181 * printcmd.c (display_command): Switch to innermost_block API.
9182 (do_one_display): Likewise.
9183 * rust-exp.y (do_one_display): Likewise.
9184 * symfile.c (clear_symtab_users): Likewise.
9185 * varobj.c (varobj_create): Switch to innermost_block API, replace
9186 use of innermost_block with block stored on varobj object.
9188 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9190 * expression.h (innermost_block): Remove declaration.
9191 * varobj.c: Add 'parser-defs.h' include.
9193 2018-01-19 Tom Tromey <tom@tromey.com>
9195 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
9196 symbols in the static and global blocks.
9198 2018-01-19 James Clarke <jrtc27@jrtc27.com>
9200 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
9201 gdb_ptrace.h, and move including gdb_wait.h ...
9202 * nat/linux-ptrace.h: ... to here.
9204 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9206 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
9207 inf_ptrace_detach_success.
9208 (inf_ptrace_detach_success): Add inferior parameter, use it
9209 instead of inferior_ptid, pass it to detach_inferior.
9210 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
9212 * inferior.c (detach_inferior): Add overload that takes an
9214 * inferior.h (detach_inferior): Likewise.
9215 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
9216 use inferior_ptid, adjust call to inf_ptrace_detach_success.
9217 * linux-thread-db.c (thread_db_detach): Use inf parameter.
9219 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9221 * target.h (struct target_ops) <to_detach>: Add inferior
9223 (target_detach): Likewise.
9224 * target.c (dispose_inferior): Pass inferior down.
9225 (target_detach): Pass inferior down. Assert that it is equal to
9226 the current inferior.
9227 * aix-thread.c (aix_thread_detach): Pass inferior down.
9228 * corefile.c (core_file_command): Pass current_inferior() down.
9229 * corelow.c (core_detach): Add inferior parameter.
9230 * darwin-nat.c (darwin_detach): Likewise.
9231 * gnu-nat.c (gnu_detach): Likewise.
9232 * inf-ptrace.c (inf_ptrace_detach): Likewise.
9233 * infcmd.c (detach_command): Pass current_inferior() down to
9235 * infrun.c (follow_fork_inferior): Pass parent_inf to
9237 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
9239 * linux-nat.c (linux_nat_detach): Add inferior parameter.
9240 * linux-thread-db.c (thread_db_detach): Likewise.
9241 * nto-procfs.c (procfs_detach): Likewise.
9242 * procfs.c (procfs_detach): Likewise.
9243 * record.c (record_detach): Likewise.
9244 * record.h (struct inferior): Forward-declare.
9245 (record_detach): Add inferior parameter.
9246 * remote-sim.c (gdbsim_detach): Likewise.
9247 * remote.c (remote_detach_1): Likewise.
9248 (remote_detach): Likewise.
9249 (extended_remote_detach): Likewise.
9250 * sol-thread.c (sol_thread_detach): Likewise.
9251 * target-debug.h (target_debug_print_inferior_p): New macro.
9252 * target-delegates.c: Re-generate.
9253 * top.c (kill_or_detach): Pass inferior down to target_detach.
9254 * windows-nat.c (windows_detach): Add inferior parameter.
9256 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9258 * target.h (struct target_ops) <to_detach>: Remove args
9260 (target_detach): Likewise.
9261 * target.c (dispose_inferior): Adjust.
9262 (target_detach): Remove args parameter, adjust.
9263 * aix-thread.c (aix_thread_detach): Adjust.
9264 * corefile.c (core_file_command): Adjust.
9265 * corelow.c (core_detach): Adjust.
9266 * darwin-nat.c (darwin_detach): Adjust.
9267 * gnu-nat.c (gnu_detach): Adjust.
9268 * inf-ptrace.c (inf_ptrace_detach): Adjust.
9269 * infcmd.c (detach_command): Adjust
9270 * infrun.c (follow_fork_inferior): Adjust.
9271 (handle_vfork_child_exec_or_exit): Adjust.
9272 * linux-fork.c (linux_fork_detach): Remove args parameter.
9273 * linux-fork.h (linux_fork_detach): Likewise.
9274 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
9275 * linux-thread-db.c (thread_db_detach): Likewise.
9276 * nto-procfs.c (procfs_detach): Likewise.
9277 * procfs.c (procfs_detach): Likewise.
9278 (do_detach): Remove signo parameter.
9279 * record.c (record_detach): Remove args parameter.
9280 * record.h (record_detach): Likewise.
9281 * remote-sim.c (gdbsim_detach): Likewise.
9282 * remote.c (remote_detach_1): Likewise.
9283 (remote_detach): Likewise.
9284 (extended_remote_detach): Likewise.
9285 * sol-thread.c (sol_thread_detach): Likewise.
9286 * target-delegates.c: Re-generate.
9287 * top.c (struct qt_args) <args>: Remove field.
9288 (kill_or_detach): Don't pass args.
9289 (quit_force): Don't set args.
9290 * windows-nat.c (windows_detach): Remove args parameter.
9292 2018-01-19 Yao Qi <yao.qi@linaro.org>
9294 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
9295 (arm_linux_init_abi): Install it.
9297 2018-01-19 Yao Qi <yao.qi@linaro.org>
9299 * osabi.c (gdb_osabi_names): Extend the regexp for
9300 arm-linux-gnueabihf.
9302 2018-01-18 Yao Qi <yao.qi@linaro.org>
9304 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
9306 (abbrev_table::add_abbrev): Update.
9307 (abbrev_table::lookup_abbrev): Update.
9309 2018-01-18 Yao Qi <yao.qi@linaro.org>
9311 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
9313 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9315 * compile/compile.c (compile_to_object): Convert "triplet_rx"
9318 2018-01-17 Tom Tromey <tom@tromey.com>
9320 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
9322 2018-01-17 Tom Tromey <tom@tromey.com>
9324 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
9325 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
9326 (create_array_type_with_stride): Update.
9327 * dwarf2read.c (set_die_type): Update.
9329 2018-01-17 Tom Tromey <tom@tromey.com>
9331 * dwarf2read.c (delayed_method_info): Remove typedef.
9332 (dwarf2_cu::method_info): Now a std::vector.
9333 (add_to_method_list): Update.
9334 (free_delayed_list): Remove.
9335 (compute_delayed_physnames): Update.
9336 (process_full_comp_unit, process_full_type_unit): Clear the method
9337 list. Remove cleanups.
9338 (psymtab_include_file_name): Add name_holder parameter. Use
9340 (dwarf_decode_lines): Update.
9342 2018-01-17 Tom Tromey <tom@tromey.com>
9343 Simon Marchi <simon.marchi@ericsson.com>
9345 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
9346 (dwarf2_per_objfile::free_cached_comp_units)
9347 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
9348 (init_cutu_and_read_dies_no_follow): Update.
9349 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
9350 (dwarf2_cu::~dwarf2_cu): New.
9351 (free_heap_comp_unit, free_stack_comp_unit): Remove.
9352 (age_cached_comp_units, free_one_cached_comp_unit): Update.
9354 2018-01-17 Tom Tromey <tom@tromey.com>
9355 Simon Marchi <simon.marchi@ericsson.com>
9357 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
9358 (struct die_reader_specs) <abbrev_table>: New member.
9359 (struct abbrev_table): Add constructor.
9360 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
9361 <abbrev_obstack>: Now an auto_obstack.
9362 (abbrev_table_up): New typedef.
9363 (init_cu_die_reader): Add abbrev_table parameter.
9364 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
9365 Add result_dwo_abbrev_table.
9366 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
9367 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
9369 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
9371 (skip_children): Update.
9372 (abbrev_table::alloc_abbrev): Rename from
9373 abbrev_table_alloc_abbrev.
9374 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
9375 (abbrev_table::lookup_abbrev): Rename from
9376 abbrev_table_lookup_abbrev.
9377 (abbrev_table_read_table): Return abbrev_table_up.
9378 (abbrev_table_free, abbrev_table_free_cleanup)
9379 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
9380 (load_partial_dies): Update.
9382 2018-01-17 Tom Tromey <tom@tromey.com>
9384 * dwarf2read.c (dwarf2_compute_name): Update comment.
9385 (read_func_scope, read_variable): Update.
9386 (new_symbol): Remove.
9387 (new_symbol_full): Rename to new_symbol.
9389 2018-01-17 Mike Gulick <mgulick@mathworks.com>
9392 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
9393 a warning instead of throwing an error, set section size to 0 and return
9395 * gdb_bfd.h (gdb_bfd_map_section): Update description.
9397 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
9399 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
9401 (linux_ptrace_attach_fail_reason_string): Likewise.
9402 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
9404 (linux_ptrace_attach_fail_reason_string): Likewise.
9405 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
9407 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
9409 * linux-nat.c (linux_nat_attach): Remove xstrdup.
9411 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
9414 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
9415 checking for fs_base/gs_base fields in struct user_regs_struct.
9416 * configure: Regenerate.
9418 2018-01-17 Yao Qi <yao.qi@linaro.org>
9420 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
9422 (aarch64_linux_init_abi): Install it to gdbarch hook
9425 2018-01-15 Pedro Alves <palves@redhat.com>
9427 * common/signals-state-save-restore.c
9428 (save_original_signals_state): Fix typos.
9430 2017-01-12 Tom Tromey <tom@tromey.com>
9431 Sergio Durigan Junior <sergiodj@redhat.com>
9433 * Makefile.in (install-only): Install gdb-add-index.
9435 2018-01-12 John Baldwin <jhb@FreeBSD.org>
9437 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
9439 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9441 * infrun.c (keep_going_pass_signal): Clear step-over info when
9442 insert_breakpoints fails.
9444 2018-01-11 Pedro Alves <palves@redhat.com>
9447 * infrun.c (resume): Rename to ...
9448 (resume_1): ... this.
9449 (resume): Reimplement as wrapper around resume_1.
9451 2018-01-11 Pedro Alves <palves@redhat.com>
9454 * remote.c (remote_parse_stop_reply): Default to the last-set
9455 general thread instead of to 'magic_null_ptid'.
9457 2018-01-10 Pedro Alves <palves@redhat.com>
9459 * language.h (language_get_symbol_name_matcher): Rename ...
9460 (get_symbol_name_matcher): ... this.
9461 * language.c (language_get_symbol_name_matcher): Ditto.
9462 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
9465 2018-01-10 Pedro Alves <palves@redhat.com>
9469 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
9470 Adjust to use language_get_symbol_name_matcher instead of
9471 language_defn::la_get_symbol_name_matcher.
9472 * language.c (language_get_symbol_name_matcher): If in Ada mode
9473 and the lookup name is a verbatim match, return Ada's matcher.
9474 * language.h (language_get_symbol_name_matcher): Adjust comment.
9475 (ada_lookup_name_info::verbatim_p):: New method.
9477 2018-01-10 Pedro Alves <palves@redhat.com>
9480 * ada-lang.c (ada_collect_symbol_completion_matches): If the
9481 minsym's language is language_auto or language_cplus, pass down
9482 language_ada instead.
9483 * symtab.c (compare_symbol_name): Don't frob symbol language here.
9485 2018-01-10 Pedro Alves <palves@redhat.com>
9488 * minsyms.c (linkage_name_str): New function.
9489 (iterate_over_minimal_symbols): Use it.
9491 2018-01-09 John Baldwin <jhb@FreeBSD.org>
9493 * NEWS: Document that 'info proc' now works on FreeBSD.
9495 2018-01-09 John Baldwin <jhb@FreeBSD.org>
9497 * configure.ac: Check for kinfo_getfile in libutil.
9498 * configure: Regenerate.
9499 * config.in: Regenerate.
9500 * fbsd-nat.c: Include "fbsd-tdep.h".
9501 (fbsd_fetch_cmdline): New.
9502 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
9503 rather than calling error.
9504 (fbsd_info_proc): New.
9505 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
9506 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
9507 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
9509 2018-01-09 John Baldwin <jhb@FreeBSD.org>
9511 * fbsd-nat.c (struct free_deleter): Remove.
9512 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
9514 2018-01-09 John Baldwin <jhb@FreeBSD.org>
9516 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
9517 NULL for an empty pathname.
9519 2018-01-09 John Baldwin <jhb@FreeBSD.org>
9521 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
9522 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
9523 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9524 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9525 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
9526 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
9527 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
9528 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
9529 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
9530 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
9531 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
9532 (fbsd_core_fetch_timeval, fbsd_print_sigset)
9533 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
9534 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
9535 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
9537 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9539 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
9540 (gnu_xfer_auxv): New function.
9541 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
9544 2018-01-08 Yao Qi <yao.qi@linaro.org>
9545 Simon Marchi <simon.marchi@ericsson.com>
9547 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
9549 (COMMON_OBS): Remove selftest.o.
9550 * configure.ac: Append selftest-arch.c and common/selftest.c to
9551 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
9552 * configure: Re-generated.
9553 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
9555 (maintenance_info_selftests): Likewise.
9557 2018-01-08 Xavier Roirand <roirand@adacore.com>
9559 * ada-valprint.c (val_print_packed_array_elements): Use
9560 proper number of elements when printing an array indexed
9561 by an enumeration type.
9563 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9565 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
9566 (dw2_get_file_names_reader): Adjust.
9567 (lookup_dwo_signatured_type): Adjust.
9568 (lookup_dwp_signatured_type): Adjust.
9569 (lookup_signatured_type): Adjust.
9570 (create_type_unit_group): Adjust.
9571 (get_type_unit_group): Adjust.
9572 (process_psymtab_comp_unit_reader): Adjust.
9573 (build_type_psymtabs_reader): Adjust.
9574 (scan_partial_symbols): Adjust.
9575 (add_partial_symbol): Adjust.
9576 (add_partial_subprogram): Adjust.
9577 (peek_die_abbrev): Adjust.
9578 (fixup_go_packaging): Adjust.
9579 (process_imported_unit_die): Adjust.
9580 (dwarf2_compute_name): Adjust.
9581 (dwarf2_physname): Adjust.
9582 (read_import_statement): Adjust.
9583 (handle_DW_AT_stmt_list): Adjust.
9584 (read_file_scope): Adjust.
9585 (read_func_scope): Adjust.
9586 (read_lexical_block_scope): Adjust.
9587 (read_call_site_scope): Adjust.
9588 (read_variable): Adjust.
9589 (dwarf2_rnglists_process): Adjust.
9590 (dwarf2_ranges_process): Adjust.
9591 (dwarf2_ranges_read): Adjust.
9592 (dwarf2_get_pc_bounds): Adjust.
9593 (dwarf2_record_block_ranges): Adjust.
9594 (dwarf2_add_field): Adjust.
9595 (dwarf2_add_member_fn): Adjust.
9596 (read_structure_type): Adjust.
9597 (process_structure_scope): Adjust.
9598 (read_enumeration_type): Adjust.
9599 (read_array_type): Adjust.
9600 (mark_common_block_symbol_computed): Adjust.
9601 (read_common_block): Adjust.
9602 (read_namespace_type): Adjust.
9603 (read_namespace): Adjust.
9604 (read_module_type): Adjust.
9605 (read_tag_pointer_type): Adjust.
9606 (read_tag_ptr_to_member_type): Adjust.
9607 (read_tag_string_type): Adjust.
9608 (read_subroutine_type): Adjust.
9609 (read_typedef): Adjust.
9610 (read_base_type): Adjust.
9611 (attr_to_dynamic_prop): Adjust.
9612 (read_subrange_type): Adjust.
9613 (read_unspecified_type): Adjust.
9614 (dwarf2_read_abbrevs): Adjust.
9615 (load_partial_dies): Adjust.
9616 (read_partial_die): Adjust.
9617 (find_partial_die): Adjust.
9618 (guess_partial_die_structure_name): Adjust.
9619 (fixup_partial_die): Adjust.
9620 (read_attribute_value): Adjust.
9621 (read_addr_index): Adjust.
9622 (read_addr_index_from_leb128): Adjust.
9623 (read_str_index): Adjust.
9624 (dwarf2_string_attr): Adjust.
9625 (get_debug_line_section): Adjust.
9626 (dwarf_decode_line_header): Adjust.
9627 (lnp_state_machine::check_line_address): Adjust.
9628 (dwarf_decode_lines_1): Adjust.
9629 (dwarf_decode_lines): Adjust.
9630 (dwarf2_start_symtab): Adjust.
9631 (var_decode_location): Adjust.
9632 (new_symbol_full): Adjust.
9633 (dwarf2_const_value_data): Adjust.
9634 (dwarf2_const_value_attr): Adjust.
9635 (dwarf2_const_value): Adjust.
9637 (die_containing_type): Adjust.
9638 (build_error_marker_type): Adjust.
9639 (lookup_die_type): Adjust.
9640 (guess_full_die_structure_name): Adjust.
9641 (anonymous_struct_prefix): Adjust.
9642 (determine_prefix): Adjust.
9643 (dwarf2_name): Adjust.
9644 (follow_die_ref_or_sig): Adjust.
9645 (follow_die_offset): Adjust.
9646 (follow_die_ref): Adjust.
9647 (follow_die_sig_1): Adjust.
9648 (follow_die_sig): Adjust.
9649 (get_signatured_type): Adjust.
9650 (get_DW_AT_signature_type): Adjust.
9651 (decode_locdesc): Adjust.
9652 (dwarf_decode_macros): Adjust.
9653 (cu_debug_loc_section): Adjust.
9654 (fill_in_loclist_baton): Adjust.
9655 (dwarf2_symbol_mark_computed): Adjust.
9656 (init_one_comp_unit): Don't assign
9657 dwarf2_cu::dwarf2_per_objfile.
9658 (set_die_type): Adjust.
9660 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9662 * dwarf2read.c (struct mapped_debug_names): Add constructor.
9663 <dwarf2_per_objfile>: New field.
9664 (dwarf2_per_objfile): Remove global.
9665 (get_dwarf2_per_objfile): New function.
9666 (set_dwarf2_per_objfile): New function.
9667 (dwarf2_build_psymtabs_hard): Change objfile parameter to
9669 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
9670 (read_abbrev_offset): Likewise.
9671 (read_indirect_string): Likewise.
9672 (read_indirect_line_string): Likewise.
9673 (read_indirect_string_at_offset): Likewise.
9674 (read_indirect_string_from_dwz): Likewise.
9675 (dwarf2_find_containing_comp_unit): Change objfile parameter to
9677 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
9678 (create_all_comp_units): Change objfile parameter to
9680 (create_all_type_units): Likewise.
9681 (process_queue): Add dwarf2_per_objfile parameter.
9682 (read_and_check_comp_unit_head): Likewise.
9683 (lookup_dwo_unit_in_dwp): Likewise.
9684 (get_dwp_file): Likewise.
9685 (process_cu_includes): Likewise.
9686 (struct free_dwo_file_cleanup_data): New struct.
9687 (dwarf2_has_info): Use get_dwarf2_per_objfile and
9688 set_dwarf2_per_objfile.
9689 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
9690 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
9691 context, adjust calls.
9692 (dw2_instantiate_symtab): Likewise.
9693 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
9694 (dw2_get_cu): Likewise.
9695 (create_cu_from_index_list): Change objfile parameter to
9697 (create_cus_from_index_list): Get dwarf2_per_objfile from
9698 context, adjust calls.
9699 (create_cus_from_index): Likewise.
9700 (create_signatured_type_table_from_index): Change objfile
9701 parameter to dwarf2_per_objfile.
9702 (create_signatured_type_table_from_debug_names): Change objfile
9703 parameter to dwarf2_per_objfile.
9704 (create_addrmap_from_index): Likewise.
9705 (create_addrmap_from_aranges): Likewise.
9706 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
9707 (dw2_setup): Remove.
9708 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
9710 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
9711 get_dwarf2_per_objfile.
9712 (dw2_forget_cached_source_info): Likewise.
9713 (dw2_map_symtabs_matching_filename): Likewise.
9714 (struct dw2_symtab_iterator) <index>: Remove.
9715 <dwarf2_per_objfile>: New field.
9716 (dw2_symtab_iter_init): Replace index parameter with
9718 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
9719 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
9720 (dw2_print_stats): Likewise.
9721 (dw2_dump): Likewise.
9722 (dw2_expand_symtabs_for_function): Likewise.
9723 (dw2_expand_all_symtabs): Likewise.
9724 (dw2_expand_symtabs_with_fullname): Likewise.
9725 (dw2_expand_marked_cus): Replace index and objfile parameters
9726 with dwarf2_per_objfile.
9727 (dw_expand_symtabs_matching_file_matcher): Add
9728 dwarf2_per_objfile parameter and adjust calls.
9729 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
9731 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
9732 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
9734 (create_cus_from_debug_names_list): Replace objfile parameter
9735 with dwarf2_per_objfile and adjust calls.
9736 (create_cus_from_debug_names): Likewise.
9737 (dwarf2_read_debug_names): Likewise.
9738 (mapped_debug_names::namei_to_name): Adjust call.
9739 (dw2_debug_names_iterator::next): Likewise.
9740 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9741 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
9742 (dw2_debug_names_dump): Likewise.
9743 (dw2_debug_names_expand_symtabs_for_function): Likewise.
9744 (dw2_debug_names_expand_symtabs_matching): Likewise.
9745 (dwarf2_initialize_objfile): Likewise.
9746 (dwarf2_build_psymtabs): Likewise.
9747 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
9749 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
9750 (read_and_check_comp_unit_head): Likewise.
9751 (read_abbrev_offset): Likewise.
9752 (create_debug_type_hash_table): Likewise.
9753 (create_debug_types_hash_table): Likewise.
9754 (create_all_type_units): Replace objfile parameter with
9756 (add_type_unit): Add dwarf2_per_objfile parameter.
9757 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
9758 with dwarf2_per_objfile.
9759 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
9760 (lookup_dwp_signatured_type): Likewise.
9761 (lookup_signatured_type): Likewise.
9762 (read_cutu_die_from_dwo): Likewise.
9763 (init_tu_and_read_dwo_dies): Likewise.
9764 (init_cutu_and_read_dies): Likewise.
9765 (init_cutu_and_read_dies_no_follow): Likewise.
9766 (allocate_type_unit_groups_table): Add objfile parameter.
9767 (create_type_unit_group): Use dwarf2_per_objfile from cu.
9768 (get_type_unit_group): Likewise.
9769 (process_psymtab_comp_unit): Update call.
9770 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
9771 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
9772 (print_tu_stats): Likewise.
9773 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
9775 (build_type_psymtabs): Change objfile parameter to
9777 (process_skeletonless_type_unit): Use dwarf2_per_objfile
9778 passed in void* parameter.
9779 (process_skeletonless_type_units): Change objfile parameter to
9781 (set_partial_user): Likewise.
9782 (dwarf2_build_psymtabs_hard): Likewise.
9783 (read_comp_units_from_section): Likewise.
9784 (create_all_comp_units): Likewise.
9785 (scan_partial_symbols): Update calls.
9786 (add_partial_symbol): Likewise.
9787 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
9788 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
9789 (process_queue): Add dwarf2_per_objfile parameter.
9790 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
9791 (compute_compunit_symtab_includes): Likewise.
9792 (process_cu_includes): Add dwarf2_per_objfile parameter.
9793 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
9794 (process_full_type_unit): Likewise.
9795 (process_imported_unit_die): Update call.
9796 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
9797 (read_file_scope): Likewise.
9798 (allocate_dwo_file_hash_table): Add objfile parameter.
9799 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
9800 (create_cus_hash_table): Likewise.
9801 (create_dwp_hash_table): Likewise.
9802 (create_dwo_unit_in_dwp_v1): Likewise.
9803 (create_dwp_v2_section): Likewise.
9804 (create_dwo_unit_in_dwp_v2): Likewise.
9805 (lookup_dwo_unit_in_dwp): Likewise.
9806 (try_open_dwop_file): Likewise.
9807 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
9808 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
9809 cleanup to include a reference to dwarf2_per_objfile.
9810 (open_dwp_file): Add dwarf2_per_objfile parameter.
9811 (open_and_init_dwp_file): Likewise.
9812 (get_dwp_file): Likewise.
9813 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
9814 (queue_and_load_all_dwo_tus): Update call.
9815 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
9817 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
9818 (dwarf2_ranges_process): Likewise.
9819 (dwarf2_get_pc_bounds): Likewise.
9820 (mark_common_block_symbol_computed): Likewise.
9821 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
9822 (dwarf2_read_abbrevs): Update call.
9823 (read_partial_die): Use dwarf2_per_objfile from cu.
9824 (find_partial_die): Likewise.
9825 (fixup_partial_die): Likewise.
9826 (read_attribute_value): Likewise.
9827 (read_indirect_string_at_offset_from): Add objfile parameter.
9828 (read_indirect_string_at_offset): Add dwarf2_per_objfile
9830 (read_indirect_string_from_dwz): Add objfile parameter.
9831 (read_indirect_string): Add objfile parameter.
9832 (read_addr_index_1): Add dwarf2_per_objfile parameter.
9833 (read_addr_index): Use dwarf2_per_objfile from cu.
9834 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
9836 (read_str_index): Use dwarf2_per_objfile from cu.
9837 (get_debug_line_section): Likewise.
9838 (read_formatted_entries): Add dwarf2_per_objfile parameter.
9839 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
9840 (new_symbol_full): Use dwarf2_per_objfile from cu.
9841 (build_error_marker_type): Likewise.
9842 (lookup_die_type): Likewise.
9843 (determine_prefix): Likewise.
9844 (follow_die_offset): Likewise.
9845 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
9846 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
9847 (dwarf2_fetch_die_type_sect_off): Likewise.
9848 (dwarf2_get_die_type): Likewise.
9849 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
9850 (get_signatured_type): Likewise.
9851 (get_DW_AT_signature_type): Likewise.
9852 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
9853 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
9854 (cu_debug_loc_section): Likewise.
9855 (fill_in_loclist_baton): Likewise.
9856 (dwarf2_symbol_mark_computed): Likewise.
9857 (dwarf2_find_containing_comp_unit): Change objfile parameter to
9859 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
9861 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
9862 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
9863 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
9864 (set_die_type): Use dwarf2_free_objfile from cu.
9865 (get_die_type_at_offset): Likewise.
9866 (dwarf2_per_objfile_free): Don't assign global variable.
9867 (debug_names) <constructor>: Add dwarf2_per_objfile
9868 parameter, update m_debugstrlookup construction.
9869 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
9871 <m_dwarf2_per_objfile>: New field.
9872 <lookup>: Use m_dwarf2_per_objfile.
9873 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
9874 (psyms_seen_size): Likewise.
9875 (write_gdbindex): Replace objfile parameter with
9877 (write_debug_names): Likewise.
9878 (write_psymtabs_to_index): Likewise.
9879 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
9882 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9884 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
9885 <dwarf2_per_objfile>: New field.
9886 (struct dwarf2_per_cu_data) <objfile>: Remove.
9887 <dwarf2_per_objfile>: New field.
9888 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
9890 (create_signatured_type_table_from_index): Likewise.
9891 (create_debug_type_hash_table): Likewise.
9892 (fill_in_sig_entry_from_dwo_entry): Likewise.
9893 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
9894 (create_type_unit_group): Assign dwarf2_per_objfile instead of
9896 (create_partial_symtab): Access objfile through
9898 (process_psymtab_comp_unit_reader): Likewise.
9899 (read_comp_units_from_section): Likewise.
9900 (scan_partial_symbols): Likewise.
9901 (add_partial_symbol): Likewise.
9902 (add_partial_subprogram): Likewise.
9903 (peek_die_abbrev): Likewise.
9904 (fixup_go_packaging): Likewise.
9905 (process_full_comp_unit): Likewise.
9906 (process_full_type_unit): Likewise.
9907 (process_imported_unit_die): Likewise.
9908 (dwarf2_compute_name): Likewise.
9909 (dwarf2_physname): Likewise.
9910 (read_import_statement): Likewise.
9911 (create_cus_hash_table): Assign dwarf2_physname instead of
9913 (read_func_scope): Access objfile through dwarf2_per_objfile.
9914 (read_lexical_block_scope): Likewise.
9915 (read_call_site_scope): Likewise.
9916 (read_variable): Likewise.
9917 (dwarf2_rnglists_process): Likewise.
9918 (dwarf2_ranges_process): Likewise.
9919 (dwarf2_ranges_read): Likewise.
9920 (dwarf2_record_block_ranges): Likewise.
9921 (dwarf2_add_field): Likewise.
9922 (dwarf2_add_member_fn): Likewise.
9923 (read_structure_type): Likewise.
9924 (process_structure_scope): Likewise.
9925 (read_enumeration_type): Likewise.
9926 (read_array_type): Likewise.
9927 (read_common_block): Likewise.
9928 (read_namespace_type): Likewise.
9929 (read_namespace): Likewise.
9930 (read_module_type): Likewise.
9931 (read_tag_pointer_type): Likewise.
9932 (read_tag_ptr_to_member_type): Likewise.
9933 (read_tag_string_type): Likewise.
9934 (read_subroutine_type): Likewise.
9935 (read_typedef): Likewise.
9936 (read_base_type): Likewise.
9937 (attr_to_dynamic_prop): Likewise.
9938 (read_subrange_type): Likewise.
9939 (read_unspecified_type): Likewise.
9940 (load_partial_dies): Likewise.
9941 (read_partial_die): Likewise.
9942 (find_partial_die): Likewise.
9943 (guess_partial_die_structure_name): Likewise.
9944 (fixup_partial_die): Likewise.
9945 (read_attribute_value): Likewise.
9946 (read_addr_index_from_leb128): Likewise.
9947 (dwarf2_read_addr_index): Likewise.
9948 (dwarf2_string_attr): Likewise.
9949 (lnp_state_machine::check_line_address): Likewise.
9950 (dwarf_decode_lines_1): Likewise.
9951 (dwarf_decode_lines): Likewise.
9952 (dwarf2_start_symtab): Likewise.
9953 (var_decode_location): Likewise.
9954 (new_symbol_full): Likewise.
9955 (dwarf2_const_value_data): Likewise.
9956 (dwarf2_const_value_attr): Likewise.
9957 (dwarf2_const_value): Likewise.
9958 (die_type): Likewise.
9959 (die_containing_type): Likewise.
9960 (lookup_die_type): Likewise.
9961 (guess_full_die_structure_name): Likewise.
9962 (anonymous_struct_prefix): Likewise.
9963 (dwarf2_name): Likewise.
9964 (follow_die_ref_or_sig): Likewise.
9965 (follow_die_offset): Likewise.
9966 (follow_die_ref): Likewise.
9967 (dwarf2_fetch_die_loc_sect_off): Likewise.
9968 (dwarf2_fetch_constant_bytes): Likewise.
9969 (dwarf2_fetch_die_type_sect_off): Likewise.
9970 (dwarf2_get_die_type): Likewise.
9971 (follow_die_sig): Likewise.
9972 (decode_locdesc): Likewise.
9973 (dwarf2_per_cu_objfile): Likewise.
9974 (dwarf2_per_cu_text_offset): Likewise.
9975 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
9977 (set_die_type): Access objfile through
9980 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9982 * valprint.c (converted_character_d): Remove typedef.
9983 (DEF_VEC_O (converted_character_d)): Remove.
9984 (count_next_character): Use std::vector.
9985 (print_converted_chars_to_obstack): Likewise.
9986 (generic_printstr): Likewise.
9988 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9990 * xml-support.h (struct gdb_xml_value): Add constructor.
9991 <value>: Change type to unique_xmalloc_ptr.
9992 (gdb_xml_value_s): Remove typedef.
9993 (DEF_VEC_O (gdb_xml_value_s)): Remove.
9994 (gdb_xml_element_start_handler): Change parameter type to
9996 (xml_find_attribute): Likewise.
9997 * xml-support.c (xml_find_attribute): Change parameter type to
9998 std::vector and adjust.
9999 (gdb_xml_values_cleanup): Remove.
10000 (gdb_xml_parser::start_element): Adjust to std::vector.
10001 (xinclude_start_include): Change paraeter type to std::vector
10003 * btrace.c (check_xml_btrace_version): Likewise.
10004 (parse_xml_btrace_block): Likewise.
10005 (parse_xml_btrace_pt_config_cpu): Likewise.
10006 (parse_xml_btrace_pt): Likewise.
10007 (parse_xml_btrace_conf_bts): Likewise.
10008 (parse_xml_btrace_conf_pt): Likewise.
10009 * memory-map.c (memory_map_start_memory): Likewise.
10010 (memory_map_start_property): Likewise.
10011 * osdata.c (osdata_start_osdata): Likewise.
10012 (osdata_start_item): Likewise.
10013 (osdata_start_column): Likewise.
10014 * remote.c (start_thread): Likewise.
10015 * solib-aix.c (library_list_start_library): Likewise.
10016 (library_list_start_list): Likewise.
10017 * solib-svr4.c (library_list_start_library): Likewise.
10018 (svr4_library_list_start_list): Likewise.
10019 * solib-target.c (library_list_start_segment): Likewise.
10020 (library_list_start_section): Likewise.
10021 (library_list_start_library): Likewise.
10022 (library_list_start_list): Likewise.
10023 * tracepoint.c (traceframe_info_start_memory): Likewise.
10024 (traceframe_info_start_tvar): Likewise.
10025 * xml-syscall.c (syscall_start_syscall): Likewise.
10026 * xml-tdesc.c (tdesc_start_target): Likewise.
10027 (tdesc_start_feature): Likewise.
10028 (tdesc_start_reg): Likewise.
10029 (tdesc_start_union): Likewise.
10030 (tdesc_start_struct): Likewise.
10031 (tdesc_start_flags): Likewise.
10032 (tdesc_start_enum): Likewise.
10033 (tdesc_start_field): Likewise.
10034 (tdesc_start_enum_value): Likewise.
10035 (tdesc_start_vector): Likewise.
10037 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10039 * extension.h (struct xmethod_worker) <clone>: Remove.
10040 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
10042 (python_xmethod_worker::clone): Remove.
10043 * valops.c (find_overload_match): Use std::move instead of
10046 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10048 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
10049 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
10050 <free_xmethod_worker_data>: Remove.
10051 <get_matching_xmethod_workers>: Chance VEC to std::vector.
10052 <get_xmethod_arg_types>: Remove.
10053 <get_xmethod_result_type>: Remove.
10054 <invoke_xmethod>: Remove.
10055 * extension.c (new_xmethod_worker): Remove.
10056 (clone_xmethod_worker): Remove.
10057 (get_matching_xmethod_workers): Return void, pass std::vector by
10059 (get_xmethod_arg_types): Rename to...
10060 (xmethod_worker::get_arg_types): ... this, and adjust.
10061 (get_xmethod_result_type): Rename to...
10062 (xmethod_worker::get_result_type): ... this, and adjust.
10063 (invoke_xmethod): Remove.
10064 (free_xmethod_worker): Remove.
10065 (free_xmethod_worker_vec): Remove.
10066 * extension.h (enum ext_lang_rc): Move here from
10068 (struct xmethod_worker): Add constructor and destructor.
10071 <invoke, clone, do_get_result_type, do_get_arg_types>: New
10072 virtual pure methods.
10073 <get_arg_types, get_result_type>: New methods.
10074 (xmethod_worker_ptr): Remove typedef.
10075 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
10076 (xmethod_worker_vec): Remove typedef.
10077 (xmethod_worker_up): New typedef.
10078 (invoke_xmethod): Remove.
10079 (clone_xmethod_worker): Remove.
10080 (free_xmethod_worker): Remove.
10081 (free_xmethod_worker_vec): Remove.
10082 (get_xmethod_arg_types): Remove.
10083 (get_xmethod_result_type): Remove.
10084 * valops.c (find_method_list): Use std::vector, don't use
10085 intermediate vector.
10086 (value_find_oload_method_list): Use std::vector.
10087 (find_overload_match): Use std::vector.
10088 (find_oload_champ): Use std::vector.
10089 * value.c (value_free): Use operator delete.
10090 (value_of_xmethod): Rename to...
10091 (value_from_xmethod): ... this. Don't assign
10092 xmethod_worker::value, take rvalue-reference.
10093 (result_type_of_xmethod): Adjust.
10094 (call_xmethod): Adjust.
10095 * value.h: Include extension.h.
10096 (struct xmethod_worker): Don't forward-declare.
10097 (value_of_xmethod): Rename to...
10098 (value_from_xmethod): ... this, take rvalue-reference.
10099 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
10100 (struct python_xmethod_worker): ... this, add constructor and
10102 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
10103 (gdbpy_free_xmethod_worker_data): Rename to...
10104 (python_xmethod_worker::~python_xmethod_worker): ... this and
10106 (gdbpy_clone_xmethod_worker_data): Rename to...
10107 (python_xmethod_worker::clone): ... this and adjust.
10108 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
10110 (gdbpy_get_xmethod_arg_types): Rename to...
10111 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
10112 (gdbpy_get_xmethod_result_type): Rename to...
10113 (python_xmethod_worker::do_get_result_type): ... this and
10115 (gdbpy_invoke_xmethod): Rename to...
10116 (python_xmethod_worker::invoke): ... this and adjust.
10117 (new_python_xmethod_worker): Rename to...
10118 (python_xmethod_worker::python_xmethod_worker): ... this and
10120 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
10122 (gdbpy_free_xmethod_worker_data): Remove.
10123 (gdbpy_get_matching_xmethod_workers): Use std::vector.
10124 (gdbpy_get_xmethod_arg_types): Remove.
10125 (gdbpy_get_xmethod_result_type): Remove.
10126 (gdbpy_invoke_xmethod): Remove.
10127 * python/python.c (python_extension_ops): Remove obsolete
10130 2018-01-05 Pedro Alves <palves@redhat.com>
10133 * common/signals-state-save-restore.c
10134 (save_original_signals_state): New parameter 'quiet'. Warn if we
10135 find a custom handler preinstalled, instead of internal erroring.
10136 But only warn if !quiet.
10137 * common/signals-state-save-restore.h
10138 (save_original_signals_state): New parameter 'quiet'.
10139 * main.c (captured_main_1): Move save_original_signals_state call
10140 after option handling, and pass QUIET.
10142 2018-01-05 Pedro Alves <palves@redhat.com>
10144 * spu-tdep.c (spu_catch_start): Pass
10145 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
10147 2018-01-05 Pedro Alves <palves@redhat.com>
10150 * ada-lang.c (literal_symbol_name_matcher): New function.
10151 (ada_get_symbol_name_matcher): Use it for
10152 symbol_name_match_type::SEARCH_NAME.
10153 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
10154 it down instead of assuming symbol_name_match_type::FULL.
10155 * block.h (block_lookup_symbol): New parameter 'match_type'.
10156 * c-valprint.c (print_unpacked_pointer): Use
10157 lookup_symbol_search_name instead of lookup_symbol.
10158 * compile/compile-object-load.c (get_out_value_type): Pass down
10159 symbol_name_match_type::SEARCH_NAME.
10160 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
10161 symbol_name_match_type::FULL.
10162 * cp-support.c (cp_get_symbol_name_matcher): Handle
10163 symbol_name_match_type::SEARCH_NAME.
10164 * infrun.c (insert_exception_resume_breakpoint): Use
10165 lookup_symbol_search_name.
10166 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
10167 * psymtab.c (maintenance_check_psymtabs): Use
10168 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
10169 * stack.c (print_frame_args): Use lookup_symbol_search_name and
10170 SYMBOL_SEARCH_NAME.
10171 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
10172 if symbol_name_match_type::SEARCH_NAME.
10173 (lookup_symbol_in_language): Pass down
10174 symbol_name_match_type::FULL.
10175 (lookup_symbol_search_name): New.
10176 (lookup_language_this): Pass down
10177 symbol_name_match_type::SEARCH_NAME.
10178 (lookup_symbol_aux, lookup_local_symbol): New parameter
10179 'match_type'. Pass it down.
10180 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
10181 (lookup_symbol_search_name): New declaration.
10182 (lookup_symbol_in_block): New 'match_type' parameter.
10184 2018-01-05 Pedro Alves <palves@redhat.com>
10187 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
10189 (ada_lookup_symbol): Reimplement in terms of
10190 ada_lookup_symbol_list, bits factored out from
10191 ada_lookup_encoded_symbol.
10193 2018-01-05 Joel Brobecker <brobecker@adacore.com>
10195 * ada-exp.y (write_object_renaming): When subscripting an array
10196 using a symbol as the index, pass the block in call to
10197 ada_lookup_encoded_symbol when looking that symbol up.
10199 2018-01-05 Jerome Guitton <guitton@adacore.com>
10201 * ada-lang.c (ada_array_length): Use ada_index_type instead of
10204 2018-01-05 Joel Brobecker <brobecker@adacore.com>
10206 * ada-lang.c (ada_to_fixed_value_create): Add handling of
10207 the case where VALUE_LVAL (val0) is not lval_memory.
10209 2018-01-05 Xavier Roirand <roirand@adacore.com>
10211 * ada-valprint.c (print_optional_low_bound): Handle
10212 character-indexed array printing like boolean-indexed array
10215 2018-01-05 Joel Brobecker <brobecker@adacore.com>
10217 * NEWS: Create a new section for the next release branch.
10218 Rename the section of the current branch, now that it has
10221 2018-01-05 Joel Brobecker <brobecker@adacore.com>
10223 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
10224 * version.in: Bump version to 8.1.50.DATE-git.
10226 2018-01-03 Xavier Roirand <roirand@adacore.com>
10228 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
10230 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
10232 (default_exception_support_info) <catch_handlers_sym>: Add field.
10233 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
10234 (ada_exception_name_addr_1): Add "catch handlers" handling.
10235 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
10236 Update all callers.
10237 (create_excep_cond_exprs) <ex>: Add parameter.
10238 (re_set_exception): Update create_excep_cond_exprs call.
10239 (print_it_exception, print_one_exception, print_mention_exception)
10240 (print_recreate_exception): Add "catch handler" handling.
10241 (allocate_location_catch_handlers, re_set_catch_handlers)
10242 (check_status_catch_handlers, print_it_catch_handlers)
10243 (print_one_catch_handlers, print_mention_catch_handlers)
10244 (print_recreate_catch_handlers): New function.
10245 (catch_handlers_breakpoint_ops): New variable.
10246 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
10247 Add parameter. Add "catch handler" handling.
10248 (ada_exception_sym_name, ada_exception_breakpoint_ops):
10249 Add "catch handler" handling.
10250 (ada_exception_catchpoint_cond_string): Add "catch handler"
10252 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
10254 (catch_ada_handlers_command): New function.
10255 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
10256 operations structure.
10257 (_initialize_ada_language): Add "catch handlers" command entry.
10258 * NEWS: Document "catch handlers" feature.
10260 2018-01-02 Joel Brobecker <brobecker@adacore.com>
10262 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
10263 account when creating the array type of the slice.
10264 (ada_value_slice): Likewise.
10266 2018-01-02 Joel Brobecker <brobecker@adacore.com>
10268 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
10270 (create_array_type_with_stride): Add byte_stride_prop parameter.
10271 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
10272 New parameter. Update all callers in this file.
10273 (array_type_has_dynamic_stride): New function.
10274 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
10275 of arrays with dynamic byte strides.
10276 * dwarf2read.c (read_array_type): Add support for dynamic
10277 DW_AT_byte_stride attributes.
10279 2018-01-02 Joel Brobecker <brobecker@adacore.com>
10281 * dwarf2read.c (read_unspecified_type): Treat
10282 DW_TAG_enumeration_type DIEs from Ada units as stubs.
10284 2018-01-01 Joel Brobecker <brobecker@adacore.com>
10286 Update copyright year range in all GDB files.
10288 2018-01-01 Joel Brobecker <brobecker@adacore.com>
10290 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
10291 and gdb/testsuite/gdb.base/step-line.c.
10293 2018-01-01 Joel Brobecker <brobecker@adacore.com>
10295 * copyright.py (main): Dump the contents of
10296 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
10297 even if BY_HAND is empty.
10299 2018-01-01 Joel Brobecker <brobecker@adacore.com>
10301 * top.c (print_gdb_version): Update Copyright year in version
10304 2018-01-01 Joel Brobecker <brobecker@adacore.com>
10306 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
10308 For older changes see ChangeLog-2017.
10314 version-control: never