1 2018-11-07 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (read_atcb): Only set task_info->called_task if
4 task_info->state == Entry_Caller_Sleep.
5 (print_ada_task_info): Do not check task_info->state before
6 checking task_info->called_task.
9 2018-11-07 Joel Brobecker <brobecker@adacore.com>
11 * ada-tasks.c (read_atcb): Clear task_info before computing
12 the value of each of its fields.
14 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
16 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
17 NULL before dereferencing it.
19 2018-11-06 Tom de Vries <tdevries@suse.de>
21 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
24 2018-11-06 Max Filippov <jcmvbkbc@gmail.com>
26 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
27 so that it applies to uclinux as well.
29 2018-11-06 Marius Muench <marius.muench@eurecom.fr>
31 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
34 2018-11-06 John Baldwin <jhb@FreeBSD.org>
36 * riscv-fbsd-nat.c (getregs_supplies): Return true for
37 RISCV_CSR_SSTATUS_REGNUM.
39 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
41 * source.c (open_source_file): Fix leak by transferring the
42 current s->fullname to the unique_xmalloc_ptr fullname given
43 to find_and_open_source.
45 2018-11-04 Tom Tromey <tom@tromey.com>
47 * varobj.c (install_default_visualizer): Update.
48 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
50 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
51 (find_pretty_printer_from_progspace)
52 (find_pretty_printer_from_gdb, find_pretty_printer)
53 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
54 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
57 2018-11-04 Tom Tromey <tom@tromey.com>
59 * python/python.c (gdbpy_parameter_value): Update.
60 * python/python-internal.h (python_string_to_unicode)
61 (python_string_to_target_python_string)
62 (host_string_to_python_string): Return gdbpy_ref.
63 * python/py-utils.c (python_string_to_unicode)
64 (unicode_to_encoded_python_string)
65 (unicode_to_target_python_string)
66 (python_string_to_target_string)
67 (python_string_to_target_python_string): Return gdbpy_ref.
68 (python_string_to_host_string): Update.
69 (host_string_to_python_string): Return gdbpy_ref.
70 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
71 (stpy_fullname): Update.
72 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
74 * python/py-prettyprint.c (print_string_repr): Update.
75 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
76 (objfpy_get_build_id): Update.
77 * python/py-breakpoint.c (bppy_get_location)
78 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
81 2018-11-04 Tom Tromey <tom@tromey.com>
83 * python/python-internal.h (gdb_py_object_from_longest)
84 (gdb_py_object_from_ulongest): Return gdbpy_ref.
85 * python/py-value.c (valpy_int): Update.
86 * python/py-utils.c (gdb_py_object_from_longest): Return
88 (gdb_py_object_from_ulongest): Likewise.
89 * python/py-type.c (typy_get_alignof): Update.
90 * python/py-linetable.c (ltpy_get_all_source_lines)
91 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
92 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
94 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
96 * ada-lang.c (_initialize_ada_language): Fix typo.
98 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
100 * language.c (type): Remove.
101 (_initialize_language): Remove assignment to type.
103 2018-11-02 Joel Brobecker <brobecker@adacore.com>
105 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
106 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
107 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
108 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
109 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
110 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
111 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
112 and aarch64-ravenscar-thread.o.
113 * NEWS: Add entry documenting Ravenscar tasking support
116 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
118 * symtab.c (info_functions_command): Initialize quiet flag.
119 * stack.c (info_args_command): Likewise.
121 2018-11-01 Jim Wilson <jimw@sifive.com>
123 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
124 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
127 2018-11-01 Joel Brobecker <brobecker@adacore.com>
129 * ada-lang.c (ada_watch_location_expression): New function.
130 (ada_language_defn): Set la_watch_location_expression to
131 ada_watch_location_expression.
133 2018-11-01 Joel Brobecker <brobecker@adacore.com>
135 * print-utils.c (int_string): Remove unnecessary trailing spaces.
137 2018-11-01 Joel Brobecker <brobecker@adacore.com>
139 * rs6000-tdep.c (skip_prologue): Fix potential negative left
142 2018-11-01 Jerome Guitton <guitton@adacore.com>
143 Joel Brobecker <brobecker@adacore.com>
145 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
146 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
147 * arm-pikeos-tdep.c: New file.
148 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
150 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
152 2018-11-01 Simon Marchi <simon.marchi@ericsson.com>
154 * common/pathstuff.c (get_standard_temp_dir): New.
155 * common/pathstuff.h (get_standard_temp_dir): New.
156 * config.in: Re-generate.
157 * configure: Re-generate.
158 * configure.ac: Don't check for mkdtemp.
159 * gnulib/aclocal-m4-deps.mk: Re-generate.
160 * gnulib/aclocal.m4: Re-generate.
161 * gnulib/config.in: Re-generate.
162 * gnulib/configure: Re-generate.
163 * gnulib/import/Makefile.am: Re-generate.
164 * gnulib/import/Makefile.in: Re-generate.
165 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
166 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
167 * gnulib/import/m4/mkdtemp.m4: New file.
168 * gnulib/import/mkdtemp.c: New file.
169 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
171 * unittests/mkdir-recursive-selftests.c (test): Use
172 get_standard_temp_dir.
173 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
175 * compile/compile.c (get_compile_file_tempdir): Likewise.
177 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
179 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
180 (SIG_FRAME_LR_OFFSET64): New define.
181 (SIG_FRAME_FP_OFFSET64): New define.
182 (aix_sighandle_frame_cache): New Function.
183 (aix_sighandle_frame_this_id): New Function.
184 (aix_sighandle_frame_prev_register): New Function.
185 (aix_sighandle_frame_sniffer): New Function.
186 (aix_sighandle_frame_unwind): New global variable.
187 (rs6000_aix_init_osabi): Install new frame unwinder.
189 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
192 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
195 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
197 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
199 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
201 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
202 (producer_is_icc): New function.
203 (check_producer): Set producer_is_icc field on dwarf2_cu.
204 (dwarf2_init_integer_type): New function.
205 (read_base_type): Call dwarf2_init_integer_type instead of
206 init_integer_type in all cases.
207 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
208 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
209 LEN is greater than 0.
211 2018-10-30 Tom Tromey <tom@tromey.com>
213 * main.c (captured_main_1): Check return value of bfd_init.
215 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
217 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
220 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
222 * procfs.c: Include common/pathstuff.h.
224 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
226 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
227 Add missing braces. No functional change.
229 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
231 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
232 to report a bad option and fix indentation.
233 * demangle.c (demangle_command): Use report_unrecognized_option_error
234 to report a bad option and correctly report the bad option.
236 2018-10-27 Tom Tromey <tom@tromey.com>
239 * darwin-nat.c (copied_shell): New global.
240 (may_have_sip): Rename from should_disable_startup_with_shell.
241 (copy_shell_to_cache, maybe_cache_shell): New functions.
242 (darwin_nat_target::create_inferior): Update. Use
245 2018-10-27 Tom Tromey <tom@tromey.com>
247 * unittests/scoped_fd-selftests.c (test_to_file): New function.
248 (run_tests): Call test_to_file.
249 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
251 * common/scoped_fd.h (scoped_fd::to_file): New method.
253 2018-10-27 Tom Tromey <tom@tromey.com>
255 * unittests/scoped_mmap-selftests.c (test_normal): Use
256 gdb_mkostemp_cloexec.
257 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
258 Use gdb_mkostemp_cloexec.
259 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
260 gnulib/config.in, gnulib/configure,
261 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
262 gnulib/import/m4/gnulib-cache.m4,
263 gnulib/import/m4/gnulib-comp.m4: Update.
264 * gnulib/import/m4/mkostemp.m4: New file.
265 * gnulib/import/m4/mkstemp.m4: Remove.
266 * gnulib/import/mkostemp.c: New file.
267 * gnulib/import/mkstemp.m4: Remove.
268 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
269 mkstemp, add mkostemp. Apply new patch.
270 * gnulib/import/stdlib.in.h: Apply patch.
271 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
273 * dwarf-index-write.c (write_psymtabs_to_index): Use
274 gdb_mkostemp_cloexec.
275 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
277 2018-10-27 Tom Tromey <tom@tromey.com>
279 * unittests/mkdir-recursive-selftests.c: New file.
280 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
281 unittests/mkdir-recursive-selftests.c.
282 * dwarf-index-cache.c (mkdir_recursive): Move to
284 (index_cache::store): Check return value of mkdir_recursive.
285 (create_dir_and_check, test_mkdir_recursive): Move to new file.
286 (_initialize_index_cache): Don't register test.
287 * common/filestuff.h (mkdir_recursive): Declare.
288 * common/filestuff.c (mkdir_recursive): Move from
289 dwarf-index-cache.c. Return bool.
291 2018-10-27 Tom Tromey <tom@tromey.com>
293 * dwarf-index-write.c (write_psymtabs_to_index): Move
294 make_temp_filename to common/pathstuff.c.
295 * common/pathstuff.h (make_temp_filename): Declare.
296 * common/pathstuff.c (make_temp_filename): New function, moved
297 from dwarf-index-write.c.
299 2018-10-27 Tom Tromey <tom@tromey.com>
301 * procfs.c (procfs_target::create_inferior): Use get_shell.
302 * cli/cli-cmds.c (shell_escape): Use get_shell.
303 * windows-nat.c (windows_nat_target::create_inferior): Use
305 * common/pathstuff.c (get_shell): New function.
306 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
307 (fork_inferior): Use get_shell.
308 * common/pathstuff.h (get_shell): Declare.
310 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
312 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
314 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
316 * stack.c (print_variable_and_value_data): Add preg and treg.
317 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
319 (print_frame_arg_vars): Likewise.
320 (prepare_reg): New function.
321 (info_locals_command): Extract info print args and use them.
322 (info_args_command): Likewise.
323 (_initialize_stack): Modify on-line help.
324 * symtab.c (treg_matches_sym_type_name): New function.
325 (search_symbols): New arg t_regexp.
326 (symtab_symbol_info): New args quiet, regexp, t_regexp.
327 (info_variables_command): Extract info print args and use them.
328 (info_functions_command): Likewise.
329 (info_types_command): Update call to symtab_symbol_info.
330 (_initialize_symtab): Modify on-line help.
331 * symtab.h (treg_matches_sym_type_name): New function.
332 (search_symbols): New t_regexp arg.
334 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
336 * cli-utils.c (extract_arg_maybe_quoted): New function.
337 (extract_info_print_args): New function.
338 (info_print_args_help): New function.
339 (report_unrecognized_option_error): New function.
340 * cli-utils.h (extract_arg_maybe_quoted): New function.
341 (extract_info_print_args): New function.
342 (info_print_args_help): New function.
343 (report_unrecognized_option_error): New function.
345 2018-10-26 Tom Tromey <tom@tromey.com>
347 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
348 (compute_compunit_symtab_includes): Update.
349 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
350 (compunit_symtab_ptr): Likewise.
352 2018-10-26 John Baldwin <jhb@FreeBSD.org>
354 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
355 default_print_auxv_entry for specific tag values.
357 2018-10-26 John Baldwin <jhb@FreeBSD.org>
359 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
361 2018-10-26 Jim Wilson <jimw@sifive.com>
363 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
364 (riscv_linux_sigframe_init): Declare.
365 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
366 (riscv_linux_sigframe): New.
367 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
368 (riscv_linux_sigframe_init): Define.
369 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
371 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
372 (riscv_isa_flen): Likewise. Drop static.
373 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
374 (riscv_isa_flen): Likewise. Declare.
376 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
377 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
379 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
380 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
381 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
382 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
383 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
384 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
385 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
387 (struct ppc_linux_features) <htm>: New field.
388 (ppc_linux_no_features): Add initializer for htm field.
389 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
391 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
392 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
393 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
394 Define if not already defined.
395 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
396 and rs6000/powerpc-isa207-htm-vsx64l.
397 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
398 rs6000/powerpc-isa207-htm-vsx64l.xml.
399 * features/rs6000/power-htm-spr.xml: New file.
400 * features/rs6000/power-htm-core.xml: New file.
401 * features/rs6000/power64-htm-core.xml: New file.
402 * features/rs6000/power-htm-fpu.xml: New file.
403 * features/rs6000/power-htm-altivec.xml: New file.
404 * features/rs6000/power-htm-vsx.xml: New file.
405 * features/rs6000/power-htm-ppr.xml: New file.
406 * features/rs6000/power-htm-dscr.xml: New file.
407 * features/rs6000/power-htm-tar.xml: New file.
408 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
409 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
410 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
411 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
412 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
413 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
414 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
415 fetch_regset with HTM regsets.
416 (store_register, store_ppc_registers): Call store_regset with HTM
418 (ppc_linux_nat_target::read_description): Set htm field in the
419 features struct if needed.
420 * ppc-linux-tdep.c: Include
421 features/rs6000/powerpc-isa207-htm-vsx32l.c and
422 features/rs6000/powerpc-isa207-htm-vsx64l.c.
423 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
424 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
425 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
426 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
427 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
428 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
429 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
430 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
431 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
432 (ppc32_linux_ctarregset): New globals.
433 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
434 (ppc_linux_collect_core_cpgrregset): New function.
435 (ppc_linux_iterate_over_regset_sections): Call back with the htm
437 (ppc_linux_core_read_description): Check if the tm spr section is
438 present and set htm in the features struct.
439 (_initialize_ppc_linux_tdep): Call
440 initialize_tdesc_powerpc_isa207_htm_vsx32l and
441 initialize_tdesc_powerpc_isa207_htm_vsx64l.
442 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
444 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
445 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
446 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
447 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
449 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
451 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
452 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
453 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
455 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
456 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
457 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
458 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
459 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
460 <PPC_CTAR_REGNUM>: Likewise.
461 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
462 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
463 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
464 (IS_CEFP_PSEUDOREG): Define.
465 (rs6000_register_name): Hide the upper halves of checkpointed VSX
466 registers. Return names for the checkpointed DFP, VSX, and EFP
468 (rs6000_pseudo_register_type): Remove initial assert and raise an
469 internal error in the else clause instead. Return types for the
470 checkpointed DFP, VSX, and EFP pseudo registers.
471 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
472 checkpointed DFP pseudo registers.
473 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
474 checkpointed VSX pseudo registers.
475 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
476 from efpr_pseudo_register_read and
477 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
479 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
480 Handle checkpointed DFP, VSX, and EFP registers.
481 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
482 (efp_ax_pseudo_register_collect): New functions.
483 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
484 register logic to new functions. Handle checkpointed DFP, VSX,
485 and EFP pseudo registers.
486 (rs6000_gdbarch_init): Look for and validate the htm features.
487 Include checkpointed DFP, VSX and EFP pseudo-registers.
488 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
491 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
493 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
494 without altivec or fpu.
496 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
497 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
499 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
500 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
501 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
502 Define if not already defined.
503 * features/rs6000/power-ebb.xml: New file.
504 * features/rs6000/power-linux-pmu.xml: New file.
505 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
507 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
508 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
509 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
510 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
511 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
512 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
513 fetch_regset with ebb and pmu regsets.
514 (store_register, store_ppc_registers): Call store_regset with ebb
516 (ppc_linux_nat_target::read_description): Set isa207 field in the
517 features struct if ebb and pmu are avaiable.
518 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
519 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
520 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
522 (ppc_linux_core_read_description): Check if the pmu section is
523 present and set isa207 in the features struct.
524 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
525 (ppc32_linux_pmuregset): Declare.
526 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
527 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
528 <ppc_sier_regnum>: New field.
529 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
531 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
533 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
534 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
535 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
536 ebb and pmu features.
538 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
539 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
541 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
542 (tdesc_powerpc_isa207_vsx64l): Declare.
543 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
544 (struct ppc_linux_features) <isa207>: New field.
545 (ppc_linux_no_features): Add initializer for isa207 field.
546 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
548 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
549 (NT_PPC_TAR): Define if not already defined.
550 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
551 rs6000/powerpc-isa207-vsx64l.
552 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
553 rs6000/powerpc-isa207-vsx64l.xml.
554 * features/rs6000/power-tar.xml: New file.
555 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
556 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
557 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
558 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
559 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
560 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
561 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
562 fetch_regset with the TAR regset.
563 (store_register, store_ppc_registers): Call store_regset with the
565 (ppc_linux_nat_target::read_description): Set isa207 field in the
566 features struct if needed.
567 * ppc-linux-tdep.c: Include
568 features/rs6000/powerpc-isa207-vsx32l.c and
569 features/rs6000/powerpc-isa207-vsx64l.c.
570 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
571 (ppc_linux_iterate_over_regset_sections): Call back with the tar
573 (ppc_linux_core_read_description): Check if the tar section is
574 present and set isa207 in the features struct.
575 (_initialize_ppc_linux_tdep): Call
576 initialize_tdesc_powerpc_isa207_vsx32l and
577 initialize_tdesc_powerpc_isa207_vsx64l.
578 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
579 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
580 (enum) <PPC_TAR_REGNUM>: New enum value.
581 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
583 (ppc_process_record_op31): Record changes to TAR.
585 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
586 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
588 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
589 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
590 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
591 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
592 (struct ppc_linux_features) <ppr_dscr>: New field.
593 (ppc_linux_no_features): Add initializer for ppr_dscr field.
594 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
596 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
597 Define if not already defined.
598 * features/Makefile (WHICH): Add
599 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
600 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
601 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
602 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
603 * features/rs6000/power-dscr.xml: New file.
604 * features/rs6000/power-ppr.xml: New file.
605 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
606 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
607 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
608 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
609 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
610 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
611 * ppc-linux-nat.c: Include <sys/uio.h>.
612 (fetch_regset, store_regset, check_regset): New functions.
613 (fetch_register, fetch_ppc_registers): Call fetch_regset with
614 DSCR and PPR regsets.
615 (store_register, store_ppc_registers): Call store_regset with
616 DSCR and PPR regsets.
617 (ppc_linux_get_hwcap2): New function.
618 (ppc_linux_nat_target::read_description): Call
619 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
620 features struct if needed.
621 * ppc-linux-tdep.c: Include
622 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
623 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
624 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
625 (ppc32_linux_dscrregset): New globals.
626 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
628 (ppc_linux_core_read_description): Check if the ppr and dscr
629 sections are present and set ppr_dscr in the features struct.
630 (_initialize_ppc_linux_tdep): Call
631 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
632 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
633 * ppc-linux-tdep.h (ppc32_linux_pprregset)
634 (ppc32_linux_dscrregset): Declare.
635 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
636 <ppc_dscr_regnum>: New field.
637 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
638 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
640 (ppc_process_record_op31): Record changes to PPR and DSCR.
642 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
644 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
645 second initializer line for the have_* variables. Initialize
646 have_fpu to 0 instead of 1.
648 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
650 * arch/ppc-linux-common.c (ppc_linux_match_description):
651 Parenthesize tdesc assignements and indent them properly.
653 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
655 * ppc-linux-nat.c (fetch_register): Change if statement to else
657 (store_register): Likewise.
659 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
661 * rs6000-tdep.c: Remove reggroups.h include.
662 (rs6000_pseudo_register_reggroup_p): Remove.
663 (rs6000_gdbarch_init): Remove call to
664 set_tdesc_pseudo_register_reggroup_p.
666 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
668 * reggroups.c (default_register_reggroup_p): Return true for
669 decfloat registers and float_reggroup.
671 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
673 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
674 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
675 ppc_linux_collect_vrregset by regcache_collect_regset.
677 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
679 * linux-tdep.c (linux_collect_regset_section_cb): Use
680 std::vector<gdb_byte> instead of char * and malloc for buf.
683 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
685 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
686 symtab_start instead of always using language_unknown.
688 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
690 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
691 READ_P parameter, catch and ignore register access errors from
692 either the old or new MISA location.
693 (riscv_has_feature): Update call to riscv_read_misa_reg.
695 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
697 * python/py-function.c (convert_values_to_python): Return
698 gdbpy_ref<>. Add header comment.
701 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
703 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
704 (cmdpy_completer_handle_brkchars): Adjust.
705 (cmdpy_completer): Adjust.
707 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
709 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
710 Pass correct regnum to raw_supply_zeroed.
712 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
714 * regcache.c (cooked_read_test): Add CSKY to the list of
715 architectures with a save_reggroup
717 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
720 * infrun.c (follow_exec): In the follow_exec_mode_new case,
721 transfer terminal state from old new new inferior.
722 * terminal.h (swap_terminal_info): New function.
723 * inflow.c (swap_terminal_info): New function.
725 2018-10-23 Tom Tromey <tom@tromey.com>
727 * record-btrace.c (get_thread_current_frame_id): Rename from
728 get_thread_current_frame. Return a frame_id.
729 (record_btrace_start_replaying): Update.
731 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
733 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
736 2018-10-23 Joel Brobecker <brobecker@adacore.com>
738 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
739 have_nonsteppable_watchpoint attribute to 1.
741 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
743 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
745 (struct register_alias): Rename to...
746 (struct riscv_register_alias): ...this, and update comment.
747 (riscv_register_aliases): Update type, and alias names. Remove
748 CSR names from this list.
749 (riscv_register_name): Use riscv_gdb_reg_names for int and float
750 register names. Add an extra assertion.
751 (riscv_is_regnum_a_named_csr): New function.
752 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
754 2018-10-22 Jim Wilson <jimw@sifive.com>
756 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
757 FP reg smaller than FP reg size, and fill with -1 instead of 0.
759 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
760 (riscv_register_type): Use them.
761 (riscv_print_one_register_info): Handle union of floats same as float.
762 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
763 riscv_fpreg_q_type fields.
765 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
767 * gdbarch.sh (gdbarch_num_cooked_regs): New.
768 * gdbarch.h: Re-generate.
769 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
770 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
771 * eval.c (evaluate_subexp_standard): Likewise.
772 * findvar.c (value_of_register): Likewise.
773 (value_of_register_lazy): Likewise.
774 (address_from_register): Likewise.
775 * frame.c (get_frame_register_bytes): Likewise.
776 * gdbarch-selftests.c (register_to_value_test): Likewise.
777 * h8300-tdep.c (h8300_register_type): Likewise.
778 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
779 (i386_svr4_reg_to_regnum): Likewise.
780 * infcmd.c (default_print_registers_info): Likewise.
781 (registers_info): Likewise.
782 (print_vector_info): Likewise.
783 (default_print_float_info): Likewise.
784 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
785 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
786 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
787 (mi_cmd_data_list_changed_registers): Likewise.
788 (mi_cmd_data_list_register_values): Likewise.
789 (mi_cmd_data_write_register_values): Likewise.
790 (mi_cmd_trace_frame_collected): Likewise.
791 * mips-tdep.c (print_gp_register_row): Likewise.
792 (mips_print_registers_info): Likewise.
793 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
794 * regcache.c (init_regcache_descr): Likewise.
795 (register_size): Likewise.
796 (register_dump::dump): Likewise.
797 (cooked_read_test): Likewise.
798 (cooked_write_test): Likewise.
799 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
800 (rs6000_gdbarch_init): Likewise.
801 * stabsread.c (stab_reg_to_regnum): Likewise.
802 * stack.c (info_frame_command): Likewise.
803 * target-descriptions.c (tdesc_register_name): Likewise.
804 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
805 * tui/tui-regs.c (tui_show_register_group): Likewise.
806 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
807 (user_reg_map_regnum_to_name): Likewise.
808 (value_of_user_reg): Likewise.
809 (maintenance_print_user_registers): Likewise.
810 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
811 (xtensa_register_name): Likewise.
812 (xtensa_register_type): Likewise.
813 (xtensa_reg_to_regnum): Likewise.
814 (xtensa_pseudo_register_read): Likewise.
815 (xtensa_pseudo_register_write): Likewise.
817 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
819 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
820 correctly-sized buffer with raw_read.
821 (amd64_pseudo_register_write): Use correctly-sized buffer for
824 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
826 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
827 in add_prefix_cmd of set print type.
829 2018-10-19 Tom Tromey <tom@tromey.com>
832 * NEWS: Mention tabset deprecation.
833 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
834 (update_tab_width): New function.
835 (tui_set_tab_width, tui_show_tab_width): New functions.
836 (tui_set_tab_width_command): Use update_tab_width.
837 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
838 Add new "set tui tab-width" command.
839 * tui/tui-source.c (tui_set_source_content): Update.
840 * tui/tui-disasm.c (tui_set_disassem_content): Update.
841 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
843 (tui_tab_width): Declare.
844 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
845 (tui_set_default_tab_len): Remove.
847 2018-10-19 Tom Tromey <tom@tromey.com>
849 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
850 (key_is_backspace, tui_getc): Don't declare.
851 * tui/tui-io.c (key_is_start_sequence): Now static.
852 (key_is_end_sequence, key_is_backspace): Remove.
853 (tui_getc): Now static.
855 2018-10-19 Tom Tromey <tom@tromey.com>
857 * symfile.c (reread_symbols): Clear "static_links".
859 2018-10-19 Alan Hayward <alan.hayward@arm.com>
861 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
863 (aarch64_linux_sigframe_init): Extra boundary checks.
865 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
867 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
868 the possibly non-existent tdesc type 'vec128', but the type of raw
869 register v16 instead.
871 2018-10-19 Gary Benson <gbenson@redhat.com>
873 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
875 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
878 * cli/cli-dump.c (restore_binary_file): Check if "file" is
881 2018-10-17 Paul Koning <paul_koning@dell.com>
883 * charset.c (convert_between_encodings): Fix unsigned overflow.
885 2018-10-17 John Baldwin <jhb@FreeBSD.org>
887 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
888 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
889 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
890 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
892 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
893 and fbsd_info_proc_mappings_header.
894 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
895 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
898 2018-10-17 Joel Brobecker <brobecker@adacore.com>
900 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
903 2018-10-15 Tom Tromey <tom@tromey.com>
905 * tui/tui.c (strcat_to_buf): Remove casts.
906 * tui/tui-winsource.c (tui_show_source_line)
907 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
908 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
909 * tui/tui-windata.c (tui_first_data_item_displayed)
910 (tui_delete_data_content_windows, tui_erase_data_content)
911 (tui_display_all_data, tui_display_data_from)
912 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
913 * tui/tui-win.c (tui_set_win_height)
914 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
916 * tui/tui-win.c (tui_resize_all): Remove casts.
917 (tui_scroll_backward_command, tui_set_focus)
918 (tui_set_tab_width_command): Likewise.
919 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
920 * tui/tui-regs.c (tui_show_register_group): Remove cast.
921 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
922 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
923 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
926 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
928 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
929 AArch64/ARM maintainer.
931 2018-10-11 Gary Benson <gbenson@redhat.com>
933 * interps.h (interp::m_name): Make private and mutable.
934 * interps.c (interp::~interp): Free m_name.
936 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
937 Simon Marchi <simark@simark.ca>
939 * README (`configure' options): Add documentation for new
940 "--enable-unit-tests" option.
941 * acinclude.m4: Include "selftest.m4".
942 * configure: Regenerate.
943 * configure.ac: Use "GDB_AC_SELFTEST".
944 * maint.c (maintenance_selftest): Update message informing
945 that selftests have been disabled.
946 (maintenance_info_selftests): Likewise.
947 * selftest.m4: New file.
949 2018-10-10 Gary Benson <gbenson@redhat.com>
951 * remote.c (remote_target::remote_send_printf): Add
952 missing va_end found by Coverity.
954 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
956 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
958 2018-10-09 Tom Tromey <tom@tromey.com>
960 * configure: Rebuild.
961 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
962 * NEWS: Update --enable-ubsan documentation.
964 2018-10-09 Gary Benson <gbenson@redhat.com>
966 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
969 2018-10-08 Tom Tromey <tom@tromey.com>
971 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
973 (riscv_fbsd_init_abi): Likewise.
975 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
976 * valops.c (value_struct_elt_for_reference): Rename local variable
977 to work around the shadowing a previous local warning.
979 2018-10-08 John Baldwin <jhb@FreeBSD.org>
981 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
982 * NEWS: Mention new FreeBSD/riscv native configuration.
983 * configure.host: Add riscv*-*-freebsd*.
984 * configure.nat: Likewise.
985 * riscv-fbsd-nat.c: New file.
987 2018-10-08 John Baldwin <jhb@FreeBSD.org>
989 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
990 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
991 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
992 * NEWS: Mention new FreeBSD/riscv target.
993 * configure.tgt: Add riscv*-*-freebsd*.
994 * riscv-fbsd-tdep.c: New file.
995 * riscv-fbsd-tdep.h: New file.
997 2018-10-08 John Baldwin <jhb@FreeBSD.org>
999 * regcache.h (struct regcache_map_entry): Note that this type can
1000 be used with traditional frame caches.
1001 * trad-frame.c (trad_frame_set_reg_regmap): New.
1002 * trad-frame.h (trad_frame_set_reg_regmap): New.
1004 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
1007 * valops.c (get_virtual_base_offset): New function.
1008 (value_struct_elt_for_reference): Use it to get virtual base offset
1009 and add it in calculating class member address.
1011 2018-10-08 John Darrington <john@darrington.wattle.id.au>
1013 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1014 (check_producer): Check if the producer is codewarrior.
1015 (producer_is_codewarrior): New function.
1016 (lnp_state_machine::record_line): Ignore is_stmt flag for records
1017 produced by codewarrior.
1018 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
1020 2018-10-06 Tom Tromey <tom@tromey.com>
1023 * python/py-inferior.c: Add "architecture" entry.
1024 (infpy_architecture): New function.
1026 2018-10-06 Tom Tromey <tom@tromey.com>
1029 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1030 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1031 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
1032 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1034 2018-10-06 Tom Tromey <tom@tromey.com>
1037 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1038 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1039 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1042 2018-10-06 Tom Tromey <tom@tromey.com>
1044 * python/py-breakpoint.c (bppy_get_location): Handle a
1045 bp_breakpoint without a location.
1047 2018-10-06 Tom Tromey <tom@tromey.com>
1049 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
1050 (_RegEx): Reformat help text.
1051 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
1052 (AnyCallerIs, AnyCallerMatches): Reformat help text.
1053 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
1055 * python/lib/gdb/command/xmethods.py (InfoXMethod)
1056 (EnableXMethod, DisableXMethod): Remove help indentation.
1057 Capitalize meta-syntactic variables.
1058 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
1059 (EnableUnwinder, DisableUnwinder): Remove help indentation.
1060 Capitalize meta-syntactic variables.
1061 * python/lib/gdb/command/explore.py (ExploreCommand)
1062 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
1063 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
1064 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
1065 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
1066 Remove help indentation.
1067 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
1068 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
1069 (DisableFrameFilter, SetFrameFilterPriority)
1070 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
1072 2018-10-06 Tom Tromey <tom@tromey.com>
1075 * tui/tui-io.c (gdb_wgetch): New function.
1076 (tui_mld_getc, tui_getc): Use it.
1078 2018-10-05 Tom Tromey <tom@tromey.com>
1080 * sol-thread.c (sol_thread_target::wait): Rename inner
1083 2018-10-04 Tom Tromey <tom@tromey.com>
1085 * configure: Rebuild.
1086 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
1088 2018-10-04 Tom Tromey <tom@tromey.com>
1090 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
1091 declaration of "block".
1093 2018-10-04 Tom Tromey <tom@tromey.com>
1095 * common/filestuff.c (fdwalk): Remove inner declaration of
1098 2018-10-04 Tom Tromey <tom@tromey.com>
1100 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
1101 "structs_addr" and hoist declaration.
1103 2018-10-04 Tom Tromey <tom@tromey.com>
1105 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
1108 2018-10-04 Tom Tromey <tom@tromey.com>
1110 * mdebugread.c (parse_partial_symbols): Use std::string.
1112 2018-10-04 Tom Tromey <tom@tromey.com>
1114 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
1115 * p-valprint.c (pascal_val_print): Split inner "i" variable.
1116 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
1118 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
1120 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
1121 * varobj.c (varobj_update): Rename inner "newobj",
1123 * valprint.c (generic_emit_char): Rename inner "buf".
1124 * valops.c (find_overload_match): Rename inner "temp".
1125 (value_struct_elt_for_reference): Declare "v" in more inner
1127 * v850-tdep.c (v850_push_dummy_call): Rename "len".
1128 * unittests/array-view-selftests.c (run_tests): Rename inner
1130 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
1132 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
1133 "tsv" in more inner scope.
1134 (print_one_static_tracepoint_marker): Rename inner
1136 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
1137 (tic6x_push_dummy_call): Don't redeclare "addr".
1138 * target-float.c: Declare "dto" lower.
1139 * symtab.c (lookup_local_symbol): Rename inner "sym".
1140 (find_pc_sect_line): Rename inner "pc".
1141 * stack.c (print_frame): Don't redeclare "gdbarch".
1142 (return_command): Rename inner "gdbarch".
1143 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
1145 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
1147 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
1148 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
1150 * remote.c (remote_target::update_thread_list): Don't redeclare
1152 (remote_target::process_initial_stop_replies): Rename inner
1154 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
1155 (remote_target::wait_as): Don't redeclare "stop_reply".
1156 (remote_target::get_thread_local_address): Rename inner
1158 (remote_target::get_tib_address): Likewise.
1160 * regcache.c (cooked_read_test): Rename "regnum".
1161 * record-btrace.c (cmd_record_btrace_start): Rename inner
1163 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
1165 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
1167 (ppu2spu_sniffer): Rename inner "buf".
1168 * parse.c (operator_check_standard): Rename inner "type",
1170 * p-valprint.c (pascal_val_print): Introduce new scope for
1171 "low_bound", "high_bound".
1172 * p-exp.y (yylex): Declare "i" in loop header.
1173 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
1174 Lower declaration of "s".
1175 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
1177 (nios2_push_dummy_call): Rename "len".
1178 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
1180 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
1181 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
1182 (linux_xfer_osdata_modules): Likewise.
1183 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
1184 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1185 (mips_o64_push_dummy_call): Likewise.
1186 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
1188 * mi/mi-main.c (list_available_thread_groups): Rename inner
1190 (mi_cmd_data_read_memory): Rename inner "opts".
1191 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
1193 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
1194 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
1196 (parse_partial_symbols): Rename inner "pst", "p", "name"
1197 * main.c (captured_main_1): Rename inner "i"s.
1198 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1200 * linux-tdep.c (linux_info_proc): Rename inner "filename".
1201 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1202 * infrun.c (handle_no_resumed): Don't redeclare "thread".
1203 (handle_signal_stop): Rename inner "gdbarch".
1204 (handle_command): Declare "signum" in loop header.
1205 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1207 (examine_prologue): Rename inner "sol" and "sof".
1208 (ia64_extract_return_value): Rename inner "val". Declare another
1209 "val" in a more inner scope.
1210 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1212 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1214 * findvar.c (default_read_var_value): Don't redeclare "addr".
1215 * f-exp.y (yylex): Declare "i" in loop header.
1216 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1217 Rename inner "type", "expect_type".
1218 (evaluate_subexp_for_sizeof): Rename inner "pc".
1219 * elfread.c (elf_symfile_read): Rename inner "abfd".
1220 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1222 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1223 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1224 (dwarf_decode_line_header): Rename inner "lh".
1225 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1226 "offset". Declare "i" in loop header.
1227 (disassemble_dwarf_expression): Rename inner "addr_size".
1228 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1230 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1231 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1232 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1233 "inner_list_emitter".
1234 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1235 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1236 declaration in a block.
1237 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1238 * cp-valprint.c (cp_print_value_fields): Don't redeclare
1239 "obstack_final_size".
1240 * cp-support.c (inspect_type): Declare "i" in loop header.
1241 * compile/compile.c (compile_instance::insert_symbol_error):
1243 * common/agent.c (agent_run_command): Remove inner "ret"
1245 * coffread.c (coff_symfile_read): Rename inner "name".
1246 (coff_symfile_read): Rename inner "abfd".
1247 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1248 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1250 * c-exp.y (lex_one_token): Move "len" declaration lower.
1251 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1253 (create_exception_master_breakpoint): Likewise. Don't redeclare
1255 (watch_command_1): Declare "mark" later.
1256 (clear_command): Don't shadow "a" or "b".
1257 (delete_command): Rename inner "b".
1258 (delete_trace_command): Likewise.
1259 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
1261 (arm_gdbarch_init): Remove inner "e_flags".
1262 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
1263 "offset" in inner blocks.
1265 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
1267 * dwarf-index-write.c (file_write): Don't write if the vector is
1270 2018-10-05 Tom de Vries <tdevries@suse.de>
1272 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
1273 PyArg_ParseTuple call.
1275 2018-10-05 Tom de Vries <tdevries@suse.de>
1277 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
1278 PyArg_ParseTuple call.
1280 2018-10-04 Joel Brobecker <brobecker@adacore.com>
1282 * psymtab.c (recursively_search_psymtabs): Reformat parameters
1283 to avoid exceeding 80 characters per line limit.
1285 2018-10-04 Tom Tromey <tom@tromey.com>
1287 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1288 (reread_symbols): Update.
1289 * complaints.h (clear_complaints): Remove argument.
1290 * complaints.c (enum complaint_series): Remove.
1291 (series): Remove global.
1292 (complaint_internal): Update.
1293 (clear_complaints): Remove argument.
1295 2018-10-04 Tom Tromey <tom@tromey.com>
1297 * symfile.c (symbol_file_add_with_addrs): Do not print "no
1298 debugging symbols" message if there is a separate debug objfile.
1300 2018-10-04 Tom Tromey <tom@tromey.com>
1303 * symfile.c (symbol_file_add_with_addrs): Update output.
1304 * psymtab.c (require_partial_symbols): Update output.
1306 2018-10-04 Tom Tromey <tom@tromey.com>
1309 * complaints.c: Emit \n.
1311 2018-10-04 Tom Tromey <tom@tromey.com>
1313 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
1314 (separate_debug_file_exists, find_separate_debug_file)
1315 (add_symbol_file_command, reread_symbols, allocate_symtab)
1316 (allocate_compunit_symtab): Use filtered printing, not
1318 * psymtab.c (require_partial_symbols, dump_psymtab)
1319 (allocate_psymtab): Use filtered printing, not unfiltered.
1321 2018-10-04 Tom Tromey <tom@tromey.com>
1323 * complaints.c (complaint_internal): Correctly check complaint
1326 2018-10-04 Tom Tromey <tom@tromey.com>
1328 * complaints.h (struct complaints): Remove declaration.
1329 * complaints.c (clear_complaints): Remove an unused variable.
1331 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1333 * MAINTAINERS (Write After Approval): Add self.
1335 2018-10-03 Tom Tromey <tom@tromey.com>
1337 * guile/scm-value.c (gdbscm_value_to_string): Initialize
1339 * coffread.c (coff_symtab_read): Initialize "newobj".
1341 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
1343 * dwarf2read.c (read_func_scope): Remove struct keyword in
1346 2018-10-03 Tom Tromey <tom@tromey.com>
1348 * README: Mention --enable-ubsan.
1349 * NEWS: Mention --enable-ubsan.
1350 * acinclude.m4: Include sanitize.m4.
1351 * configure: Rebuild.
1352 * configure.ac: Call AM_GDB_UBSAN.
1353 * sanitize.m4: New file.
1355 2018-10-03 Tom Tromey <tom@tromey.com>
1357 * expression.h (enum exp_opcode): Use uint8_t as base type.
1358 * expprint.c (op_name): Handle invalid opcodes.
1360 2018-10-03 Tom Tromey <tom@tromey.com>
1362 * parse.c (prefixify_expression): Add assert.
1363 (parse_exp_in_context_1): Throw exception if the expression is
1366 2018-10-03 Tom Tromey <tom@tromey.com>
1368 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1370 2018-10-03 Tom Tromey <tom@tromey.com>
1372 * c-exp.y (parse_number): Work in unsigned. Remove casts.
1374 2018-10-03 Tom Tromey <tom@tromey.com>
1376 * dwarf2read.c (read_subrange_type): Make "negative_mask"
1379 2018-10-03 Tom Tromey <tom@tromey.com>
1381 * findvar.c (extract_integer): Do work in an unsigned type.
1383 2018-10-03 Tom Tromey <tom@tromey.com>
1385 * common/enum-flags.h (enum_flags::operator~): Add static assert.
1386 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1388 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1389 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1391 * c-lang.h (enum c_string_type_values): Use unsigned as base
1393 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1395 2018-10-03 Tom Tromey <tom@tromey.com>
1397 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1398 <~dwarf2_frame_state_reg_info>: Update.
1399 <dwarf2_frame_state_reg_info>: Update.
1400 <alloc_regs>: Add assertion. Update.
1401 <reg>: Now a std::vector.
1404 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1405 (execute_cfa_program_test, dwarf2_frame_cache): Update.
1407 2018-10-03 Tom Tromey <tom@tromey.com>
1409 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1411 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1413 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1415 2018-10-02 Tom Tromey <tom@tromey.com>
1417 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1419 2018-10-02 John Darrington <john@darrington.wattle.id.au>
1421 * NEWS: Mention changed commands.
1422 * ser-uds.c: New file.
1423 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1424 * configure: Regenerate.
1425 * Makefile.in: Add new file.
1426 * serial.c (serial_open): Check if filename is a socket
1427 and lookup the appropriate interface accordingly.
1429 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1431 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1433 (AARCH64_EXTRA_MAGIC): Likewise.
1434 (AARCH64_FPSIMD_MAGIC): Likewise.
1435 (AARCH64_SVE_MAGIC): Likewise.
1436 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1437 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1438 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1439 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1440 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1441 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1442 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1443 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1444 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1445 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1446 (read_aarch64_ctx): Add function.
1447 (aarch64_linux_sigframe_init): Detect FP registers.
1449 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1451 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
1452 (AARCH64_D0_REGNUM): Likewise.
1453 (AARCH64_S0_REGNUM): Likewise.
1454 (AARCH64_H0_REGNUM): Likewise.
1455 (AARCH64_B0_REGNUM): Likewise.
1456 (AARCH64_SVE_V0_REGNUM): Likewise.
1457 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1458 (AARCH64_D0_REGNUM): Likewise.
1459 (AARCH64_S0_REGNUM): Likewise.
1460 (AARCH64_H0_REGNUM): Likewise.
1461 (AARCH64_B0_REGNUM): Likewise.
1462 (AARCH64_SVE_V0_REGNUM): Likewise.
1464 2018-10-01 Gary Benson <gbenson@redhat.com>
1466 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1467 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1468 prfpregset_t instead of gdb_prfpregset_t.
1469 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1470 * configure, config.in: Rebuild.
1472 2018-10-01 Gary Benson <gbenson@redhat.com>
1474 * common/gdb_proc_service.h: New file, factored out from...
1475 * gdb_proc_service.h: Moved common code to the above file.
1476 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
1478 2018-10-01 Gary Benson <gbenson@redhat.com>
1480 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
1481 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
1483 2018-10-01 Gary Benson <gbenson@redhat.com>
1485 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
1486 (AC_CHECK_HEADERS): Check for linux/elf.h.
1487 * configure, config.in: Rebuild.
1488 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
1489 doesn't define elf_fpregset_t.
1491 2018-10-01 Gary Benson <gbenson@redhat.com>
1493 * gdb_proc_service.h: Whitespace change.
1495 2018-10-01 Tom Tromey <tom@tromey.com>
1497 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
1498 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
1499 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
1501 2018-10-01 Tom Tromey <tom@tromey.com>
1503 * README: Minor change.
1505 2018-09-30 Pedro Alves <palves@redhat.com>
1507 * darwin-nat-info.c (darwin_debug_regions_recurse)
1508 (info_mach_exceptions_command): Remove unused local variables.
1509 * darwin-nat.c (darwin_decode_notify_message)
1510 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
1511 (darwin_stop_inferior, darwin_setup_exceptions)
1512 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
1513 (darwin_nat_target::attach, darwin_nat_target::detach)
1514 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
1516 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
1519 2018-09-29 Tom Tromey <tom@tromey.com>
1521 * README: Remove some leftover text.
1523 2018-09-29 Tom Tromey <tom@tromey.com>
1525 * PROBLEMS: Rewrite.
1528 2018-09-28 John Baldwin <jhb@FreeBSD.org>
1530 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
1531 case with explicit breakpoint kind.
1532 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
1533 'additional_info' and related logic.
1534 (riscv_debug_breakpoints): New variable.
1535 (riscv_breakpoint_kind_from_pc): Use the length of the existing
1536 instruction to determine the breakpoint kind.
1537 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
1538 flag. Update description of 'set/show riscv
1539 use-compressed-breakpoints' flag.
1541 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
1543 (NEWS): Mention changes to frame related commands.
1544 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
1545 (add_prefix_cmd_suppress_notification): New function.
1546 (add_com_suppress_notification): Call
1547 add_cmd_suppress_notification.
1548 * command.h (add_cmd_suppress_notification): Declare.
1549 (add_prefix_cmd_suppress_notification): Declare.
1550 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
1551 (parse_frame_specification): Moved from stack.c, with
1552 simplification to handle a single argument.
1553 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
1554 switch to the selected frame. Add a header comment.
1555 * stack.c: Remove 'safe-ctype.h' include.
1556 (find_frame_for_function): Add declaration.
1557 (find_frame_for_address): New function.
1558 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
1559 (frame_selection_by_function_completer): New function.
1560 (info_frame_command): Rename to...
1561 (info_frame_command_core): ...this, and update parameter types.
1562 (select_frame_command): Rename to...
1563 (select_frame_command_core): ...this, and update parameter types.
1564 (frame_command): Rename to...
1565 (frame_command_core): ...this, and update parameter types.
1566 (class frame_command_helper): New class to wrap implementations of
1567 frame related sub-commands.
1568 (frame_apply_cmd_list): New static global.
1569 (frame_cmd_list): Make static.
1570 (select_frame_cmd_list): New global for sub-commands.
1571 (info_frame_cmd_list): New global for sub-commands.
1572 (_initialize_stack): Register sub-commands for 'frame',
1573 'select-frame', and 'info frame'. Update 'frame apply' commands
1574 to use frame_apply_cmd_list. Move function local static
1575 frame_apply_list to file static frame_apply_cmd_list for
1577 * stack.h (select_frame_command): Delete declarationn.
1578 (select_frame_for_mi): Declare new function.
1580 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
1582 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
1583 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
1586 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
1588 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
1590 2018-09-26 Tom Tromey <tom@tromey.com>
1592 * valops.c (auto_abandon): Remove dead code.
1594 2018-09-26 Tom Tromey <tom@tromey.com>
1596 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
1598 2018-09-24 Tom Tromey <tom@tromey.com>
1600 * common/pathstuff.c (get_standard_cache_dir): Make
1601 "xdg_cache_home" and "home" const.
1602 * top.c (init_history): Make "tmpenv" const.
1603 * main.c (get_init_files): Make "homedir" const.
1605 2018-09-23 Tom Tromey <tom@tromey.com>
1608 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
1610 2018-09-23 Tom Tromey <tom@tromey.com>
1612 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
1613 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
1614 * python/python-internal.h (gdbpy_handle_exception): Declare.
1615 * python/py-utils.c (gdbpy_handle_exception): New function.
1617 2018-09-23 Tom Tromey <tom@tromey.com>
1620 * python/py-type.c (typy_template_argument): Check for negative
1623 2018-09-23 Tom Tromey <tom@tromey.com>
1626 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
1628 2018-09-23 Tom Tromey <tom@tromey.com>
1631 * python/py-value.c (valpy_int): Allow conversion from pointer
1634 2018-09-23 Tom Tromey <tom@tromey.com>
1637 * python/py-value.c (valpy_int): Respect type sign.
1639 2018-09-23 Tom Tromey <tom@tromey.com>
1642 * python/py-value.c (valpy_float): Allow conversions from int or
1644 (valpy_int, valpy_long): Allow conversions from float.
1646 2018-09-23 Tom Tromey <tom@tromey.com>
1648 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
1649 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
1651 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1653 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
1655 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
1657 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
1659 * windows-nat.c (windows_nat_target::wait): Remove a spurious
1660 target_terminal::ours().
1662 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
1664 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
1667 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
1669 * breakpoint.c (update_inserted_breakpoint_locations): Remove
1670 redundant condition.
1672 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1674 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
1676 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
1677 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
1678 * sol-thread.c (ps_pdmodel): Don't guard definition.
1680 * procfs.c: Fix formatting.
1682 * procfs.c (sysset_t_alloc): Remove.
1683 (create_procinfo): Use XNEW instead of sysset_t_alloc.
1684 (procfs_debug_inferior): Likewise.
1685 (procfs_set_exec_trap): Likewise.
1686 (proc_set_traced_sysentry): Don't allocate argp dynamically.
1687 (proc_set_traced_sysexit): Likewise.
1689 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
1690 (dead_procinfo): Likewise.
1691 (proc_warn): Likewise.
1692 (proc_error): Likewise.
1693 (proc_get_LDT_entry): Likewise.
1694 (do_attach): Likewise.
1695 (procfs_target::pid_to_str): Likewise.
1696 (iterate_over_mappings): Likewise.
1698 * procfs.c (create_procinfo): Fix ARI warning.
1699 (proc_get_status): Likewise.
1700 (proc_stop_process): Likewise.
1701 (proc_run_process): Likewise.
1702 (proc_kill): Likewise.
1703 (proc_get_LDT_entry): Likewise.
1704 (procfs_find_LDT_entry): Likewise.
1705 (proc_update_threads): Likewise.
1706 (proc_iterate_over_threads): Likewise.
1707 (do_attach): Likewise.
1708 (procfs_xfer_memory): Likewise.
1709 (invalidate_cache): Likewise.
1710 (procfs_target::resume): Likewise.
1711 (procfs_init_inferior): Likewise.
1712 (procfs_set_exec_trap): Likewise.
1713 (procfs_target::thread_alive): Likewise.
1714 (procfs_target::pid_to_exec_file): Likewise.
1715 (iterate_over_mappings): Likewise.
1716 (procfs_target::make_corefile_notes): Likewise.
1717 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
1719 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
1720 (procfs_find_LDT_entry): Likewise.
1721 * sol-thread.c (ps_lgetLDT): Likewise.
1723 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1726 * procfs.c (procfs_target): Declare pid_to_exec_file.
1727 (procfs_target::pid_to_exec_file): New.
1729 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1731 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
1733 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
1734 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
1736 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1738 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
1739 (supply_fpregset, fill_fpregset): Move ...
1740 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
1741 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
1742 Remove references to ioctl-based procfs.
1743 Include <sys/reg.h>.
1744 Remove PR_MODEL_NATIVE guards.
1745 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
1746 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
1748 2018-09-19 Xavier Roirand <roirand@adacore.com>
1751 * solib-darwin.c (darwin_get_dyld_bfd): New function.
1752 (darwin_solib_get_all_image_info_addr_at_init): Update call.
1753 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
1755 2018-09-19 John Baldwin <jhb@FreeBSD.org>
1757 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
1758 (fbsd_print_sockaddr_in6): Likewise.
1760 2018-09-19 Richard Bunt <richard.bunt@arm.com>
1761 Chris January <chris.january@arm.com>
1763 * eval.c (skip_undetermined_arglist): Skip argument list helper.
1764 (evaluate_subexp_standard): Return a dummy type when
1765 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
1766 OP_F77_UNDETERMINED_ARGLIST case.
1767 * expression.h (enum noside): Update comment.
1769 2018-09-19 George Vasick <george.vasick@oracle.com>
1771 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
1773 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
1774 April Chin <april.chin@oracle.com>
1775 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1777 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
1779 (create_procinfo): Print pids in /proc without leading zeros.
1781 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
1783 * nios2-tdep.c (nios2_gcc_target_options): New.
1784 (nios2_gdb_arch_init): Install new hook.
1786 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
1788 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
1790 * update-gnulib.sh: Apply patch.
1791 * configure: Re-generate.
1793 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1795 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
1796 description. Make "info proc" command descriptions more
1799 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1801 * NEWS: Mention 'info proc files' command.
1803 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1805 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
1806 descriptors for IP_FILES and IP_ALL.
1808 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1810 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
1811 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
1812 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
1813 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
1814 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
1815 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
1816 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
1817 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
1818 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
1819 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
1820 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
1821 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
1822 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
1823 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
1824 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
1825 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
1826 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
1827 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1828 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1829 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1830 (struct fbsd_sockaddr_un): New types.
1831 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1832 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1833 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1834 (fbsd_core_info_proc_files): New functions.
1835 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1837 * fbsd-tdep.h (fbsd_info_proc_files_header)
1838 (fbsd_info_proc_files_entry): New.
1840 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1842 * defs.h (enum info_proc_what) [IP_FILES]: New value.
1843 * infcmd.c (info_proc_cmd_files): New function.
1844 (_initialize_infcmd): Register 'info proc files' command.
1846 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1848 * gnulib/aclocal-m4-deps.mk: Re-generate.
1849 * gnulib/aclocal.m4: Re-generate.
1850 * gnulib/config.in: Re-generate.
1851 * gnulib/configure: Re-generate.
1852 * gnulib/import/Makefile.am: Re-generate.
1853 * gnulib/import/Makefile.in: Re-generate.
1854 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1855 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1856 * gnulib/import/arpa_inet.in.h: New file.
1857 * gnulib/import/inet_ntop.c: New file.
1858 * gnulib/import/m4/arpa_inet_h.m4: New file.
1859 * gnulib/import/m4/inet_ntop.m4: New file.
1860 * gnulib/import/m4/netinet_in_h.m4: New file.
1861 * gnulib/import/m4/socklen.m4: New file.
1862 * gnulib/import/m4/sockpfaf.m4: New file.
1863 * gnulib/import/m4/stdalign.m4: New file.
1864 * gnulib/import/m4/sys_uio_h.m4: New file.
1865 * gnulib/import/netinet_in.in.h: New file.
1866 * gnulib/import/stdalign.in.h: New file.
1867 * gnulib/import/sys_socket.c: New file.
1868 * gnulib/import/sys_socket.in.h: New file.
1869 * gnulib/import/sys_uio.in.h: New file.
1870 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1873 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1875 * gnulib/aclocal-m4-deps.mk: New file.
1876 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1879 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1881 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1884 2018-09-18 Tom Tromey <tom@tromey.com>
1886 * compile/compile-object-load.c (struct
1887 link_hash_table_cleanup_data): Add constructor and destructor.
1888 Use DISABLE_COPY_AND_ASSIGN.
1889 (~link_hash_table_cleanup_data): Rename from
1890 link_hash_table_free. Now a destructor.
1891 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1893 2018-09-18 Tom Tromey <tom@tromey.com>
1895 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1896 * compile/compile-object-load.c (struct munmap_list): Move to
1898 (munmap_list::add): Rename from munmap_list_add; rewrite.
1899 (munmap_list::~munmap_list): Rename from munmap_list_free.
1900 (munmap_listp_free_cleanup): Remove.
1901 (compile_object_load): Update.
1902 * compile/compile-object-load.h (struct munmap_list): Move from
1903 compile-object-load.c. Rewrite.
1905 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1907 * aarch64-tdep.c (pass_in_v): Use register size.
1908 (aarch64_extract_return_value): Likewise.
1909 (aarch64_store_return_value): Likewise.
1911 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1913 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1916 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1918 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1919 Fix short help line.
1921 2018-09-17 Tom Tromey <tom@tromey.com>
1924 * configure: Rebuild.
1925 * configure.ac: Conditionally use -DNDEBUG for Python.
1927 2018-09-17 Tom Tromey <tom@tromey.com>
1929 * configure: Rebuild.
1930 * configure.ac: Use gmp as a library dependency when checking for
1933 2018-09-17 Pedro Alves <palves@redhat.com>
1935 * python/py-inferior.c (find_inferior_object): Delete.
1937 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1939 * compile/compile-cplus-types.c
1940 (compile_cplus_instance::enter_scope): Don't use new_scope after
1943 2018-09-17 Tom Tromey <tom@tromey.com>
1945 * common/pathstuff.c (get_standard_cache_dir): Use
1946 ~/Library/Caches on macOS.
1947 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1949 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1952 * breakpoint.c (commands_cmd_element): New.
1953 (_initialize_breakpoint): Assign commands_cmd_element.
1954 * breakpoint.h (commands_cmd_element): New.
1955 * cli/cli-script.c (while_cmd_element, if_command,
1956 define_cmd_element): New.
1957 (command_name_equals): Remove.
1958 (process_next_line): Compare commands by pointer, not by name.
1959 (_initialize_cli_script): Assign the various cmd_list_element
1961 * compile/compile.c (compile_cmd_element): New.
1962 (_initialize_compile): Assign compile_cmd_element.
1963 * compile/compile.h (compile_cmd_element): New.
1964 * guile/guile.c (guile_cmd_element): New.
1965 (install_gdb_commands): Assign guile_cmd_element.
1966 * guile/guile.h (guile_cmd_element): New.
1967 * python/python.c (python_cmd_element): New.
1968 (_initialize_python): Assign python_cmd_element.
1969 * python/python.h (python_cmd_element): New.
1970 * tracepoint.c (while_stepping_cmd_element): New.
1971 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1972 * tracepoint.h (while_stepping_cmd_element): New.
1974 2018-09-17 Tom Tromey <tom@tromey.com>
1976 * infrun.c (save_infcall_suspend_state): Return
1977 infcall_suspend_state_up.
1978 (save_infcall_control_state): Return infcall_control_state_up.
1979 * inferior.h (save_infcall_suspend_state)
1980 (save_infcall_control_state): Declare later. Return unique
1983 2018-09-17 Tom Tromey <tom@tromey.com>
1985 * infrun.c (struct stop_context): Declare constructor,
1986 destructor, "changed" method.
1987 (stop_context::stop_context): Rename from save_stop_context.
1988 (stop_context::~stop_context): Rename from
1989 release_stop_context_cleanup.
1990 (normal_stop): Update.
1991 (stop_context::changed): Rename from stop_context_changed. Return
1994 2018-09-17 Tom Tromey <tom@tromey.com>
1996 * inferior.h (struct infcall_suspend_state_deleter): New.
1997 (infcall_suspend_state_up): New typedef.
1998 (struct infcall_control_state_deleter): New.
1999 (infcall_control_state_up): New typedef.
2000 (make_cleanup_restore_infcall_suspend_state)
2001 (make_cleanup_restore_infcall_control_state): Don't declare.
2002 * infcall.c (call_function_by_hand_dummy): Update.
2003 * infrun.c (do_restore_infcall_suspend_state_cleanup)
2004 (make_cleanup_restore_infcall_suspend_state): Remove.
2005 (do_restore_infcall_control_state_cleanup)
2006 (make_cleanup_restore_infcall_control_state): Remove.
2008 2018-09-17 Tom Tromey <tom@tromey.com>
2010 * gdbthread.h (struct thread_control_state): Add initializer.
2011 (class thread_info) <control>: Remove initializer.
2012 * inferior.h (struct inferior_control_state): Add initializer.
2013 (class inferior) <control>: Remove initializer.
2014 (exit_inferior_1): Update.
2015 * infrun.c (struct infcall_control_state): Add constructors.
2016 (save_infcall_control_state): Use new.
2017 (restore_infcall_control_state, discard_infcall_control_state):
2020 2018-09-17 Tom Tromey <tom@tromey.com>
2022 * infrun.c (struct infcall_suspend_state) <registers>: Now a
2024 <siginfo_data>: Now a unique_xmalloc_ptr.
2025 (save_infcall_suspend_state, restore_infcall_suspend_state)
2026 (discard_infcall_suspend_state)
2027 (get_infcall_suspend_state_regcache): Update.
2029 2018-09-17 Tom Tromey <tom@tromey.com>
2031 * gdbthread.h (struct thread_suspend_state): Add initializers.
2032 (class thread_info) <suspend>: Remove initializer.
2033 * infrun.c (struct infcall_suspend_state): Add initializers.
2034 (save_infcall_suspend_state): Use new.
2035 (discard_infcall_suspend_state): Use delete.
2037 2018-09-16 Tom Tromey <tom@tromey.com>
2039 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2041 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
2042 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2043 (py_varobj_iter_new): Likewise.
2044 (py_varobj_get_iterator): Use gdbpy_ref.
2046 2018-09-16 Tom Tromey <tom@tromey.com>
2048 * python/py-threadevent.c (py_get_event_thread): Simplify.
2049 * python/py-inferior.c (infpy_thread_from_thread_handle):
2050 Return immediately after calling thread_to_thread_object. Use
2052 (thread_to_thread_object): Set the exception on a NULL return.
2054 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2056 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
2058 2018-09-16 Tom Tromey <tom@tromey.com>
2060 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2063 2018-09-16 Tom Tromey <tom@tromey.com>
2065 * python/python-internal.h (thread_to_thread_object): Change
2067 * python/py-inferior.c (thread_to_thread_object): Return a new
2069 (infpy_thread_from_thread_handle): Update.
2070 * python/py-infthread.c (gdbpy_selected_thread): Update.
2071 * python/py-stopevent.c (create_stop_event_object): Update.
2072 * python/py-threadevent.c (py_get_event_thread): Return a new
2074 (py_get_event_thread): Update.
2075 * python/py-event.h (py_get_event_thread): Change return type.
2076 * python/py-continueevent.c (create_continue_event_object):
2079 2018-09-16 Tom Tromey <tom@tromey.com>
2081 * python/py-progspace.c (pspy_get_objfiles): Update.
2082 * python/python-internal.h (objfile_to_objfile_object): Change
2084 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2086 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2088 * python/python.c (gdbpy_get_current_objfile): Update.
2089 (gdbpy_objfiles): Update.
2090 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
2092 (objfile_to_objfile_object): Return a new reference.
2093 * python/py-symtab.c (stpy_get_objfile): Update.
2094 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2097 2018-09-16 Tom Tromey <tom@tromey.com>
2099 * python/py-inferior.c (infpy_get_progspace): Update.
2100 * python/python-internal.h (pspace_to_pspace_object): Change
2102 * python/py-newobjfileevent.c
2103 (create_clear_objfiles_event_object): Update.
2104 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2106 * python/python.c (gdbpy_get_current_progspace): Update.
2107 (gdbpy_progspaces): Update.
2108 * python/py-progspace.c (pspace_to_pspace_object): Return a new
2110 * python/py-objfile.c (objfpy_get_progspace): Update.
2111 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
2114 2018-09-16 Tom Tromey <tom@tromey.com>
2116 * python/lib/gdb/__init__.py (current_progspace, objfiles)
2117 (solib_name, block_for_pc, find_pc_line): New functions.
2118 (execute_unwinders): Update.
2119 * python/py-block.c (gdbpy_block_for_pc): Remove.
2120 * python/py-inferior.c (infpy_get_progspace): New function.
2121 (inferior_object_getset) <progspace>: Add.
2122 * python/py-progspace.c (pspy_objfiles): Rewrite.
2123 (pspy_solib_name, pspy_block_for_pc)
2124 (pspy_find_pc_line, pspy_is_valid): New functions.
2125 (progspace_object_methods): Add entries for solib_name,
2126 block_for_pc, find_pc_line, is_valid.
2127 * python/python-internal.h (gdbpy_block_for_pc)
2128 (build_objfiles_list): Don't declare.
2129 * python/python.c: Don't include solib.h.
2130 (gdbpy_solib_name, gdbpy_find_pc_line)
2131 (gdbpy_get_current_progspace, build_objfiles_list)
2132 (gdbpy_objfiles): Remove.
2133 (GdbMethods) <current_progspace, objfiles, block_for_pc,
2134 solib_name, find_pc_line>: Remove entries.
2136 2018-09-16 Tom Tromey <tom@tromey.com>
2138 * top.c (new_ui_command): Use GNU style for metasyntactic
2140 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
2142 * maint.c (maintenance_translate_address): Remove "<>" around
2144 * interps.c (interpreter_exec_cmd): Use GNU style for
2145 metasyntactic variables.
2146 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
2147 metasyntactic variables.
2148 * tracepoint.c (tfind_range_command): Use GNU style for
2149 metasyntactic variables.
2150 (tfind_outside_command): Likewise.
2151 (_initialize_tracepoint): Likewise.
2152 * remote.c (extended_remote_target::create_inferior): Use GNU
2153 style for metasyntactic variables.
2154 * sparc64-tdep.c (adi_examine_command): Use GNU style for
2155 metasyntactic variables.
2156 (adi_assign_command): Likewise.
2158 2018-09-16 Tom Tromey <tom@tromey.com>
2160 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
2161 metasyntactic variables. Print message if no disassembler options
2164 2018-09-15 Tom Tromey <tom@tromey.com>
2166 * infcmd.c (get_inferior_args): Return const char *.
2167 * inferior.h (get_inferior_args): Return type now const.
2168 * linux-tdep.c (linux_fill_prpsinfo): Update.
2169 * procfs.c (procfs_target::make_corefile_notes): Update.
2171 2018-09-07 Tom Tromey <tom@tromey.com>
2173 * python/python.c (execute_gdb_command): Call bpstat_do_actions
2176 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
2178 * nios2-tdep.c (nios2_type_align): New.
2179 (nios2_gdb_arch_init): Install type_align hook.
2181 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2183 * eval.c (fake_method::fake_method): Call xzalloc directly for a
2184 type that is neither object file owned, nor gdbarch owned.
2185 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
2186 gdbarch is non-NULL.
2187 (alloc_type_instance): Allocate non-objfile owned types on the
2189 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
2190 using TYPE_ALLOC to ensure memory is allocated on the correct
2192 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
2193 obstack, or the gdbarch obstack.
2194 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
2196 2018-09-14 Tom Tromey <tom@tromey.com>
2198 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2201 2018-09-14 Tom Tromey <tom@tromey.com>
2203 * nat/fork-inferior.c (get_startup_shell): Remove "static".
2205 2018-09-13 Tom Tromey <tom@tromey.com>
2207 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2210 2018-09-13 Tom Tromey <tom@tromey.com>
2212 * exec.c (try_open_exec_file): Use std::string.
2214 2018-09-13 Tom Tromey <tom@tromey.com>
2216 * utils.h (gdb_bfd_errmsg): Return std::string.
2217 * exec.c (exec_file_attach): Update.
2218 * compile/compile-object-load.c (compile_object_load): Update.
2219 * utils.c (gdb_bfd_errmsg): Return std::string.
2221 2018-09-13 Tom Tromey <tom@tromey.com>
2223 * procfs.c (struct procinfo_deleter): New.
2224 (procinfo_up): New typedef.
2225 (do_destroy_procinfo_cleanup): Remove.
2226 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
2228 2018-09-13 Tom Tromey <tom@tromey.com>
2230 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2232 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2233 2018-09-13 Tom Tromey <tom@tromey.com>
2235 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2236 (pspy_get_objfiles): New function.
2237 (progspace_object_methods): New.
2238 (pspace_object_type): Add tp_methods callback.
2239 * python/python-internal.h (build_objfiles_list): New
2241 * python/python.c (build_objfiles_list): New function.
2242 (gdbpy_objfiles): Implement using build_objfiles_list.
2243 * NEWS: Mention the Progspace.objfiles method.
2245 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2247 * python/py-inferior.c (infpy_get_progspace): New function.
2248 (inferior_object_getset): Add progspace property.
2249 * NEWS: Mention the new property.
2251 2018-09-13 Tom Tromey <tom@tromey.com>
2254 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
2256 2018-09-13 Tom Tromey <tom@tromey.com>
2259 * rust-lang.c (rust_enum_variant): Now static.
2260 (rust_empty_enum_p): New function.
2261 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
2264 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2266 * python/py-inferior.c (infpy_repr): New.
2267 (inferior_object_type): Register infpy_repr.
2268 * python/py-objfile.c (objfpy_repr): New.
2269 (objfile_object_type): Register objfpy_repr.
2271 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2273 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
2275 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2277 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
2280 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
2282 * common/common-utils.c: Don't include '<sys/stat.h>'.
2283 (is_regular_file): Move to...
2284 * common/filestuff.c (is_regular_file): ... here.
2285 * common/common-utils.h (is_regular_file): Move to...
2286 * common/filestuff.h (is_regular_file): ... here.
2288 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
2290 * skip.c (debug_skip): New variable.
2291 (skiplist_entry::do_skip_file_p): Add debug output.
2292 (skiplist_entry::do_skip_gfile_p): Likewise.
2293 (skiplist_entry::skip_function_p): Likewise.
2294 (_initialize_step_skip): Create debug command.
2295 * NEWS: Mention set/show debug skip.
2297 2018-09-11 Xavier Roirand <roirand@adacore.com>
2299 * darwin-nat.c (should_disable_startup_with_shell):
2301 (darwin_nat_target::create_inferior): Add call.
2303 2018-09-11 Xavier Roirand <roirand@adacore.com>
2305 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
2306 inf_port, msg_state>: Initialize.
2307 (struct darwin_thread_info) <signaled, single_step>: Change
2308 type and initialize.
2309 (struct darwin_thread_info) <event>: Initialize.
2311 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2315 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
2318 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2321 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2325 * gnulib/aclocal.m4: Regenerate.
2326 * gnulib/config.in: Regenerate.
2327 * gnulib/configure: Regenerate.
2328 * gnulib/import/Makefile.am: Update.
2329 * gnulib/import/Makefile.in: Update.
2330 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2331 * gnulib/import/_Noreturn.h: ... this.
2332 * gnulib/import/alloca.in.h: Update.
2333 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2334 * gnulib/import/arg-nonnull.h: ... this.
2335 * gnulib/import/assure.h: Update.
2336 * gnulib/import/at-func.c: Update.
2337 * gnulib/import/basename-lgpl.c: Update.
2338 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2339 * gnulib/import/c++defs.h: ... this.
2340 * gnulib/import/canonicalize-lgpl.c: Update.
2341 * gnulib/import/cdefs.h: Update.
2342 * gnulib/import/chdir-long.c: Update.
2343 * gnulib/import/chdir-long.h: Update.
2344 * gnulib/import/cloexec.c: Update.
2345 * gnulib/import/cloexec.h: Update.
2346 * gnulib/import/close.c: Update.
2347 * gnulib/import/closedir.c: Update.
2348 * gnulib/import/config.charset: Update.
2349 * gnulib/import/dirent-private.h: Update.
2350 * gnulib/import/dirent.in.h: Update.
2351 * gnulib/import/dirfd.c: Update.
2352 * gnulib/import/dirname-lgpl.c: Update.
2353 * gnulib/import/dirname.h: Update.
2354 * gnulib/import/dosname.h: Update.
2355 * gnulib/import/dup-safer-flag.c: Update.
2356 * gnulib/import/dup-safer.c: Update.
2357 * gnulib/import/dup.c: Update.
2358 * gnulib/import/dup2.c: Update.
2359 * gnulib/import/errno.in.h: Update.
2360 * gnulib/import/error.c: Update.
2361 * gnulib/import/error.h: Update.
2362 * gnulib/import/exitfail.c: Update.
2363 * gnulib/import/exitfail.h: Update.
2364 * gnulib/import/extra/update-copyright: Update.
2365 * gnulib/import/fchdir.c: Update.
2366 * gnulib/import/fcntl.c: Update.
2367 * gnulib/import/fcntl.in.h: Update.
2368 * gnulib/import/fd-hook.c: Update.
2369 * gnulib/import/fd-hook.h: Update.
2370 * gnulib/import/fd-safer-flag.c: Update.
2371 * gnulib/import/fd-safer.c: Update.
2372 * gnulib/import/fdopendir.c: Update.
2373 * gnulib/import/filename.h: Update.
2374 * gnulib/import/filenamecat-lgpl.c: Update.
2375 * gnulib/import/filenamecat.h: Update.
2376 * gnulib/import/flexmember.h: Update.
2377 * gnulib/import/float+.h: Update.
2378 * gnulib/import/float.c: Update.
2379 * gnulib/import/float.in.h: Update.
2380 * gnulib/import/fnmatch.c: Update.
2381 * gnulib/import/fnmatch.in.h: Update.
2382 * gnulib/import/fnmatch_loop.c: Update.
2383 * gnulib/import/fpucw.h: Update.
2384 * gnulib/import/frexp.c: Update.
2385 * gnulib/import/frexpl.c: Update.
2386 * gnulib/import/fstat.c: Update.
2387 * gnulib/import/fstatat.c: Update.
2388 * gnulib/import/getcwd-lgpl.c: Update.
2389 * gnulib/import/getcwd.c: Update.
2390 * gnulib/import/getdtablesize.c: Update.
2391 * gnulib/import/getlogin_r.c: Update.
2392 * gnulib/import/getprogname.c: Update.
2393 * gnulib/import/getprogname.h: Update.
2394 * gnulib/import/gettext.h: Update.
2395 * gnulib/import/gettimeofday.c: Update.
2396 * gnulib/import/glob-libc.h: Update.
2397 * gnulib/import/glob.c: Update.
2398 * gnulib/import/glob.in.h: Update.
2399 * gnulib/import/glob_internal.h: Update.
2400 * gnulib/import/glob_pattern_p.c: Update.
2401 * gnulib/import/globfree.c: Update.
2402 * gnulib/import/hard-locale.c: Update.
2403 * gnulib/import/hard-locale.h: Update.
2404 * gnulib/import/intprops.h: Update.
2405 * gnulib/import/inttypes.in.h: Update.
2406 * gnulib/import/isnan.c: Update.
2407 * gnulib/import/isnand-nolibm.h: Update.
2408 * gnulib/import/isnand.c: Update.
2409 * gnulib/import/isnanl-nolibm.h: Update.
2410 * gnulib/import/isnanl.c: Update.
2411 * gnulib/import/itold.c: Update.
2412 * gnulib/import/libc-config.h: Update.
2413 * gnulib/import/limits.in.h: Update.
2414 * gnulib/import/localcharset.c: Update.
2415 * gnulib/import/localcharset.h: Update.
2416 * gnulib/import/localtime-buffer.c: Update.
2417 * gnulib/import/localtime-buffer.h: Update.
2418 * gnulib/import/lstat.c: Update.
2419 * gnulib/import/m4/00gnulib.m4: Update.
2420 * gnulib/import/m4/__inline.m4: Update.
2421 * gnulib/import/m4/absolute-header.m4: Update.
2422 * gnulib/import/m4/alloca.m4: Update.
2423 * gnulib/import/m4/builtin-expect.m4: Update.
2424 * gnulib/import/m4/canonicalize.m4: Update.
2425 * gnulib/import/m4/chdir-long.m4: Update.
2426 * gnulib/import/m4/close.m4: Update.
2427 * gnulib/import/m4/closedir.m4: Update.
2428 * gnulib/import/m4/configmake.m4: Update.
2429 * gnulib/import/m4/d-ino.m4: Update.
2430 * gnulib/import/m4/d-type.m4: Update.
2431 * gnulib/import/m4/dirent_h.m4: Update.
2432 * gnulib/import/m4/dirfd.m4: Update.
2433 * gnulib/import/m4/dirname.m4: Update.
2434 * gnulib/import/m4/double-slash-root.m4: Update.
2435 * gnulib/import/m4/dup.m4: Update.
2436 * gnulib/import/m4/dup2.m4: Update.
2437 * gnulib/import/m4/eealloc.m4: Update.
2438 * gnulib/import/m4/environ.m4: Update.
2439 * gnulib/import/m4/errno_h.m4: Update.
2440 * gnulib/import/m4/error.m4: Update.
2441 * gnulib/import/m4/exponentd.m4: Update.
2442 * gnulib/import/m4/exponentl.m4: Update.
2443 * gnulib/import/m4/extensions.m4: Update.
2444 * gnulib/import/m4/extern-inline.m4: Update.
2445 * gnulib/import/m4/fchdir.m4: Update.
2446 * gnulib/import/m4/fcntl-o.m4: Update.
2447 * gnulib/import/m4/fcntl.m4: Update.
2448 * gnulib/import/m4/fcntl_h.m4: Update.
2449 * gnulib/import/m4/fdopendir.m4: Update.
2450 * gnulib/import/m4/filenamecat.m4: Update.
2451 * gnulib/import/m4/flexmember.m4: Update.
2452 * gnulib/import/m4/float_h.m4: Update.
2453 * gnulib/import/m4/fnmatch.m4: Update.
2454 * gnulib/import/m4/fnmatch_h.m4: Update.
2455 * gnulib/import/m4/fpieee.m4: Update.
2456 * gnulib/import/m4/frexp.m4: Update.
2457 * gnulib/import/m4/frexpl.m4: Update.
2458 * gnulib/import/m4/fstat.m4: Update.
2459 * gnulib/import/m4/fstatat.m4: Update.
2460 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2461 * gnulib/import/m4/getcwd-path-max.m4: Update.
2462 * gnulib/import/m4/getcwd.m4: Update.
2463 * gnulib/import/m4/getdtablesize.m4: Update.
2464 * gnulib/import/m4/getlogin.m4: Update.
2465 * gnulib/import/m4/getlogin_r.m4: Update.
2466 * gnulib/import/m4/getpagesize.m4: Update.
2467 * gnulib/import/m4/getprogname.m4: Update.
2468 * gnulib/import/m4/gettimeofday.m4: Update.
2469 * gnulib/import/m4/glibc21.m4: Update.
2470 * gnulib/import/m4/glob.m4: Update.
2471 * gnulib/import/m4/glob_h.m4: Update.
2472 * gnulib/import/m4/gnulib-cache.m4: Update.
2473 * gnulib/import/m4/gnulib-common.m4: Update.
2474 * gnulib/import/m4/gnulib-comp.m4: Update.
2475 * gnulib/import/m4/gnulib-tool.m4: Update.
2476 * gnulib/import/m4/hard-locale.m4: Update.
2477 * gnulib/import/m4/include_next.m4: Update.
2478 * gnulib/import/m4/inttypes-pri.m4: Update.
2479 * gnulib/import/m4/inttypes.m4: Update.
2480 * gnulib/import/m4/isnand.m4: Update.
2481 * gnulib/import/m4/isnanl.m4: Update.
2482 * gnulib/import/m4/largefile.m4: Update.
2483 * gnulib/import/m4/limits-h.m4: Update.
2484 * gnulib/import/m4/localcharset.m4: Update.
2485 * gnulib/import/m4/locale-fr.m4: Update.
2486 * gnulib/import/m4/locale-ja.m4: Update.
2487 * gnulib/import/m4/locale-zh.m4: Update.
2488 * gnulib/import/m4/localtime-buffer.m4: Update.
2489 * gnulib/import/m4/longlong.m4: Update.
2490 * gnulib/import/m4/lstat.m4: Update.
2491 * gnulib/import/m4/malloc.m4: Update.
2492 * gnulib/import/m4/malloca.m4: Update.
2493 * gnulib/import/m4/math_h.m4: Update.
2494 * gnulib/import/m4/mbrtowc.m4: Update.
2495 * gnulib/import/m4/mbsinit.m4: Update.
2496 * gnulib/import/m4/mbsrtowcs.m4: Update.
2497 * gnulib/import/m4/mbstate_t.m4: Update.
2498 * gnulib/import/m4/memchr.m4: Update.
2499 * gnulib/import/m4/memmem.m4: Update.
2500 * gnulib/import/m4/mempcpy.m4: Update.
2501 * gnulib/import/m4/memrchr.m4: Update.
2502 * gnulib/import/m4/mkdir.m4: Update.
2503 * gnulib/import/m4/mkstemp.m4: Update.
2504 * gnulib/import/m4/mmap-anon.m4: Update.
2505 * gnulib/import/m4/mode_t.m4: Update.
2506 * gnulib/import/m4/msvc-inval.m4: Update.
2507 * gnulib/import/m4/msvc-nothrow.m4: Update.
2508 * gnulib/import/m4/multiarch.m4: Update.
2509 * gnulib/import/m4/nocrash.m4: Update.
2510 * gnulib/import/m4/off_t.m4: Update.
2511 * gnulib/import/m4/onceonly.m4: Update.
2512 * gnulib/import/m4/open-cloexec.m4: Update.
2513 * gnulib/import/m4/open.m4: Update.
2514 * gnulib/import/m4/openat.m4: Update.
2515 * gnulib/import/m4/opendir.m4: Update.
2516 * gnulib/import/m4/pathmax.m4: Update.
2517 * gnulib/import/m4/rawmemchr.m4: Update.
2518 * gnulib/import/m4/readdir.m4: Update.
2519 * gnulib/import/m4/readlink.m4: Update.
2520 * gnulib/import/m4/realloc.m4: Update.
2521 * gnulib/import/m4/rename.m4: Update.
2522 * gnulib/import/m4/rewinddir.m4: Update.
2523 * gnulib/import/m4/rmdir.m4: Update.
2524 * gnulib/import/m4/save-cwd.m4: Update.
2525 * gnulib/import/m4/secure_getenv.m4: Update.
2526 * gnulib/import/m4/setenv.m4: Update.
2527 * gnulib/import/m4/signal_h.m4: Update.
2528 * gnulib/import/m4/ssize_t.m4: Update.
2529 * gnulib/import/m4/stat-time.m4: Update.
2530 * gnulib/import/m4/stat.m4: Update.
2531 * gnulib/import/m4/std-gnu11.m4: Update.
2532 * gnulib/import/m4/stdbool.m4: Update.
2533 * gnulib/import/m4/stddef_h.m4: Update.
2534 * gnulib/import/m4/stdint.m4: Update.
2535 * gnulib/import/m4/stdio_h.m4: Update.
2536 * gnulib/import/m4/stdlib_h.m4: Update.
2537 * gnulib/import/m4/strchrnul.m4: Update.
2538 * gnulib/import/m4/strdup.m4: Update.
2539 * gnulib/import/m4/strerror.m4: Update.
2540 * gnulib/import/m4/string_h.m4: Update.
2541 * gnulib/import/m4/strstr.m4: Update.
2542 * gnulib/import/m4/strtok_r.m4: Update.
2543 * gnulib/import/m4/sys_socket_h.m4: Update.
2544 * gnulib/import/m4/sys_stat_h.m4: Update.
2545 * gnulib/import/m4/sys_time_h.m4: Update.
2546 * gnulib/import/m4/sys_types_h.m4: Update.
2547 * gnulib/import/m4/tempname.m4: Update.
2548 * gnulib/import/m4/time_h.m4: Update.
2549 * gnulib/import/m4/unistd-safer.m4: Update.
2550 * gnulib/import/m4/unistd_h.m4: Update.
2551 * gnulib/import/m4/warn-on-use.m4: Update.
2552 * gnulib/import/m4/wchar_h.m4: Update.
2553 * gnulib/import/m4/wchar_t.m4: Update.
2554 * gnulib/import/m4/wctype_h.m4: Update.
2555 * gnulib/import/m4/wint_t.m4: Update.
2556 * gnulib/import/malloc.c: Update.
2557 * gnulib/import/malloc/scratch_buffer.h: Update.
2558 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2559 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2560 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2561 * gnulib/import/malloca.c: Update.
2562 * gnulib/import/malloca.h: Update.
2563 * gnulib/import/malloca.valgrind: Update.
2564 * gnulib/import/math.in.h: Update.
2565 * gnulib/import/mbrtowc.c: Update.
2566 * gnulib/import/mbsinit.c: Update.
2567 * gnulib/import/mbsrtowcs-impl.h: Update.
2568 * gnulib/import/mbsrtowcs-state.c: Update.
2569 * gnulib/import/mbsrtowcs.c: Update.
2570 * gnulib/import/memchr.c: Update.
2571 * gnulib/import/memmem.c: Update.
2572 * gnulib/import/mempcpy.c: Update.
2573 * gnulib/import/memrchr.c: Update.
2574 * gnulib/import/mkdir.c: Update.
2575 * gnulib/import/mkstemp.c: Update.
2576 * gnulib/import/msvc-inval.c: Update.
2577 * gnulib/import/msvc-inval.h: Update.
2578 * gnulib/import/msvc-nothrow.c: Update.
2579 * gnulib/import/msvc-nothrow.h: Update.
2580 * gnulib/import/open.c: Update.
2581 * gnulib/import/openat-die.c: Update.
2582 * gnulib/import/openat-priv.h: Update.
2583 * gnulib/import/openat-proc.c: Update.
2584 * gnulib/import/openat.c: Update.
2585 * gnulib/import/openat.h: Update.
2586 * gnulib/import/opendir.c: Update.
2587 * gnulib/import/pathmax.h: Update.
2588 * gnulib/import/pipe-safer.c: Update.
2589 * gnulib/import/rawmemchr.c: Update.
2590 * gnulib/import/readdir.c: Update.
2591 * gnulib/import/readlink.c: Update.
2592 * gnulib/import/realloc.c: Update.
2593 * gnulib/import/ref-add.sin: Update.
2594 * gnulib/import/ref-del.sin: Update.
2595 * gnulib/import/rename.c: Update.
2596 * gnulib/import/rewinddir.c: Update.
2597 * gnulib/import/rmdir.c: Update.
2598 * gnulib/import/same-inode.h: Update.
2599 * gnulib/import/save-cwd.c: Update.
2600 * gnulib/import/save-cwd.h: Update.
2601 * gnulib/import/scratch_buffer.h: Update.
2602 * gnulib/import/secure_getenv.c: Update.
2603 * gnulib/import/setenv.c: Update.
2604 * gnulib/import/signal.in.h: Update.
2605 * gnulib/import/stat-time.c: Update.
2606 * gnulib/import/stat-time.h: Update.
2607 * gnulib/import/stat-w32.c: Update.
2608 * gnulib/import/stat-w32.h: Update.
2609 * gnulib/import/stat.c: Update.
2610 * gnulib/import/stdbool.in.h: Update.
2611 * gnulib/import/stddef.in.h: Update.
2612 * gnulib/import/stdint.in.h: Update.
2613 * gnulib/import/stdio.in.h: Update.
2614 * gnulib/import/stdlib.in.h: Update.
2615 * gnulib/import/str-two-way.h: Update.
2616 * gnulib/import/strchrnul.c: Update.
2617 * gnulib/import/strdup.c: Update.
2618 * gnulib/import/streq.h: Update.
2619 * gnulib/import/strerror-override.c: Update.
2620 * gnulib/import/strerror-override.h: Update.
2621 * gnulib/import/strerror.c: Update.
2622 * gnulib/import/string.in.h: Update.
2623 * gnulib/import/stripslash.c: Update.
2624 * gnulib/import/strnlen1.c: Update.
2625 * gnulib/import/strnlen1.h: Update.
2626 * gnulib/import/strstr.c: Update.
2627 * gnulib/import/strtok_r.c: Update.
2628 * gnulib/import/sys_stat.in.h: Update.
2629 * gnulib/import/sys_time.in.h: Update.
2630 * gnulib/import/sys_types.in.h: Update.
2631 * gnulib/import/tempname.c: Update.
2632 * gnulib/import/tempname.h: Update.
2633 * gnulib/import/time.in.h: Update.
2634 * gnulib/import/unistd--.h: Update.
2635 * gnulib/import/unistd-safer.h: Update.
2636 * gnulib/import/unistd.in.h: Update.
2637 * gnulib/import/unsetenv.c: Update.
2638 * gnulib/import/verify.h: Update.
2639 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2640 * gnulib/import/wchar.in.h: Update.
2641 * gnulib/import/wctype.in.h: Update.
2642 * gnulib/import/xalloc-oversized.h: Update.
2643 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2644 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2646 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
2648 * record-btrace.c (get_thread_current_frame): Remove
2651 2018-09-10 Jerome Guitton <guitton@adacore.com>
2653 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
2654 with check_tag to 1 if and only if the type is tagged and the
2655 component being searched cannot been found in the current
2656 view. Otherwise, always call ada_to_fixed_type with
2659 2018-09-10 Xavier Roirand <roirand@adacore.com>
2661 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
2663 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
2664 * ada-varobj.c (ada_varobj_get_number_of_children,
2665 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
2667 2018-09-10 Xavier Roirand <roirand@adacore.com>
2669 * ada-valprint.c (ada_value_print): Use type instead of
2672 2018-09-10 Xavier Roirand <roirand@adacore.com>
2674 * ada-lang.c (ada_value_subscript): Handle case when parameter is
2675 an array of access to unconstrained array.
2677 2018-09-10 Xavier Roirand <roirand@adacore.com>
2679 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
2680 (ada_check_typedef): Use it.
2682 2018-09-10 Xavier Roirand <roirand@adacore.com>
2684 * ada-varobj.c (ada_varobj_describe_struct_child)
2685 (ada_varobj_describe_child): Handle union case like struct one.
2687 2018-09-10 Tom Tromey <tom@tromey.com>
2690 * python/python.c (_initialize_python): Make example in "python"
2691 help work in Python 3.
2693 2018-09-10 Eli Zaretskii <eliz@gnu.org>
2695 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
2696 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
2697 $(EXEEXT) to the script, as it is not a program.
2699 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
2701 * python/py-prettyprint.c (pretty_print_one_value): Return
2703 (print_string_repr): Adjust.
2704 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
2705 * python/python-internal.h (apply_varobj_pretty_printer): Return
2707 * varobj.c (varobj_value_get_print_value): Adjust.
2709 2018-09-08 Tom Tromey <tom@tromey.com>
2712 * python/py-prettyprint.c (pretty_print_one_value): Check for
2715 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2717 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
2718 replace_operator_with_call.
2720 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2722 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
2724 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2726 * ada-typeprint.c (print_range): Print the bounds using TYPE
2727 rather than its TYPE_TARGET_TYPE.
2729 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2731 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
2732 call to ada_to_fixed_value_create.
2734 2018-09-08 Jerome Guitton <guitton@adacore.com>
2736 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
2738 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2740 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
2743 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2745 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
2746 Move update of loop variable "fi".
2748 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2750 * ada-lang.c (value_assign_to_component): In the case of
2751 big-endian targets, extract the bits of the given VAL
2752 using an src_offset of zero if container is not a scalar.
2754 2018-09-06 Simon Ser <contact@emersion.fr>
2757 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
2758 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2759 * fbsd-tdep.c (fbsd_make_note_desc): New.
2760 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
2761 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
2762 * target.h (enum target_object) Add FreeBSD-specific
2763 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2765 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2767 * compile/compile-c.h (generate_c_for_variable_locations):
2768 Change reference to pointer.
2769 * compile/compile-c-support.c (compile_program) <compute>:
2771 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
2772 (generate_c_for_for_one_variable): Likewise
2773 (generate_c_for_variable_locations): Likewise
2774 * compile/compile-c-types.c (compile_c_instance::convert_type):
2776 * compile/compile-cplus-symbols.c (convert_one_symbol):
2777 std::move the scope passed to enter_scope.
2778 * compile/compile-cplus-types.c
2779 (compile_cplus_instance::enter_scope): Make parameter
2781 (compile_cplus_instance::new_scope): Change reference to
2783 (compile_cplus_instance::convert_type): Likewise
2784 (compile_cplus_convert_typedef): std::move the scope passed to
2786 (compile_cplus_convert_struct_or_union): Likewise.
2787 (compile_cplus_convert_enum): Likewise.
2788 (compile_cplus_convert_namespace): Likewise.
2789 * compile/compile-cplus.h (compile_cplus_instance)
2790 <enter_scope>: Make parameter rvalue-reference.
2791 * compile/compile-internal.h (compile_instance)
2792 <get_cached_type>: Likewise
2793 * compile/compile-loc2c.c (push): Likewise
2797 (print_label): Likewise
2798 (pushf_register_address): Likewise
2799 (pushf_register): Likewise
2800 (do_compile_dwarf_expr_to_c): Likewise
2801 (compile_dwarf_expr_to_c): Likewise
2802 (compile_dwarf_bounds_to_c): Likewise
2803 * compile/compile.c (compile_instance::get_cached_type):
2805 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
2806 (compile_dwarf_bounds_to_c): Likewise
2807 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
2808 (dwarf2_compile_property_to_c): Likewise
2809 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
2810 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2813 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2815 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
2816 * tui/tui-data.c (init_content_element): Don't initialize it.
2818 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2820 * tui/tui-data.h (struct tui_win_info)
2821 <detail::opaque>: Remove.
2822 * tui/tui-data.c (init_win_info): Remove assignment.
2824 2018-09-05 Tom Tromey <tom@tromey.com>
2826 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
2827 -Wformat-nonliteral.
2828 * target-float.c (host_float_ops<T>::to_string)
2829 (host_float_ops<T>::from_string): Use
2830 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2831 * configure: Rebuild.
2833 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
2835 * printcmd.c (printf_c_string): Use
2836 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2837 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2839 2018-09-05 Tom Tromey <tom@tromey.com>
2841 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2843 2018-09-05 Tom de Vries <tdevries@suse.de>
2845 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2846 with resolve_abstract_p == true.
2847 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2848 defaulting to false. Propagate resolve_abstract_p to
2849 dwarf2_fetch_die_loc_sect_off.
2850 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2851 parameter, defaulting to false.
2852 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2853 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2855 * dwarf2read.h (struct die_info): Forward-declare.
2856 (die_info_ptr): New typedef.
2857 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2859 2018-09-05 Joel Brobecker <brobecker@adacore.com>
2863 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2864 Pedro Alves <palves@redhat.com>
2866 * gnulib/Makefile.in (aclocal_m4_deps): Move to
2867 "aclocal-m4-deps.mk". Include file here.
2868 $(srcdir)/aclocal.m4: Add "configure.ac".
2869 * gnulib/aclocal-m4-deps.mk: New file.
2870 * gnulib/update-gnulib.sh: Automatically update
2871 "aclocal-m4-deps.mk".
2873 2018-09-04 Tom Tromey <tom@tromey.com>
2875 * configure: Rebuild.
2876 * configure.ac: Remove multi-ice code.
2878 2018-09-04 Tom Tromey <tom@tromey.com>
2880 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2881 (ada-exp.o): Update.
2883 2018-09-04 Tom Tromey <tom@tromey.com>
2885 * Makefile.in (printcmd.o, target-float.o): Remove.
2886 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2888 2018-09-04 Tom Tromey <tom@tromey.com>
2890 * gnulib/Makefile.in: Remove obsolete comment.
2891 * Makefile.in: Remove obsolete comment.
2893 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2895 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2898 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2900 * riscv-tdep.c: Add 'prologue-value.h' include.
2901 (struct riscv_unwind_cache): New struct.
2902 (riscv_debug_unwinder): New global.
2903 (riscv_scan_prologue): Update arguments, capture register details
2905 (riscv_skip_prologue): Reformat arguments line, move end of
2906 prologue calculation into riscv_scan_prologue.
2907 (riscv_frame_cache): Update return type, create
2908 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2910 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2911 (riscv_frame_prev_register): Use the trad_frame within the
2913 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2916 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2918 * trad-frame.h (trad_frame_set_realreg): Declare.
2919 (trad_frame_set_addr): Declare.
2920 * trad-frame.c (trad_frame_set_realreg): Define new function.
2921 (trad_frame_set_addr): Define new function.
2922 (trad_frame_set_reg_realreg): Use new function.
2923 (trad_frame_set_reg_addr): Use new function.
2925 2018-09-01 Keith Seitz <keiths@redhat.com>
2927 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2928 pulongest instead of "%lld".
2929 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2932 2018-08-31 Tom Tromey <tom@tromey.com>
2934 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2937 2018-08-31 Pedro Alves <palves@redhat.com>
2939 * gdbarch.h: Regenerate.
2941 2018-08-31 Pedro Alves <palves@redhat.com>
2943 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2944 * target.h (Hardware watchpoint interfaces): Describe
2945 continuable/steppable/non-steppable watchpoints.
2946 * gdbarch.h, gdbarch.c: Regenerate.
2948 2018-08-31 Pedro Alves <palves@redhat.com>
2950 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2953 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2954 * target.h (target_ops::have_continuable_watchpoint): Delete.
2955 (target_have_continuable_watchpoint): Delete.
2956 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2957 * target-delegates.c: Regenerate.
2959 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2961 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2962 the files present in "gnulib/import/m4/".
2964 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2966 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2967 c.sw, c.swsp, and c.sdsp.
2969 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2971 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2972 (riscv_read_misa_reg): Don't cache value read into inferior data.
2973 (riscv_new_inferior_data): Delete.
2974 (riscv_inferior_data_cleanup): Delete.
2975 (riscv_inferior_data): Delete.
2976 (riscv_invalidate_inferior_data): Delete.
2977 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2979 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2981 * compile/compile-cplus-types.c
2982 (compile_cplus_instance::leave_scope): Take the address of scope
2984 (compile_cplus_instance::convert_qualified_base): Compare quals
2987 2018-08-30 Keith Seitz <keiths@redhat.com>
2989 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2990 Use "%s" and host_address_to_string instead of "%p" in printf.
2992 2018-08-29 Keith Seitz <keiths@redhat.com>
2994 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2995 and compile-cplus-types.c.
2996 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2997 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2998 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
3000 * compile/compile-c-support.c: Include compile-cplus.h.
3001 (load_libcompile): Templatize.
3002 (get_compile_context): "New" function.
3003 (c_get_compile_context): Use get_compile_context.
3004 (cplus_get_compile_context): New function.
3005 (cplus_push_user_expression, cplus_pop_user_expression)
3006 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
3007 (cplus_compute_program): Define new structs/functions.
3008 * compile/compile-cplus-symmbols.c: New file.
3009 * compile/compile-cplus-types.c: New file.
3010 * compile/compile-cplus.h: New file.
3011 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3013 * compile/compile-object-load.c (get_out_value_type): Use
3014 strncmp_iw when comparing symbol names.
3015 (compile_object_load): Add mst_bss and mst_data.
3016 * compile/compile.c (_initialize_compile): Remove
3017 -Wno-implicit-function-declaration from `compile_args'.
3018 * compile/gcc-cp-plugin.h: New file.
3019 * NEWS: Mention C++ compile support and new debug options.
3021 2018-08-29 Keith Seitz <keiths@redhat.com>
3023 * linespec.c (collect_info::add_symbol): Make virtual.
3024 (struct symbol_searcher_collect_info): New struct.
3025 (symbol_searcher::find_all_symbols): New method.
3026 * symtab.h (class symbol_searcher): New class.
3028 2018-08-29 Keith Seitz <keiths@redhat.com>
3030 * linespec.c (struct linespec) <function_symbols, label_symbols>:
3031 Change to vector of block_symbol. Update all users.
3032 (struct collect_info) <symbols>: Likewise.
3033 (collect_info::add_symbol): Take block_symbol as argument.
3035 (decode_compound_collector) <m_symbols>: Change type to vector
3036 of block_symbol. Update all users.
3037 (decode_compound_collector::operator ()): Change parameter type
3039 (find_method, find_function_symbols, find_linespec_symbols)
3040 (find_label_symbols_in_block, find_label_symbols): Change symbol
3041 vectors to block_symbol vectors.
3042 * symtab.h (symbol_found_callback_ftype): Change parameter type to
3045 2018-08-29 Keith Seitz <keiths@redhat.com>
3047 * linespec.c (symbolp): Remove typedef and VEC definitions.
3048 (bound_minimal_symbol_d): Likewise.
3050 2018-08-29 Keith Seitz <keiths@redhat.com>
3052 * linespec.c (decode_compound_collector::decode_compound_collector):
3053 Remove initialization for `m_symtabs'.
3054 (decode_compound_collector::release_symbols): Change return type
3055 to std::vector. Update all callers.
3056 (class decode_compound_collector) <m_symbols>: Change type to
3058 (lookup_prefix_sym): Change return type to std::vector. Update all
3060 (compare_symbols): Remove.
3061 (std_compare_symbols): Rename to `compare_symbols'.
3062 (find_method): Change `sym_classes' parameter to std::vector.
3063 Update all callers. Use std::sort to sort sym_classes.
3064 (find_linespec_symbols): Remove cleanup.
3066 2018-08-29 Keith Seitz <keiths@redhat.com>
3068 * linespec.c (struct linespec) <minimal_symbols>: Change type to
3069 std::vector. Update all users.
3070 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
3071 (struct collect_info) <minimal_symbols>: Likewise.
3072 (compare_msymbols): Return bool. Change parameters to const
3073 bound_minimal_symbol references.
3074 (find_method, find_function_symbols, find_linespec_symbols): Change
3075 `minsyms' parameter to std::vector. Update all callers.
3077 2018-08-29 Keith Seitz <keiths@redhat.com>
3079 * linespec.c (struct linespec) <label_symbols>: Change type to
3080 std::vector. Update all users.
3081 (find_label_symbols_in_block): Change `result' parameter to
3082 std::vector. Update all callers.
3083 (find_label_symbols): Return std::vector. Update all callers.
3085 2018-08-29 Keith Seitz <keiths@redhat.com>
3087 * linespec.c (struct linespec) <function_symbols>: Change type to
3088 std::vector. Update all users.
3089 (struct collect_info) <function_symbols>: Likewise.
3090 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
3091 (std_compare_symbols): New function.
3092 (find_method, find_function_symbols, find_linespec_symbols)
3093 (find_label_symbols_in_block): Change `symbols' parameter to
3094 std::vector. Update all callers.
3095 (find_label_symbols): Likewise for `function_symbols' and
3098 2018-08-29 Keith Seitz <keiths@redhat.com>
3100 * linespec.c (symtab_vector_up): Define.
3101 (struct linespec) <file_symtabs>: Change type to std::vector *.
3103 (struct collect_info) <file_symtabs>: Likewise.
3104 (collect_symtabs_from_filename): Return symtab_vector_up.
3106 (decode_objc): Remove cleanup.
3107 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
3108 (symtab_collector::release_symtabs): Return symtab_vector_up.
3110 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
3112 (collect_symtabs_from_filename, symtabs_from_filename): Return
3113 symtab_vector_up. Update all callers.
3115 2018-08-29 Tom Tromey <tom@tromey.com>
3117 * csky-tdep.c (csky_analyze_prologue): Use
3118 core_addr_to_string_nz.
3120 2018-08-29 Tom Tromey <tom@tromey.com>
3122 * windows-nat.c (struct xlate_exception) <them>: Change type to
3124 (xlate): Fix formatting. Remove last entry.
3125 (struct xlate_exception, xlate): Comment out.
3126 (windows_nat_target::resume): Use ranged for.
3128 2018-08-29 Jim Wilson <jimw@sifive.com>
3130 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
3131 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
3133 (riscv_linux_nat_target::store_registers): Likewise.
3135 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3139 * gnulib/aclocal.m4: Regenerate.
3140 * gnulib/config.in: Regenerate.
3141 * gnulib/configure: Regenerate.
3142 * gnulib/import/Makefile.am: Update.
3143 * gnulib/import/Makefile.in: Update.
3144 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3145 * gnulib/import/_Noreturn.h: ... this.
3146 * gnulib/import/alloca.in.h: Update.
3147 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3148 * gnulib/import/arg-nonnull.h: ... this.
3149 * gnulib/import/assure.h: Update.
3150 * gnulib/import/at-func.c: Update.
3151 * gnulib/import/basename-lgpl.c: Update.
3152 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3153 * gnulib/import/c++defs.h: ... this.
3154 * gnulib/import/canonicalize-lgpl.c: Update.
3155 * gnulib/import/cdefs.h: Update.
3156 * gnulib/import/chdir-long.c: Update.
3157 * gnulib/import/chdir-long.h: Update.
3158 * gnulib/import/cloexec.c: Update.
3159 * gnulib/import/cloexec.h: Update.
3160 * gnulib/import/close.c: Update.
3161 * gnulib/import/closedir.c: Update.
3162 * gnulib/import/config.charset: Update.
3163 * gnulib/import/dirent-private.h: Update.
3164 * gnulib/import/dirent.in.h: Update.
3165 * gnulib/import/dirfd.c: Update.
3166 * gnulib/import/dirname-lgpl.c: Update.
3167 * gnulib/import/dirname.h: Update.
3168 * gnulib/import/dosname.h: Update.
3169 * gnulib/import/dup-safer-flag.c: Update.
3170 * gnulib/import/dup-safer.c: Update.
3171 * gnulib/import/dup.c: Update.
3172 * gnulib/import/dup2.c: Update.
3173 * gnulib/import/errno.in.h: Update.
3174 * gnulib/import/error.c: Update.
3175 * gnulib/import/error.h: Update.
3176 * gnulib/import/exitfail.c: Update.
3177 * gnulib/import/exitfail.h: Update.
3178 * gnulib/import/extra/update-copyright: Update.
3179 * gnulib/import/fchdir.c: Update.
3180 * gnulib/import/fcntl.c: Update.
3181 * gnulib/import/fcntl.in.h: Update.
3182 * gnulib/import/fd-hook.c: Update.
3183 * gnulib/import/fd-hook.h: Update.
3184 * gnulib/import/fd-safer-flag.c: Update.
3185 * gnulib/import/fd-safer.c: Update.
3186 * gnulib/import/fdopendir.c: Update.
3187 * gnulib/import/filename.h: Update.
3188 * gnulib/import/filenamecat-lgpl.c: Update.
3189 * gnulib/import/filenamecat.h: Update.
3190 * gnulib/import/flexmember.h: Update.
3191 * gnulib/import/float+.h: Update.
3192 * gnulib/import/float.c: Update.
3193 * gnulib/import/float.in.h: Update.
3194 * gnulib/import/fnmatch.c: Update.
3195 * gnulib/import/fnmatch.in.h: Update.
3196 * gnulib/import/fnmatch_loop.c: Update.
3197 * gnulib/import/fpucw.h: Update.
3198 * gnulib/import/frexp.c: Update.
3199 * gnulib/import/frexpl.c: Update.
3200 * gnulib/import/fstat.c: Update.
3201 * gnulib/import/fstatat.c: Update.
3202 * gnulib/import/getcwd-lgpl.c: Update.
3203 * gnulib/import/getcwd.c: Update.
3204 * gnulib/import/getdtablesize.c: Update.
3205 * gnulib/import/getlogin_r.c: Update.
3206 * gnulib/import/getprogname.c: Update.
3207 * gnulib/import/getprogname.h: Update.
3208 * gnulib/import/gettext.h: Update.
3209 * gnulib/import/gettimeofday.c: Update.
3210 * gnulib/import/glob-libc.h: Update.
3211 * gnulib/import/glob.c: Update.
3212 * gnulib/import/glob.in.h: Update.
3213 * gnulib/import/glob_internal.h: Update.
3214 * gnulib/import/glob_pattern_p.c: Update.
3215 * gnulib/import/globfree.c: Update.
3216 * gnulib/import/hard-locale.c: Update.
3217 * gnulib/import/hard-locale.h: Update.
3218 * gnulib/import/intprops.h: Update.
3219 * gnulib/import/inttypes.in.h: Update.
3220 * gnulib/import/isnan.c: Update.
3221 * gnulib/import/isnand-nolibm.h: Update.
3222 * gnulib/import/isnand.c: Update.
3223 * gnulib/import/isnanl-nolibm.h: Update.
3224 * gnulib/import/isnanl.c: Update.
3225 * gnulib/import/itold.c: Update.
3226 * gnulib/import/libc-config.h: Update.
3227 * gnulib/import/limits.in.h: Update.
3228 * gnulib/import/localcharset.c: Update.
3229 * gnulib/import/localcharset.h: Update.
3230 * gnulib/import/localtime-buffer.c: Update.
3231 * gnulib/import/localtime-buffer.h: Update.
3232 * gnulib/import/lstat.c: Update.
3233 * gnulib/import/m4/00gnulib.m4: Update.
3234 * gnulib/import/m4/__inline.m4: Update.
3235 * gnulib/import/m4/absolute-header.m4: Update.
3236 * gnulib/import/m4/alloca.m4: Update.
3237 * gnulib/import/m4/builtin-expect.m4: Update.
3238 * gnulib/import/m4/canonicalize.m4: Update.
3239 * gnulib/import/m4/chdir-long.m4: Update.
3240 * gnulib/import/m4/close.m4: Update.
3241 * gnulib/import/m4/closedir.m4: Update.
3242 * gnulib/import/m4/configmake.m4: Update.
3243 * gnulib/import/m4/d-ino.m4: Update.
3244 * gnulib/import/m4/d-type.m4: Update.
3245 * gnulib/import/m4/dirent_h.m4: Update.
3246 * gnulib/import/m4/dirfd.m4: Update.
3247 * gnulib/import/m4/dirname.m4: Update.
3248 * gnulib/import/m4/double-slash-root.m4: Update.
3249 * gnulib/import/m4/dup.m4: Update.
3250 * gnulib/import/m4/dup2.m4: Update.
3251 * gnulib/import/m4/eealloc.m4: Update.
3252 * gnulib/import/m4/environ.m4: Update.
3253 * gnulib/import/m4/errno_h.m4: Update.
3254 * gnulib/import/m4/error.m4: Update.
3255 * gnulib/import/m4/exponentd.m4: Update.
3256 * gnulib/import/m4/exponentl.m4: Update.
3257 * gnulib/import/m4/extensions.m4: Update.
3258 * gnulib/import/m4/extern-inline.m4: Update.
3259 * gnulib/import/m4/fchdir.m4: Update.
3260 * gnulib/import/m4/fcntl-o.m4: Update.
3261 * gnulib/import/m4/fcntl.m4: Update.
3262 * gnulib/import/m4/fcntl_h.m4: Update.
3263 * gnulib/import/m4/fdopendir.m4: Update.
3264 * gnulib/import/m4/filenamecat.m4: Update.
3265 * gnulib/import/m4/flexmember.m4: Update.
3266 * gnulib/import/m4/float_h.m4: Update.
3267 * gnulib/import/m4/fnmatch.m4: Update.
3268 * gnulib/import/m4/fnmatch_h.m4: Update.
3269 * gnulib/import/m4/fpieee.m4: Update.
3270 * gnulib/import/m4/frexp.m4: Update.
3271 * gnulib/import/m4/frexpl.m4: Update.
3272 * gnulib/import/m4/fstat.m4: Update.
3273 * gnulib/import/m4/fstatat.m4: Update.
3274 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3275 * gnulib/import/m4/getcwd-path-max.m4: Update.
3276 * gnulib/import/m4/getcwd.m4: Update.
3277 * gnulib/import/m4/getdtablesize.m4: Update.
3278 * gnulib/import/m4/getlogin.m4: Update.
3279 * gnulib/import/m4/getlogin_r.m4: Update.
3280 * gnulib/import/m4/getpagesize.m4: Update.
3281 * gnulib/import/m4/getprogname.m4: Update.
3282 * gnulib/import/m4/gettimeofday.m4: Update.
3283 * gnulib/import/m4/glibc21.m4: Update.
3284 * gnulib/import/m4/glob.m4: Update.
3285 * gnulib/import/m4/glob_h.m4: Update.
3286 * gnulib/import/m4/gnulib-cache.m4: Update.
3287 * gnulib/import/m4/gnulib-common.m4: Update.
3288 * gnulib/import/m4/gnulib-comp.m4: Update.
3289 * gnulib/import/m4/gnulib-tool.m4: Update.
3290 * gnulib/import/m4/hard-locale.m4: Update.
3291 * gnulib/import/m4/include_next.m4: Update.
3292 * gnulib/import/m4/inttypes-pri.m4: Update.
3293 * gnulib/import/m4/inttypes.m4: Update.
3294 * gnulib/import/m4/isnand.m4: Update.
3295 * gnulib/import/m4/isnanl.m4: Update.
3296 * gnulib/import/m4/largefile.m4: Update.
3297 * gnulib/import/m4/limits-h.m4: Update.
3298 * gnulib/import/m4/localcharset.m4: Update.
3299 * gnulib/import/m4/locale-fr.m4: Update.
3300 * gnulib/import/m4/locale-ja.m4: Update.
3301 * gnulib/import/m4/locale-zh.m4: Update.
3302 * gnulib/import/m4/localtime-buffer.m4: Update.
3303 * gnulib/import/m4/longlong.m4: Update.
3304 * gnulib/import/m4/lstat.m4: Update.
3305 * gnulib/import/m4/malloc.m4: Update.
3306 * gnulib/import/m4/malloca.m4: Update.
3307 * gnulib/import/m4/math_h.m4: Update.
3308 * gnulib/import/m4/mbrtowc.m4: Update.
3309 * gnulib/import/m4/mbsinit.m4: Update.
3310 * gnulib/import/m4/mbsrtowcs.m4: Update.
3311 * gnulib/import/m4/mbstate_t.m4: Update.
3312 * gnulib/import/m4/memchr.m4: Update.
3313 * gnulib/import/m4/memmem.m4: Update.
3314 * gnulib/import/m4/mempcpy.m4: Update.
3315 * gnulib/import/m4/memrchr.m4: Update.
3316 * gnulib/import/m4/mkdir.m4: Update.
3317 * gnulib/import/m4/mkstemp.m4: Update.
3318 * gnulib/import/m4/mmap-anon.m4: Update.
3319 * gnulib/import/m4/mode_t.m4: Update.
3320 * gnulib/import/m4/msvc-inval.m4: Update.
3321 * gnulib/import/m4/msvc-nothrow.m4: Update.
3322 * gnulib/import/m4/multiarch.m4: Update.
3323 * gnulib/import/m4/nocrash.m4: Update.
3324 * gnulib/import/m4/off_t.m4: Update.
3325 * gnulib/import/m4/onceonly.m4: Update.
3326 * gnulib/import/m4/open-cloexec.m4: Update.
3327 * gnulib/import/m4/open.m4: Update.
3328 * gnulib/import/m4/openat.m4: Update.
3329 * gnulib/import/m4/opendir.m4: Update.
3330 * gnulib/import/m4/pathmax.m4: Update.
3331 * gnulib/import/m4/rawmemchr.m4: Update.
3332 * gnulib/import/m4/readdir.m4: Update.
3333 * gnulib/import/m4/readlink.m4: Update.
3334 * gnulib/import/m4/realloc.m4: Update.
3335 * gnulib/import/m4/rename.m4: Update.
3336 * gnulib/import/m4/rewinddir.m4: Update.
3337 * gnulib/import/m4/rmdir.m4: Update.
3338 * gnulib/import/m4/save-cwd.m4: Update.
3339 * gnulib/import/m4/secure_getenv.m4: Update.
3340 * gnulib/import/m4/setenv.m4: Update.
3341 * gnulib/import/m4/signal_h.m4: Update.
3342 * gnulib/import/m4/ssize_t.m4: Update.
3343 * gnulib/import/m4/stat-time.m4: Update.
3344 * gnulib/import/m4/stat.m4: Update.
3345 * gnulib/import/m4/std-gnu11.m4: Update.
3346 * gnulib/import/m4/stdbool.m4: Update.
3347 * gnulib/import/m4/stddef_h.m4: Update.
3348 * gnulib/import/m4/stdint.m4: Update.
3349 * gnulib/import/m4/stdio_h.m4: Update.
3350 * gnulib/import/m4/stdlib_h.m4: Update.
3351 * gnulib/import/m4/strchrnul.m4: Update.
3352 * gnulib/import/m4/strdup.m4: Update.
3353 * gnulib/import/m4/strerror.m4: Update.
3354 * gnulib/import/m4/string_h.m4: Update.
3355 * gnulib/import/m4/strstr.m4: Update.
3356 * gnulib/import/m4/strtok_r.m4: Update.
3357 * gnulib/import/m4/sys_socket_h.m4: Update.
3358 * gnulib/import/m4/sys_stat_h.m4: Update.
3359 * gnulib/import/m4/sys_time_h.m4: Update.
3360 * gnulib/import/m4/sys_types_h.m4: Update.
3361 * gnulib/import/m4/tempname.m4: Update.
3362 * gnulib/import/m4/time_h.m4: Update.
3363 * gnulib/import/m4/unistd-safer.m4: Update.
3364 * gnulib/import/m4/unistd_h.m4: Update.
3365 * gnulib/import/m4/warn-on-use.m4: Update.
3366 * gnulib/import/m4/wchar_h.m4: Update.
3367 * gnulib/import/m4/wchar_t.m4: Update.
3368 * gnulib/import/m4/wctype_h.m4: Update.
3369 * gnulib/import/m4/wint_t.m4: Update.
3370 * gnulib/import/malloc.c: Update.
3371 * gnulib/import/malloc/scratch_buffer.h: Update.
3372 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3373 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3374 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3375 * gnulib/import/malloca.c: Update.
3376 * gnulib/import/malloca.h: Update.
3377 * gnulib/import/malloca.valgrind: Update.
3378 * gnulib/import/math.in.h: Update.
3379 * gnulib/import/mbrtowc.c: Update.
3380 * gnulib/import/mbsinit.c: Update.
3381 * gnulib/import/mbsrtowcs-impl.h: Update.
3382 * gnulib/import/mbsrtowcs-state.c: Update.
3383 * gnulib/import/mbsrtowcs.c: Update.
3384 * gnulib/import/memchr.c: Update.
3385 * gnulib/import/memmem.c: Update.
3386 * gnulib/import/mempcpy.c: Update.
3387 * gnulib/import/memrchr.c: Update.
3388 * gnulib/import/mkdir.c: Update.
3389 * gnulib/import/mkstemp.c: Update.
3390 * gnulib/import/msvc-inval.c: Update.
3391 * gnulib/import/msvc-inval.h: Update.
3392 * gnulib/import/msvc-nothrow.c: Update.
3393 * gnulib/import/msvc-nothrow.h: Update.
3394 * gnulib/import/open.c: Update.
3395 * gnulib/import/openat-die.c: Update.
3396 * gnulib/import/openat-priv.h: Update.
3397 * gnulib/import/openat-proc.c: Update.
3398 * gnulib/import/openat.c: Update.
3399 * gnulib/import/openat.h: Update.
3400 * gnulib/import/opendir.c: Update.
3401 * gnulib/import/pathmax.h: Update.
3402 * gnulib/import/pipe-safer.c: Update.
3403 * gnulib/import/rawmemchr.c: Update.
3404 * gnulib/import/readdir.c: Update.
3405 * gnulib/import/readlink.c: Update.
3406 * gnulib/import/realloc.c: Update.
3407 * gnulib/import/ref-add.sin: Update.
3408 * gnulib/import/ref-del.sin: Update.
3409 * gnulib/import/rename.c: Update.
3410 * gnulib/import/rewinddir.c: Update.
3411 * gnulib/import/rmdir.c: Update.
3412 * gnulib/import/same-inode.h: Update.
3413 * gnulib/import/save-cwd.c: Update.
3414 * gnulib/import/save-cwd.h: Update.
3415 * gnulib/import/scratch_buffer.h: Update.
3416 * gnulib/import/secure_getenv.c: Update.
3417 * gnulib/import/setenv.c: Update.
3418 * gnulib/import/signal.in.h: Update.
3419 * gnulib/import/stat-time.c: Update.
3420 * gnulib/import/stat-time.h: Update.
3421 * gnulib/import/stat-w32.c: Update.
3422 * gnulib/import/stat-w32.h: Update.
3423 * gnulib/import/stat.c: Update.
3424 * gnulib/import/stdbool.in.h: Update.
3425 * gnulib/import/stddef.in.h: Update.
3426 * gnulib/import/stdint.in.h: Update.
3427 * gnulib/import/stdio.in.h: Update.
3428 * gnulib/import/stdlib.in.h: Update.
3429 * gnulib/import/str-two-way.h: Update.
3430 * gnulib/import/strchrnul.c: Update.
3431 * gnulib/import/strdup.c: Update.
3432 * gnulib/import/streq.h: Update.
3433 * gnulib/import/strerror-override.c: Update.
3434 * gnulib/import/strerror-override.h: Update.
3435 * gnulib/import/strerror.c: Update.
3436 * gnulib/import/string.in.h: Update.
3437 * gnulib/import/stripslash.c: Update.
3438 * gnulib/import/strnlen1.c: Update.
3439 * gnulib/import/strnlen1.h: Update.
3440 * gnulib/import/strstr.c: Update.
3441 * gnulib/import/strtok_r.c: Update.
3442 * gnulib/import/sys_stat.in.h: Update.
3443 * gnulib/import/sys_time.in.h: Update.
3444 * gnulib/import/sys_types.in.h: Update.
3445 * gnulib/import/tempname.c: Update.
3446 * gnulib/import/tempname.h: Update.
3447 * gnulib/import/time.in.h: Update.
3448 * gnulib/import/unistd--.h: Update.
3449 * gnulib/import/unistd-safer.h: Update.
3450 * gnulib/import/unistd.in.h: Update.
3451 * gnulib/import/unsetenv.c: Update.
3452 * gnulib/import/verify.h: Update.
3453 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3454 * gnulib/import/wchar.in.h: Update.
3455 * gnulib/import/wctype.in.h: Update.
3456 * gnulib/import/xalloc-oversized.h: Update.
3457 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3458 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3460 2018-08-16 Gary Benson <gbenson@redhat.com>
3463 * gdb/main.c (captured_main_1): Exit with nonzero status
3464 in batch mode if the last command to be executed failed.
3465 * NEWS: Mention the above.
3467 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
3469 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3470 end of warning message.
3472 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3475 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
3476 (aarch64_extract_return_value): Use
3477 aapcs_is_vfp_call_or_return_candidate.
3478 (aarch64_return_in_memory): Likewise.
3479 (aarch64_store_return_value): Likewise.
3481 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3484 (aapcs_is_vfp_call_or_return_candidate): Make static
3485 (pass_in_v_or_stack): Remove function.
3486 (pass_in_v_vfp_candidate): New function.
3487 (aarch64_push_dummy_call): Check for float register candidates.
3489 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3491 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
3492 (aapcs_is_vfp_call_or_return_candidate_1): New function.
3493 (aapcs_is_vfp_call_or_return_candidate): Likewise.
3495 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3498 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
3499 (struct ipa_sym_addresses): Rename to...
3500 (struct ipa_sym_addresses_common): ... this.
3501 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
3503 2018-08-28 Tom Tromey <tom@tromey.com>
3505 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3506 (token_fifo): Now a std::vector.
3507 (yylex, c_parse): Update.
3508 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3509 (token_fifo): Now a std::vector.
3510 (yylex, d_parse): Update.
3511 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3512 (token_fifo): Now a std::vector.
3513 (yylex, go_parse): Update.
3515 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
3517 * parser-defs.h (struct type_stack) <elements>: Change type to
3518 std::vector<union type_stack_elt>.
3519 <depth, size>: Remove.
3520 * parse.c (parse_exp_in_context_1): Adjust.
3521 (type_stack_reserve): Remove.
3522 (check_type_stack_depth): Remove.
3523 (insert_into_type_stack): Adjust to std::vector.
3524 (insert_type): Likewise.
3525 (push_type): Likewise.
3526 (push_type_int): Likewise.
3527 (insert_type_address_space): Likewise.
3528 (pop_type): Likewise.
3529 (pop_type_int): Likewise.
3530 (pop_typelist): Likewise.
3531 (pop_type_stack): Likewise.
3532 (append_type_stack): Likewise.
3533 (push_type_stack): Likewise.
3534 (get_type_stack): Likewise.
3535 (type_stack_cleanup): Likewise.
3536 (push_typelist): Likewise.
3537 (follow_types): Likewise.
3538 (_initialize_parse): Likewise.
3540 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
3542 * NEWS: Mention csky target.
3544 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
3545 Hafiz Abid Qadeer <abidh@codesourcery.com>
3546 Don Breazeal <donb@codesourcery.com>
3548 * csky-linux-tdep.c: New file.
3549 * csky-tdep.c: Likewise.
3550 * csky-tdep.h: Likewise.
3551 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
3553 (HFILES_NO_SRCDIR): Add csky-tdep.h.
3554 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
3555 * configure.tgt: Add csky support.
3557 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
3559 * python/py-framefilter.c (py_print_frame): Print frame architecture
3560 when printing on an MI output.
3562 2018-08-27 Tom Tromey <tom@tromey.com>
3565 * configure: Rebuild.
3566 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
3568 2018-08-27 Tom Tromey <tom@tromey.com>
3570 * aarch64-linux-tdep.c
3571 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
3574 2018-08-27 Tom Tromey <tom@tromey.com>
3576 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
3578 (ppc64_standard_linkage1, ppc64_standard_linkage2)
3579 (ppc64_standard_linkage3, ppc64_standard_linkage4)
3580 (ppc64_standard_linkage5, ppc64_standard_linkage6)
3581 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
3584 2018-08-27 Tom Tromey <tom@tromey.com>
3586 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
3587 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
3589 2018-08-27 Tom Tromey <tom@tromey.com>
3591 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
3592 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
3594 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
3596 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
3598 * sparc-linux-tdep.c (sparc32_linux_sigframe)
3599 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
3600 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
3602 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
3603 (ppc64_linux_sigaction_tramp_frame)
3604 (ppc32_linux_sighandler_tramp_frame)
3605 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3606 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
3607 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
3608 * mn10300-linux-tdep.c (am33_linux_sigframe)
3609 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
3610 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
3611 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3612 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3613 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
3614 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
3615 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
3616 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
3617 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
3618 * microblaze-linux-tdep.c
3619 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3620 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
3621 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
3622 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
3623 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
3624 * common/common-types.h (ULONGEST_MAX): New define.
3625 (CORE_ADDR_MAX): Fix formatting.
3626 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
3627 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
3628 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
3629 (arm_linux_rt_sigreturn_tramp_frame)
3630 (arm_eabi_linux_sigreturn_tramp_frame)
3631 (arm_eabi_linux_rt_sigreturn_tramp_frame)
3632 (thumb2_eabi_linux_sigreturn_tramp_frame)
3633 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
3634 (arm_linux_restart_syscall_tramp_frame)
3635 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
3636 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
3637 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
3639 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
3641 2018-08-27 Tom Tromey <tom@tromey.com>
3643 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
3645 * mips-tdep.c (mips_deal_with_atomic_sequence)
3646 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
3647 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
3648 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
3649 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
3651 * aarch64-tdep.c (aarch64_software_single_step): Use
3654 2018-08-27 Tom Tromey <tom@tromey.com>
3656 * linespec.c (complete_linespec_component): Add cast to "char".
3657 * completer.c (completion_tracker::build_completion_result): Add
3660 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3662 * solist.h (struct solist, struct target_so_ops): Fix
3665 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3667 * ada-tasks.c (ada_task_info_s): Remove typedef.
3668 (DEF_VEC_O(ada_task_info_s)): Remove.
3669 (struct ada_tasks_inferior_data): Initialize fields.
3670 <task_list>: Make an std::vector.
3671 (get_ada_tasks_inferior_data): Allocate with new.
3672 (ada_get_task_number): Adjust.
3673 (get_task_number_from_id): Likewise.
3674 (valid_task_id): Likewise.
3675 (ada_get_task_info_from_ptid): Likewise.
3676 (iterate_over_live_ada_tasks): Likewise.
3677 (add_ada_task): Likewise.
3678 (read_known_tasks): Likewise.
3679 (ada_build_task_list): Likewise.
3680 (print_ada_task_info): Likewise.
3681 (info_task): Likewise.
3682 (task_command_1): Likewise.
3684 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3686 * ada-lang.c (add_angle_brackets): Return std::string.
3688 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
3690 * python/py-threadevent.c (py_get_event_thread): Initialize
3693 2018-08-24 Pedro Alves <palves@redhat.com>
3695 * python/py-bpevent.c (create_breakpoint_event_object): Use
3696 copy-initialization.
3697 * python/py-continueevent.c (emit_continue_event): Use
3698 copy-initialization.
3699 * python/py-exitedevent.c (create_exited_event_object): Return a
3701 (emit_exited_event): Use copy-initialization.
3702 * python/py-inferior.c (python_new_inferior)
3703 (python_inferior_deleted, add_thread_object): Use
3704 copy-initialization.
3705 * python/py-infevents.c (create_inferior_call_event_object)
3706 (create_register_changed_event_object)
3707 (create_memory_changed_event_object): Return a gdbpy_ref<>.
3708 (emit_inferior_call_event, emit_memory_changed_event)
3709 (emit_register_changed_event): Use copy-initialization.
3710 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3711 Return a gdbpy_ref<>.
3712 (emit_new_objfile_event): Use copy-initialization.
3713 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
3714 (emit_clear_objfiles_event): Use copy-initialization.
3715 * python/py-signalevent.c (create_signal_event_object): Use
3716 copy-initialization.
3717 * python/py-threadevent.c (create_thread_event_object): Use
3718 copy-initialization.
3720 2018-08-24 Pedro Alves <palves@redhat.com>
3721 Simon Marchi <simon.marchi@ericsson.com>
3724 * python/py-continueevent.c: Include "gdbthread.h".
3725 (create_continue_event_object): Add intro comment. Add 'ptid'
3726 parameter. Use it to find thread to pass to
3727 create_thread_event_object.
3728 (emit_continue_event): Pass PTID down to
3729 create_continue_event_object.
3730 * python/py-event.h (py_get_event_thread): Declare.
3731 (create_thread_event_object): Remove default from 'thread'
3733 * python/py-stopevent.c (create_stop_event_object): Use
3734 py_get_event_thread.
3735 * python/py-threadevent.c (get_event_thread): Rename to ...
3736 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
3737 and use it to find the thread.
3738 (create_thread_event_object): Assert that THREAD isn't null.
3739 Don't find the event thread here.
3741 2018-08-23 Kevin Buettner <kevinb@redhat.com>
3743 * block.h (blockrange, blockranges): New struct declarations.
3744 (struct block): Add new field named `ranges'.
3745 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
3746 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
3747 macros for accessing ranges in struct block.
3748 (make_blockranges): New declaration.
3749 block.c (make_blockranges): New function.
3750 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
3752 * symtab.h (find_pc_partial_function): Add new parameter `block'.
3753 * blockframe.c (cache_pc_function_block): New static global.
3754 (clear_pc_function_cache): Clear cache_pc_function_block.
3755 (find_pc_partial_function): Move comment to symtab.h. Add
3756 support for non-contiguous blocks.
3757 * cli/cli-cmds.c (block.h): Include.
3758 (print_disassembly): Handle printing of non-contiguous blocks.
3759 (disassemble_current_function): Likewise.
3760 (disassemble_command): Likewise.
3762 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
3764 * blockframe.c (get_pc_function_start): Likewise.
3765 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
3766 (gcc_symbol_address): Likewise.
3767 * compile/compile-object-run.c (compile_object_run): Likewise.
3768 * compile/compile.c (get_expr_block_and_pc): Likewise.
3769 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
3770 (func_addr_to_tail_call_list): Likewise.
3771 * findvar.c (default_read_var_value): Likewise.
3772 * inline-frame.c (inline_frame_this_id): Likewise.
3773 (skip-inline_frames): Likewise.
3774 * infcmd.c (until_next_command): Likewise.
3775 * linespec.c (convert_linespec_to_sals): Likewise.
3776 * parse.c (parse_exp_in_context_1): Likewise.
3777 * printcmd.c (build_address_symbolic): likewise.
3778 (info_address_command): Likewise.
3779 symtab.c (find_function_start_sal): Likewise.
3780 (skip_prologue_sal): Likewise.
3781 (find_function_alias_target): Likewise.
3782 (find_gnu_ifunc): Likewise.
3783 * stack.c (find_frame_funname): Likewise.
3784 * symtab.c (fixup_symbol_section): Likewise.
3785 (find_function_start_sal): Likewise.
3786 (skip_prologue_sal): Likewsie.
3787 (find_function_alias_target): Likewise.
3788 (find_gnu_ifunc): Likewise.
3789 * tracepoint.c (info_scope_command): Likewise.
3790 * value.c (value_fn_field): Likewise.
3792 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
3793 in place of find_pc_partial_function.
3794 * blockframe.c (find_function_entry_range_from_pc): New function.
3795 * symtab.h (find_function_entry_range_from_pc): Declare and document.
3796 * objfiles.c (objfile_relocate1): Relocate start and end addresses
3797 for each range in a block.
3800 2018-08-23 Xavier Roirand <roirand@adacore.com>
3802 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
3805 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3807 * solib-svr4.c (read_program_headers_from_bfd): Return
3808 gdb::optional<gdb::byte_vector>.
3809 (svr4_exec_displacement): Adjust.
3811 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3813 * solib-svr4.c (read_program_header): Return
3814 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
3815 (find_program_interpreter): Return
3816 gdb::optional<gdb::byte_vector>.
3817 (scan_dyntag_auxv): Adjust.
3818 (enable_break): Adjust.
3819 (svr4_exec_displacement): Adjust.
3821 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3823 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
3824 * inf-child.c (inf_child_target::terminal_save_inferior): New.
3826 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3828 * guile/scm-string.c (gdbscm_scm_from_printf): Use
3830 * guile/scm-utils.c (gdbscm_printf): Likewise.
3831 * serial.c (serial_printf): Likewise.
3832 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3834 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
3836 * stack.c (print_frame): Print frame architecture when printing on
3838 * NEWS: Mention new "arch" attribute in frame output.
3840 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3842 * arch/aarch64.h (aarch64_regnum): Update comment.
3844 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3846 * NEWS: Add SVE to 8.2 section.
3848 2018-08-21 Pedro Alves <palves@redhat.com>
3850 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3851 out from gdbscm_parse_function_args.
3852 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3853 gdbscm_parse_function_args_1.
3855 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
3858 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3861 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
3863 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3865 2018-08-19 Michael Spang <spang@google.com>
3868 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3869 for PT_TLS segments.
3871 2018-08-18 Kevin Buettner <kevinb@redhat.com>
3873 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3874 dwarf_variable_value.
3875 * dwarf2-frame.c (class dwarf_expr_executor):
3876 Add override for dwarf_variable_value.
3877 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3878 (class symbol_needs_eval_context): Likewise.
3879 (indirect_synthetic_pointer): Add forward declaration.
3880 (sect_variable_value): New function.
3881 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3882 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3883 for DW_OP_GNU_variable_value.
3885 2018-08-16 Tom Tromey <tom@tromey.com>
3887 * top.c (read_command_file): Update.
3888 (command_line_input): Remove "repeat" argument.
3889 * ada-lang.c (get_selections): Update.
3890 * linespec.c (decode_line_2): Update.
3891 * defs.h (command_line_input): Remove argument.
3892 * cli/cli-script.c (read_next_line): Update.
3893 * python/py-gdb-readline.c: Update.
3895 2018-08-17 Tom Tromey <tom@tromey.com>
3897 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3900 2018-08-15 Tom Tromey <tom@tromey.com>
3902 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3904 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3906 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3907 If used, use find_pc_partial_function to find address range
3909 * mi/mi-main.c (mi_cmd_list_features): Report
3910 "data-disassemble-a-option" feature.
3911 * NEWS: Mention new -data-disassemble option -a.
3913 2018-08-13 Tom Tromey <tom@tromey.com>
3915 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3917 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3919 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3920 (aarch64_linux_collect_sve_regset): Likewise.
3921 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3922 * regcache.h (regcache_map_entry_size): New function.
3924 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3926 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3927 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3928 (SVE_HEADER_VL_LENGTH): Likewise.
3929 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3930 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3931 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3932 (SVE_HEADER_SIZE_OFFSET): Likewise.
3933 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3934 (SVE_HEADER_VL_OFFSET): Likewise.
3935 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3936 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3937 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3938 (SVE_HEADER_SIZE): Likewise.
3939 (aarch64_linux_core_read_vq): Add function.
3940 (aarch64_linux_core_read_description): Check for SVE section.
3942 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3944 * aarch64-fbsd-tdep.c
3945 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3947 * aarch64-linux-tdep.c
3948 (aarch64_linux_iterate_over_regset_sections): Likewise.
3949 * alpha-linux-tdep.c
3950 (alpha_linux_iterate_over_regset_sections):
3952 (alphanbsd_iterate_over_regset_sections): Likewise.
3954 (amd64fbsd_iterate_over_regset_sections): Likewise.
3955 * amd64-linux-tdep.c
3956 (amd64_linux_iterate_over_regset_sections): Likewise.
3958 (armbsd_iterate_over_regset_sections): Likewise.
3960 (arm_fbsd_iterate_over_regset_sections): Likewise.
3962 (arm_linux_iterate_over_regset_sections): Likewise.
3963 * corelow.c (get_core_registers_cb): Likewise.
3964 (core_target::fetch_registers): Likewise.
3965 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3966 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3967 * gdbarch.h (void): Regenerate.
3968 * gdbarch.sh: Add supply_size and collect_size.
3969 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3970 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3971 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3972 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3973 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3974 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3975 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3976 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3977 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3978 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3979 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3980 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3981 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3982 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3983 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3984 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3985 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3986 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3987 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3988 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3989 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3990 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3991 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3992 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3993 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3994 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3995 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3996 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3997 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3998 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
4000 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
4002 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
4005 2018-08-10 Keith Seitz <keiths@redhat.com>
4007 * compile/compile-c-support.c (add_code_header, add_code_footer):
4008 Move into policy class.
4009 (c_push_user_expression, pop_user_expression_nop)
4010 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4011 (compile_program): New host class.
4012 (c_compile_program): New typedef.
4013 (c_compute_porgram): Use c_compile_program.
4015 2018-08-10 Keith Seitz <keiths@redhat.com>
4017 * compile/compile-internal.h (compile_instance::~compile_instance):
4018 Remove calls to htab_delete.
4019 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4020 * compile.c (compile_instance::compile_instance): Initialize
4021 htab unique pointers.
4022 (compile_instance::get_cached_type, compile_instance::insert_type)
4023 (compile_instance::error_symbol_once): Update for unique_ptr.
4025 2018-08-10 Keith Seitz <keiths@redhat.com>
4027 * compile/compile-c-symbols.c (struct symbol_error)
4028 (hash_symbol_error, eq_symbol_error, del_symbol_error)
4029 (compile_instance::insert_symbol_error)
4030 (compile_instance::error_symbol_once): Move to ...
4031 * compile/compile.c: ... here.
4033 2018-08-10 Keith Seitz <keiths@redhat.com>
4035 * compile/compile-c-support.c (c_get_compile_context): Use `new'
4036 instead of `new_compile_instance'.
4037 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4039 If the symbol error map is not initialized, create it.
4040 (generate_c_for_for_one_symbol): Do not check/initialize
4041 the symbol error map.
4042 * compile/compile-c-types.c (compile_c_instance): Make a class.
4044 (compile_instance::compile_instance): Initialize the type cache.
4045 (get_cached_type): New function.
4046 (insert_type): Update description.
4047 (compile_c_instance::m_default_cflags): Define.
4048 (convert_type): Update description. Use get_cached_type.
4049 (delete_instance): Moved to destructor.
4050 (new_compile_instance): Moved to constructor.
4051 * compile/compile-c.h (compile_c_instance): Make class inheriting
4052 from compile_instance.
4053 <base>: Remove field.
4054 <type_map, symbol_err_map>: Move to base class.
4055 <c_plugin>: Rename to `m_plugin' and remove pointer type.
4056 * compile/compile-internal.h (compile_instance): Make class.
4057 <type_map_t, symbol_err_map_t>: Define.
4058 <fe>: Rename to `m_gcc_fe'.
4059 <scope, block, gcc_target_options>: Add `m_' prefix.
4060 <m_type_map, m_symbol_err_map>: New fields, moved from
4063 (convert_type, new_compile_instance): Remove.
4064 * compile/compile.c (cleanup_compile_instance): Remove.
4065 (compile_to_object): Use unique_ptr to eliminate cleanups.
4066 (compile_instance::set_print_callback, compile_instance::version)
4067 (compile_instance::set_verbose)
4068 (compile_instance::set_driver_filename)
4069 (compile_instance::set_triplet_regexp)
4070 (compile_instance::set_arguments)
4071 (compile_instance::set_source_file)
4072 (compile_instance::compile): Define.
4074 2018-08-10 Keith Seitz <keiths@redhat.com>
4076 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
4077 * compile/compile-c-types.c: Define GCC_METHODN macros and include
4078 gcc-c-fe.def to define C plugin.
4079 (delete_instance): Delete `c_plugin'.
4080 (new_compile_instance): Initialize `c_plugin'.
4081 * compile/compile-c.h: Include gcc_c_plugin.h.
4082 (struct compile_c_instance) <c_plugin>: New member.
4083 * gcc-c-plugin.h: New file.
4084 Update all callers with API change.
4086 2018-08-10 Keith Seitz <keiths@redhat.com>
4088 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
4089 (HFILES_NO_SRCDIR): ... to here.
4090 Add compile-internal.h and compile-c.h.
4091 * compile/compile-c-support.c: Include compile-c.h.
4092 * compile/compile-c-symbols.c: Include compile-c.h.
4093 (generate_c_for_variable_locations): Update comment.
4094 * compile/compile-c-types.c: Include compile-c.h.
4095 * compile/compile-c.h: New file -- moved C language declarations
4096 from other files here.
4097 * compile/compile-internal.h: Do not include hashtab.h or
4098 common/enum-flags.h.
4099 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
4100 (gcc_convert_symbol, gcc_symbol_address)
4101 (generate_c_for_variable_locations, c_get_mode_for_size)
4102 (c_get_range_decl_name): Definitions moved to compile-c.h.
4103 * compile/compile-loc2c.c: Include compile-c.h.
4105 2018-08-10 Keith Seitz <keiths@redhat.com>
4107 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
4108 (c_symbol_substitution_name): ... this.
4111 2018-08-10 Keith Seitz <keiths@redhat.com>
4113 * compile/compile-c-support.c (c_compute_program): Use
4114 unique_xmalloc_ptr to eliminate cleanup.
4115 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
4116 Return a unique_xmalloc_ptr and eliminate cleanup.
4117 * compile/compile-internal.h (generate_c_for_variable_locations):
4118 Return unique_xmalloc_ptr and update description.
4120 2018-08-10 Alan Hayward <alan.hayward@arm.com>
4122 * corelow.c (core_target::get_core_register_section): Rename
4123 min_size to section_min_size.
4125 2018-08-09 Jim Wilson <jimw@sifive.com>
4127 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
4128 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
4129 * NEWS: Mention new GNU/Linux RISC-V target.
4130 * configure.host: Add riscv*-*-linux*.
4131 * configure.nat: Add riscv*.
4132 * configure.tgt: Add riscv*-*-linux*.
4133 * riscv-linux-nat.c: New file.
4134 * riscv-linux-tdep.c: New file.
4136 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4138 * infrun.c (resume): Make static, add forward declaration.
4139 (proceed): Update header comment.
4140 * infrun.h (resume): Delete declaration.
4142 2018-08-09 Tom Tromey <tom@tromey.com>
4144 * riscv-tdep.h: Minor formatting fixes.
4146 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
4148 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
4149 * dwarf-index-cache.c (create_dir_and_check): Likewise.
4150 (test_mkdir_recursive): Likewise.
4151 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
4153 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4155 * valarith.c (value_subscripted_rvalue): If an array is not in
4156 memory, and we don't know the upper bound, then we can't know that
4157 the requested element exists or not.
4159 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
4161 * target.c (str_comma_list_concat_elem): Fix typo in comment.
4162 (target_options_to_string): Add comment.
4164 2018-08-08 Tom Tromey <tom@tromey.com>
4166 * unittests/scoped_mmap-selftests.c: Check result of "write".
4168 2018-08-08 Jim Wilson <jimw@sifive.com>
4170 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
4171 (decode_register_index_short): New.
4172 (decode_j_type_insn, decode_cj_type_insn): New.
4173 (decode_b_type_insn, decode_cb_type_insn): New.
4174 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
4175 local xlen. Check xlen when decoding ambiguous compressed insns. In
4176 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
4177 is_c_sw_insn instead of is_sw_insn.
4178 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
4179 (riscv_software_single_step): New.
4180 * riscv-tdep.h (riscv_software_single_step): Declare.
4182 * riscv-tdep.c (riscv_isa_xlen): Drop static.
4183 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
4185 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
4188 * target.c (dispose_inferior): Don't dispose of inferiors that are
4191 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
4193 * remote.c (remote_target::download_tracepoint): Change char* to
4196 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4198 * target.h (target_options_to_string): Return an std::string.
4199 * target.c (str_comma_list_concat_elem): Return void, use
4201 (do_option): Likewise.
4202 (target_options_to_string): Return an std::string.
4203 * linux-nat.c (linux_nat_target::wait): Adjust.
4204 * target-debug.h (target_debug_print_options): Adjust.
4206 2018-08-07 Tom Tromey <tom@tromey.com>
4208 * Makefile.in (CPPFLAGS): New variable.
4209 (INTERNAL_CPPFLAGS): Use it.
4211 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4213 * NEWS: Mention the index cache.
4215 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4217 * common/pathstuff.h (get_standard_cache_dir): New.
4218 * common/pathstuff.c (get_standard_cache_dir): New.
4219 * build-id.h (build_id_to_string): New.
4220 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4221 DEBUG_STR_SUFFIX): Move to here.
4222 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4223 DEBUG_STR_SUFFIX): Move from there.
4224 (write_psymtabs_to_index): Make non-static, add basename
4225 parameter. Write to temporary files, rename when done.
4226 (save_gdb_index_command): Adjust call to
4227 write_psymtabs_to_index.
4228 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4230 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4231 (get_gdb_index_contents_from_cache): New.
4232 (get_gdb_index_contents_from_cache_dwz): New.
4233 (dwarf2_initialize_objfile): Read index from cache.
4234 (dwarf2_build_psymtabs): Save to index.
4235 * dwarf-index-cache.h: New file.
4236 * dwarf-index-cache.c: New file.
4237 * dwarf-index-write.h: New file.
4239 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4241 * gnulib/aclocal.m4: Re-generate.
4242 * gnulib/config.in: Re-generate.
4243 * gnulib/configure: Re-generate.
4244 * gnulib/import/Makefile.am: Re-generate.
4245 * gnulib/import/Makefile.in: Re-generate.
4246 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4247 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4248 * gnulib/import/m4/mkdir.m4: New file.
4249 * gnulib/import/mkdir.c: New file.
4250 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4253 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4255 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
4256 * common/scoped_mmap.c: New file.
4257 * common/scoped_mmap.h (destroy): New method.
4258 (~scoped_mmap, reset): Use destroy.
4259 (scoped_mmap): New move constructor.
4260 (mmap_file): New declaration.
4261 * unittests/scoped_mmap-selftests.c (test_normal,
4262 test_invalid_filename, run_tests): New functions.
4263 (_initialize_scoped_mmap_selftests): Register selftest.
4265 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4267 * dwarf2read.c (read_gdb_index_from_section): Rename to...
4268 (read_gdb_index_from_buffer): ... this. Remove section
4269 parameter, add buffer parameter.
4270 (get_gdb_index_contents_ftype,
4271 get_gdb_index_contents_dwz_ftype): New typedefs.
4272 (dwarf2_read_gdb_index): Add callback parameters to get the
4274 (get_gdb_index_contents_from_section): New.
4275 (dwarf2_initialize_objfile): Update call to
4276 dwarf2_read_gdb_index.
4278 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4280 * common/filestuff.h (gdb_fopen_cloexec): New overload.
4281 (gdb_open_cloexec): Likewise.
4282 * nat/linux-osdata.c (command_from_pid): Use string_printf.
4283 (commandline_from_pid): Likewise.
4284 (linux_xfer_osdata_threads): Likewise.
4285 (linux_xfer_osdata_fds): Likewise.
4286 * ada-lang.c (is_package_name): Likewise.
4287 * auxv.c (procfs_xfer_auxv): Likewise.
4288 * breakpoint.c (print_one_breakpoint_location): Use
4290 (print_one_catch_solib): Use string_printf.
4291 * coff-pe-read.c (add_pe_exported_sym): Likewise.
4292 (add_pe_forwarded_sym): Likewise.
4293 * dwarf2read.c (create_type_unit_group): Likewise.
4294 (build_error_marker_type): Likewise.
4295 * infcall.c (get_function_name): Likewise.
4296 * valprint.c (print_converted_chars_to_obstack): Likewise.
4297 * xtensa-tdep.c (xtensa_register_type): Likewise.
4299 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
4301 * remote.c (remote_target::download_tracepoint): Fix format
4304 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4306 * tracefile.c: Include common/byte-vector.h.
4307 (trace_save): Change type of buf to gdb::byte_vector. Initialize
4308 with trace_regblock_size if needed. Update uses of buf.
4310 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4312 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
4313 std::vector<unsigned char>.
4314 * tracepoint.c (collection_list::collection_list): Remove
4315 m_regs_mask initializer from initializer list. Resize
4316 m_regs_mask using the largest remote register number.
4317 (collection_list::add_remote_register): Remove size check on
4318 m_regs_mask. Use at to access element.
4319 (collection_list::stringify): Change type of temp_buf to
4320 gdb::char_vector. Update uses of temp_buf. Resize if needed to
4321 stringify the register mask. Use pack_hex_byte for the register
4324 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4326 * tracepoint.h (class collection_list) <add_register>: Remove.
4327 <add_remote_register, add_ax_registers, add_local_register>:
4329 <add_memrange>: Add scope parameter.
4330 * tracepoint.c (encode_actions_1): Likewise.
4331 (collection_list::add_register): Rename to ...
4332 (collection_list::add_remote_register): ... this. Update
4334 (collection_list::add_ax_registers, add_local_register): New
4336 (collection_list::add_memrange): Add scope parameter. Call
4337 add_local_register instead of add_register.
4338 (finalize_tracepoint_aexpr): New function.
4339 (collection_list::collect_symbol): Update calls to add_memrange.
4340 Call add_local_register instead of add_register. Call
4341 add_ax_registers. Call finalize_tracepoint_aexpr.
4342 (encode_actions_1): Get remote regnos for $reg action. Call
4343 add_remote_register, add_ax_registers, and add_local_register.
4344 Update call to add_memrange. Call finalize_tracepoint_aexpr.
4345 (validate_actionline): Call finalize_tracepoint_aexpr.
4347 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4349 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
4350 Replace array buf with gdb::char_vector buf, of size
4351 get_remote_packet_size (). Replace references to buf and
4352 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
4353 and xsnprintf with snprintf. Raise errors if the buffer is too
4356 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4358 * remote.c (remote_target::download_tracepoint): Fix the has_more
4359 predicate in the QTDP action list iteration.
4361 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4363 * remote.c (remote_target::download_tracepoint): Fix indentation
4366 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4368 * proc-api.c (_initialize_proc_api): Remove c, unused.
4369 * procfs.c (procfs_init_inferior): Remove signals, unused.
4370 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4373 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
4374 Andrew Burgess <andrew.burgess@embecosm.com>
4376 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4377 'W_STOPCODE (0)' as this could be ambiguous.
4379 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
4381 * ser-tcp.c (net_open): Fix thinko when deciding whether to
4382 disable TCP's Nagle algorithm (use "ai_protocol" instead of
4385 2018-08-02 Tom Tromey <tom@tromey.com>
4388 * dwarf2read.c (read_func_scope): Set symtab on template parameter
4390 (process_structure_scope): Likewise.
4392 2018-08-02 Xavier Roirand <roirand@adacore.com>
4395 * darwin-nat.c (darwin_kill_inferior): Fix handling of
4398 2018-08-02 Tom Tromey <tom@tromey.com>
4400 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4401 (darwin_suspend_inferior, darwin_resume_inferior)
4402 (darwin_decode_notify_message, darwin_resume_inferior_threads)
4403 (darwin_check_new_threads): Check result of get_darwin_inferior.
4405 2018-07-31 Joel Brobecker <brobecker@adacore.com>
4409 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
4411 * varobj.c (varobj_get_path_expr_parent): Report an error if
4412 parent is a dynamic varobj.
4414 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4416 * gnulib/aclocal.m4: Re-generate.
4417 * gnulib/config.in: Re-generate.
4418 * gnulib/configure: Re-generate.
4419 * gnulib/import/Makefile.in: Re-generate.
4420 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4421 * gnulib/import/m4/onceonly.m4: Re-generate.
4423 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4425 * target-descriptions.c (struct xml_test_tdesc): New.
4426 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4427 (record_xml_tdesc): Update.
4428 (maintenance_check_xml_descriptions): Update.
4429 * target-descriptions.h (record_xml_tdesc): Update comment.
4431 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
4433 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4434 checking array bounds are defined.
4436 2018-07-30 Tom Tromey <tom@tromey.com>
4438 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4439 irreflexivity violation.
4441 2018-07-30 Tom Tromey <tom@tromey.com>
4443 * cli/cli-decode.c (lookup_cmd): Remove lint code.
4444 * value.c (unpack_long): Remove lint code.
4445 * valops.c (value_ind): Remove lint code.
4446 * valarith.c (value_x_binop, value_x_unop, value_equal)
4447 (value_pos): Remove lint code.
4449 2018-07-28 Tom de Vries <tdevries@suse.de>
4451 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4452 with undefined upper bound as <optimized out>.
4454 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
4456 * gcore.in: Rename variable "name" to "prefix". Expand
4459 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
4461 * windows-nat.c (windows_nat_target::create_inferior): Update to
4462 call close() in global namespace.
4464 2018-07-26 Tom Tromey <tom@tromey.com>
4466 * dwarf-index-write.c (add_address_entry): Don't add objfile
4468 * dbxread.c (find_stab_function): Rename from
4469 find_stab_function_addr. Return a bound_minimal_symbol.
4470 (read_dbx_symtab): Use raw_text_low, raw_text_high.
4471 Don't add objfile offsets.
4472 (end_psymtab): Use raw_text_low, raw_text_high,
4473 MSYMBOL_VALUE_RAW_ADDRESS.
4474 (read_ofile_symtab): Update.
4475 (process_one_symbol): Update.
4476 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
4478 (dw2_relocate): Remove.
4479 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
4481 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
4483 (process_psymtab_comp_unit_reader, add_partial_symbol)
4484 (add_partial_subprogram, dwarf2_ranges_read): Update.
4485 (load_partial_dies): Update.
4486 (add_address_entry): Don't add objfile offsets.
4487 (dwarf2_build_include_psymtabs): Update.
4488 (create_addrmap_from_aranges): Don't add objfile offsets.
4489 (dw2_find_pc_sect_compunit_symtab): Update.
4490 * mdebugread.c (parse_symbol): Don't add objfile offsets.
4491 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
4493 (parse_partial_symbols): Don't add objfile offsets. Use
4494 raw_text_low, raw_text_high. Update.
4495 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
4496 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
4497 or call 'relocate' quick function. Clear psymbol_map.
4498 * psympriv.h (struct partial_symbol) <address>: Add section
4500 <set_unrelocated_address>: Rename from set_address.
4501 <raw_text_low, raw_text_high>: New methods.
4502 <text_low, text_high>: Add objfile parameter.
4503 (add_psymbol_to_bcache): Add 'section' parameter. Call
4504 set_unrelocated_address.
4505 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4506 (find_pc_psymbol): Update.
4507 (fixup_psymbol_section, relocate_psymtabs): Remove.
4508 (dump_psymtab, psym_functions): Update.
4509 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
4511 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4512 (start_psymtab_common): Update.
4513 * symfile-debug.c (debug_qf_relocate): Remove.
4514 (debug_sym_quick_functions): Update.
4515 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
4516 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
4519 2018-07-26 Tom Tromey <tromey@redhat.com>
4521 * dbxread.c (end_psymtab): Use text_high_valid and
4523 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
4524 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
4525 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4527 <text_low_valid, text_high_valid>: New fields.
4528 <set_text_low, set_text_high>: Update.
4529 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
4531 2018-07-26 Tom Tromey <tom@tromey.com>
4533 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
4535 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
4536 textlow and texthigh fields.
4537 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
4539 * mdebugread.c (parse_lines, parse_partial_symbols)
4540 (psymtab_to_symtab_1): Update.
4541 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4542 Rename fields. Update comment. Now private.
4543 <text_low, text_high, set_text_low, set_text_high>: New methods.
4544 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4545 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
4546 (start_psymtab_common, maintenance_info_psymtabs)
4547 (maintenance_check_psymtabs): Update.
4548 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
4550 (scan_xcoff_symtab): Update.
4552 2018-07-26 Tom Tromey <tromey@redhat.com>
4554 * psympriv.h (struct partial_symbol) <unrelocated_address,
4555 address, set_address>: New methods.
4556 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
4557 (fixup_psymbol_section, relocate_psymtabs): Update.
4558 (print_partial_symbols): Add 'objfile' parameter. Update.
4559 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
4562 2018-07-26 Tom Tromey <tom@tromey.com>
4564 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4565 (debug_names::write_psymbols): Update.
4566 * psympriv.h (struct partial_symbol): Derive from
4567 general_symbol_info.
4568 <obj_section>: New method.
4569 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
4570 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4571 (find_pc_sect_psymbol, fixup_psymbol_section)
4572 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
4573 (print_partial_symbols, recursively_search_psymtabs)
4574 (compare_psymbols, psymbol_hash, psymbol_compare)
4575 (add_psymbol_to_bcache, maintenance_check_psymtabs)
4576 (psymbol_name_matches, psym_fill_psymbol_map): Update.
4578 2018-07-26 Tom Tromey <tromey@redhat.com>
4580 * dbxread.c (end_psymtab): Remove dead code.
4582 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
4584 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
4585 DWARF unwinders are disabled.
4586 * dwarf2-frame.c: Add dwarf2read.h include.
4587 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
4589 (dwarf2_frame_unwinders_enabled_p): Define.
4590 (show_dwarf_unwinders_enabled_p): New function.
4591 (_initialize_dwarf2_frame): Register switch to control DWARF
4593 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
4594 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
4595 (show_dwarf_cmdlist): Remove static keyword.
4596 * dwarf2read.h (set_dwarf_cmdlist): Declare.
4597 (show_dwarf_cmdlist): Declare.
4598 * NEWS: Document new feature.
4600 2018-07-26 Tom de Vries <tdevries@suse.de>
4602 PR breakpoints/23366
4603 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
4605 2018-07-26 Tom de Vries <tdevries@suse.de>
4607 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
4608 DW_AT_count can't be translated to a dynamic prop.
4610 2018-07-25 Tom de Vries <tdevries@suse.de>
4612 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
4615 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
4617 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
4619 2018-07-25 Joel Brobecker <brobecker@adacore.com>
4621 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
4623 2018-07-24 Keith Seitz <keiths@redhat.comt
4626 * dwarf2read.c (dw2_add_symbol_to_list): New function.
4627 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
4628 instead of add_symbol_to_list.
4629 (read_file_scope): Call prepare_one_comp_unit before reading
4632 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
4634 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
4636 2018-07-24 Tom Tromey <tom@tromey.com>
4638 * utils.c (malloc, realloc, free): Don't declare.
4639 * configure, config.in: Rebuild.
4640 * configure.ac: Don't check for declarations of free, malloc, or
4643 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4645 * aarch64-linux-nat.c
4646 (aarch64_linux_nat_target::stopped_data_address): Remove unused
4648 * arm-linux-nat.c (fetch_regs): Likewise.
4649 (store_regs): Likewise.
4650 (fetch_vfp_regs): Likewise.
4651 (store_vfp_regs): Likewise.
4652 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
4653 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
4654 (arm_linux_nat_target::insert_watchpoint): Likewise.
4655 (arm_linux_nat_target::remove_watchpoint): Likewise.
4656 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
4658 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
4660 * ppc-linux-nat.c (fetch_register): Likewise.
4661 (fetch_all_gp_regs): Likewise.
4662 (fetch_ppc_registers): Likewise.
4663 (store_all_gp_regs): Likewise.
4664 (store_ppc_registers): Likewise.
4665 (hwdebug_insert_point): Likewise.
4666 (can_use_watchpoint_cond_accel): Likewise.
4667 * remote-sim.c (gdb_os_write_stdout): Likewise.
4669 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4670 Tom Tromey <tom@tromey.com>
4672 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
4674 * configure: Rebuild.
4676 2018-07-22 Tom Tromey <tom@tromey.com>
4678 * regformats/regdat.sh: Define xmltarget_${name} inside
4679 #ifndef IN_PROCESS_AGENT.
4681 2018-07-22 Tom Tromey <tom@tromey.com>
4683 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
4685 2018-07-22 Tom Tromey <tom@tromey.com>
4687 * symfile.c (reread_symbols): Notify iter, not objfile.
4689 2018-07-22 Tom Tromey <tom@tromey.com>
4691 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
4693 (ravenscar_thread_target::prepare_to_store): Likewise.
4695 2018-07-22 Tom Tromey <tom@tromey.com>
4697 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
4698 unused variable. Call value_fetch_lazy when needed.
4699 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4700 Remove unused variable. Call value_fetch_lazy when needed.
4702 2018-07-22 Tom Tromey <tom@tromey.com>
4704 * m32c-tdep.c (mark_dma): Return void.
4705 (make_regs): Remove unused declarations.
4707 2018-07-22 Tom Tromey <tom@tromey.com>
4709 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
4710 cmdscm_get_valid_command_smob_arg_unsafe for effect.
4711 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
4712 bkscm_get_valid_block_smob_arg_unsafe for effect.
4714 2018-07-22 Tom Tromey <tom@tromey.com>
4716 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
4719 2018-07-22 Tom Tromey <tom@tromey.com>
4721 * windows-nat.c (saved_context): Conditionally define.
4722 * remote.c (remote_target::remote_btrace_maybe_reopen):
4723 Conditionally declare "warned".
4724 * inflow.c (sigquit_ours): Conditionally define.
4725 (new_tty): Move "tty" declaration inside #if.
4726 * guile/guile.c (guile_datadir): Conditionally define.
4727 * charset.c (set_be_le_names): Move some declarations inside #if.
4728 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
4730 (parse_xml_btrace_conf): Likewise.
4732 2018-07-22 Tom Tromey <tom@tromey.com>
4734 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
4736 2018-07-22 Tom Tromey <tom@tromey.com>
4738 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
4739 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
4740 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
4741 * buildsym-legacy.c (get_macro_table): Remove unused variable.
4742 * stack.c (frame_apply_level_command): Remove unused variable.
4743 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
4744 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
4745 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
4747 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
4748 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
4749 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
4751 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
4752 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
4754 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
4755 Remove unused variable.
4756 * cli/cli-script.c (recurse_read_control_structure): Remove unused
4758 * common/tdesc.c (print_xml_feature::visit): Remove unused
4760 * compile/compile-object-load.c (store_regs): Remove unused
4762 * complaints.c (clear_complaints): Remove unused variable.
4763 * corelow.c (core_target_open): Remove unused variable.
4764 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
4766 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
4768 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
4770 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
4772 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
4774 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
4776 * ia64-tdep.c (examine_prologue): Remove unused variable.
4777 * infcall.c (run_inferior_call): Remove unused variable.
4778 * inferior.c (exit_inferior): Remove unused variable.
4779 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
4780 * linespec.c (decode_line_2): Remove unused variable.
4781 * linux-nat.c (super_close): Remove.
4782 * linux-tdep.c (linux_info_proc): Remove unused variable.
4783 * mi/mi-main.c (mi_execute_command): Remove unused variable.
4784 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
4785 Remove unused variable.
4786 * parse.c (find_minsym_type_and_address): Remove unused variable.
4787 * printcmd.c (info_symbol_command, printf_floating): Remove unused
4789 * python/py-breakpoint.c (bppy_set_commands): Remove unused
4791 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
4793 * record-btrace.c (record_btrace_target::store_registers): Remove
4795 (cmd_show_record_btrace_cpu): Remove unused variable.
4796 * riscv-tdep.c (riscv_register_reggroup_p)
4797 (riscv_push_dummy_call, riscv_return_value): Remove unused
4799 * rust-exp.y (literal): Remove unused variable.
4800 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
4802 <STRUCTOP_ANONYMOUS>: Likewise.
4803 * s390-linux-tdep.c (s390_linux_init_abi_31)
4804 (s390_linux_init_abi_64): Remove unused variable.
4805 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
4806 (file_select_thread, net_windows_open, _initialize_ser_windows):
4807 Remove unused variables.
4808 * symtab.c (find_pc_sect_line): Remove unused variable.
4809 * target-memory.c (compute_garbled_blocks): Remove unused
4811 (target_write_memory_blocks): Remove unused variable.
4812 * target.c (target_stack::unpush): Remove unused variables.
4813 * tracepoint.c (start_tracing, all_tracepoint_actions)
4814 (merge_uploaded_trace_state_variables)
4815 (print_one_static_tracepoint_marker): Remove unused variable.
4816 * unittests/basic_string_view/element_access/char/1.cc (test01):
4817 Remove unused variable.
4818 * windows-nat.c (windows_continue, windows_add_all_dlls)
4819 (do_initial_windows_stuff, windows_nat_target::create_inferior):
4820 Remove unused variables.
4822 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4824 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
4825 attr_profile in HAVE_ELF.
4826 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4829 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
4831 * frame.c (frame_register_unwind): Change parameter name.
4832 (frame_unwind_register): Likewise.
4833 (frame_unwind_register_value): Likewise.
4834 (frame_unwind_register_signed): Likewise.
4835 (frame_unwind_register_unsigned): Likewise.
4836 * frame.h (frame_register_unwind): Likewise.
4837 (frame_unwind_register): Likewise.
4838 (frame_unwind_register_value): Likewise.
4839 (frame_unwind_register_signed): Likewise.
4840 (frame_unwind_register_unsigned): Likewise.
4841 (frame_unwind_arch): Likewise.
4843 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4845 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4848 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4850 * mips-linux-nat.c (mips_linux_nat_target::read_description):
4851 Call `get_ptrace_pid' rather than extracting the ptrace PID by
4854 2018-07-20 Keith Seitz <keiths@redhat.com>
4856 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4857 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4858 m_compunit_symtab, m_language>: Add "m_" prefix.
4860 * buildsym.c: Update all uses.
4862 2018-07-20 Tom Tromey <tom@tromey.com>
4864 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4865 * buildsym.h (record_line_ftype): Remove typedef.
4867 2018-07-20 Tom Tromey <tom@tromey.com>
4869 * buildsym-legacy.h (augment_type_symtab): Don't declare.
4870 (end_expandable_symtab): Likewise.
4871 (end_symtab_get_static_block): Likewise.
4872 (end_symtab_from_static_block): Likewise.
4873 * buildsym-legacy.c (augment_type_symtab): Remove.
4874 (end_expandable_symtab): Remove.
4875 (end_symtab_get_static_block): Remove.
4876 (end_symtab_from_static_block): Remove.
4878 2018-07-20 Tom Tromey <tom@tromey.com>
4880 * dwarf2read.c: Include buildsym.h.
4881 (struct dwarf2_cu) <builder>: New method.
4882 (fixup_go_packaging): Update.
4883 (process_full_comp_unit, process_full_type_unit): Update. Don't
4884 use scoped_free_pendings.
4885 (using_directives): Add "cu" parameter, remove "language".
4886 (read_import_statement, setup_type_unit_groups, )
4887 (read_func_scope, read_lexical_block_scope)
4888 (dwarf2_record_block_ranges, read_namespace): Update.
4889 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4890 (lnp_state_machine::handle_end_sequence): Update.
4891 (class lnp_state_machine) <m_cu>: New member.
4892 <m_record_line_callback>: Remove.
4893 <m_currently_recording_lines>: New member.
4894 (lnp_state_machine::handle_set_file): Update.
4895 (noop_record_line): Remove.
4896 (dwarf_record_line_p): Add cu parameter.
4897 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4898 (lnp_state_machine::record_line)
4899 (lnp_state_machine::lnp_state_machine)
4900 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4901 (dwarf_decode_lines): Update.
4902 (dwarf2_start_subfile): Add cu parameter.
4903 (dwarf2_start_symtab, new_symbol): Update.
4904 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4905 Remove dwarf2_per_objfile parameter.
4906 (dwarf_decode_macros): Update.
4908 2018-07-20 Tom Tromey <tom@tromey.com>
4910 * stabsread.c (define_symbol): Update.
4911 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4912 * dwarf2read.c (new_symbol): Update.
4913 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4914 * cp-namespace.c: Include buildsym.h.
4915 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4916 * buildsym-legacy.c (get_buildsym_compunit): New function.
4918 2018-07-20 Tom Tromey <tom@tromey.com>
4920 * xcoffread.c: Include buildsym-legacy.h.
4921 * windows-nat.c: Include buildsym-legacy.h.
4922 * stabsread.c: Include buildsym-legacy.h.
4923 * mdebugread.c: Include buildsym-legacy.h.
4924 * buildsym-legacy.h: New file.
4925 * buildsym-legacy.c: New file, from buildsym.c.
4926 * go32-nat.c: Include buildsym-legacy.h.
4927 * dwarf2read.c: Include buildsym-legacy.h.
4928 * dbxread.c: Include buildsym-legacy.h.
4929 * cp-namespace.c: Include buildsym-legacy.h.
4930 * coffread.c: Include buildsym-legacy.h.
4931 * buildsym.h: Move some contents to buildsym-legacy.h.
4932 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4934 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4936 2018-07-20 Tom Tromey <tom@tromey.com>
4938 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4939 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4940 (buildsym_compunit::buildsym_compunit)
4941 (buildsym_compunit::~buildsym_compunit)
4942 (buildsym_compunit::get_macro_table): Define.
4944 2018-07-20 Tom Tromey <tom@tromey.com>
4946 * buildsym.c (reset_symtab_globals): Remove.
4947 (buildsym_compunit::end_symtab_from_static_block): Update.
4948 (buildsym_compunit::augment_type_symtab): Update.
4949 (end_symtab_from_static_block): Call free_buildsym_compunit.
4950 (augment_type_symtab, end_symtab, end_expandable_symtab):
4953 2018-07-20 Tom Tromey <tom@tromey.com>
4955 * arch-utils.c: Do not include buildsym.h.
4956 * mipsread.c: Do not include buildsym.h.
4957 * machoread.c: Do not include buildsym.h.
4958 * elfread.c: Do not include buildsym.h.
4960 2018-07-20 Tom Tromey <tom@tromey.com>
4962 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4964 (buildsym_compunit): Add new constructor.
4965 (struct buildsym_compunit) <get_last_source_file, finish_block,
4966 record_block_range, start_subfile, patch_subfile_names,
4967 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4968 set_last_source_start_addr, get_last_source_start_addr,
4969 get_local_using_directives, set_local_using_directives,
4970 get_global_using_directives, outermost_context_p,
4971 get_current_context_stack, get_context_stack_depth,
4972 get_current_subfile, get_local_symbols, get_file_symbols,
4973 get_global_symbols, record_debugformat, record_producer,
4974 push_context, pop_context, end_symtab_get_static_block,
4975 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4977 <record_pending_block, finish_block_internal, make_blockvector,
4978 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4982 2018-05-22 Tom Tromey <tom@tromey.com>
4984 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4986 (finish_block_internal): Update.
4988 2018-07-20 Tom Tromey <tom@tromey.com>
4990 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4992 (finish_block_internal): Update.
4994 2018-07-20 Tom Tromey <tom@tromey.com>
4996 * buildsym.h (EXTERN): Don't define or undef.
4997 * buildsym.c (EXTERN): Don't define.
4999 2018-07-20 Tom Tromey <tom@tromey.com>
5001 * buildsym.c: Remove TODO comment.
5003 2018-07-20 Tom Tromey <tom@tromey.com>
5005 * coffread.c (coff_symtab_read): Update.
5006 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5007 (xcoff_new_init): Update.
5008 * mipsread.c (mipscoff_new_init): Update.
5009 * mdebugread.c (mdebug_build_psymtabs): Update.
5010 * elfread.c (elf_new_init): Update.
5011 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5013 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5014 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5015 (stabsect_build_psymtabs): Update.
5016 * buildsym.h (buildsym_init): Don't declare.
5017 * buildsym.c: Update comment.
5018 (prepare_for_building): Remove.
5019 (start_symtab, restart_symtab): Update.
5020 (reset_symtab_globals): Update comment.
5021 (buildsym_init): Remove.
5023 2018-07-20 Tom Tromey <tom@tromey.com>
5025 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5026 * stabsread.c (patch_block_stabs, define_symbol, read_type)
5027 (read_enum_type, common_block_start, common_block_end)
5028 (cleanup_undefined_types_1, finish_global_stabs): Update.
5029 * mdebugread.c (psymtab_to_symtab_1): Update.
5030 * dwarf2read.c (fixup_go_packaging, read_func_scope)
5031 (read_lexical_block_scope, new_symbol): Update.
5032 * dbxread.c (process_one_symbol): Update.
5033 * coffread.c (coff_symtab_read, process_coff_symbol)
5034 (coff_read_enum_type): Update.
5035 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5037 (get_local_symbols, get_file_symbols, get_global_symbols): New
5039 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
5041 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
5042 (~scoped_free_pendings): Update.
5043 (finish_block, prepare_for_building, reset_symtab_globals)
5044 (end_symtab_get_static_block, end_symtab_with_blockvector)
5045 (augment_type_symtab, push_context): Update.
5046 (get_local_symbols, get_file_symbols, get_global_symbols): New
5048 (buildsym_init): Update.
5050 2018-07-20 Tom Tromey <tom@tromey.com>
5052 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
5053 (process_full_type_unit): Likewise.
5054 (dwarf2_start_symtab): Set list_in_scope.
5056 2018-07-20 Tom Tromey <tom@tromey.com>
5058 * dwarf2read.c (process_psymtab_comp_unit_reader)
5059 (build_type_psymtabs_reader): Do not set list_in_scope.
5061 2018-07-20 Tom Tromey <tom@tromey.com>
5063 * buildsym.c (free_pendings): Remove.
5064 (add_symbol_to_list, scoped_free_pendings)
5065 (finish_block_internal, buildsym_init): Update.
5067 2018-07-20 Tom Tromey <tom@tromey.com>
5069 * xcoffread.c (read_xcoff_symtab): Update.
5070 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5072 * dbxread.c (process_one_symbol): Update.
5073 * coffread.c (coff_symtab_read): Update.
5074 * buildsym.h (finish_block): Update.
5075 * buildsym.c (finish_block): Remove "listhead" argument.
5076 (end_symtab_get_static_block): Update.
5078 2018-07-20 Tom Tromey <tom@tromey.com>
5080 * buildsym.h (class scoped_free_pendings): Remove constructor.
5081 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
5083 <m_pending_block_obstack, m_pending_blocks>: New members.
5084 (pending_block_obstack, pending_blocks): Remove.
5085 (scoped_free_pendings::scoped_free_pendings): Default.
5086 (~scoped_free_pendings): Update.
5087 (free_pending_blocks): Remove.
5088 (finish_block_internal, record_pending_block, make_blockvector)
5089 (end_symtab_get_static_block, augment_type_symtab, push_context)
5090 (buildsym_init): Update.
5092 2018-07-20 Tom Tromey <tom@tromey.com>
5094 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
5095 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
5097 (pending_addrmap, pending_addrmap_obstack)
5098 (pending_addrmap_interesting): Remove.
5099 (scoped_free_pendings, record_block_range, make_blockvector)
5100 (prepare_for_building, reset_symtab_globals, buildsym_init):
5103 2018-07-20 Tom Tromey <tom@tromey.com>
5105 * xcoffread.c (process_linenos): Update.
5106 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
5107 * mdebugread.c (psymtab_to_symtab_1): Update.
5108 * dwarf2read.c (setup_type_unit_groups)
5109 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
5110 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
5111 * dbxread.c (process_one_symbol): Update.
5112 * coffread.c (coff_symtab_read, enter_linenos)
5113 (process_coff_symbol): Update.
5114 * buildsym.h (current_subfile): Don't declare.
5115 (get_current_subfile): Declare.
5116 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
5118 (start_subfile, free_buildsym_compunit, push_subfile)
5119 (prepare_for_building, start_symtab): Update.
5120 (get_current_subfile): New function.
5122 2018-07-20 Tom Tromey <tom@tromey.com>
5124 * coffread.c (coff_symtab_read): Update.
5125 * xcoffread.c (read_xcoff_symtab): Update.
5126 * dwarf2read.c (new_symbol): Update.
5127 (read_func_scope, read_lexical_block_scope): Update.
5128 * dbxread.c (process_one_symbol): Update.
5129 * buildsym.h (context_stack, context_stack_depth): Don't declare.
5130 (outermost_context_p): Remove macro.
5131 (outermost_context_p, get_current_context_stack)
5132 (get_context_stack_depth): Declare.
5133 (pop_context): Return struct context_stack.
5134 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
5136 (context_stack_size): Remove.
5137 (INITIAL_CONTEXT_STACK_SIZE): Remove.
5138 (prepare_for_building, end_symtab_get_static_block)
5139 (augment_type_symtab, push_context): Update.
5140 (pop_context): Return struct context_stack.
5141 (outermost_context_p, get_current_context_stack)
5142 (get_context_stack_depth): New functions.
5143 (buildsym_init): Update.
5145 2018-07-20 Tom Tromey <tom@tromey.com>
5147 * rust-exp.y: Now a pure parser. Update all rules.
5148 (%union): Move earlier.
5149 (current_parser, work_obstack): Remove globals.
5150 (rust_parser, ~rust_parser): Update.
5151 (class rust_parser) <copy_name, concat3, crate_name, super_name,
5152 lex_character, lex_number, lex_string, lex_identifier,
5153 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
5154 convert_name, convert_params_to_expression,
5155 convert_ast_to_expression, ast_basic_type, ast_operation,
5156 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
5157 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
5158 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
5159 ast_array_type, ast_slice_type, ast_reference_type,
5160 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
5161 (rust_parse): Update.
5162 (rustyyerror, rustyylex): Add parser parameter.
5163 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
5164 (rust_lex_stringish_test, rust_lex_test_sequence)
5165 (rust_lex_test_trailing_dot, rust_lex_test_completion)
5166 (rust_lex_test_push_back, rust_lex_tests): Update.
5168 2018-07-19 Pedro Alves <palves@redhat.com>
5170 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
5171 gdb::unique_xmalloc_ptr.
5172 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
5173 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
5174 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
5175 copy-initialization.
5176 * guile/scm-pretty-print.c (ppscm_print_children): Use
5177 gdb::unique_xmalloc_ptr instead of cleanups.
5178 (gdbscm_apply_val_pretty_printer): Remove cleanups.
5179 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
5180 gdb::unique_xmalloc_ptr.
5181 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5182 Adjust to use gdb::unique_xmalloc_ptr.
5183 * guile/scm-utils.c (extract_arg): Adjust.
5184 * guile/scm-value.c (gdbscm_value_field): Adjust to use
5185 gdb::unique_xmalloc_ptr instead of a cleanup.
5187 2018-07-19 Tom Tromey <tom@tromey.com>
5189 * utils.c (do_value_free_to_mark)
5190 (make_cleanup_value_free_to_mark): Remove.
5191 * utils.h (make_cleanup_value_free_to_mark): Remove.
5193 2018-07-19 Pedro Alves <palves@redhat.com>
5195 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
5196 forwarding reference.
5198 2018-07-18 Pedro Alves <palves@redhat.com>
5200 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5201 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
5204 2018-07-18 Pedro Alves <palves@redhat.com>
5206 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5208 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5210 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5211 directly instead of a cleanup.
5212 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5213 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
5214 (vlscm_binop_gdbthrow): New, factored out from ...
5215 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
5216 (vlscm_rich_compare): Use gdbscm_wrap.
5217 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5218 instead of a cleanup.
5219 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5221 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5222 Use xfree directly instead of a cleanup.
5223 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5224 Adjust to use gdbscm_wrap and scoped_value_mark.
5225 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5226 (gdbscm_value_address, gdbscm_value_dereference)
5227 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5229 (gdbscm_value_dynamic_type): Use scoped_value_mark.
5230 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5232 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5233 gdbscm_wrap and scoped_value_mark.
5234 (gdbscm_value_to_string): Use xfree directly instead of a
5235 cleanup. Move 'buffer' unique_ptr to TRY scope.
5236 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5237 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
5239 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5240 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5242 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5245 2018-07-18 Tom de Vries <tdevries@suse.de>
5247 * findvar.c (default_read_var_value): Also resolve dynamic type for
5248 LOC_OPTIMIZED_OUT vars.
5250 2018-07-18 Maciej W. Rozycki <macro@mips.com>
5252 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
5255 2018-07-17 Tom Tromey <tom@tromey.com>
5257 * guile/scm-param.c (pascm_set_func, pascm_show_func)
5258 (compute_enum_list, pascm_set_param_value_x)
5259 (gdbscm_parameter_value): Update.
5260 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
5261 (gdbscm_scm_to_host_string): Update.
5262 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
5264 * guile/scm-cmd.c (cmdscm_add_completion): Update.
5265 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
5266 * guile/scm-string.c (gdbscm_scm_to_string): Return
5268 (gdbscm_scm_to_host_string): Likewise.
5270 2018-07-17 Tom Tromey <tom@tromey.com>
5272 * guile/guile.c (gdbscm_eval_from_control_command): Update.
5273 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
5274 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
5275 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
5278 2018-07-17 Tom Tromey <tom@tromey.com>
5280 * guile/scm-param.c (pascm_signal_setshow_error): Update.
5281 * guile/guile-internal.h (gdbscm_exception_message_to_string):
5283 * guile/scm-cmd.c (cmdscm_function): Update.
5284 * guile/scm-pretty-print.c
5285 (ppscm_print_exception_unless_memory_error): Update.
5286 * guile/scm-exception.c (gdbscm_exception_message_to_string):
5287 Return unique_xmalloc_ptr.
5289 2018-07-17 Tom Tromey <tom@tromey.com>
5291 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
5294 2018-07-17 Jim Wilson <jimw@sifive.com>
5296 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
5297 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
5298 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
5299 unecessary braces after EF_RISCV_RVC test. Delete call to
5300 set_gdbarch_decr_pc_after_break.
5302 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
5303 RISCV_LAST_FP_REGNUM + 1.
5304 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
5306 2018-07-17 Tom Tromey <tom@tromey.com>
5308 * configure.ac: Remove --disable-gdbcli.
5309 * configure: Rebuild.
5310 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
5311 (SUBDIR_CLI_CFLAGS): Remove.
5312 (SFILES): Use SUBDIR_CLI_SRCS.
5313 (COMMON_OBS): Use SUBDIR_CLI_OBS.
5315 2018-07-17 Tom Tromey <tom@tromey.com>
5318 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
5320 2018-07-16 Jim Wilson <jimw@sifive.com>
5322 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
5324 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5326 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
5328 (libunwind_frame_sniffer): Likewise.
5329 (libunwind_frame_prev_register): Likewise.
5330 (libunwind_sigtramp_frame_sniffer): Likewise.
5331 * ia64-tdep.c (ia64_access_reg): Likewise.
5332 (ia64_access_rse_reg): Likewise.
5333 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
5334 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
5336 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5338 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
5340 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5342 * remote-sim.c (gdbsim_target::close,
5343 gdbsim_target::mourn_inferior): Remove unused variables.
5345 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
5347 * ia64-tdep.c (ktab_buf): New global.
5348 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
5349 (get_kernel_table): Adjust.
5351 2018-07-16 Tom Tromey <tom@tromey.com>
5353 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5354 * dwarf2read.c (using_directives, new_symbol): Use
5355 outermost_context_p.
5356 * dbxread.c (process_one_symbol): Use outermost_context_p.
5357 * coffread.c (coff_symtab_read): Use outermost_context_p.
5359 2018-07-16 Tom Tromey <tom@tromey.com>
5361 * dwarf2read.c (using_directives, read_func_scope)
5362 (read_lexical_block_scope): Update.
5363 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5364 * buildsym.h (local_using_directives, global_using_directives):
5366 (get_local_using_directives, set_local_using_directives)
5367 (get_global_using_directives): Declare.
5368 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5369 m_global_using_directives>: New members.
5370 (finish_block_internal, prepare_for_building)
5371 (reset_symtab_globals, end_symtab_get_static_block)
5372 (push_context): Update.
5373 (get_local_using_directives, set_local_using_directives)
5374 (get_global_using_directives): New functions.
5375 (buildsym_init): Update.
5377 2018-07-16 Tom Tromey <tom@tromey.com>
5379 * xcoffread.c (xcoff_initial_scan): Don't call
5380 free_pending_blocks.
5381 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5382 * buildsym.h (class scoped_free_pendings): Add constructor.
5383 (free_pending_blocks): Don't declare.
5384 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5385 (free_pending_blocks): Now static.
5387 2018-07-16 Tom Tromey <tom@tromey.com>
5389 * buildsym.h (push_subfile, pop_subfile): Update declarations.
5390 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5392 (struct subfile_stack): Remove.
5393 (subfile_stack): Remove.
5394 (push_subfile, pop_subfile, buildsym_init): Update.
5396 2018-07-16 Tom Tromey <tom@tromey.com>
5398 * buildsym.c (push_subfile): Use gdb_assert.
5399 (pop_subfile): Use gdb_assert.
5401 2018-07-16 Tom Tromey <tom@tromey.com>
5403 * buildsym.h (merge_symbol_lists): Remove.
5404 * buildsym.c (merge_symbol_lists): Remove.
5406 2018-07-16 Tom Tromey <tom@tromey.com>
5408 * stabsread.c (scan_file_globals): Update comment.
5409 * stabsread.h (scan_file_globals): Move from buildsym.h.
5410 * buildsym.h (scan_file_globals): Move to stabsread.h.
5412 2018-07-16 Tom Tromey <tom@tromey.com>
5414 * xcoffread.c (xcoff_new_init): Update.
5415 * mipsread.c (mipscoff_new_init): Update.
5416 * mdebugread.c (mdebug_build_psymtabs): Update.
5417 * elfread.c (elf_new_init): Update.
5418 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5419 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5420 * buildsym.h (buildsym_new_init): Don't declare.
5421 * buildsym.c (buildsym_new_init): Remove.
5423 2018-07-16 Tom Tromey <tom@tromey.com>
5425 * stabsread.h (within_function): Move from buildsym.h.
5426 * stabsread.c (start_stabs): Clear within_function.
5427 * coffread.c (coff_start_symtab): Clear within_function.
5428 * buildsym.h (within_function): Move to stabsread.h.
5429 * buildsym.c (prepare_for_building): Update.
5431 2018-07-16 Tom Tromey <tom@tromey.com>
5433 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5434 * dwarf2read.c (dwarf2_start_symtab): Don't set
5435 processing_gcc_compilation.
5436 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5438 2018-07-16 Tom Tromey <tom@tromey.com>
5440 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5441 (next_symbol_text_func): Move from buildsym.h.
5442 * stabsread.c (hashname): Move from buildsym.c.
5443 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5444 (next_symbol_text_func, hashname): Move to stabsread.h.
5445 * buildsym.c: Don't include bcache.h
5446 (hashname): Move to stasbread.c.
5448 2018-07-16 Tom Tromey <tom@tromey.com>
5450 * buildsym.h (context_stack_size): Don't declare.
5451 * buildsym.c (context_stack_size): New global.
5453 2018-07-16 Tom Tromey <tom@tromey.com>
5455 * dbxread.c (processing_acc_compilation): New global.
5456 * buildsym.h (processing_acc_compilation): Don't declare.
5458 2018-07-16 Tom Tromey <tom@tromey.com>
5460 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5461 * dbxread.c (read_ofile_symtab): Update.
5462 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5463 * buildsym.h (last_source_start_addr): Remove.
5464 (set_last_source_start_addr, get_last_source_start_addr):
5466 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5468 (struct buildsym_compunit) <m_last_source_start_addr>: New
5470 (prepare_for_building): Remove start_addr parameter.
5471 (start_symtab, restart_symtab, end_symtab_get_static_block)
5472 (end_symtab_with_blockvector): Update.
5473 (set_last_source_start_addr, get_last_source_start_addr): New
5476 2018-07-16 Tom Tromey <tom@tromey.com>
5478 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
5480 (have_line_numbers): Remove.
5481 (record_line, prepare_for_building, end_symtab_get_static_block)
5482 (augment_type_symtab): Update.
5484 2018-07-16 Tom Tromey <tom@tromey.com>
5486 * buildsym.c (~buildsym_compunit): Free the macro table.
5487 (struct buildsym_compunit) <get_macro_table, release_macros>: New
5489 <m_pending_macros>: New member.
5490 (pending_macros): Remove.
5491 (~scoped_free_pendings, get_macro_table, prepare_for_building)
5492 (reset_symtab_globals, end_symtab_get_static_block)
5493 (end_symtab_with_blockvector, augment_type_symtab)
5494 (buildsym_init): Update.
5496 2018-07-16 Tom Tromey <tom@tromey.com>
5498 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
5500 (buildsym_compunit::set_last_source_file): New method.
5501 <m_last_source_file>: New member.
5502 (prepare_for_building): Remove "name" parameter.
5503 (start_symtab, restart_symtab, reset_symtab_globals): Update.
5504 (last_source_file): Remove.
5505 (set_last_source_file, get_last_source_file): Update.
5507 2018-07-16 Tom Tromey <tom@tromey.com>
5509 * buildsym.c (prepare_for_building): Add assert.
5511 2018-07-16 Tom Tromey <tom@tromey.com>
5513 * buildsym.c (~buildsym_compunit): Update.
5514 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
5515 (start_subfile, patch_subfile_names)
5516 (end_symtab_with_blockvector): Update.
5518 2018-07-16 Tom Tromey <tom@tromey.com>
5520 * buildsym.c (struct buildsym_compunit): Add constructor,
5521 destructor, initializers.
5522 (start_buildsym_compunit): Remove.
5523 (free_buildsym_compunit): Use "delete".
5524 (start_symtab, restart_symtab): Use "new".
5526 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
5528 * symfile.c (set_objfile_default_section_offset): Remove struct
5531 2018-07-14 Stafford Horne <shorne@gmail.com>
5533 * (Responsible Maintainers): Add myself as or1k maintainer.
5535 2018-07-13 Tom Tromey <tom@tromey.com>
5537 * symfile.c (set_objfile_default_section_offset): Use extra braces
5540 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5542 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
5545 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5547 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5548 unittests/cli-utils-selftests.c
5549 * unittests/cli-utils-selftests.c: New file.
5551 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5553 * NEWS: Mention new commands. Mention change to 'thread apply'.
5555 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5557 * thread.c (thr_try_catch_cmd): New function.
5558 (thread_apply_all_command): Handle qcs flags.
5559 (thread_apply_command): Handle qcs flags.
5560 (taas_command): New function.
5561 (tfaas_command): New function.
5562 (_initialize_thread): Update to setup the new commands 'taas
5563 and 'tfaas'. Change doc string for 'thread apply'.
5565 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5567 * stack.c: (trailing_outermost_frame): New function, mostly
5568 extracted from backtrace_command_1.
5569 (leading_innermost_frame): New function.
5570 (backtrace_command_1): Update to call trailing_outermost_frame.
5571 (frame_apply_command_count): New function.
5572 (frame_apply_level_command): New function.
5573 (frame_apply_all_command): New function.
5574 (frame_apply_command): New function.
5575 (faas_command): New function.
5576 (frame_cmd_list): New variable.
5577 (_initialize_stack): Update to setup the new commands 'frame apply'
5580 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5582 * cli-utils.c (number_or_range_parser::get_number): Only handle
5583 numbers or convenience var as numbers.
5584 (parse_flags): New function.
5585 (parse_flags_qcs): New function.
5586 (number_or_range_parser::finished): Ensure parsing end is detected
5587 before end of string.
5588 * cli-utils.h (parse_flags): New function.
5589 (parse_flags_qcs): New function.
5590 (number_or_range_parser): Remove m_finished bool.
5591 (number_or_range_parser::skip_range): Set m_in_range to false.
5593 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
5595 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
5598 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5599 Jan Kratochvil <jan.kratochvil@redhat.com>
5600 Paul Fertser <fercerpav@gmail.com>
5601 Tsutomu Seki <sekiriki@gmail.com>
5602 Pedro Alves <palves@redhat.com>
5604 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5605 'unittests/parse-connection-spec-selftests.c'.
5606 (COMMON_SFILES): Add 'common/netstuff.c'.
5607 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
5608 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
5609 * common/netstuff.c: New file.
5610 * common/netstuff.h: New file.
5611 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
5612 (wait_for_connect): Update comment. New parameter
5613 'gdb::optional<int> sock' instead of 'struct serial *scb'.
5614 Use 'sock' directly instead of 'scb->fd'.
5615 (try_connect): New function, with code from 'net_open'.
5616 (net_open): Rewrite main loop to deal with multiple
5617 sockets/addresses. Handle IPv6-style hostnames; implement
5618 support for IPv6 connections.
5619 * unittests/parse-connection-spec-selftests.c: New file.
5621 2018-07-11 Pedro Alves <palves@redhat.com>
5624 * remote.c (remote_target::remote_detach_pid): Call
5625 set_current_process.
5627 2018-07-11 Pedro Alves <palves@redhat.com>
5629 * h8300-tdep.c (h8300_gdbarch_init): Remove
5630 set_gdbarch_ecoff_reg_to_regnum calls.
5632 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5635 * c-typeprint.c (c_type_print_base_struct_union): Don't print
5636 offsets/sizes for static members of a class/struct.
5638 2018-07-11 Alan Hayward <alan.hayward@arm.com>
5640 * target-descriptions.c (tdesc_register_bitsize): Rename.
5641 * target-descriptions.h (tdesc_register_bitsize): Likewise.
5642 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
5643 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
5645 2018-07-10 Tom Tromey <tom@tromey.com>
5647 * breakpoint.c (moribund_locations): Now static and a
5649 (breakpoint_init_inferior, moribund_breakpoint_here_p)
5650 (build_bpstat_chain, update_global_location_list)
5651 (breakpoint_retire_moribund): Update.
5652 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
5655 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5657 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
5658 (riscv_register_reggroup_p): Use new function, remove unneeded
5660 (riscv_push_dummy_call): Extend assert to compare against xlen or
5661 flen based on register type.
5663 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5665 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
5667 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5669 * remote.c (show_hardware_watchpoint_limit): New function.
5670 (show_hardware_watchpoint_length_limit): New function.
5671 (show_hardware_breakpoint_limit): New function.
5672 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
5673 where appropriate, update help text.
5675 2018-07-09 Tom Tromey <tom@tromey.com>
5677 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
5678 (CLIBS): Don't mention NAT_CLIBS.
5680 2018-07-09 Tom Tromey <tom@tromey.com>
5682 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
5683 (LIBGDB_OBS, clean mostlyclean): Update.
5684 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
5686 2018-07-09 Tom Tromey <tom@tromey.com>
5688 * Makefile.in (%.c: %.y): Use ECHO_YACC.
5689 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
5690 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
5692 2018-07-09 Tom Tromey <tom@tromey.com>
5694 * Makefile.in (ALLDEPFILES): Remove exec.c.
5695 (COMMON_OBS): Remove exec.o.
5696 (COMMON_SFILES): Add exec.c.
5698 2018-07-09 Tom Tromey <tom@tromey.com>
5700 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
5702 2018-07-09 Tom Tromey <tom@tromey.com>
5704 * Makefile.in (clean mostlyclean): Remove stamp-version.
5705 (version.c): Depend on stamp-version.
5706 (stamp-version): New rule, from version.c rule.
5708 2018-07-09 Tom Tromey <tom@tromey.com>
5710 * Makefile.in (init.c): Depend on stamp-init.
5711 (stamp-init): New rule, from init.c rule.
5712 (clean mostlyclean): Remove stamp-init.
5714 2018-07-09 Tom Tromey <tom@tromey.com>
5716 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
5717 SUBDIR_GCC_COMPILE_SRCS.
5719 2018-07-09 Tom Tromey <tom@tromey.com>
5721 * Makefile.in (init.c): Remove some unused sed rules.
5723 2018-07-09 Tom Tromey <tom@tromey.com>
5725 * Makefile.in (TSOBS): Remove.
5726 (INIT_FILES): Update.
5727 (LIBGDB_OBS): Update.
5728 (COMMON_SFILES): Add inflow.c.
5729 (SFILES): Remove inflow.c.
5731 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5733 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
5735 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
5737 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
5738 get_saveloc_name, is_signal_frame_name, step_name,
5739 init_remote_name, create_addr_space_name,
5740 destroy_addr_space_name, search_unwind_table_name,
5741 find_dyn_list_name): Constify.
5743 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
5745 * darwin-nat.c (darwin_pthread_kill): New function.
5746 (darwin_resume_thread): Use darwin_pthread_kill.
5748 2018-07-05 Tom de Vries <tdevries@suse.de>
5750 * macroexp.c (macro_buffer) <operator=>: New member function.
5752 2018-07-04 Tom Tromey <tom@tromey.com>
5754 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
5756 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
5758 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
5759 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
5760 * maint.c: Likewise.
5763 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5765 * NEWS: Create a new section for the next release branch.
5766 Rename the section of the current branch, now that it has
5769 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5771 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
5772 * version.in: Bump version to 8.2.50.DATE-git.
5774 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5775 Pedro Alves <palves@redhat.com>
5777 * linux-nat.c (linux_init_ptrace): Rename to ...
5778 (linux_init_ptrace_procfs): ... this. Call
5779 linux_proc_init_warnings.
5780 (linux_nat_target::post_attach)
5781 (linux_nat_target::post_startup_inferior): Adjust.
5782 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
5783 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
5785 2018-07-04 Tom de Vries <tdevries@suse.de>
5787 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
5789 (read_comp_unit_head): ... here.
5791 2018-07-03 Tom Tromey <tom@tromey.com>
5793 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
5794 (stop_tracing, tstatus_command)
5795 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
5796 (print_one_static_tracepoint_marker): Update.
5797 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
5799 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
5801 (all_tracepoints, static_tracepoints_here): Return std::vector.
5803 2018-07-03 Tom Tromey <tom@tromey.com>
5805 * common/ptid.c (ptid_equal): Remove.
5806 * common/ptid.h (ptid_equal): Don't declare.
5807 * ada-tasks.c: Update.
5808 * breakpoint.c: Update.
5809 * common/agent.c: Update.
5810 * corelow.c: Update.
5811 * darwin-nat-info.c: Update.
5812 * darwin-nat.c: Update.
5814 * dtrace-probe.c: Update.
5815 * dummy-frame.c: Update.
5816 * fbsd-nat.c: Update.
5818 * gdbthread.h: Update.
5819 * gnu-nat.c: Update.
5820 * go32-nat.c: Update.
5821 * inf-loop.c: Update.
5822 * inf-ptrace.c: Update.
5823 * infcall.c: Update.
5827 * linux-fork.c: Update.
5828 * linux-nat.c: Update.
5829 * linux-thread-db.c: Update.
5830 * mi/mi-cmd-var.c: Update.
5831 * mi/mi-interp.c: Update.
5832 * mi/mi-main.c: Update.
5833 * nto-procfs.c: Update.
5834 * ppc-linux-tdep.c: Update.
5836 * python/py-inferior.c: Update.
5837 * python/py-record-btrace.c: Update.
5838 * python/py-record.c: Update.
5839 * ravenscar-thread.c: Update.
5840 * regcache.c: Update.
5841 * remote-sim.c: Update.
5843 * sol-thread.c: Update.
5846 * tui/tui-stack.c: Update.
5848 * windows-nat.c: Update.
5849 * windows-tdep.c: Update.
5851 2018-07-03 Tom Tromey <tom@tromey.com>
5853 * common/ptid.c (ptid_match): Remove.
5854 * common/ptid.h (ptid_match): Don't declare.
5855 * fbsd-nat.c: Update.
5858 * linux-nat.c: Update.
5859 * record-btrace.c: Update.
5860 * regcache.c: Update.
5863 2018-07-03 Tom Tromey <tom@tromey.com>
5865 * common/ptid.c (ptid_tid_p): Remove.
5866 * common/ptid.h (ptid_tid_p): Don't declare.
5867 * sol-thread.c: Update.
5869 2018-07-03 Tom Tromey <tom@tromey.com>
5871 * common/ptid.c (ptid_lwp_p): Remove.
5872 * common/ptid.h (ptid_lwp_p): Don't declare.
5873 * fbsd-nat.c: Update.
5874 * linux-nat.c: Update.
5875 * nat/linux-procfs.c: Update.
5876 * nat/x86-linux-dregs.c: Update.
5877 * sol-thread.c: Update.
5879 2018-07-03 Tom Tromey <tom@tromey.com>
5881 * common/ptid.c (ptid_is_pid): Remove.
5882 * common/ptid.h (ptid_is_pid): Don't declare.
5884 * linux-nat.c: Update.
5885 * mi/mi-interp.c: Update.
5889 2018-07-03 Tom Tromey <tom@tromey.com>
5891 * common/ptid.c (ptid_get_tid): Remove.
5892 * common/ptid.h (ptid_get_tid): Don't declare.
5893 * ada-tasks.c: Update.
5894 * aix-thread.c: Update.
5895 * bsd-uthread.c: Update.
5896 * darwin-nat.c: Update.
5897 * fbsd-nat.c: Update.
5898 * i386-darwin-nat.c: Update.
5900 * linux-tdep.c: Update.
5901 * nto-procfs.c: Update.
5902 * ppc-ravenscar-thread.c: Update.
5903 * python/py-infthread.c: Update.
5904 * ravenscar-thread.c: Update.
5905 * sol-thread.c: Update.
5906 * sparc-ravenscar-thread.c: Update.
5907 * windows-nat.c: Update.
5909 2018-07-03 Tom Tromey <tom@tromey.com>
5911 * common/ptid.c (ptid_get_lwp): Remove.
5912 * common/ptid.h (ptid_get_lwp): Don't declare.
5913 * aarch64-linux-nat.c: Update.
5914 * ada-tasks.c: Update.
5915 * aix-thread.c: Update.
5916 * amd64-linux-nat.c: Update.
5917 * arm-linux-nat.c: Update.
5918 * corelow.c: Update.
5919 * fbsd-nat.c: Update.
5920 * fbsd-tdep.c: Update.
5921 * gnu-nat.c: Update.
5922 * i386-cygwin-tdep.c: Update.
5923 * i386-gnu-nat.c: Update.
5924 * i386-linux-nat.c: Update.
5925 * ia64-linux-nat.c: Update.
5926 * inf-ptrace.c: Update.
5928 * linux-fork.c: Update.
5929 * linux-nat.c: Update.
5930 * linux-tdep.c: Update.
5931 * linux-thread-db.c: Update.
5932 * mips-linux-nat.c: Update.
5933 * nat/aarch64-linux-hw-point.c: Update.
5934 * nat/aarch64-linux.c: Update.
5935 * nat/linux-btrace.c: Update.
5936 * nat/linux-osdata.c: Update.
5937 * nat/linux-procfs.c: Update.
5938 * nat/x86-linux-dregs.c: Update.
5939 * obsd-nat.c: Update.
5940 * ppc-fbsd-nat.c: Update.
5941 * ppc-linux-nat.c: Update.
5943 * python/py-infthread.c: Update.
5944 * ravenscar-thread.c: Update.
5946 * s390-linux-nat.c: Update.
5947 * sol-thread.c: Update.
5948 * sol2-tdep.c: Update.
5949 * spu-linux-nat.c: Update.
5950 * x86-linux-nat.c: Update.
5951 * xtensa-linux-nat.c: Update.
5953 2018-07-03 Tom Tromey <tom@tromey.com>
5955 * common/ptid.c (ptid_get_pid): Remove.
5956 * common/ptid.h (ptid_get_pid): Don't declare.
5957 * aarch64-linux-nat.c: Update.
5958 * ada-lang.c: Update.
5959 * aix-thread.c: Update.
5960 * alpha-bsd-nat.c: Update.
5961 * amd64-fbsd-nat.c: Update.
5962 * amd64-linux-nat.c: Update.
5963 * arm-linux-nat.c: Update.
5964 * arm-nbsd-nat.c: Update.
5966 * break-catch-syscall.c: Update.
5967 * breakpoint.c: Update.
5968 * bsd-uthread.c: Update.
5969 * corelow.c: Update.
5971 * darwin-nat.c: Update.
5972 * fbsd-nat.c: Update.
5973 * fbsd-tdep.c: Update.
5975 * gnu-nat.c: Update.
5976 * hppa-nbsd-nat.c: Update.
5977 * hppa-obsd-nat.c: Update.
5978 * i386-fbsd-nat.c: Update.
5979 * ia64-linux-nat.c: Update.
5980 * inf-ptrace.c: Update.
5982 * inferior.c: Update.
5983 * inferior.h: Update.
5986 * linux-fork.c: Update.
5987 * linux-nat.c: Update.
5988 * linux-tdep.c: Update.
5989 * linux-thread-db.c: Update.
5990 * m68k-bsd-nat.c: Update.
5991 * mi/mi-interp.c: Update.
5992 * mi/mi-main.c: Update.
5993 * mips-linux-nat.c: Update.
5994 * mips-nbsd-nat.c: Update.
5995 * mips64-obsd-nat.c: Update.
5996 * nat/aarch64-linux-hw-point.c: Update.
5997 * nat/aarch64-linux.c: Update.
5998 * nat/linux-btrace.c: Update.
5999 * nat/linux-osdata.c: Update.
6000 * nat/linux-procfs.c: Update.
6001 * nat/x86-linux-dregs.c: Update.
6002 * nto-procfs.c: Update.
6003 * obsd-nat.c: Update.
6004 * ppc-linux-nat.c: Update.
6005 * ppc-nbsd-nat.c: Update.
6006 * ppc-obsd-nat.c: Update.
6007 * proc-service.c: Update.
6009 * python/py-inferior.c: Update.
6010 * python/py-infthread.c: Update.
6011 * ravenscar-thread.c: Update.
6013 * remote-sim.c: Update.
6015 * rs6000-nat.c: Update.
6016 * s390-linux-nat.c: Update.
6017 * sh-nbsd-nat.c: Update.
6018 * sol-thread.c: Update.
6019 * sparc-nat.c: Update.
6020 * sparc64-tdep.c: Update.
6021 * spu-linux-nat.c: Update.
6022 * spu-tdep.c: Update.
6023 * target-debug.h: Update.
6026 * tid-parse.c: Update.
6027 * tracefile-tfile.c: Update.
6028 * vax-bsd-nat.c: Update.
6029 * windows-nat.c: Update.
6030 * x86-linux-nat.c: Update.
6031 * x86-nat.c: Update.
6033 2018-07-03 Tom Tromey <tom@tromey.com>
6035 * common/ptid.c (pid_to_ptid): Remove.
6036 * common/ptid.h (pid_to_ptid): Don't declare.
6037 * aix-thread.c: Update.
6038 * arm-linux-nat.c: Update.
6039 * common/ptid.c: Update.
6040 * common/ptid.h: Update.
6041 * corelow.c: Update.
6043 * darwin-nat.c: Update.
6044 * fbsd-nat.c: Update.
6045 * fork-child.c: Update.
6046 * gnu-nat.c: Update.
6047 * go32-nat.c: Update.
6048 * inf-ptrace.c: Update.
6050 * inferior.c: Update.
6052 * linux-fork.c: Update.
6053 * linux-nat.c: Update.
6054 * nat/aarch64-linux-hw-point.c: Update.
6055 * nat/fork-inferior.c: Update.
6056 * nat/x86-linux-dregs.c: Update.
6057 * nto-procfs.c: Update.
6058 * obsd-nat.c: Update.
6060 * progspace.c: Update.
6062 * rs6000-nat.c: Update.
6063 * s390-linux-nat.c: Update.
6064 * sol-thread.c: Update.
6065 * spu-linux-nat.c: Update.
6068 * tracefile-tfile.c: Update.
6069 * windows-nat.c: Update.
6071 2018-07-03 Tom Tromey <tom@tromey.com>
6073 * common/ptid.h (ptid_build): Don't declare.
6074 * common/ptid.c (ptid_build): Remove.
6075 * aix-thread.c: Update.
6076 * bsd-kvm.c: Update.
6077 * bsd-uthread.c: Update.
6078 * common/agent.c: Update.
6079 * common/ptid.c: Update.
6080 * common/ptid.h: Update.
6081 * corelow.c: Update.
6082 * darwin-nat.c: Update.
6083 * fbsd-nat.c: Update.
6084 * gnu-nat.c: Update.
6085 * linux-fork.c: Update.
6086 * linux-nat.c: Update.
6087 * linux-thread-db.c: Update.
6088 * nat/linux-osdata.c: Update.
6089 * nat/linux-procfs.c: Update.
6090 * nto-procfs.c: Update.
6091 * obsd-nat.c: Update.
6092 * proc-service.c: Update.
6094 * ravenscar-thread.c: Update.
6095 * remote-sim.c: Update.
6097 * sol-thread.c: Update.
6099 * windows-nat.c: Update.
6101 2018-07-03 Tom Tromey <tom@tromey.com>
6103 * infrun.c (follow_exec): Use exit_inferior_silent.
6104 * inferior.c (exit_inferior_num_silent): Remove.
6105 * inferior.h (exit_inferior_num_silent): Don't declare.
6107 2018-07-03 Tom Tromey <tom@tromey.com>
6110 * darwin-nat.c (darwin_attach_pid): Reset inferior and
6111 inferior_ptid on error.
6113 2018-07-02 Maciej W. Rozycki <macro@mips.com>
6114 Simon Marchi <simon.marchi@polymtl.ca>
6117 * disasm.h (gdb_disassembler): Add
6118 `m_disassembler_options_holder'. member
6119 * disasm.c (get_all_disassembler_options): New function.
6120 (gdb_disassembler::gdb_disassembler): Use it.
6121 (gdb_buffered_insn_length_init_dis): Likewise.
6122 (gdb_buffered_insn_length): Adjust accordingly.
6123 (set_disassembler_options): Handle options with arguments.
6124 (show_disassembler_options_sfunc): Likewise. Add a leading new
6125 line if showing options with descriptions.
6126 (disassembler_options_completer): Adapt to using the
6127 `disasm_options_and_args_t' structure.
6128 * mips-tdep.c (mips_disassembler_options): New variable.
6129 (mips_disassembler_options_o32): Likewise.
6130 (mips_disassembler_options_n32): Likewise.
6131 (mips_disassembler_options_n64): Likewise.
6132 (gdb_print_insn_mips): Don't set `disassembler_options'.
6133 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
6135 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
6136 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
6137 `gdbarch_disassembler_options_implicit' and
6138 `gdbarch_valid_disassembler_options'.
6139 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
6140 `disasm_options_and_args_t' structure.
6141 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
6143 (valid_disassembler_options): Switch from `disasm_options_t' to
6144 the `disasm_options_and_args_t' structure.
6145 * NEWS: Document `set disassembler-options' support for the MIPS
6147 * gdbarch.h: Regenerate.
6148 * gdbarch.c: Regenerate.
6150 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6152 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
6154 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6156 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
6157 parameter in call to amd64_target_description.
6158 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6159 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
6160 (amd64fbsd_init_abi): Likewise.
6161 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6162 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6163 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6164 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
6166 2018-06-29 Pedro Alves <palves@redhat.com>
6168 * gdb/amd64-tdep.h (amd64_create_target_description): Add
6169 "segments" parameter.
6170 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
6171 (_initialize_amd64_tdep): Update call to
6172 amd64_create_target_description.
6173 (amd64_target_description): Add "segments" parameter. Adjust
6174 the implementation to use it.
6175 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
6176 call to amd64_create_target_description.
6177 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
6178 * gdb/arch/amd64.h (amd64_create_target_description): Add
6179 "segments" register.
6180 * gdb/arch/amd64.c (amd64_create_target_description): Add
6181 "segments" parameter. Call create_feature_i386_64bit_segments
6182 only if SEGMENTS is true.
6183 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
6184 call to amd64_create_target_description.
6186 2018-06-29 Pedro Alves <palves@redhat.com>
6188 * thread.c (thread_target_id_str): New, factored out from ...
6189 (print_thread_info_1): ... here. Use it to compute the max
6190 "Target Id" column width.
6192 2018-06-29 Pedro Alves <palves@redhat.com>
6194 * remote.c (remote_target::extra_thread_info): Delete
6195 'display_buf' and 'n' locals. from the cache, regardless of
6196 packet mechanims is in use. Use cache for qThreadExtra and qP
6199 2018-06-29 Pedro Alves <palves@redhat.com>
6201 * blockframe.c (find_pc_sect_containing_function): New function.
6202 * breakpoint.c (print_breakpoint_location): Don't call
6203 find_pc_sect_function.
6204 * linespec.c (create_sals_line_offset): Record the location's
6206 * linespec.c (convert_address_location_to_sals): Fill in sal's
6207 symbol with find_pc_sect_containing_function.
6208 * symtab.c (find_function_start_sal): Rename to ...
6209 (find_function_start_sal_1): ... this.
6210 (find_function_start_sal): Reimplement as wrapper around
6211 find_function_start_sal_1, and use
6212 find_pc_sect_containing_function to fill in the sal's symbol.
6213 (find_function_start_sal(symbol*, bool)): Adjust.
6214 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6216 (find_pc_sect_containing_function): Declare.
6218 2018-06-29 Pedro Alves <palves@redhat.com>
6220 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6221 true if the the location has no symbol.
6223 2018-06-28 Tom Tromey <tom@tromey.com>
6225 * NEWS: Mention --enable-codesign.
6226 * silent-rules.mk (ECHO_SIGN): New variable.
6227 * configure.ac: Add --enable-codesign.
6228 * configure: Rebuild.
6229 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6230 (gdb$(EXEEXT)): Optionally invoke codesign.
6232 2018-06-28 Pedro Alves <palves@redhat.com>
6234 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6236 (switch_to_thread_no_regs): Adjust comment.
6237 * infcmd.c (stop_pc): Delete.
6238 (post_create_inferior, info_program_command): Replace references
6239 to stop_pc with references to thread_info->suspend.stop_pc.
6240 * inferior.h (stop_pc): Delete declaration.
6241 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6242 (handle_inferior_event_1, handle_signal_stop)
6243 (process_event_stop_test, keep_going_stepped_thread)
6244 (handle_step_into_function, handle_step_into_function_backward)
6245 (print_stop_location): Replace references to stop_pc with
6246 references to thread_info->suspend.stop_pc.
6247 (struct infcall_suspend_state) <stop_pc>: Delete field.
6248 (save_infcall_suspend_state, restore_infcall_suspend_state):
6249 Remove references to inf_stat->stop_pc.
6250 * linux-fork.c (fork_load_infrun_state): Likewise.
6251 * record-btrace.c (record_btrace_set_replay): Likewise.
6252 * record-full.c (record_full_goto_entry): Likewise.
6253 * remote.c (print_one_stopped_thread): Likewise.
6254 * target.c (target_resume): Extend comment.
6255 * thread.c (set_executing_thread): New.
6256 (set_executing): Use it.
6257 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
6258 Remove references to stop_pc.
6260 2018-06-28 Pedro Alves <palves@redhat.com>
6262 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
6263 Moving fetching stop_pc until after ecs->event_thread is refreshed.
6265 2018-06-28 Tom Tromey <tom@tromey.com>
6267 * coffread.c (coff_symfile_finish): Update.
6268 * xcoffread.c (xcoff_symfile_finish): Update.
6269 * elfread.c (elf_symfile_finish): Update.
6270 * symfile.h (dwarf2_free_objfile): Don't declare.
6271 * dwarf2read.c (_initialize_dwarf2_read): Use
6272 register_objfile_data_with_cleanup.
6273 (dwarf2_free_objfile): Now static. Change signature.
6275 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6277 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
6278 option "-o" to add-symbol-file-load to add an offset to each
6279 section's load address.
6280 * symfile.c (set_objfile_default_section_offset): New function.
6282 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6284 * symfile.c (add_symbol_file_command): Make sure that sections
6285 with the same name are sorted in the same order.
6287 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6289 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
6290 require the second argument. If omitted, load sections at the
6291 addresses specified in the file.
6293 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6295 * symfile.c (symbol_file_command, symbol_file_add_main_1)
6296 (_initialize_symfile): Add option "-o" to symbol-file to add an
6297 offset to each section of the symbol file.
6299 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6301 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
6303 2018-06-27 Tom Tromey <tom@tromey.com>
6305 * stack.c (_initialize_stack): Update "func" help text.
6307 2018-06-27 Tom Tromey <tom@tromey.com>
6309 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
6311 (unwind_infopy_str, pyuw_create_unwind_info)
6312 (unwind_infopy_add_saved_register, pyuw_sniffer)
6313 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
6315 (struct saved_reg): Add constructor.
6316 <value>: Now a gdbpy_ref<>.
6318 2018-06-27 Tom Tromey <tom@tromey.com>
6320 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
6322 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6324 * gdb-gdb.py.in: Format using autopep8.
6326 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6328 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
6329 (type_lookup_function): Recognize CORE_ADDR values.
6331 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6333 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
6336 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6338 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
6341 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6343 * gdb-gdb.py: Move to...
6344 * gdb-gdb.py.in: ... here.
6345 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
6346 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
6348 (distclean): Remove gdb-gdb.py when cleaning.
6349 (gdb-gdb.py, gdb-gdb.gdb): New rules.
6350 * configure: Re-generate.
6352 2018-06-27 Pedro Alves <palves@redhat.com>
6354 * proc-service.c (get_ps_regcache): New.
6355 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6356 (ps_lsetfpregs): Use it.
6358 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
6361 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
6362 (dwarf_decode_lines_1): Adjust.
6364 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6366 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6368 <info_proc>: Likewise.
6370 2018-06-26 Joel Brobecker <brobecker@adacore.com>
6372 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6373 to windows_fetch_one_register, and only handle the case of
6374 fetching one register. Move the code that reloads the context
6375 and iterates over all registers if R is negative to...
6376 (windows_nat_target::fetch_registers): ... here.
6377 (do_windows_store_inferior_registers): Rename to
6378 windows_store_one_register, and only handle the case of storing
6379 one register. Move the code that handles the case where r is
6381 (windows_nat_target::store_registers) ... here.
6383 2018-06-26 Tom Tromey <tom@tromey.com>
6386 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6387 * rust-lang.c (rust_print_struct_def): Add podata parameter.
6389 (rust_internal_print_type): Add podata parameter.
6390 (rust_print_type): Update.
6392 2018-06-26 Tom Tromey <tom@tromey.com>
6394 * typeprint.h (struct print_offset_data) <update, finish,
6395 maybe_print_hole>: New methods.
6396 <indentation>: New constant.
6397 * typeprint.c (print_offset_data::indentation): Define.
6398 (print_offset_data::maybe_print_hole, print_offset_data::update)
6399 (print_offset_data::finish): Move from c-typeprint.c and rename.
6400 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6401 (print_spaces_filtered_with_print_options): Update.
6402 (c_print_type_union_field_offset, maybe_print_hole)
6403 (c_print_type_struct_field_offset): Move to typeprint.c and
6405 (c_type_print_base_struct_union): Update.
6407 2018-06-25 Pedro Alves <palves@redhat.com>
6409 * gdbthread.h (thread_info_ref, delete_thread)
6410 (delete_thread_silent, first_thread_of_inferior)
6411 (any_thread_of_inferior, switch_to_thread)
6412 (enable_thread_stack_temporaries)
6413 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6414 (get_last_thread_stack_temporary)
6415 (value_in_thread_stack_temporaries, can_access_registers_thread):
6416 Spell out "struct thread_info" instead of just "thread_info".
6417 * inferior.h (notice_new_inferior): Likewise.
6419 2018-06-25 Pedro Alves <palves@redhat.com>
6421 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6422 pass thread_info pointer to delete_thread.
6423 (windows_nat_target::detach): Pass inferior pointer to
6425 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6427 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6428 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6429 and pass a thread_info pointer to delete_thread.
6430 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6431 pass thread_info pointer to delete_thread.
6432 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6433 delete_thread_silent call.
6434 * procfs.c (procfs_target::detach): Pass inferior pointer to
6436 (procfs_target::wait): Pass thread_info pointer to delete_thread.
6437 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6438 delete_thread_silent call.
6439 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6440 pass thread_info pointer to delete_thread.
6441 (windows_nat_target::detach): Pass inferior pointer to
6444 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6446 * regcache.c (readable_regcache::read_part): Fix asserts.
6447 (reg_buffer::raw_collect_part): New function.
6448 (regcache::write_part): Fix asserts.
6449 (reg_buffer::raw_supply_part): New function.
6450 (regcache::transfer_regset_register): New helper function.
6451 (regcache::transfer_regset): Call new functions.
6452 (regcache_supply_regset): Use gdb_byte*.
6453 (regcache::supply_regset): Likewise.
6454 (regcache_collect_regset): Likewise.
6455 (regcache::collect_regset): Likewise.
6456 * regcache.h (reg_buffer::raw_collect_part): New declaration.
6457 (reg_buffer::raw_supply_part): Likewise.
6458 (regcache::transfer_regset_register): Likewise.
6459 (regcache::transfer_regset): Use gdb_byte*.
6461 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6463 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6465 2018-06-21 Pedro Alves <palves@redhat.com>
6467 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6468 instead of a ptid_t. All callers adjusted.
6469 * ada-tasks.c (ada_get_task_number): Likewise. All callers
6471 (print_ada_task_info, display_current_task_id, task_command_1):
6473 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
6475 (breakpoint_kind): Adjust.
6476 (remove_breakpoints_pid): Rename to ...
6477 (remove_breakpoints_inf): ... this. Adjust to take an inferior
6478 pointer. All callers adjusted.
6479 (bpstat_clear_actions): Use inferior_thread.
6480 (get_bpstat_thread): New.
6481 (bpstat_do_actions): Use it.
6482 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
6483 to take a thread_info pointer. All callers adjusted.
6484 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
6485 (breakpoint_re_set_thread): Use inferior_thread.
6486 * breakpoint.h (struct inferior): Forward declare.
6487 (bpstat_stop_status): Update.
6488 (remove_breakpoints_pid): Delete.
6489 (remove_breakpoints_inf): New.
6490 * bsd-uthread.c (bsd_uthread_target::wait)
6491 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
6492 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
6493 (maint_btrace_packet_history_cmd)
6494 (maint_btrace_clear_packet_history_cmd): Adjust.
6495 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
6497 * cli/cli-interp.c: Include "inferior.h".
6498 * common/refcounted-object.h (struct
6499 refcounted_object_ref_policy): New.
6500 * compile/compile-object-load.c: Include gdbthread.h.
6501 (store_regs): Use inferior_thread.
6502 * corelow.c (core_target::close): Use current_inferior.
6503 (core_target_open): Adjust to use first_thread_of_inferior and use
6504 the current inferior.
6505 * ctf.c (ctf_target::close): Adjust to use current_inferior.
6506 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
6507 <thread>: ... this new field. All references adjusted.
6508 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
6509 Take a thread_info pointer instead of a ptid_t.
6510 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
6511 (dummy_frame_discard, register_dummy_frame_dtor): Take a
6512 thread_info pointer instead of a ptid_t.
6513 * elfread.c: Include "inferior.h".
6514 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
6515 Use inferior_thread.
6516 * eval.c (evaluate_subexp): Likewise.
6517 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
6519 * gdb_proc_service.h (struct thread_info): Forward declare.
6520 (struct ps_prochandle) <ptid>: Delete, replaced by ...
6521 <thread>: ... this new field. All references adjusted.
6522 * gdbarch.h, gdbarch.c: Regenerate.
6523 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
6524 'thread' parameter. All implementations and callers adjusted.
6525 * gdbthread.h (thread_info) <set_running>: New method.
6526 (delete_thread, delete_thread_silent): Take a thread_info pointer
6528 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
6529 (first_thread_of_process): Delete, replaced by ...
6530 (first_thread_of_inferior): ... this new function. All callers
6532 (any_live_thread_of_process): Delete, replaced by ...
6533 (any_live_thread_of_inferior): ... this new function. All callers
6535 (switch_to_thread, switch_to_no_thread): Declare.
6536 (is_executing): Delete.
6537 (enable_thread_stack_temporaries): Update comment.
6538 <enable_thread_stack_temporaries>: Take a thread_info pointer
6539 instead of a ptid_t. Incref the thread.
6540 <~enable_thread_stack_temporaries>: Decref the thread.
6543 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6544 (get_last_thread_stack_temporary)
6545 (value_in_thread_stack_temporaries, can_access_registers_thread):
6546 Take a thread_info pointer instead of a ptid_t. All callers
6548 * infcall.c (get_call_return_value): Use inferior_thread.
6549 (run_inferior_call): Work with thread pointers instead of ptid_t.
6550 (call_function_by_hand_dummy): Work with thread pointers instead
6551 of ptid_t. Use thread_info_ref.
6552 * infcmd.c (proceed_thread_callback): Access thread's state
6554 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
6555 access thread's state directly.
6556 (continue_command): Use inferior_thread.
6557 (info_program_command): Use find_thread_ptid and access thread
6559 (proceed_after_attach_callback): Use thread state directly.
6560 (notice_new_inferior): Take a thread_info pointer instead of a
6561 ptid_t. All callers adjusted.
6562 (exit_inferior): Take an inferior pointer instead of a pid. All
6564 (exit_inferior_silent): New.
6565 (detach_inferior): Delete.
6566 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
6567 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
6568 (detach_inferior_command, kill_inferior_command): Use
6569 find_inferior_id instead of valid_gdb_inferior_id and
6570 gdb_inferior_id_to_pid.
6571 (inferior_command): Use inferior and thread pointers.
6572 * inferior.h (struct thread_info): Forward declare.
6573 (notice_new_inferior): Take a thread_info pointer instead of a
6574 ptid_t. All callers adjusted.
6575 (detach_inferior): Delete declaration.
6576 (exit_inferior, exit_inferior_silent): Take an inferior pointer
6577 instead of a pid. All callers adjusted.
6578 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
6579 (valid_gdb_inferior_id): Delete.
6580 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
6581 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
6582 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
6584 <inf>: ... this new field.
6585 <step_ptid>: Delete, replaced by ...
6586 <step_thread>: ... this new field.
6587 (get_displaced_stepping_state): Take an inferior pointer instead
6588 of a pid. All callers adjusted.
6589 (displaced_step_in_progress_any_inferior): Adjust.
6590 (displaced_step_in_progress_thread): Take a thread pointer instead
6591 of a ptid_t. All callers adjusted.
6592 (displaced_step_in_progress, add_displaced_stepping_state): Take
6593 an inferior pointer instead of a pid. All callers adjusted.
6594 (get_displaced_step_closure_by_addr): Adjust.
6595 (remove_displaced_stepping_state): Take an inferior pointer
6596 instead of a pid. All callers adjusted.
6597 (displaced_step_prepare_throw, displaced_step_prepare)
6598 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
6599 All callers adjusted.
6600 (start_step_over): Adjust.
6601 (infrun_thread_ptid_changed): Remove bit updating ptids in the
6602 displaced step queue.
6603 (do_target_resume): Adjust.
6604 (fetch_inferior_event): Use inferior_thread.
6605 (context_switch, get_inferior_stop_soon): Take an
6606 execution_control_state pointer instead of a ptid_t. All callers
6608 (switch_to_thread_cleanup): Delete.
6609 (stop_all_threads): Use scoped_restore_current_thread.
6610 * inline-frame.c: Include "gdbthread.h".
6611 (inline_state) <inline_state>: Take a thread pointer instead of a
6612 ptid_t. All callers adjusted.
6613 <ptid>: Delete, replaced by ...
6614 <thread>: ... this new field.
6615 (find_inline_frame_state): Take a thread pointer instead of a
6616 ptid_t. All callers adjusted.
6617 (skip_inline_frames, step_into_inline_frame)
6618 (inline_skipped_frames, inline_skipped_symbol): Take a thread
6619 pointer instead of a ptid_t. All callers adjusted.
6620 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
6621 (inline_skipped_frames, inline_skipped_symbol): Likewise.
6622 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
6624 * linux-nat.c (get_detach_signal): Likewise.
6625 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
6626 (thread_db_notice_clone): Adjust.
6627 (thread_db_find_new_threads_silently)
6628 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
6629 a thread pointer instead of a ptid_t. All callers adjusted.
6630 * mi/mi-cmd-var.c: Include "inferior.h".
6631 (mi_cmd_var_update_iter): Update to use thread pointers.
6632 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
6634 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
6636 (mi_output_running): ... this new function.
6637 (mi_on_resume_1): Adjust to use it.
6638 (mi_user_selected_context_changed): Adjust to use inferior_thread.
6639 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
6641 (interrupt_thread_callback): : Adjust to use thread and inferior
6643 * proc-service.c: Include "gdbthread.h".
6644 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
6645 * progspace-and-thread.c: Include "inferior.h".
6646 * progspace.c: Include "inferior.h".
6647 * python/py-exitedevent.c (create_exited_event_object): Adjust to
6648 hold a reference to an inferior_object.
6649 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
6651 * python/py-inferior.c (struct inferior_object): Give the type a
6652 tag name instead of a typedef.
6653 (python_on_normal_stop): No need to check if the current thread is
6655 (inferior_to_inferior_object): Change return type to
6656 inferior_object. All callers adjusted.
6657 (find_thread_object): Delete, bits factored out to ...
6658 (thread_to_thread_object): ... this new function.
6659 * python/py-infthread.c (create_thread_object): Use
6660 inferior_to_inferior_object.
6661 (thpy_is_stopped): Use thread pointer directly.
6662 (gdbpy_selected_thread): Use inferior_thread.
6663 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
6664 field, replaced with ...
6665 <thread>: ... this new field. All users adjusted.
6666 (btpy_insn_or_gap_new): Drop const.
6667 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
6669 * python/py-record.c: Include "gdbthread.h".
6670 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6671 a ptid_t. All callers adjusted.
6672 (gdbpy_current_recording): Use inferior_thread.
6673 * python/py-record.h (recpy_record_object) <ptid>: Delete
6674 field, replaced with ...
6675 <thread>: ... this new field. All users adjusted.
6676 (recpy_element_object) <ptid>: Delete
6677 field, replaced with ...
6678 <thread>: ... this new field. All users adjusted.
6679 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6680 a ptid_t. All callers adjusted.
6681 * python/py-threadevent.c: Include "gdbthread.h".
6682 (get_event_thread): Use thread_to_thread_object.
6683 * python/python-internal.h (struct inferior_object): Forward
6685 (find_thread_object, find_inferior_object): Delete declarations.
6686 (thread_to_thread_object, inferior_to_inferior_object): New
6688 * record-btrace.c: Include "inferior.h".
6689 (require_btrace_thread): Use inferior_thread.
6690 (record_btrace_frame_sniffer)
6691 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
6692 (get_thread_current_frame): Use scoped_restore_current_thread and
6694 (get_thread_current_frame): Use thread pointer directly.
6695 (record_btrace_replay_at_breakpoint): Use thread's inferior
6697 * record-full.c: Include "inferior.h".
6698 * regcache.c: Include "gdbthread.h".
6699 (get_thread_arch_regcache): Use the inferior's address space
6701 (get_thread_regcache, registers_changed_thread): New.
6702 * regcache.h (get_thread_regcache(thread_info *thread)): New
6704 (registers_changed_thread): New.
6705 (remote_target) <remote_detach_1>: Swap order of parameters.
6706 (remote_add_thread): <remote_add_thread>: Return the new thread.
6707 (get_remote_thread_info(ptid_t)): New overload.
6708 (remote_target::remote_notice_new_inferior): Use thread pointers
6710 (remote_target::process_initial_stop_replies): Use
6711 thread_info::set_running.
6712 (remote_target::remote_detach_1, remote_target::detach)
6713 (extended_remote_target::detach): Adjust.
6714 * stack.c (frame_show_address): Use inferior_thread.
6715 * target-debug.h (target_debug_print_thread_info_pp): New.
6716 * target-delegates.c: Regenerate.
6717 * target.c (default_thread_address_space): Delete.
6718 (memory_xfer_partial_1): Use current_inferior.
6719 (target_detach): Use current_inferior.
6720 (target_thread_address_space): Delete.
6721 (generic_mourn_inferior): Use current_inferior.
6722 * target.h (struct target_ops) <thread_address_space>: Delete.
6723 (target_thread_address_space): Delete.
6724 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
6726 (delete_thread_1, delete_thread, delete_thread_silent): Take a
6727 thread pointer instead of a ptid_t. Adjust all callers.
6728 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
6729 (first_thread_of_process): Delete, replaced by ...
6730 (first_thread_of_inferior): ... this new function. All callers
6732 (any_thread_of_process): Rename to ...
6733 (any_thread_of_inferior): ... this, and take an inferior pointer.
6734 (any_live_thread_of_process): Rename to ...
6735 (any_live_thread_of_inferior): ... this, and take an inferior
6737 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6738 (value_in_thread_stack_temporaries)
6739 (get_last_thread_stack_temporary): Take a thread pointer instead
6740 of a ptid_t. Adjust all callers.
6741 (thread_info::set_running): New.
6742 (validate_registers_access): Use inferior_thread.
6743 (can_access_registers_ptid): Rename to ...
6744 (can_access_registers_thread): ... this, and take a thread
6746 (print_thread_info_1): Adjust to compare thread pointers instead
6748 (switch_to_no_thread, switch_to_thread): Make extern.
6749 (scoped_restore_current_thread::~scoped_restore_current_thread):
6750 Use m_thread pointer directly.
6751 (scoped_restore_current_thread::scoped_restore_current_thread):
6752 Use inferior_thread.
6753 (thread_command): Use thread pointer directly.
6754 (thread_num_make_value_helper): Use inferior_thread.
6755 * top.c (execute_command): Use inferior_thread.
6756 * tui/tui-interp.c: Include "inferior.h".
6757 * varobj.c (varobj_create): Use inferior_thread.
6758 (value_of_root_1): Use find_thread_global_id instead of
6759 global_thread_id_to_ptid.
6761 2018-06-21 Alan Hayward <alan.hayward@arm.com>
6763 * regcache.c (readable_regcache::read_part): Avoid memcpy when
6765 (regcache::write_part): Likewise.
6766 (readable_regcache::cooked_read_part): Update comment.
6767 (readable_regcache::cooked_write_part): Likewise.
6768 * regcache.h: (readable_regcache::read_part): Likewise.
6769 (regcache::write_part): Likewise.
6771 2018-06-21 Richard Bunt <richard.bunt@arm.com>
6772 Dirk Schubert <dirk.schubert@arm.com>
6774 * aarch64-linux-nat.c (post_attach): New.
6775 (aarch64_linux_nat_target::post_attach): Override post_attach to
6776 record the number of hardware debug registers.
6778 2018-06-20 Tom Tromey <tom@tromey.com>
6780 * python/py-param.c (add_setshow_generic): Make parameters const.
6781 (parmpy_init): Update.
6783 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6785 * regcache.h (regcache_cooked_read_ftype): Rename to...
6786 (register_read_ftype): ...this, change type to function_view.
6787 (class reg_buffer) <save>: Remove src parameter.
6788 (readonly_detached_regcache) <readonly_detached_regcache>: Make
6789 parameter non-const in first overload. Remove src parameter in
6791 * regcache.c (do_cooked_read): Remove.
6792 (readonly_detached_regcache::readonly_detached_regcache): Make
6793 parameter non-const, adjust call to other constructor.
6794 (reg_buffer::save): Remove src parameter.
6795 * frame.c (do_frame_register_read): Remove.
6796 (frame_save_as_regcache): Use lambda function.
6797 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
6798 parameter to ppu2spu_data *.
6799 (ppu2spu_sniffer): Use lambda function.
6801 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6803 * record-full.c (record_full_target::insert_breakpoint): Remove
6804 "struct" keyword, add const.
6806 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6808 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
6809 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
6810 * configure.ac: Remove AC_PREREQ, add missing quoting.
6811 * gnulib/configure.ac: Modernize usage of
6812 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
6813 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
6814 (AUTOMAKE_VERSION): Bump to 1.15.1.
6815 * configure: Re-generate.
6816 * config.in: Re-generate.
6817 * aclocal.m4: Re-generate.
6818 * gnulib/aclocal.m4: Re-generate.
6819 * gnulib/config.in: Re-generate.
6820 * gnulib/configure: Re-generate.
6821 * gnulib/import/Makefile.in: Re-generate.
6823 2018-06-19 Pedro Alves <palves@redhat.com>
6825 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
6826 (lookup_minimal_symbol_by_pc_section): ... here with
6827 gdb_assert_not_reached added.
6829 2018-06-19 Pedro Alves <palves@redhat.com>
6831 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6832 parameter with a block parameter. Compare location's block symbol
6833 with the frame's block instead of addresses.
6834 (skip_inline_frames): Pass the current block instead of the
6835 frame's address. Break out as soon as we determine the frame
6836 should not be skipped.
6838 2018-06-18 Tom Tromey <tom@tromey.com>
6840 * solib-aix.c (solib_aix_get_section_offsets): Return
6842 (solib_aix_solib_create_inferior_hook): Update.
6844 2018-06-18 Tom Tromey <tom@tromey.com>
6846 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6848 2018-06-18 Tom Tromey <tom@tromey.com>
6850 * solib-frv.c (frv_relocate_main_executable): Use
6852 * solib-dsbt.c (dsbt_relocate_main_executable): Use
6855 2018-06-18 Tom Tromey <tom@tromey.com>
6857 * objfiles.h (inhibit_section_map_updates): Update.
6858 (resume_section_map_updates, resume_section_map_updates_cleanup):
6860 * solib-svr4.c (svr4_handle_solib_event): Update.
6861 * objfiles.c (inhibit_section_map_updates): Return
6862 scoped_restore_tmpl<int>.
6863 (resume_section_map_updates, resume_section_map_updates_cleanup):
6866 2018-06-18 Tom Tromey <tom@tromey.com>
6868 * valprint.h (read_string): Update.
6869 * valprint.c (read_string): Change type of "buffer".
6870 (val_print_string): Update.
6871 * python/py-value.c (valpy_string): Update.
6872 * language.h (struct language_defn) <la_get_string>: Change
6874 (default_get_string, c_get_string): Update.
6875 * language.c (default_get_string): Change type of "buffer".
6876 * guile/scm-value.c (gdbscm_value_to_string): Update.
6877 * c-lang.c (c_get_string): Change type of "buffer".
6879 2018-06-18 Tom Tromey <tom@tromey.com>
6881 * ser-mingw.c (struct pipe_state_destroyer): New.
6882 (pipe_state_up): New typedef.
6883 (cleanup_pipe_state): Remove.
6884 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6886 2018-06-18 Tom Tromey <tom@tromey.com>
6888 * rust-lang.h (rust_yyerror): Don't declare.
6889 * rust-lang.c (rust_language_defn): Update.
6890 * rust-exp.y (yyerror): Now static.
6891 * parse.c (parse_exp_in_context_1): Update.
6892 * p-lang.h (p_yyerror): Don't declare.
6893 * p-lang.c (p_language_defn): Update.
6894 * p-exp.y (yyerror): Now static.
6895 * opencl-lang.c (opencl_language_defn): Update.
6896 * objc-lang.c (objc_language_defn): Update.
6897 * m2-lang.h (m2_yyerror): Don't declare.
6898 * m2-lang.c (m2_language_defn): Update.
6899 * m2-exp.y (yyerror): Now static.
6900 * language.h (struct language_defn) <la_error>: Remove.
6901 * language.c (unk_lang_error): Remove.
6902 (unknown_language_defn, auto_language_defn): Remove.
6903 * go-lang.h (go_yyerror): Don't declare.
6904 * go-lang.c (go_language_defn): Update.
6905 * go-exp.y (yyerror): Now static.
6906 * f-lang.h (f_yyerror): Don't declare.
6907 * f-lang.c (f_language_defn): Update.
6908 * f-exp.y (yyerror): Now static.
6909 * d-lang.h (d_yyerror): Don't declare.
6910 * d-lang.c (d_language_defn): Update.
6911 * d-exp.y (yyerror): Now static.
6912 * c-lang.h (c_yyerror): Don't declare.
6913 * c-lang.c (c_language_defn, cplus_language_defn)
6914 (asm_language_defn, minimal_language_defn): Update.
6915 * c-exp.y (yyerror): Now static.
6916 * ada-lang.h (ada_yyerror): Don't declare.
6917 * ada-lang.c (ada_language_defn): Update.
6918 * ada-exp.y (yyerror): Now static.
6920 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6922 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6923 (store_sveregs_to_thread): Likewise.
6924 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6925 (aarch64_linux_store_inferior_registers): Likewise.
6926 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6928 (aarch64_sve_regs_copy_to_regcache): Likewise.
6929 (aarch64_sve_regs_copy_from_regcache): Likewise.
6930 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6932 (aarch64_sve_regs_copy_to_regcache): Likewise.
6933 (aarch64_sve_regs_copy_from_regcache): Likewise.
6934 (sve_context): Structure from Linux headers.
6935 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6936 (SVE_SIG_ZREG_SIZE): Likewise.
6937 (SVE_SIG_PREG_SIZE): Likewise.
6938 (SVE_SIG_FFR_SIZE): Likewise.
6939 (SVE_SIG_REGS_OFFSET): Likewise.
6940 (SVE_SIG_ZREGS_OFFSET): Likewise.
6941 (SVE_SIG_ZREG_OFFSET): Likewise.
6942 (SVE_SIG_ZREGS_SIZE): Likewise.
6943 (SVE_SIG_PREGS_OFFSET): Likewise.
6944 (SVE_SIG_PREG_OFFSET): Likewise.
6945 (SVE_SIG_PREGS_SIZE): Likewise.
6946 (SVE_SIG_FFR_OFFSET): Likewise.
6947 (SVE_SIG_REGS_SIZE): Likewise.
6948 (SVE_SIG_CONTEXT_SIZE): Likewise.
6949 (SVE_PT_REGS_MASK): Likewise.
6950 (SVE_PT_REGS_FPSIMD): Likewise.
6951 (SVE_PT_REGS_SVE): Likewise.
6952 (SVE_PT_VL_INHERIT): Likewise.
6953 (SVE_PT_VL_ONEXEC): Likewise.
6954 (SVE_PT_REGS_OFFSET): Likewise.
6955 (SVE_PT_FPSIMD_OFFSET): Likewise.
6956 (SVE_PT_FPSIMD_SIZE): Likewise.
6957 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6958 (SVE_PT_SVE_PREG_SIZE): Likewise.
6959 (SVE_PT_SVE_FFR_SIZE): Likewise.
6960 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6961 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6962 (__SVE_SIG_TO_PT): Likewise.
6963 (SVE_PT_SVE_OFFSET): Likewise.
6964 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6965 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6966 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6967 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6968 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6969 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6970 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6971 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6972 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6973 (SVE_PT_SVE_SIZE): Likewise.
6974 (SVE_PT_SIZE): Likewise.
6975 (HAS_SVE_STATE): New define.
6977 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6979 * nat/aarch64-sve-linux-sigcontext.h: New file.
6980 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6982 (SVE_VQ_MIN): Likewise.
6983 (SVE_VQ_MAX): Likewise.
6984 (SVE_VL_MIN): Likewise.
6985 (SVE_VL_MAX): Likewise.
6986 (SVE_NUM_ZREGS): Likewise.
6987 (SVE_NUM_PREGS): Likewise.
6988 (sve_vl_valid): Likewise.
6989 (struct user_sve_header): Likewise.
6991 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6992 Richard Bunt <Richard.Bunt@arm.com>
6994 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6995 was requested by GDB.
6997 2018-06-15 Tom de Vries <tdevries@suse.de>
6999 * MAINTAINERS (Write After Approval): Add Tom de Vries.
7001 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
7003 * gnulib/update-gnulib.sh: Print expected versions of
7006 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
7008 * arch-utils.c (default_type_align): Use type_length_units.
7009 * gdbtypes.c (type_align): Use type_length_units.
7011 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7013 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7014 of 'define' command.
7016 2018-06-14 Tom de Vries <tdevries@suse.de>
7019 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7020 get_no_prettyformat_print_options.
7022 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
7024 * sparc-nat.h: Include target.h.
7025 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7026 <fetch_registers>: Remove this argument in function call.
7027 <store_registers>: Remove this argument in function call, remove
7029 <low_forget_process>: Call sparc64_forget_process instead of
7030 sparc_forget_process.
7032 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7034 * procfs.c (_initialize_procfs): Use add_inf_child_target.
7035 (procfs_target::make_corefile_notes): Adjust to new
7036 target_read_alloc return type.
7038 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7039 Stephen Roberts <stephen.roberts@arm.com>
7042 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
7043 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
7044 Move should_notify_stop local into more inner scope.
7046 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7047 Stephen Roberts <stephen.roberts@arm.com>
7050 * infrun.c (resume_1): Add call to mark_async_event_handler.
7052 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7054 * infrun.c (do_target_wait): Change old version of $pc printed.
7056 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
7058 * dwarf2read.c (read_index_from_section): Rename to...
7059 (read_gdb_index_from_section): ... this, update all callers.
7060 (dwarf2_read_index): Rename to...
7061 (dwarf2_read_gdb_index): ... this, update all callers.
7063 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
7065 * gdb/hppa-linux-nat.c
7066 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
7067 hppa_linux_nat_target::fetch_registers.
7069 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7071 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
7072 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
7073 (AARCH64_DWARF_SVE_FFR): Likewise.
7074 (AARCH64_DWARF_SVE_P0): Likewise.
7075 (AARCH64_DWARF_SVE_Z0): Likewise.
7077 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7079 * common/common-regcache.h (raw_compare): New function.
7080 * regcache.c (regcache::raw_compare): Likewise.
7081 * regcache.h (regcache::raw_compare): New declaration.
7083 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7085 * common/common-regcache.h (reg_buffer_common): New structure.
7086 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
7087 (reg_buffer::raw_supply): Likewise.
7088 (reg_buffer::raw_supply_integer): Likewise.
7089 (reg_buffer::raw_supply_zeroed): Likewise.
7090 (reg_buffer::raw_collect): Likewise.
7091 (reg_buffer::raw_collect_integer): Likewise.
7092 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
7093 (reg_buffer::raw_supply): Likewise.
7094 (reg_buffer::raw_supply_integer): Likewise.
7095 (reg_buffer::raw_supply_zeroed): Likewise.
7096 (reg_buffer::raw_collect): Likewise.
7097 (reg_buffer::raw_collect_integer): Likewise.
7099 2018-06-10 Tom Tromey <tom@tromey.com>
7101 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
7102 (class remote_state) <stop_reply_queue>: Now std::vector.
7103 (remote_state::~remote_state)
7104 (remote_target::stop_reply_queue_length): Update.
7105 (struct queue_iter_param, remove_child_of_pending_fork)
7106 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
7107 (check_pending_event_prevents_wildcard_vcont_callback)
7108 (remove_stop_reply_for_inferior)
7109 (remove_stop_reply_of_remote_state)
7110 (remote_notif_remove_once_on_match)
7111 (stop_reply_match_ptid_and_ws)
7112 (remote_kill_child_of_pending_fork): Remove.
7113 (remote_target::remove_new_fork_children)
7114 (remote_target::check_pending_events_prevent_wildcard_vcont)
7115 (remote_target::discard_pending_stop_replies)
7116 (remote_target::discard_pending_stop_replies_in_queue)
7117 (remote_target::remote_notif_remove_queued_reply)
7118 (remote_target::queued_stop_reply)
7119 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
7120 (remote_target::wait, remote_target::kill_new_fork_children)
7121 (remote_target::async): Update.
7123 2018-06-10 Tom Tromey <tom@tromey.com>
7125 * record-full.c (record_full_arch_list_cleanups): Remove.
7126 (record_full_message): Use try/catch.
7127 (record_full_wait_cleanups): Remove.
7128 (record_full_wait_1): Use try/catch.
7129 (record_full_restore): Likewise.
7131 2018-06-10 Tom Tromey <tom@tromey.com>
7133 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
7134 declare VEC. Add constructor.
7135 <in_target_beneath>: Now bool.
7136 (record_full_breakpoints): Now a std::vector, static.
7137 (record_full_sync_record_breakpoints)
7138 (record_full_init_record_breakpoints)
7139 (record_full_target::insert_breakpoint)
7140 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
7142 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7144 * dwarf2read.c (process_cu_includes): Remove struct keyword.
7145 * serial.c (serial_interface_lookup): Remove struct keyword.
7147 2018-06-10 Tom Tromey <tom@tromey.com>
7149 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
7151 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
7153 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
7155 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
7156 "beneath" as a method.
7157 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
7158 Use "beneath" as a method.
7160 2018-06-10 Tom Tromey <tom@tromey.com>
7162 * tracefile.c (struct trace_file_writer_deleter): New.
7163 <operator()>: Rename from trace_file_writer_xfree.
7164 (trace_file_writer_up): New typedef.
7165 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7167 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7169 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
7170 <m_registers, m_register_status>: Change type to
7172 * regcache.c (reg_buffer::reg_buffer): Use new instead of
7175 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7177 * common/common-regcache.h (enum register_status): Add
7178 underlying type "signed char".
7179 * regcache.h (reg_buffer) <m_register_status>: Change type to
7181 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
7182 register_status instead of signed char.
7183 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
7184 (reg_buffer::get_register_status): Remove cast.
7185 (readable_regcache::raw_read): Remove cast.
7186 (readable_regcache::cooked_read): Remove cast.
7188 2018-06-09 Tom Tromey <tom@tromey.com>
7190 * source.c (reverse_search_command, forward_search_command): Use
7193 2018-06-09 Tom Tromey <tom@tromey.com>
7195 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
7196 (serial_ops_list): Now static, std::vector.
7197 (serial_interface_lookup, serial_add_interface): Update.
7199 2018-06-09 Tom Tromey <tom@tromey.com>
7201 * dwarf2read.c (process_cu_includes): Update.
7202 (process_full_comp_unit): Update.
7203 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7206 2018-06-08 Paul Koning <paul_koning@dell.com>
7210 * python/python.c (do_start_initialization):
7211 Avoid call to internal Python API.
7212 (init__gdb_module): New function.
7214 2018-06-08 Gary Benson <gbenson@redhat.com>
7216 * linux-thread-db.c (valprint.h): New include.
7217 (struct check_thread_db_info): New structure.
7218 (check_thread_db_on_load, tdb_testinfo): New static globals.
7219 (check_thread_db, check_thread_db_callback): New functions.
7220 (try_thread_db_load_1): Run integrity checks if requested.
7221 (maintenance_check_libthread_db): New function.
7222 (_initialize_thread_db): Register "maint check libthread-db"
7223 and "maint set/show check-libthread-db".
7224 * NEWS: Mention the above new commands.
7226 2018-06-08 Tom Tromey <tom@tromey.com>
7228 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7231 2018-06-08 Tom Tromey <tom@tromey.com>
7233 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7235 2018-06-08 Tom Tromey <tom@tromey.com>
7237 * common/btrace-common.h (struct btrace_data): Add constructor,
7238 destructor, move assignment operator.
7239 <empty, clear, fini>: New methods.
7240 <format>: Initialize.
7241 (btrace_data_init, btrace_data_fini, btrace_data_clear)
7242 (btrace_data_empty): Don't declare.
7243 * common/btrace-common.c (btrace_data_init): Remove.
7244 (btrace_data::fini): Rename from btrace_data_fini.
7245 (btrace_data::empty): Rename from btrace_data_empty.
7246 (btrace_data::clear): Rename from btrace_data_clear. Return
7248 * btrace.h (make_cleanup_btrace_data): Don't declare.
7249 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7250 (parse_xml_btrace): Update.
7251 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
7252 (maint_btrace_clear_packet_history_cmd): Update.
7254 2018-06-07 Pedro Alves <palves@redhat.com>
7256 * target.h (target_ops) <beneath>: Now a method. All references
7258 (class target_stack): New.
7259 * target.c (g_target_stack): New.
7260 (g_current_top_target): Delete.
7261 (current_top_target): Get the top target out of g_target_stack.
7262 (target_stack::push, target_stack::unpush): New.
7263 (push_target, unpush_target): Reimplement.
7264 (target_is_pushed): Reimplement in terms of g_target_stack.
7265 (target_ops::beneath, target_stack::find_beneath): New.
7267 2018-06-07 Pedro Alves <palves@redhat.com>
7269 * target.h (find_target_beneath): Delete declaration.
7270 * target.c (find_target_beneath): Delete definition.
7271 * aix-thread.c: All callers of find_target_beneath adjusted to
7272 call target_ops::beneath instead.
7273 * bsd-uthread.c: Likewise.
7274 * linux-thread-db.c: Likewise.
7275 * ravenscar-thread.c: Likewise.
7276 * sol-thread.c: Likewise.
7277 * spu-multiarch.c: Likewise.
7279 2018-06-07 Pedro Alves <palves@redhat.com>
7281 * target.h (target_ops) <beneath>: Now a method. All references
7283 (target_ops) <m_beneath>: New.
7284 * target.c (target_ops::beneath): New.
7285 * corelow.c: Adjust all references to target_ops::beneath.
7286 * linux-thread-db.c: Likewise.
7287 * make-target-delegates: Likewise.
7288 * record-btrace.c: Likewise.
7289 * record-full.c: Likewise.
7290 * remote.c: Likewise.
7291 * target.c: Likewise.
7292 * target-delegates.c: Regenerate.
7294 2018-06-07 Pedro Alves <palves@redhat.com>
7296 * target.h (target_stack): Delete.
7297 (current_top_target): Declare function.
7298 * target.c (target_stack): Delete.
7299 (g_current_top_target): New.
7300 (current_top_target): New function.
7301 * auxv.c: Use current_top_target instead of target_stack
7303 * avr-tdep.c: Likewise.
7304 * breakpoint.c: Likewise.
7305 * corefile.c: Likewise.
7306 * elfread.c: Likewise.
7308 * exceptions.c: Likewise.
7309 * frame.c: Likewise.
7310 * gdbarch-selftests.c: Likewise.
7311 * gnu-v3-abi.c: Likewise.
7312 * ia64-tdep.c: Likewise.
7313 * ia64-vms-tdep.c: Likewise.
7314 * infcall.c: Likewise.
7315 * infcmd.c: Likewise.
7316 * infrun.c: Likewise.
7317 * linespec.c: Likewise.
7318 * linux-tdep.c: Likewise.
7319 * minsyms.c: Likewise.
7320 * ppc-linux-nat.c: Likewise.
7321 * ppc-linux-tdep.c: Likewise.
7322 * procfs.c: Likewise.
7323 * regcache.c: Likewise.
7324 * remote.c: Likewise.
7325 * rs6000-tdep.c: Likewise.
7326 * s390-linux-nat.c: Likewise.
7327 * s390-tdep.c: Likewise.
7328 * solib-aix.c: Likewise.
7329 * solib-darwin.c: Likewise.
7330 * solib-dsbt.c: Likewise.
7331 * solib-spu.c: Likewise.
7332 * solib-svr4.c: Likewise.
7333 * solib-target.c: Likewise.
7334 * sparc-tdep.c: Likewise.
7335 * sparc64-tdep.c: Likewise.
7336 * spu-tdep.c: Likewise.
7337 * symfile.c: Likewise.
7338 * symtab.c: Likewise.
7339 * target-descriptions.c: Likewise.
7340 * target-memory.c: Likewise.
7341 * target.c: Likewise.
7342 * target.h: Likewise.
7343 * tracefile-tfile.c: Likewise.
7344 * tracepoint.c: Likewise.
7345 * valops.c: Likewise.
7346 * valprint.c: Likewise.
7347 * value.c: Likewise.
7348 * windows-tdep.c: Likewise.
7349 * mi/mi-main.c: Likewise.
7351 2018-06-07 Tom Tromey <tom@tromey.com>
7353 * valprint.h (build_address_symbolic): Declare.
7354 * printcmd.c (print_address_symbolic): Update.
7355 (build_address_symbolic): Change "name" and "filename" to
7357 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7359 * defs.h (build_address_symbolic): Remove declaration.
7361 2018-06-07 Alan Hayward <alan.hayward@arm.com>
7363 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7364 (aarch64_vnv_type): Add function.
7365 (aarch64_pseudo_register_name): Add V regs for SVE.
7366 (aarch64_pseudo_register_type): Likewise.
7367 (aarch64_pseudo_register_reggroup_p): Likewise.
7368 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7369 (aarch64_pseudo_read_value): Add V regs for SVE.
7370 (aarch64_pseudo_write_2): Use V0 offset for SVE
7371 (aarch64_pseudo_write): Add V regs for SVE.
7372 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7374 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
7376 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7377 (sve_vl_from_vq): Likewise.
7379 2018-06-05 Tom Tromey <tom@tromey.com>
7381 * cli/cli-cmds.c (show_version): Update.
7382 * top.c (print_gdb_version): Add "interactive" parameter.
7384 * main.c (captured_main_1): Update.
7385 * top.h (print_gdb_version): Add "interactive" parameter and a
7388 2018-06-05 David Malcolm <dmalcolm@redhat.com>
7390 * common/enum-flags.h: Add trailing semicolon to example in
7393 2018-06-05 Tom Tromey <tom@tromey.com>
7396 * NEWS: Add entry about pager.
7397 * utils.c (pagination_disabled_for_command): New global.
7398 (prompt_for_continue): Allow "c" response to prompt.
7399 (reinitialize_more_filter): Clear
7400 pagination_disabled_for_command.
7401 (fputs_maybe_filtered): Check pagination_disabled_for_command.
7403 2018-06-04 Tom Tromey <tom@tromey.com>
7405 * ada-lang.h (ada_lookup_symbol_list): Update.
7406 * ada-lang.c (resolve_subexp): Update.
7407 (symbols_are_identical_enums): Change type of syms. Remove nsyms
7409 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7410 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7411 results parameter to std::vector.
7412 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7414 * ada-exp.y (block_lookup): Update.
7415 (select_possible_type_sym): Change type of syms. Remove nsyms
7417 (write_var_or_type, write_name_assoc): Update.
7419 2018-06-04 Joel Brobecker <brobecker@adacore.com>
7421 * windows-nat.c (windows_nat_target::xfer_partial): Return
7422 TARGET_XFER_E_IO if we need to delegate to the target beneath
7423 but BENEATH is NULL.
7425 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
7427 * Makefile.in (config.status): Add configure.nat as a
7430 2018-06-04 Tom Tromey <tom@tromey.com>
7432 * cp-name-parser.y (cpname_state): Add method declarations.
7433 (HANDLE_QUAL): Update.
7434 (cpname_state::d_grab, cpname_state::fill_comp)
7435 (cpname_state::make_operator, cpname_state::make_dtor)
7436 (cpname_state::make_builtin_type, cpname_state::make_name)
7437 (cpname_state::d_qualify, cpname_state::d_int_type)
7438 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7439 (%union): Move earlier.
7441 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7443 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7445 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7447 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7448 (aarch64_pseudo_write_1): Likewise.
7449 (aarch64_pseudo_read_value): Use helper.
7450 (aarch64_pseudo_write): Likewise.
7452 2018-06-04 Pedro Alves <palves@redhat.com>
7454 * darwin-nat.c (darwin_ops): Delete.
7455 (darwin_attach_pid): Use get_native_target.
7457 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7459 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7460 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7462 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7464 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7465 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7466 (aarch64_gdbarch_init): Check for SVE.
7467 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7469 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7471 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
7472 * aarch64-tdep.h (aarch64_read_description): Likewise.
7473 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7474 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7475 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
7476 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
7477 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
7479 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
7481 * value.c (value_fetch_lazy_bitfield): New.
7482 (value_fetch_lazy_memory): New.
7483 (value_fetch_lazy_register): New.
7484 (value_fetch_lazy): Factor out to smaller functions.
7486 2018-06-01 Tom Tromey <tom@tromey.com>
7488 * cp-name-parser.y (backslashable, represented): Now const.
7490 2018-06-01 Tom Tromey <tom@tromey.com>
7492 * cp-name-parser.y: Include parser-defs.h.
7493 (parser_fprintf): Remove declaration.
7495 2018-06-01 Tom Tromey <tom@tromey.com>
7497 * cp-name-parser.y: Use %pure-parser, %lex-param, and
7499 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
7500 (global_result): Remove globals.
7501 (struct cpname_state): New.
7502 (yyparse): Don't declare.
7503 (yylex, yyerror): Move declarations after %union.
7504 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
7505 (make_name): Add state parameter.
7507 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
7509 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
7511 (yylex): Add lvalp, state parameters.
7512 (yyerror): Add state parameter.
7513 (cp_demangled_name_to_comp): Update.
7515 2018-06-01 Tom Tromey <tom@tromey.com>
7517 * cp-name-parser.y (parser_fprintf): Declare.
7518 (GDB_YY_REMAP_PREFIX): Define.
7519 Include yy-remap.h. Don't redefine yy* identifiers.
7521 2018-06-01 Tom Tromey <tom@tromey.com>
7523 * python/py-type.c (typy_legacy_template_argument): Update.
7524 * cp-support.h (cp_demangled_name_to_comp): Update.
7525 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
7526 parameter to be a "std::string *".
7529 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
7531 * ada-lex.l: Include "diagnostics.h" instead of
7532 "common/diagnostics.h".
7533 * unittests/environ-selftests.c: Likewise.
7534 * common/diagnostics.h: Moved to ../include.
7536 2018-06-01 Joel Brobecker <brobecker@adacore.com>
7538 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
7539 to language_mode_manual while calling breakpoint_re_set_one.
7541 2018-06-01 Tom Tromey <tom@tromey.com>
7543 * valops.c (value_cast_structs, destructor_name_p): Update.
7544 * symtab.c (gdb_mangle_name): Update.
7545 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
7547 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
7548 (pascal_object_print_value_fields, pascal_object_print_value):
7550 * p-typeprint.c (pascal_type_print_derivation_info): Update.
7551 * linespec.c (find_methods): Update.
7552 * gdbtypes.h (type_name_no_tag): Remove.
7553 (type_name_or_error): Rename from type_name_no_tag_or_error.
7554 * gdbtypes.c (type_name_no_tag): Remove.
7555 (type_name_or_error): Rename from type_name_no_tag_or_error.
7556 (lookup_struct_elt_type, check_typedef): Update.
7557 * expprint.c (print_subexp_standard): Update.
7558 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
7559 * d-namespace.c (d_lookup_nested_symbol): Update.
7560 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
7561 (cp_print_class_member): Update.
7562 * cp-namespace.c (cp_lookup_nested_symbol): Update.
7563 * completer.c (add_struct_fields): Update.
7564 * c-typeprint.c (cp_type_print_derivation_info)
7565 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
7567 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
7568 (ada_prefer_type, ada_is_exception_sym): Update.
7570 2018-06-01 Tom Tromey <tom@tromey.com>
7572 * valops.c (enum_constant_from_type, value_namespace_elt)
7573 (value_maybe_namespace_elt): Update.
7574 * valarith.c (find_size_for_pointer_math): Update.
7575 * target-descriptions.c (make_gdb_type): Update.
7576 * symmisc.c (print_symbol): Update.
7577 * stabsread.c (define_symbol, read_type)
7578 (complain_about_struct_wipeout, add_undefined_type)
7579 (cleanup_undefined_types_1): Update.
7580 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
7581 (rust_range_type_p, val_print_struct, rust_print_struct_def)
7582 (rust_internal_print_type, rust_composite_type)
7583 (rust_evaluate_funcall, rust_evaluate_subexp)
7584 (rust_inclusive_range_type_p): Update.
7585 * python/py-type.c (typy_get_tag): Update.
7586 * p-typeprint.c (pascal_type_print_base): Update.
7587 * mdebugread.c (parse_symbol, parse_type): Update.
7588 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
7590 * guile/scm-type.c (gdbscm_type_tag): Update.
7591 * go-lang.c (sixg_string_p): Update.
7592 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
7594 * gdbtypes.h (struct main_type) <tag_name>: Remove.
7595 (TYPE_TAG_NAME): Remove.
7596 * gdbtypes.c (type_name_no_tag): Simplify.
7597 (check_typedef, check_types_equal, recursive_dump_type)
7598 (copy_type_recursive, arch_composite_type): Update.
7599 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
7600 in summary mode when needed.
7601 * eval.c (evaluate_funcall): Update.
7602 * dwarf2read.c (fixup_go_packaging, read_structure_type)
7603 (process_structure_scope, read_enumeration_type)
7604 (read_namespace_type, read_module_type, determine_prefix): Update.
7605 * cp-support.c (inspect_type): Update.
7606 * coffread.c (process_coff_symbol, decode_base_type): Update.
7607 * c-varobj.c (c_is_path_expr_parent): Update.
7608 * c-typeprint.c (c_type_print_base_struct_union): Update.
7609 (c_type_print_base_1): Update. Print struct/class/union/enum in
7610 summary when using C language.
7611 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
7612 (gen_maybe_namespace_elt): Update.
7613 * ada-lang.c (ada_type_name): Simplify.
7614 (empty_record, ada_template_to_fixed_record_type_1)
7615 (template_to_static_fixed_type)
7616 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
7618 2018-06-01 Tom Tromey <tom@tromey.com>
7620 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
7622 * c-typeprint.c (c_print_type_1): Add "language" parameter.
7623 (c_print_type): Update.
7624 (c_print_type): New overload.
7625 (c_type_print_varspec_prefix, c_type_print_args)
7626 (c_type_print_varspec_suffix, c_print_type_no_offsets)
7627 (c_type_print_base_struct_union, c_type_print_base_1)
7628 (cp_type_print_method_args): Add "language" parameter.
7629 (c_type_print_base): Update.
7630 * c-lang.h (c_print_type): Add new overload.
7632 2018-06-01 Tom Tromey <tom@tromey.com>
7634 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
7635 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
7637 2018-06-01 Alan Hayward <alan.hayward@arm.com>
7639 * aarch64-tdep.c (aarch64_sve_register_names): New const
7641 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
7642 (AARCH64_SVE_Z_REGS_NUM): New define.
7643 (AARCH64_SVE_P_REGS_NUM): Likewise.
7644 (AARCH64_SVE_NUM_REGS): Likewise.
7646 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
7648 * nat/linux-ptrace.h [__alpha__]
7649 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
7652 2018-05-31 Maciej W. Rozycki <macro@mips.com>
7654 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
7655 the endianness selected.
7656 * NEWS: Document `set endian auto' mode operation update.
7658 2018-05-31 Alan Hayward <alan.hayward@arm.com>
7660 * Makefile.in: Add new header.
7661 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
7662 (sve_vl_from_vg): Likewise.
7663 (sve_vq_from_vl): Likewise.
7664 (sve_vl_from_vq): Likewise.
7665 (sve_vq_from_vg): Likewise.
7666 (sve_vg_from_vq): Likewise.
7667 * configure.nat: Add new c file.
7668 * nat/aarch64-sve-linux-ptrace.c: New file.
7669 * nat/aarch64-sve-linux-ptrace.h: New file.
7671 2018-05-31 Alan Hayward <alan.hayward@arm.com>
7673 * aarch64-linux-nat.c (aarch64_linux_read_description):
7675 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7677 * aarch64-tdep.c (tdesc_aarch64_list): Add.
7678 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
7679 (aarch64_gdbarch_init): Add parmeter zero.
7680 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
7681 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
7682 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
7684 * doc/gdb.texinfo: Describe SVE feature
7685 * features/aarch64-sve.c: New file.
7687 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
7690 * gdbarch.sh (significant_addr_bit): Default to zero when
7691 not set by target architecture.
7692 * gdbarch.c: Re-generated.
7693 * utils.c (address_significant): Update.
7695 2018-05-30 Joel Brobecker <brobecker@adacore.com>
7697 * stack.c (func_command): Remove trailing newline in call to error.
7699 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7701 * regcache.h (regcache_raw_collect): Remove, update callers to
7702 use regcache::raw_collect.
7703 * regcache.c (regcache_raw_collect): Remove.
7705 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7707 * regcache.h (regcache_raw_supply): Remove, update callers to
7708 use detached_regcache::raw_supply.
7709 * regcache.c (regcache_raw_supply): Remove.
7711 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7713 * regcache.h (regcache_cooked_write_part): Remove, update
7714 callers to use regcache::cooked_write_part.
7715 * regcache.c (regcache_cooked_write_part): Remove.
7717 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7719 * regcache.h (regcache_cooked_read_part): Remove, update callers
7720 to use readable_regcache::cooked_read_part.
7721 * regcache.c (regcache_cooked_read_part): Remove.
7723 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7725 * regcache.h (regcache_cooked_read_value): Remove, update
7726 callers to use readable_regcache::cooked_read_value.
7727 * regcache.c (regcache_cooked_read_value): Remove.
7729 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7731 * regcache.h (regcache_cooked_write): Remove, update callers to
7732 use regcache::cooked_write.
7733 * regcache.c (regcache_cooked_write): Remove.
7735 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7737 * regcache.h (regcache_invalidate): Remove, update callers to
7738 use detached_regcache::invalidate instead.
7739 * regcache.c (regcache_invalidate): Remove.
7741 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7743 * regcache.h (regcache_raw_write_part): Remove, update callers
7744 to use regcache::raw_write_part instead.
7745 * regcache.c (regcache_raw_write_part): Remove.
7747 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7749 * regcache.h (regcache_raw_read_part): Remove, update callers to
7750 use readable_regcache::raw_read_part instead.
7751 * regcache.c (regcache_raw_read_part): Remove.
7753 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7755 * regcache.h (regcache_cooked_read): Remove, update callers to
7756 use readable_regcache::cooked_read instead.
7757 * regcache.c (regcache_cooked_read): Remove.
7759 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7761 * regcache.h (regcache_raw_write): Remove, update callers to use
7762 regcache::raw_write instead.
7763 * regcache.c (regcache_raw_write): Remove.
7765 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7767 * regcache.h (regcache_raw_read): Remove, update callers to use
7768 readable_regcache::raw_read instead.
7769 * regcache.c (regcache_raw_read): Remove.
7771 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7773 * regcache.h (regcache_raw_update): Remove, update callers to
7774 use readable_regcache::raw_update instead.
7775 * regcache.c (regcache_raw_update): Remove.
7777 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7779 * regcache.h (regcache_register_status): Remove, update callers
7780 to use reg_buffer::get_register_status directly instead.
7781 * regcache.c (regcache_register_status): Remove.
7783 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7785 * regcache.h (regcache_get_ptid): Remove, update all callers to
7786 call regcache::ptid instead.
7787 * regcache.c (regcache_get_ptid): Remove.
7789 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7791 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
7793 2018-05-30 Pedro Alves <palves@redhat.com>
7795 * common/common-exceptions.h (exception_rethrow): Use
7798 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
7800 * breakpoint.c (print_solib_event, check_status_catch_solib):
7801 Remove struct keyword in range-based for loops.
7802 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
7803 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
7805 * linespec.c (find_superclass_methods, search_minsyms_for_name):
7807 * symfile.c (addr_info_make_relative): Likewise.
7808 * thread.c (value_in_thread_stack_temporaries): Likewise.
7810 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
7813 * valops.c (value_struct_elt_for_reference): Call check_typedef on
7814 aggregate type to get its real type before accessing it.
7816 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
7818 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
7819 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
7820 * coff-pe-read.c (add_pe_forwarded_sym): Replace
7821 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
7822 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
7823 * jit.c (jit_breakpoint_re_set_internal): Likewise.
7824 * printcmd.c (info_address_command): Likewise.
7826 2018-05-29 Tom Tromey <tom@tromey.com>
7828 * windows-nat.c (handle_exception): Update fall-through comment.
7830 2018-05-29 Tom Tromey <tom@tromey.com>
7832 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
7833 (struct program_space) <added_solibs>: Now a std::vector.
7834 * breakpoint.c (print_solib_event): Update.
7835 (check_status_catch_solib): Update.
7836 * progspace.c (clear_program_space_solib_cache): Update.
7837 * solib.c (update_solib_list): Update.
7839 2018-05-29 Tom Tromey <tom@tromey.com>
7841 * python/py-type.c (typy_richcompare): Update.
7842 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7843 * gdbtypes.h (types_deeply_equal): Return bool.
7844 (types_equal): Likewise.
7845 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
7847 (check_types_equal): Change worklist to std::vector. Return
7849 (struct type_equality_entry): Add constructor.
7850 (compare_maybe_null_strings): Return bool.
7851 (check_types_worklist): Return bool. Change worklist to
7853 (types_deeply_equal): Use std::vector.
7854 (types_equal): Return bool.
7855 (compare_maybe_null_strings): Simplify.
7857 2018-05-29 Tom Tromey <tom@tromey.com>
7859 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
7861 2018-05-29 Tom Tromey <tom@tromey.com>
7863 * objc-lang.h: Don't include cp-support.h.
7864 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
7867 2018-05-27 Tom Tromey <tom@tromey.com>
7869 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7871 2018-05-25 Tom Tromey <tom@tromey.com>
7873 * value.c (value::location): Initialize.
7875 2018-05-25 Tom Tromey <tom@tromey.com>
7877 * dbxread.c (init_bincl_list): Remove.
7878 (bincl_list): Now a std::vector.
7879 (bincls_allocated, next_bincl): Remove.
7880 (free_bincl_list, do_free_bincl_list_cleanup)
7881 (make_cleanup_free_bincl_list): Remove.
7882 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7884 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7885 (struct header_file_location): Add constructor.
7886 (add_bincl_to_list): Remove.
7888 2018-05-25 Tom Tromey <tom@tromey.com>
7890 * tui/tui.c (tui_enable): Update.
7891 * mi/mi-interp.c (mi_interp::init): Update.
7892 * interps.h (class interp) <name>: New method.
7893 <m_name>: Rename from name.
7894 (~scoped_restore_interp): Update.
7895 * interps.c (interp::interp): Update.
7896 (interp_add, interp_set, interp_lookup_existing)
7897 (current_interp_named_p): Update.
7899 2018-05-25 Tom Tromey <tom@tromey.com>
7901 * interps.c (interp_name): Remove.
7902 * mi/mi-interp.c (mi_interp::init): Update.
7903 * interps.h (interp_name): Remove.
7904 (~scoped_restore_interp): Update.
7905 * tui/tui.c (tui_enable): Update.
7907 2018-05-25 Tom Tromey <tom@tromey.com>
7909 * utils.c (fputs_maybe_filtered): Update.
7910 * linespec.c (decode_line_full): Update.
7911 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7912 (mi_print_breakpoint_for_event, mi_solib_loaded)
7913 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7914 (mi_user_selected_context_changed): Update.
7915 * mi/mi-main.c (mi_execute_command): Update.
7916 * cli/cli-script.c (execute_control_command): Update.
7917 * python/python.c (execute_gdb_command): Update.
7918 * solib.c (info_sharedlibrary_command): Update.
7919 * interps.c (interp_ui_out): Remove.
7920 * interps.h (interp_ui_out): Remove.
7922 2018-05-25 Tom Tromey <tom@tromey.com>
7924 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7925 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7926 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7928 2018-05-25 Tom Tromey <tom@tromey.com>
7930 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7931 * interps.c (interp_exec): Use scoped_restore.
7933 2018-05-25 Tom Tromey <tom@tromey.com>
7935 * remote.c (remote_target::remote_file_get): Use
7937 (remote_target::remote_file_put): Likewise.
7939 2018-05-25 Tom Tromey <tom@tromey.com>
7941 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7943 (get_pe_section_index, add_pe_exported_sym): Update.
7944 (read_pe_exported_syms): Use gdb::def_vector.
7946 2018-05-25 Tom Tromey <tom@tromey.com>
7948 * frame.c (remove_prev_frame): Remove.
7949 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7951 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7953 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7955 * mips-linux-nat.c (supply_fpregset): Always call
7956 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7957 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7958 `mips_fill_fpregset'.
7959 * mips-linux-tdep.c (mips_supply_fpregset)
7960 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7961 (mips_fill_fpregset_wrapper): Remove functions.
7962 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7963 (mips_linux_fpregset): Remove variable.
7964 (mips_linux_iterate_over_regset_sections): Use
7965 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7966 (mips_linux_o32_sigframe_init): Remove comment.
7968 2018-05-25 Pedro Alves <palves@redhat.com>
7970 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7971 (struct readahead_cache, struct packet_reg, struct
7972 remote_arch_state, class remote_state): Move higher up in the
7974 (remote_target::m_remote_state): Now an object instead of a pointer.
7975 (remote_target::get_remote_state): Adjust.
7977 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7979 * stack.c (select_and_print_frame): Delete.
7980 (struct function_bounds): Move struct within function.
7981 (func_command): Most content moved into new function
7982 find_frame_for_function, use new function, print result, add
7984 (find_frame_for_function): New function, now returns a result.
7986 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7988 * stack.c (iterate_over_block_arg_vars): Fix comment.
7989 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7991 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7995 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7997 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7999 * frame.h (class scoped_restore_selected_frame): New class.
8000 * stack.c (print_frame_local_vars): Remove catching and rethrowing
8001 of any exception, use scoped_restore_selected_frame to restore the
8004 2018-05-24 Pedro Alves <palves@redhat.com>
8006 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
8009 2018-05-23 Tom Tromey <tom@tromey.com>
8011 * complaints.c (struct complaints): Remove.
8012 (symfile_complaint_book): Remove.
8013 (series): New global.
8014 (complaint_internal): Update.
8015 (clear_complaints): Update.
8017 2018-05-23 Tom Tromey <tom@tromey.com>
8019 * complaints.c (counters): New global.
8020 (struct complain): Remove.
8021 (struct complaints) <root>: Remove.
8022 (complaint_sentinel): Remove.
8023 (symfile_complaint_book): Update.
8024 (find_complaint) Remove.
8025 (complaint_internal, clear_complaints): Update.
8027 2018-05-23 Tom Tromey <tom@tromey.com>
8029 * complaints.c (struct complain) <file, line>: Remove.
8030 (find_complaint): Remove file, line parameters.
8031 (complaint_internal): Update.
8033 2018-05-23 Tom Tromey <tom@tromey.com>
8035 * complaints.c (vcomplaint): Remove.
8036 (complaint_internal) Merge in contents of vcomplaint.
8038 2018-05-23 Tom Tromey <tom@tromey.com>
8040 * complaints.c (struct complaints) <explanation>: Remove.
8041 (symfile_explanations): Remove.
8042 (symfile_complaint_book): Update.
8043 (vcomplaint): Update.
8044 (struct explanation): Remove.
8046 2018-05-23 Tom Tromey <tom@tromey.com>
8048 * complaints.c (symfile_complaints): Remove.
8049 (complaint_internal): Remove "complaints" parameter.
8050 (clear_complaints, vcomplaint): Remove "c" parameter.
8051 (get_complaints): Remove.
8052 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
8053 (dwarf2_debug_line_missing_file_complaint)
8054 (dwarf2_debug_line_missing_end_sequence_complaint)
8055 (dwarf2_complex_location_expr_complaint)
8056 (dwarf2_const_value_length_mismatch_complaint)
8057 (dwarf2_section_buffer_overflow_complaint)
8058 (dwarf2_macro_malformed_definition_complaint)
8059 (dwarf2_invalid_attrib_class_complaint)
8060 (create_addrmap_from_index, dw2_symtab_iter_next)
8061 (dw2_expand_marked_cus)
8062 (dw2_debug_names_iterator::find_vec_in_debug_names)
8063 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
8064 (create_debug_type_hash_table, init_cutu_and_read_dies)
8065 (partial_die_parent_scope, add_partial_enumeration)
8066 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
8067 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
8068 (read_import_statement, read_file_scope, create_dwo_cu_reader)
8069 (create_cus_hash_table, create_dwp_hash_table)
8070 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8071 (dwarf2_rnglists_process, dwarf2_ranges_process)
8072 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
8073 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
8074 (handle_struct_member_die, process_structure_scope)
8075 (read_array_type, read_common_block, read_module_type)
8076 (read_tag_pointer_type, read_typedef, read_base_type)
8077 (read_subrange_type, load_partial_dies, partial_die_info::read)
8078 (partial_die_info::read, partial_die_info::read)
8079 (partial_die_info::read, read_checked_initial_length_and_offset)
8080 (dwarf2_string_attr, read_formatted_entries)
8081 (dwarf_decode_line_header)
8082 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
8083 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
8084 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
8085 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8086 (get_signatured_type, get_DW_AT_signature_type)
8087 (decode_locdesc, file_file_name, consume_improper_spaces)
8088 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
8089 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8090 (dwarf2_symbol_mark_computed, set_die_type)
8091 (read_attribute_value): Update.
8092 * stap-probe.c (handle_stap_probe, get_stap_base_address):
8094 * dbxread.c (unknown_symtype_complaint)
8095 (lbrac_mismatch_complaint, repeated_header_complaint)
8096 (set_namestring, function_outside_compilation_unit_complaint)
8097 (read_dbx_symtab, process_one_symbol): Update.
8098 * gdbtypes.c (stub_noname_complaint): Update.
8099 * windows-nat.c (handle_unload_dll): Update.
8100 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
8101 (decode_base_type): Update.
8102 * xcoffread.c (bf_notfound_complaint, ef_complaint)
8103 (eb_complaint, record_include_begin, record_include_end)
8104 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
8105 (process_xcoff_symbol, read_symbol)
8106 (function_outside_compilation_unit_complaint)
8107 (scan_xcoff_symtab): Update.
8108 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
8109 * buildsym.c (finish_block_internal, make_blockvector)
8110 (end_symtab_get_static_block, augment_type_symtab): Update.
8111 * dtrace-probe.c (dtrace_process_dof)
8112 (dtrace_static_probe_ops::get_probes): Update.
8113 * complaints.h (struct complaint): Don't declare.
8114 (symfile_complaints): Remove.
8115 (complaint_internal): Remove "complaints" parameter.
8116 (complaint): Likewise.
8117 (clear_complaints): Likewise.
8118 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8119 (reread_symbols): Update.
8120 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
8121 (dwarf2_frame_cache, decode_frame_entry): Update.
8122 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
8123 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8124 (info_selectors_command): Update.
8125 * macrotab.c (macro_include, check_for_redefinition)
8126 (macro_undef): Update.
8127 * objfiles.c (filter_overlapping_sections): Update.
8128 * stabsread.c (invalid_cpp_abbrev_complaint)
8129 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
8130 (define_symbol, error_type, read_type, rs6000_builtin_type)
8131 (stabs_method_name_from_physname, read_member_functions)
8132 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
8133 (attach_fields_to_type, complain_about_struct_wipeout)
8134 (read_range_type, read_args, common_block_start)
8135 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
8137 * mdebugread.c (index_complaint, unknown_ext_complaint)
8138 (basic_type_complaint, bad_tag_guess_complaint)
8139 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
8140 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
8141 (parse_procedure, parse_lines)
8142 (function_outside_compilation_unit_complaint)
8143 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
8144 (bad_tag_guess_complaint, reg_value_complaint): Update.
8145 * cp-support.c (demangled_name_complaint): Update.
8146 * macroscope.c (sal_macro_scope): Update.
8147 * dwarf-index-write.c (class debug_names): Update.
8149 2018-05-23 Tom Tromey <tom@tromey.com>
8151 * complaints.c (clear_complaints): Remove "noisy" parameter.
8152 * complaints.h (clear_complaints): Update.
8153 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8154 (reread_symbols): Update.
8156 2018-05-23 Tom Tromey <tom@tromey.com>
8158 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
8160 (vcomplaint, clear_complaints): Update.
8161 (symfile_explanations): Remove some messages.
8163 2018-05-23 Tom Tromey <tom@tromey.com>
8165 * complaints.c (internal_complaint): Remove.
8166 * complaints.h (internal_complaint): Remove.
8168 2018-05-22 Maciej W. Rozycki <macro@mips.com>
8170 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
8172 2018-05-22 Pedro Alves <palves@redhat.com>
8174 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
8175 (remote_fileio_badfd, remote_fileio_return_errno)
8176 (remote_fileio_return_success, remote_fileio_func_open)
8177 (remote_fileio_func_open, remote_fileio_func_close)
8178 (remote_fileio_func_read, remote_fileio_func_write)
8179 (remote_fileio_func_lseek, remote_fileio_func_rename)
8180 (remote_fileio_func_unlink, remote_fileio_func_stat)
8181 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
8182 (remote_fileio_func_isatty, remote_fileio_func_system): Add
8183 remote_target parameter.
8184 (remote_fio_func_map) <func>: Add remote_target parameter.
8185 (do_remote_fileio_request, remote_fileio_request):
8186 * remote-fileio.h (remote_fileio_request):
8187 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
8188 remote_target parameter.
8189 (remote_notif_process, handle_notification): Adjust to pass down
8191 (remote_notif_state_allocate): Add remote_target parameter. Save
8193 * remote-notif.h (struct remote_target): Forward declare.
8194 (struct notif_client) <parse, ack, can_get_pending_events>: Add
8195 remote_target parameter.
8196 (struct remote_notif_state) <remote>: New field.
8197 (remote_notif_ack, remote_notif_parse): Add remote_target
8199 (remote_notif_state_allocate, remote_notif_state_allocate): Add
8200 remote_target parameter.
8201 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8202 (threads_listing_context, rmt_thread_action, protocol_feature)
8203 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8204 (packet_result, struct threads_listing_context, remote_state):
8205 Move definitions and declarations higher up.
8206 (remote_target) <~remote_target>: Declare.
8207 (remote_download_command_source, remote_file_put, remote_file_get)
8208 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8209 (remote_hostio_pread_vFile, remote_hostio_send_command)
8210 (remote_hostio_set_filesystem, remote_hostio_open)
8211 (remote_hostio_close, remote_hostio_unlink, remote_state)
8212 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8213 (get_memory_write_packet_size, get_memory_read_packet_size)
8214 (append_pending_thread_resumptions, remote_detach_1)
8215 (append_resumption, remote_resume_with_vcont)
8216 (add_current_inferior_and_thread, wait_ns, wait_as)
8217 (process_stop_reply, remote_notice_new_inferior)
8218 (process_initial_stop_replies, remote_add_thread)
8219 (btrace_sync_conf, remote_btrace_maybe_reopen)
8220 (remove_new_fork_children, kill_new_fork_children)
8221 (discard_pending_stop_replies, stop_reply_queue_length)
8222 (check_pending_events_prevent_wildcard_vcont)
8223 (discard_pending_stop_replies_in_queue, stop_reply)
8224 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8225 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8226 (remote_interrupt_as, remote_interrupt_ns)
8227 (remote_get_noisy_reply, remote_query_attached)
8228 (remote_add_inferior, remote_current_thread, get_current_thread)
8229 (set_thread, set_general_thread, set_continue_thread)
8230 (set_general_process, write_ptid)
8231 (remote_unpack_thread_info_response, remote_get_threadinfo)
8232 (parse_threadlist_response, remote_get_threadlist)
8233 (remote_threadlist_iterator, remote_get_threads_with_ql)
8234 (remote_get_threads_with_qxfer)
8235 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8236 (get_offsets, remote_check_symbols, remote_supported_packet)
8237 (remote_query_supported, remote_packet_size)
8238 (remote_serial_quit_handler, remote_detach_pid)
8239 (remote_vcont_probe, remote_resume_with_hc)
8240 (send_interrupt_sequence, interrupt_query)
8241 (remote_notif_get_pending_events, fetch_register_using_p)
8242 (send_g_packet, process_g_packet, fetch_registers_using_g)
8243 (store_register_using_P, store_registers_using_G)
8244 (set_remote_traceframe, check_binary_download)
8245 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8246 (remote_xfer_live_readonly_partial, remote_read_bytes)
8247 (remote_send_printf, remote_flash_write, readchar)
8248 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8249 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8250 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
8251 (extended_remote_disable_randomization, extended_remote_run)
8252 (send_environment_packet, extended_remote_environment_support)
8253 (extended_remote_set_inferior_cwd, remote_write_qxfer)
8254 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
8255 (packet_command): Now methods of ...
8256 (remote_target): ... this class.
8257 (m_remote_state) <remote_target>: New field.
8258 (struct remote_state) <stop_reply_queue,
8259 remote_async_inferior_event_token, wait_forever_enabled_p>: New
8261 (remote_state::remote_state): Allocate stop_reply_queue.
8262 (remote_state): Delete global.
8263 (get_remote_state_raw): Delete.
8264 (remote_target::get_remote_state): Allocate m_remote_state on
8266 (get_current_remote_target): New.
8267 (remote_ops, extended_remote_ops): Delete.
8268 (wait_forever_enabled_p, remote_async_inferior_event_token):
8269 Delete, moved to struct remote_state.
8270 (remote_target::close): Delete self. Destruction bits split to
8272 (remote_target::~remote_target): ... this.
8273 (show_memory_packet_size): Adjust to use
8274 get_current_remote_target.
8275 (struct protocol_feature) <func>: Add remote_target parameter.
8276 All callers adjusted.
8277 (curr_quit_handler_target): New.
8278 (remote_serial_quit_handler): Reimplement.
8279 (remote_target::open_1): Adjust to use get_current_remote_target.
8280 Heap-allocate remote_target/extended_remote_target instances.
8281 (vcont_builder::vcont_builder): Add remote_target parameter, and
8282 save it in m_remote. All callers adjusted.
8283 (vcont_builder::m_remote): New field.
8284 (vcont_builder::restart, vcont_builder::flush)
8285 (vcont_builder::push_action): Use it.
8286 (remote_target::commit_resume): Use it.
8287 (struct queue_iter_param) <remote>: New field.
8288 (remote_target::remove_new_fork_children): Fill in 'remote' field.
8289 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
8290 (check_pending_event_prevents_wildcard_vcont_callback)
8291 (remote_target::check_pending_events_prevent_wildcard_vcont)
8292 (remote_target::discard_pending_stop_replies)
8293 (remote_target::discard_pending_stop_replies_in_queue)
8294 (remote_target::remote_notif_remove_queued_reply): Fill in
8296 (remote_notif_get_pending_events): New.
8297 (remote_target::readchar, remote_target::remote_serial_write):
8298 Save/restore curr_quit_handler_target.
8300 (kill_new_fork_children): Fill in 'remote' field.
8301 (packet_command): Use get_current_remote_target, defer to
8302 remote_target method of same name.
8303 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
8304 parameter, and save it in m_remote. All callers adjusted.
8305 (scoped_remote_fd::release): Use m_remote.
8306 (scoped_remote_fd::m_remote): New field.
8307 (remote_file_put, remote_file_get, remote_file_delete): Use
8308 get_current_remote_target, defer to remote_target method of same
8310 (remote_btrace_reset): Add remote_state paremeter. Update all
8312 (remote_async_inferior_event_handler). Pass down 'data'.
8313 (remote_new_objfile): Use get_current_remote_target.
8314 (remote_target::vcont_r_supported): New.
8315 (set_range_stepping): Use get_current_remote_target and
8316 remote_target::vcont_r_supported.
8317 (_initialize_remote): Don't allocate 'remote_state' and
8318 'stop_reply_queue' globals.
8319 * remote.h (struct remote_target): Forward declare.
8320 (getpkt, putpkt, remote_notif_get_pending_events): Add
8321 'remote_target' parameter.
8323 2018-05-22 Pedro Alves <palves@redhat.com>
8325 * remote.c (vcont_builder): Now a class. Make all data members
8327 (vcont_builder) <vcont_builder, restart, flush, push_action>:
8329 (vcont_builder_restart): Rename to ...
8330 (vcont_builder::restart): ... this.
8331 (vcont_builder_flush): Rename to ...
8332 (vcont_builder::flush): ... this.
8333 (vcont_builder_push_action): Rename to ...
8334 (vcont_builder::push_action): ... this.
8335 (remote_target::commit_resume): Adjust.
8337 2018-05-22 Pedro Alves <palves@redhat.com>
8339 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
8340 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
8341 (get_fixed_memory_packet_size): New.
8342 (get_memory_packet_size): Use it.
8343 (set_memory_packet_size): Don't override the config size with
8344 DEFAULT_MAX_MEMORY_PACKET_SIZE.
8345 (show_memory_packet_size): Use get_fixed_memory_packet_size.
8346 Don't refer to get_memory_packet_size if not connected to a remote
8347 target. Show "(default)" if configured size is 0.
8349 2018-05-22 Pedro Alves <palves@redhat.com>
8351 * remote.c (remote_target::mourn_inferior): Move
8352 discard_pending_stop_replies call here from ...
8353 (_initialize_remote): ... here.
8355 2018-05-22 Pedro Alves <palves@redhat.com>
8357 * remote.c (compare_section_command): Remove set_general_process
8360 2018-05-22 Pedro Alves <palves@redhat.com>
8362 * remote.c (struct packet_reg, struct remote_arch_state):
8363 Move higher up in the file.
8364 (remote_state) <m_arch_states>: Store remote_arch_state values
8365 instead of remote_arch_state pointers.
8366 (remote_state::get_remote_arch_state): Adjust.
8368 2018-05-22 Pedro Alves <palves@redhat.com>
8370 * remote.c: Include <unordered_map>.
8371 (remote_state): Now a class.
8372 (remote_state) <get_remote_arch_state>: Declare method.
8373 <get_remote_arch_state>: New field.
8374 (remote_arch_state) <remote_arch_state>: Declare ctor.
8375 <regs>: Now a unique_ptr.
8376 (remote_gdbarch_data_handle): Delete.
8377 (get_remote_arch_state): Delete.
8378 (remote_state::get_remote_arch_state): New.
8379 (get_remote_state): Adjust to call remote_state's
8380 get_remote_arch_state method.
8381 (init_remote_state): Delete, bits factored out to ...
8382 (remote_arch_state::remote_arch_state): ... this new method.
8383 (get_remote_packet_size, get_memory_packet_size)
8384 (process_g_packet, remote_target::fetch_registers)
8385 (remote_target::prepare_to_store, store_registers_using_G)
8386 (remote_target::store_registers, remote_target::get_trace_status):
8387 Adjust to call remote_state's method.
8388 (_initialize_remote): Remove reference to
8389 remote_gdbarch_data_handle.
8391 2018-05-22 Pedro Alves <palves@redhat.com>
8393 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8394 pread>: New method declarations.
8395 (remote_target::open_1): Adjust.
8396 (readahead_cache_invalidate): Rename to ...
8397 (readahead_cache::invalidate): ... this, and adjust to be a class
8399 (readahead_cache_invalidate_fd): Rename to ...
8400 (readahead_cache::invalidate_fd): ... this, and adjust to be a
8402 (remote_hostio_pwrite): Adjust.
8403 (remote_hostio_pread_from_cache): Rename to ...
8404 (readahead_cache::pread): ... this, and adjust to be a class
8406 (remote_hostio_close): Adjust.
8408 2018-05-22 Pedro Alves <palves@redhat.com>
8410 * remote.c (remote_hostio_close_cleanup): Delete.
8411 (class scoped_remote_fd): New.
8412 (remote_file_put, remote_file_get): Use it.
8414 2018-05-22 Pedro Alves <palves@redhat.com>
8416 (struct vCont_action_support): Use bool and initialize all fields.
8417 (struct readahead_cache): Initialize all fields.
8418 (remote_state): Use bool and initialize all fields.
8419 (remote_state::remote_state, remote_state::~remote_state): New.
8420 (new_remote_state): Delete.
8421 (_initialize_remote): Use new to allocate remote_state.
8423 2018-05-22 Pedro Alves <palves@redhat.com>
8427 * c-exp.y: Include "c-support.h".
8428 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8429 of tolower. Use c_ident_is_alpha to scan names.
8430 * c-lang.c: Include "c-support.h".
8431 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8432 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8433 * c-support.h: New file, with bits factored out from ...
8434 * cp-name-parser.y: ... this file.
8435 Include "c-support.h".
8436 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8437 c-support.h and renamed.
8438 (symbol_end, yylex): Adjust.
8440 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8442 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8443 parameter type to CORE_ADDR.
8444 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8445 parameter type in declaration to CORE_ADDR.
8446 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8447 target_auxv_search to get AT_HWCAP and use the result to get the
8449 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8450 to CORE_ADDR. Remove the cast of the return value to unsigned
8451 long. Fix error predicate of target_auxv_search.
8452 (ppc_linux_nat_target::read_description): Change the type of the
8453 hwcap variable to CORE_ADDR.
8455 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8457 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8458 if the size of fpscr is larger than 32 bits.
8460 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8462 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8463 (ppc32_linux_vsxregmap): New global.
8464 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8465 regcache_supply_regset, and regcache_collect_regset.
8466 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8467 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8468 (fetch_vsx_register, store_vsx_register): Remove.
8469 (fetch_vsx_registers): Add regno parameter. Get regset using
8470 ppc_linux_vsxregset. Use regset to supply registers.
8471 (store_vsx_registers): Add regno parameter. Get regset using
8472 ppc_linux_vsxregset. Use regset to collect registers.
8473 (fetch_register): Call fetch_vsx_registers instead of
8475 (store_register): Call store_vsx_registers instead of
8477 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
8478 new regno parameter.
8479 (store_ppc_registers): Call store_vsx_registers with -1 for the
8480 new regno parameter.
8481 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
8482 (ppc_collect_vsxregset): Remove.
8484 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8486 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
8488 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
8489 for vector register offset fields.
8490 (ppc64_fbsd_reg_offsets): Likewise.
8491 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8492 to vector register offset fields.
8493 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8494 to vector register offset fields.
8495 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
8496 vector register offset fields.
8497 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
8498 initializers for vector register offset fields.
8499 (rs6000_aix64_reg_offsets): Likewise.
8500 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
8501 (ppc_supply_vrregset): Remove.
8502 (ppc_collect_vrregset): Remove.
8503 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
8504 (ppc_linux_vrregset) : New function.
8505 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
8506 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
8507 (ppc32_linux_vrregset): Remove.
8508 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
8509 and use result instead of ppc32_linux_vrregset.
8510 (ppc32_linux_reg_offsets): Remove initializers for vector register
8512 (ppc64_linux_reg_offsets): Likewise.
8513 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
8514 * ppc-linux-nat.c: Include regset.h.
8515 (gdb_vrregset_t): Adjust comment to account for little-endian
8517 (supply_vrregset, fill_vrregset): Remove.
8518 (fetch_altivec_register, store_altivec_register): Remove.
8519 (fetch_altivec_registers): Add regno parameter. Get regset using
8520 ppc_linux_vrregset. Use regset to supply registers.
8521 (store_altivec_registers): Add regno parameter. Get regset using
8522 ppc_linux_vrregset. Use regset to collect registers.
8523 (fetch_register): Call fetch_altivec_registers instead of
8524 fetch_altivec_register.
8525 (store_register): Call store_altivec_registers instead of
8526 store_altivec_register.
8527 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
8528 the new regno parameter.
8529 (store_ppc_registers): Call store_altivec_registers with -1 for
8530 the new regno parameter.
8532 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8534 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
8535 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
8536 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
8537 (gdb_vrregset_t): Change array type size to
8538 PPC_LINUX_SIZEOF_VRREGSET.
8539 (gdb_vsxregset_t): Change array type size to
8540 PPC_LINUX_SIZEOF_VSXREGSET.
8541 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
8542 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
8543 PPC_LINUX_SIZEOF_VSXREGSET.
8545 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8547 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
8548 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
8550 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
8551 ppc_linux_target_wordsize with tid.
8552 (ppc_linux_nat_target::read_description): Call ppc_linux_target
8554 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
8555 (ppc64_64bit_inferior_p): Add static and inline specifiers.
8556 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
8557 tid parameter. Remove static specifier.
8558 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
8559 (ppc_linux_target_wordsize): New declaration.
8561 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8563 * arch/ppc-linux-common.c: New file.
8564 * arch/ppc-linux-common.h: New file.
8565 * arch/ppc-linux-tdesc.h: New file.
8566 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
8567 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
8568 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
8569 arch/ppc-linux-tdesc.h.
8570 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
8571 arch/ppc-linux-tdesc.h.
8572 (ppc_linux_nat_target::read_description): Remove target
8573 description matching code. Fill a ppc_linux_features struct and
8574 call ppc_linux_match_description with it. Move comment about ISA
8575 2.05 to ppc-linux-common.c.
8576 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
8577 arch/ppc-linux-tdesc.h.
8578 (ppc_linux_core_read_description): Remove target description
8579 matching code. Fill a ppc_linux_features struct and call
8580 ppc_linux_match_description with it.
8581 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
8582 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
8583 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
8584 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
8585 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
8586 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
8587 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
8588 (tdesc_powerpc_e500l): Remove.
8590 2018-05-22 Joel Brobecker <brobecker@adacore.com>
8592 * ada-lang.c (catch_assert_command): Pass empty string instead
8593 of NULL for excep_string argument.
8595 2018-05-22 Maciej W. Rozycki <macro@mips.com>
8597 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
8598 the width of the requested register exceeds the width of the
8601 2018-05-21 Tom Tromey <tom@tromey.com>
8603 * printcmd.c (output_command): Remove.
8604 (output_command_const): Rename to output_command.
8605 * valprint.h (output_command): Rename from output_command_const.
8606 * tracepoint.c (trace_dump_actions): Call output_command.
8608 2018-05-21 Tom Tromey <tom@tromey.com>
8610 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
8611 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
8612 * ada-lang.h (create_ada_exception_catchpoint): Update.
8613 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
8615 (create_excep_cond_exprs, ~ada_catchpoint)
8616 (should_stop_exception, print_one_exception)
8617 (print_mention_exception, print_recreate_exception): Update.
8618 (ada_get_next_arg): Remove.
8619 (catch_ada_exception_command_split): Use std::string. Change type
8620 of "excep_string", "cond_string".
8621 (catch_ada_exception_command): Update.
8622 (create_ada_exception_catchpoint): Change type of excep_string.
8623 (ada_exception_sal): Remove excep_string parameter.
8624 (~ada_catchpoint): Remove.
8626 2018-05-21 Tom Tromey <tom@tromey.com>
8628 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
8631 2018-05-21 Tom Tromey <tom@tromey.com>
8633 * ada-lang.c (ada_exception_message_1, ada_exception_message):
8634 Return unique_xmalloc_ptr.
8635 (print_it_exception): Update.
8637 2018-05-21 Tom Tromey <tom@tromey.com>
8639 * tracepoint.c (trace_dump_actions): Use std::string.
8641 2018-05-21 Tom Tromey <tom@tromey.com>
8643 * symfile.c (reread_symbols): Use std::string for original_name.
8645 2018-05-21 Tom Tromey <tom@tromey.com>
8647 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
8648 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
8651 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
8653 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
8655 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
8656 * objfiles.c (get_objfile_bfd_data): Allocate
8657 objfile_per_bfd_storage with obstack_new when allocating on
8660 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
8662 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
8664 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
8665 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
8666 * mdebugread.c (mdebug_build_psymtabs): Likewise.
8667 (add_pending): Likewise.
8668 (parse_symbol): Likewise.
8669 (parse_partial_symbols): Likewise.
8670 (psymtab_to_symtab_1): Likewise.
8671 (new_psymtab): Likewise.
8672 (elfmdebug_build_psymtabs): Likewise.
8673 * minsyms.c (terminate_minimal_symbol_table): Likewise.
8674 * objfiles.c (get_objfile_bfd_data): Likewise.
8675 (objfile_register_static_link): Likewise.
8676 * psymtab.c (allocate_psymtab): Likewise.
8677 * stabsread.c (read_member_functions): Likewise.
8678 * xcoffread.c (xcoff_end_psymtab): Likewise.
8680 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
8682 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
8683 compiler supports std::is_trivially_constructible.
8684 * common/poison.h: Include obstack.h.
8685 (IsMallocable): Define to is_trivially_constructible if the
8686 compiler supports it, define to true_type otherwise.
8690 (XOBNEWVEC): Redefine.
8691 * gdb_obstack.h (obstack_zalloc): New.
8692 (OBSTACK_ZALLOC): Redefine.
8693 (obstack_calloc): New.
8694 (OBSTACK_CALLOC): Redefine.
8696 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
8697 (gdbarch_obstack): New declaration in gdbarch.h, definition in
8699 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
8700 obstack_calloc/obstack_zalloc.
8701 (gdbarch_obstack_zalloc): Remove.
8702 * target-descriptions.c (tdesc_data_init): Use obstack_new.
8704 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8706 * stack.c (backtrace_command_1): Remove useless variable int i.
8708 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8710 * stack.c (print_frame_info): Fix comment.
8712 2018-05-18 Tom Tromey <tom@tromey.com>
8714 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
8715 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
8716 (~dwarf2_per_objfile): Update
8717 (dwarf2_get_dwz_file): Use new.
8718 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
8721 2018-05-18 Tom Tromey <tom@tromey.com>
8723 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
8725 * dwarf2read.c (struct dwp_file): Add constructor and
8727 (open_and_init_dwp_file): Return a unique_ptr.
8728 (dwarf2_per_objfile, create_dwp_hash_table)
8729 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
8730 (lookup_dwo_unit_in_dwp): Update.
8731 (open_and_init_dwp_file, get_dwp_file): Update.
8733 2018-05-18 Tom Tromey <tom@tromey.com>
8735 * dwarf2read.c (dwarf2_per_objfile): Update.
8736 (struct mapped_index): Add initializers.
8737 (dwarf2_read_index): Use new.
8738 (dw2_symtab_iter_init): Update.
8739 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
8742 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8744 * dwarf2read.c (mapped_index) <total_size>: Remove.
8746 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8748 * unittests/format_pieces-selftests.c (test_format_specifier):
8751 2018-05-18 Tom Tromey <tom@tromey.com>
8753 * c-typeprint.c (maybe_print_hole): New function.
8754 (c_print_type_struct_field_offset): Update.
8755 (c_type_print_base_struct_union): Call maybe_print_hole.
8757 2018-05-17 Keith Seitz <keiths@redhat.com>
8759 * breakpoint.c (build_bpstat_chain): New function, moved from
8761 (bpstat_stop_status): Add optional parameter, `stop_chain'.
8762 If no stop chain is passed, call build_bpstat_chain to build it.
8763 * breakpoint.h (build_bpstat_chain): Declare.
8764 (bpstat_stop_status): Move documentation here from breakpoint.c.
8765 * infrun.c (handle_signal_stop): Before eliding inlined frames,
8766 build the stop chain and pass it to skip_inline_frames.
8767 Pass this stop chain to bpstat_stop_status.
8768 * inline-frame.c: Include breakpoint.h.
8769 (stopped_by_user_bp_inline_frame): New function.
8770 (skip_inline_frames): Add parameter `stop_chain'.
8771 Move documention to inline-frame.h.
8772 If non-NULL, use stopped_by_user_bp_inline_frame to determine
8773 whether the frame should be elided.
8774 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
8775 Add moved documentation and update for new parameter.
8777 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8780 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8781 unittests/format_pieces-selftests.c.
8782 * common/format.h (format_piece) <operator==>: New.
8783 (format_pieces) <operator[]>: Remove.
8784 * common/format.c (format_pieces::format_pieces): Handle \e.
8785 * unittests/format_pieces-selftests.c: New.
8787 2018-05-17 Tom Tromey <tom@tromey.com>
8790 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
8791 (dw2_instantiate_symtab): Add skip_partial parameter.
8792 (dw2_find_last_source_symtab, dw2_map_expand_apply)
8793 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
8794 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
8795 (dw2_expand_symtabs_matching_one)
8796 (dw2_find_pc_sect_compunit_symtab)
8797 (dw2_debug_names_lookup_symbol)
8798 (dw2_debug_names_expand_symtabs_for_function): Update.
8799 (init_cutu_and_read_dies): Add skip_partial parameter.
8800 (process_psymtab_comp_unit, build_type_psymtabs_1)
8801 (process_skeletonless_type_unit, load_partial_comp_unit)
8802 (psymtab_to_symtab_1): Update.
8803 (load_full_comp_unit): Add skip_partial parameter.
8804 (process_imported_unit_die, dwarf2_read_addr_index)
8805 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
8806 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
8807 (read_signatured_type): Update.
8809 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8811 * value.c (release_value): Remove unused variable.
8812 (record_latest_value): Likewise.
8813 (access_value_history): Likewise.
8814 (preserve_values): Likewise.
8816 2018-05-17 Tom Tromey <tom@tromey.com>
8818 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
8821 2018-05-16 Maciej W. Rozycki <macro@mips.com>
8824 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
8825 Also handle registers whose width is not a multiple of
8827 (linux_nat_trad_target::store_register): Likewise.
8829 2018-05-16 Tom Tromey <tom@tromey.com>
8831 * gdbcore.h (core_bfd): Redefine.
8832 * corelow.c (core_target::close): Update.
8833 (core_target_open): Update.
8834 * progspace.h (struct program_space) <cbfd>: Now a
8837 2018-05-16 Tom Tromey <tom@tromey.com>
8840 * symfile-add-flags.h (enum symfile_add_flags)
8841 <SYMFILE_NOT_FILENAME>: New constant.
8842 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
8843 objfile name from BFD.
8844 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8845 * minidebug.c (find_separate_debug_file_in_section): Put
8846 ".gnu_debugdata" into BFD's file name.
8848 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
8850 * regcache.c (regcache_read_ftype, regcache_write_ftype):
8853 2018-05-15 Tamar Christina <tamar.christina@arm.com>
8856 * aarch64-tdep.c (aarch64_analyze_prologue,
8857 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8858 Indicate not interested in errors.
8860 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8862 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8863 Supply the MIPS_ZERO_REGNUM register.
8865 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8867 * mips-tdep.c (mask_address_var): Make variable static.
8869 2018-05-14 Tom Tromey <tom@tromey.com>
8871 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8873 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8875 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8876 FXSAVE_ADDR for the mxcsr register.
8878 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8880 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8882 2018-05-11 Pedro Alves <palves@redhat.com>
8884 * corelow.c (core_target) <core_target>: No longer inline.
8885 Initialize m_core_gdbarch, m_core_vec and build the section table
8887 <~core_target>: New.
8888 <core_gdbarch, get_core_register_section>: New methods.
8889 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8890 factored out from ...
8891 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8893 (sniff_core_bfd): Add gdbarch parameter.
8894 (core_close): Delete, merged into ...
8895 (core_target::close): ... here. Delete self.
8896 (core_close_cleanup): Delete.
8897 (core_target_open): Allocate a core_target on the heap. Use a
8898 unique_ptr instead of a cleanup. Bits moved into the core_target
8899 ctor. Adjust to use core_target methods instead of globals.
8900 (get_core_register_section): Rename to ...
8901 (core_target::get_core_register_section): ... this and adjust.
8902 (struct get_core_registers_cb_data): New.
8903 (get_core_registers_cb): Use it. Use bool.
8904 (core_target::fetch_registers, core_target::files_info)
8905 (core_target::xfer_partial, core_target::read_description)
8906 (core_target::pid_to, core_target::thread_name): Adjust to
8907 reference class fields instead of globals.
8908 * target.h (struct target_ops_deleter, target_ops_up): New.
8910 2018-05-11 Pedro Alves <palves@redhat.com>
8912 * corefile.c (core_file_command): Move to corelow.c.
8913 * corelow.c (the_core_target): Delete.
8914 (core_file_command): Moved from corefile.c. Check exec_bfd
8915 instead of the_core_target. Use target_detach instead of calling
8916 into the_core_target directly.
8917 (maybe_say_no_core_file_now): New.
8918 (core_target::detach): Use it.
8919 (_initialize_corelow): Remove references to the_core_target.
8920 * gdbcore.h (the_core_target): Delete.
8922 2018-05-11 Tom Tromey <tromey@redhat.com>
8923 Pedro Alves <palves@redhat.com>
8925 * corefile.c (core_bfd): Remove.
8926 * gdbcore.h (core_bfd): Now a macro.
8927 * progspace.h (struct program_space) <cbfd>: New field.
8929 2018-05-11 Tom Tromey <tom@tromey.com>
8931 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8934 2018-05-10 Tom Tromey <tom@tromey.com>
8936 * configure: Rebuild.
8937 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8939 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8942 * regformats/regdat.sh: Adjust script, following the addition
8943 of the new expedite_regs parameter to init_target_desc.
8945 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8948 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8949 set_gdbarch_significant_addr_bit.
8950 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8951 set_gdbarch_significant_addr_bit.
8952 * utils.c (address_significant): Update to sign extend addr.
8954 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8956 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8957 (xtensa_linux_init_abi): Limit tdep->num_regs by
8958 tdep->num_nopriv_regs.
8959 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8960 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8963 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8965 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8967 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8969 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8970 (I387_MXCSR_INIT_VAL): New constant.
8971 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8972 buffer if it was supplied by the inferior.
8973 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8974 (i387_xsave_get_clear_bv): New function.
8975 (i387_supply_xsave): Only read x87 control registers from the
8976 xsave buffer if the feature is enabled, and the state will have
8977 been written, otherwise, provide a suitable default.
8978 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8979 including x87 control registers. Update control registers if they
8980 have changed from the default value, and mark features as enabled
8982 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8984 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8986 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8988 2018-05-07 Tom Tromey <tom@tromey.com>
8990 * configure: Rebuild.
8991 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8993 2018-05-07 Tom Tromey <tom@tromey.com>
8996 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8997 bit. Use correct value for VDIV.
8999 2018-05-04 Tom Tromey <tom@tromey.com>
9001 * configure: Rebuild.
9002 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
9004 2018-05-04 Tom Tromey <tom@tromey.com>
9006 * linux-record.c (record_linux_system_call) <case
9007 RECORD_SYS_RECVFROM>: Add "break".
9009 2018-05-04 Tom Tromey <tom@tromey.com>
9011 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9012 Add missing "break".
9013 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9014 Add missing "break".
9016 2018-05-04 Tom Tromey <tom@tromey.com>
9018 * rs6000-tdep.c (ppc_process_record_op4)
9019 (ppc_process_record_op63): Add fall-through comment.
9021 2018-05-04 Tom Tromey <tom@tromey.com>
9023 * i386-tdep.c (i386_process_record): Add fall-through comment.
9025 2018-05-04 Tom Tromey <tom@tromey.com>
9027 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9030 2018-05-04 Tom Tromey <tom@tromey.com>
9032 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9033 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9034 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9036 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9038 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
9041 2018-05-04 Tom Tromey <tom@tromey.com>
9043 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
9045 2018-05-04 Tom Tromey <tom@tromey.com>
9047 * s390-tdep.c (s390_process_record): Fix fall-through comments.
9048 * xcoffread.c (scan_xcoff_symtab): Move comment later.
9049 * symfile.c (section_is_mapped): Fix fall-through comment.
9050 * stabsread.c (define_symbol, read_member_functions): Fix
9051 fall-through comment.
9052 * s390-linux-tdep.c (s390_process_record): Fix fall-through
9054 * remote.c (remote_wait_as): Fix fall-through comment.
9055 * p-exp.y (yylex): Fix fall-through comment.
9056 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
9058 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
9059 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
9060 * jv-exp.y (yylex): Fix fall-through comment.
9061 * go-exp.y (lex_one_token): Fix fall-through comment.
9062 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
9063 fall-through comment.
9064 * f-exp.y (yylex): Fix fall-through comment.
9065 * dwarf2read.c (process_die): Fix fall-through comments.
9066 * dbxread.c (process_one_symbol): Fix fall-through comment.
9067 * d-exp.y (lex_one_token): Fix fall-through comment.
9068 * cp-name-parser.y (yylex): Fix fall-through comment.
9069 * coffread.c (coff_symtab_read): Fix fall-through comment.
9070 * c-exp.y (lex_one_token): Fix fall-through comment.
9071 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
9073 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
9076 2018-05-04 Tom Tromey <tom@tromey.com>
9079 * NEWS: Mention gdb.execute change.
9080 * gdbcmd.h (execute_control_command): Don't declare.
9081 * python/python.c (execute_gdb_command): Use read_command_lines_1,
9082 execute_control_commands, execute_control_commands_to_string.
9083 * cli/cli-script.h (execute_control_commands)
9084 (execute_control_commands_to_string): Declare.
9085 (execute_control_command): Add from_tty parameter.
9086 * cli/cli-script.c (execute_control_commands)
9087 (execute_control_commands_to_string): New functions.
9088 (execute_user_command): Use execute_control_commands.
9089 (execute_control_command_1): Add "from_tty" parameter. Update.
9090 (execute_control_command): Likewise.
9092 2018-05-04 Tom Tromey <tom@tromey.com>
9095 * NEWS: Mention that breakpoint commands are writable.
9096 * python/py-breakpoint.c (bppy_set_commands): New function.
9097 (breakpoint_object_getset) <"commands">: Use it.
9099 2018-05-04 Tom Tromey <tom@tromey.com>
9101 * tracepoint.c (actions_command): Update.
9102 * mi/mi-cmd-break.c (mi_command_line_array)
9103 (mi_command_line_array_cnt, mi_command_line_array_ptr)
9104 (mi_read_next_line): Remove.
9105 (mi_cmd_break_commands): Update.
9106 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
9108 * cli/cli-script.c (get_command_line): Update.
9109 (process_next_line): Use function_view. Constify.
9110 (recurse_read_control_structure, read_command_lines)
9111 (read_command_lines_1): Change argument types to function_view.
9112 (do_define_command, document_command): Update.
9113 * breakpoint.h (check_tracepoint_command): Don't declare.
9114 * breakpoint.c (check_tracepoint_command): Remove.
9115 (commands_command_1, create_tracepoint_from_upload): Update.
9117 2018-05-04 Tom Tromey <tom@tromey.com>
9120 * cli/cli-script.h (enum command_control_type) <define_control>:
9122 * cli/cli-script.c (multi_line_command_p): Handle define_control.
9123 (build_command_line, execute_control_command_1)
9124 (process_next_line): Likewise.
9125 (do_define_command): New function, extracted from define_command.
9126 (define_command): Use it.
9128 2018-05-04 Tom Tromey <tom@tromey.com>
9130 * tracepoint.c (actions_command): Update.
9131 * cli/cli-script.h (read_command_lines): Update.
9132 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
9133 (MAX_TMPBUF): Remove define.
9134 (define_command): Use string_printf.
9135 (document_command): Likewise.
9136 * breakpoint.c (commands_command_1): Update.
9138 2018-05-04 Tom Tromey <tom@tromey.com>
9140 * top.c (execute_command): Update.
9141 * cli/cli-script.h (print_command_lines): Now varargs.
9142 * cli/cli-script.c (print_command_lines): Now varargs.
9143 (execute_control_command_1) <case while_control, case if_control>:
9146 2018-05-04 Tom Tromey <tom@tromey.com>
9148 * tracepoint.c (all_tracepoint_actions): Rename from
9149 all_tracepoint_actions_and_cleanup. Change return type.
9150 (actions_command, encode_actions_1, encode_actions)
9151 (trace_dump_actions, tdump_command): Update.
9152 * remote.c (remote_download_command_source): Update.
9153 * python/python.c (gdbpy_eval_from_control_command)
9154 (python_command, python_interactive_command): Update.
9155 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9156 * guile/guile.c (guile_command)
9157 (gdbscm_eval_from_control_command, guile_command): Update.
9158 * compile/compile.c (compile_code_command)
9159 (compile_print_command, compile_to_object): Update.
9160 * cli/cli-script.h (struct command_lines_deleter): New.
9161 (counted_command_line): New typedef.
9162 (struct command_line): Add constructor, destructor.
9163 <body_list>: Remove.
9164 <body_list_0, body_list_1>: New members.
9165 (command_line_up): Remove typedef.
9166 (read_command_lines, read_command_lines_1, get_command_line):
9168 (copy_command_lines): Don't declare.
9169 * cli/cli-script.c (build_command_line): Use "new".
9170 (get_command_line): Return counted_command_line.
9171 (print_command_lines, execute_user_command)
9172 (execute_control_command_1, while_command, if_command): Update.
9173 (realloc_body_list): Remove.
9174 (process_next_line, recurse_read_control_structure): Update.
9175 (read_command_lines, read_command_lines_1): Return counted_command_line.
9176 (free_command_lines): Use "delete".
9177 (copy_command_lines): Remove.
9178 (define_command, document_command, show_user_1): Update.
9179 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
9180 a counted_command_line.
9181 * breakpoint.h (counted_command_line): Remove typedef.
9182 (breakpoint_set_commands): Update.
9183 * breakpoint.c (check_no_tracepoint_commands)
9184 (validate_commands_for_breakpoint): Update.
9185 (breakpoint_set_commands): Change commands to be a
9186 counted_command_line.
9187 (commands_command_1, update_dprintf_command_list)
9188 (create_tracepoint_from_upload): Update.
9190 2018-05-04 Tom Tromey <tom@tromey.com>
9192 * cli/cli-decode.h (cmd_list_element): New constructor.
9193 (~cmd_list_element): New destructor.
9194 (struct cmd_list_element): Add initializers.
9195 * cli/cli-decode.c (do_add_cmd): Use "new".
9196 (delete_cmd): Use "delete".
9198 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9199 Pedro Alves <palves@redhat.com>
9201 PR breakpoints/19806 and support for PR external/20207.
9202 * NEWS: Mention Aarch64 watchpoint improvements.
9203 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9204 watchpoints and PR external/20207 watchpoints.
9205 * nat/aarch64-linux-hw-point.c
9206 (kernel_supports_any_contiguous_range): New.
9207 (aarch64_watchpoint_offset): New.
9208 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9209 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9210 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9211 (aarch64_align_watchpoint): New parameters aligned_offset_p and
9212 next_addr_orig_p. Support PR external/20207 watchpoints.
9213 (aarch64_downgrade_regs): New.
9214 (aarch64_dr_state_insert_one_point): New parameters offset and
9216 (aarch64_dr_state_remove_one_point): Likewise.
9217 (aarch64_handle_breakpoint): Update caller.
9218 (aarch64_handle_aligned_watchpoint): Likewise.
9219 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9221 (aarch64_linux_set_debug_regs): Remove const from state. Call
9222 aarch64_downgrade_regs.
9223 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9224 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9225 (DR_CONTROL_MASK): ... this.
9226 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9227 (unsigned int aarch64_watchpoint_offset): New prototype.
9228 (aarch64_linux_set_debug_regs): Remove const from state.
9229 * utils.c (align_up, align_down): Move to ...
9230 * common/common-utils.c (align_up, align_down): ... here.
9231 * utils.h (align_up, align_down): Move to ...
9232 * common/common-utils.h (align_up, align_down): ... here.
9234 2018-05-04 Joel Brobecker <brobecker@adacore.com>
9236 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9237 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9238 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9239 Re-implement to match the ABI as summarized in GCC's
9240 gcc/config/sparc/sparc.c. All callers updated.
9241 (sparc32_store_arguments): Remove assertion.
9243 2018-05-04 Tom Tromey <tom@tromey.com>
9245 * printcmd.c: Don't include tui.h.
9246 (decode_format): Use skip_spaces.
9248 2018-05-04 Tom Tromey <tom@tromey.com>
9251 * printcmd.c (last_count): New global.
9252 (x_command): Use saved count when repeating.
9254 2018-05-04 Tom Tromey <tom@tromey.com>
9256 * nto-procfs.c (do_closedir_cleanup): Remove.
9257 (procfs_pidlist): Use gdb_dir_up.
9258 * procfs.c (do_closedir_cleanup): Remove.
9259 (proc_update_threads): Use gdb_dir_up.
9260 * common/filestuff.h (struct gdb_dir_deleter): New.
9261 (gdb_dir_up): New typedef.
9263 2018-05-04 Tom Tromey <tom@tromey.com>
9265 * ada-lang.c (print_mention_exception): Use std::string.
9267 2018-05-04 Tom Tromey <tom@tromey.com>
9269 * ada-lang.c (create_excep_cond_exprs): Update.
9270 (ada_exception_catchpoint_cond_string): Use std::string.
9272 2018-05-04 Tom Tromey <tom@tromey.com>
9274 * ada-lang.c (xget_renaming_scope): Return std::string.
9275 (old_renaming_is_invisible): Update.
9277 2018-05-04 Tom Tromey <tom@tromey.com>
9279 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
9280 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
9282 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
9284 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
9286 2018-05-04 Tom Tromey <tom@tromey.com>
9288 * remote.c (remote_query_supported_append): Change type.
9289 (remote_check_symbols): Update.
9291 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
9294 * configure.ac: Prepend libpython.
9295 * python/python-config.py: Likewise.
9296 * configure: Regenerate.
9298 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
9300 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
9302 2018-05-03 Pedro Alves <palves@redhat.com>
9305 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
9306 override. Write 'true' instead of '1'.
9307 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
9310 2018-05-02 Pedro Alves <palves@redhat.com>
9312 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
9313 add_inf_child_target.
9314 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
9315 add_inf_child_target.
9316 * aix-thread.c (aix_thread_target_info): New.
9317 (aix_thread_target) <shortname, longname, doc>: Delete.
9319 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
9320 add_inf_child_target.
9321 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
9322 add_inf_child_target.
9323 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
9324 add_inf_child_target.
9325 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
9326 add_inf_child_target.
9327 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
9328 add_inf_child_target.
9329 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
9330 add_inf_child_target.
9331 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
9332 add_inf_child_target.
9333 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
9334 add_inf_child_target.
9335 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
9336 add_inf_child_target.
9337 * bfd-target.c (target_bfd_target_info): New.
9338 (target_bfd) <shortname, longname, doc>: Delete.
9340 * bsd-kvm.c (bsd_kvm_target_info): New.
9341 (bsd_kvm_target) <shortname, longname, doc>: Delete.
9343 (bsd_kvm_target::open): Rename to ...
9344 (bsd_kvm_target_open): ... this. Adjust.
9345 * bsd-uthread.c (bsd_uthread_target_info): New.
9346 (bsd_uthread_target) <shortname, longname, doc>: Delete.
9348 * corefile.c (core_file_command): Adjust.
9349 * corelow.c (core_target_info): New.
9350 (core_target) <shortname, longname, doc>: Delete.
9352 (core_target::open): Rename to ...
9353 (core_target_open): ... this. Adjust.
9354 * ctf.c (ctf_target_info): New.
9355 (ctf_target) <shortname, longname, doc>: Delete.
9357 (ctf_target::open): Rename to ...
9358 (ctf_target_open): ... this.
9359 (_initialize_ctf): Adjust.
9360 * exec.c (exec_target_info): New.
9361 (exec_target) <shortname, longname, doc>: Delete.
9363 (exec_target::open): Rename to ...
9364 (exec_target_open): ... this.
9365 * gdbcore.h (core_target_open): Declare.
9366 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9367 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9368 add_inf_child_target.
9369 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9370 add_inf_child_target.
9371 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9372 add_inf_child_target.
9373 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9374 add_inf_child_target.
9375 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9376 add_inf_child_target.
9377 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9378 add_inf_child_target.
9379 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9380 add_inf_child_target.
9381 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9382 add_inf_child_target.
9383 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9384 add_inf_child_target.
9385 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9386 add_inf_child_target.
9387 * inf-child.c (inf_child_target_info): New.
9388 (inf_child_target::info): New.
9389 (inf_child_open_target): Remove 'target' parameter. Use
9390 get_native_target instead.
9391 (inf_child_target::open): Delete.
9392 (add_inf_child_target): New.
9393 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9396 (add_inf_child_target): Declare.
9397 (inf_child_open_target): Declare.
9398 * linux-thread-db.c (thread_db_target_info): New.
9399 (thread_db_target) <shortname, longname, doc>: Delete.
9401 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9402 add_inf_child_target.
9403 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9404 add_inf_child_target.
9405 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9406 add_inf_child_target.
9407 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9408 add_inf_child_target.
9409 * make-target-delegates (print_class): Adjust.
9410 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9411 add_inf_child_target.
9412 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9413 add_inf_child_target.
9414 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9415 add_inf_child_target.
9416 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9417 add_inf_child_target.
9418 * nto-procfs.c (nto_native_target_info): New.
9419 (nto_procfs_target_native) <shortname, longname, doc>:
9422 (nto_procfs_target_info): New.
9423 (nto_procfs_target_procfs) <shortname, longname, doc>:
9426 (init_procfs_targets): Adjust.
9427 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9428 add_inf_child_target.
9429 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9430 add_inf_child_target.
9431 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9432 add_inf_child_target.
9433 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9434 add_inf_child_target.
9435 * ravenscar-thread.c (ravenscar_target_info): New.
9436 (ravenscar_thread_target) <shortname, longname, doc>:
9439 * record-btrace.c (record_btrace_target_info):
9440 (record_btrace_target) <shortname, longname, doc>: Delete.
9442 (record_btrace_target::open): Rename to ...
9443 (record_btrace_target_open): ... this. Adjust.
9444 * record-full.c (record_longname, record_doc): New.
9445 (record_full_base_target) <shortname, longname, doc>: Delete.
9447 (record_full_target_info): New.
9448 (record_full_target): <shortname>: Delete.
9450 (record_full_core_open_1, record_full_open_1): Update comments.
9451 (record_full_base_target::open): Rename to ...
9452 (record_full_open): ... this.
9453 (cmd_record_full_restore): Update.
9454 (_initialize_record_full): Update.
9455 * remote-sim.c (remote_sim_target_info): New.
9456 (gdbsim_target) <shortname, longname, doc>: Delete.
9458 (gdbsim_target::open): Rename to ...
9459 (gdbsim_target_open): ... this.
9460 (_initialize_remote_sim): Adjust.
9461 * remote.c (remote_doc): New.
9462 (remote_target_info): New.
9463 (remote_target) <shortname, longname, doc>: Delete.
9465 (extended_remote_target_info): New.
9466 (extended_remote_target) <shortname, longname, doc>: Delete.
9468 (remote_target::open_1): Make static. Adjust.
9469 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
9470 * s390-linux-nat.c (_initialize_s390_nat): Use
9471 add_inf_child_target.
9472 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
9473 add_inf_child_target.
9474 * sol-thread.c (thread_db_target_info): New.
9475 (sol_thread_target) <shortname, longname, doc>: Delete.
9477 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
9478 add_inf_child_target.
9479 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
9480 add_inf_child_target.
9481 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
9482 add_inf_child_target.
9483 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
9484 add_inf_child_target.
9485 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
9486 add_inf_child_target.
9487 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
9488 add_inf_child_target.
9489 * spu-linux-nat.c (_initialize_spu_nat): Use
9490 add_inf_child_target.
9491 * spu-multiarch.c (spu_multiarch_target_info): New.
9492 (spu_multiarch_target) <shortname, longname, doc>: Delete.
9494 * target-delegates.c: Regenerate.
9495 * target.c: Include <unordered_map>.
9496 (target_ops_p): Delete.
9497 (DEF_VEC_P(target_ops_p)): Delete.
9498 (target_factories): New.
9499 (test_target_info): New.
9500 (test_target_ops::info): New.
9501 (open_target): Adjust to use target_factories.
9502 (add_target_with_completer): Rename to ...
9503 (add_target): ... this. Change prototype. Register target_info
9504 and open callback in target_factories. Register target_info in
9505 command context instead of target_ops.
9506 (add_target): Delete old implementation.
9507 (add_deprecated_target_alias): Change prototype. Adjust.
9508 (the_native_target): New.
9509 (set_native_target, get_native_target): New.
9510 (find_default_run_target): Use the_native_target.
9511 (find_attach_target, find_run_target): Simplify.
9512 (target_ops::open): Delete.
9513 (dummy_target_info): New.
9514 (dummy_target::shortname, dummy_target::longname)
9515 (dummy_target::doc): Delete.
9516 (dummy_target::info): New.
9517 (debug_target::shortname, debug_target::longname)
9518 (debug_target::doc): Delete.
9519 (debug_target::info): New.
9520 * target.h (struct target_info): New.
9521 (target_ops::~target_ops): Add comment.
9522 (target_ops::info): New.
9523 (target_ops::shortname, target_ops::longname, target_ops::doc): No
9524 longer virtual. Implement in terms of target_info.
9525 (set_native_target, get_native_target): Declare.
9526 (target_open_ftype): New.
9527 (add_target, add_target_with_completer)
9528 (add_deprecated_target_alias): Change prototype.
9529 (test_target) <shortname, longname, doc>: Delete.
9531 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
9532 add_inf_child_target.
9533 * tracefile-tfile.c (tfile_target_info): New.
9534 (tfile_target) <shortname, longname, doc>: Delete.
9536 (tfile_target::open): Rename to ...
9537 (tfile_target_open): ... this.
9538 (_initialize_tracefile_tfile): Adjust.
9539 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
9540 add_inf_child_target.
9541 * windows-nat.c (_initialize_windows_nat): Use
9542 add_inf_child_target.
9543 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
9544 add_inf_child_target.
9546 2018-05-02 Pedro Alves <palves@redhat.com>
9548 * linux-nat.h (linux_nat_target) <low_new_thread,
9549 low_delete_thread, low_new_fork, low_forget_process,
9550 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
9551 New virtual methods.
9552 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9553 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
9554 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
9555 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9556 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
9558 * linux-fork.c (delete_fork): Adjust to call low method.
9559 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
9560 (linux_nat_new_fork, linux_nat_forget_process_hook)
9561 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
9562 (linux_nat_status_is_event):
9563 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
9564 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
9566 (sigtrap_is_event): Rename to ...
9567 (linux_nat_target::low_status_is_event): ... this.
9568 (linux_nat_set_status_is_event): Delete.
9569 (save_stop_reason, linux_nat_wait_1)
9570 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
9572 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9573 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9574 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9575 (linux_nat_set_prepare_to_resume): Delete.
9576 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
9577 low virtual methods.
9578 * amd64-linux-nat.c: Likewise.
9579 * arm-linux-nat.c: Likewise.
9580 * i386-linux-nat.c: Likewise.
9581 * ia64-linux-nat.c: Likewise.
9582 * mips-linux-nat.c: Likewise.
9583 * ppc-linux-nat.c: Likewise.
9584 * s390-linux-nat.c: Likewise.
9585 * sparc64-linux-nat.c: Likewise.
9586 * x86-linux-nat.c: Likewise.
9587 * x86-linux-nat.h: Include "nat/x86-linux.h".
9588 (x86_linux_nat_target) <low_new_fork, low_forget_process,
9589 low_prepare_to_resume, low_new_thread, low_delete_thread>:
9592 2018-05-02 Pedro Alves <palves@redhat.com>
9594 * target.h (target_ops)
9595 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9596 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
9597 stopped_by_watchpoint, have_continuable_watchpoint,
9598 stopped_data_address, watchpoint_addr_within_range,
9599 can_accel_watchpoint_condition, can_run, thread_alive,
9600 has_all_memory, has_memory, has_stack, has_registers,
9601 has_execution, can_async_p, is_async_p, supports_non_stop,
9602 always_non_stop_p, can_execute_reverse, supports_multi_process,
9603 supports_enable_disable_tracepoint,
9604 supports_disable_randomization, supports_string_tracing,
9605 supports_evaluation_of_breakpoint_conditions,
9606 can_run_breakpoint_commands, filesystem_is_local,
9607 can_download_tracepoint, get_trace_state_variable_value,
9608 set_trace_notes, get_tib_address, use_agent, can_use_agent,
9609 record_is_replaying, record_will_replay,
9610 augmented_libraries_svr4_read>: Adjust to return bool.
9611 * aarch64-linux-nat.c: All implementations adjusted.
9612 * aix-thread.c: All implementations adjusted.
9613 * arm-linux-nat.c: All implementations adjusted.
9614 * breakpoint.c: All implementations adjusted.
9615 * bsd-kvm.c: All implementations adjusted.
9616 * bsd-uthread.c: All implementations adjusted.
9617 * corelow.c: All implementations adjusted.
9618 * ctf.c: All implementations adjusted.
9619 * darwin-nat.c: All implementations adjusted.
9620 * darwin-nat.h: All implementations adjusted.
9621 * exec.c: All implementations adjusted.
9622 * fbsd-nat.c: All implementations adjusted.
9623 * fbsd-nat.h: All implementations adjusted.
9624 * gnu-nat.c: All implementations adjusted.
9625 * gnu-nat.h: All implementations adjusted.
9626 * go32-nat.c: All implementations adjusted.
9627 * ia64-linux-nat.c: All implementations adjusted.
9628 * inf-child.c: All implementations adjusted.
9629 * inf-child.h: All implementations adjusted.
9630 * inf-ptrace.c: All implementations adjusted.
9631 * inf-ptrace.h: All implementations adjusted.
9632 * linux-nat.c: All implementations adjusted.
9633 * linux-nat.h: All implementations adjusted.
9634 * mips-linux-nat.c: All implementations adjusted.
9635 * nto-procfs.c: All implementations adjusted.
9636 * ppc-linux-nat.c: All implementations adjusted.
9637 * procfs.c: All implementations adjusted.
9638 * ravenscar-thread.c: All implementations adjusted.
9639 * record-btrace.c: All implementations adjusted.
9640 * record-full.c: All implementations adjusted.
9641 * remote-sim.c: All implementations adjusted.
9642 * remote.c: All implementations adjusted.
9643 * s390-linux-nat.c: All implementations adjusted.
9644 * sol-thread.c: All implementations adjusted.
9645 * spu-multiarch.c: All implementations adjusted.
9646 * target-delegates.c: All implementations adjusted.
9647 * target.c: All implementations adjusted.
9648 * target.h: All implementations adjusted.
9649 * tracefile-tfile.c: All implementations adjusted.
9650 * tracefile.c: All implementations adjusted.
9651 * tracefile.h: All implementations adjusted.
9652 * windows-nat.c: All implementations adjusted.
9653 * x86-linux-nat.h: All implementations adjusted.
9654 * x86-nat.h: All implementations adjusted.
9656 2018-05-02 Pedro Alves <palves@redhat.com>
9658 * make-target-delegates (scan_target_h): Don't trim lines here.
9659 Replace sequences of tabs and/or whitespace with a single
9661 (top level, parsing methods): Trim each line before processing it
9664 2018-05-02 Pedro Alves <palves@redhat.com>
9665 John Baldwin <jhb@freebsd.org>
9667 * target.h (enum strata) <debug_stratum>: New.
9668 (struct target_ops) <all delegation methods>: Replace by C++
9669 virtual methods, and drop "to_" prefix. All references updated
9671 <to_shortname, to_longname, to_doc, to_data,
9672 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
9673 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
9674 virtual methods. All references updated throughout.
9675 <can_attach, supports_terminal_ours, can_create_inferior,
9676 get_thread_control_capabilities, attach_no_wait>: New
9678 <insert_breakpoint, remove_breakpoint>: Now
9679 TARGET_DEFAULT_NORETURN methods.
9680 <info_proc>: Now returns bool.
9682 (OPS_MAGIC): Delete.
9683 (current_target): Delete. All references replaced by references
9685 (target_stack): ... this. New.
9686 (target_shortname, target_longname): Adjust.
9687 (target_can_run): Now a function declaration.
9688 (default_child_has_all_memory, default_child_has_memory)
9689 (default_child_has_stack, default_child_has_registers)
9690 (default_child_has_execution): Remove target_ops parameter.
9691 (complete_target_initialization): Delete.
9692 (memory_breakpoint_target): New template class.
9693 (test_target_ops): Refactor as a C++ class with virtual methods.
9694 * make-target-delegates (NAME_PART): Tighten.
9695 (POINTER_PART, CP_SYMBOL): New.
9696 (SIMPLE_RETURN_PART): Reimplement.
9697 (VEC_RETURN_PART): Expect less.
9698 (RETURN_PART, VIRTUAL_PART): New.
9699 (METHOD): Adjust to C++ virtual methods.
9700 (scan_target_h): Remove reference to C99.
9701 (dname): Output "target_ops::" prefix.
9702 (write_function_header): Adjust to output a C++ class method.
9703 (write_declaration): New.
9704 (write_delegator): Adjust to output a C++ class method.
9705 (tdname): Output "dummy_target::" prefix.
9706 (write_tdefault, write_debugmethod): Adjust to output a C++ class
9708 (tdefault_names, debug_names): Delete.
9709 (return_types, tdefaults, styles, argtypes_array): New.
9710 (top level): All methods are delegators.
9712 (top level): Print dummy_target and debug_target classes.
9713 * target-delegates.c: Regenerate.
9714 * target-debug.h (target_debug_print_enum_info_proc_what)
9715 (target_debug_print_thread_control_capabilities)
9716 (target_debug_print_thread_info_p): New.
9717 * target.c (dummy_target): Delete.
9718 (the_dummy_target, the_debug_target): New.
9719 (target_stack): Now extern.
9720 (set_targetdebug): Push/unpush debug target.
9721 (default_child_has_all_memory, default_child_has_memory)
9722 (default_child_has_stack, default_child_has_registers)
9723 (default_child_has_execution): Remove target_ops parameter.
9724 (complete_target_initialization): Delete.
9725 (add_target_with_completer): No longer call
9726 complete_target_initialization.
9727 (target_supports_terminal_ours): Use regular delegation.
9728 (update_current_target): Delete.
9729 (push_target): No longer check magic number. Don't call
9730 update_current_target.
9731 (unpush_target): Don't call update_current_target.
9732 (target_is_pushed): No longer check magic number.
9733 (target_require_runnable): Skip for all stratums over
9735 (target_ops::info_proc): New.
9736 (target_info_proc): Use find_target_at and
9737 find_default_run_target.
9738 (target_supports_disable_randomization): Use regular delegation.
9739 (target_get_osdata): Use find_target_at.
9740 (target_ops::open, target_ops::close, target_ops::can_attach)
9741 (target_ops::attach, target_ops::can_create_inferior)
9742 (target_ops::create_inferior, target_ops::can_run)
9743 (target_can_run): New.
9744 (default_fileio_target): Use regular delegation.
9745 (target_ops::fileio_open, target_ops::fileio_pwrite)
9746 (target_ops::fileio_pread, target_ops::fileio_fstat)
9747 (target_ops::fileio_close, target_ops::fileio_unlink)
9748 (target_ops::fileio_readlink): New.
9749 (target_fileio_open_1, target_fileio_unlink)
9750 (target_fileio_readlink): Always call the target method. Handle
9752 (return_zero, return_zero_has_execution): Delete.
9753 (init_dummy_target): Delete.
9754 (dummy_target::dummy_target, dummy_target::shortname)
9755 (dummy_target::longname, dummy_target::doc)
9756 (debug_target::debug_target, debug_target::shortname)
9757 (debug_target::longname, debug_target::doc): New.
9758 (target_supports_delete_record): Use regular delegation.
9759 (setup_target_debug): Delete.
9760 (maintenance_print_target_stack): Skip debug_stratum.
9761 (initialize_targets): Instantiate the_dummy_target and
9763 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
9765 (target_auxv_search, fprint_target_auxv): Adjust.
9766 (info_auxv_command): Adjust to use target_stack.
9767 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
9768 * exceptions.c (print_flush): Handle a NULL target_stack.
9769 * regcache.c (target_ops_no_register): Refactor as class with
9772 * exec.c (exec_target): New class.
9773 (exec_ops): Now an exec_target.
9774 (exec_open, exec_close_1, exec_get_section_table)
9775 (exec_xfer_partial, exec_files_info, exec_has_memory)
9776 (exec_make_note_section): Refactor as exec_target methods.
9777 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
9779 (exec_target::find_memory_regions): New.
9780 (_initialize_exec): Don't call init_exec_ops.
9781 * gdbcore.h (exec_file_clear): Delete.
9783 * corefile.c (core_target): Delete.
9784 (core_file_command): Adjust.
9785 * corelow.c (core_target): New class.
9786 (the_core_target): New.
9787 (core_close): Remove target_ops parameter.
9788 (core_close_cleanup): Adjust.
9789 (core_target::close): New.
9790 (core_open, core_detach, get_core_registers, core_files_info)
9791 (core_xfer_partial, core_thread_alive, core_read_description)
9792 (core_pid_to_str, core_thread_name, core_has_memory)
9793 (core_has_stack, core_has_registers, core_info_proc): Rework as
9794 core_target methods.
9795 (ignore, core_remove_breakpoint, init_core_ops): Delete.
9796 (_initialize_corelow): Initialize the_core_target.
9797 * gdbcore.h (core_target): Delete.
9798 (the_core_target): New.
9800 * ctf.c: (ctf_target): New class.
9801 (ctf_ops): Now a ctf_target.
9802 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
9803 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
9804 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
9806 (init_ctf_ops): Delete.
9807 (_initialize_ctf): Don't call it.
9808 * tracefile-tfile.c (tfile_target): New class.
9809 (tfile_ops): Now a tfile_target.
9810 (tfile_open, tfile_close, tfile_files_info)
9811 (tfile_get_tracepoint_status, tfile_trace_find)
9812 (tfile_fetch_registers, tfile_xfer_partial)
9813 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
9814 Refactor as tfile_target methods.
9815 (tfile_xfer_partial_features): Remove target_ops parameter.
9816 (init_tfile_ops): Delete.
9817 (_initialize_tracefile_tfile): Don't call it.
9818 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
9819 (tracefile_has_stack, tracefile_has_registers)
9820 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
9821 tracefile_target methods.
9822 (init_tracefile_ops): Delete.
9823 (tracefile_target::tracefile_target): New.
9824 * tracefile.h: Include "target.h".
9825 (tracefile_target): New class.
9826 (init_tracefile_ops): Delete.
9828 * spu-multiarch.c (spu_multiarch_target): New class.
9829 (spu_ops): Now a spu_multiarch_target.
9830 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9831 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9832 (spu_search_memory, spu_mourn_inferior): Refactor as
9833 spu_multiarch_target methods.
9834 (init_spu_ops): Delete.
9835 (_initialize_spu_multiarch): Remove references to init_spu_ops,
9836 complete_target_initialization.
9838 * ravenscar-thread.c (ravenscar_thread_target): New class.
9839 (ravenscar_ops): Now a ravenscar_thread_target.
9840 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9841 (ravenscar_thread_alive, ravenscar_pid_to_str)
9842 (ravenscar_fetch_registers, ravenscar_store_registers)
9843 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9844 (ravenscar_stopped_by_hw_breakpoint)
9845 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9846 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9847 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9849 (init_ravenscar_thread_ops): Delete.
9850 (_initialize_ravenscar): Remove references to
9851 init_ravenscar_thread_ops and complete_target_initialization.
9853 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9854 (bsd_uthread_target): New class.
9855 (bsd_uthread_ops): Now a bsd_uthread_target.
9856 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9857 (bsd_uthread_close, bsd_uthread_mourn_inferior)
9858 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9859 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9860 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9861 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9862 (bsd_uthread_target): Delete function.
9863 (_initialize_bsd_uthread): Remove reference to
9864 complete_target_initialization.
9866 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
9867 (target_bfd): ... this new class.
9868 (target_bfd_xfer_partial, target_bfd_get_section_table)
9869 (target_bfd_close): Refactor as target_bfd methods.
9870 (target_bfd::~target_bfd): New.
9871 (target_bfd_reopen): Adjust.
9872 (target_bfd::close): New.
9874 * record-btrace.c (record_btrace_target): New class.
9875 (record_btrace_ops): Now a record_btrace_target.
9876 (record_btrace_open, record_btrace_stop_recording)
9877 (record_btrace_disconnect, record_btrace_close)
9878 (record_btrace_async, record_btrace_info)
9879 (record_btrace_insn_history, record_btrace_insn_history_range)
9880 (record_btrace_insn_history_from, record_btrace_call_history)
9881 (record_btrace_call_history_range)
9882 (record_btrace_call_history_from, record_btrace_record_method)
9883 (record_btrace_is_replaying, record_btrace_will_replay)
9884 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9885 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9886 (record_btrace_store_registers, record_btrace_prepare_to_store)
9887 (record_btrace_to_get_unwinder)
9888 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9889 (record_btrace_commit_resume, record_btrace_wait)
9890 (record_btrace_stop, record_btrace_can_execute_reverse)
9891 (record_btrace_stopped_by_sw_breakpoint)
9892 (record_btrace_supports_stopped_by_sw_breakpoint)
9893 (record_btrace_stopped_by_hw_breakpoint)
9894 (record_btrace_supports_stopped_by_hw_breakpoint)
9895 (record_btrace_update_thread_list, record_btrace_thread_alive)
9896 (record_btrace_goto_begin, record_btrace_goto_end)
9897 (record_btrace_goto, record_btrace_stop_replaying_all)
9898 (record_btrace_execution_direction)
9899 (record_btrace_prepare_to_generate_core)
9900 (record_btrace_done_generating_core): Refactor as
9901 record_btrace_target methods.
9902 (init_record_btrace_ops): Delete.
9903 (_initialize_record_btrace): Remove reference to
9904 init_record_btrace_ops.
9905 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9906 the execution_direction global.
9907 (record_full_base_target, record_full_target)
9908 (record_full_core_target): New classes.
9909 (record_full_ops): Now a record_full_target.
9910 (record_full_core_ops): Now a record_full_core_target.
9911 (record_full_target::detach, record_full_target::disconnect)
9912 (record_full_core_target::disconnect)
9913 (record_full_target::mourn_inferior, record_full_target::kill):
9915 (record_full_open, record_full_close, record_full_async): Refactor
9916 as methods of the record_full_base_target class.
9917 (record_full_resume, record_full_commit_resume): Refactor
9918 as methods of the record_full_target class.
9919 (record_full_wait, record_full_stopped_by_watchpoint)
9920 (record_full_stopped_data_address)
9921 (record_full_stopped_by_sw_breakpoint)
9922 (record_full_supports_stopped_by_sw_breakpoint)
9923 (record_full_stopped_by_hw_breakpoint)
9924 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9925 methods of the record_full_base_target class.
9926 (record_full_store_registers, record_full_xfer_partial)
9927 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9928 Refactor as methods of the record_full_target class.
9929 (record_full_can_execute_reverse, record_full_get_bookmark)
9930 (record_full_goto_bookmark, record_full_execution_direction)
9931 (record_full_record_method, record_full_info, record_full_delete)
9932 (record_full_is_replaying, record_full_will_replay)
9933 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9934 (record_full_stop_replaying): Refactor as methods of the
9935 record_full_base_target class.
9936 (record_full_core_resume, record_full_core_kill)
9937 (record_full_core_fetch_registers)
9938 (record_full_core_prepare_to_store)
9939 (record_full_core_store_registers, record_full_core_xfer_partial)
9940 (record_full_core_insert_breakpoint)
9941 (record_full_core_remove_breakpoint)
9942 (record_full_core_has_execution): Refactor
9943 as methods of the record_full_core_target class.
9944 (record_full_base_target::supports_delete_record): New.
9945 (init_record_full_ops): Delete.
9946 (init_record_full_core_ops): Delete.
9947 (record_full_save): Refactor as method of the
9948 record_full_base_target class.
9949 (_initialize_record_full): Remove references to
9950 init_record_full_ops and init_record_full_core_ops.
9952 * remote.c (remote_target, extended_remote_target): New classes.
9953 (remote_ops): Now a remote_target.
9954 (extended_remote_ops): Now an extended_remote_target.
9955 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9956 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9957 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9958 (remote_pass_signals, remote_set_syscall_catchpoint)
9959 (remote_program_signals, )
9960 (remote_thread_always_alive): Remove target_ops parameter.
9961 (remote_thread_alive, remote_thread_name)
9962 (remote_update_thread_list, remote_threads_extra_info)
9963 (remote_static_tracepoint_marker_at)
9964 (remote_static_tracepoint_markers_by_strid)
9965 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9966 (remote_open): Refactor as methods of remote_target.
9967 (extended_remote_open, extended_remote_detach)
9968 (extended_remote_attach, extended_remote_post_attach):
9969 (extended_remote_supports_disable_randomization)
9970 (extended_remote_create_inferior): : Refactor as method of
9971 extended_remote_target.
9972 (remote_set_permissions, remote_open_1, remote_detach)
9973 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9974 (remote_resume, remote_commit_resume, remote_stop)
9975 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9976 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9977 (remote_prepare_to_store, remote_store_registers)
9978 (remote_flash_erase, remote_flash_done, remote_files_info)
9979 (remote_kill, remote_mourn, remote_insert_breakpoint)
9980 (remote_remove_breakpoint, remote_insert_watchpoint)
9981 (remote_watchpoint_addr_within_range)
9982 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9983 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9984 (remote_supports_stopped_by_sw_breakpoint)
9985 (remote_stopped_by_hw_breakpoint)
9986 (remote_supports_stopped_by_hw_breakpoint)
9987 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9988 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9989 (remote_verify_memory): Refactor as methods of remote_target.
9990 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9992 (remote_xfer_partial, remote_get_memory_xfer_limit)
9993 (remote_search_memory, remote_rcmd, remote_memory_map)
9994 (remote_pid_to_str, remote_get_thread_local_address)
9995 (remote_get_tib_address, remote_read_description): Refactor as
9996 methods of remote_target.
9997 (remote_target::fileio_open, remote_target::fileio_pwrite)
9998 (remote_target::fileio_pread, remote_target::fileio_close): New.
9999 (remote_hostio_readlink, remote_hostio_fstat)
10000 (remote_filesystem_is_local, remote_can_execute_reverse)
10001 (remote_supports_non_stop, remote_supports_disable_randomization)
10002 (remote_supports_multi_process, remote_supports_cond_breakpoints)
10003 (remote_supports_enable_disable_tracepoint)
10004 (remote_supports_string_tracing)
10005 (remote_can_run_breakpoint_commands, remote_trace_init)
10006 (remote_download_tracepoint, remote_can_download_tracepoint)
10007 (remote_download_trace_state_variable, remote_enable_tracepoint)
10008 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10009 (remote_trace_start, remote_get_trace_status)
10010 (remote_get_tracepoint_status, remote_trace_stop)
10011 (remote_trace_find, remote_get_trace_state_variable_value)
10012 (remote_save_trace_data, remote_get_raw_trace_data)
10013 (remote_set_disconnected_tracing, remote_core_of_thread)
10014 (remote_set_circular_trace_buffer, remote_traceframe_info)
10015 (remote_get_min_fast_tracepoint_insn_len)
10016 (remote_set_trace_buffer_size, remote_set_trace_notes)
10017 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10018 (remote_disable_btrace, remote_teardown_btrace)
10019 (remote_read_btrace, remote_btrace_conf)
10020 (remote_augmented_libraries_svr4_read, remote_load)
10021 (remote_pid_to_exec_file, remote_can_do_single_step)
10022 (remote_execution_direction, remote_thread_handle_to_thread_info):
10023 Refactor as methods of remote_target.
10024 (init_remote_ops, init_extended_remote_ops): Delete.
10025 (remote_can_async_p, remote_is_async_p, remote_async)
10026 (remote_thread_events, remote_upload_tracepoints)
10027 (remote_upload_trace_state_variables): Refactor as methods of
10029 (_initialize_remote): Remove references to init_remote_ops and
10030 init_extended_remote_ops.
10032 * remote-sim.c (gdbsim_target): New class.
10033 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10034 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10035 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10036 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10037 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
10038 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
10039 Refactor as methods of gdbsim_target.
10040 (gdbsim_ops): Now a gdbsim_target.
10041 (init_gdbsim_ops): Delete.
10042 (gdbsim_cntrl_c): Adjust.
10043 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
10045 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
10046 (the_amd64_linux_nat_target): New.
10047 (amd64_linux_fetch_inferior_registers)
10048 (amd64_linux_store_inferior_registers): Refactor as methods of
10049 amd64_linux_nat_target.
10050 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
10051 * i386-linux-nat.c: Don't include "linux-nat.h".
10052 (i386_linux_nat_target): New class.
10053 (the_i386_linux_nat_target): New.
10054 (i386_linux_fetch_inferior_registers)
10055 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
10056 as methods of i386_linux_nat_target.
10057 (_initialize_i386_linux_nat): Adjust. Set linux_target.
10058 * inf-child.c (inf_child_ops): Delete.
10059 (inf_child_fetch_inferior_registers)
10060 (inf_child_store_inferior_registers): Delete.
10061 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
10062 methods of inf_child_target.
10063 (inf_child_target::supports_terminal_ours)
10064 (inf_child_target::terminal_init)
10065 (inf_child_target::terminal_inferior)
10066 (inf_child_target::terminal_ours_for_output)
10067 (inf_child_target::terminal_ours, inf_child_target::interrupt)
10068 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
10070 (inf_child_open, inf_child_disconnect, inf_child_close)
10071 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
10072 (inf_child_post_startup_inferior, inf_child_can_run)
10073 (inf_child_pid_to_exec_file): Refactor as methods of
10075 (inf_child_follow_fork): Delete.
10076 (inf_child_target::can_create_inferior)
10077 (inf_child_target::can_attach): New.
10078 (inf_child_target::has_all_memory, inf_child_target::has_memory)
10079 (inf_child_target::has_stack, inf_child_target::has_registers)
10080 (inf_child_target::has_execution): New.
10081 (inf_child_fileio_open, inf_child_fileio_pwrite)
10082 (inf_child_fileio_pread, inf_child_fileio_fstat)
10083 (inf_child_fileio_close, inf_child_fileio_unlink)
10084 (inf_child_fileio_readlink, inf_child_use_agent)
10085 (inf_child_can_use_agent): Refactor as methods of
10087 (return_zero, inf_child_target): Delete.
10088 (inf_child_target::inf_child_target): New.
10089 * inf-child.h: Include "target.h".
10090 (inf_child_target): Delete function prototype.
10091 (inf_child_target): New class.
10092 (inf_child_open_target, inf_child_mourn_inferior)
10093 (inf_child_maybe_unpush_target): Delete.
10094 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
10095 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
10096 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
10097 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
10098 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
10099 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
10100 (inf_ptrace_wait, inf_ptrace_xfer_partial)
10101 (inf_ptrace_thread_alive, inf_ptrace_files_info)
10102 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
10103 methods of inf_ptrace_target.
10104 (inf_ptrace_target): Delete function.
10105 * inf-ptrace.h: Include "inf-child.h".
10106 (inf_ptrace_target): Delete function declaration.
10107 (inf_ptrace_target): New class.
10108 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
10109 * linux-nat.c (linux_target): New.
10110 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
10111 (linux_nat_target::~linux_nat_target): New.
10112 (linux_child_post_attach, linux_child_post_startup_inferior)
10113 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
10114 (linux_child_remove_fork_catchpoint)
10115 (linux_child_insert_vfork_catchpoint)
10116 (linux_child_remove_vfork_catchpoint)
10117 (linux_child_insert_exec_catchpoint)
10118 (linux_child_remove_exec_catchpoint)
10119 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
10120 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
10121 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
10122 (linux_nat_stopped_data_address)
10123 (linux_nat_stopped_by_sw_breakpoint)
10124 (linux_nat_supports_stopped_by_sw_breakpoint)
10125 (linux_nat_stopped_by_hw_breakpoint)
10126 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
10127 (linux_nat_kill, linux_nat_mourn_inferior)
10128 (linux_nat_xfer_partial, linux_nat_thread_alive)
10129 (linux_nat_update_thread_list, linux_nat_pid_to_str)
10130 (linux_nat_thread_name, linux_child_pid_to_exec_file)
10131 (linux_child_static_tracepoint_markers_by_strid)
10132 (linux_nat_is_async_p, linux_nat_can_async_p)
10133 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
10134 (linux_nat_supports_multi_process)
10135 (linux_nat_supports_disable_randomization, linux_nat_async)
10136 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
10137 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
10138 (linux_nat_fileio_open, linux_nat_fileio_readlink)
10139 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
10140 methods of linux_nat_target.
10141 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
10142 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
10144 (check_stopped_by_watchpoint): Adjust.
10145 (linux_xfer_partial): Delete.
10146 (linux_target_install_ops, linux_target, linux_nat_add_target):
10148 (linux_nat_target::linux_nat_target): New.
10149 * linux-nat.h: Include "inf-ptrace.h".
10150 (linux_nat_target): New.
10151 (linux_target, linux_target_install_ops, linux_nat_add_target):
10152 Delete function declarations.
10153 (linux_target): Declare global.
10154 * linux-thread-db.c (thread_db_target): New.
10155 (thread_db_target::thread_db_target): New.
10156 (thread_db_ops): Delete.
10157 (the_thread_db_target): New.
10158 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
10159 (thread_db_update_thread_list, thread_db_pid_to_str)
10160 (thread_db_extra_thread_info)
10161 (thread_db_thread_handle_to_thread_info)
10162 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
10163 (thread_db_resume): Refactor as methods of thread_db_target.
10164 (init_thread_db_ops): Delete.
10165 (_initialize_thread_db): Remove reference to init_thread_db_ops.
10166 * x86-linux-nat.c: Don't include "linux-nat.h".
10167 (super_post_startup_inferior): Delete.
10168 (x86_linux_nat_target::~x86_linux_nat_target): New.
10169 (x86_linux_child_post_startup_inferior)
10170 (x86_linux_read_description, x86_linux_enable_btrace)
10171 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
10172 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
10173 methods of x86_linux_nat_target.
10174 (x86_linux_create_target): Delete. Bits folded ...
10175 (x86_linux_add_target): ... here. Now takes a linux_nat_target
10177 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
10178 (x86_linux_nat_target): New class.
10179 (x86_linux_create_target): Delete.
10180 (x86_linux_add_target): Now takes a linux_nat_target pointer.
10181 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
10182 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
10183 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
10184 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
10185 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
10187 (x86_use_watchpoints): Delete.
10188 * x86-nat.h: Include "breakpoint.h" and "target.h".
10189 (x86_use_watchpoints): Delete.
10190 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
10191 (x86_stopped_by_watchpoint, x86_stopped_data_address)
10192 (x86_insert_watchpoint, x86_remove_watchpoint)
10193 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
10194 (x86_stopped_by_hw_breakpoint): New declarations.
10195 (x86_nat_target): New template class.
10197 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10198 (the_ppc_linux_nat_target): New.
10199 (ppc_linux_fetch_inferior_registers)
10200 (ppc_linux_can_use_hw_breakpoint)
10201 (ppc_linux_region_ok_for_hw_watchpoint)
10202 (ppc_linux_ranged_break_num_registers)
10203 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10204 (ppc_linux_insert_mask_watchpoint)
10205 (ppc_linux_remove_mask_watchpoint)
10206 (ppc_linux_can_accel_watchpoint_condition)
10207 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10208 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10209 (ppc_linux_watchpoint_addr_within_range)
10210 (ppc_linux_masked_watch_num_registers)
10211 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10212 (ppc_linux_read_description): Refactor as methods of
10213 ppc_linux_nat_target.
10214 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
10216 * procfs.c (procfs_xfer_partial): Delete forward declaration.
10217 (procfs_target): New class.
10218 (the_procfs_target): New.
10219 (procfs_target): Delete function.
10220 (procfs_auxv_parse, procfs_attach, procfs_detach)
10221 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10222 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10223 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10224 (procfs_create_inferior, procfs_update_thread_list)
10225 (procfs_thread_alive, procfs_pid_to_str)
10226 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10227 (procfs_stopped_data_address, procfs_insert_watchpoint)
10228 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10229 (proc_find_memory_regions, procfs_info_proc)
10230 (procfs_make_note_section): Refactor as methods of procfs_target.
10231 (_initialize_procfs): Adjust.
10232 * sol-thread.c (sol_thread_target): New class.
10233 (sol_thread_ops): Now a sol_thread_target.
10234 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10235 (sol_thread_fetch_registers, sol_thread_store_registers)
10236 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10237 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10238 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10239 (init_sol_thread_ops): Delete.
10240 (_initialize_sol_thread): Adjust. Remove references to
10241 init_sol_thread_ops and complete_target_initialization.
10243 * windows-nat.c (windows_nat_target): New class.
10244 (windows_fetch_inferior_registers)
10245 (windows_store_inferior_registers, windows_resume, windows_wait)
10246 (windows_attach, windows_detach, windows_pid_to_exec_file)
10247 (windows_files_info, windows_create_inferior)
10248 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10249 (windows_close, windows_pid_to_str, windows_xfer_partial)
10250 (windows_get_tib_address, windows_get_ada_task_ptid)
10251 (windows_thread_name, windows_thread_alive): Refactor as
10252 windows_nat_target methods.
10253 (do_initial_windows_stuff): Adjust.
10254 (windows_target): Delete function.
10255 (_initialize_windows_nat): Adjust.
10257 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
10258 (darwin_mourn_inferior, darwin_kill_inferior)
10259 (darwin_create_inferior, darwin_attach, darwin_detach)
10260 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
10261 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
10262 (darwin_supports_multi_process): Refactor as darwin_nat_target
10264 (darwin_resume_to, darwin_files_info): Delete.
10265 (_initialize_darwin_inferior): Rename to ...
10266 (_initialize_darwin_nat): ... this. Adjust to C++ification.
10267 * darwin-nat.h: Include "inf-child.h".
10268 (darwin_nat_target): New class.
10269 (darwin_complete_target): Delete.
10270 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
10271 (darwin_target): New.
10272 (i386_darwin_fetch_inferior_registers)
10273 (i386_darwin_store_inferior_registers): Refactor as methods of
10275 (darwin_complete_target): Delete, with ...
10276 (_initialize_i386_darwin_nat): ... bits factored out here.
10278 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
10279 (the_alpha_linux_nat_target): New.
10280 (alpha_linux_register_u_offset): Refactor as
10281 alpha_linux_nat_target method.
10282 (_initialize_alpha_linux_nat): Adjust.
10283 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
10284 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10285 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
10286 methods of linux_nat_trad_target.
10287 (linux_trad_target): Delete.
10288 * linux-nat-trad.h (linux_trad_target): Delete function.
10289 (linux_nat_trad_target): New class.
10290 * mips-linux-nat.c (mips_linux_nat_target): New class.
10291 (super_fetch_registers, super_store_registers, super_close):
10293 (the_mips_linux_nat_target): New.
10294 (mips64_linux_regsets_fetch_registers)
10295 (mips64_linux_regsets_store_registers)
10296 (mips64_linux_fetch_registers, mips64_linux_store_registers)
10297 (mips_linux_register_u_offset, mips_linux_read_description)
10298 (mips_linux_can_use_hw_breakpoint)
10299 (mips_linux_stopped_by_watchpoint)
10300 (mips_linux_stopped_data_address)
10301 (mips_linux_region_ok_for_hw_watchpoint)
10302 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10303 (mips_linux_close): Refactor as methods of mips_linux_nat.
10304 (_initialize_mips_linux_nat): Adjust to C++ification.
10306 * aix-thread.c (aix_thread_target): New class.
10307 (aix_thread_ops): Now an aix_thread_target.
10308 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10309 (aix_thread_fetch_registers, aix_thread_store_registers)
10310 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10311 (aix_thread_thread_alive, aix_thread_pid_to_str)
10312 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
10313 Refactor as methods of aix_thread_target.
10314 (init_aix_thread_ops): Delete.
10315 (_initialize_aix_thread): Remove references to init_aix_thread_ops
10316 and complete_target_initialization.
10317 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
10318 (rs6000_nat_target): New class.
10319 (the_rs6000_nat_target): New.
10320 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
10321 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
10322 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
10323 (super_create_inferior): Delete.
10324 (_initialize_rs6000_nat): Adjust to C++ification.
10326 * arm-linux-nat.c (arm_linux_nat_target): New class.
10327 (the_arm_linux_nat_target): New.
10328 (arm_linux_fetch_inferior_registers)
10329 (arm_linux_store_inferior_registers, arm_linux_read_description)
10330 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
10331 (arm_linux_remove_hw_breakpoint)
10332 (arm_linux_region_ok_for_hw_watchpoint)
10333 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
10334 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
10335 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
10336 arm_linux_nat_target.
10337 (_initialize_arm_linux_nat): Adjust to C++ification.
10339 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
10340 (the_aarch64_linux_nat_target): New.
10341 (aarch64_linux_fetch_inferior_registers)
10342 (aarch64_linux_store_inferior_registers)
10343 (aarch64_linux_child_post_startup_inferior)
10344 (aarch64_linux_read_description)
10345 (aarch64_linux_can_use_hw_breakpoint)
10346 (aarch64_linux_insert_hw_breakpoint)
10347 (aarch64_linux_remove_hw_breakpoint)
10348 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
10349 (aarch64_linux_region_ok_for_hw_watchpoint)
10350 (aarch64_linux_stopped_data_address)
10351 (aarch64_linux_stopped_by_watchpoint)
10352 (aarch64_linux_watchpoint_addr_within_range)
10353 (aarch64_linux_can_do_single_step): Refactor as methods of
10354 aarch64_linux_nat_target.
10355 (super_post_startup_inferior): Delete.
10356 (_initialize_aarch64_linux_nat): Adjust to C++ification.
10358 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10359 (the_hppa_linux_nat_target): New.
10360 (hppa_linux_fetch_inferior_registers)
10361 (hppa_linux_store_inferior_registers): Refactor as methods of
10362 hppa_linux_nat_target.
10363 (_initialize_hppa_linux_nat): Adjust to C++ification.
10365 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10366 (the_ia64_linux_nat_target): New.
10367 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10368 (ia64_linux_stopped_data_address)
10369 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10370 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10371 ia64_linux_nat_target methods.
10372 (super_xfer_partial): Delete.
10373 (_initialize_ia64_linux_nat): Adjust to C++ification.
10375 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10376 (the_m32r_linux_nat_target): New.
10377 (m32r_linux_fetch_inferior_registers)
10378 (m32r_linux_store_inferior_registers): Refactor as
10379 m32r_linux_nat_target methods.
10380 (_initialize_m32r_linux_nat): Adjust to C++ification.
10382 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10383 (the_m68k_linux_nat_target): New.
10384 (m68k_linux_fetch_inferior_registers)
10385 (m68k_linux_store_inferior_registers): Refactor as
10386 m68k_linux_nat_target methods.
10387 (_initialize_m68k_linux_nat): Adjust to C++ification.
10389 * s390-linux-nat.c (s390_linux_nat_target): New class.
10390 (the_s390_linux_nat_target): New.
10391 (s390_linux_fetch_inferior_registers)
10392 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10393 (s390_insert_watchpoint, s390_remove_watchpoint)
10394 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10395 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10396 (s390_auxv_parse, s390_read_description): Refactor as methods of
10397 s390_linux_nat_target.
10398 (_initialize_s390_nat): Adjust to C++ification.
10400 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10401 (the_sparc_linux_nat_target): New.
10402 (_initialize_sparc_linux_nat): Adjust to C++ification.
10403 * sparc-nat.c (sparc_fetch_inferior_registers)
10404 (sparc_store_inferior_registers): Remove target_ops parameter.
10405 * sparc-nat.h (sparc_fetch_inferior_registers)
10406 (sparc_store_inferior_registers): Remove target_ops parameter.
10407 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10408 (the_sparc64_linux_nat_target): New.
10409 (_initialize_sparc64_linux_nat): Adjust to C++ification.
10411 * spu-linux-nat.c (spu_linux_nat_target): New class.
10412 (the_spu_linux_nat_target): New.
10413 (spu_child_post_startup_inferior, spu_child_post_attach)
10414 (spu_child_wait, spu_fetch_inferior_registers)
10415 (spu_store_inferior_registers, spu_xfer_partial)
10416 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10418 (_initialize_spu_nat): Adjust to C++ification.
10420 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10421 (the_tilegx_linux_nat_target): New.
10422 (fetch_inferior_registers, store_inferior_registers):
10423 Refactor as methods.
10424 (_initialize_tile_linux_nat): Adjust to C++ification.
10426 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10427 (the_xtensa_linux_nat_target): New.
10428 (xtensa_linux_fetch_inferior_registers)
10429 (xtensa_linux_store_inferior_registers): Refactor as
10430 xtensa_linux_nat_target methods.
10431 (_initialize_xtensa_linux_nat): Adjust to C++ification.
10433 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10434 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10435 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10436 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10437 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10438 (fbsd_stopped_by_sw_breakpoint)
10439 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10440 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10441 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10442 (fbsd_post_startup_inferior, fbsd_post_attach)
10443 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10444 (fbsd_set_syscall_catchpoint)
10445 (super_xfer_partial, super_resume, super_wait)
10446 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10447 (fbsd_handle_debug_trap): Remove target_ops parameter.
10448 (fbsd_nat_add_target): Delete.
10449 * fbsd-nat.h: Include "inf-ptrace.h".
10450 (fbsd_nat_add_target): Delete.
10451 (USE_SIGTRAP_SIGINFO): Define.
10452 (fbsd_nat_target): New class.
10454 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10455 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10456 (amd64bsd_target): Delete.
10457 * amd64-bsd-nat.h: New file.
10458 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10460 (amd64_fbsd_nat_target): New class.
10461 (the_amd64_fbsd_nat_target): New.
10462 (amd64fbsd_read_description): Refactor as method of
10463 amd64_fbsd_nat_target.
10464 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10465 (_initialize_amd64fbsd_nat): Adjust to C++ification.
10466 * amd64-nat.h (amd64bsd_target): Delete function declaration.
10467 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10468 (i386bsd_store_inferior_registers): Remove target_ops parameter.
10469 (i386bsd_target): Delete.
10470 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
10471 (i386bsd_fetch_inferior_registers)
10472 (i386bsd_store_inferior_registers): Declare.
10473 (i386_bsd_nat_target): New class.
10474 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
10475 (the_i386_fbsd_nat_target): New.
10476 (i386fbsd_resume, i386fbsd_read_description): Refactor as
10477 i386_fbsd_nat_target methods.
10478 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10479 (_initialize_i386fbsd_nat): Adjust to C++ification.
10480 * x86-bsd-nat.c (super_mourn_inferior): Delete.
10481 (x86bsd_mourn_inferior, x86bsd_target): Delete.
10482 (_initialize_x86_bsd_nat): Adjust to C++ification.
10483 * x86-bsd-nat.h: Include "x86-nat.h".
10484 (x86bsd_target): Delete declaration.
10485 (x86bsd_nat_target): New class.
10487 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
10488 (the_aarch64_fbsd_nat_target): New.
10489 (aarch64_fbsd_fetch_inferior_registers)
10490 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
10491 aarch64_fbsd_nat_target.
10492 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
10493 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
10494 (the_alpha_bsd_nat_target): New.
10495 (alphabsd_fetch_inferior_registers)
10496 (alphabsd_store_inferior_registers): Refactor as
10497 alpha_bsd_nat_target methods.
10498 (_initialize_alphabsd_nat): Refactor as methods of
10499 alpha_bsd_nat_target.
10500 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
10501 (the_amd64_nbsd_nat_target): New.
10502 (_initialize_amd64nbsd_nat): Adjust to C++ification.
10503 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
10504 (the_amd64_obsd_nat_target): New.
10505 (_initialize_amd64obsd_nat): Adjust to C++ification.
10506 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
10507 (the_arm_fbsd_nat_target): New.
10508 (arm_fbsd_fetch_inferior_registers)
10509 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
10510 (_initialize_arm_fbsd_nat): Refactor as methods of
10511 arm_fbsd_nat_target.
10512 (_initialize_arm_fbsd_nat): Adjust to C++ification.
10513 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
10514 (the_arm_netbsd_nat_target): New.
10515 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
10516 arm_netbsd_nat_target.
10517 (_initialize_arm_netbsd_nat): Adjust to C++ification.
10518 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
10519 (the_hppa_nbsd_nat_target): New.
10520 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
10521 hppa_nbsd_nat_target methods.
10522 (_initialize_hppanbsd_nat): Adjust to C++ification.
10523 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
10524 (the_hppa_obsd_nat_target): New.
10525 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
10526 methods of hppa_obsd_nat_target.
10527 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
10529 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
10530 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
10532 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
10533 (_initialize_i386obsd_nat): Use add_target.
10534 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
10535 (the_m68k_bsd_nat_target): New.
10536 (m68kbsd_fetch_inferior_registers)
10537 (m68kbsd_store_inferior_registers): Refactor as methods of
10538 m68k_bsd_nat_target.
10539 (_initialize_m68kbsd_nat): Adjust to C++ification.
10540 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
10541 (the_mips_fbsd_nat_target): New.
10542 (mips_fbsd_fetch_inferior_registers)
10543 (mips_fbsd_store_inferior_registers): Refactor as methods of
10544 mips_fbsd_nat_target.
10545 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
10547 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
10548 (the_mips_nbsd_nat_target): New.
10549 (mipsnbsd_fetch_inferior_registers)
10550 (mipsnbsd_store_inferior_registers): Refactor as methods of
10551 mips_nbsd_nat_target.
10552 (_initialize_mipsnbsd_nat): Adjust to C++ification.
10553 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
10554 (the_mips64_obsd_nat_target): New.
10555 (mips64obsd_fetch_inferior_registers)
10556 (mips64obsd_store_inferior_registers): Refactor as methods of
10557 mips64_obsd_nat_target.
10558 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
10560 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
10562 * nbsd-nat.h: Include "inf-ptrace.h".
10563 (nbsd_nat_target): New class.
10564 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
10565 (obsd_wait): Refactor as methods of obsd_nat_target.
10566 (obsd_add_target): Delete.
10567 * obsd-nat.h: Include "inf-ptrace.h".
10568 (obsd_nat_target): New class.
10569 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
10570 (the_ppc_fbsd_nat_target): New.
10571 (ppcfbsd_fetch_inferior_registers)
10572 (ppcfbsd_store_inferior_registers): Refactor as methods of
10573 ppc_fbsd_nat_target.
10574 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
10576 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
10577 (the_ppc_nbsd_nat_target): New.
10578 (ppcnbsd_fetch_inferior_registers)
10579 (ppcnbsd_store_inferior_registers): Refactor as methods of
10580 ppc_nbsd_nat_target.
10581 (_initialize_ppcnbsd_nat): Adjust to C++ification.
10582 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
10583 (the_ppc_obsd_nat_target): New.
10584 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
10585 methods of ppc_obsd_nat_target.
10586 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
10588 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
10589 (the_sh_nbsd_nat_target): New.
10590 (shnbsd_fetch_inferior_registers)
10591 (shnbsd_store_inferior_registers): Refactor as methods of
10592 sh_nbsd_nat_target.
10593 (_initialize_shnbsd_nat): Adjust to C++ification.
10594 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
10595 (inf_ptrace_xfer_partial): Delete.
10596 (sparc_xfer_partial, sparc_target): Delete.
10597 * sparc-nat.h (sparc_fetch_inferior_registers)
10598 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
10599 (sparc_target): Delete function declaration.
10600 (sparc_target): New template class.
10601 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
10602 (_initialize_sparcnbsd_nat): Adjust to C++ification.
10603 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
10604 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
10606 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
10607 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
10608 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
10609 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
10611 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
10612 (the_vax_bsd_nat_target): New.
10613 (vaxbsd_fetch_inferior_registers)
10614 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
10616 (_initialize_vaxbsd_nat): Adjust to C++ification.
10618 * bsd-kvm.c (bsd_kvm_target): New class.
10619 (bsd_kvm_ops): Now a bsd_kvm_target.
10620 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
10621 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
10622 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
10624 (bsd_kvm_return_one): Delete.
10625 (bsd_kvm_add_target): Adjust to C++ification.
10627 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
10628 (nto_procfs_target_procfs): New classes.
10629 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
10630 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
10631 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
10632 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
10633 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
10634 (procfs_remove_hw_breakpoint, procfs_resume)
10635 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
10636 (procfs_kill_inferior, procfs_store_registers)
10637 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
10638 as methods of nto_procfs_target.
10639 (nto_procfs_ops): Now an nto_procfs_target_procfs.
10640 (nto_native_ops): Delete.
10641 (procfs_open, procfs_native_open): Delete.
10642 (nto_native_ops): Now an nto_procfs_target_native.
10643 (init_procfs_targets): Adjust to C++ification.
10644 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
10645 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
10646 Refactor as methods of nto_procfs_target.
10648 * go32-nat.c (go32_nat_target): New class.
10649 (the_go32_nat_target): New.
10650 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
10651 (go32_store_registers, go32_xfer_partial, go32_files_info)
10652 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
10653 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
10654 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
10655 (go32_pid_to_str): Refactor as methods of go32_nat_target.
10656 (go32_target): Delete.
10657 (_initialize_go32_nat): Adjust to C++ification.
10659 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
10660 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
10661 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
10662 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
10664 (gnu_target): Delete.
10665 * gnu-nat.h (gnu_target): Delete.
10666 (gnu_nat_target): New class.
10667 * i386-gnu-nat.c (gnu_base_target): New.
10668 (i386_gnu_nat_target): New class.
10669 (the_i386_gnu_nat_target): New.
10670 (_initialize_i386gnu_nat): Adjust to C++ification.
10672 2018-05-02 Pedro Alves <palves@redhat.com>
10674 * bfd-target.c (target_bfd_xclose): Rename to ...
10675 (target_bfd_close): ... this.
10676 (target_bfd_reopen): Adjust.
10677 * target.c (target_close): Remove references to to_xclose.
10678 * target.h (target_ops::to_xclose): Delete.
10679 (target_ops::to_close): Update comments.
10681 2018-05-02 Pedro Alves <palves@redhat.com>
10683 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
10685 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
10686 * inf-ptrace.c (inf_ptrace_register_u_offset)
10687 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10688 (inf_ptrace_store_register, inf_ptrace_store_registers)
10689 (inf_ptrace_trad_target): Move to ...
10690 * linux-nat-trad.c: ... this new file.
10691 * linux-nat-trad.h: New file.
10692 * linux-nat.c (linux_target_install_ops): Make extern.
10693 (linux_trad_target): Delete.
10694 * linux-nat.h (linux_trad_target): Delete declaration.
10695 (linux_target_install_ops): Declare.
10696 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
10699 2018-05-02 Pedro Alves <palves@redhat.com>
10701 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10702 procfs_target/add_target here.
10703 * procfs.c (procfs_target): Make static.
10704 (_initialize_procfs): Call add_target here.
10705 * procfs.h (struct target_ops): Remove forward declaration.
10706 (procfs_target): Remove declaration.
10707 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
10709 2018-05-02 Pedro Alves <palves@redhat.com>
10711 * procfs.c (procfs_stopped_by_watchpoint)
10712 (procfs_insert_watchpoint, procfs_remove_watchpoint)
10713 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
10715 (procfs_use_watchpoints): Delete, move contents...
10716 (procfs_target): ... here.
10717 * procfs.h (procfs_use_watchpoints): Delete declaration.
10718 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10719 procfs_use_watchpoints.
10720 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
10721 procfs_use_watchpoints.
10723 2018-05-02 Tom Tromey <tom@tromey.com>
10726 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
10727 and var_zuinteger_unlimited.
10728 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
10729 and PARAM_ZUINTEGER_UNLIMITED.
10730 (set_parameter_value): Handle var_zuinteger and
10731 var_zuinteger_unlimited.
10732 (add_setshow_generic): Likewise.
10733 (parmpy_init): Likewise.
10735 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
10738 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
10739 pointer is not null before dereferencing it.
10741 2018-04-30 Tom Tromey <tom@tromey.com>
10743 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
10746 2018-04-30 Tom Tromey <tom@tromey.com>
10748 * breakpoint.c (mention): Remove use of is_mi_like_p.
10749 (print_mention_ranged_breakpoint): Likewise.
10750 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
10753 2018-04-30 Tom Tromey <tom@tromey.com>
10755 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
10757 2018-04-30 Tom Tromey <tom@tromey.com>
10759 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
10760 (info_spu_event_command): Remove some uses of is_mi_like_p.
10762 2018-04-30 Tom Tromey <tom@tromey.com>
10764 * python/py-framefilter.c (py_print_single_arg)
10765 (enumerate_locals, py_print_args, py_print_frame): Remove some
10766 uses of is_mi_like_p.
10768 2018-04-30 Tom Tromey <tom@tromey.com>
10770 * ui-out.c: Update.
10771 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
10772 * ui-out.h (ui_out::is_mi_like_p): Now const.
10773 (ui_out::do_is_mi_like_p): Now const.
10774 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
10776 2018-04-30 Tom Tromey <tom@tromey.com>
10778 * varobj.c (varobj_set_visualizer): Use new_reference.
10779 * python/python.c (gdbpy_decode_line): Use new_reference.
10780 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
10783 2018-04-30 Tom Tromey <tom@tromey.com>
10785 * varobj.c (install_new_value): Use new_reference.
10786 * value.h (value_incref): Return void. Swap intro comment with
10788 * value.c (set_value_parent): Use new_reference.
10789 (value_incref): Return void. Update intro comment.
10790 (release_value): Use new_reference.
10791 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
10793 2018-04-30 Tom Tromey <tom@tromey.com>
10795 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
10796 * gdb_bfd.h (new_bfd_ref): Remove.
10797 (gdb_bfd_open): Update comment.
10798 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10799 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
10800 (gdb_bfd_fdopenr): Use new_reference.
10801 * exec.c (exec_file_attach): Use new_reference.
10803 2018-04-30 Tom Tromey <tom@tromey.com>
10805 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
10808 2018-04-30 Tom Tromey <tom@tromey.com>
10810 * jit.c (jit_read_code_entry): Use type_align.
10811 * i386-tdep.c (i386_gdbarch_init): Don't call
10812 set_gdbarch_long_long_align_bit.
10813 * gdbarch.sh: Remove long_long_align_bit.
10814 * gdbarch.c, gdbarch.h: Rebuild.
10815 * arc-tdep.c (arc_type_align): New function.
10816 (arc_gdbarch_init): Use arc_type_align. Don't call
10817 set_gdbarch_long_long_align_bit.
10819 2018-04-30 Tom Tromey <tom@tromey.com>
10821 * rust-lang.c (rust_type_alignment): Remove.
10822 (rust_composite_type): Use type_align.
10824 2018-04-30 Tom Tromey <tom@tromey.com>
10826 * NEWS: Mention Type.align.
10827 * python/py-type.c (typy_get_alignof): New function.
10828 (type_object_getset): Add "alignof".
10830 2018-04-30 Tom Tromey <tom@tromey.com>
10834 * std-operator.def (UNOP_ALIGNOF): New operator.
10835 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10837 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10838 * c-lang.c (c_op_print_tab): Add alignof.
10839 * c-exp.y (ALIGNOF): New token.
10840 (exp): Add "ALIGNOF" production.
10841 (ident_tokens): Add _Alignof and alignof.
10843 2018-04-30 Tom Tromey <tom@tromey.com>
10845 * i386-tdep.c (i386_type_align): New function.
10846 (i386_gdbarch_init): Update.
10847 * gdbarch.sh (type_align): New method.
10848 * gdbarch.c, gdbarch.h: Rebuild.
10849 * arch-utils.h (default_type_align): Declare.
10850 * arch-utils.c (default_type_align): New function.
10851 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10852 (struct type) <align_log2>: New field.
10853 <instance_flags>: Now a bitfield.
10854 (TYPE_RAW_ALIGN): New macro.
10855 (type_align, type_raw_align, set_type_align): Declare.
10856 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10858 * dwarf2read.c (quirk_rust_enum): Set type alignment.
10859 (get_alignment, maybe_set_alignment): New functions.
10860 (read_structure_type, read_enumeration_type, read_array_type)
10861 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10862 (read_subrange_type, read_base_type): Set type alignment.
10864 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
10866 * dwarf2read.c (read_index_from_section): Use bool.
10868 2018-04-29 Fabian Groffen <grobian@gentoo.org>
10871 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10874 2018-04-29 John Reiser <jreiser@BitWagon.com>
10877 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10878 last step, and do it atomically.
10880 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
10882 * compile/compile-c-types.c (convert_int, convert_float):
10883 Update for C FE v1.
10885 2018-04-27 Tom Tromey <tom@tromey.com>
10888 * rust-lang.c (rust_inclusive_range_type_p): New function.
10889 (rust_range): Handle inclusive ranges.
10890 (rust_compute_range): Likewise.
10891 * rust-exp.y (struct rust_op) <inclusive>: New field.
10892 (DOTDOTEQ): New constant.
10893 (range_expr): Add "..=" productions.
10894 (operator_tokens): Add "..=" token.
10895 (ast_range): Add "inclusive" parameter.
10896 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10898 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10900 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10901 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10903 * expprint.c (print_subexp_standard): Handle new bounds values.
10904 (dump_subexp_body_standard): Likewise.
10906 2018-04-27 Tom Tromey <tom@tromey.com>
10908 * configure: Rebuild.
10909 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10910 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10912 (class symbol_needs_eval_context): Likewise.
10913 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10914 (mock_mapped_index::symbol_name_at): Use "override". Remove
10916 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10918 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10919 * aarch64-tdep.c (instruction_reader::read): Use "override".
10920 (instruction_reader_test::read): Likewise.
10921 * arm-tdep.c (instruction_reader::read): Use "override".
10922 (instruction_reader_thumb::read): Likewise.
10924 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10927 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10928 instead of remote_send.
10929 (remote_send): Remove.
10931 2018-04-26 Pedro Alves <palves@redhat.com>
10933 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10934 find_function_start_sal instead of find_pc_line.
10936 2018-04-26 Pedro Alves <palves@redhat.com>
10938 * breakpoint.c (set_breakpoint_location_function): Handle
10939 mst_data_gnu_ifunc.
10940 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10941 * elfread.c (elf_symtab_read): Give data symbols with
10942 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10943 (elf_rel_plt_read): Update comment.
10944 * linespec.c (convert_linespec_to_sals): Handle
10945 mst_data_gnu_ifunc.
10946 (minsym_found): Handle mst_data_gnu_ifunc.
10947 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10948 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10949 * parse.c (find_minsym_type_and_address): Handle
10950 mst_data_gnu_ifunc.
10951 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10952 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10953 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10955 <mst_data_gnu_ifunc>: New enumerator.
10957 2018-04-26 Pedro Alves <palves@redhat.com>
10959 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10960 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10961 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10963 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10964 (lookup_minimal_symbol_by_pc): Adjust.
10965 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10966 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10967 * minsyms.h (lookup_msym_prefer): New enum.
10968 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10969 parameter by a lookup_msym_prefer parameter.
10971 2018-04-26 Pedro Alves <palves@redhat.com>
10973 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10974 ends in "@plt" instead of looking at the symbol's section.
10976 2018-04-26 Pedro Alves <palves@redhat.com>
10978 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10980 (find_pc_partial_function_gnu_ifunc): Rename to ...
10981 (find_pc_partial_function): ... this, and remove references to
10983 (find_pc_partial_function): Delete old implementation.
10984 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10986 2018-04-26 Pedro Alves <palves@redhat.com>
10988 * linespec.c (struct bound_minimal_symbol_search_key): New.
10989 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10990 skip first line if we found a GNU ifunc minimal symbol by name.
10991 (compare_msymbols): Change parameters to work with a destructured
10993 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10996 2018-04-26 Pedro Alves <palves@redhat.com>
10998 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10999 ifunc targets here. Instead, if we have an ifunc minsym, use its
11001 (add_location_to_breakpoint): Store the minsym and the objfile in
11002 the breakpoint location.
11003 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
11004 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
11005 Record the minsym in the sal.
11006 * symtab.h (symtab_and_line) <msymbol>: New field.
11008 2018-04-26 Pedro Alves <palves@redhat.com>
11010 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11011 unless we actually resolved the ifunc.
11013 2018-04-26 Pedro Alves <palves@redhat.com>
11015 * c-exp.y (variable production): Prefer ifunc minsyms over
11016 regular function symbols.
11017 * symtab.c (find_gnu_ifunc): New function.
11018 * minsyms.h (lookup_msym_prefer): New enum.
11019 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11020 parameter by a lookup_msym_prefer parameter.
11021 * symtab.h (find_gnu_ifunc): New declaration.
11023 2018-04-26 Pedro Alves <palves@redhat.com>
11025 * blockframe.c (find_gnu_ifunc_target_type): New function.
11026 (find_function_type): New.
11027 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11028 return a value with a memory address.
11029 (eval_call): For calls to GNU ifunc functions, try to find the
11030 type of the target function from the type that the resolver
11032 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11034 * infcall.c (find_function_return_type): Delete.
11035 (find_function_addr): Add 'function_type' parameter. For calls to
11036 GNU ifunc functions, try to find the type of the target function
11037 from the type that the resolver returns, and return it via
11039 (call_function_by_hand_dummy): Adjust to use the function type
11040 returned by find_function_addr.
11041 (find_function_addr): Add 'function_type' parameter and move
11043 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
11046 2018-04-26 Pedro Alves <palves@redhat.com>
11048 * c-exp.y (variable production): Skip finding an alias for ifunc
11051 2018-04-26 Pedro Alves <palves@redhat.com>
11053 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
11055 2018-04-25 Pedro Alves <palves@redhat.com>
11057 * infcmd.c (kill_command): Print the pid as string, not the whole
11058 thread's ptid. Add comment. s/has been killed/killed/ in output
11060 * remote.c (remote_detach_1): Print the pid as string, not the
11061 whole thread's ptid.
11063 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11064 Sergio Durigan Junior <sergiodj@redhat.com>
11065 Pedro Alves <palves@redhat.com>
11067 * infcmd.c (kill_command): Print message when inferior has
11069 * inferior.c (print_inferior_events): Remove 'static'. Set as
11071 (add_inferior): Improve message printed when
11072 'print_inferior_events' is on.
11073 (exit_inferior): Remove message printed when
11074 'print_inferior_events' is on.
11075 (detach_inferior): Improve message printed when
11076 'print_inferior_events' is on.
11077 (initialize_inferiors): Use 'add_inferior_silent' to set
11078 'current_inferior_'.
11079 * inferior.h (print_inferior_events): Declare here as
11081 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
11082 '[Detaching...]' messages when 'print_inferior_events' is on.
11083 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
11084 as prefix/suffix for messages. Remove periods. Fix erroneous
11085 'Detaching after fork from child...', replace it by '... from
11087 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
11088 prefix/suffix when printing 'Detaching...' messages. Print
11089 them when 'print_inferior_events' is on.
11090 * remote.c (remote_detach_1): Print message when detaching
11091 from inferior and '!is_fork_parent'.
11093 2018-04-24 Tom Tromey <tom@tromey.com>
11095 * cli-out.h: Reindent.
11097 2018-04-24 Tom Tromey <tom@tromey.com>
11099 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
11100 (cli_ui_out::do_field_string): Use fputs_filtered.
11101 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
11103 2018-04-23 Tom Tromey <tom@tromey.com>
11105 * guile/scm-frame.c (gdbscm_frame_read_var): Use
11106 gdb::unique_xmalloc_ptr.
11108 2018-04-23 Tom Tromey <tom@tromey.com>
11110 * configure: Rebuild.
11112 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
11115 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
11116 prepare_for_testing. Set normal_bp to r_debug_state if target
11119 2018-04-21 Pedro Alves <palves@redhat.com>
11120 Rajendra SY <rajendra.sy@gmail.com>
11122 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
11123 * remote.c (extended_remote_attach): In all-stop mode, mark the
11124 thread as executing.
11126 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11128 * thread.c (thread_apply_all_command): Fix comment.
11129 (thread_command): Fix comment.
11131 2018-04-10 Alan Hayward <alan.hayward@arm.com>
11133 * common/tdesc.h (tdesc_create_feature): Remove xml filename
11135 * features/aarch64-core.c (create_feature_aarch64_core):
11137 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
11139 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
11141 * features/i386/32bit-avx512.c
11142 (create_feature_i386_32bit_avx512): Likewise.
11143 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
11145 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
11147 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
11149 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
11151 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
11153 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
11155 * features/i386/64bit-avx512.c
11156 (create_feature_i386_64bit_avx512): Likewise.
11157 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
11159 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
11161 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
11163 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
11165 * features/i386/64bit-segments.c
11166 (create_feature_i386_64bit_segments): Likewise.
11167 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
11169 * features/i386/x32-core.c
11170 (create_feature_i386_x32_core): Likewise.
11171 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
11172 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
11173 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
11174 * target-descriptions.c: In generated code, don't pass xml
11177 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11179 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
11180 (print_xml_feature::visit_post): Likewise.
11181 (print_xml_feature::visit): Likewise.
11182 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
11183 (print_xml_feature): Add new class.
11184 * regformats/regdat.sh: Null xmltarget on feature targets.
11185 * target-descriptions.c (struct target_desc): Add xmltarget.
11186 (maintenance_check_tdesc_xml_convert): Add unittest function.
11187 (tdesc_get_features_xml): Add function to get xml.
11188 (maintenance_check_xml_descriptions): Test xml generation.
11189 * xml-tdesc.c (string_read_description_xml): Add function.
11190 * xml-tdesc.h (string_read_description_xml): Add declaration.
11192 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11194 * features/Makefile: Add feature marker to targets with new style
11195 target descriptions.
11196 * regformats/aarch64.dat: Regenerate.
11197 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11198 * regformats/i386/amd64-avx-linux.dat: Likewise.
11199 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11200 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11201 * regformats/i386/amd64-linux.dat: Likewise.
11202 * regformats/i386/amd64-mpx-linux.dat: Likewise.
11203 * regformats/i386/amd64.dat: Likewise.
11204 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11205 * regformats/i386/i386-avx-linux.dat: Likewise.
11206 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11207 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11208 * regformats/i386/i386-linux.dat: Likewise.
11209 * regformats/i386/i386-mmx-linux.dat: Likewise.
11210 * regformats/i386/i386-mpx-linux.dat: Likewise.
11211 * regformats/i386/i386.dat: Likewise.
11212 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11213 * regformats/i386/x32-avx-linux.dat: Likewise.
11214 * regformats/i386/x32-linux.dat: Likewise.
11215 * regformats/tic6x-c62x-linux.dat: Likewise.
11216 * regformats/tic6x-c64x-linux.dat: Likewise.
11217 * regformats/tic6x-c64xp-linux.dat: Likewise.
11218 * regformats/regdat.sh: Parse feature marker.
11220 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11222 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11223 (tdesc_osabi_name): Likewise.
11224 * target-descriptions.c (tdesc_architecture_name): Add new
11226 (tdesc_osabi_name): Likewise.
11228 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11230 * common/tdesc.c (tdesc_predefined_type): Move to here.
11231 (tdesc_named_type): Likewise.
11232 (tdesc_create_vector): Likewise.
11233 (tdesc_create_struct): Likewise.
11234 (tdesc_set_struct_size): Likewise.
11235 (tdesc_create_union): Likewise.
11236 (tdesc_create_flags): Likewise.
11237 (tdesc_create_enum): Likewise.
11238 (tdesc_add_field): Likewise.
11239 (tdesc_add_typed_bitfield): Likewise.
11240 (tdesc_add_bitfield): Likewise.
11241 (tdesc_add_flag): Likewise.
11242 (tdesc_add_enum_value): Likewise.
11243 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11244 (struct tdesc_type_vector): Likewise.
11245 (struct tdesc_type_field): Likewise.
11246 (struct tdesc_type_with_fields): Likewise.
11247 (tdesc_create_enum): Add declaration.
11248 (tdesc_add_typed_bitfield): Likewise.
11249 (tdesc_add_enum_value): Likewise.
11250 * target-descriptions.c (tdesc_type_field): Move from here.
11251 (tdesc_type_builtin): Likewise.
11252 (tdesc_type_vector): Likewise.
11253 (tdesc_type_with_fields): Likewise.
11254 (tdesc_predefined_types): Likewise.
11255 (tdesc_named_type): Likewise.
11256 (tdesc_create_vector): Likewise.
11257 (tdesc_create_struct): Likewise.
11258 (tdesc_set_struct_size): Likewise.
11259 (tdesc_create_union): Likewise.
11260 (tdesc_create_flags): Likewise.
11261 (tdesc_create_enum): Likewise.
11262 (tdesc_add_field): Likewise.
11263 (tdesc_add_typed_bitfield): Likewise.
11264 (tdesc_add_bitfield): Likewise.
11265 (tdesc_add_flag): Likewise.
11266 (tdesc_add_enum_value): Likewise.
11267 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
11268 (tdesc_add_typed_bitfield): Likewise.
11269 (tdesc_add_enum_value): Likewise.
11271 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11273 * common/tdesc.c (tdesc_feature::accept): Move to here.
11274 (tdesc_feature::operator==): Likewise.
11275 (tdesc_create_reg): Likewise.
11276 * common/tdesc.h (tdesc_type_kind): Likewise.
11277 (struct tdesc_type): Likewise.
11278 (struct tdesc_feature): Likewise.
11279 * regformats/regdat.sh: Create a feature.
11280 * target-descriptions.c (tdesc_type_kind): Move from here.
11281 (tdesc_type): Likewise.
11282 (tdesc_type_up): Likewise.
11283 (tdesc_feature): Likewise.
11284 (tdesc_create_reg): Likewise.
11286 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11288 * Makefile.in: Add arch/tdesc.c
11289 * common/tdesc.c: New file.
11290 * common/tdesc.h (tdesc_element_visitor): Move to here.
11291 (tdesc_element): Likewise.
11292 (tdesc_reg): Likewise.
11293 (tdesc_reg_up): Likewise.
11294 * regformats/regdef.h (reg): Add offset to constructors.
11295 * target-descriptions.c (tdesc_element_visitor): Move from here.
11296 (tdesc_element): Likewise.
11297 (tdesc_reg): Likewise.
11298 (tdesc_reg_up): Likewise.
11300 2018-04-17 Tom Tromey <tom@tromey.com>
11302 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
11303 discriminant field.
11305 2018-04-17 Tom Tromey <tom@tromey.com>
11307 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
11309 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
11311 * symtab.c (print_symbol_info): Skip printing filename and line
11312 number when `last' is NULL.
11313 (symtab_symbol_info): Use empty string instead of NULL for first
11314 invocation of print_symbol_info.
11315 (rbreak_command): Pass NULL to `last' parameter of
11318 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
11320 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
11321 instead of nullptr.
11323 2018-04-16 Pedro Alves <palves@redhat.com>
11325 * MAINTAINERS (sh): Remove.
11326 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
11327 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
11328 (ALLDEPFILES): Remove sh64-tdep.c.
11329 * NEWS: Mentions that support for SH-5/SH64 is removed.
11330 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
11331 (sh*-*-openbsd*): Ditto.
11332 (sh64-*-elf*): Remove.
11334 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
11335 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
11336 * sh-tdep.c: No longer include "sh64-tdep.h".
11337 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
11338 * sh64-tdep.c, sh64-tdep.h: Remove files.
11340 2018-04-16 Pedro Alves <palves@redhat.com>
11342 * MAINTAINERS: Remove m88k.
11343 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
11344 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
11345 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
11346 * NEWS: Mention that support for m88k was removed.
11347 * configure.host (m88*-*-*): Remove support.
11348 * configure.nat (m88k-*-*): Remove support.
11349 * configure.tgt (m88*-*-openbsd*): Remove.
11350 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11352 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
11354 * configure.tgt (x86_tobjs): New variable.
11355 (amd64_tobjs, i386_tobjs): Use it.
11357 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11359 * symtab.c (print_symbol_info): Precede the symbol definition by
11360 the line number when available.
11361 * NEWS: Advertise this enhancement.
11363 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11365 * NEWS (New options): announce set/show record btrace cpu.
11366 * btrace.c: Include record-btrace.h.
11367 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11368 the vendor is unknown.
11369 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
11370 Maybe overwrite the btrace configuration's cpu.
11371 (btrace_compute_ftrace): Add cpu parameter. Update callers.
11372 (btrace_fetch): Add cpu parameter. Update callers.
11373 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11374 Maybe overwrite the btrace configuration's cpu. Skip enabling
11375 errata workarounds if the vendor is unknown.
11376 * python/py-record-btrace.c: Include record-btrace.h.
11377 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11378 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11379 * record-btrace.c (record_btrace_cpu_state_kind): New.
11380 (record_btrace_cpu): New.
11381 (set_record_btrace_cpu_cmdlist): New.
11382 (record_btrace_get_cpu): New.
11383 (require_btrace_thread, record_btrace_info)
11384 (record_btrace_resume_thread): Call record_btrace_get_cpu.
11385 (cmd_set_record_btrace_cpu_none): New.
11386 (cmd_set_record_btrace_cpu_auto): New.
11387 (cmd_set_record_btrace_cpu): New.
11388 (cmd_show_record_btrace_cpu): New.
11389 (_initialize_record_btrace): Initialize set/show record btrace cpu
11391 * record-btrace.h (record_btrace_get_cpu): New.
11393 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11395 * record.c (set_record_command): Fix typo in message.
11397 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11399 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11401 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11403 * infrun.c (process_event_stop_test): Call
11404 gdbarch_in_indirect_branch_thunk.
11405 * gdbarch.sh (in_indirect_branch_thunk): New.
11406 * gdbarch.c: Regenerated.
11407 * gdbarch.h: Regenerated.
11410 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11411 (HFILES_NO_SRCDIR): Add x86-tdep.h.
11412 (ALLDEPFILES): Add x86-tdep.c.
11413 * arch-utils.h (default_in_indirect_branch_thunk): New.
11414 * arch-utils.c (default_in_indirect_branch_thunk): New.
11415 * i386-tdep: Include x86-tdep.h.
11416 (i386_in_indirect_branch_thunk): New.
11417 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11419 * amd64-tdep: Include x86-tdep.h.
11420 (amd64_in_indirect_branch_thunk): New.
11421 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11423 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11426 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11427 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11428 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11431 2018-04-12 Tom Tromey <tom@tromey.com>
11433 * rust-lang.c (rust_print_struct_def): Remove univariant code.
11434 (rust_evaluate_subexp): Likewise.
11436 2018-04-12 Pedro Alves <palves@redhat.com>
11438 * procfs.c (procfs_detach): Make forward declaration's prototype
11439 match definition's protototype.
11440 (proc_get_LDT_entry): Remove stale do_cleanups call.
11442 2018-04-12 Pedro Alves <palves@redhat.com>
11444 * target.h (target_ops::to_has_exited): Delete.
11445 (target_has_exited): Delete.
11446 * target-delegates.c: Regenerate.
11448 2018-04-11 Pedro Alves <palves@redhat.com>
11450 * target.c (fileio_fh_t::t): Add comment.
11451 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11452 (target_fileio_close): Handle a NULL target.
11453 (invalidate_fileio_fh): New.
11454 (target_close): Call it.
11455 * remote.c (remote_hostio_send_command): No longer check whether
11456 remote_desc is open.
11458 2018-04-11 Pedro Alves <palves@redhat.com>
11460 * target.c (fileio_fh_t): Make it a named struct instead of a
11462 (fileio_fh_t::is_closed): New method.
11463 (DEF_VEC_O (fileio_fh_t)): Remove.
11464 (fileio_fhandles): Now a std::vector.
11465 (is_closed_fileio_fh): Delete.
11466 (acquire_fileio_fd): Adjust. Rename parameters.
11467 (release_fileio_fd): Adjust.
11468 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
11469 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11470 (target_fileio_close): Adjust.
11472 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
11474 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
11477 2018-04-10 Pedro Alves <palves@redhat.com>
11479 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
11480 (scoped_finish_thread_state): New class.
11481 * infcmd.c (run_command_1): Use it instead of finish_thread_state
11483 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
11484 (fetch_inferior_event, normal_stop): Likewise.
11485 * thread.c (finish_thread_state_cleanup): Delete.
11487 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11488 Pedro Alves <palves@redhat.com>
11490 * value.c: Include "selftest.h" and "common/array-view.h".
11491 (struct range) <operator ==>: New.
11492 (test_ranges_contain): New.
11493 (check_ranges_vector): New.
11494 (test_insert_into_bit_range_vector): New.
11495 (_initialize_values): Register selftests.
11496 * common/array-view.h (operator==, operator!=): New.
11498 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11500 * common/gdb_vecs.h (unordered_remove): Add overload that takes
11502 * inline-frame.c: Include <algorithm>.
11503 (struct inline_state): Add constructor.
11504 (inline_state_s): Remove.
11505 (DEF_VEC_O(inline_state_s)): Remove.
11506 (inline_states): Change type to std::vector.
11507 (find_inline_frame_state): Adjust to std::vector.
11508 (allocate_inline_frame_state): Remove.
11509 (clear_inline_frame_state): Adjust to std::vector.
11510 (skip_inline_frames): Adjust to std::vector.
11512 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11514 * tracepoint.h (struct trace_state_variable): Add constructor.
11515 <name>: Change type to std::string.
11516 * tracepoint.c (tsv_s): Remove.
11517 (DEF_VEC_O(tsv_s)): Remove.
11518 (tvariables): Change to std::vector.
11519 (create_trace_state_variable): Adjust to std::vector.
11520 (find_trace_state_variable): Likewise.
11521 (find_trace_state_variable_by_number): Likewise.
11522 (delete_trace_state_variable): Likewise.
11523 (trace_variable_command): Adjust to std::string.
11524 (delete_trace_variable_command): Likewise.
11525 (tvariables_info_1): Adjust to std::vector.
11526 (save_trace_state_variables): Likewise.
11527 (start_tracing): Likewise.
11528 (merge_uploaded_trace_state_variables): Adjust to std::vector
11530 * target.h (struct target_ops)
11531 <to_download_trace_state_variable>: Pass reference to
11532 trace_state_variable.
11533 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
11534 * target-delegates.c: Re-generate.
11535 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
11536 (mi_tsv_deleted): Likewise.
11537 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
11538 * remote.c (remote_download_trace_state_variable): Change
11539 pointer to reference and adjust.
11540 * make-target-delegates (parse_argtypes): Handle references.
11541 (write_function_header): Likewise.
11542 (munge_type): Likewise.
11544 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11546 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11547 string_view-selftests.c.
11548 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
11550 * unittests/basic_string_view/cons/char/1.cc: Likewise.
11551 * unittests/basic_string_view/cons/char/2.cc: Likewise.
11552 * unittests/basic_string_view/cons/char/3.cc: Likewise.
11553 * unittests/basic_string_view/element_access/char/1.cc:
11555 * unittests/basic_string_view/element_access/char/empty.cc:
11557 * unittests/basic_string_view/element_access/char/front_back.cc:
11559 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
11560 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
11562 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
11564 * unittests/basic_string_view/modifiers/swap/char/1.cc:
11566 * unittests/basic_string_view/operations/compare/char/1.cc:
11568 * unittests/basic_string_view/operations/compare/char/13650.cc:
11570 * unittests/basic_string_view/operations/copy/char/1.cc:
11572 * unittests/basic_string_view/operations/data/char/1.cc:
11574 * unittests/basic_string_view/operations/find/char/1.cc:
11576 * unittests/basic_string_view/operations/find/char/2.cc:
11578 * unittests/basic_string_view/operations/find/char/3.cc:
11580 * unittests/basic_string_view/operations/find/char/4.cc:
11582 * unittests/basic_string_view/operations/rfind/char/1.cc:
11584 * unittests/basic_string_view/operations/rfind/char/2.cc:
11586 * unittests/basic_string_view/operations/rfind/char/3.cc:
11588 * unittests/basic_string_view/operations/substr/char/1.cc:
11590 * unittests/basic_string_view/operators/char/2.cc: Likewise.
11591 * unittests/string_view-selftests.c: New file.
11593 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11595 * unittests/basic_string_view/capacity/1.cc: New file.
11596 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
11597 * unittests/basic_string_view/cons/char/1.cc: New file.
11598 * unittests/basic_string_view/cons/char/2.cc: New file.
11599 * unittests/basic_string_view/cons/char/3.cc: New file.
11600 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
11601 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
11602 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
11603 * unittests/basic_string_view/element_access/char/1.cc: New file.
11604 * unittests/basic_string_view/element_access/char/2.cc: New file.
11605 * unittests/basic_string_view/element_access/char/empty.cc: New file.
11606 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
11607 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
11608 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
11609 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
11610 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
11611 * unittests/basic_string_view/include.cc: New file.
11612 * unittests/basic_string_view/inserters/char/1.cc: New file.
11613 * unittests/basic_string_view/inserters/char/2.cc: New file.
11614 * unittests/basic_string_view/inserters/char/3.cc: New file.
11615 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
11616 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
11617 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
11618 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
11619 * unittests/basic_string_view/literals/types.cc: New file.
11620 * unittests/basic_string_view/literals/values.cc: New file.
11621 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
11622 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
11623 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
11624 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
11625 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
11626 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
11627 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
11628 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
11629 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
11630 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
11631 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
11632 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
11633 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
11634 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
11635 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
11636 * unittests/basic_string_view/operations/data/char/1.cc: New file.
11637 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
11638 * unittests/basic_string_view/operations/find/char/1.cc: New file.
11639 * unittests/basic_string_view/operations/find/char/2.cc: New file.
11640 * unittests/basic_string_view/operations/find/char/3.cc: New file.
11641 * unittests/basic_string_view/operations/find/char/4.cc: New file.
11642 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
11643 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
11644 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
11645 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
11646 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
11647 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
11648 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
11649 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
11650 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
11651 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
11652 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
11653 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
11654 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
11655 * unittests/basic_string_view/operators/char/2.cc: New file.
11656 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
11657 * unittests/basic_string_view/range_access/char/1.cc: New file.
11658 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
11659 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
11660 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
11661 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
11662 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
11663 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
11664 * unittests/basic_string_view/requirements/typedefs.cc: New file.
11665 * unittests/basic_string_view/typedefs.cc: New file.
11666 * unittests/basic_string_view/types/1.cc: New file.
11668 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11670 * common/gdb_string_view.h: Remove libstdc++ implementation
11671 details, adjust to gdb reality.
11672 * common/gdb_string_view.tcc: Likewise.
11673 * cli/cli-script.c (struct string_view): Remove.
11674 (user_args) <m_args>: Change element type to gdb::string_view.
11675 (user_args::insert_args): Adjust.
11677 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11679 * common/gdb_string_view.h: New file.
11680 * common/gdb_string_view.tcc: New file.
11682 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11684 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
11685 * configure: Re-generate.
11687 2018-04-09 Pedro Alves <palves@redhat.com>
11689 * gdbarch.sh: Include "observable.h" instead of "observer.h".
11690 (set_target_gdbarch): Call
11691 gdb::observers::architecture_changed.notify instead of
11692 observer_notify_architecture_changed.
11694 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11696 * tracepoint.c (struct current_traceframe_cleanup): Remove.
11697 (do_restore_current_traceframe_cleanup): Remove.
11698 (restore_current_traceframe_cleanup_dtor): Remove.
11699 (make_cleanup_restore_current_traceframe): Remove.
11700 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
11702 * tracepoint.h (struct scoped_restore_current_traceframe): New.
11703 * infrun.c (fetch_inferior_event): Use
11704 scoped_restore_current_traceframe.
11706 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11708 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
11710 <n_allocated_type_units>: Remove.
11711 <all_type_units>: Change to std::vector.
11712 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11713 to std::vector change.
11714 (dwarf2_per_objfile::get_cutu): Likewise.
11715 (dwarf2_per_objfile::get_tu): Likewise.
11716 (create_signatured_type_table_from_index): Likewise.
11717 (create_signatured_type_table_from_debug_names): Likewise.
11718 (dw2_symtab_iter_next): Likewise.
11719 (dw2_print_stats): Likewise.
11720 (dw2_expand_all_symtabs): Likewise.
11721 (dw2_expand_marked_cus): Likewise.
11722 (dw2_debug_names_iterator::next): Likewise.
11723 (dwarf2_initialize_objfile): Likewise.
11724 (add_signatured_type_cu_to_table): Likewise.
11725 (create_all_type_units): Likewise.
11726 (add_type_unit): Likewise.
11727 (struct tu_abbrev_offset): Add constructor.
11728 (build_type_psymtabs_1): Adjust to std::vector change.
11729 (print_tu_stats): Likewise.
11730 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11731 (write_debug_names): Likewise.
11733 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11735 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
11736 Make an std::vector.
11737 <n_comp_units>: Remove.
11738 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11739 to std::vector change.
11740 (dwarf2_per_objfile::get_cutu): Likewise.
11741 (dwarf2_per_objfile::get_cu): Likewise.
11742 (create_cus_from_index): Likewise.
11743 (create_addrmap_from_index): Likewise.
11744 (create_addrmap_from_aranges): Likewise.
11745 (dwarf2_read_index): Likewise.
11746 (dw2_find_last_source_symtab): Likewise.
11747 (dw2_map_symtabs_matching_filename): Likewise.
11748 (dw2_symtab_iter_next): Likewise.
11749 (dw2_print_stats): Likewise.
11750 (dw2_expand_all_symtabs): Likewise.
11751 (dw2_expand_symtabs_with_fullname): Likewise.
11752 (dw2_expand_marked_cus): Likewise.
11753 (dw2_map_symbol_filenames): Likewise.
11754 (create_cus_from_debug_names): Likewise.
11755 (dwarf2_read_debug_names): Likewise.
11756 (dw2_debug_names_iterator::next): Likewise.
11757 (dwarf2_initialize_objfile): Likewise.
11758 (set_partial_user): Likewise.
11759 (dwarf2_build_psymtabs_hard): Likewise.
11760 (read_comp_units_from_section): Remove arguments, adjust to
11761 std::vector change.
11762 (create_all_comp_units): Adjust to std::vector and
11763 read_comp_units_from_section changes.
11764 (dwarf2_find_containing_comp_unit): Adjust to std::vector
11766 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11767 (psyms_seen_size): Likewise.
11768 (write_gdbindex): Likewise.
11769 (write_debug_names): Likewise.
11771 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11773 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
11774 with dwarf2_per_objfile.
11775 (create_cus_from_index): Likewise.
11776 (create_signatured_type_table_from_index): Likewise.
11777 (dwarf2_read_index): Likewise.
11778 (dwarf2_initialize_objfile): Likewise.
11779 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
11780 per_cu rather than get_dwarf2_per_objfile.
11782 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11784 * dwarf2read.h (struct signatured_type): Forward declare.
11785 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
11787 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
11788 (dw2_get_cutu): ...this.
11789 (dwarf2_per_objfile::get_cu): Rename from...
11790 (dw2_get_cu): ...this.
11791 (dwarf2_per_objfile::get_tu): New.
11792 (create_addrmap_from_index): Adjust.
11793 (create_addrmap_from_aranges): Adjust.
11794 (dw2_find_last_source_symtab): Adjust.
11795 (dw2_map_symtabs_matching_filename): Adjust.
11796 (dw2_symtab_iter_next): Adjust.
11797 (dw2_print_stats): Adjust.
11798 (dw2_expand_all_symtabs): Adjust.
11799 (dw2_expand_symtabs_with_fullname): Adjust.
11800 (dw2_expand_marked_cus): Adjust.
11801 (dw_expand_symtabs_matching_file_matcher): Adjust.
11802 (dw2_map_symbol_filenames): Adjust.
11803 (dw2_debug_names_iterator::next): Adjust.
11804 (dwarf2_initialize_objfile): Adjust.
11805 (set_partial_user): Adjust.
11806 (dwarf2_build_psymtabs_hard): Adjust.
11808 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11810 * dwarf2read.c (create_signatured_type_table_from_debug_names):
11811 Remove unused variables.
11812 (dw2_map_symtabs_matching_filename): Likewise.
11813 (dwarf2_record_block_ranges): Likewise.
11814 (dwarf2_read_addr_index): Likewise.
11815 (follow_die_offset): Likewise.
11817 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11819 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
11820 to symbol_file_add_main.
11822 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11825 * mi/mi-console.c (do_fputc_async_safe): New.
11826 (mi_console_file::write_async_safe): New.
11827 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11828 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11830 * ui-file.c (ui_file::putstrn): Adjust call to
11831 fputstrn_unfiltered.
11832 * utils.c (printchar): Replace do_fputs and do_fprintf
11833 parameters by do_fputc.
11834 (fputstr_filtered): Adjust call to printchar.
11835 (fputstr_unfiltered): Likewise.
11836 (fputstrn_filtered): Likewise.
11837 (fputstrn_unfiltered): Add do_fputc parameter, pass to
11839 * utils.h (do_fputc_ftype): New typedef.
11840 (fputstrn_unfiltered): Add do_fputc parameter.
11842 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11844 * regformats/i386/i386-avx.dat: Remove.
11846 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11849 * amd64-tdep.c (amd64_none_init_abi): New function.
11850 (amd64_x32_none_init_abi): New function.
11851 (_initialize_amd64_tdep): Register handlers for x86-64 and
11852 x64_32 with GDB_OSABI_NONE.
11853 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11854 GDB_OSABI_NONE osabi.
11856 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11859 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11861 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11862 * osabi.c (gdb_osabi_names): Add "unknown" entry.
11864 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11866 * common/byte-vector.h (char_vector): New type.
11867 * target.h (target_read_alloc): Return
11868 gdb::optional<byte_vector>.
11869 (target_read_stralloc): Return gdb::optional<char_vector>.
11870 (target_get_osdata): Return gdb::optional<char_vector>.
11871 * target.c (target_read_alloc_1): Templatize. Replacement
11872 manual memory management with vector.
11873 (target_read_alloc): Change return type, adjust.
11874 (target_read_stralloc): Change return type, adjust.
11875 (target_get_osdata): Change return type, adjust.
11876 * auxv.c (struct auxv_info) <length>: Remove.
11877 <data>: Change type to gdb::optional<byte_vector>.
11878 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11879 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11880 (target_auxv_search): Adjust.
11881 (fprint_target_auxv): Adjust.
11882 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11883 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11884 (linux_make_corefile_notes): Adjust.
11885 * osdata.c (get_osdata): Adjust.
11886 * remote.c (remote_get_threads_with_qxfer): Adjust.
11887 (remote_memory_map): Adjust.
11888 (remote_traceframe_info): Adjust.
11889 (btrace_read_config): Adjust.
11890 (remote_read_btrace): Adjust.
11891 (remote_pid_to_exec_file): Adjust.
11892 * solib-aix.c (solib_aix_get_library_list): Adjust.
11893 * solib-dsbt.c (decode_loadmap): Don't free buf.
11894 (dsbt_get_initial_loadmaps): Adjust.
11895 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11896 * solib-target.c (solib_target_current_sos): Adjust.
11897 * tracepoint.c (sdata_make_value): Adjust.
11898 * xml-support.c (xinclude_start_include): Adjust.
11899 (xml_fetch_content_from_file): Adjust.
11900 * xml-support.h (xml_fetch_another): Change return type.
11901 (xml_fetch_content_from_file): Change return type.
11902 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11903 * xml-tdesc.c (file_read_description_xml): Adjust.
11904 (fetch_available_features_from_target): Change return type.
11905 (target_fetch_description_xml): Adjust.
11906 (target_read_description_xml): Adjust.
11908 2018-04-06 Tom Tromey <tom@tromey.com>
11910 * value.c (~value): Update.
11911 (struct value) <contents>: Now unique_xmalloc_ptr.
11912 (value_contents_bits_eq, allocate_value_contents)
11913 (value_contents_raw, value_contents_all_raw)
11914 (value_contents_for_printing, value_contents_for_printing_const)
11915 (set_value_enclosing_type): Update.
11917 2018-04-06 Tom Tromey <tom@tromey.com>
11919 * value.c (range_s): Remove typedef, VEC.
11920 (struct range): Add operator<.
11921 (range_lessthan): Remove.
11922 (ranges_contain): Change type.
11924 (struct value) <unavailable, optimized_out>: Now std::vector.
11925 (value_entirely_available)
11926 (value_entirely_covered_by_range_vector)
11927 (value_entirely_unavailable, value_entirely_optimized_out):
11929 (insert_into_bit_range_vector): Change argument type.
11930 (find_first_range_overlap): Likewise.
11931 (struct ranges_and_idx, value_contents_bits_eq)
11932 (require_not_optimized_out, require_available): Update.
11933 (ranges_copy_adjusted): Change argument types.
11934 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11936 2018-04-06 Tom Tromey <tom@tromey.com>
11938 * value.c (~value): Update.
11939 (struct value) <parent>: Now a value_ref_ptr.
11940 (value_parent, set_value_parent, value_address, value_copy):
11943 2018-04-06 Tom Tromey <tom@tromey.com>
11945 * value.c (struct value): Add constructor, destructor, and member
11947 (allocate_value_lazy, value_decref): Update.
11949 2018-04-06 Tom Tromey <tom@tromey.com>
11951 * value.c (struct value) <released, next>: Remove.
11952 (all_values): Now a std::vector.
11953 (allocate_value_lazy): Update.
11954 (value_next): Remove.
11955 (value_mark, value_free_to_mark, release_value)
11956 (value_release_to_mark): Update.
11958 2018-04-06 Tom Tromey <tom@tromey.com>
11960 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11961 (free_value_chain): Remove.
11962 * value.c (free_value_chain): Remove.
11963 (value_release_to_mark): Return a std::vector.
11964 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11966 (check_condition): Update.
11967 * eval.c (fetch_subexp_value): Change "val_chain" to a
11969 * breakpoint.c (update_watchpoint): Update.
11970 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11972 2018-04-06 Tom Tromey <tom@tromey.com>
11974 * value.h (free_all_values): Remove.
11975 * value.c (free_all_values): Remove.
11977 2018-04-06 Tom Tromey <tom@tromey.com>
11979 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11980 (value_history_chain, value_history_count): Remove.
11981 (value_history): New global.
11982 (record_latest_value, access_value_history, show_values)
11983 (preserve_values): Update.
11985 2018-04-06 Tom Tromey <tom@tromey.com>
11987 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11988 * varobj.c (varobj_set_display_format, varobj_set_value)
11989 (install_default_visualizer, construct_visualizer)
11990 (install_new_value, ~varobj, varobj_get_value_type)
11991 (my_value_of_variable, varobj_editable_p): Update.
11992 * c-varobj.c (c_describe_child, c_value_of_variable)
11993 (cplus_number_of_children, cplus_describe_child): Update.
11994 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11995 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11996 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11998 2018-04-06 Tom Tromey <tom@tromey.com>
12000 * printcmd.c (last_examine_address): Change type to
12002 (do_examine, x_command): Update.
12004 2018-04-06 Tom Tromey <tom@tromey.com>
12006 * value.c (release_value): Update.
12007 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12008 (struct bpstats) <val>: Now a value_ref_ptr.
12009 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12010 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12011 (~watchpoint, print_it_watchpoint, watch_command_1)
12012 (invalidate_bp_value_on_memory_change): Update.
12014 2018-04-06 Tom Tromey <tom@tromey.com>
12016 * varobj.c (varobj_clear_saved_item)
12017 (update_dynamic_varobj_children, install_new_value, ~varobj):
12019 * value.h (value_incref): Move declaration earlier.
12020 (value_decref): Rename from value_free.
12021 (struct value_ref_policy): New.
12022 (value_ref_ptr): New typedef.
12023 (struct value_deleter): Remove.
12024 (gdb_value_up): Remove typedef.
12025 (release_value): Change return type.
12026 (release_value_or_incref): Remove.
12027 * value.c (set_value_parent): Update.
12028 (value_incref): Change return type.
12029 (value_decref): Rename from value_free.
12030 (value_free_to_mark, free_all_values, free_value_chain): Update.
12031 (release_value): Return value_ref_ptr.
12032 (release_value_or_incref): Remove.
12033 (record_latest_value, set_internalvar, clear_internalvar):
12035 * stack.c (info_frame_command): Don't call value_free.
12036 * python/py-value.c (valpy_dealloc, valpy_new)
12037 (value_to_value_object): Update.
12038 * printcmd.c (do_examine): Update.
12039 * opencl-lang.c (lval_func_free_closure): Update.
12040 * mi/mi-main.c (register_changed_p): Don't call value_free.
12041 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
12042 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
12043 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
12045 * guile/scm-value.c (vlscm_free_value_smob)
12046 (vlscm_scm_from_value): Update.
12047 * frame.c (frame_register_unwind, frame_unwind_register_signed)
12048 (frame_unwind_register_unsigned, get_frame_register_bytes)
12049 (put_frame_register_bytes): Don't call value_free.
12050 * findvar.c (address_from_register): Don't call value_free.
12051 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
12052 * dwarf2loc.c (entry_data_value_free_closure)
12053 (value_of_dwarf_reg_entry, free_pieced_value_closure)
12054 (dwarf2_evaluate_loc_desc_full): Update.
12055 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12056 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12057 (~watchpoint, watch_command_1)
12058 (invalidate_bp_value_on_memory_change): Update.
12059 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
12061 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
12064 * warning.m4: Add -Wno-error=deprecated-register.
12065 * configure: Re-generate.
12067 2018-04-05 Tom Tromey <tom@tromey.com>
12069 * linespec.h: Remove include of "vec.h".
12071 2018-04-05 Tom Tromey <tom@tromey.com>
12073 * linespec.c (typep): Remove typedef.
12074 (find_methods, find_superclass_methods): Take a std::vector.
12075 (find_method): Use std::vector.
12077 2018-04-05 Tom Tromey <tom@tromey.com>
12079 * utils.c (compare_strings): Remove.
12080 * utils.h (compare_strings): Remove.
12081 * objc-lang.h (find_imps): Update.
12082 * objc-lang.c (find_methods): Take a std::vector.
12083 (uniquify_strings, find_imps): Likewise.
12084 * linespec.c (find_methods): Take a std::vector.
12085 (decode_objc): Use std::vector.
12086 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
12088 (find_method, find_function_symbols): Use std::vector.
12090 2018-04-05 Tom Tromey <tom@tromey.com>
12092 * completer.c (completion_tracker::completion_tracker): Remove
12094 (completion_tracker::discard_completions): Likewise.
12095 * breakpoint.c (ambiguous_names_p): Remove cast.
12096 * ada-lang.c (_initialize_ada_language): Remove cast.
12097 * utils.h (streq): Update.
12098 (streq_hash): Add new declaration.
12099 * utils.c (streq): Return bool.
12100 (streq_hash): New function.
12102 2018-04-05 Tom Tromey <tom@tromey.com>
12104 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
12105 Remove a string copy.
12107 2018-04-05 Tom Tromey <tom@tromey.com>
12109 * linespec.c (filter_results): Use std::vector.
12110 (decode_line_2, decode_line_full): Update.
12112 2018-04-05 Tom Tromey <tom@tromey.com>
12114 * linespec.c (canonical_to_fullform): Return std::string.
12115 (filter_results): Update.
12116 (struct decode_line_2_item): Add constructor.
12117 <fullform, displayform>: Now std::string.
12118 (decode_line_2_compare_items): Now a std::sort comparator.
12119 (decode_line_2): Update.
12121 2018-04-05 Tom Tromey <tom@tromey.com>
12123 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
12124 (unexpected_linespec_error): Update.
12125 (linespec_parse_basic, parse_linespec): Update.
12127 2018-04-05 Tom Tromey <tom@tromey.com>
12129 * linespec.c (linespec_parse_basic): Reindent.
12131 2018-04-05 Tom Tromey <tom@tromey.com>
12133 * minsyms.h (iterate_over_minimal_symbols): Update.
12134 * minsyms.c (iterate_over_minimal_symbols): Take a
12135 gdb::function_view.
12136 * linespec.c (struct collect_minsyms): Remove.
12137 (compare_msyms): Now a std::sort comparator.
12138 (add_minsym): Add parameters.
12139 (search_minsyms_for_name): Update. Use std::vector.
12141 2018-04-03 Tom Tromey <tom@tromey.com>
12143 * mipsread.c (read_alphacoff_dynamic_symtab): Use
12146 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12148 * MAINTAINERS (Write After Approval): Add Weimin Pan.
12150 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12153 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
12154 printing static type.
12156 2018-04-01 Tom Tromey <tom@tromey.com>
12158 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
12159 (rs6000_xfer_shared_libraries): Update.
12161 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12163 * common/gdb_vecs.h (char_ptr): Remove.
12164 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
12166 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12168 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
12170 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
12172 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12174 * tracepoint.h (struct uploaded_tp): Initialize fields.
12175 <actions, step_actions, cmd_strings>: Change type to
12176 std::vector<char *>.
12177 * tracepoint.c (get_uploaded_tp): Allocate with new.
12178 (free_uploaded_tps): Free with delete.
12179 (parse_tracepoint_definition): Adjust to std::vector change.
12180 * breakpoint.c (read_uploaded_action): Likewise.
12181 (create_tracepoint_from_upload): Likewise.
12182 * ctf.c (ctf_write_uploaded_tp): Likewise.
12183 (SET_ARRAY_FIELD): Likewise.
12184 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
12186 2018-03-30 Tom Tromey <tom@tromey.com>
12188 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
12190 (svr4_keep_data_in_core): Update.
12191 (svr4_read_so_list): Update.
12193 2018-03-30 Tom Tromey <tom@tromey.com>
12195 * windows-nat.c (handle_output_debug_string, handle_exception):
12197 * target.h (target_read_string): Update.
12198 * target.c (target_read_string): Change "string" to
12199 unique_xmalloc_ptr.
12200 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12202 * solib-frv.c (frv_current_sos): Update.
12203 * solib-dsbt.c (dsbt_current_sos): Update.
12204 * solib-darwin.c (darwin_current_sos): Update.
12205 * linux-thread-db.c (inferior_has_bug): Update.
12206 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12207 Update. Remove alloca.
12208 * ada-lang.c (ada_main_name): Update.
12210 2018-03-30 Tom Tromey <tom@tromey.com>
12212 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12213 (struct dwo_file_deleter): New.
12214 (dwo_file_up): New typedef.
12215 (open_and_init_dwo_file): Use dwo_file_up.
12216 (free_dwo_file_cleanup): Remove.
12218 2018-03-30 Tom Tromey <tom@tromey.com>
12220 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12221 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12223 2018-03-30 Tom Tromey <tom@tromey.com>
12225 * dwarf2read.c (class free_cached_comp_units): New class.
12226 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12227 (free_cached_comp_units): Remove function.
12229 2018-03-30 Tom Tromey <tom@tromey.com>
12231 * utils.h (make_cleanup_unpush_target): Remove.
12232 * inf-ptrace.c (struct target_unpusher): New.
12233 (target_unpush_up) New typedef.
12234 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12236 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12238 2018-03-27 Tom Tromey <tom@tromey.com>
12240 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12242 2018-03-27 Pedro Alves <palves@redhat.com>
12243 Tom Tromey <tom@tromey.com>
12245 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12246 destructor. Now a class.
12247 (gdb_readline_wrapper_cleanup): Remove function.
12248 (gdb_readline_wrapper): Remove cleanups.
12250 2018-03-27 Tom Tromey <tom@tromey.com>
12252 * typeprint.h (struct type_print_options) <local_typedefs,
12253 global_typedefs>: Remove "struct" keyword.
12254 (class typedef_hash_table): New class.
12255 (recursively_update_typedef_hash, add_template_parameters)
12256 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
12257 (find_typedef_in_hash): Don't declare.
12258 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
12259 (typedef_hash_table::recursively_update): Rename from
12260 recursively_update_typedef_hash. Now a member.
12261 (typedef_hash_table::add_template_parameters): Rename from
12262 add_template_parameters. Now a member.
12263 (typedef_hash_table::typedef_hash_table): Now a constructor;
12264 rename from create_typedef_hash.
12265 (typedef_hash_table::~typedef_hash_table): Now a destructor;
12266 rename from free_typedef_hash.
12267 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
12268 (do_free_global_table): Remove.
12269 (typedef_hash_table::typedef_hash_table): New constructor; renamed
12270 from copy_type_recursive.
12271 (create_global_typedef_table): Remove.
12272 (typedef_hash_table::find_global_typedef): Now a member of
12273 typedef_hash_table.
12274 (typedef_hash_table::find_typedef): Rename from
12275 find_typedef_in_hash; now a member.
12276 (whatis_exp): Update.
12277 * extension.h (struct ext_lang_type_printers): Add constructor and
12279 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
12281 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
12282 Now a constructor; rename from start_ext_lang_type_printers.
12283 (ext_lang_type_printers): Now a destructor; rename from
12284 free_ext_lang_type_printers.
12285 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
12287 (c_type_print_base_struct_union): Update. Remove cleanups.
12289 2018-03-27 Tom Tromey <tom@tromey.com>
12291 * dwarf-index-write.c: Include <cmath>.
12293 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12295 * NEWS: Add entry describing new "set|show varsize-limit" command.
12296 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
12298 * printcmd.c (_initialize_printcmd): Add "set var" alias of
12301 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
12303 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
12304 dwarf-index-write.c
12305 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
12306 * dwarf-index-common.c: New file.
12307 * dwarf-index-common.h: New file.
12308 * dwarf-index-write.c: New file.
12309 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
12310 (struct dwarf2_section_info): Move from here.
12311 (dwarf2_section_info_def): Likewise.
12312 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
12313 (offset_type): Likewise.
12314 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
12315 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
12316 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
12317 (byte_swap): Likewise.
12318 (MAYBE_SWAP): Likewise.
12319 (dwarf2_per_cu_ptr): Likewise.
12320 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
12321 (struct tu_stats): Likewise.
12322 (struct dwarf2_per_objfile): Likewise.
12323 (struct dwarf2_per_cu_data): Likewise.
12324 (struct signatured_type): Likewise.
12325 (sig_type_ptr): Likewise.
12326 (DEF_VEC_P (sig_type_ptr)): Likewise.
12327 (INDEX4_SUFFIX): Likewise.
12328 (INDEX5_SUFFIX): Likewise.
12329 (DEBUG_STR_SUFFIX): Likewise.
12330 (dwarf2_read_section): Make non-static.
12331 (mapped_index_string_hash): Move from here.
12332 (dwarf5_djb_hash): Likewise.
12333 (file_write): Likewise.
12334 (class data_buf): Likewise.
12335 (struct symtab_index_entry): Likewise.
12336 (struct mapped_symtab): Likewise.
12337 (find_slot): Likewise.
12338 (hash_expand): Likewise.
12339 (add_index_entry): Likewise.
12340 (uniquify_cu_indices): Likewise.
12341 (class c_str_view): Likewise.
12342 (class c_str_view_hasher): Likewise.
12343 (class vector_hasher): Likewise.
12344 (write_hash_table): Likewise.
12345 (psym_index_map): Likewise.
12346 (struct addrmap_index_data): Likewise.
12347 (add_address_entry): Likewise.
12348 (add_address_entry_worker): Likewise.
12349 (write_address_map): Likewise.
12350 (symbol_kind): Likewise.
12351 (write_psymbols): Likewise.
12352 (struct signatured_type_index_data): Likewise.
12353 (write_one_signatured_type): Likewise.
12354 (recursively_count_psymbols): Likewise.
12355 (recursively_write_psymbols): Likewise.
12356 (class debug_names): Likewise.
12357 (check_dwarf64_offsets): Likewise.
12358 (psyms_seen_size): Likewise.
12359 (write_gdbindex): Likewise.
12360 (write_debug_names): Likewise.
12361 (assert_file_size): Likewise.
12362 (write_psymtabs_to_index): Likewise.
12363 (save_gdb_index_command): Likewise.
12364 (_initialize_dwarf2_read): Don't register the "save gdb-index"
12366 * dwarf2read.h: New file.
12368 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12371 * dwarf2read.c (dwarf2_physname): Do not return the demangled
12372 symbol name if the CU's language stores symbol names in linkage
12374 * language.h (struct language_defn)
12375 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
12376 all instances of this struct.
12378 2018-03-26 Tom Tromey <tom@tromey.com>
12380 * stack.c (backtrace_command_1): Remove verbose code.
12382 2018-03-26 Tom Tromey <tom@tromey.com>
12384 * python/py-framefilter.c (py_print_type): Don't catch
12385 exceptions. Return void.
12386 (py_print_value): Likewise.
12387 (py_print_single_arg): Likewise.
12388 (enumerate_args): Don't catch exceptions.
12389 (py_print_args): Likewise.
12390 (py_print_frame): Likewise.
12391 (gdbpy_apply_frame_filter): Catch exceptions here.
12393 2018-03-26 Tom Tromey <tom@tromey.com>
12395 * stack.c (_initialize_stack): Remove trailing newlines from help
12396 text. Add "Usage" line to "backtrace" help.
12398 2018-03-26 Tom Tromey <tom@tromey.com>
12401 * python/py-framefilter.c (py_print_args): Call wrap_hint.
12403 2018-03-26 Tom Tromey <tom@tromey.com>
12405 * python/py-framefilter.c (py_print_single_arg): Return
12406 EXT_LANG_BT_ERROR from catch.
12408 2018-03-26 Tom Tromey <tom@tromey.com>
12410 PR backtrace/15584:
12411 * stack.c (backtrace_command_1): Move some code into no-filters
12414 2018-03-26 Tom Tromey <tom@tromey.com>
12416 * python/py-framefilter.c (throw_quit_or_print_exception): New
12418 (gdbpy_apply_frame_filter): Use it.
12420 2018-03-26 Tom Tromey <tom@tromey.com>
12423 * python/py-framefilter.c (py_print_type, py_print_value)
12424 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12427 2018-03-26 Tom Tromey <tom@tromey.com>
12429 * python/py-framefilter.c (enumerate_args): Use
12430 gdb::unique_xmalloc_ptr.
12432 2018-03-26 Tom Tromey <tom@tromey.com>
12434 * python/py-framefilter.c (py_print_frame): Return
12436 (gdbpy_apply_frame_filter): Update comment.
12437 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12439 <EXT_LANG_BT_NO_FILTERS>: Change value.
12441 2018-03-26 Tom Tromey <tom@tromey.com>
12443 PR backtrace/15582:
12444 * stack.c (backtrace_command): Parse "hide" argument.
12445 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12446 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12449 2018-03-26 Tom Tromey <tom@tromey.com>
12451 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12453 (backtrace_command): Remove "fulltrace", add "flags".
12455 2018-03-26 Tom Tromey <tom@tromey.com>
12457 * stack.c (backtrace_command): Rewrite command line parsing.
12459 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12461 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12463 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12465 * filename-seen-cache.h: Add include guard.
12467 2018-03-26 Keith Seitz <keiths@redhat.com>
12469 * symfile.c (place_section): Remove "struct" from section_addr_info
12471 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
12472 "struct" keyword from section_addr_info.
12474 2018-03-26 Alan Hayward <alan.hayward@arm.com>
12476 * regformats/regdef.h (reg): Add constructors.
12478 2018-03-25 Pedro Alves <palves@redhat.com>
12480 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
12481 if then/else bodies in var_func_name extraction.
12483 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
12485 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
12486 lookup_minimal_symbol() to find symbol entry.
12487 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
12489 2018-03-23 Keith Seitz <keiths@redhat.com>
12492 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
12493 nested type definitions for C++, too.
12495 2018-03-23 Tom Tromey <tom@tromey.com>
12497 * machoread.c (struct oso_el): Add a constructor. Don't define as
12499 (macho_register_oso): Remove.
12500 (macho_symtab_read): Take a std::vector.
12501 (oso_el_compare_name): Now a std::sort comparator.
12502 (macho_symfile_read_all_oso): Take a std::vector.
12503 (macho_symfile_read): Use std::vector. Remove cleanups.
12505 2018-03-22 Tom Tromey <tom@tromey.com>
12507 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
12508 (record_full_goto_bookmark): Use std::string.
12510 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12513 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
12516 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12518 * rs6000-tdep.c (store_insn_p): New function.
12519 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
12520 and cr_reg to their unshifted values. Use store_insn_p to
12521 match LR saves using either R1 or fdata->alloca_reg. Use
12522 store_insn_p to match CR saves. Set alloca_reg_offset
12523 when alloca_reg and framep are set. Remove lr_reg shift
12524 when assigning to fdata->lr_register.
12526 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
12528 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
12529 command line args instead of emitting a warning.
12531 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12533 * tracepoint.h (struct static_tracepoint_marker): Initialize
12534 fields, define default constructor, move constructor and move
12535 assignment, disable the rest.
12536 <str_id, extra>: Make std::string.
12537 (release_static_tracepoint_marker): Remove.
12538 (free_current_marker): Remove.
12539 * tracepoint.c (free_current_marker): Remove.
12540 (parse_static_tracepoint_marker_definition): Adjust to
12541 std::string, use new hex2str overload.
12542 (release_static_tracepoint_marker): Remove.
12543 (print_one_static_tracepoint_marker): Get marker by reference
12544 and adjust to std::string.
12545 (info_static_tracepoint_markers_command): Adjust to std::vector
12547 * target.h (static_tracepoint_marker_p): Remove typedef.
12548 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
12549 (struct target_ops) <to_static_tracepoint_marker_at>: Return
12551 <to_static_tracepoint_markers_by_strid>: Return std::vector.
12553 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
12554 (target_debug_print_std_vector_static_tracepoint_marker): New.
12555 (target_debug_print_struct_static_tracepoint_marker_p): Rename
12557 (target_debug_print_static_tracepoint_marker_p): ... this.
12558 * target-delegates.c: Re-generate.
12559 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
12561 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
12562 (decode_static_tracepoint_spec): Adjust to std::vector.
12563 (tracepoint_print_one_detail): Adjust to std::string.
12564 (strace_marker_decode_location): Adjust to std::string.
12565 (update_static_tracepoint): Adjust to std::string, remove call
12566 to release_static_tracepoint_marker.
12567 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
12568 Adjust to std::vector.
12569 * remote.c (remote_static_tracepoint_marker_at): Return bool.
12570 (remote_static_tracepoint_markers_by_strid): Adjust to
12572 * common/rsp-low.h (hex2str): New overload with explicit count
12574 * common/rsp-low.c (hex2str): New overload with explicit count
12576 * unittests/rsp-low-selftests.c (test_hex2str): New function.
12577 (_initialize_rsp_low_selftests): Add test_hex2str test.
12578 * unittests/tracepoint-selftests.c
12579 (test_parse_static_tracepoint_marker_definition): Adjust to
12582 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12584 * tracepoint.c (parse_static_tracepoint_marker_definition):
12585 Consider case where the definition is followed by more
12587 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12588 tracepoint-selftests.c.
12589 * unittests/tracepoint-selftests.c: New.
12591 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12593 * MAINTAINERS (Write After Approval): Add Pedro Franco de
12596 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
12598 * symtab.c (find_pc_sect_line): fixed indentation.
12600 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
12602 * symtab.c (find_pc_sect_line): now uses binary search.
12604 2018-03-19 Tom Tromey <tom@tromey.com>
12606 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
12607 "IDENT" production.
12609 2018-03-19 Pedro Alves <palves@redhat.com>
12610 Tom Tromey <tom@tromey.com>
12612 * unittests/observable-selftests.c: New file.
12613 * common/observable.h: New file.
12614 * observable.h: New file.
12615 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
12616 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
12617 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
12618 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
12619 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
12620 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
12621 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
12622 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
12623 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
12624 python/py-breakpoint.c, python/py-finishbreakpoint.c,
12625 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
12626 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
12627 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
12628 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
12629 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
12630 tui/tui-interp.c, valops.c: Update all users.
12631 * tui/tui-hooks.c (tui_bp_created_observer)
12632 (tui_bp_deleted_observer, tui_bp_modified_observer)
12633 (tui_inferior_exit_observer, tui_before_prompt_observer)
12634 (tui_normal_stop_observer, tui_register_changed_observer):
12636 (tui_observers_token): New global.
12637 (attach_or_detach, tui_attach_detach_observers): New functions.
12638 (tui_install_hooks, tui_remove_hooks): Use
12639 tui_attach_detach_observers.
12640 * record-btrace.c (record_btrace_thread_observer): Remove.
12641 (record_btrace_thread_observer_token): New global.
12642 * observer.sh: Remove.
12643 * observer.c: Rename to observable.c.
12644 * observable.c (namespace gdb_observers): Define new objects.
12645 (observer_debug): Move into gdb_observers namespace.
12646 (struct observer, struct observer_list, xalloc_observer_list_node)
12647 (xfree_observer_list_node, generic_observer_attach)
12648 (generic_observer_detach, generic_observer_notify): Remove.
12649 (_initialize_observer): Update.
12650 Don't include observer.inc.
12651 * Makefile.in (generated_files): Remove observer.h, observer.inc.
12652 (clean mostlyclean): Likewise.
12653 (observer.h, observer.inc): Remove targets.
12654 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
12655 (COMMON_SFILES): Use observable.c, not observer.c.
12656 * .gitignore: Remove observer.h.
12658 2018-03-18 Tom Tromey <tom@tromey.com>
12660 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
12662 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
12664 2018-03-17 Tom Tromey <tom@tromey.com>
12666 * auto-load.c (auto_load_objfile_script_1): Use std::string.
12668 2018-03-17 Tom Tromey <tom@tromey.com>
12670 * target.c (class scoped_target_fd): New.
12671 (target_fileio_close_cleanup): Remove.
12672 (target_fileio_read_alloc_1): Use scoped_target_fd.
12674 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
12676 * silent-rules.mk: New.
12677 * Makefile.in: Include silent-rules.mk
12678 (srcdir, VPATH, top_srcdir): Move up.
12679 (COMPILE): Add ECHO_CXX.
12680 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
12681 (init.c): Add ECHO_INIT_C.
12682 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
12683 (version.c): Add ECHO_GEN.
12684 (printcmd.o): Add ECHO_CXX.
12685 (target-float.o): Add ECHO_CXX.
12686 (ada-exp.o): Add ECHO_CXX.
12687 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
12688 (insight$(EXEEXT)): Add ECHO_CXXLD.
12689 * gnulib/configure.ac: Add AM_SILENT_RULES.
12690 * gnulib/aclocal.m4: Re-generate.
12691 * gnulib/configure: Re-generate.
12692 * gnulib/import/Makefile.in: Re-generate.
12694 2018-03-16 Tom Tromey <tom@tromey.com>
12696 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
12697 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
12698 * utils.c (do_free_section_addr_info)
12699 (make_cleanup_free_section_addr_info): Remove.
12700 * symfile.h (struct other_sections): Add constructor.
12701 (struct section_addr_info): Remove.
12702 (section_addr_info): New typedef.
12703 (struct sym_fns) <sym_offsets>: Change type of parameter.
12704 (build_section_addr_info_from_objfile)
12705 (relative_addr_info_to_section_offsets, addr_info_make_relative)
12706 (default_symfile_offsets, symbol_file_add)
12707 (symbol_file_add_from_bfd)
12708 (build_section_addr_info_from_section_table): Update.
12709 (alloc_section_addr_info, free_section_addr_info): Don't declare.
12710 * symfile.c (alloc_section_addr_info): Remove.
12711 (build_section_addr_info_from_section_table): Change return type.
12713 (build_section_addr_info_from_bfd)
12714 (build_section_addr_info_from_objfile): Likewise.
12715 (free_section_addr_info): Remove.
12716 (relative_addr_info_to_section_offsets): Change type of "addrs".
12717 (addrs_section_compar): Now a std::sort comparator.
12718 (addrs_section_sort): Change return type.
12719 (addr_info_make_relative): Change type of "addrs". Update.
12720 (default_symfile_offsets, syms_from_objfile_1)
12721 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
12722 (symbol_file_add_separate): Update.
12723 (symbol_file_add): Change type of "addrs". Update.
12724 (add_symbol_file_command): Update. Remove cleanups.
12725 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
12727 * symfile-debug.c (debug_sym_offsets): Change type of "info".
12728 * solib.c (solib_read_symbols): Update.
12729 * objfiles.c (objfile_relocate): Update. Remove cleanups.
12730 * machoread.c (macho_symfile_offsets): Update.
12731 * jit.c (jit_bfd_try_read_symtab): Update.
12733 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
12735 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12736 unittests/utils-selftests.c.
12737 * unittests/utils-selftests.c: New file.
12739 2018-03-14 Tom Tromey <tom@tromey.com>
12742 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
12745 2018-03-14 Tom Tromey <tom@tromey.com>
12748 * printcmd.c (printf_pointer): Allow "-" in format.
12750 2018-03-14 Tom Tromey <tom@tromey.com>
12752 * printcmd.c (_initialize_printcmd): Add usage to printf.
12754 2018-03-14 Yao Qi <qiyao@sourceware.org>
12756 * MAINTAINERS: Update my email address.
12758 2018-03-13 Tom Tromey <tom@tromey.com>
12760 * machoread.c (macho_check_dsym): Change filenamep to a
12762 (macho_symfile_read): Update.
12763 * symfile.c (load_command): Use std::string.
12765 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
12767 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
12768 to error message string.
12769 (riscv_register_name): Use xsnprintf instead of sprintf.
12770 (riscv_insn::fetch_instruction): Use gdb_assert instead of
12772 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
12774 (riscv_push_dummy_call): Likewise.
12776 2018-03-12 Tom Tromey <tom@tromey.com>
12778 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
12779 Use gdb::byte_vector.
12780 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
12782 2018-03-12 Yao Qi <yao.qi@linaro.org>
12784 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
12785 parameter type to readable_regcache.
12786 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
12789 2018-03-11 Tom Tromey <tom@tromey.com>
12791 * dwarf2read.c (struct nextfield): Add initializers.
12792 (struct nextfnfield): Remove.
12793 (struct fnfieldlist): Add initializers. Remove "length" and
12794 "head", use std::vector.
12795 (struct decl_field_list): Remove.
12796 (struct field_info): Add initializers.
12797 <fields, baseclasses>: Now std::vector.
12798 <nbaseclasses, nfnfields, typedef_field_list_count,
12799 nested_types_list_count>: Remove.
12800 (dwarf2_add_field, dwarf2_add_type_defn)
12801 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
12802 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
12803 (process_structure_scope): Update.
12805 2018-03-11 Tom Tromey <tom@tromey.com>
12807 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
12808 for use by std::sort.
12809 (build_type_psymtabs_1): Use std::vector.
12811 2018-03-09 Eli Zaretskii <eliz@gnu.org>
12813 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
12814 and LIBMPFR in the printed configuration.
12816 2018-03-08 Tom Tromey <tom@tromey.com>
12818 * source.c (get_filename_and_charpos): Use scoped_fd.
12819 * nto-procfs.c (procfs_open_1): Use scoped_fd.
12820 (procfs_pidlist): Likewise.
12821 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
12822 (iterate_over_mappings): Likewise.
12824 2018-03-08 Tom Tromey <tom@tromey.com>
12826 * infcall.c (struct call_return_meta_info)
12827 <stack_temporaries_enabled>: Remove.
12828 (get_call_return_value, call_function_by_hand_dummy): Update.
12829 * thread.c (disable_thread_stack_temporaries): Remove.
12830 (enable_thread_stack_temporaries): Remove.
12831 (thread_stack_temporaries_enabled_p): Return bool.
12832 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12833 (get_last_thread_stack_temporary): Update.
12834 * eval.c (evaluate_subexp): Update.
12835 * gdbthread.h (class enable_thread_stack_temporaries): Now a
12836 class, not a function.
12837 (value_ptr, value_vec): Remove typedefs.
12838 (class thread_info) <stack_temporaries_enabled>: Now bool.
12839 <stack_temporaries>: Now a std::vector.
12840 (thread_stack_temporaries_enabled_p)
12841 (value_in_thread_stack_temporaries): Return bool.
12843 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
12845 * remote.c (putpkt_binary): Fix omitted bytes reporting.
12846 (getpkt_or_notif_sane_1): Likewise.
12848 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12850 * build-id.c (build_id_to_debug_bfd): Use std::string.
12852 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12854 * build-id.c (find_separate_debug_file_by_buildid): Return
12856 * build-id.h (find_separate_debug_file_by_buildid): Return
12858 * coffread.c (coff_symfile_read): Adjust to std::string.
12859 * elfread.c (elf_symfile_read): Adjust to std::string.
12860 * symfile.c (separate_debug_file_exists): Change parameter to
12862 (find_separate_debug_file): Return std::string.
12863 (find_separate_debug_file_by_debuglink): Return std::string.
12864 * symfile.h (find_separate_debug_file_by_debuglink): Return
12867 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12869 * common/xml-utils.c (xml_escape_text): Move code to...
12870 (xml_escape_text_append): ... this new function.
12871 * common/xml-utils.h (xml_escape_text_append): New declaration.
12872 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12874 (_initialize_xml_utils): register test_xml_escape_text_append as
12877 2018-03-07 Alan Hayward <alan.hayward@arm.com>
12879 * defs.h: Remove MAX_REGISTER_SIZE.
12880 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12882 * python/py-unwind.c (pyuw_sniffer): Likewise.
12884 2018-03-07 Tom Tromey <tom@tromey.com>
12886 * linux-tdep.c (linux_info_proc): Update.
12887 * target.h (struct target_ops) <to_fileio_readlink>: Return
12889 (target_fileio_readlink): Return optional<string>.
12890 * remote.c (remote_hostio_readlink): Return optional<string>.
12891 * inf-child.c (inf_child_fileio_readlink): Return
12893 * target.c (target_fileio_readlink): Return optional<string>.
12895 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12897 * regcache.c (cooked_read_test): Add riscv to the list of
12898 architectures that have a save_reggroup.
12900 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12902 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12903 value is not a dynamic class object.
12905 2018-03-06 Tom Tromey <tom@tromey.com>
12907 * rust-exp.y: Formatting fixes.
12909 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12911 * riscv-tdep.c (riscv_register_name): Remove target description
12913 (riscv_gdbarch_init): Remove target description check.
12915 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12917 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12919 * riscv-tdep.h: Likewise.
12921 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12923 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12924 (riscv_pseudo_register_write): Delete.
12925 (riscv_gdbarch_init): Remove all use of pseudo registers.
12927 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12929 * record-btrace.c (btrace_print_lines): Replace cleanup
12930 parameter with RAII equivalents.
12931 (btrace_insn_history): Replace cleanup with RAII equivalents.
12932 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12933 make_cleanup_ui_out_tuple_begin_end): Remove.
12934 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12935 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12936 make_cleanup_ui_out_list_begin_end): Remove.
12938 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12940 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12941 parameter types to std::vector. Use bool.
12942 (record_btrace_wait): Replace VEC(tp_t) with
12943 std::vector<thread_info *>.
12944 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12946 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12948 * record-btrace.c (record_btrace_disable_callback): Remove.
12949 (struct scoped_btrace_disable): New.
12950 (record_btrace_open): Use scoped_btrace_disable.
12952 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12954 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12955 reading values from registers.
12957 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12959 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12962 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12964 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12965 change parameter type. Use GDB's print functions, and use
12966 core_addr_to_string where appropriate.
12967 (riscv_push_dummy_call): Use core_addr_to_string where
12968 appropriate, update call to riscv_print_arg_location, and reindent
12970 (riscv_return_value): Update call to riscv_print_arg_location.
12972 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12973 Tim Newsome <tim@sifive.com>
12974 Albert Ou <a0u@eecs.berkeley.edu>
12975 Darius Rad <darius@bluespec.com>
12977 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12978 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12979 (ALLDEPFILES): Add riscv-tdep.c
12980 * configure.tgt: Add riscv support.
12981 * riscv-tdep.c: New file.
12982 * riscv-tdep.h: New file.
12983 * NEWS: Mention new target.
12984 * MAINTAINERS: Add entry for riscv.
12986 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12988 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12989 fields within aggregates.
12991 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12993 * record-btrace.c (btrace_print_lines): Change type of flags to
12994 gdb_disassembly_flags.
12996 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12998 * fbsd-nat.c: Include "inf-ptrace.h".
12999 (USE_SIGTRAP_SIGINFO): Conditionally define.
13000 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
13001 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
13002 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
13004 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
13006 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
13008 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13009 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13010 "supports_stopped_by_hw_breakpoint" target methods.
13012 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13014 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13015 * fbsd-nat.c (debug_fbsd_nat): New variable.
13016 (show_fbsd_nat_debug): New function.
13017 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13018 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13020 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13022 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13023 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13025 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13026 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13029 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13031 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13032 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13034 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13036 * charset.c (struct charset_vector): New.
13037 (charsets): Change type to charset_vector.
13038 (find_charset_names): Adjust.
13040 (_initialize_charset): Adjust.
13042 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13044 * progspace.h (struct program_space) <deleted_solibs>: Change
13045 type to std::vector<std::string>.
13046 * progspace.c (clear_program_space_solib_cache): Adjust.
13047 * breakpoint.c (print_solib_event): Adjust.
13048 (check_status_catch_solib): Adjust.
13049 * solib.c (update_solib_list): Adjust.
13050 * ui-out.h (class ui_out) <field_string>: New overload.
13051 * ui-out.c (ui_out::field_string): New overload.
13053 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13055 * progspace.h (struct program_space): Add constructor and
13056 destructor, initialize fields.
13057 (add_program_space): Remove.
13058 * progspace.c (add_program_space): Rename to...
13059 (program_space::program_space): ... this.
13060 (release_program_space): Rename to...
13061 (program_space::~program_space): ... this.
13062 (delete_program_space): Use delete to delete program_space.
13063 (initialize_progspace): Use new to allocate program_space.
13064 * inferior.c (add_inferior_with_spaces): Likewise.
13065 (clone_inferior_command): Likewise.
13066 * infrun.c (follow_fork_inferior): Likewise.
13067 (handle_vfork_child_exec_or_exit): Likewise.
13069 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13071 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
13072 (delim_string_to_char_ptr_vec): Return std::vector of
13073 gdb::unique_xmalloc_ptr.
13074 (dirnames_to_char_ptr_vec_append): Take std::vector of
13075 gdb::unique_xmalloc_ptr.
13076 (dirnames_to_char_ptr_vec): Return std::vector of
13077 gdb::unique_xmalloc_ptr.
13078 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
13079 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
13080 (delim_string_to_char_ptr_vec): Return an std::vector of
13081 gdb::unique_xmalloc_ptr, adjust the code.
13082 (dirnames_to_char_ptr_vec_append): Take an std::vector of
13083 gdb::unique_xmalloc_ptr, adjust the code.
13084 (dirnames_to_char_ptr_vec): Return an std::vector of
13085 gdb::unique_xmalloc_ptr, adjust the code.
13086 * auto-load.c (auto_load_safe_path_vec): Change type to
13087 std::vector of gdb::unique_xmalloc_ptr.
13088 (auto_load_expand_dir_vars): Return an std::vector of
13089 gdb::unique_xmalloc_ptr, adjust the code.
13090 (auto_load_safe_path_vec_update): Adjust.
13091 (filename_is_in_auto_load_safe_path_vec): Adjust.
13092 (auto_load_objfile_script_1): Adjust.
13093 * build-id.c (build_id_to_debug_bfd): Adjust.
13094 * linux-thread-db.c (thread_db_load_search): Adjust.
13095 * source.c (add_path): Adjust.
13097 * symfile.c (find_separate_debug_file): Adjust.
13098 * utils.c (do_free_char_ptr_vec): Remove.
13099 (make_cleanup_free_char_ptr_vec): Remove.
13101 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
13104 * common/pathstuff.c: Conditionally include "<windows.h>".
13106 2018-03-01 Georg Sauthoff <mail@georg.so>
13109 * gcore.in: Quote variables and switch interpreter to bash.
13111 2018-03-01 Tom Tromey <tom@tromey.com>
13113 * dwarf2read.c (alloc_discriminant_info): Fix default_index
13114 assertion. Add assertion for discriminant_index.
13115 (quirk_rust_enum): Use correct base type name in univariant case.
13117 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
13119 * record.c (get_call_history_modifiers): Return a
13120 record_print_flags.
13121 (cmd_record_call_history): Adjust.
13122 * record-btrace.c (record_btrace_call_history): Adjust.
13123 (record_btrace_call_history_range): Adjust.
13124 (record_btrace_call_history_from): Adjust.
13125 * target-debug.h (target_debug_print_record_print_flags): New.
13126 * target-delegates.c: Re-generate.
13127 * target.c (target_call_history): Change flags type.
13128 (target_call_history_from): Likewise.
13129 (target_call_history_range): Likewise.
13130 * target.h (struct target_ops) <target_call_history>: Likewise.
13131 (target_call_history_from): Likewise.
13132 (target_call_history_range): Likewise.
13134 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13135 Simon Marchi <simon.marchi@polymtl.ca>
13137 * common/common-utils.c: Include "sys/stat.h".
13138 (is_regular_file): Move here from "source.c"; change return
13140 * common/common-utils.h (is_regular_file): New prototype.
13141 * common/pathstuff.c (contains_dir_separator): New function.
13142 * common/pathstuff.h (contains_dir_separator): New prototype.
13143 * source.c: Don't include "sys/stat.h".
13144 (is_regular_file): Move to "common/common-utils.c".
13146 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13148 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
13149 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
13150 * auto-load.c: Include "common/pathstuff.h".
13151 * common/common-def.h (current_directory): Move here.
13152 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
13154 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
13156 * common/pathstuff.c: New file.
13157 * common/pathstuff.h: New file.
13158 * compile/compile.c: Include "common/pathstuff.h".
13159 * defs.h (current_directory): Move to "common/common-defs.h".
13160 * dwarf2read.c: Include "common/pathstuff.h".
13161 * exec.c: Likewise.
13162 * guile/scm-safe-call.c: Likewise.
13163 * linux-thread-db.c: Likewise.
13164 * main.c: Likewise.
13165 * nto-tdep.c: Likewise.
13166 * objfiles.c: Likewise.
13167 * source.c: Likewise.
13168 * symtab.c: Likewise.
13169 * utils.c: Include "common/pathstuff.h".
13170 (gdb_realpath): Move to "common/pathstuff.c".
13171 (gdb_realpath_keepfile): Likewise.
13172 (gdb_abspath): Likewise.
13173 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
13174 (gdb_realpath_keepfile): Likewise.
13175 (gdb_abspath): Likewise.
13177 2018-02-28 John Baldwin <jhb@FreeBSD.org>
13179 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
13180 wildcard process pid for super_resume for kernels with a
13183 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
13185 * compile/compile.c (get_args): Add additional comments
13186 explaining function.
13188 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
13189 Tom Tromey <tom@tromey.com>
13191 * target.h (memory_write_request_s): Remove typedef. Don't define
13193 (target_write_memory_blocks): Change argument to std::vector.
13194 (struct memory_write_request): Add constructor.
13195 * target-memory.c (compare_block_starting_address): Return bool.
13196 Change argument types.
13197 (claim_memory): Change arguments to use std::vector.
13198 (split_regular_and_flash_blocks, blocks_to_erase)
13199 (compute_garbled_blocks): Likewise.
13200 (cleanup_request_data, cleanup_write_requests_vector): Remove.
13201 (target_write_memory_blocks): Change argument to std::vector.
13202 * symfile.c (struct load_section_data): Add constructor and
13203 destructor. Use std::vector for "requests".
13204 (struct load_progress_data): Add initializers.
13205 (load_section_callback): Update. Use "new".
13206 (clear_memory_write_data): Remove.
13207 (generic_load): Update.
13209 2018-02-27 Alan Hayward <alan.hayward@arm.com>
13211 * arch/aarch64.h: Use common/tdesc.h.
13213 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13215 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13216 architecture with a 64-bit ABI.
13218 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13220 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13221 ahead of target description loading.
13223 2018-02-26 Tom Tromey <tom@tromey.com>
13225 * stack.c (backtrace_command_1): Update.
13226 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13228 * python/py-framefilter.c (py_print_frame)
13229 (gdbpy_apply_frame_filter): Change type of "flags".
13230 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13232 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13233 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13234 * extension.h (enum frame_filter_flag): Rename from
13235 frame_filter_flags.
13236 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13237 (apply_ext_lang_frame_filter): Change type of "flags".
13238 * extension.c (apply_ext_lang_frame_filter): Change type of
13240 * extension-priv.h (struct extension_language_ops)
13241 <apply_frame_filter>: Change type of "flags".
13243 2018-02-26 Tom Tromey <tom@tromey.com>
13246 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
13247 off-by-one in py_end computation.
13248 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13250 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
13253 2018-02-26 Tom Tromey <tom@tromey.com>
13255 * dwarf2read.c (struct variant_field): New.
13256 (struct nextfield) <variant>: New field.
13257 (dwarf2_add_field): Handle DW_TAG_variant_part.
13258 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
13259 discriminated union.
13260 (read_structure_type): Handle DW_TAG_variant_part.
13261 (handle_struct_member_die): New function, extracted from
13262 process_structure_scope. Handle DW_TAG_variant.
13263 (process_structure_scope): Handle discriminated unions. Call
13264 handle_struct_member_die.
13266 2018-02-26 Tom Tromey <tom@tromey.com>
13268 * rust-lang.h (rust_last_path_segment): Declare.
13269 * rust-lang.c (rust_last_path_segment): Now public. Change
13271 (struct disr_info): Remove.
13272 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
13273 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
13274 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
13275 (rust_enum_p, rust_enum_variant): New function.
13276 (rust_underscore_fields): Remove "offset" parameter.
13277 (rust_print_enum): New function.
13278 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
13279 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
13280 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
13282 (rust_internal_print_type): New function, from rust_print_type.
13284 (rust_print_type): Call rust_internal_print_type.
13285 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
13286 Update enum handling.
13287 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
13288 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
13289 (rust_union_quirks): New functions.
13290 (process_full_comp_unit, process_full_type_unit): Call
13292 (process_structure_scope): Update rust_unions if necessary.
13294 2018-02-26 Tom Tromey <tom@tromey.com>
13296 * value.h (value_union_variant): Declare.
13297 * valops.c (value_union_variant): New function.
13298 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
13299 (struct discriminant_info): New.
13300 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
13302 (struct main_type) <flag_discriminated_union>: New field.
13304 2018-02-26 Tom Tromey <tom@tromey.com>
13306 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13307 unittests/unpack-selftests.c.
13308 * unittests/unpack-selftests.c: New file.
13309 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
13311 2018-02-26 Yao Qi <yao.qi@linaro.org>
13313 * dwarf2read.c (struct partial_die_info) <read>: New method.
13314 (read_partial_die): Remove the declaration.
13315 (load_partial_dies): Update.
13316 (partial_die_info::partial_die_info):
13317 (read_partial_die): Change it to partial_die_info::read.
13319 2018-02-26 Yao Qi <yao.qi@linaro.org>
13321 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
13322 (fixup_partial_die): Remove declaration.
13323 (scan_partial_symbols): Update.
13324 (partial_die_parent_scope): Likewise.
13325 (partial_die_full_name): Likewise.
13326 (fixup_partial_die): Change it to partial_die_info::fixup.
13328 2018-02-26 Yao Qi <yao.qi@linaro.org>
13330 * dwarf2read.c (read_partial_die): Update the declaration.
13331 (load_partial_dies): Caller update.
13332 (read_partial_die): Remove one argument abbrev_len.
13334 2018-02-26 Yao Qi <yao.qi@linaro.org>
13336 * dwarf2read.c (struct partial_die_info): Add ctor, delete
13337 assignment operator.
13338 (load_partial_dies): Use ctor and copy ctor.
13339 (read_partial_die): Update.
13340 (dwarf2_cu::find_partial_die): Use ctor.
13342 2018-02-26 Yao Qi <yao.qi@linaro.org>
13344 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
13345 (find_partial_die_in_comp_unit): Change it to
13346 dwarf2_cu::find_partial_die.
13347 (find_partial_die): Update.
13349 2018-02-26 Yao Qi <yao.qi@linaro.org>
13351 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13354 2018-02-26 Yao Qi <yao.qi@linaro.org>
13356 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13358 2018-02-26 Alan Hayward <alan.hayward@arm.com>
13360 * arch/amd64.h: Use common/tdesc.h.
13361 * arch/i386.c: Likewise.
13362 * arch/i386.h: Likewise.
13363 * arch/tic6x.c: Likewise.
13364 * arch/tdesc.h: Move file from here...
13365 * common/tdesc.h: ...to here.
13366 * features/aarch64-core.c: Regenerate.
13367 * features/aarch64-fpu.c: Regenerate.
13368 * features/i386/32bit-avx.c: Regenerate.
13369 * features/i386/32bit-avx512.c: Regenerate.
13370 * features/i386/32bit-core.c: Regenerate.
13371 * features/i386/32bit-linux.c: Regenerate.
13372 * features/i386/32bit-mpx.c: Regenerate.
13373 * features/i386/32bit-pkeys.c: Regenerate.
13374 * features/i386/32bit-sse.c: Regenerate.
13375 * features/i386/64bit-avx.c: Regenerate.
13376 * features/i386/64bit-avx512.c: Regenerate.
13377 * features/i386/64bit-core.c: Regenerate.
13378 * features/i386/64bit-linux.c: Regenerate.
13379 * features/i386/64bit-mpx.c: Regenerate.
13380 * features/i386/64bit-pkeys.c: Regenerate.
13381 * features/i386/64bit-segments.c: Regenerate.
13382 * features/i386/64bit-sse.c: Regenerate.
13383 * features/i386/x32-core.c: Regenerate.
13384 * features/tic6x-c6xp.c: Regenerate.
13385 * features/tic6x-core.c: Regenerate.
13386 * features/tic6x-gp.c: Regenerate.
13387 * target-descriptions.c: Use common/tdesc.h.
13388 * target-descriptions.h: Likewise.
13390 2018-02-24 Tom Tromey <tom@tromey.com>
13392 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13393 (try_thread_db_load_from_dir, thread_db_load_search): Use
13395 (info_auto_load_libthread_db_compare): Return bool. Change
13397 (info_auto_load_libthread_db): Use std::vector, std::string.
13400 2018-02-24 Tom Tromey <tom@tromey.com>
13402 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13404 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13406 * gdbarch.c: Rebuild.
13407 * gdbarch.h: Rebuild.
13408 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13409 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13410 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13413 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
13415 * gdbtypes.h (sect_offset): Change type to uint64_t.
13416 (sect_offset_str): New function.
13417 * dwarf2read.c (create_addrmap_from_aranges): Use
13419 (error_check_comp_unit_head): Likewise.
13420 (create_debug_type_hash_table): Likewise.
13421 (read_cutu_die_from_dwo): Likewise.
13422 (init_cutu_and_read_dies): Likewise.
13423 (init_cutu_and_read_dies_no_follow): Likewise.
13424 (process_psymtab_comp_unit_reader): Likewise.
13425 (partial_die_parent_scope): Likewise.
13426 (peek_die_abbrev): Likewise.
13427 (process_queue): Likewise.
13428 (dwarf2_physname): Likewise.
13429 (read_namespace_alias): Likewise.
13430 (read_import_statement): Likewise.
13431 (create_dwo_cu_reader): Likewise.
13432 (create_cus_hash_table): Likewise.
13433 (lookup_dwo_cutu): Likewise.
13434 (inherit_abstract_dies): Likewise.
13435 (read_func_scope): Likewise.
13436 (read_call_site_scope): Likewise.
13437 (dwarf2_add_member_fn): Likewise.
13438 (read_common_block): Likewise.
13439 (read_module_type): Likewise.
13440 (read_typedef): Likewise.
13441 (read_subrange_type): Likewise.
13442 (load_partial_dies): Likewise.
13443 (read_partial_die): Likewise.
13444 (find_partial_die): Likewise.
13445 (read_str_index): Likewise.
13446 (dwarf2_string_attr): Likewise.
13447 (build_error_marker_type): Likewise.
13448 (lookup_die_type): Likewise.
13449 (dump_die_shallow): Likewise.
13450 (follow_die_ref): Likewise.
13451 (dwarf2_fetch_die_loc_sect_off): Likewise.
13452 (dwarf2_fetch_constant_bytes): Likewise.
13453 (follow_die_sig): Likewise.
13454 (get_signatured_type): Likewise.
13455 (get_DW_AT_signature_type): Likewise.
13456 (dwarf2_find_containing_comp_unit): Likewise.
13457 (set_die_type): Likewise.
13459 2018-02-21 John Baldwin <jhb@FreeBSD.org>
13461 * arch/aarch64.c: Include "common-defs.h".
13462 * arch/amd64.c: Likewise.
13463 * arch/i386.c: Likewise.
13465 2018-02-21 Tom Tromey <tom@tromey.com>
13467 * value.h: (extract_field_op): Update.
13468 * eval.c (extract_field_op): Return a const char *.
13469 * expression.h (parse_expression_for_completion): Update.
13470 * completer.c (complete_expression): Update.
13471 (add_struct_fields): Make fieldname const.
13472 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
13473 (mark_completion_tag, parse_exp_in_context_1): Update.
13474 (parse_expression_for_completion): Change "name" to
13475 unique_xmalloc_ptr*.
13477 2018-02-21 Tom Tromey <tom@tromey.com>
13479 * infcall.c (call_function_by_hand_dummy): Use std::vector.
13481 2018-02-21 Yao Qi <yao.qi@linaro.org>
13483 * avr-tdep.c (avr_read_pc): Change parameter type to
13485 * gdbarch.sh (read_pc): Likewise.
13486 * gdbarch.c: Re-generated.
13487 * gdbarch.h: Re-generated.
13488 * hppa-tdep.c (hppa_read_pc): Change parameter type to
13490 * ia64-tdep.c (ia64_read_pc): Likewise.
13491 * mips-tdep.c (mips_read_pc): Likewise.
13492 * spu-tdep.c (spu_read_pc): Likewise.
13494 2018-02-21 Yao Qi <yao.qi@linaro.org>
13496 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
13497 * regcache-dump.c: New file.
13498 * regcache.c: Move register_dump to regcache-dump.c.
13499 (maintenance_print_registers): Likewise.
13500 (maintenance_print_raw_registers): Likewise.
13501 (maintenance_print_cooked_registers): Likewise.
13502 (maintenance_print_register_groups): Likewise.
13503 (maintenance_print_remote_registers): Likewise.
13504 (_initialize_regcache): Likewise.
13505 * regcache.h (register_dump): Moved from regcache.c.
13507 2018-02-21 Yao Qi <yao.qi@linaro.org>
13509 * regcache.c (regcache::regcache): Update.
13510 (regcache::invalidate): Move it to detached_regcache::invalidate.
13511 (get_thread_arch_aspace_regcache): Update.
13512 (regcache::raw_update): Update.
13513 (regcache::cooked_read): Remove some code.
13514 (regcache::cooked_read_value): Likewise.
13515 (regcache::raw_write): Remove assert on m_readonly_p.
13516 (regcache::raw_supply_integer): Move it to
13517 detached_regcache::raw_supply_integer.
13518 (regcache::raw_supply_zeroed): Likewise.
13519 * regcache.h (detached_regcache) <raw_supply_integer>: New
13521 <raw_supply_zeroed, invalidate>: Likewise.
13522 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
13523 <invalidate>: Likewise.
13524 <m_readonly_p>: Removed.
13526 2018-02-21 Yao Qi <yao.qi@linaro.org>
13528 * infcmd.c (get_return_value): Let stop_regs point to
13529 get_current_regcache.
13530 * regcache.c (regcache::regcache): Remove.
13531 (register_dump_reg_buffer): New class.
13532 (regcache_print): Adjust.
13533 * regcache.h (regcache): Remove constructors.
13535 2018-02-21 Yao Qi <yao.qi@linaro.org>
13537 * regcache.c (class register_dump): New class.
13538 (register_dump_regcache, register_dump_none): New class.
13539 (register_dump_remote, register_dump_groups): New class.
13540 (regcache_print): Update.
13541 * regcache.h (regcache_dump_what): Move it to regcache.c.
13542 (regcache) <dump>: Remove.
13544 2018-02-21 Yao Qi <yao.qi@linaro.org>
13546 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
13548 (jit_unwind_reg_set_impl): Call raw_supply.
13549 (jit_frame_sniffer): Use reg_buffer_rw.
13550 * record-full.c (record_full_core_regbuf): Change its type.
13551 (record_full_core_open_1): Use reg_buffer_rw.
13552 (record_full_close): Likewise.
13553 (record_full_core_fetch_registers): Use regcache->raw_supply.
13554 (record_full_core_store_registers): Likewise.
13555 * regcache.c (regcache::get_register_status): Move it to
13557 (regcache_raw_set_cached_value): Remove.
13558 (regcache::raw_set_cached_value): Remove.
13559 (regcache::raw_write): Call raw_supply.
13560 (regcache::raw_supply): Move it to reg_buffer_rw.
13561 * regcache.h (regcache_raw_set_cached_value): Remove.
13562 (reg_buffer_rw): New class.
13564 2018-02-21 Yao Qi <yao.qi@linaro.org>
13566 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
13567 readonly_detached_regcache.
13568 (dummy_frame_prev_register): Use regcache->cooked_read.
13569 * frame.c (frame_save_as_regcache): Change return type.
13570 (frame_pop): Update.
13571 * frame.h (frame_save_as_regcache): Update declaration.
13572 * inferior.h (get_infcall_suspend_state_regcache): Update
13574 * infrun.c (infcall_suspend_state) <registers>: use
13575 readonly_detached_regcache.
13576 (save_infcall_suspend_state): Don't use regcache_dup.
13577 (get_infcall_suspend_state_regcache): Change return type.
13578 * linux-fork.c (struct fork_info) <savedregs>: Change to
13579 readonly_detached_regcache.
13581 (fork_save_infrun_state): Don't use regcache_dup.
13582 (info_checkpoints_command): Adjust.
13583 * mi/mi-main.c (register_changed_p): Update declaration.
13584 (mi_cmd_data_list_changed_registers): Use
13585 readonly_detached_regcache.
13586 (register_changed_p): Change parameter type to
13587 readonly_detached_regcache.
13588 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
13589 readonly_detached_regcache.
13590 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
13591 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
13593 (regcache::save): Move it to reg_buffer.
13594 (regcache::restore): Change parameter type.
13595 (regcache_dup): Remove.
13596 * regcache.h (reg_buffer) <save>: New method.
13597 (readonly_detached_regcache): New class.
13598 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
13599 readonly_detached_regcache.
13600 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
13602 2018-02-21 Yao Qi <yao.qi@linaro.org>
13604 * frame.c (frame_save_as_regcache): Use regcache method save.
13605 (frame_pop): Use regcache method restore.
13606 * infrun.c (restore_infcall_suspend_state): Likewise.
13607 * linux-fork.c (fork_load_infrun_state): Likewise.
13608 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
13610 * regcache.c (regcache_save): Remove.
13611 (regcache::restore): More asserts.
13612 (regcache_cpy): Remove.
13613 * regcache.h (regcache_save): Remove the declaration.
13614 (regcache::restore): Move from private to public.
13615 Remove the friend declaration of regcache_cpy.
13616 (regcache_cpy): Remove declaration.
13618 2018-02-21 Yao Qi <yao.qi@linaro.org>
13620 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
13621 parameter type to 'readable_regcache *'.
13622 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13623 * arm-tdep.c (arm_neon_quad_read): Likewise.
13624 (arm_pseudo_read): Likewise.
13625 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13626 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13627 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13628 * gdbarch.c: Re-generated.
13629 * gdbarch.h: Re-generated.
13630 * gdbarch.sh (pseudo_register_read): Change parameter type to
13631 'readable_regcache *'.
13632 (pseudo_register_read_value): Likewise.
13633 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
13634 (h8300_pseudo_register_read): Likewise.
13635 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
13636 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13637 (i386_pseudo_register_read_into_value): Likewise.
13638 (i386_pseudo_register_read_value): Likewise.
13639 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
13641 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
13642 * m32c-tdep.c (m32c_raw_read): Likewise.
13643 (m32c_read_flg): Likewise.
13644 (m32c_banked_register): Likewise.
13645 (m32c_banked_read): Likewise.
13646 (m32c_sb_read): Likewise.
13647 (m32c_part_read): Likewise.
13648 (m32c_cat_read): Likewise.
13649 (m32c_r3r2r1r0_read): Likewise.
13650 (m32c_pseudo_register_read): Likewise.
13651 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13652 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13653 (mep_pseudo_cr64_read): Likewise.
13654 (mep_pseudo_register_read): Likewise.
13655 * mips-tdep.c (mips_pseudo_register_read): Likewise.
13656 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13657 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13658 * regcache.c (regcache::raw_read): Move it to readable_regcache.
13659 (regcache::cooked_read): Likewise.
13660 (regcache::cooked_read_value): Likewise.
13661 (regcache_cooked_read_signed):
13662 (regcache::cooked_read): Likewise.
13663 * regcache.h (readable_regcache): New class.
13664 (regcache): Inherit readable_regcache. Move some methods to
13666 * rl78-tdep.c (rl78_pseudo_register_read): Change
13667 parameter type to 'readable_regcache *'.
13668 * rs6000-tdep.c (do_regcache_raw_read): Remove.
13669 (e500_pseudo_register_read): Change parameter type to
13670 'readable_regcache *'.
13671 (dfp_pseudo_register_read): Likewise.
13672 (vsx_pseudo_register_read): Likewise.
13673 (efpr_pseudo_register_read): Likewise.
13674 * s390-tdep.c (s390_pseudo_register_read): Likewise.
13675 * sh-tdep.c (sh_pseudo_register_read): Likewise.
13676 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
13677 (sh64_pseudo_register_read): Likewise.
13678 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13679 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13680 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13681 (spu_pseudo_register_read): Likewise.
13682 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13683 (xtensa_pseudo_register_read): Likewise.
13685 2018-02-21 Yao Qi <yao.qi@linaro.org>
13687 * regcache.c (regcache::regcache): Call reg_buffer ctor.
13688 (regcache::arch): Move it to reg_buffer::arch.
13689 (regcache::register_buffer): Likewise.
13690 (regcache::assert_regnum): Likewise.
13691 (regcache::num_raw_registers): Likewise.
13692 * regcache.h (reg_buffer): New class.
13693 (regcache): Inherit reg_buffer.
13695 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
13697 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
13698 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
13700 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
13702 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
13704 2018-02-19 Alan Hayward <alan.hayward@arm.com>
13706 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
13707 (SFILES): Remove common/*.c files.
13708 (COMMON_OBS): Remove some *.o files built from common/*.c files.
13709 * common/common.host: Add common reference.
13710 * configure.ac: Likewise.
13711 * configure: Regenerate.
13713 2018-02-16 Yao Qi <yao.qi@linaro.org>
13715 * block.c (block_namespace_info): Inherit allocate_on_obstack.
13716 (block_initialize_namespace): Use new.
13717 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
13718 (dwarf2_free_objfile): Use delete.
13719 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
13720 (copy_type_recursive): Use new.
13721 * gdb_obstack.h (allocate_on_obstack): New.
13723 2018-02-15 Yao Qi <yao.qi@linaro.org>
13726 * inferior.c (exit_inferior_1): Reset inf->control.
13728 2018-02-15 Joel Brobecker <brobecker@adacore.com>
13730 * ada-lang.c (ada_to_fixed_value_create): Delete advance
13733 2018-02-14 Pedro Alves <palves@redhat.com>
13735 * frame-unwind.c (frame_unwind_try_unwinder): Always call
13736 frame_cleanup_after_sniffer on exception.
13738 2018-02-14 Tom Tromey <tom@tromey.com>
13740 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
13742 (solib_bfd_open): Make pathname const.
13743 * solib.c (solib_bfd_open): Make pathname const.
13744 * solib-spu.c (spu_bfd_fopen): Make name const.
13745 (spu_bfd_open): Make pathname const.
13746 * solib-darwin.c (darwin_bfd_open): Make pathname const.
13747 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
13749 2018-02-14 Tom Tromey <tom@tromey.com>
13751 * symfile.c (symfile_bfd_open): Update.
13752 * source.h (openp, source_full_path_of, find_and_open_source):
13753 Change argument type to unique_xmalloc_ptr.
13754 * source.c (openp): Take a unique_xmalloc_ptr.
13755 (source_full_path_of, find_and_open_source): Likewise.
13756 (open_source_file, symtab_to_fullname): Update.
13757 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
13758 unique_xmalloc_ptr.
13759 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
13760 (exec_file_find): Update.
13761 * psymtab.c (psymtab_to_fullname): Update.
13762 * nto-tdep.h (nto_find_and_open_solib): Update.
13763 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
13764 unique_xmalloc_ptr.
13765 * exec.c (exec_file_attach): Update.
13766 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
13767 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
13769 2018-02-14 Tom Tromey <tom@tromey.com>
13771 * solib.c: Include source.h.
13772 * nto-tdep.c: Include source.h.
13773 * mi/mi-cmd-env.c: Include source.h.
13774 * infcmd.c: Include source.h.
13775 * exec.c: Include source.h.
13776 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
13777 (add_path, directory_switch, source_path, init_source_path): Move
13779 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
13780 (add_path, directory_switch, source_path, init_source_path):
13783 2018-02-14 Tom Tromey <tom@tromey.com>
13785 * solist.h (exec_file_find, solib_find): Return
13786 unique_xmalloc_ptr.
13787 (solib_bfd_fopen): Take a const char *.
13788 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
13789 (exec_file_find, solib_find): Likewise.
13790 (solib_bfd_fopen): Do not take ownership of "pathname".
13791 (solib_bfd_open): Use unique_xmalloc_ptr.
13792 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
13793 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
13794 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
13795 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
13797 2018-02-14 Joel Brobecker <brobecker@adacore.com>
13799 * ada-lang.c (name_match_type_from_name): Remove reference to
13800 ada_name_for_lookup in function's documentation.
13801 * ada-lang.h (ada_name_for_lookup): Delete declaration.
13803 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13805 * defs.h (enum openp_flags): New enum.
13806 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
13807 Move to enum openp_flags.
13808 (openp_flags): New enum flags.
13809 (openp): Change parameter type to openp_flags.
13810 * source.c (openp): Change parameter type to openp_flags.
13811 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
13812 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
13814 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13816 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
13819 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
13821 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
13823 (class dwarf2_queue_guard): ...the destructor of this new class.
13824 (dw2_do_instantiate_symtab): Create instance of the new class
13825 dwarf2_queue_guard, remove cleanup.
13827 2018-02-09 Tom Tromey <tom@tromey.com>
13829 * source.c (find_source_lines): Don't reference past the end of
13832 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13834 * remote.c (remote_btrace_maybe_reopen): Change error message.
13835 * btrace.c (btrace_enable): Likewise.
13836 (parse_xml_btrace): Likewise.
13837 (parse_xml_btrace_conf): Likewise.
13839 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13841 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13842 (linux_enable_pt, linux_enable_bts): Call
13843 diagnose_perf_event_open_fail.
13845 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13847 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13848 Remove parameter and change return type. Update callers. Move it.
13849 (linux_enable_bts, linux_enable_pt): Improve error message.
13850 (linux_enable_pt): Remove zero buffer size check.
13851 (linux_enable_btrace): Improve error messages. Remove NULL return
13854 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13856 * btrace.c (btrace_enable): Remove target_supports_btrace call.
13857 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13858 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13859 (linux_supports_pt, linux_supports_btrace): Remove.
13860 (linux_enable_bts): Call cpu_supports_bts.
13861 * nat/linux-btrace.h (linux_supports_btrace): Remove.
13862 * remote.c (remote_supports_btrace): Remove.
13863 (init_remote_ops): Remove remote_supports_btrace.
13864 * target-delegates.c: Regenerated.
13865 * target.c (target_supports_btrace): Remove.
13866 * target.h (target_ops) <to_supports_btrace>: Remove
13867 (target_supports_btrace): Remove.
13868 * x86-linux-nat.c (x86_linux_create_target): Remove
13869 linux_supports_btrace.
13871 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13873 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13875 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13876 exception and use message in own exception.
13878 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13880 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13881 (perf_event_pt_event_type): Use gdb_file_up.
13882 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13883 scoped_fd, and scoped_mmap.
13885 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13887 * common/scoped_mmap.h: New.
13888 * unittests/scoped_mmap-selftest.c: New.
13889 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13890 unittests/scoped_mmap-selftest.c.
13892 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13894 * common/scoped_fd.h: New.
13895 * unittests/scoped_fd-selftest.c: New.
13896 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13897 unittests/scoped_fd-selftest.c.
13899 2018-02-09 Tom Tromey <tom@tromey.com>
13901 * auto-load.c (auto_load_section_scripts): Use
13902 gdb::unique_xmalloc_ptr.
13904 2018-02-09 Tom Tromey <tom@tromey.com>
13906 * auto-load.c (execute_script_contents): Use std::string.
13908 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13910 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13911 Python function, rather than a new command.
13913 2018-02-08 Tom Tromey <tom@tromey.com>
13915 * solib.c (solib_find_1): Use std::string.
13916 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13918 2018-02-08 Tom Tromey <tom@tromey.com>
13920 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13922 2018-02-08 Tom Tromey <tom@tromey.com>
13924 * source.c (find_source_lines): Use gdb::def_vector.
13926 2018-02-08 Tom Tromey <tom@tromey.com>
13928 * macrocmd.c (struct temporary_macro_definition): New.
13929 (macro_define_command): Use temporary_macro_definition. Remove
13931 (free_macro_definition_ptr): Remove.
13933 2018-02-08 Tom Tromey <tom@tromey.com>
13935 * macroexp.c (maybe_expand): Use std::string.
13937 2018-02-08 Tom Tromey <tom@tromey.com>
13939 * macroexp.c (struct macro_buffer): Add initializers for some
13941 (init_buffer, init_shared_buffer, free_buffer)
13942 (free_buffer_return_text): Remove.
13943 (macro_buffer): New constructors.
13944 (~macro_buffer): New destructor.
13945 (macro_buffer::set_shared): New method.
13946 (macro_buffer::resize_buffer, macro_buffer::appendc)
13947 (macro_buffer::appendmem): Now methods, not free functions.
13948 (set_token, append_tokens_without_splicing, stringify)
13949 (macro_stringify): Update.
13950 (gather_arguments): Change return type. Remove argc_p argument,
13951 add args_ptr argument. Use std::vector.
13952 (substitute_args): Remove argc argument. Accept std::vector.
13953 (expand): Update. Use std::vector.
13954 (scan, macro_expand, macro_expand_next): Update.
13956 2018-02-08 Tom Tromey <tom@tromey.com>
13958 * symtab.c (default_collect_symbol_completion_matches_break_on):
13959 Use unique_xmalloc_ptr.
13960 * macroscope.h: (sal_macro_scope, user_macro_scope)
13961 (default_macro_scope): Return unique_xmalloc_ptr.
13962 * macroscope.c (sal_macro_scope, user_macro_scope)
13963 (default_macro_scope): Return unique_xmalloc_ptr.
13964 * macroexp.h (macro_expand, macro_expand_once): Return
13965 unique_xmalloc_ptr.
13966 * macroexp.c (macro_expand, macro_expand_once): Return
13967 unique_xmalloc_ptr.
13968 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13969 (info_macro_command, info_macros_command): Use
13970 unique_xmalloc_ptr.
13971 * compile/compile-c-support.c (write_macro_definitions): Use
13972 unique_xmalloc_ptr.
13973 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13975 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13977 * value.c (value_static_field): Assign field type instead of
13978 containing type when returning an optimized out value.
13980 2018-02-06 Yao Qi <yao.qi@linaro.org>
13982 * ft32-tdep.c (ft32_read_pc): Remove.
13983 (ft32_write_pc): Remove.
13984 (ft32_gdbarch_init): Update.
13985 * m32r-tdep.c (m32r_read_pc): Remove.
13986 (m32r_gdbarch_init): Update.
13987 * mep-tdep.c (mep_read_pc): Remove.
13988 (mep_gdbarch_init): Update.
13989 * microblaze-tdep.c (microblaze_write_pc): Remove.
13990 (microblaze_gdbarch_init): Update.
13991 * mn10300-tdep.c (mn10300_read_pc): Remove.
13992 (mn10300_write_pc): Remove.
13993 (mn10300_gdbarch_init): Update.
13994 * moxie-tdep.c (moxie_read_pc): Remove.
13995 (moxie_write_pc): Remove.
13996 (moxie_gdbarch_init): Update.
13998 2018-02-06 Yao Qi <yao.qi@linaro.org>
14000 * expprint.c (print_subexp_standard): Handle
14001 OP_F77_UNDETERMINED_ARGLIST.
14002 (dump_subexp_body_standard): Likewise.
14004 2018-02-05 Alan Hayward <alan.hayward@arm.com>
14006 * target-descriptions.c (tdesc_element_visitor) Add empty
14008 (tdesc_type): Move make_gdb_type from here.
14009 (tdesc_type_builtin): Likewise.
14010 (tdesc_type_vector): Likewise.
14011 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14012 (make_gdb_type_struct): Move from tdesc_type_with_fields.
14013 (make_gdb_type_union): Likewise.
14014 (make_gdb_type_flags): Likewise.
14015 (make_gdb_type_enum): Likewise.
14016 (make_gdb_type): New function.
14017 (tdesc_register_type): Use static make_gdb_type.
14019 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
14021 * infcmd.c (default_print_one_register_info): Align natural-format
14022 column values consistently one under another.
14023 (pad_to_column): New function.
14025 2018-02-05 Joel Brobecker <brobecker@adacore.com>
14027 * dwarf2read.c (dwarf2_physname): Move commment.
14029 2018-02-01 Leszek Swirski <leszeks@google.com>
14031 * varobj.c (varobj_formatted_print_options): Allow recursive
14032 pretty printing if pretty printing is enabled.
14034 2018-02-01 Leszek Swirski <leszeks@google.com>
14036 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14037 names after a structop as a filename.
14039 2018-02-01 Yao Qi <yao.qi@linaro.org>
14041 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
14042 (arm_record_coproc_data_proc): Likewise.
14044 2018-02-01 Yao Qi <yao.qi@linaro.org>
14046 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
14048 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
14050 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
14051 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
14053 2018-01-31 Pedro Alves <palves@redhat.com>
14055 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
14056 * inflow.c (child_terminal_save_inferior): Wrap reference to
14057 tcgetpgrp in HAVE_TERMIOS_H.
14058 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
14060 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
14061 always iterate over all inferiors.
14062 (gdbsim_cntrl_c): Adjust.
14063 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
14065 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14067 * gdbtypes.c (lookup_array_range_type): Make sure the array's
14068 index type is objfile-owned if the element type is as well.
14070 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14074 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
14076 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
14077 "features/s390x-linux64.c".
14078 (_initialize_s390_linux_tdep): Remove initialization of tdescs
14079 s390_linux32 and s390x_linux64.
14080 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
14082 * s390-tdep.c: Include "features/s390-linux32.c" and
14083 "features/s390x-linux64.c".
14084 (s390_tdesc_valid): Add check for tdesc_has_registers.
14085 (s390_gdbarch_init): Make sure there is always a valid tdesc.
14086 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
14087 tdesc_s390x_linux64.
14088 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
14089 tdesc_s390x_linux64 to...
14090 * s390-tdep.h: ...here.
14092 2018-01-30 Pedro Alves <palves@redhat.com>
14095 * config.in, configure: Regenerate.
14096 * configure.ac: Check for getpgid.
14097 * go32-nat.c (go32_pass_ctrlc): New.
14098 (go32_target): Install it.
14099 * inf-child.c (inf_child_target): Install
14100 child_terminal_save_inferior, child_pass_ctrlc and
14102 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
14103 (inf_ptrace_target): No longer install it.
14104 * infcmd.c (interrupt_target_1): Adjust.
14105 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
14106 (child_interrupt): Declare.
14107 (inferior::terminal_state): New.
14108 * inflow.c (struct terminal_info): Update comments.
14109 (inferior_process_group): Delete.
14110 (terminal_is_ours): Delete.
14111 (gdb_tty_state): New.
14112 (child_terminal_init): Adjust.
14113 (is_gdb_terminal, sharing_input_terminal_1)
14114 (sharing_input_terminal): New functions.
14115 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
14116 Set the process's actual process group in the foreground if
14117 possible. Handle is_ours_for_output/is_ours distinction. Don't
14118 mark terminal as the inferior's if not sharing GDB's terminal.
14119 Don't check attach_flag.
14120 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
14121 pass down a target_terminal_state.
14122 (child_terminal_save_inferior): New, factored out from ...
14123 (child_terminal_ours_1): ... this. Handle
14124 target_terminal_state::is_ours_for_output.
14125 (child_interrupt, child_pass_ctrlc): New.
14126 (inflow_inferior_exit): Clear the inferior's terminal_state.
14127 (copy_terminal_info): Copy the inferior's terminal state.
14128 (_initialize_inflow): Remove reference to terminal_is_ours.
14129 * inflow.h (inferior_process_group): Delete.
14130 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
14131 * procfs.c (procfs_target): Don't install procfs_interrupt.
14132 (procfs_interrupt): Delete.
14133 * remote.c (remote_serial_quit_handler): Adjust.
14134 (remote_interrupt): Remove ptid parameter. Adjust.
14135 * target-delegates.c: Regenerate.
14136 * target.c: Include "terminal.h".
14137 (target_terminal::terminal_state): Rename to ...
14138 (target_terminal::m_terminal_state): ... this.
14139 (target_terminal::init): Adjust.
14140 (target_terminal::inferior): Adjust to per-inferior
14142 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
14143 (target_terminal::ours, target_terminal::ours_for_output): Use
14144 target_terminal_is_ours_kind.
14145 (target_interrupt): Remove ptid parameter. Adjust.
14146 (default_target_pass_ctrlc): Adjust.
14147 * target.h (target_ops::to_terminal_save_inferior): New field.
14148 (target_ops::to_interrupt): Remove ptid_t parameter.
14149 (target_interrupt): Remove ptid_t parameter. Update comment.
14150 (target_pass_ctrlc): Update comment.
14151 * target/target.h (target_terminal_state): New scoped enum,
14152 factored out of ...
14153 (target_terminal::terminal_state): ... here.
14154 (target_terminal::inferior): Update comments.
14155 (target_terminal::restore_inferior): New.
14156 (target_terminal::is_inferior, target_terminal::is_ours)
14157 (target_terminal::is_ours_for_output): Adjust.
14158 (target_terminal::scoped_restore_terminal_state): Adjust to
14159 rename, and call restore_inferior() instead of inferior().
14160 (target_terminal::scoped_restore_terminal_state::m_state): Change
14162 (target_terminal::terminal_state): Rename to ...
14163 (target_terminal::m_terminal_state): ... this and change type.
14165 2018-01-30 Pedro Alves <palves@redhat.com>
14167 * linux-nat.c (wait_for_signal): New function.
14168 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
14170 (async_terminal_is_ours)
14171 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
14172 (linux_nat_add_target): Don't override
14173 to_terminal_inferior/to_terminal_ours.
14175 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
14177 * remote.c (remote_follow_fork): Don't call "detach_inferior".
14179 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
14181 * dwarf2read.c (free_dwo_files): Add forward-declaration.
14182 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
14183 dwarf2_per_objfile_free here.
14184 (dwarf2_per_objfile_free): Remove.
14185 (_initialize_dwarf2_read): Don't register
14186 dwarf2_per_objfile_free as a registry cleanup.
14188 2018-01-27 Eli Zaretskii <eliz@gnu.org>
14190 Avoid compilation errors in MinGW native builds
14192 The error is triggered by including python-internal.h, and the
14195 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
14196 from build-gnulib/import/math.h:27,
14197 from d:/usr/Python26/include/pyport.h:235,
14198 from d:/usr/Python26/include/Python.h:58,
14199 from python/python-internal.h:94,
14200 from python/py-arch.c:24:
14201 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14205 This happens because Python headers define 'hypot' to expand t
14206 '_hypot' in the Windows builds.
14207 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14208 'hypoth'. This avoids a compilation error.
14210 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14212 * MAINTAINERS (Write After Approval): Fix ordering.
14214 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14216 * MAINTAINERS (Write After Approval): Add Alan Hayward.
14218 2018-01-26 Alan Modra <amodra@gmail.com>
14220 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14221 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14222 Remove nop. Make const. Comment.
14223 (powerpc32_plt_stub_so_2): New.
14224 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14225 Correct count. Update uses.
14226 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14227 Move common code reading PLT entry word. Correct
14228 powerpc32_plt_stub PLT address calculation.
14229 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14230 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14231 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14232 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14233 (ppc64_standard_linkage8): Likewise.
14234 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14235 Correct insns description.
14236 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14238 2018-01-24 Pedro Alves <palves@redhat.com>
14240 GCC PR libstdc++/83906
14241 * gdbtypes.c (operator==(const dynamic_prop &,
14242 const dynamic_prop &)): New.
14243 (operator==(const range_bounds &, const range_bounds &)): New.
14244 (check_types_equal): Use them instead of memcmp.
14245 * gdbtypes.h (operator==(const dynamic_prop &,
14246 const dynamic_prop &)): Declare.
14247 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14248 (operator==(const range_bounds &, const range_bounds &)): Declare.
14249 (operator!=(const range_bounds &, const range_bounds &)): Declare.
14251 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14253 * s390-linux-tdep.c (s390_record_address_mask)
14254 (s390_record_calc_disp_common, s390_record_calc_disp)
14255 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14256 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14257 (s390_process_record): Move to s390-tdep.c.
14258 (s390_linux_init_abi_any): Adjust.
14259 * s390-tdep.c (s390_record_address_mask)
14260 (s390_record_calc_disp_common, s390_record_calc_disp)
14261 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14262 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14263 (s390_process_record): Moved from s390-linux-tdep.c
14264 (s390_gdbarch_init): Adjust.
14266 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14268 * s390-linux-nat.c (s390-tdep.h): New include.
14269 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
14270 (HFILES_NO_SRCDIR): Add s390-tdep.h.
14271 (ALLDEPFILES): Add s390-tdep.c.
14272 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
14273 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
14274 * s390-tdep.h: ...this. New file.
14275 * s390-linux-tdep.c (s390-tdep.h): New include.
14276 (_initialize_s390_tdep): Rename to...
14277 (_initialize_s390_linux_tdep): ...this and adjust.
14278 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
14279 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
14281 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
14282 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
14283 (s390_is_partial_instruction, s390_software_single_step)
14284 (is_non_branch_ril, s390_displaced_step_copy_insn)
14285 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
14286 (s390_prologue_data, s390_addr, s390_store, s390_load)
14287 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
14288 (s390_register_call_saved, s390_guess_tracepoint_registers)
14289 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
14290 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
14291 (s390_pseudo_register_name, s390_pseudo_register_type)
14292 (s390_pseudo_register_read, s390_pseudo_register_write)
14293 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
14294 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
14295 (s390_addr_bits_remove, s390_address_class_type_flags)
14296 (s390_address_class_type_flags_to_name)
14297 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
14298 (s390_function_arg_float, s390_function_arg_vector)
14299 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
14300 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
14301 (s390_frame_align, s390_register_return_value, s390_return_value)
14302 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
14303 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
14304 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
14305 (s390_trad_frame_prev_register, s390_unwind_cache)
14306 (s390_prologue_frame_unwind_cache)
14307 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
14308 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
14309 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
14310 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
14311 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
14312 (s390_frame_base_address, s390_local_base_address)
14313 (s390_frame_base, s390_gcc_target_options)
14314 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
14315 (s390_validate_reg_range, s390_tdesc_valid)
14316 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
14317 * s390-tdep.c: ...this. New file.
14319 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14321 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
14322 (s390_process_record, s390_gdbarch_tdep_alloc)
14323 (s390_linux_init_abi_any): Use/set new hook.
14325 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14327 * s390-linux-tdep.c (osabi.h): New include.
14328 (s390_linux_init_abi_31, s390_linux_init_abi_64)
14329 (s390_linux_init_abi_any): New functions.
14330 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
14332 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14334 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
14335 tdesc_has_registers check
14337 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14339 * s390-linux-tdep.c (s390_tdesc_valid): New function.
14340 (s390_validate_reg_range): New macro.
14341 (s390_gdbarch_init): Adjust.
14343 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14345 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
14346 (s390_gdbarch_tdep_alloc): Adjust.
14347 (s390_gdbarch_init): Adjust.
14349 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14351 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14352 <have_tdb>: Change type to bool.
14353 (s390_gdbarch_tdep_alloc): Adjust.
14354 (s390_gdbarch_init): Adjust.
14356 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14358 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14359 (gdbarch_tdep) <have_upper, have_vx>: New fields.
14360 (s390_gdbarch_tdep_alloc): New function.
14361 (s390_gdbarch_init): Allocate tdep at start and use its fields
14362 instead of separate variables.
14364 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14366 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14367 when looking for cached gdbarch and add comment for remaining.
14369 2018-01-22 Pedro Alves <palves@redhat.com>
14370 Sergio Durigan Junior <sergiodj@redhat.com>
14372 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14375 2018-01-22 Maciej W. Rozycki <macro@mips.com>
14377 * MAINTAINERS: Update my company e-mail address.
14379 2018-01-22 Yao Qi <yao.qi@linaro.org>
14381 * regcache.c (cooked_write_test): New function.
14382 (_initialize_regcache): Register the test.
14384 2018-01-22 Yao Qi <yao.qi@linaro.org>
14386 * ia64-tdep.c (ia64_pseudo_register_read): Call
14387 regcache->cooked_read instead of regcache_cooked_read_unsigned.
14388 * m32c-tdep.c (m32c_cat_read): Likewise.
14389 (m32c_r3r2r1r0_read): Likewise.
14390 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14391 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14393 2018-01-22 Yao Qi <yao.qi@linaro.org>
14395 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14396 method raw_read instead of regcache_raw_read.
14397 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14398 * arm-tdep.c (arm_neon_quad_read): Likewise.
14399 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14400 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14401 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14402 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14403 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14404 (i386_pseudo_register_read_into_value): Likewise.
14405 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14406 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14407 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14408 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14409 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14410 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14411 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14412 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14413 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14415 2018-01-22 Yao Qi <yao.qi@linaro.org>
14417 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14418 * configure.tgt: Remove target mt.
14419 * mt-tdep.c: Remove.
14420 * regcache.c (cooked_read_test): Remove the check for mt.
14422 2018-01-22 Yao Qi <yao.qi@linaro.org>
14424 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14425 instead of gdbarch_pseudo_register_read_value.
14427 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14429 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14432 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14434 * linespec.c (create_sals_line_offset): Remove code that preserved
14435 the symtab_and_line's line number.
14437 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14439 * varobj.c (varobj_create): Don't set valid_block when creating a
14442 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14444 * varobj.c (varobj_create): Remove out of date comment.
14446 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14449 * ada-exp.y (write_var_from_sym): Pass extra parameter when
14450 updating innermost block.
14451 * parse.c (innermost_block_tracker::update): Take extra type
14452 parameter, and check types match before updating innermost block.
14453 (write_dollar_variable): Update innermost block for registers.
14454 * parser-defs.h (enum innermost_block_tracker_type): New enum.
14455 (innermost_block_tracker::innermost_block_tracker): Initialise
14457 (innermost_block_tracker::reset): Take type parameter.
14458 (innermost_block_tracker::update): Take type parameter, and pass
14459 type through as needed.
14460 (innermost_block_tracker::m_types): New member.
14461 * varobj.c (varobj_create): Pass type when reseting innermost
14464 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14466 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14467 * ada-lang.c (resolve_subexp): Likewise.
14468 * breakpoint.c (set_breakpoint_condition) Likewise.
14469 (watch_command_1) Likewise.
14470 * c-exp.y (variable): Likewise.
14471 * d-exp.y (PrimaryExpression): Likewise.
14472 * f-exp.y (variable): Likewise.
14473 * go-exp.y (variable): Likewise.
14474 * m2-exp.y (variable): Likewise.
14475 * objfiles.c (objfile::~objfile): Likewise.
14476 * p-exp.y (variable): Likewise.
14477 * parse.c (innermost_block): Change type.
14478 * parser-defs.h (class innermost_block_tracker): New.
14479 (innermost_block): Change to innermost_block_tracker.
14480 * printcmd.c (display_command): Switch to innermost_block API.
14481 (do_one_display): Likewise.
14482 * rust-exp.y (do_one_display): Likewise.
14483 * symfile.c (clear_symtab_users): Likewise.
14484 * varobj.c (varobj_create): Switch to innermost_block API, replace
14485 use of innermost_block with block stored on varobj object.
14487 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14489 * expression.h (innermost_block): Remove declaration.
14490 * varobj.c: Add 'parser-defs.h' include.
14492 2018-01-19 Tom Tromey <tom@tromey.com>
14494 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
14495 symbols in the static and global blocks.
14497 2018-01-19 James Clarke <jrtc27@jrtc27.com>
14499 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
14500 gdb_ptrace.h, and move including gdb_wait.h ...
14501 * nat/linux-ptrace.h: ... to here.
14503 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14505 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
14506 inf_ptrace_detach_success.
14507 (inf_ptrace_detach_success): Add inferior parameter, use it
14508 instead of inferior_ptid, pass it to detach_inferior.
14509 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
14511 * inferior.c (detach_inferior): Add overload that takes an
14513 * inferior.h (detach_inferior): Likewise.
14514 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
14515 use inferior_ptid, adjust call to inf_ptrace_detach_success.
14516 * linux-thread-db.c (thread_db_detach): Use inf parameter.
14518 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14520 * target.h (struct target_ops) <to_detach>: Add inferior
14522 (target_detach): Likewise.
14523 * target.c (dispose_inferior): Pass inferior down.
14524 (target_detach): Pass inferior down. Assert that it is equal to
14525 the current inferior.
14526 * aix-thread.c (aix_thread_detach): Pass inferior down.
14527 * corefile.c (core_file_command): Pass current_inferior() down.
14528 * corelow.c (core_detach): Add inferior parameter.
14529 * darwin-nat.c (darwin_detach): Likewise.
14530 * gnu-nat.c (gnu_detach): Likewise.
14531 * inf-ptrace.c (inf_ptrace_detach): Likewise.
14532 * infcmd.c (detach_command): Pass current_inferior() down to
14534 * infrun.c (follow_fork_inferior): Pass parent_inf to
14536 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
14538 * linux-nat.c (linux_nat_detach): Add inferior parameter.
14539 * linux-thread-db.c (thread_db_detach): Likewise.
14540 * nto-procfs.c (procfs_detach): Likewise.
14541 * procfs.c (procfs_detach): Likewise.
14542 * record.c (record_detach): Likewise.
14543 * record.h (struct inferior): Forward-declare.
14544 (record_detach): Add inferior parameter.
14545 * remote-sim.c (gdbsim_detach): Likewise.
14546 * remote.c (remote_detach_1): Likewise.
14547 (remote_detach): Likewise.
14548 (extended_remote_detach): Likewise.
14549 * sol-thread.c (sol_thread_detach): Likewise.
14550 * target-debug.h (target_debug_print_inferior_p): New macro.
14551 * target-delegates.c: Re-generate.
14552 * top.c (kill_or_detach): Pass inferior down to target_detach.
14553 * windows-nat.c (windows_detach): Add inferior parameter.
14555 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14557 * target.h (struct target_ops) <to_detach>: Remove args
14559 (target_detach): Likewise.
14560 * target.c (dispose_inferior): Adjust.
14561 (target_detach): Remove args parameter, adjust.
14562 * aix-thread.c (aix_thread_detach): Adjust.
14563 * corefile.c (core_file_command): Adjust.
14564 * corelow.c (core_detach): Adjust.
14565 * darwin-nat.c (darwin_detach): Adjust.
14566 * gnu-nat.c (gnu_detach): Adjust.
14567 * inf-ptrace.c (inf_ptrace_detach): Adjust.
14568 * infcmd.c (detach_command): Adjust
14569 * infrun.c (follow_fork_inferior): Adjust.
14570 (handle_vfork_child_exec_or_exit): Adjust.
14571 * linux-fork.c (linux_fork_detach): Remove args parameter.
14572 * linux-fork.h (linux_fork_detach): Likewise.
14573 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
14574 * linux-thread-db.c (thread_db_detach): Likewise.
14575 * nto-procfs.c (procfs_detach): Likewise.
14576 * procfs.c (procfs_detach): Likewise.
14577 (do_detach): Remove signo parameter.
14578 * record.c (record_detach): Remove args parameter.
14579 * record.h (record_detach): Likewise.
14580 * remote-sim.c (gdbsim_detach): Likewise.
14581 * remote.c (remote_detach_1): Likewise.
14582 (remote_detach): Likewise.
14583 (extended_remote_detach): Likewise.
14584 * sol-thread.c (sol_thread_detach): Likewise.
14585 * target-delegates.c: Re-generate.
14586 * top.c (struct qt_args) <args>: Remove field.
14587 (kill_or_detach): Don't pass args.
14588 (quit_force): Don't set args.
14589 * windows-nat.c (windows_detach): Remove args parameter.
14591 2018-01-19 Yao Qi <yao.qi@linaro.org>
14593 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
14594 (arm_linux_init_abi): Install it.
14596 2018-01-19 Yao Qi <yao.qi@linaro.org>
14598 * osabi.c (gdb_osabi_names): Extend the regexp for
14599 arm-linux-gnueabihf.
14601 2018-01-18 Yao Qi <yao.qi@linaro.org>
14603 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
14605 (abbrev_table::add_abbrev): Update.
14606 (abbrev_table::lookup_abbrev): Update.
14608 2018-01-18 Yao Qi <yao.qi@linaro.org>
14610 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
14612 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14614 * compile/compile.c (compile_to_object): Convert "triplet_rx"
14617 2018-01-17 Tom Tromey <tom@tromey.com>
14619 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
14621 2018-01-17 Tom Tromey <tom@tromey.com>
14623 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
14624 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
14625 (create_array_type_with_stride): Update.
14626 * dwarf2read.c (set_die_type): Update.
14628 2018-01-17 Tom Tromey <tom@tromey.com>
14630 * dwarf2read.c (delayed_method_info): Remove typedef.
14631 (dwarf2_cu::method_info): Now a std::vector.
14632 (add_to_method_list): Update.
14633 (free_delayed_list): Remove.
14634 (compute_delayed_physnames): Update.
14635 (process_full_comp_unit, process_full_type_unit): Clear the method
14636 list. Remove cleanups.
14637 (psymtab_include_file_name): Add name_holder parameter. Use
14638 unique_xmalloc_ptr.
14639 (dwarf_decode_lines): Update.
14641 2018-01-17 Tom Tromey <tom@tromey.com>
14642 Simon Marchi <simon.marchi@ericsson.com>
14644 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
14645 (dwarf2_per_objfile::free_cached_comp_units)
14646 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14647 (init_cutu_and_read_dies_no_follow): Update.
14648 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
14649 (dwarf2_cu::~dwarf2_cu): New.
14650 (free_heap_comp_unit, free_stack_comp_unit): Remove.
14651 (age_cached_comp_units, free_one_cached_comp_unit): Update.
14653 2018-01-17 Tom Tromey <tom@tromey.com>
14654 Simon Marchi <simon.marchi@ericsson.com>
14656 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
14657 (struct die_reader_specs) <abbrev_table>: New member.
14658 (struct abbrev_table): Add constructor.
14659 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
14660 <abbrev_obstack>: Now an auto_obstack.
14661 (abbrev_table_up): New typedef.
14662 (init_cu_die_reader): Add abbrev_table parameter.
14663 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
14664 Add result_dwo_abbrev_table.
14665 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14666 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
14668 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
14670 (skip_children): Update.
14671 (abbrev_table::alloc_abbrev): Rename from
14672 abbrev_table_alloc_abbrev.
14673 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
14674 (abbrev_table::lookup_abbrev): Rename from
14675 abbrev_table_lookup_abbrev.
14676 (abbrev_table_read_table): Return abbrev_table_up.
14677 (abbrev_table_free, abbrev_table_free_cleanup)
14678 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
14679 (load_partial_dies): Update.
14681 2018-01-17 Tom Tromey <tom@tromey.com>
14683 * dwarf2read.c (dwarf2_compute_name): Update comment.
14684 (read_func_scope, read_variable): Update.
14685 (new_symbol): Remove.
14686 (new_symbol_full): Rename to new_symbol.
14688 2018-01-17 Mike Gulick <mgulick@mathworks.com>
14691 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
14692 a warning instead of throwing an error, set section size to 0 and return
14694 * gdb_bfd.h (gdb_bfd_map_section): Update description.
14696 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
14698 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
14700 (linux_ptrace_attach_fail_reason_string): Likewise.
14701 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
14703 (linux_ptrace_attach_fail_reason_string): Likewise.
14704 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
14706 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
14708 * linux-nat.c (linux_nat_attach): Remove xstrdup.
14710 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
14713 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
14714 checking for fs_base/gs_base fields in struct user_regs_struct.
14715 * configure: Regenerate.
14717 2018-01-17 Yao Qi <yao.qi@linaro.org>
14719 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
14721 (aarch64_linux_init_abi): Install it to gdbarch hook
14722 gcc_target_options.
14724 2018-01-15 Pedro Alves <palves@redhat.com>
14726 * common/signals-state-save-restore.c
14727 (save_original_signals_state): Fix typos.
14729 2017-01-12 Tom Tromey <tom@tromey.com>
14730 Sergio Durigan Junior <sergiodj@redhat.com>
14732 * Makefile.in (install-only): Install gdb-add-index.
14734 2018-01-12 John Baldwin <jhb@FreeBSD.org>
14736 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
14738 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
14740 * infrun.c (keep_going_pass_signal): Clear step-over info when
14741 insert_breakpoints fails.
14743 2018-01-11 Pedro Alves <palves@redhat.com>
14746 * infrun.c (resume): Rename to ...
14747 (resume_1): ... this.
14748 (resume): Reimplement as wrapper around resume_1.
14750 2018-01-11 Pedro Alves <palves@redhat.com>
14753 * remote.c (remote_parse_stop_reply): Default to the last-set
14754 general thread instead of to 'magic_null_ptid'.
14756 2018-01-10 Pedro Alves <palves@redhat.com>
14758 * language.h (language_get_symbol_name_matcher): Rename ...
14759 (get_symbol_name_matcher): ... this.
14760 * language.c (language_get_symbol_name_matcher): Ditto.
14761 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
14764 2018-01-10 Pedro Alves <palves@redhat.com>
14768 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
14769 Adjust to use language_get_symbol_name_matcher instead of
14770 language_defn::la_get_symbol_name_matcher.
14771 * language.c (language_get_symbol_name_matcher): If in Ada mode
14772 and the lookup name is a verbatim match, return Ada's matcher.
14773 * language.h (language_get_symbol_name_matcher): Adjust comment.
14774 (ada_lookup_name_info::verbatim_p):: New method.
14776 2018-01-10 Pedro Alves <palves@redhat.com>
14779 * ada-lang.c (ada_collect_symbol_completion_matches): If the
14780 minsym's language is language_auto or language_cplus, pass down
14781 language_ada instead.
14782 * symtab.c (compare_symbol_name): Don't frob symbol language here.
14784 2018-01-10 Pedro Alves <palves@redhat.com>
14787 * minsyms.c (linkage_name_str): New function.
14788 (iterate_over_minimal_symbols): Use it.
14790 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14792 * NEWS: Document that 'info proc' now works on FreeBSD.
14794 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14796 * configure.ac: Check for kinfo_getfile in libutil.
14797 * configure: Regenerate.
14798 * config.in: Regenerate.
14799 * fbsd-nat.c: Include "fbsd-tdep.h".
14800 (fbsd_fetch_cmdline): New.
14801 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
14802 rather than calling error.
14803 (fbsd_info_proc): New.
14804 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
14805 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
14806 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
14808 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14810 * fbsd-nat.c (struct free_deleter): Remove.
14811 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
14813 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14815 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
14816 NULL for an empty pathname.
14818 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14820 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
14821 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
14822 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
14823 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
14824 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
14825 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
14826 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
14827 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14828 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14829 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14830 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14831 (fbsd_core_fetch_timeval, fbsd_print_sigset)
14832 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14833 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
14834 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14836 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14838 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14839 (gnu_xfer_auxv): New function.
14840 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14841 TARGET_OBJECT_AUXV.
14843 2018-01-08 Yao Qi <yao.qi@linaro.org>
14844 Simon Marchi <simon.marchi@ericsson.com>
14846 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14848 (COMMON_OBS): Remove selftest.o.
14849 * configure.ac: Append selftest-arch.c and common/selftest.c to
14850 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
14851 * configure: Re-generated.
14852 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14854 (maintenance_info_selftests): Likewise.
14856 2018-01-08 Xavier Roirand <roirand@adacore.com>
14858 * ada-valprint.c (val_print_packed_array_elements): Use
14859 proper number of elements when printing an array indexed
14860 by an enumeration type.
14862 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14864 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14865 (dw2_get_file_names_reader): Adjust.
14866 (lookup_dwo_signatured_type): Adjust.
14867 (lookup_dwp_signatured_type): Adjust.
14868 (lookup_signatured_type): Adjust.
14869 (create_type_unit_group): Adjust.
14870 (get_type_unit_group): Adjust.
14871 (process_psymtab_comp_unit_reader): Adjust.
14872 (build_type_psymtabs_reader): Adjust.
14873 (scan_partial_symbols): Adjust.
14874 (add_partial_symbol): Adjust.
14875 (add_partial_subprogram): Adjust.
14876 (peek_die_abbrev): Adjust.
14877 (fixup_go_packaging): Adjust.
14878 (process_imported_unit_die): Adjust.
14879 (dwarf2_compute_name): Adjust.
14880 (dwarf2_physname): Adjust.
14881 (read_import_statement): Adjust.
14882 (handle_DW_AT_stmt_list): Adjust.
14883 (read_file_scope): Adjust.
14884 (read_func_scope): Adjust.
14885 (read_lexical_block_scope): Adjust.
14886 (read_call_site_scope): Adjust.
14887 (read_variable): Adjust.
14888 (dwarf2_rnglists_process): Adjust.
14889 (dwarf2_ranges_process): Adjust.
14890 (dwarf2_ranges_read): Adjust.
14891 (dwarf2_get_pc_bounds): Adjust.
14892 (dwarf2_record_block_ranges): Adjust.
14893 (dwarf2_add_field): Adjust.
14894 (dwarf2_add_member_fn): Adjust.
14895 (read_structure_type): Adjust.
14896 (process_structure_scope): Adjust.
14897 (read_enumeration_type): Adjust.
14898 (read_array_type): Adjust.
14899 (mark_common_block_symbol_computed): Adjust.
14900 (read_common_block): Adjust.
14901 (read_namespace_type): Adjust.
14902 (read_namespace): Adjust.
14903 (read_module_type): Adjust.
14904 (read_tag_pointer_type): Adjust.
14905 (read_tag_ptr_to_member_type): Adjust.
14906 (read_tag_string_type): Adjust.
14907 (read_subroutine_type): Adjust.
14908 (read_typedef): Adjust.
14909 (read_base_type): Adjust.
14910 (attr_to_dynamic_prop): Adjust.
14911 (read_subrange_type): Adjust.
14912 (read_unspecified_type): Adjust.
14913 (dwarf2_read_abbrevs): Adjust.
14914 (load_partial_dies): Adjust.
14915 (read_partial_die): Adjust.
14916 (find_partial_die): Adjust.
14917 (guess_partial_die_structure_name): Adjust.
14918 (fixup_partial_die): Adjust.
14919 (read_attribute_value): Adjust.
14920 (read_addr_index): Adjust.
14921 (read_addr_index_from_leb128): Adjust.
14922 (read_str_index): Adjust.
14923 (dwarf2_string_attr): Adjust.
14924 (get_debug_line_section): Adjust.
14925 (dwarf_decode_line_header): Adjust.
14926 (lnp_state_machine::check_line_address): Adjust.
14927 (dwarf_decode_lines_1): Adjust.
14928 (dwarf_decode_lines): Adjust.
14929 (dwarf2_start_symtab): Adjust.
14930 (var_decode_location): Adjust.
14931 (new_symbol_full): Adjust.
14932 (dwarf2_const_value_data): Adjust.
14933 (dwarf2_const_value_attr): Adjust.
14934 (dwarf2_const_value): Adjust.
14935 (die_type): Adjust.
14936 (die_containing_type): Adjust.
14937 (build_error_marker_type): Adjust.
14938 (lookup_die_type): Adjust.
14939 (guess_full_die_structure_name): Adjust.
14940 (anonymous_struct_prefix): Adjust.
14941 (determine_prefix): Adjust.
14942 (dwarf2_name): Adjust.
14943 (follow_die_ref_or_sig): Adjust.
14944 (follow_die_offset): Adjust.
14945 (follow_die_ref): Adjust.
14946 (follow_die_sig_1): Adjust.
14947 (follow_die_sig): Adjust.
14948 (get_signatured_type): Adjust.
14949 (get_DW_AT_signature_type): Adjust.
14950 (decode_locdesc): Adjust.
14951 (dwarf_decode_macros): Adjust.
14952 (cu_debug_loc_section): Adjust.
14953 (fill_in_loclist_baton): Adjust.
14954 (dwarf2_symbol_mark_computed): Adjust.
14955 (init_one_comp_unit): Don't assign
14956 dwarf2_cu::dwarf2_per_objfile.
14957 (set_die_type): Adjust.
14959 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14961 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14962 <dwarf2_per_objfile>: New field.
14963 (dwarf2_per_objfile): Remove global.
14964 (get_dwarf2_per_objfile): New function.
14965 (set_dwarf2_per_objfile): New function.
14966 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14967 dwarf2_per_objfile.
14968 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14969 (read_abbrev_offset): Likewise.
14970 (read_indirect_string): Likewise.
14971 (read_indirect_line_string): Likewise.
14972 (read_indirect_string_at_offset): Likewise.
14973 (read_indirect_string_from_dwz): Likewise.
14974 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14975 dwarf2_per_objfile.
14976 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14977 (create_all_comp_units): Change objfile parameter to
14978 dwarf2_per_objfile.
14979 (create_all_type_units): Likewise.
14980 (process_queue): Add dwarf2_per_objfile parameter.
14981 (read_and_check_comp_unit_head): Likewise.
14982 (lookup_dwo_unit_in_dwp): Likewise.
14983 (get_dwp_file): Likewise.
14984 (process_cu_includes): Likewise.
14985 (struct free_dwo_file_cleanup_data): New struct.
14986 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14987 set_dwarf2_per_objfile.
14988 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14989 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14990 context, adjust calls.
14991 (dw2_instantiate_symtab): Likewise.
14992 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14993 (dw2_get_cu): Likewise.
14994 (create_cu_from_index_list): Change objfile parameter to
14995 dwarf2_per_objfile.
14996 (create_cus_from_index_list): Get dwarf2_per_objfile from
14997 context, adjust calls.
14998 (create_cus_from_index): Likewise.
14999 (create_signatured_type_table_from_index): Change objfile
15000 parameter to dwarf2_per_objfile.
15001 (create_signatured_type_table_from_debug_names): Change objfile
15002 parameter to dwarf2_per_objfile.
15003 (create_addrmap_from_index): Likewise.
15004 (create_addrmap_from_aranges): Likewise.
15005 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
15006 (dw2_setup): Remove.
15007 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15009 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15010 get_dwarf2_per_objfile.
15011 (dw2_forget_cached_source_info): Likewise.
15012 (dw2_map_symtabs_matching_filename): Likewise.
15013 (struct dw2_symtab_iterator) <index>: Remove.
15014 <dwarf2_per_objfile>: New field.
15015 (dw2_symtab_iter_init): Replace index parameter with
15016 dwarf2_per_objfile.
15017 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15018 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15019 (dw2_print_stats): Likewise.
15020 (dw2_dump): Likewise.
15021 (dw2_expand_symtabs_for_function): Likewise.
15022 (dw2_expand_all_symtabs): Likewise.
15023 (dw2_expand_symtabs_with_fullname): Likewise.
15024 (dw2_expand_marked_cus): Replace index and objfile parameters
15025 with dwarf2_per_objfile.
15026 (dw_expand_symtabs_matching_file_matcher): Add
15027 dwarf2_per_objfile parameter and adjust calls.
15028 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15030 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15031 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15033 (create_cus_from_debug_names_list): Replace objfile parameter
15034 with dwarf2_per_objfile and adjust calls.
15035 (create_cus_from_debug_names): Likewise.
15036 (dwarf2_read_debug_names): Likewise.
15037 (mapped_debug_names::namei_to_name): Adjust call.
15038 (dw2_debug_names_iterator::next): Likewise.
15039 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
15040 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
15041 (dw2_debug_names_dump): Likewise.
15042 (dw2_debug_names_expand_symtabs_for_function): Likewise.
15043 (dw2_debug_names_expand_symtabs_matching): Likewise.
15044 (dwarf2_initialize_objfile): Likewise.
15045 (dwarf2_build_psymtabs): Likewise.
15046 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
15048 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
15049 (read_and_check_comp_unit_head): Likewise.
15050 (read_abbrev_offset): Likewise.
15051 (create_debug_type_hash_table): Likewise.
15052 (create_debug_types_hash_table): Likewise.
15053 (create_all_type_units): Replace objfile parameter with
15054 dwarf2_per_objfile.
15055 (add_type_unit): Add dwarf2_per_objfile parameter.
15056 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
15057 with dwarf2_per_objfile.
15058 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
15059 (lookup_dwp_signatured_type): Likewise.
15060 (lookup_signatured_type): Likewise.
15061 (read_cutu_die_from_dwo): Likewise.
15062 (init_tu_and_read_dwo_dies): Likewise.
15063 (init_cutu_and_read_dies): Likewise.
15064 (init_cutu_and_read_dies_no_follow): Likewise.
15065 (allocate_type_unit_groups_table): Add objfile parameter.
15066 (create_type_unit_group): Use dwarf2_per_objfile from cu.
15067 (get_type_unit_group): Likewise.
15068 (process_psymtab_comp_unit): Update call.
15069 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
15070 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
15071 (print_tu_stats): Likewise.
15072 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
15073 in void* parameter.
15074 (build_type_psymtabs): Change objfile parameter to
15075 dwarf2_per_objfile.
15076 (process_skeletonless_type_unit): Use dwarf2_per_objfile
15077 passed in void* parameter.
15078 (process_skeletonless_type_units): Change objfile parameter to
15079 dwarf2_per_objfile.
15080 (set_partial_user): Likewise.
15081 (dwarf2_build_psymtabs_hard): Likewise.
15082 (read_comp_units_from_section): Likewise.
15083 (create_all_comp_units): Likewise.
15084 (scan_partial_symbols): Update calls.
15085 (add_partial_symbol): Likewise.
15086 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
15087 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
15088 (process_queue): Add dwarf2_per_objfile parameter.
15089 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
15090 (compute_compunit_symtab_includes): Likewise.
15091 (process_cu_includes): Add dwarf2_per_objfile parameter.
15092 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
15093 (process_full_type_unit): Likewise.
15094 (process_imported_unit_die): Update call.
15095 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
15096 (read_file_scope): Likewise.
15097 (allocate_dwo_file_hash_table): Add objfile parameter.
15098 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
15099 (create_cus_hash_table): Likewise.
15100 (create_dwp_hash_table): Likewise.
15101 (create_dwo_unit_in_dwp_v1): Likewise.
15102 (create_dwp_v2_section): Likewise.
15103 (create_dwo_unit_in_dwp_v2): Likewise.
15104 (lookup_dwo_unit_in_dwp): Likewise.
15105 (try_open_dwop_file): Likewise.
15106 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
15107 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
15108 cleanup to include a reference to dwarf2_per_objfile.
15109 (open_dwp_file): Add dwarf2_per_objfile parameter.
15110 (open_and_init_dwp_file): Likewise.
15111 (get_dwp_file): Likewise.
15112 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
15113 (queue_and_load_all_dwo_tus): Update call.
15114 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
15116 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
15117 (dwarf2_ranges_process): Likewise.
15118 (dwarf2_get_pc_bounds): Likewise.
15119 (mark_common_block_symbol_computed): Likewise.
15120 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15121 (dwarf2_read_abbrevs): Update call.
15122 (read_partial_die): Use dwarf2_per_objfile from cu.
15123 (find_partial_die): Likewise.
15124 (fixup_partial_die): Likewise.
15125 (read_attribute_value): Likewise.
15126 (read_indirect_string_at_offset_from): Add objfile parameter.
15127 (read_indirect_string_at_offset): Add dwarf2_per_objfile
15129 (read_indirect_string_from_dwz): Add objfile parameter.
15130 (read_indirect_string): Add objfile parameter.
15131 (read_addr_index_1): Add dwarf2_per_objfile parameter.
15132 (read_addr_index): Use dwarf2_per_objfile from cu.
15133 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
15135 (read_str_index): Use dwarf2_per_objfile from cu.
15136 (get_debug_line_section): Likewise.
15137 (read_formatted_entries): Add dwarf2_per_objfile parameter.
15138 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
15139 (new_symbol_full): Use dwarf2_per_objfile from cu.
15140 (build_error_marker_type): Likewise.
15141 (lookup_die_type): Likewise.
15142 (determine_prefix): Likewise.
15143 (follow_die_offset): Likewise.
15144 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
15145 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
15146 (dwarf2_fetch_die_type_sect_off): Likewise.
15147 (dwarf2_get_die_type): Likewise.
15148 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
15149 (get_signatured_type): Likewise.
15150 (get_DW_AT_signature_type): Likewise.
15151 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
15152 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
15153 (cu_debug_loc_section): Likewise.
15154 (fill_in_loclist_baton): Likewise.
15155 (dwarf2_symbol_mark_computed): Likewise.
15156 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15157 dwarf2_per_objfile.
15158 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
15160 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15161 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
15162 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
15163 (set_die_type): Use dwarf2_free_objfile from cu.
15164 (get_die_type_at_offset): Likewise.
15165 (dwarf2_per_objfile_free): Don't assign global variable.
15166 (debug_names) <constructor>: Add dwarf2_per_objfile
15167 parameter, update m_debugstrlookup construction.
15168 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
15170 <m_dwarf2_per_objfile>: New field.
15171 <lookup>: Use m_dwarf2_per_objfile.
15172 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
15173 (psyms_seen_size): Likewise.
15174 (write_gdbindex): Replace objfile parameter with
15175 dwarf2_per_objfile.
15176 (write_debug_names): Likewise.
15177 (write_psymtabs_to_index): Likewise.
15178 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
15181 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15183 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
15184 <dwarf2_per_objfile>: New field.
15185 (struct dwarf2_per_cu_data) <objfile>: Remove.
15186 <dwarf2_per_objfile>: New field.
15187 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
15189 (create_signatured_type_table_from_index): Likewise.
15190 (create_debug_type_hash_table): Likewise.
15191 (fill_in_sig_entry_from_dwo_entry): Likewise.
15192 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
15193 (create_type_unit_group): Assign dwarf2_per_objfile instead of
15195 (create_partial_symtab): Access objfile through
15196 dwarf2_per_objfile.
15197 (process_psymtab_comp_unit_reader): Likewise.
15198 (read_comp_units_from_section): Likewise.
15199 (scan_partial_symbols): Likewise.
15200 (add_partial_symbol): Likewise.
15201 (add_partial_subprogram): Likewise.
15202 (peek_die_abbrev): Likewise.
15203 (fixup_go_packaging): Likewise.
15204 (process_full_comp_unit): Likewise.
15205 (process_full_type_unit): Likewise.
15206 (process_imported_unit_die): Likewise.
15207 (dwarf2_compute_name): Likewise.
15208 (dwarf2_physname): Likewise.
15209 (read_import_statement): Likewise.
15210 (create_cus_hash_table): Assign dwarf2_physname instead of
15212 (read_func_scope): Access objfile through dwarf2_per_objfile.
15213 (read_lexical_block_scope): Likewise.
15214 (read_call_site_scope): Likewise.
15215 (read_variable): Likewise.
15216 (dwarf2_rnglists_process): Likewise.
15217 (dwarf2_ranges_process): Likewise.
15218 (dwarf2_ranges_read): Likewise.
15219 (dwarf2_record_block_ranges): Likewise.
15220 (dwarf2_add_field): Likewise.
15221 (dwarf2_add_member_fn): Likewise.
15222 (read_structure_type): Likewise.
15223 (process_structure_scope): Likewise.
15224 (read_enumeration_type): Likewise.
15225 (read_array_type): Likewise.
15226 (read_common_block): Likewise.
15227 (read_namespace_type): Likewise.
15228 (read_namespace): Likewise.
15229 (read_module_type): Likewise.
15230 (read_tag_pointer_type): Likewise.
15231 (read_tag_ptr_to_member_type): Likewise.
15232 (read_tag_string_type): Likewise.
15233 (read_subroutine_type): Likewise.
15234 (read_typedef): Likewise.
15235 (read_base_type): Likewise.
15236 (attr_to_dynamic_prop): Likewise.
15237 (read_subrange_type): Likewise.
15238 (read_unspecified_type): Likewise.
15239 (load_partial_dies): Likewise.
15240 (read_partial_die): Likewise.
15241 (find_partial_die): Likewise.
15242 (guess_partial_die_structure_name): Likewise.
15243 (fixup_partial_die): Likewise.
15244 (read_attribute_value): Likewise.
15245 (read_addr_index_from_leb128): Likewise.
15246 (dwarf2_read_addr_index): Likewise.
15247 (dwarf2_string_attr): Likewise.
15248 (lnp_state_machine::check_line_address): Likewise.
15249 (dwarf_decode_lines_1): Likewise.
15250 (dwarf_decode_lines): Likewise.
15251 (dwarf2_start_symtab): Likewise.
15252 (var_decode_location): Likewise.
15253 (new_symbol_full): Likewise.
15254 (dwarf2_const_value_data): Likewise.
15255 (dwarf2_const_value_attr): Likewise.
15256 (dwarf2_const_value): Likewise.
15257 (die_type): Likewise.
15258 (die_containing_type): Likewise.
15259 (lookup_die_type): Likewise.
15260 (guess_full_die_structure_name): Likewise.
15261 (anonymous_struct_prefix): Likewise.
15262 (dwarf2_name): Likewise.
15263 (follow_die_ref_or_sig): Likewise.
15264 (follow_die_offset): Likewise.
15265 (follow_die_ref): Likewise.
15266 (dwarf2_fetch_die_loc_sect_off): Likewise.
15267 (dwarf2_fetch_constant_bytes): Likewise.
15268 (dwarf2_fetch_die_type_sect_off): Likewise.
15269 (dwarf2_get_die_type): Likewise.
15270 (follow_die_sig): Likewise.
15271 (decode_locdesc): Likewise.
15272 (dwarf2_per_cu_objfile): Likewise.
15273 (dwarf2_per_cu_text_offset): Likewise.
15274 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
15276 (set_die_type): Access objfile through
15277 dwarf2_per_objfile.
15279 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15281 * valprint.c (converted_character_d): Remove typedef.
15282 (DEF_VEC_O (converted_character_d)): Remove.
15283 (count_next_character): Use std::vector.
15284 (print_converted_chars_to_obstack): Likewise.
15285 (generic_printstr): Likewise.
15287 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15289 * xml-support.h (struct gdb_xml_value): Add constructor.
15290 <value>: Change type to unique_xmalloc_ptr.
15291 (gdb_xml_value_s): Remove typedef.
15292 (DEF_VEC_O (gdb_xml_value_s)): Remove.
15293 (gdb_xml_element_start_handler): Change parameter type to
15295 (xml_find_attribute): Likewise.
15296 * xml-support.c (xml_find_attribute): Change parameter type to
15297 std::vector and adjust.
15298 (gdb_xml_values_cleanup): Remove.
15299 (gdb_xml_parser::start_element): Adjust to std::vector.
15300 (xinclude_start_include): Change paraeter type to std::vector
15302 * btrace.c (check_xml_btrace_version): Likewise.
15303 (parse_xml_btrace_block): Likewise.
15304 (parse_xml_btrace_pt_config_cpu): Likewise.
15305 (parse_xml_btrace_pt): Likewise.
15306 (parse_xml_btrace_conf_bts): Likewise.
15307 (parse_xml_btrace_conf_pt): Likewise.
15308 * memory-map.c (memory_map_start_memory): Likewise.
15309 (memory_map_start_property): Likewise.
15310 * osdata.c (osdata_start_osdata): Likewise.
15311 (osdata_start_item): Likewise.
15312 (osdata_start_column): Likewise.
15313 * remote.c (start_thread): Likewise.
15314 * solib-aix.c (library_list_start_library): Likewise.
15315 (library_list_start_list): Likewise.
15316 * solib-svr4.c (library_list_start_library): Likewise.
15317 (svr4_library_list_start_list): Likewise.
15318 * solib-target.c (library_list_start_segment): Likewise.
15319 (library_list_start_section): Likewise.
15320 (library_list_start_library): Likewise.
15321 (library_list_start_list): Likewise.
15322 * tracepoint.c (traceframe_info_start_memory): Likewise.
15323 (traceframe_info_start_tvar): Likewise.
15324 * xml-syscall.c (syscall_start_syscall): Likewise.
15325 * xml-tdesc.c (tdesc_start_target): Likewise.
15326 (tdesc_start_feature): Likewise.
15327 (tdesc_start_reg): Likewise.
15328 (tdesc_start_union): Likewise.
15329 (tdesc_start_struct): Likewise.
15330 (tdesc_start_flags): Likewise.
15331 (tdesc_start_enum): Likewise.
15332 (tdesc_start_field): Likewise.
15333 (tdesc_start_enum_value): Likewise.
15334 (tdesc_start_vector): Likewise.
15336 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15338 * extension.h (struct xmethod_worker) <clone>: Remove.
15339 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
15341 (python_xmethod_worker::clone): Remove.
15342 * valops.c (find_overload_match): Use std::move instead of
15345 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15347 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
15348 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
15349 <free_xmethod_worker_data>: Remove.
15350 <get_matching_xmethod_workers>: Chance VEC to std::vector.
15351 <get_xmethod_arg_types>: Remove.
15352 <get_xmethod_result_type>: Remove.
15353 <invoke_xmethod>: Remove.
15354 * extension.c (new_xmethod_worker): Remove.
15355 (clone_xmethod_worker): Remove.
15356 (get_matching_xmethod_workers): Return void, pass std::vector by
15358 (get_xmethod_arg_types): Rename to...
15359 (xmethod_worker::get_arg_types): ... this, and adjust.
15360 (get_xmethod_result_type): Rename to...
15361 (xmethod_worker::get_result_type): ... this, and adjust.
15362 (invoke_xmethod): Remove.
15363 (free_xmethod_worker): Remove.
15364 (free_xmethod_worker_vec): Remove.
15365 * extension.h (enum ext_lang_rc): Move here from
15367 (struct xmethod_worker): Add constructor and destructor.
15370 <invoke, clone, do_get_result_type, do_get_arg_types>: New
15371 virtual pure methods.
15372 <get_arg_types, get_result_type>: New methods.
15373 (xmethod_worker_ptr): Remove typedef.
15374 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15375 (xmethod_worker_vec): Remove typedef.
15376 (xmethod_worker_up): New typedef.
15377 (invoke_xmethod): Remove.
15378 (clone_xmethod_worker): Remove.
15379 (free_xmethod_worker): Remove.
15380 (free_xmethod_worker_vec): Remove.
15381 (get_xmethod_arg_types): Remove.
15382 (get_xmethod_result_type): Remove.
15383 * valops.c (find_method_list): Use std::vector, don't use
15384 intermediate vector.
15385 (value_find_oload_method_list): Use std::vector.
15386 (find_overload_match): Use std::vector.
15387 (find_oload_champ): Use std::vector.
15388 * value.c (value_free): Use operator delete.
15389 (value_of_xmethod): Rename to...
15390 (value_from_xmethod): ... this. Don't assign
15391 xmethod_worker::value, take rvalue-reference.
15392 (result_type_of_xmethod): Adjust.
15393 (call_xmethod): Adjust.
15394 * value.h: Include extension.h.
15395 (struct xmethod_worker): Don't forward-declare.
15396 (value_of_xmethod): Rename to...
15397 (value_from_xmethod): ... this, take rvalue-reference.
15398 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15399 (struct python_xmethod_worker): ... this, add constructor and
15401 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15402 (gdbpy_free_xmethod_worker_data): Rename to...
15403 (python_xmethod_worker::~python_xmethod_worker): ... this and
15405 (gdbpy_clone_xmethod_worker_data): Rename to...
15406 (python_xmethod_worker::clone): ... this and adjust.
15407 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15409 (gdbpy_get_xmethod_arg_types): Rename to...
15410 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15411 (gdbpy_get_xmethod_result_type): Rename to...
15412 (python_xmethod_worker::do_get_result_type): ... this and
15414 (gdbpy_invoke_xmethod): Rename to...
15415 (python_xmethod_worker::invoke): ... this and adjust.
15416 (new_python_xmethod_worker): Rename to...
15417 (python_xmethod_worker::python_xmethod_worker): ... this and
15419 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15421 (gdbpy_free_xmethod_worker_data): Remove.
15422 (gdbpy_get_matching_xmethod_workers): Use std::vector.
15423 (gdbpy_get_xmethod_arg_types): Remove.
15424 (gdbpy_get_xmethod_result_type): Remove.
15425 (gdbpy_invoke_xmethod): Remove.
15426 * python/python.c (python_extension_ops): Remove obsolete
15429 2018-01-05 Pedro Alves <palves@redhat.com>
15432 * common/signals-state-save-restore.c
15433 (save_original_signals_state): New parameter 'quiet'. Warn if we
15434 find a custom handler preinstalled, instead of internal erroring.
15435 But only warn if !quiet.
15436 * common/signals-state-save-restore.h
15437 (save_original_signals_state): New parameter 'quiet'.
15438 * main.c (captured_main_1): Move save_original_signals_state call
15439 after option handling, and pass QUIET.
15441 2018-01-05 Pedro Alves <palves@redhat.com>
15443 * spu-tdep.c (spu_catch_start): Pass
15444 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15446 2018-01-05 Pedro Alves <palves@redhat.com>
15449 * ada-lang.c (literal_symbol_name_matcher): New function.
15450 (ada_get_symbol_name_matcher): Use it for
15451 symbol_name_match_type::SEARCH_NAME.
15452 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
15453 it down instead of assuming symbol_name_match_type::FULL.
15454 * block.h (block_lookup_symbol): New parameter 'match_type'.
15455 * c-valprint.c (print_unpacked_pointer): Use
15456 lookup_symbol_search_name instead of lookup_symbol.
15457 * compile/compile-object-load.c (get_out_value_type): Pass down
15458 symbol_name_match_type::SEARCH_NAME.
15459 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15460 symbol_name_match_type::FULL.
15461 * cp-support.c (cp_get_symbol_name_matcher): Handle
15462 symbol_name_match_type::SEARCH_NAME.
15463 * infrun.c (insert_exception_resume_breakpoint): Use
15464 lookup_symbol_search_name.
15465 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15466 * psymtab.c (maintenance_check_psymtabs): Use
15467 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15468 * stack.c (print_frame_args): Use lookup_symbol_search_name and
15469 SYMBOL_SEARCH_NAME.
15470 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
15471 if symbol_name_match_type::SEARCH_NAME.
15472 (lookup_symbol_in_language): Pass down
15473 symbol_name_match_type::FULL.
15474 (lookup_symbol_search_name): New.
15475 (lookup_language_this): Pass down
15476 symbol_name_match_type::SEARCH_NAME.
15477 (lookup_symbol_aux, lookup_local_symbol): New parameter
15478 'match_type'. Pass it down.
15479 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
15480 (lookup_symbol_search_name): New declaration.
15481 (lookup_symbol_in_block): New 'match_type' parameter.
15483 2018-01-05 Pedro Alves <palves@redhat.com>
15486 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
15488 (ada_lookup_symbol): Reimplement in terms of
15489 ada_lookup_symbol_list, bits factored out from
15490 ada_lookup_encoded_symbol.
15492 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15494 * ada-exp.y (write_object_renaming): When subscripting an array
15495 using a symbol as the index, pass the block in call to
15496 ada_lookup_encoded_symbol when looking that symbol up.
15498 2018-01-05 Jerome Guitton <guitton@adacore.com>
15500 * ada-lang.c (ada_array_length): Use ada_index_type instead of
15503 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15505 * ada-lang.c (ada_to_fixed_value_create): Add handling of
15506 the case where VALUE_LVAL (val0) is not lval_memory.
15508 2018-01-05 Xavier Roirand <roirand@adacore.com>
15510 * ada-valprint.c (print_optional_low_bound): Handle
15511 character-indexed array printing like boolean-indexed array
15514 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15516 * NEWS: Create a new section for the next release branch.
15517 Rename the section of the current branch, now that it has
15520 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15522 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
15523 * version.in: Bump version to 8.1.50.DATE-git.
15525 2018-01-03 Xavier Roirand <roirand@adacore.com>
15527 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
15529 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
15531 (default_exception_support_info) <catch_handlers_sym>: Add field.
15532 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
15533 (ada_exception_name_addr_1): Add "catch handlers" handling.
15534 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
15535 Update all callers.
15536 (create_excep_cond_exprs) <ex>: Add parameter.
15537 (re_set_exception): Update create_excep_cond_exprs call.
15538 (print_it_exception, print_one_exception, print_mention_exception)
15539 (print_recreate_exception): Add "catch handler" handling.
15540 (allocate_location_catch_handlers, re_set_catch_handlers)
15541 (check_status_catch_handlers, print_it_catch_handlers)
15542 (print_one_catch_handlers, print_mention_catch_handlers)
15543 (print_recreate_catch_handlers): New function.
15544 (catch_handlers_breakpoint_ops): New variable.
15545 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
15546 Add parameter. Add "catch handler" handling.
15547 (ada_exception_sym_name, ada_exception_breakpoint_ops):
15548 Add "catch handler" handling.
15549 (ada_exception_catchpoint_cond_string): Add "catch handler"
15551 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
15553 (catch_ada_handlers_command): New function.
15554 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
15555 operations structure.
15556 (_initialize_ada_language): Add "catch handlers" command entry.
15557 * NEWS: Document "catch handlers" feature.
15559 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15561 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
15562 account when creating the array type of the slice.
15563 (ada_value_slice): Likewise.
15565 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15567 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
15569 (create_array_type_with_stride): Add byte_stride_prop parameter.
15570 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
15571 New parameter. Update all callers in this file.
15572 (array_type_has_dynamic_stride): New function.
15573 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
15574 of arrays with dynamic byte strides.
15575 * dwarf2read.c (read_array_type): Add support for dynamic
15576 DW_AT_byte_stride attributes.
15578 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15580 * dwarf2read.c (read_unspecified_type): Treat
15581 DW_TAG_enumeration_type DIEs from Ada units as stubs.
15583 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15585 Update copyright year range in all GDB files.
15587 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
15589 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
15590 and gdb/testsuite/gdb.base/step-line.c.
15592 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15594 * copyright.py (main): Dump the contents of
15595 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
15596 even if BY_HAND is empty.
15598 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15600 * top.c (print_gdb_version): Update Copyright year in version
15603 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15605 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
15607 For older changes see ChangeLog-2017.
15613 version-control: never