ada-tasks.c::read_atcb: start from a cleared ada_task_info result
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-11-07 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-tasks.c (read_atcb): Clear task_info before computing
4 the value of each of its fields.
5
6 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
9 NULL before dereferencing it.
10
11 2018-11-06 Tom de Vries <tdevries@suse.de>
12
13 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
14 program headers.
15
16 2018-11-06 Max Filippov <jcmvbkbc@gmail.com>
17
18 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
19 so that it applies to uclinux as well.
20
21 2018-11-06 Marius Muench <marius.muench@eurecom.fr>
22
23 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
24 when on AAPCS.
25
26 2018-11-06 John Baldwin <jhb@FreeBSD.org>
27
28 * riscv-fbsd-nat.c (getregs_supplies): Return true for
29 RISCV_CSR_SSTATUS_REGNUM.
30
31 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
32
33 * source.c (open_source_file): Fix leak by transferring the
34 current s->fullname to the unique_xmalloc_ptr fullname given
35 to find_and_open_source.
36
37 2018-11-04 Tom Tromey <tom@tromey.com>
38
39 * varobj.c (install_default_visualizer): Update.
40 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
41 Return gdbpy_ref.
42 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
43 (find_pretty_printer_from_progspace)
44 (find_pretty_printer_from_gdb, find_pretty_printer)
45 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
46 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
47 Update.
48
49 2018-11-04 Tom Tromey <tom@tromey.com>
50
51 * python/python.c (gdbpy_parameter_value): Update.
52 * python/python-internal.h (python_string_to_unicode)
53 (python_string_to_target_python_string)
54 (host_string_to_python_string): Return gdbpy_ref.
55 * python/py-utils.c (python_string_to_unicode)
56 (unicode_to_encoded_python_string)
57 (unicode_to_target_python_string)
58 (python_string_to_target_string)
59 (python_string_to_target_python_string): Return gdbpy_ref.
60 (python_string_to_host_string): Update.
61 (host_string_to_python_string): Return gdbpy_ref.
62 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
63 (stpy_fullname): Update.
64 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
65 Update.
66 * python/py-prettyprint.c (print_string_repr): Update.
67 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
68 (objfpy_get_build_id): Update.
69 * python/py-breakpoint.c (bppy_get_location)
70 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
71 Update.
72
73 2018-11-04 Tom Tromey <tom@tromey.com>
74
75 * python/python-internal.h (gdb_py_object_from_longest)
76 (gdb_py_object_from_ulongest): Return gdbpy_ref.
77 * python/py-value.c (valpy_int): Update.
78 * python/py-utils.c (gdb_py_object_from_longest): Return
79 gdbpy_ref.
80 (gdb_py_object_from_ulongest): Likewise.
81 * python/py-type.c (typy_get_alignof): Update.
82 * python/py-linetable.c (ltpy_get_all_source_lines)
83 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
84 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
85
86 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
87
88 * ada-lang.c (_initialize_ada_language): Fix typo.
89
90 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
91
92 * language.c (type): Remove.
93 (_initialize_language): Remove assignment to type.
94
95 2018-11-02 Joel Brobecker <brobecker@adacore.com>
96
97 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
98 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
99 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
100 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
101 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
102 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
103 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
104 and aarch64-ravenscar-thread.o.
105 * NEWS: Add entry documenting Ravenscar tasking support
106 on AArch64 ELF.
107
108 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
109
110 * symtab.c (info_functions_command): Initialize quiet flag.
111 * stack.c (info_args_command): Likewise.
112
113 2018-11-01 Jim Wilson <jimw@sifive.com>
114
115 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
116 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
117 debugging messages.
118
119 2018-11-01 Joel Brobecker <brobecker@adacore.com>
120
121 * ada-lang.c (ada_watch_location_expression): New function.
122 (ada_language_defn): Set la_watch_location_expression to
123 ada_watch_location_expression.
124
125 2018-11-01 Joel Brobecker <brobecker@adacore.com>
126
127 * print-utils.c (int_string): Remove unnecessary trailing spaces.
128
129 2018-11-01 Joel Brobecker <brobecker@adacore.com>
130
131 * rs6000-tdep.c (skip_prologue): Fix potential negative left
132 shifting.
133
134 2018-11-01 Jerome Guitton <guitton@adacore.com>
135 Joel Brobecker <brobecker@adacore.com>
136
137 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
138 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
139 * arm-pikeos-tdep.c: New file.
140 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
141 embedded system.
142 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
143
144 2018-11-01 Simon Marchi <simon.marchi@ericsson.com>
145
146 * common/pathstuff.c (get_standard_temp_dir): New.
147 * common/pathstuff.h (get_standard_temp_dir): New.
148 * config.in: Re-generate.
149 * configure: Re-generate.
150 * configure.ac: Don't check for mkdtemp.
151 * gnulib/aclocal-m4-deps.mk: Re-generate.
152 * gnulib/aclocal.m4: Re-generate.
153 * gnulib/config.in: Re-generate.
154 * gnulib/configure: Re-generate.
155 * gnulib/import/Makefile.am: Re-generate.
156 * gnulib/import/Makefile.in: Re-generate.
157 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
158 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
159 * gnulib/import/m4/mkdtemp.m4: New file.
160 * gnulib/import/mkdtemp.c: New file.
161 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
162 Add mkdtemp module.
163 * unittests/mkdir-recursive-selftests.c (test): Use
164 get_standard_temp_dir.
165 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
166 ifdef.
167 * compile/compile.c (get_compile_file_tempdir): Likewise.
168
169 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
170
171 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
172 (SIG_FRAME_LR_OFFSET64): New define.
173 (SIG_FRAME_FP_OFFSET64): New define.
174 (aix_sighandle_frame_cache): New Function.
175 (aix_sighandle_frame_this_id): New Function.
176 (aix_sighandle_frame_prev_register): New Function.
177 (aix_sighandle_frame_sniffer): New Function.
178 (aix_sighandle_frame_unwind): New global variable.
179 (rs6000_aix_init_osabi): Install new frame unwinder.
180
181 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
182
183 PR gdb/23835
184 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
185 already defined.
186
187 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
188
189 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
190
191 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
192
193 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
194 (producer_is_icc): New function.
195 (check_producer): Set producer_is_icc field on dwarf2_cu.
196 (dwarf2_init_integer_type): New function.
197 (read_base_type): Call dwarf2_init_integer_type instead of
198 init_integer_type in all cases.
199 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
200 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
201 LEN is greater than 0.
202
203 2018-10-30 Tom Tromey <tom@tromey.com>
204
205 * main.c (captured_main_1): Check return value of bfd_init.
206
207 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
208
209 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
210 Adjust comments.
211
212 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
213
214 * procfs.c: Include common/pathstuff.h.
215
216 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
217
218 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
219 Add missing braces. No functional change.
220
221 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
222
223 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
224 to report a bad option and fix indentation.
225 * demangle.c (demangle_command): Use report_unrecognized_option_error
226 to report a bad option and correctly report the bad option.
227
228 2018-10-27 Tom Tromey <tom@tromey.com>
229
230 PR cli/23364:
231 * darwin-nat.c (copied_shell): New global.
232 (may_have_sip): Rename from should_disable_startup_with_shell.
233 (copy_shell_to_cache, maybe_cache_shell): New functions.
234 (darwin_nat_target::create_inferior): Update. Use
235 copied_shell.
236
237 2018-10-27 Tom Tromey <tom@tromey.com>
238
239 * unittests/scoped_fd-selftests.c (test_to_file): New function.
240 (run_tests): Call test_to_file.
241 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
242 temporary files.
243 * common/scoped_fd.h (scoped_fd::to_file): New method.
244
245 2018-10-27 Tom Tromey <tom@tromey.com>
246
247 * unittests/scoped_mmap-selftests.c (test_normal): Use
248 gdb_mkostemp_cloexec.
249 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
250 Use gdb_mkostemp_cloexec.
251 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
252 gnulib/config.in, gnulib/configure,
253 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
254 gnulib/import/m4/gnulib-cache.m4,
255 gnulib/import/m4/gnulib-comp.m4: Update.
256 * gnulib/import/m4/mkostemp.m4: New file.
257 * gnulib/import/m4/mkstemp.m4: Remove.
258 * gnulib/import/mkostemp.c: New file.
259 * gnulib/import/mkstemp.m4: Remove.
260 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
261 mkstemp, add mkostemp. Apply new patch.
262 * gnulib/import/stdlib.in.h: Apply patch.
263 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
264 New file.
265 * dwarf-index-write.c (write_psymtabs_to_index): Use
266 gdb_mkostemp_cloexec.
267 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
268
269 2018-10-27 Tom Tromey <tom@tromey.com>
270
271 * unittests/mkdir-recursive-selftests.c: New file.
272 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
273 unittests/mkdir-recursive-selftests.c.
274 * dwarf-index-cache.c (mkdir_recursive): Move to
275 common/filestuff.c.
276 (index_cache::store): Check return value of mkdir_recursive.
277 (create_dir_and_check, test_mkdir_recursive): Move to new file.
278 (_initialize_index_cache): Don't register test.
279 * common/filestuff.h (mkdir_recursive): Declare.
280 * common/filestuff.c (mkdir_recursive): Move from
281 dwarf-index-cache.c. Return bool.
282
283 2018-10-27 Tom Tromey <tom@tromey.com>
284
285 * dwarf-index-write.c (write_psymtabs_to_index): Move
286 make_temp_filename to common/pathstuff.c.
287 * common/pathstuff.h (make_temp_filename): Declare.
288 * common/pathstuff.c (make_temp_filename): New function, moved
289 from dwarf-index-write.c.
290
291 2018-10-27 Tom Tromey <tom@tromey.com>
292
293 * procfs.c (procfs_target::create_inferior): Use get_shell.
294 * cli/cli-cmds.c (shell_escape): Use get_shell.
295 * windows-nat.c (windows_nat_target::create_inferior): Use
296 get_shell.
297 * common/pathstuff.c (get_shell): New function.
298 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
299 (fork_inferior): Use get_shell.
300 * common/pathstuff.h (get_shell): Declare.
301
302 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
303
304 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
305
306 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
307
308 * stack.c (print_variable_and_value_data): Add preg and treg.
309 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
310 and update callers.
311 (print_frame_arg_vars): Likewise.
312 (prepare_reg): New function.
313 (info_locals_command): Extract info print args and use them.
314 (info_args_command): Likewise.
315 (_initialize_stack): Modify on-line help.
316 * symtab.c (treg_matches_sym_type_name): New function.
317 (search_symbols): New arg t_regexp.
318 (symtab_symbol_info): New args quiet, regexp, t_regexp.
319 (info_variables_command): Extract info print args and use them.
320 (info_functions_command): Likewise.
321 (info_types_command): Update call to symtab_symbol_info.
322 (_initialize_symtab): Modify on-line help.
323 * symtab.h (treg_matches_sym_type_name): New function.
324 (search_symbols): New t_regexp arg.
325
326 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
327
328 * cli-utils.c (extract_arg_maybe_quoted): New function.
329 (extract_info_print_args): New function.
330 (info_print_args_help): New function.
331 (report_unrecognized_option_error): New function.
332 * cli-utils.h (extract_arg_maybe_quoted): New function.
333 (extract_info_print_args): New function.
334 (info_print_args_help): New function.
335 (report_unrecognized_option_error): New function.
336
337 2018-10-26 Tom Tromey <tom@tromey.com>
338
339 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
340 (compute_compunit_symtab_includes): Update.
341 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
342 (compunit_symtab_ptr): Likewise.
343
344 2018-10-26 John Baldwin <jhb@FreeBSD.org>
345
346 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
347 default_print_auxv_entry for specific tag values.
348
349 2018-10-26 John Baldwin <jhb@FreeBSD.org>
350
351 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
352
353 2018-10-26 Jim Wilson <jimw@sifive.com>
354
355 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
356 (riscv_linux_sigframe_init): Declare.
357 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
358 (riscv_linux_sigframe): New.
359 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
360 (riscv_linux_sigframe_init): Define.
361 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
362
363 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
364 (riscv_isa_flen): Likewise. Drop static.
365 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
366 (riscv_isa_flen): Likewise. Declare.
367
368 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
369 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
370
371 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
372 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
373 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
374 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
375 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
376 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
377 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
378 Define.
379 (struct ppc_linux_features) <htm>: New field.
380 (ppc_linux_no_features): Add initializer for htm field.
381 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
382 new tdescs.
383 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
384 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
385 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
386 Define if not already defined.
387 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
388 and rs6000/powerpc-isa207-htm-vsx64l.
389 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
390 rs6000/powerpc-isa207-htm-vsx64l.xml.
391 * features/rs6000/power-htm-spr.xml: New file.
392 * features/rs6000/power-htm-core.xml: New file.
393 * features/rs6000/power64-htm-core.xml: New file.
394 * features/rs6000/power-htm-fpu.xml: New file.
395 * features/rs6000/power-htm-altivec.xml: New file.
396 * features/rs6000/power-htm-vsx.xml: New file.
397 * features/rs6000/power-htm-ppr.xml: New file.
398 * features/rs6000/power-htm-dscr.xml: New file.
399 * features/rs6000/power-htm-tar.xml: New file.
400 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
401 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
402 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
403 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
404 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
405 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
406 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
407 fetch_regset with HTM regsets.
408 (store_register, store_ppc_registers): Call store_regset with HTM
409 regsets.
410 (ppc_linux_nat_target::read_description): Set htm field in the
411 features struct if needed.
412 * ppc-linux-tdep.c: Include
413 features/rs6000/powerpc-isa207-htm-vsx32l.c and
414 features/rs6000/powerpc-isa207-htm-vsx64l.c.
415 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
416 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
417 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
418 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
419 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
420 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
421 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
422 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
423 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
424 (ppc32_linux_ctarregset): New globals.
425 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
426 (ppc_linux_collect_core_cpgrregset): New function.
427 (ppc_linux_iterate_over_regset_sections): Call back with the htm
428 regsets.
429 (ppc_linux_core_read_description): Check if the tm spr section is
430 present and set htm in the features struct.
431 (_initialize_ppc_linux_tdep): Call
432 initialize_tdesc_powerpc_isa207_htm_vsx32l and
433 initialize_tdesc_powerpc_isa207_htm_vsx64l.
434 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
435 Declare.
436 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
437 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
438 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
439 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
440 New fields.
441 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
442 Likewise.
443 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
444 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
445 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
446 New enum fields.
447 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
448 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
449 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
450 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
451 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
452 <PPC_CTAR_REGNUM>: Likewise.
453 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
454 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
455 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
456 (IS_CEFP_PSEUDOREG): Define.
457 (rs6000_register_name): Hide the upper halves of checkpointed VSX
458 registers. Return names for the checkpointed DFP, VSX, and EFP
459 pseudo registers.
460 (rs6000_pseudo_register_type): Remove initial assert and raise an
461 internal error in the else clause instead. Return types for the
462 checkpointed DFP, VSX, and EFP pseudo registers.
463 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
464 checkpointed DFP pseudo registers.
465 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
466 checkpointed VSX pseudo registers.
467 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
468 from efpr_pseudo_register_read and
469 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
470 registers.
471 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
472 Handle checkpointed DFP, VSX, and EFP registers.
473 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
474 (efp_ax_pseudo_register_collect): New functions.
475 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
476 register logic to new functions. Handle checkpointed DFP, VSX,
477 and EFP pseudo registers.
478 (rs6000_gdbarch_init): Look for and validate the htm features.
479 Include checkpointed DFP, VSX and EFP pseudo-registers.
480 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
481 HTM registers.
482
483 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
484
485 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
486 without altivec or fpu.
487
488 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
489 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
490
491 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
492 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
493 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
494 Define if not already defined.
495 * features/rs6000/power-ebb.xml: New file.
496 * features/rs6000/power-linux-pmu.xml: New file.
497 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
498 features.
499 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
500 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
501 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
502 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
503 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
504 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
505 fetch_regset with ebb and pmu regsets.
506 (store_register, store_ppc_registers): Call store_regset with ebb
507 and pmu regsets.
508 (ppc_linux_nat_target::read_description): Set isa207 field in the
509 features struct if ebb and pmu are avaiable.
510 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
511 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
512 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
513 and pmu regsets.
514 (ppc_linux_core_read_description): Check if the pmu section is
515 present and set isa207 in the features struct.
516 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
517 (ppc32_linux_pmuregset): Declare.
518 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
519 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
520 <ppc_sier_regnum>: New field.
521 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
522 New enum values.
523 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
524 values.
525 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
526 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
527 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
528 ebb and pmu features.
529
530 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
531 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
532
533 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
534 (tdesc_powerpc_isa207_vsx64l): Declare.
535 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
536 (struct ppc_linux_features) <isa207>: New field.
537 (ppc_linux_no_features): Add initializer for isa207 field.
538 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
539 new tdescs.
540 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
541 (NT_PPC_TAR): Define if not already defined.
542 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
543 rs6000/powerpc-isa207-vsx64l.
544 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
545 rs6000/powerpc-isa207-vsx64l.xml.
546 * features/rs6000/power-tar.xml: New file.
547 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
548 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
549 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
550 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
551 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
552 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
553 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
554 fetch_regset with the TAR regset.
555 (store_register, store_ppc_registers): Call store_regset with the
556 TAR regset.
557 (ppc_linux_nat_target::read_description): Set isa207 field in the
558 features struct if needed.
559 * ppc-linux-tdep.c: Include
560 features/rs6000/powerpc-isa207-vsx32l.c and
561 features/rs6000/powerpc-isa207-vsx64l.c.
562 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
563 (ppc_linux_iterate_over_regset_sections): Call back with the tar
564 regset.
565 (ppc_linux_core_read_description): Check if the tar section is
566 present and set isa207 in the features struct.
567 (_initialize_ppc_linux_tdep): Call
568 initialize_tdesc_powerpc_isa207_vsx32l and
569 initialize_tdesc_powerpc_isa207_vsx64l.
570 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
571 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
572 (enum) <PPC_TAR_REGNUM>: New enum value.
573 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
574 feature.
575 (ppc_process_record_op31): Record changes to TAR.
576
577 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
578 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
579
580 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
581 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
582 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
583 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
584 (struct ppc_linux_features) <ppr_dscr>: New field.
585 (ppc_linux_no_features): Add initializer for ppr_dscr field.
586 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
587 new tdescs.
588 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
589 Define if not already defined.
590 * features/Makefile (WHICH): Add
591 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
592 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
593 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
594 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
595 * features/rs6000/power-dscr.xml: New file.
596 * features/rs6000/power-ppr.xml: New file.
597 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
598 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
599 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
600 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
601 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
602 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
603 * ppc-linux-nat.c: Include <sys/uio.h>.
604 (fetch_regset, store_regset, check_regset): New functions.
605 (fetch_register, fetch_ppc_registers): Call fetch_regset with
606 DSCR and PPR regsets.
607 (store_register, store_ppc_registers): Call store_regset with
608 DSCR and PPR regsets.
609 (ppc_linux_get_hwcap2): New function.
610 (ppc_linux_nat_target::read_description): Call
611 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
612 features struct if needed.
613 * ppc-linux-tdep.c: Include
614 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
615 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
616 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
617 (ppc32_linux_dscrregset): New globals.
618 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
619 and dscr regsets.
620 (ppc_linux_core_read_description): Check if the ppr and dscr
621 sections are present and set ppr_dscr in the features struct.
622 (_initialize_ppc_linux_tdep): Call
623 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
624 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
625 * ppc-linux-tdep.h (ppc32_linux_pprregset)
626 (ppc32_linux_dscrregset): Declare.
627 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
628 <ppc_dscr_regnum>: New field.
629 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
630 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
631 and dscr features.
632 (ppc_process_record_op31): Record changes to PPR and DSCR.
633
634 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
635
636 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
637 second initializer line for the have_* variables. Initialize
638 have_fpu to 0 instead of 1.
639
640 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
641
642 * arch/ppc-linux-common.c (ppc_linux_match_description):
643 Parenthesize tdesc assignements and indent them properly.
644
645 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
646
647 * ppc-linux-nat.c (fetch_register): Change if statement to else
648 if.
649 (store_register): Likewise.
650
651 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
652
653 * rs6000-tdep.c: Remove reggroups.h include.
654 (rs6000_pseudo_register_reggroup_p): Remove.
655 (rs6000_gdbarch_init): Remove call to
656 set_tdesc_pseudo_register_reggroup_p.
657
658 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
659
660 * reggroups.c (default_register_reggroup_p): Return true for
661 decfloat registers and float_reggroup.
662
663 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
664
665 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
666 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
667 ppc_linux_collect_vrregset by regcache_collect_regset.
668
669 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
670
671 * linux-tdep.c (linux_collect_regset_section_cb): Use
672 std::vector<gdb_byte> instead of char * and malloc for buf.
673 Remove xfree.
674
675 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
676
677 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
678 symtab_start instead of always using language_unknown.
679
680 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
681
682 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
683 READ_P parameter, catch and ignore register access errors from
684 either the old or new MISA location.
685 (riscv_has_feature): Update call to riscv_read_misa_reg.
686
687 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
688
689 * python/py-function.c (convert_values_to_python): Return
690 gdbpy_ref<>. Add header comment.
691 (fnpy_call): Adjust.
692
693 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
694
695 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
696 (cmdpy_completer_handle_brkchars): Adjust.
697 (cmdpy_completer): Adjust.
698
699 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
702 Pass correct regnum to raw_supply_zeroed.
703
704 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
705
706 * regcache.c (cooked_read_test): Add CSKY to the list of
707 architectures with a save_reggroup
708
709 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
710
711 PR gdb/23368
712 * infrun.c (follow_exec): In the follow_exec_mode_new case,
713 transfer terminal state from old new new inferior.
714 * terminal.h (swap_terminal_info): New function.
715 * inflow.c (swap_terminal_info): New function.
716
717 2018-10-23 Tom Tromey <tom@tromey.com>
718
719 * record-btrace.c (get_thread_current_frame_id): Rename from
720 get_thread_current_frame. Return a frame_id.
721 (record_btrace_start_replaying): Update.
722
723 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
724
725 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
726 for CSRs.
727
728 2018-10-23 Joel Brobecker <brobecker@adacore.com>
729
730 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
731 have_nonsteppable_watchpoint attribute to 1.
732
733 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
734
735 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
736 register names.
737 (struct register_alias): Rename to...
738 (struct riscv_register_alias): ...this, and update comment.
739 (riscv_register_aliases): Update type, and alias names. Remove
740 CSR names from this list.
741 (riscv_register_name): Use riscv_gdb_reg_names for int and float
742 register names. Add an extra assertion.
743 (riscv_is_regnum_a_named_csr): New function.
744 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
745
746 2018-10-22 Jim Wilson <jimw@sifive.com>
747
748 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
749 FP reg smaller than FP reg size, and fill with -1 instead of 0.
750
751 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
752 (riscv_register_type): Use them.
753 (riscv_print_one_register_info): Handle union of floats same as float.
754 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
755 riscv_fpreg_q_type fields.
756
757 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
758
759 * gdbarch.sh (gdbarch_num_cooked_regs): New.
760 * gdbarch.h: Re-generate.
761 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
762 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
763 * eval.c (evaluate_subexp_standard): Likewise.
764 * findvar.c (value_of_register): Likewise.
765 (value_of_register_lazy): Likewise.
766 (address_from_register): Likewise.
767 * frame.c (get_frame_register_bytes): Likewise.
768 * gdbarch-selftests.c (register_to_value_test): Likewise.
769 * h8300-tdep.c (h8300_register_type): Likewise.
770 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
771 (i386_svr4_reg_to_regnum): Likewise.
772 * infcmd.c (default_print_registers_info): Likewise.
773 (registers_info): Likewise.
774 (print_vector_info): Likewise.
775 (default_print_float_info): Likewise.
776 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
777 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
778 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
779 (mi_cmd_data_list_changed_registers): Likewise.
780 (mi_cmd_data_list_register_values): Likewise.
781 (mi_cmd_data_write_register_values): Likewise.
782 (mi_cmd_trace_frame_collected): Likewise.
783 * mips-tdep.c (print_gp_register_row): Likewise.
784 (mips_print_registers_info): Likewise.
785 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
786 * regcache.c (init_regcache_descr): Likewise.
787 (register_size): Likewise.
788 (register_dump::dump): Likewise.
789 (cooked_read_test): Likewise.
790 (cooked_write_test): Likewise.
791 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
792 (rs6000_gdbarch_init): Likewise.
793 * stabsread.c (stab_reg_to_regnum): Likewise.
794 * stack.c (info_frame_command): Likewise.
795 * target-descriptions.c (tdesc_register_name): Likewise.
796 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
797 * tui/tui-regs.c (tui_show_register_group): Likewise.
798 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
799 (user_reg_map_regnum_to_name): Likewise.
800 (value_of_user_reg): Likewise.
801 (maintenance_print_user_registers): Likewise.
802 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
803 (xtensa_register_name): Likewise.
804 (xtensa_register_type): Likewise.
805 (xtensa_reg_to_regnum): Likewise.
806 (xtensa_pseudo_register_read): Likewise.
807 (xtensa_pseudo_register_write): Likewise.
808
809 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
810
811 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
812 correctly-sized buffer with raw_read.
813 (amd64_pseudo_register_write): Use correctly-sized buffer for
814 raw_read/raw_write.
815
816 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
817
818 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
819 in add_prefix_cmd of set print type.
820
821 2018-10-19 Tom Tromey <tom@tromey.com>
822
823 PR tui/18388:
824 * NEWS: Mention tabset deprecation.
825 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
826 (update_tab_width): New function.
827 (tui_set_tab_width, tui_show_tab_width): New functions.
828 (tui_set_tab_width_command): Use update_tab_width.
829 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
830 Add new "set tui tab-width" command.
831 * tui/tui-source.c (tui_set_source_content): Update.
832 * tui/tui-disasm.c (tui_set_disassem_content): Update.
833 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
834 Don't declare.
835 (tui_tab_width): Declare.
836 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
837 (tui_set_default_tab_len): Remove.
838
839 2018-10-19 Tom Tromey <tom@tromey.com>
840
841 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
842 (key_is_backspace, tui_getc): Don't declare.
843 * tui/tui-io.c (key_is_start_sequence): Now static.
844 (key_is_end_sequence, key_is_backspace): Remove.
845 (tui_getc): Now static.
846
847 2018-10-19 Tom Tromey <tom@tromey.com>
848
849 * symfile.c (reread_symbols): Clear "static_links".
850
851 2018-10-19 Alan Hayward <alan.hayward@arm.com>
852
853 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
854 define.
855 (aarch64_linux_sigframe_init): Extra boundary checks.
856
857 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
858
859 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
860 the possibly non-existent tdesc type 'vec128', but the type of raw
861 register v16 instead.
862
863 2018-10-19 Gary Benson <gbenson@redhat.com>
864
865 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
866
867 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
868
869 PR cli/23785
870 * cli/cli-dump.c (restore_binary_file): Check if "file" is
871 NULL.
872
873 2018-10-17 Paul Koning <paul_koning@dell.com>
874
875 * charset.c (convert_between_encodings): Fix unsigned overflow.
876
877 2018-10-17 John Baldwin <jhb@FreeBSD.org>
878
879 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
880 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
881 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
882 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
883 New functions.
884 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
885 and fbsd_info_proc_mappings_header.
886 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
887 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
888 New.
889
890 2018-10-17 Joel Brobecker <brobecker@adacore.com>
891
892 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
893 Solaris Maintainer.
894
895 2018-10-15 Tom Tromey <tom@tromey.com>
896
897 * tui/tui.c (strcat_to_buf): Remove casts.
898 * tui/tui-winsource.c (tui_show_source_line)
899 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
900 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
901 * tui/tui-windata.c (tui_first_data_item_displayed)
902 (tui_delete_data_content_windows, tui_erase_data_content)
903 (tui_display_all_data, tui_display_data_from)
904 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
905 * tui/tui-win.c (tui_set_win_height)
906 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
907 casts.
908 * tui/tui-win.c (tui_resize_all): Remove casts.
909 (tui_scroll_backward_command, tui_set_focus)
910 (tui_set_tab_width_command): Likewise.
911 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
912 * tui/tui-regs.c (tui_show_register_group): Remove cast.
913 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
914 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
915 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
916 Remove casts.
917
918 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
919
920 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
921 AArch64/ARM maintainer.
922
923 2018-10-11 Gary Benson <gbenson@redhat.com>
924
925 * interps.h (interp::m_name): Make private and mutable.
926 * interps.c (interp::~interp): Free m_name.
927
928 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
929 Simon Marchi <simark@simark.ca>
930
931 * README (`configure' options): Add documentation for new
932 "--enable-unit-tests" option.
933 * acinclude.m4: Include "selftest.m4".
934 * configure: Regenerate.
935 * configure.ac: Use "GDB_AC_SELFTEST".
936 * maint.c (maintenance_selftest): Update message informing
937 that selftests have been disabled.
938 (maintenance_info_selftests): Likewise.
939 * selftest.m4: New file.
940
941 2018-10-10 Gary Benson <gbenson@redhat.com>
942
943 * remote.c (remote_target::remote_send_printf): Add
944 missing va_end found by Coverity.
945
946 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
947
948 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
949
950 2018-10-09 Tom Tromey <tom@tromey.com>
951
952 * configure: Rebuild.
953 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
954 * NEWS: Update --enable-ubsan documentation.
955
956 2018-10-09 Gary Benson <gbenson@redhat.com>
957
958 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
959 found by Coverity.
960
961 2018-10-08 Tom Tromey <tom@tromey.com>
962
963 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
964 variable.
965 (riscv_fbsd_init_abi): Likewise.
966
967 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
968 * valops.c (value_struct_elt_for_reference): Rename local variable
969 to work around the shadowing a previous local warning.
970
971 2018-10-08 John Baldwin <jhb@FreeBSD.org>
972
973 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
974 * NEWS: Mention new FreeBSD/riscv native configuration.
975 * configure.host: Add riscv*-*-freebsd*.
976 * configure.nat: Likewise.
977 * riscv-fbsd-nat.c: New file.
978
979 2018-10-08 John Baldwin <jhb@FreeBSD.org>
980
981 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
982 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
983 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
984 * NEWS: Mention new FreeBSD/riscv target.
985 * configure.tgt: Add riscv*-*-freebsd*.
986 * riscv-fbsd-tdep.c: New file.
987 * riscv-fbsd-tdep.h: New file.
988
989 2018-10-08 John Baldwin <jhb@FreeBSD.org>
990
991 * regcache.h (struct regcache_map_entry): Note that this type can
992 be used with traditional frame caches.
993 * trad-frame.c (trad_frame_set_reg_regmap): New.
994 * trad-frame.h (trad_frame_set_reg_regmap): New.
995
996 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
997
998 PR c++/16841
999 * valops.c (get_virtual_base_offset): New function.
1000 (value_struct_elt_for_reference): Use it to get virtual base offset
1001 and add it in calculating class member address.
1002
1003 2018-10-08 John Darrington <john@darrington.wattle.id.au>
1004
1005 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1006 (check_producer): Check if the producer is codewarrior.
1007 (producer_is_codewarrior): New function.
1008 (lnp_state_machine::record_line): Ignore is_stmt flag for records
1009 produced by codewarrior.
1010 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
1011
1012 2018-10-06 Tom Tromey <tom@tromey.com>
1013
1014 PR python/19399:
1015 * python/py-inferior.c: Add "architecture" entry.
1016 (infpy_architecture): New function.
1017
1018 2018-10-06 Tom Tromey <tom@tromey.com>
1019
1020 PR python/21765:
1021 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1022 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1023 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
1024 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1025
1026 2018-10-06 Tom Tromey <tom@tromey.com>
1027
1028 PR build/17077:
1029 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1030 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1031 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1032 #include.
1033
1034 2018-10-06 Tom Tromey <tom@tromey.com>
1035
1036 * python/py-breakpoint.c (bppy_get_location): Handle a
1037 bp_breakpoint without a location.
1038
1039 2018-10-06 Tom Tromey <tom@tromey.com>
1040
1041 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
1042 (_RegEx): Reformat help text.
1043 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
1044 (AnyCallerIs, AnyCallerMatches): Reformat help text.
1045 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
1046 text.
1047 * python/lib/gdb/command/xmethods.py (InfoXMethod)
1048 (EnableXMethod, DisableXMethod): Remove help indentation.
1049 Capitalize meta-syntactic variables.
1050 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
1051 (EnableUnwinder, DisableUnwinder): Remove help indentation.
1052 Capitalize meta-syntactic variables.
1053 * python/lib/gdb/command/explore.py (ExploreCommand)
1054 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
1055 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
1056 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
1057 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
1058 Remove help indentation.
1059 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
1060 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
1061 (DisableFrameFilter, SetFrameFilterPriority)
1062 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
1063
1064 2018-10-06 Tom Tromey <tom@tromey.com>
1065
1066 PR tui/28819:
1067 * tui/tui-io.c (gdb_wgetch): New function.
1068 (tui_mld_getc, tui_getc): Use it.
1069
1070 2018-10-05 Tom Tromey <tom@tromey.com>
1071
1072 * sol-thread.c (sol_thread_target::wait): Rename inner
1073 "save_ptid".
1074
1075 2018-10-04 Tom Tromey <tom@tromey.com>
1076
1077 * configure: Rebuild.
1078 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
1079
1080 2018-10-04 Tom Tromey <tom@tromey.com>
1081
1082 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
1083 declaration of "block".
1084
1085 2018-10-04 Tom Tromey <tom@tromey.com>
1086
1087 * common/filestuff.c (fdwalk): Remove inner declaration of
1088 "result".
1089
1090 2018-10-04 Tom Tromey <tom@tromey.com>
1091
1092 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
1093 "structs_addr" and hoist declaration.
1094
1095 2018-10-04 Tom Tromey <tom@tromey.com>
1096
1097 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
1098 variable "size".
1099
1100 2018-10-04 Tom Tromey <tom@tromey.com>
1101
1102 * mdebugread.c (parse_partial_symbols): Use std::string.
1103
1104 2018-10-04 Tom Tromey <tom@tromey.com>
1105
1106 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
1107 * p-valprint.c (pascal_val_print): Split inner "i" variable.
1108 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
1109 header.
1110 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
1111 more inner scope.
1112 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
1113 * varobj.c (varobj_update): Rename inner "newobj",
1114 "type_changed".
1115 * valprint.c (generic_emit_char): Rename inner "buf".
1116 * valops.c (find_overload_match): Rename inner "temp".
1117 (value_struct_elt_for_reference): Declare "v" in more inner
1118 scope.
1119 * v850-tdep.c (v850_push_dummy_call): Rename "len".
1120 * unittests/array-view-selftests.c (run_tests): Rename inner
1121 "vec".
1122 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
1123 header.
1124 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
1125 "tsv" in more inner scope.
1126 (print_one_static_tracepoint_marker): Rename inner
1127 "tuple_emitter".
1128 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
1129 (tic6x_push_dummy_call): Don't redeclare "addr".
1130 * target-float.c: Declare "dto" lower.
1131 * symtab.c (lookup_local_symbol): Rename inner "sym".
1132 (find_pc_sect_line): Rename inner "pc".
1133 * stack.c (print_frame): Don't redeclare "gdbarch".
1134 (return_command): Rename inner "gdbarch".
1135 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
1136 "sp".
1137 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
1138 header.
1139 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
1140 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
1141 scope.
1142 * remote.c (remote_target::update_thread_list): Don't redeclare
1143 "tp".
1144 (remote_target::process_initial_stop_replies): Rename inner
1145 "thread".
1146 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
1147 (remote_target::wait_as): Don't redeclare "stop_reply".
1148 (remote_target::get_thread_local_address): Rename inner
1149 "result".
1150 (remote_target::get_tib_address): Likewise.
1151
1152 * regcache.c (cooked_read_test): Rename "regnum".
1153 * record-btrace.c (cmd_record_btrace_start): Rename inner
1154 "exception".
1155 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
1156 loop header.
1157 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
1158 header.
1159 (ppu2spu_sniffer): Rename inner "buf".
1160 * parse.c (operator_check_standard): Rename inner "type",
1161 "objfile".
1162 * p-valprint.c (pascal_val_print): Introduce new scope for
1163 "low_bound", "high_bound".
1164 * p-exp.y (yylex): Declare "i" in loop header.
1165 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
1166 Lower declaration of "s".
1167 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
1168 header.
1169 (nios2_push_dummy_call): Rename "len".
1170 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
1171 "buf".
1172 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
1173 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
1174 (linux_xfer_osdata_modules): Likewise.
1175 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
1176 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1177 (mips_o64_push_dummy_call): Likewise.
1178 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
1179 "op".
1180 * mi/mi-main.c (list_available_thread_groups): Rename inner
1181 "tuple_emitter".
1182 (mi_cmd_data_read_memory): Rename inner "opts".
1183 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
1184 "tuple_emitter".
1185 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
1186 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
1187 more inner scope.
1188 (parse_partial_symbols): Rename inner "pst", "p", "name"
1189 * main.c (captured_main_1): Rename inner "i"s.
1190 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1191 "oso2".
1192 * linux-tdep.c (linux_info_proc): Rename inner "filename".
1193 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1194 * infrun.c (handle_no_resumed): Don't redeclare "thread".
1195 (handle_signal_stop): Rename inner "gdbarch".
1196 (handle_command): Declare "signum" in loop header.
1197 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1198 "status".
1199 (examine_prologue): Rename inner "sol" and "sof".
1200 (ia64_extract_return_value): Rename inner "val". Declare another
1201 "val" in a more inner scope.
1202 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1203 inner scope.
1204 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1205 "except".
1206 * findvar.c (default_read_var_value): Don't redeclare "addr".
1207 * f-exp.y (yylex): Declare "i" in loop header.
1208 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1209 Rename inner "type", "expect_type".
1210 (evaluate_subexp_for_sizeof): Rename inner "pc".
1211 * elfread.c (elf_symfile_read): Rename inner "abfd".
1212 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1213 "bytes_read".
1214 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1215 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1216 (dwarf_decode_line_header): Rename inner "lh".
1217 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1218 "offset". Declare "i" in loop header.
1219 (disassemble_dwarf_expression): Rename inner "addr_size".
1220 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1221 inner "result".
1222 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1223 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1224 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1225 "inner_list_emitter".
1226 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1227 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1228 declaration in a block.
1229 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1230 * cp-valprint.c (cp_print_value_fields): Don't redeclare
1231 "obstack_final_size".
1232 * cp-support.c (inspect_type): Declare "i" in loop header.
1233 * compile/compile.c (compile_instance::insert_symbol_error):
1234 Rename inner "e".
1235 * common/agent.c (agent_run_command): Remove inner "ret"
1236 declaration.
1237 * coffread.c (coff_symfile_read): Rename inner "name".
1238 (coff_symfile_read): Rename inner "abfd".
1239 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1240 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1241 "high".
1242 * c-exp.y (lex_one_token): Move "len" declaration lower.
1243 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1244 "gdbarch".
1245 (create_exception_master_breakpoint): Likewise. Don't redeclare
1246 "b".
1247 (watch_command_1): Declare "mark" later.
1248 (clear_command): Don't shadow "a" or "b".
1249 (delete_command): Rename inner "b".
1250 (delete_trace_command): Likewise.
1251 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
1252 "op".
1253 (arm_gdbarch_init): Remove inner "e_flags".
1254 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
1255 "offset" in inner blocks.
1256
1257 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
1258
1259 * dwarf-index-write.c (file_write): Don't write if the vector is
1260 empty.
1261
1262 2018-10-05 Tom de Vries <tdevries@suse.de>
1263
1264 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
1265 PyArg_ParseTuple call.
1266
1267 2018-10-05 Tom de Vries <tdevries@suse.de>
1268
1269 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
1270 PyArg_ParseTuple call.
1271
1272 2018-10-04 Joel Brobecker <brobecker@adacore.com>
1273
1274 * psymtab.c (recursively_search_psymtabs): Reformat parameters
1275 to avoid exceeding 80 characters per line limit.
1276
1277 2018-10-04 Tom Tromey <tom@tromey.com>
1278
1279 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1280 (reread_symbols): Update.
1281 * complaints.h (clear_complaints): Remove argument.
1282 * complaints.c (enum complaint_series): Remove.
1283 (series): Remove global.
1284 (complaint_internal): Update.
1285 (clear_complaints): Remove argument.
1286
1287 2018-10-04 Tom Tromey <tom@tromey.com>
1288
1289 * symfile.c (symbol_file_add_with_addrs): Do not print "no
1290 debugging symbols" message if there is a separate debug objfile.
1291
1292 2018-10-04 Tom Tromey <tom@tromey.com>
1293
1294 PR cli/19551:
1295 * symfile.c (symbol_file_add_with_addrs): Update output.
1296 * psymtab.c (require_partial_symbols): Update output.
1297
1298 2018-10-04 Tom Tromey <tom@tromey.com>
1299
1300 PR cli/22234:
1301 * complaints.c: Emit \n.
1302
1303 2018-10-04 Tom Tromey <tom@tromey.com>
1304
1305 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
1306 (separate_debug_file_exists, find_separate_debug_file)
1307 (add_symbol_file_command, reread_symbols, allocate_symtab)
1308 (allocate_compunit_symtab): Use filtered printing, not
1309 unfiltered.
1310 * psymtab.c (require_partial_symbols, dump_psymtab)
1311 (allocate_psymtab): Use filtered printing, not unfiltered.
1312
1313 2018-10-04 Tom Tromey <tom@tromey.com>
1314
1315 * complaints.c (complaint_internal): Correctly check complaint
1316 count.
1317
1318 2018-10-04 Tom Tromey <tom@tromey.com>
1319
1320 * complaints.h (struct complaints): Remove declaration.
1321 * complaints.c (clear_complaints): Remove an unused variable.
1322
1323 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1324
1325 * MAINTAINERS (Write After Approval): Add self.
1326
1327 2018-10-03 Tom Tromey <tom@tromey.com>
1328
1329 * guile/scm-value.c (gdbscm_value_to_string): Initialize
1330 "buffer_contents".
1331 * coffread.c (coff_symtab_read): Initialize "newobj".
1332
1333 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
1334
1335 * dwarf2read.c (read_func_scope): Remove struct keyword in
1336 range-based for.
1337
1338 2018-10-03 Tom Tromey <tom@tromey.com>
1339
1340 * README: Mention --enable-ubsan.
1341 * NEWS: Mention --enable-ubsan.
1342 * acinclude.m4: Include sanitize.m4.
1343 * configure: Rebuild.
1344 * configure.ac: Call AM_GDB_UBSAN.
1345 * sanitize.m4: New file.
1346
1347 2018-10-03 Tom Tromey <tom@tromey.com>
1348
1349 * expression.h (enum exp_opcode): Use uint8_t as base type.
1350 * expprint.c (op_name): Handle invalid opcodes.
1351
1352 2018-10-03 Tom Tromey <tom@tromey.com>
1353
1354 * parse.c (prefixify_expression): Add assert.
1355 (parse_exp_in_context_1): Throw exception if the expression is
1356 empty.
1357
1358 2018-10-03 Tom Tromey <tom@tromey.com>
1359
1360 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1361
1362 2018-10-03 Tom Tromey <tom@tromey.com>
1363
1364 * c-exp.y (parse_number): Work in unsigned. Remove casts.
1365
1366 2018-10-03 Tom Tromey <tom@tromey.com>
1367
1368 * dwarf2read.c (read_subrange_type): Make "negative_mask"
1369 unsigned.
1370
1371 2018-10-03 Tom Tromey <tom@tromey.com>
1372
1373 * findvar.c (extract_integer): Do work in an unsigned type.
1374
1375 2018-10-03 Tom Tromey <tom@tromey.com>
1376
1377 * common/enum-flags.h (enum_flags::operator~): Add static assert.
1378 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1379 base type.
1380 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1381 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1382 type.
1383 * c-lang.h (enum c_string_type_values): Use unsigned as base
1384 type.
1385 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1386
1387 2018-10-03 Tom Tromey <tom@tromey.com>
1388
1389 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1390 <~dwarf2_frame_state_reg_info>: Update.
1391 <dwarf2_frame_state_reg_info>: Update.
1392 <alloc_regs>: Add assertion. Update.
1393 <reg>: Now a std::vector.
1394 <num_regs>: Remove.
1395 <swap>: Update.
1396 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1397 (execute_cfa_program_test, dwarf2_frame_cache): Update.
1398
1399 2018-10-03 Tom Tromey <tom@tromey.com>
1400
1401 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1402
1403 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1404
1405 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1406
1407 2018-10-02 Tom Tromey <tom@tromey.com>
1408
1409 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1410
1411 2018-10-02 John Darrington <john@darrington.wattle.id.au>
1412
1413 * NEWS: Mention changed commands.
1414 * ser-uds.c: New file.
1415 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1416 * configure: Regenerate.
1417 * Makefile.in: Add new file.
1418 * serial.c (serial_open): Check if filename is a socket
1419 and lookup the appropriate interface accordingly.
1420
1421 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1422
1423 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1424 define.
1425 (AARCH64_EXTRA_MAGIC): Likewise.
1426 (AARCH64_FPSIMD_MAGIC): Likewise.
1427 (AARCH64_SVE_MAGIC): Likewise.
1428 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1429 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1430 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1431 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1432 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1433 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1434 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1435 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1436 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1437 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1438 (read_aarch64_ctx): Add function.
1439 (aarch64_linux_sigframe_init): Detect FP registers.
1440
1441 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1442
1443 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
1444 (AARCH64_D0_REGNUM): Likewise.
1445 (AARCH64_S0_REGNUM): Likewise.
1446 (AARCH64_H0_REGNUM): Likewise.
1447 (AARCH64_B0_REGNUM): Likewise.
1448 (AARCH64_SVE_V0_REGNUM): Likewise.
1449 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1450 (AARCH64_D0_REGNUM): Likewise.
1451 (AARCH64_S0_REGNUM): Likewise.
1452 (AARCH64_H0_REGNUM): Likewise.
1453 (AARCH64_B0_REGNUM): Likewise.
1454 (AARCH64_SVE_V0_REGNUM): Likewise.
1455
1456 2018-10-01 Gary Benson <gbenson@redhat.com>
1457
1458 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1459 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1460 prfpregset_t instead of gdb_prfpregset_t.
1461 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1462 * configure, config.in: Rebuild.
1463
1464 2018-10-01 Gary Benson <gbenson@redhat.com>
1465
1466 * common/gdb_proc_service.h: New file, factored out from...
1467 * gdb_proc_service.h: Moved common code to the above file.
1468 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
1469
1470 2018-10-01 Gary Benson <gbenson@redhat.com>
1471
1472 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
1473 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
1474
1475 2018-10-01 Gary Benson <gbenson@redhat.com>
1476
1477 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
1478 (AC_CHECK_HEADERS): Check for linux/elf.h.
1479 * configure, config.in: Rebuild.
1480 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
1481 doesn't define elf_fpregset_t.
1482
1483 2018-10-01 Gary Benson <gbenson@redhat.com>
1484
1485 * gdb_proc_service.h: Whitespace change.
1486
1487 2018-10-01 Tom Tromey <tom@tromey.com>
1488
1489 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
1490 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
1491 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
1492
1493 2018-10-01 Tom Tromey <tom@tromey.com>
1494
1495 * README: Minor change.
1496
1497 2018-09-30 Pedro Alves <palves@redhat.com>
1498
1499 * darwin-nat-info.c (darwin_debug_regions_recurse)
1500 (info_mach_exceptions_command): Remove unused local variables.
1501 * darwin-nat.c (darwin_decode_notify_message)
1502 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
1503 (darwin_stop_inferior, darwin_setup_exceptions)
1504 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
1505 (darwin_nat_target::attach, darwin_nat_target::detach)
1506 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
1507 local variables.
1508 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
1509 variables.
1510
1511 2018-09-29 Tom Tromey <tom@tromey.com>
1512
1513 * README: Remove some leftover text.
1514
1515 2018-09-29 Tom Tromey <tom@tromey.com>
1516
1517 * PROBLEMS: Rewrite.
1518 * README: Update.
1519
1520 2018-09-28 John Baldwin <jhb@FreeBSD.org>
1521
1522 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
1523 case with explicit breakpoint kind.
1524 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
1525 'additional_info' and related logic.
1526 (riscv_debug_breakpoints): New variable.
1527 (riscv_breakpoint_kind_from_pc): Use the length of the existing
1528 instruction to determine the breakpoint kind.
1529 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
1530 flag. Update description of 'set/show riscv
1531 use-compressed-breakpoints' flag.
1532
1533 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
1534
1535 (NEWS): Mention changes to frame related commands.
1536 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
1537 (add_prefix_cmd_suppress_notification): New function.
1538 (add_com_suppress_notification): Call
1539 add_cmd_suppress_notification.
1540 * command.h (add_cmd_suppress_notification): Declare.
1541 (add_prefix_cmd_suppress_notification): Declare.
1542 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
1543 (parse_frame_specification): Moved from stack.c, with
1544 simplification to handle a single argument.
1545 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
1546 switch to the selected frame. Add a header comment.
1547 * stack.c: Remove 'safe-ctype.h' include.
1548 (find_frame_for_function): Add declaration.
1549 (find_frame_for_address): New function.
1550 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
1551 (frame_selection_by_function_completer): New function.
1552 (info_frame_command): Rename to...
1553 (info_frame_command_core): ...this, and update parameter types.
1554 (select_frame_command): Rename to...
1555 (select_frame_command_core): ...this, and update parameter types.
1556 (frame_command): Rename to...
1557 (frame_command_core): ...this, and update parameter types.
1558 (class frame_command_helper): New class to wrap implementations of
1559 frame related sub-commands.
1560 (frame_apply_cmd_list): New static global.
1561 (frame_cmd_list): Make static.
1562 (select_frame_cmd_list): New global for sub-commands.
1563 (info_frame_cmd_list): New global for sub-commands.
1564 (_initialize_stack): Register sub-commands for 'frame',
1565 'select-frame', and 'info frame'. Update 'frame apply' commands
1566 to use frame_apply_cmd_list. Move function local static
1567 frame_apply_list to file static frame_apply_cmd_list for
1568 consistency.
1569 * stack.h (select_frame_command): Delete declarationn.
1570 (select_frame_for_mi): Declare new function.
1571
1572 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
1573
1574 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
1575 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
1576 and NOP.
1577
1578 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
1579
1580 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
1581
1582 2018-09-26 Tom Tromey <tom@tromey.com>
1583
1584 * valops.c (auto_abandon): Remove dead code.
1585
1586 2018-09-26 Tom Tromey <tom@tromey.com>
1587
1588 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
1589
1590 2018-09-24 Tom Tromey <tom@tromey.com>
1591
1592 * common/pathstuff.c (get_standard_cache_dir): Make
1593 "xdg_cache_home" and "home" const.
1594 * top.c (init_history): Make "tmpenv" const.
1595 * main.c (get_init_files): Make "homedir" const.
1596
1597 2018-09-23 Tom Tromey <tom@tromey.com>
1598
1599 PR python/18852:
1600 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
1601
1602 2018-09-23 Tom Tromey <tom@tromey.com>
1603
1604 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
1605 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
1606 * python/python-internal.h (gdbpy_handle_exception): Declare.
1607 * python/py-utils.c (gdbpy_handle_exception): New function.
1608
1609 2018-09-23 Tom Tromey <tom@tromey.com>
1610
1611 PR python/17284:
1612 * python/py-type.c (typy_template_argument): Check for negative
1613 argument number.
1614
1615 2018-09-23 Tom Tromey <tom@tromey.com>
1616
1617 PR python/14062:
1618 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
1619
1620 2018-09-23 Tom Tromey <tom@tromey.com>
1621
1622 PR python/18170:
1623 * python/py-value.c (valpy_int): Allow conversion from pointer
1624 type.
1625
1626 2018-09-23 Tom Tromey <tom@tromey.com>
1627
1628 PR python/20126:
1629 * python/py-value.c (valpy_int): Respect type sign.
1630
1631 2018-09-23 Tom Tromey <tom@tromey.com>
1632
1633 PR python/18352;
1634 * python/py-value.c (valpy_float): Allow conversions from int or
1635 char.
1636 (valpy_int, valpy_long): Allow conversions from float.
1637
1638 2018-09-23 Tom Tromey <tom@tromey.com>
1639
1640 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
1641 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
1642
1643 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1644
1645 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
1646 __sighndlr.
1647 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
1648
1649 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
1650
1651 * windows-nat.c (windows_nat_target::wait): Remove a spurious
1652 target_terminal::ours().
1653
1654 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
1655
1656 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
1657 of vl to ULONGEST.
1658
1659 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
1660
1661 * breakpoint.c (update_inserted_breakpoint_locations): Remove
1662 redundant condition.
1663
1664 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1665
1666 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
1667
1668 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
1669 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
1670 * sol-thread.c (ps_pdmodel): Don't guard definition.
1671
1672 * procfs.c: Fix formatting.
1673
1674 * procfs.c (sysset_t_alloc): Remove.
1675 (create_procinfo): Use XNEW instead of sysset_t_alloc.
1676 (procfs_debug_inferior): Likewise.
1677 (procfs_set_exec_trap): Likewise.
1678 (proc_set_traced_sysentry): Don't allocate argp dynamically.
1679 (proc_set_traced_sysexit): Likewise.
1680
1681 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
1682 (dead_procinfo): Likewise.
1683 (proc_warn): Likewise.
1684 (proc_error): Likewise.
1685 (proc_get_LDT_entry): Likewise.
1686 (do_attach): Likewise.
1687 (procfs_target::pid_to_str): Likewise.
1688 (iterate_over_mappings): Likewise.
1689
1690 * procfs.c (create_procinfo): Fix ARI warning.
1691 (proc_get_status): Likewise.
1692 (proc_stop_process): Likewise.
1693 (proc_run_process): Likewise.
1694 (proc_kill): Likewise.
1695 (proc_get_LDT_entry): Likewise.
1696 (procfs_find_LDT_entry): Likewise.
1697 (proc_update_threads): Likewise.
1698 (proc_iterate_over_threads): Likewise.
1699 (do_attach): Likewise.
1700 (procfs_xfer_memory): Likewise.
1701 (invalidate_cache): Likewise.
1702 (procfs_target::resume): Likewise.
1703 (procfs_init_inferior): Likewise.
1704 (procfs_set_exec_trap): Likewise.
1705 (procfs_target::thread_alive): Likewise.
1706 (procfs_target::pid_to_exec_file): Likewise.
1707 (iterate_over_mappings): Likewise.
1708 (procfs_target::make_corefile_notes): Likewise.
1709 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
1710
1711 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
1712 (procfs_find_LDT_entry): Likewise.
1713 * sol-thread.c (ps_lgetLDT): Likewise.
1714
1715 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1716
1717 PR tdep/17903
1718 * procfs.c (procfs_target): Declare pid_to_exec_file.
1719 (procfs_target::pid_to_exec_file): New.
1720
1721 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1722
1723 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
1724 renaming.
1725 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
1726 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
1727
1728 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1729
1730 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
1731 (supply_fpregset, fill_fpregset): Move ...
1732 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
1733 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
1734 Remove references to ioctl-based procfs.
1735 Include <sys/reg.h>.
1736 Remove PR_MODEL_NATIVE guards.
1737 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
1738 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
1739
1740 2018-09-19 Xavier Roirand <roirand@adacore.com>
1741
1742 PR gdb/20981:
1743 * solib-darwin.c (darwin_get_dyld_bfd): New function.
1744 (darwin_solib_get_all_image_info_addr_at_init): Update call.
1745 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
1746
1747 2018-09-19 John Baldwin <jhb@FreeBSD.org>
1748
1749 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
1750 (fbsd_print_sockaddr_in6): Likewise.
1751
1752 2018-09-19 Richard Bunt <richard.bunt@arm.com>
1753 Chris January <chris.january@arm.com>
1754
1755 * eval.c (skip_undetermined_arglist): Skip argument list helper.
1756 (evaluate_subexp_standard): Return a dummy type when
1757 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
1758 OP_F77_UNDETERMINED_ARGLIST case.
1759 * expression.h (enum noside): Update comment.
1760
1761 2018-09-19 George Vasick <george.vasick@oracle.com>
1762
1763 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
1764
1765 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
1766 April Chin <april.chin@oracle.com>
1767 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1768
1769 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
1770 uint_t lwpid_t.
1771 (create_procinfo): Print pids in /proc without leading zeros.
1772
1773 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
1774
1775 * nios2-tdep.c (nios2_gcc_target_options): New.
1776 (nios2_gdb_arch_init): Install new hook.
1777
1778 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
1779
1780 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
1781 New file.
1782 * update-gnulib.sh: Apply patch.
1783 * configure: Re-generate.
1784
1785 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1786
1787 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
1788 description. Make "info proc" command descriptions more
1789 consistent.
1790
1791 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1792
1793 * NEWS: Mention 'info proc files' command.
1794
1795 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1796
1797 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
1798 descriptors for IP_FILES and IP_ALL.
1799
1800 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1801
1802 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
1803 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
1804 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
1805 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
1806 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
1807 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
1808 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
1809 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
1810 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
1811 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
1812 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
1813 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
1814 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
1815 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
1816 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
1817 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
1818 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
1819 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1820 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1821 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1822 (struct fbsd_sockaddr_un): New types.
1823 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1824 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1825 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1826 (fbsd_core_info_proc_files): New functions.
1827 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1828 IP_ALL.
1829 * fbsd-tdep.h (fbsd_info_proc_files_header)
1830 (fbsd_info_proc_files_entry): New.
1831
1832 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1833
1834 * defs.h (enum info_proc_what) [IP_FILES]: New value.
1835 * infcmd.c (info_proc_cmd_files): New function.
1836 (_initialize_infcmd): Register 'info proc files' command.
1837
1838 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1839
1840 * gnulib/aclocal-m4-deps.mk: Re-generate.
1841 * gnulib/aclocal.m4: Re-generate.
1842 * gnulib/config.in: Re-generate.
1843 * gnulib/configure: Re-generate.
1844 * gnulib/import/Makefile.am: Re-generate.
1845 * gnulib/import/Makefile.in: Re-generate.
1846 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1847 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1848 * gnulib/import/arpa_inet.in.h: New file.
1849 * gnulib/import/inet_ntop.c: New file.
1850 * gnulib/import/m4/arpa_inet_h.m4: New file.
1851 * gnulib/import/m4/inet_ntop.m4: New file.
1852 * gnulib/import/m4/netinet_in_h.m4: New file.
1853 * gnulib/import/m4/socklen.m4: New file.
1854 * gnulib/import/m4/sockpfaf.m4: New file.
1855 * gnulib/import/m4/stdalign.m4: New file.
1856 * gnulib/import/m4/sys_uio_h.m4: New file.
1857 * gnulib/import/netinet_in.in.h: New file.
1858 * gnulib/import/stdalign.in.h: New file.
1859 * gnulib/import/sys_socket.c: New file.
1860 * gnulib/import/sys_socket.in.h: New file.
1861 * gnulib/import/sys_uio.in.h: New file.
1862 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1863 module.
1864
1865 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1866
1867 * gnulib/aclocal-m4-deps.mk: New file.
1868 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1869 deterministically.
1870
1871 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1872
1873 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1874 KVE_PATH.
1875
1876 2018-09-18 Tom Tromey <tom@tromey.com>
1877
1878 * compile/compile-object-load.c (struct
1879 link_hash_table_cleanup_data): Add constructor and destructor.
1880 Use DISABLE_COPY_AND_ASSIGN.
1881 (~link_hash_table_cleanup_data): Rename from
1882 link_hash_table_free. Now a destructor.
1883 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1884
1885 2018-09-18 Tom Tromey <tom@tromey.com>
1886
1887 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1888 * compile/compile-object-load.c (struct munmap_list): Move to
1889 header file.
1890 (munmap_list::add): Rename from munmap_list_add; rewrite.
1891 (munmap_list::~munmap_list): Rename from munmap_list_free.
1892 (munmap_listp_free_cleanup): Remove.
1893 (compile_object_load): Update.
1894 * compile/compile-object-load.h (struct munmap_list): Move from
1895 compile-object-load.c. Rewrite.
1896
1897 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1898
1899 * aarch64-tdep.c (pass_in_v): Use register size.
1900 (aarch64_extract_return_value): Likewise.
1901 (aarch64_store_return_value): Likewise.
1902
1903 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1904
1905 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1906 rlim_t.
1907
1908 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1909
1910 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1911 Fix short help line.
1912
1913 2018-09-17 Tom Tromey <tom@tromey.com>
1914
1915 PR python/20445:
1916 * configure: Rebuild.
1917 * configure.ac: Conditionally use -DNDEBUG for Python.
1918
1919 2018-09-17 Tom Tromey <tom@tromey.com>
1920
1921 * configure: Rebuild.
1922 * configure.ac: Use gmp as a library dependency when checking for
1923 mpfr.
1924
1925 2018-09-17 Pedro Alves <palves@redhat.com>
1926
1927 * python/py-inferior.c (find_inferior_object): Delete.
1928
1929 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1930
1931 * compile/compile-cplus-types.c
1932 (compile_cplus_instance::enter_scope): Don't use new_scope after
1933 std::move.
1934
1935 2018-09-17 Tom Tromey <tom@tromey.com>
1936
1937 * common/pathstuff.c (get_standard_cache_dir): Use
1938 ~/Library/Caches on macOS.
1939 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1940
1941 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1942
1943 PR python/23669
1944 * breakpoint.c (commands_cmd_element): New.
1945 (_initialize_breakpoint): Assign commands_cmd_element.
1946 * breakpoint.h (commands_cmd_element): New.
1947 * cli/cli-script.c (while_cmd_element, if_command,
1948 define_cmd_element): New.
1949 (command_name_equals): Remove.
1950 (process_next_line): Compare commands by pointer, not by name.
1951 (_initialize_cli_script): Assign the various cmd_list_element
1952 variables.
1953 * compile/compile.c (compile_cmd_element): New.
1954 (_initialize_compile): Assign compile_cmd_element.
1955 * compile/compile.h (compile_cmd_element): New.
1956 * guile/guile.c (guile_cmd_element): New.
1957 (install_gdb_commands): Assign guile_cmd_element.
1958 * guile/guile.h (guile_cmd_element): New.
1959 * python/python.c (python_cmd_element): New.
1960 (_initialize_python): Assign python_cmd_element.
1961 * python/python.h (python_cmd_element): New.
1962 * tracepoint.c (while_stepping_cmd_element): New.
1963 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1964 * tracepoint.h (while_stepping_cmd_element): New.
1965
1966 2018-09-17 Tom Tromey <tom@tromey.com>
1967
1968 * infrun.c (save_infcall_suspend_state): Return
1969 infcall_suspend_state_up.
1970 (save_infcall_control_state): Return infcall_control_state_up.
1971 * inferior.h (save_infcall_suspend_state)
1972 (save_infcall_control_state): Declare later. Return unique
1973 pointers.
1974
1975 2018-09-17 Tom Tromey <tom@tromey.com>
1976
1977 * infrun.c (struct stop_context): Declare constructor,
1978 destructor, "changed" method.
1979 (stop_context::stop_context): Rename from save_stop_context.
1980 (stop_context::~stop_context): Rename from
1981 release_stop_context_cleanup.
1982 (normal_stop): Update.
1983 (stop_context::changed): Rename from stop_context_changed. Return
1984 bool.
1985
1986 2018-09-17 Tom Tromey <tom@tromey.com>
1987
1988 * inferior.h (struct infcall_suspend_state_deleter): New.
1989 (infcall_suspend_state_up): New typedef.
1990 (struct infcall_control_state_deleter): New.
1991 (infcall_control_state_up): New typedef.
1992 (make_cleanup_restore_infcall_suspend_state)
1993 (make_cleanup_restore_infcall_control_state): Don't declare.
1994 * infcall.c (call_function_by_hand_dummy): Update.
1995 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1996 (make_cleanup_restore_infcall_suspend_state): Remove.
1997 (do_restore_infcall_control_state_cleanup)
1998 (make_cleanup_restore_infcall_control_state): Remove.
1999
2000 2018-09-17 Tom Tromey <tom@tromey.com>
2001
2002 * gdbthread.h (struct thread_control_state): Add initializer.
2003 (class thread_info) <control>: Remove initializer.
2004 * inferior.h (struct inferior_control_state): Add initializer.
2005 (class inferior) <control>: Remove initializer.
2006 (exit_inferior_1): Update.
2007 * infrun.c (struct infcall_control_state): Add constructors.
2008 (save_infcall_control_state): Use new.
2009 (restore_infcall_control_state, discard_infcall_control_state):
2010 Use delete.
2011
2012 2018-09-17 Tom Tromey <tom@tromey.com>
2013
2014 * infrun.c (struct infcall_suspend_state) <registers>: Now a
2015 unique_ptr.
2016 <siginfo_data>: Now a unique_xmalloc_ptr.
2017 (save_infcall_suspend_state, restore_infcall_suspend_state)
2018 (discard_infcall_suspend_state)
2019 (get_infcall_suspend_state_regcache): Update.
2020
2021 2018-09-17 Tom Tromey <tom@tromey.com>
2022
2023 * gdbthread.h (struct thread_suspend_state): Add initializers.
2024 (class thread_info) <suspend>: Remove initializer.
2025 * infrun.c (struct infcall_suspend_state): Add initializers.
2026 (save_infcall_suspend_state): Use new.
2027 (discard_infcall_suspend_state): Use delete.
2028
2029 2018-09-16 Tom Tromey <tom@tromey.com>
2030
2031 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2032 Remove.
2033 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
2034 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2035 (py_varobj_iter_new): Likewise.
2036 (py_varobj_get_iterator): Use gdbpy_ref.
2037
2038 2018-09-16 Tom Tromey <tom@tromey.com>
2039
2040 * python/py-threadevent.c (py_get_event_thread): Simplify.
2041 * python/py-inferior.c (infpy_thread_from_thread_handle):
2042 Return immediately after calling thread_to_thread_object. Use
2043 Py_RETURN_NONE.
2044 (thread_to_thread_object): Set the exception on a NULL return.
2045
2046 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2047
2048 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
2049
2050 2018-09-16 Tom Tromey <tom@tromey.com>
2051
2052 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2053 Remove.
2054
2055 2018-09-16 Tom Tromey <tom@tromey.com>
2056
2057 * python/python-internal.h (thread_to_thread_object): Change
2058 return type.
2059 * python/py-inferior.c (thread_to_thread_object): Return a new
2060 reference.
2061 (infpy_thread_from_thread_handle): Update.
2062 * python/py-infthread.c (gdbpy_selected_thread): Update.
2063 * python/py-stopevent.c (create_stop_event_object): Update.
2064 * python/py-threadevent.c (py_get_event_thread): Return a new
2065 reference.
2066 (py_get_event_thread): Update.
2067 * python/py-event.h (py_get_event_thread): Change return type.
2068 * python/py-continueevent.c (create_continue_event_object):
2069 Update.
2070
2071 2018-09-16 Tom Tromey <tom@tromey.com>
2072
2073 * python/py-progspace.c (pspy_get_objfiles): Update.
2074 * python/python-internal.h (objfile_to_objfile_object): Change
2075 return type.
2076 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2077 Update.
2078 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2079 Update.
2080 * python/python.c (gdbpy_get_current_objfile): Update.
2081 (gdbpy_objfiles): Update.
2082 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
2083 Update.
2084 (objfile_to_objfile_object): Return a new reference.
2085 * python/py-symtab.c (stpy_get_objfile): Update.
2086 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2087 Update.
2088
2089 2018-09-16 Tom Tromey <tom@tromey.com>
2090
2091 * python/py-inferior.c (infpy_get_progspace): Update.
2092 * python/python-internal.h (pspace_to_pspace_object): Change
2093 return type.
2094 * python/py-newobjfileevent.c
2095 (create_clear_objfiles_event_object): Update.
2096 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2097 Update.
2098 * python/python.c (gdbpy_get_current_progspace): Update.
2099 (gdbpy_progspaces): Update.
2100 * python/py-progspace.c (pspace_to_pspace_object): Return a new
2101 reference.
2102 * python/py-objfile.c (objfpy_get_progspace): Update.
2103 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
2104 Update.
2105
2106 2018-09-16 Tom Tromey <tom@tromey.com>
2107
2108 * python/lib/gdb/__init__.py (current_progspace, objfiles)
2109 (solib_name, block_for_pc, find_pc_line): New functions.
2110 (execute_unwinders): Update.
2111 * python/py-block.c (gdbpy_block_for_pc): Remove.
2112 * python/py-inferior.c (infpy_get_progspace): New function.
2113 (inferior_object_getset) <progspace>: Add.
2114 * python/py-progspace.c (pspy_objfiles): Rewrite.
2115 (pspy_solib_name, pspy_block_for_pc)
2116 (pspy_find_pc_line, pspy_is_valid): New functions.
2117 (progspace_object_methods): Add entries for solib_name,
2118 block_for_pc, find_pc_line, is_valid.
2119 * python/python-internal.h (gdbpy_block_for_pc)
2120 (build_objfiles_list): Don't declare.
2121 * python/python.c: Don't include solib.h.
2122 (gdbpy_solib_name, gdbpy_find_pc_line)
2123 (gdbpy_get_current_progspace, build_objfiles_list)
2124 (gdbpy_objfiles): Remove.
2125 (GdbMethods) <current_progspace, objfiles, block_for_pc,
2126 solib_name, find_pc_line>: Remove entries.
2127
2128 2018-09-16 Tom Tromey <tom@tromey.com>
2129
2130 * top.c (new_ui_command): Use GNU style for metasyntactic
2131 variables.
2132 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
2133 variables.
2134 * maint.c (maintenance_translate_address): Remove "<>" around
2135 text.
2136 * interps.c (interpreter_exec_cmd): Use GNU style for
2137 metasyntactic variables.
2138 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
2139 metasyntactic variables.
2140 * tracepoint.c (tfind_range_command): Use GNU style for
2141 metasyntactic variables.
2142 (tfind_outside_command): Likewise.
2143 (_initialize_tracepoint): Likewise.
2144 * remote.c (extended_remote_target::create_inferior): Use GNU
2145 style for metasyntactic variables.
2146 * sparc64-tdep.c (adi_examine_command): Use GNU style for
2147 metasyntactic variables.
2148 (adi_assign_command): Likewise.
2149
2150 2018-09-16 Tom Tromey <tom@tromey.com>
2151
2152 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
2153 metasyntactic variables. Print message if no disassembler options
2154 are available.
2155
2156 2018-09-15 Tom Tromey <tom@tromey.com>
2157
2158 * infcmd.c (get_inferior_args): Return const char *.
2159 * inferior.h (get_inferior_args): Return type now const.
2160 * linux-tdep.c (linux_fill_prpsinfo): Update.
2161 * procfs.c (procfs_target::make_corefile_notes): Update.
2162
2163 2018-09-07 Tom Tromey <tom@tromey.com>
2164
2165 * python/python.c (execute_gdb_command): Call bpstat_do_actions
2166 inside the TRY.
2167
2168 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
2169
2170 * nios2-tdep.c (nios2_type_align): New.
2171 (nios2_gdb_arch_init): Install type_align hook.
2172
2173 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * eval.c (fake_method::fake_method): Call xzalloc directly for a
2176 type that is neither object file owned, nor gdbarch owned.
2177 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
2178 gdbarch is non-NULL.
2179 (alloc_type_instance): Allocate non-objfile owned types on the
2180 gdbarch obstack.
2181 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
2182 using TYPE_ALLOC to ensure memory is allocated on the correct
2183 obstack.
2184 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
2185 obstack, or the gdbarch obstack.
2186 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
2187
2188 2018-09-14 Tom Tromey <tom@tromey.com>
2189
2190 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2191 block.
2192
2193 2018-09-14 Tom Tromey <tom@tromey.com>
2194
2195 * nat/fork-inferior.c (get_startup_shell): Remove "static".
2196
2197 2018-09-13 Tom Tromey <tom@tromey.com>
2198
2199 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2200 static.
2201
2202 2018-09-13 Tom Tromey <tom@tromey.com>
2203
2204 * exec.c (try_open_exec_file): Use std::string.
2205
2206 2018-09-13 Tom Tromey <tom@tromey.com>
2207
2208 * utils.h (gdb_bfd_errmsg): Return std::string.
2209 * exec.c (exec_file_attach): Update.
2210 * compile/compile-object-load.c (compile_object_load): Update.
2211 * utils.c (gdb_bfd_errmsg): Return std::string.
2212
2213 2018-09-13 Tom Tromey <tom@tromey.com>
2214
2215 * procfs.c (struct procinfo_deleter): New.
2216 (procinfo_up): New typedef.
2217 (do_destroy_procinfo_cleanup): Remove.
2218 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
2219
2220 2018-09-13 Tom Tromey <tom@tromey.com>
2221
2222 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2223
2224 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2225 2018-09-13 Tom Tromey <tom@tromey.com>
2226
2227 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2228 (pspy_get_objfiles): New function.
2229 (progspace_object_methods): New.
2230 (pspace_object_type): Add tp_methods callback.
2231 * python/python-internal.h (build_objfiles_list): New
2232 declaration.
2233 * python/python.c (build_objfiles_list): New function.
2234 (gdbpy_objfiles): Implement using build_objfiles_list.
2235 * NEWS: Mention the Progspace.objfiles method.
2236
2237 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2238
2239 * python/py-inferior.c (infpy_get_progspace): New function.
2240 (inferior_object_getset): Add progspace property.
2241 * NEWS: Mention the new property.
2242
2243 2018-09-13 Tom Tromey <tom@tromey.com>
2244
2245 PR rust/23650:
2246 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
2247
2248 2018-09-13 Tom Tromey <tom@tromey.com>
2249
2250 PR rust/23626:
2251 * rust-lang.c (rust_enum_variant): Now static.
2252 (rust_empty_enum_p): New function.
2253 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
2254 Handle empty enum.
2255
2256 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2257
2258 * python/py-inferior.c (infpy_repr): New.
2259 (inferior_object_type): Register infpy_repr.
2260 * python/py-objfile.c (objfpy_repr): New.
2261 (objfile_object_type): Register objfpy_repr.
2262
2263 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2264
2265 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
2266
2267 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2268
2269 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
2270 typo.
2271
2272 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
2273
2274 * common/common-utils.c: Don't include '<sys/stat.h>'.
2275 (is_regular_file): Move to...
2276 * common/filestuff.c (is_regular_file): ... here.
2277 * common/common-utils.h (is_regular_file): Move to...
2278 * common/filestuff.h (is_regular_file): ... here.
2279
2280 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
2281
2282 * skip.c (debug_skip): New variable.
2283 (skiplist_entry::do_skip_file_p): Add debug output.
2284 (skiplist_entry::do_skip_gfile_p): Likewise.
2285 (skiplist_entry::skip_function_p): Likewise.
2286 (_initialize_step_skip): Create debug command.
2287 * NEWS: Mention set/show debug skip.
2288
2289 2018-09-11 Xavier Roirand <roirand@adacore.com>
2290
2291 * darwin-nat.c (should_disable_startup_with_shell):
2292 New function.
2293 (darwin_nat_target::create_inferior): Add call.
2294
2295 2018-09-11 Xavier Roirand <roirand@adacore.com>
2296
2297 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
2298 inf_port, msg_state>: Initialize.
2299 (struct darwin_thread_info) <signaled, single_step>: Change
2300 type and initialize.
2301 (struct darwin_thread_info) <event>: Initialize.
2302
2303 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2304
2305 PR gdb/23555
2306 PR gdb/23558
2307 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
2308 guesses.
2309
2310 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2311
2312 Revert:
2313 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2314
2315 PR gdb/23555
2316 PR gdb/23558
2317 * gnulib/aclocal.m4: Regenerate.
2318 * gnulib/config.in: Regenerate.
2319 * gnulib/configure: Regenerate.
2320 * gnulib/import/Makefile.am: Update.
2321 * gnulib/import/Makefile.in: Update.
2322 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2323 * gnulib/import/_Noreturn.h: ... this.
2324 * gnulib/import/alloca.in.h: Update.
2325 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2326 * gnulib/import/arg-nonnull.h: ... this.
2327 * gnulib/import/assure.h: Update.
2328 * gnulib/import/at-func.c: Update.
2329 * gnulib/import/basename-lgpl.c: Update.
2330 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2331 * gnulib/import/c++defs.h: ... this.
2332 * gnulib/import/canonicalize-lgpl.c: Update.
2333 * gnulib/import/cdefs.h: Update.
2334 * gnulib/import/chdir-long.c: Update.
2335 * gnulib/import/chdir-long.h: Update.
2336 * gnulib/import/cloexec.c: Update.
2337 * gnulib/import/cloexec.h: Update.
2338 * gnulib/import/close.c: Update.
2339 * gnulib/import/closedir.c: Update.
2340 * gnulib/import/config.charset: Update.
2341 * gnulib/import/dirent-private.h: Update.
2342 * gnulib/import/dirent.in.h: Update.
2343 * gnulib/import/dirfd.c: Update.
2344 * gnulib/import/dirname-lgpl.c: Update.
2345 * gnulib/import/dirname.h: Update.
2346 * gnulib/import/dosname.h: Update.
2347 * gnulib/import/dup-safer-flag.c: Update.
2348 * gnulib/import/dup-safer.c: Update.
2349 * gnulib/import/dup.c: Update.
2350 * gnulib/import/dup2.c: Update.
2351 * gnulib/import/errno.in.h: Update.
2352 * gnulib/import/error.c: Update.
2353 * gnulib/import/error.h: Update.
2354 * gnulib/import/exitfail.c: Update.
2355 * gnulib/import/exitfail.h: Update.
2356 * gnulib/import/extra/update-copyright: Update.
2357 * gnulib/import/fchdir.c: Update.
2358 * gnulib/import/fcntl.c: Update.
2359 * gnulib/import/fcntl.in.h: Update.
2360 * gnulib/import/fd-hook.c: Update.
2361 * gnulib/import/fd-hook.h: Update.
2362 * gnulib/import/fd-safer-flag.c: Update.
2363 * gnulib/import/fd-safer.c: Update.
2364 * gnulib/import/fdopendir.c: Update.
2365 * gnulib/import/filename.h: Update.
2366 * gnulib/import/filenamecat-lgpl.c: Update.
2367 * gnulib/import/filenamecat.h: Update.
2368 * gnulib/import/flexmember.h: Update.
2369 * gnulib/import/float+.h: Update.
2370 * gnulib/import/float.c: Update.
2371 * gnulib/import/float.in.h: Update.
2372 * gnulib/import/fnmatch.c: Update.
2373 * gnulib/import/fnmatch.in.h: Update.
2374 * gnulib/import/fnmatch_loop.c: Update.
2375 * gnulib/import/fpucw.h: Update.
2376 * gnulib/import/frexp.c: Update.
2377 * gnulib/import/frexpl.c: Update.
2378 * gnulib/import/fstat.c: Update.
2379 * gnulib/import/fstatat.c: Update.
2380 * gnulib/import/getcwd-lgpl.c: Update.
2381 * gnulib/import/getcwd.c: Update.
2382 * gnulib/import/getdtablesize.c: Update.
2383 * gnulib/import/getlogin_r.c: Update.
2384 * gnulib/import/getprogname.c: Update.
2385 * gnulib/import/getprogname.h: Update.
2386 * gnulib/import/gettext.h: Update.
2387 * gnulib/import/gettimeofday.c: Update.
2388 * gnulib/import/glob-libc.h: Update.
2389 * gnulib/import/glob.c: Update.
2390 * gnulib/import/glob.in.h: Update.
2391 * gnulib/import/glob_internal.h: Update.
2392 * gnulib/import/glob_pattern_p.c: Update.
2393 * gnulib/import/globfree.c: Update.
2394 * gnulib/import/hard-locale.c: Update.
2395 * gnulib/import/hard-locale.h: Update.
2396 * gnulib/import/intprops.h: Update.
2397 * gnulib/import/inttypes.in.h: Update.
2398 * gnulib/import/isnan.c: Update.
2399 * gnulib/import/isnand-nolibm.h: Update.
2400 * gnulib/import/isnand.c: Update.
2401 * gnulib/import/isnanl-nolibm.h: Update.
2402 * gnulib/import/isnanl.c: Update.
2403 * gnulib/import/itold.c: Update.
2404 * gnulib/import/libc-config.h: Update.
2405 * gnulib/import/limits.in.h: Update.
2406 * gnulib/import/localcharset.c: Update.
2407 * gnulib/import/localcharset.h: Update.
2408 * gnulib/import/localtime-buffer.c: Update.
2409 * gnulib/import/localtime-buffer.h: Update.
2410 * gnulib/import/lstat.c: Update.
2411 * gnulib/import/m4/00gnulib.m4: Update.
2412 * gnulib/import/m4/__inline.m4: Update.
2413 * gnulib/import/m4/absolute-header.m4: Update.
2414 * gnulib/import/m4/alloca.m4: Update.
2415 * gnulib/import/m4/builtin-expect.m4: Update.
2416 * gnulib/import/m4/canonicalize.m4: Update.
2417 * gnulib/import/m4/chdir-long.m4: Update.
2418 * gnulib/import/m4/close.m4: Update.
2419 * gnulib/import/m4/closedir.m4: Update.
2420 * gnulib/import/m4/configmake.m4: Update.
2421 * gnulib/import/m4/d-ino.m4: Update.
2422 * gnulib/import/m4/d-type.m4: Update.
2423 * gnulib/import/m4/dirent_h.m4: Update.
2424 * gnulib/import/m4/dirfd.m4: Update.
2425 * gnulib/import/m4/dirname.m4: Update.
2426 * gnulib/import/m4/double-slash-root.m4: Update.
2427 * gnulib/import/m4/dup.m4: Update.
2428 * gnulib/import/m4/dup2.m4: Update.
2429 * gnulib/import/m4/eealloc.m4: Update.
2430 * gnulib/import/m4/environ.m4: Update.
2431 * gnulib/import/m4/errno_h.m4: Update.
2432 * gnulib/import/m4/error.m4: Update.
2433 * gnulib/import/m4/exponentd.m4: Update.
2434 * gnulib/import/m4/exponentl.m4: Update.
2435 * gnulib/import/m4/extensions.m4: Update.
2436 * gnulib/import/m4/extern-inline.m4: Update.
2437 * gnulib/import/m4/fchdir.m4: Update.
2438 * gnulib/import/m4/fcntl-o.m4: Update.
2439 * gnulib/import/m4/fcntl.m4: Update.
2440 * gnulib/import/m4/fcntl_h.m4: Update.
2441 * gnulib/import/m4/fdopendir.m4: Update.
2442 * gnulib/import/m4/filenamecat.m4: Update.
2443 * gnulib/import/m4/flexmember.m4: Update.
2444 * gnulib/import/m4/float_h.m4: Update.
2445 * gnulib/import/m4/fnmatch.m4: Update.
2446 * gnulib/import/m4/fnmatch_h.m4: Update.
2447 * gnulib/import/m4/fpieee.m4: Update.
2448 * gnulib/import/m4/frexp.m4: Update.
2449 * gnulib/import/m4/frexpl.m4: Update.
2450 * gnulib/import/m4/fstat.m4: Update.
2451 * gnulib/import/m4/fstatat.m4: Update.
2452 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2453 * gnulib/import/m4/getcwd-path-max.m4: Update.
2454 * gnulib/import/m4/getcwd.m4: Update.
2455 * gnulib/import/m4/getdtablesize.m4: Update.
2456 * gnulib/import/m4/getlogin.m4: Update.
2457 * gnulib/import/m4/getlogin_r.m4: Update.
2458 * gnulib/import/m4/getpagesize.m4: Update.
2459 * gnulib/import/m4/getprogname.m4: Update.
2460 * gnulib/import/m4/gettimeofday.m4: Update.
2461 * gnulib/import/m4/glibc21.m4: Update.
2462 * gnulib/import/m4/glob.m4: Update.
2463 * gnulib/import/m4/glob_h.m4: Update.
2464 * gnulib/import/m4/gnulib-cache.m4: Update.
2465 * gnulib/import/m4/gnulib-common.m4: Update.
2466 * gnulib/import/m4/gnulib-comp.m4: Update.
2467 * gnulib/import/m4/gnulib-tool.m4: Update.
2468 * gnulib/import/m4/hard-locale.m4: Update.
2469 * gnulib/import/m4/include_next.m4: Update.
2470 * gnulib/import/m4/inttypes-pri.m4: Update.
2471 * gnulib/import/m4/inttypes.m4: Update.
2472 * gnulib/import/m4/isnand.m4: Update.
2473 * gnulib/import/m4/isnanl.m4: Update.
2474 * gnulib/import/m4/largefile.m4: Update.
2475 * gnulib/import/m4/limits-h.m4: Update.
2476 * gnulib/import/m4/localcharset.m4: Update.
2477 * gnulib/import/m4/locale-fr.m4: Update.
2478 * gnulib/import/m4/locale-ja.m4: Update.
2479 * gnulib/import/m4/locale-zh.m4: Update.
2480 * gnulib/import/m4/localtime-buffer.m4: Update.
2481 * gnulib/import/m4/longlong.m4: Update.
2482 * gnulib/import/m4/lstat.m4: Update.
2483 * gnulib/import/m4/malloc.m4: Update.
2484 * gnulib/import/m4/malloca.m4: Update.
2485 * gnulib/import/m4/math_h.m4: Update.
2486 * gnulib/import/m4/mbrtowc.m4: Update.
2487 * gnulib/import/m4/mbsinit.m4: Update.
2488 * gnulib/import/m4/mbsrtowcs.m4: Update.
2489 * gnulib/import/m4/mbstate_t.m4: Update.
2490 * gnulib/import/m4/memchr.m4: Update.
2491 * gnulib/import/m4/memmem.m4: Update.
2492 * gnulib/import/m4/mempcpy.m4: Update.
2493 * gnulib/import/m4/memrchr.m4: Update.
2494 * gnulib/import/m4/mkdir.m4: Update.
2495 * gnulib/import/m4/mkstemp.m4: Update.
2496 * gnulib/import/m4/mmap-anon.m4: Update.
2497 * gnulib/import/m4/mode_t.m4: Update.
2498 * gnulib/import/m4/msvc-inval.m4: Update.
2499 * gnulib/import/m4/msvc-nothrow.m4: Update.
2500 * gnulib/import/m4/multiarch.m4: Update.
2501 * gnulib/import/m4/nocrash.m4: Update.
2502 * gnulib/import/m4/off_t.m4: Update.
2503 * gnulib/import/m4/onceonly.m4: Update.
2504 * gnulib/import/m4/open-cloexec.m4: Update.
2505 * gnulib/import/m4/open.m4: Update.
2506 * gnulib/import/m4/openat.m4: Update.
2507 * gnulib/import/m4/opendir.m4: Update.
2508 * gnulib/import/m4/pathmax.m4: Update.
2509 * gnulib/import/m4/rawmemchr.m4: Update.
2510 * gnulib/import/m4/readdir.m4: Update.
2511 * gnulib/import/m4/readlink.m4: Update.
2512 * gnulib/import/m4/realloc.m4: Update.
2513 * gnulib/import/m4/rename.m4: Update.
2514 * gnulib/import/m4/rewinddir.m4: Update.
2515 * gnulib/import/m4/rmdir.m4: Update.
2516 * gnulib/import/m4/save-cwd.m4: Update.
2517 * gnulib/import/m4/secure_getenv.m4: Update.
2518 * gnulib/import/m4/setenv.m4: Update.
2519 * gnulib/import/m4/signal_h.m4: Update.
2520 * gnulib/import/m4/ssize_t.m4: Update.
2521 * gnulib/import/m4/stat-time.m4: Update.
2522 * gnulib/import/m4/stat.m4: Update.
2523 * gnulib/import/m4/std-gnu11.m4: Update.
2524 * gnulib/import/m4/stdbool.m4: Update.
2525 * gnulib/import/m4/stddef_h.m4: Update.
2526 * gnulib/import/m4/stdint.m4: Update.
2527 * gnulib/import/m4/stdio_h.m4: Update.
2528 * gnulib/import/m4/stdlib_h.m4: Update.
2529 * gnulib/import/m4/strchrnul.m4: Update.
2530 * gnulib/import/m4/strdup.m4: Update.
2531 * gnulib/import/m4/strerror.m4: Update.
2532 * gnulib/import/m4/string_h.m4: Update.
2533 * gnulib/import/m4/strstr.m4: Update.
2534 * gnulib/import/m4/strtok_r.m4: Update.
2535 * gnulib/import/m4/sys_socket_h.m4: Update.
2536 * gnulib/import/m4/sys_stat_h.m4: Update.
2537 * gnulib/import/m4/sys_time_h.m4: Update.
2538 * gnulib/import/m4/sys_types_h.m4: Update.
2539 * gnulib/import/m4/tempname.m4: Update.
2540 * gnulib/import/m4/time_h.m4: Update.
2541 * gnulib/import/m4/unistd-safer.m4: Update.
2542 * gnulib/import/m4/unistd_h.m4: Update.
2543 * gnulib/import/m4/warn-on-use.m4: Update.
2544 * gnulib/import/m4/wchar_h.m4: Update.
2545 * gnulib/import/m4/wchar_t.m4: Update.
2546 * gnulib/import/m4/wctype_h.m4: Update.
2547 * gnulib/import/m4/wint_t.m4: Update.
2548 * gnulib/import/malloc.c: Update.
2549 * gnulib/import/malloc/scratch_buffer.h: Update.
2550 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2551 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2552 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2553 * gnulib/import/malloca.c: Update.
2554 * gnulib/import/malloca.h: Update.
2555 * gnulib/import/malloca.valgrind: Update.
2556 * gnulib/import/math.in.h: Update.
2557 * gnulib/import/mbrtowc.c: Update.
2558 * gnulib/import/mbsinit.c: Update.
2559 * gnulib/import/mbsrtowcs-impl.h: Update.
2560 * gnulib/import/mbsrtowcs-state.c: Update.
2561 * gnulib/import/mbsrtowcs.c: Update.
2562 * gnulib/import/memchr.c: Update.
2563 * gnulib/import/memmem.c: Update.
2564 * gnulib/import/mempcpy.c: Update.
2565 * gnulib/import/memrchr.c: Update.
2566 * gnulib/import/mkdir.c: Update.
2567 * gnulib/import/mkstemp.c: Update.
2568 * gnulib/import/msvc-inval.c: Update.
2569 * gnulib/import/msvc-inval.h: Update.
2570 * gnulib/import/msvc-nothrow.c: Update.
2571 * gnulib/import/msvc-nothrow.h: Update.
2572 * gnulib/import/open.c: Update.
2573 * gnulib/import/openat-die.c: Update.
2574 * gnulib/import/openat-priv.h: Update.
2575 * gnulib/import/openat-proc.c: Update.
2576 * gnulib/import/openat.c: Update.
2577 * gnulib/import/openat.h: Update.
2578 * gnulib/import/opendir.c: Update.
2579 * gnulib/import/pathmax.h: Update.
2580 * gnulib/import/pipe-safer.c: Update.
2581 * gnulib/import/rawmemchr.c: Update.
2582 * gnulib/import/readdir.c: Update.
2583 * gnulib/import/readlink.c: Update.
2584 * gnulib/import/realloc.c: Update.
2585 * gnulib/import/ref-add.sin: Update.
2586 * gnulib/import/ref-del.sin: Update.
2587 * gnulib/import/rename.c: Update.
2588 * gnulib/import/rewinddir.c: Update.
2589 * gnulib/import/rmdir.c: Update.
2590 * gnulib/import/same-inode.h: Update.
2591 * gnulib/import/save-cwd.c: Update.
2592 * gnulib/import/save-cwd.h: Update.
2593 * gnulib/import/scratch_buffer.h: Update.
2594 * gnulib/import/secure_getenv.c: Update.
2595 * gnulib/import/setenv.c: Update.
2596 * gnulib/import/signal.in.h: Update.
2597 * gnulib/import/stat-time.c: Update.
2598 * gnulib/import/stat-time.h: Update.
2599 * gnulib/import/stat-w32.c: Update.
2600 * gnulib/import/stat-w32.h: Update.
2601 * gnulib/import/stat.c: Update.
2602 * gnulib/import/stdbool.in.h: Update.
2603 * gnulib/import/stddef.in.h: Update.
2604 * gnulib/import/stdint.in.h: Update.
2605 * gnulib/import/stdio.in.h: Update.
2606 * gnulib/import/stdlib.in.h: Update.
2607 * gnulib/import/str-two-way.h: Update.
2608 * gnulib/import/strchrnul.c: Update.
2609 * gnulib/import/strdup.c: Update.
2610 * gnulib/import/streq.h: Update.
2611 * gnulib/import/strerror-override.c: Update.
2612 * gnulib/import/strerror-override.h: Update.
2613 * gnulib/import/strerror.c: Update.
2614 * gnulib/import/string.in.h: Update.
2615 * gnulib/import/stripslash.c: Update.
2616 * gnulib/import/strnlen1.c: Update.
2617 * gnulib/import/strnlen1.h: Update.
2618 * gnulib/import/strstr.c: Update.
2619 * gnulib/import/strtok_r.c: Update.
2620 * gnulib/import/sys_stat.in.h: Update.
2621 * gnulib/import/sys_time.in.h: Update.
2622 * gnulib/import/sys_types.in.h: Update.
2623 * gnulib/import/tempname.c: Update.
2624 * gnulib/import/tempname.h: Update.
2625 * gnulib/import/time.in.h: Update.
2626 * gnulib/import/unistd--.h: Update.
2627 * gnulib/import/unistd-safer.h: Update.
2628 * gnulib/import/unistd.in.h: Update.
2629 * gnulib/import/unsetenv.c: Update.
2630 * gnulib/import/verify.h: Update.
2631 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2632 * gnulib/import/wchar.in.h: Update.
2633 * gnulib/import/wctype.in.h: Update.
2634 * gnulib/import/xalloc-oversized.h: Update.
2635 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2636 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2637
2638 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
2639
2640 * record-btrace.c (get_thread_current_frame): Remove
2641 old_inferior_ptid.
2642
2643 2018-09-10 Jerome Guitton <guitton@adacore.com>
2644
2645 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
2646 with check_tag to 1 if and only if the type is tagged and the
2647 component being searched cannot been found in the current
2648 view. Otherwise, always call ada_to_fixed_type with
2649 check_tag to 0.
2650
2651 2018-09-10 Xavier Roirand <roirand@adacore.com>
2652
2653 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
2654 declaration.
2655 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
2656 * ada-varobj.c (ada_varobj_get_number_of_children,
2657 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
2658
2659 2018-09-10 Xavier Roirand <roirand@adacore.com>
2660
2661 * ada-valprint.c (ada_value_print): Use type instead of
2662 enclosing type.
2663
2664 2018-09-10 Xavier Roirand <roirand@adacore.com>
2665
2666 * ada-lang.c (ada_value_subscript): Handle case when parameter is
2667 an array of access to unconstrained array.
2668
2669 2018-09-10 Xavier Roirand <roirand@adacore.com>
2670
2671 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
2672 (ada_check_typedef): Use it.
2673
2674 2018-09-10 Xavier Roirand <roirand@adacore.com>
2675
2676 * ada-varobj.c (ada_varobj_describe_struct_child)
2677 (ada_varobj_describe_child): Handle union case like struct one.
2678
2679 2018-09-10 Tom Tromey <tom@tromey.com>
2680
2681 PR python/18380:
2682 * python/python.c (_initialize_python): Make example in "python"
2683 help work in Python 3.
2684
2685 2018-09-10 Eli Zaretskii <eliz@gnu.org>
2686
2687 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
2688 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
2689 $(EXEEXT) to the script, as it is not a program.
2690
2691 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
2692
2693 * python/py-prettyprint.c (pretty_print_one_value): Return
2694 gdbpy_ref<>.
2695 (print_string_repr): Adjust.
2696 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
2697 * python/python-internal.h (apply_varobj_pretty_printer): Return
2698 gdbpy_ref<>.
2699 * varobj.c (varobj_value_get_print_value): Adjust.
2700
2701 2018-09-08 Tom Tromey <tom@tromey.com>
2702
2703 PR python/16047:
2704 * python/py-prettyprint.c (pretty_print_one_value): Check for
2705 to_string method.
2706
2707 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2708
2709 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
2710 replace_operator_with_call.
2711
2712 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2713
2714 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
2715
2716 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2717
2718 * ada-typeprint.c (print_range): Print the bounds using TYPE
2719 rather than its TYPE_TARGET_TYPE.
2720
2721 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2722
2723 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
2724 call to ada_to_fixed_value_create.
2725
2726 2018-09-08 Jerome Guitton <guitton@adacore.com>
2727
2728 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
2729
2730 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2731
2732 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
2733 by calls to error.
2734
2735 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2736
2737 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
2738 Move update of loop variable "fi".
2739
2740 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2741
2742 * ada-lang.c (value_assign_to_component): In the case of
2743 big-endian targets, extract the bits of the given VAL
2744 using an src_offset of zero if container is not a scalar.
2745
2746 2018-09-06 Simon Ser <contact@emersion.fr>
2747
2748 PR gdb/23105
2749 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
2750 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2751 * fbsd-tdep.c (fbsd_make_note_desc): New.
2752 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
2753 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
2754 * target.h (enum target_object) Add FreeBSD-specific
2755 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2756
2757 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2758
2759 * compile/compile-c.h (generate_c_for_variable_locations):
2760 Change reference to pointer.
2761 * compile/compile-c-support.c (compile_program) <compute>:
2762 Likewise.
2763 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
2764 (generate_c_for_for_one_variable): Likewise
2765 (generate_c_for_variable_locations): Likewise
2766 * compile/compile-c-types.c (compile_c_instance::convert_type):
2767 Likewise
2768 * compile/compile-cplus-symbols.c (convert_one_symbol):
2769 std::move the scope passed to enter_scope.
2770 * compile/compile-cplus-types.c
2771 (compile_cplus_instance::enter_scope): Make parameter
2772 rvalue-reference.
2773 (compile_cplus_instance::new_scope): Change reference to
2774 pointer.
2775 (compile_cplus_instance::convert_type): Likewise
2776 (compile_cplus_convert_typedef): std::move the scope passed to
2777 enter_scope.
2778 (compile_cplus_convert_struct_or_union): Likewise.
2779 (compile_cplus_convert_enum): Likewise.
2780 (compile_cplus_convert_namespace): Likewise.
2781 * compile/compile-cplus.h (compile_cplus_instance)
2782 <enter_scope>: Make parameter rvalue-reference.
2783 * compile/compile-internal.h (compile_instance)
2784 <get_cached_type>: Likewise
2785 * compile/compile-loc2c.c (push): Likewise
2786 (pushf): Likewise
2787 (unary): Likewise
2788 (binary): Likewise
2789 (print_label): Likewise
2790 (pushf_register_address): Likewise
2791 (pushf_register): Likewise
2792 (do_compile_dwarf_expr_to_c): Likewise
2793 (compile_dwarf_expr_to_c): Likewise
2794 (compile_dwarf_bounds_to_c): Likewise
2795 * compile/compile.c (compile_instance::get_cached_type):
2796 Likewise
2797 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
2798 (compile_dwarf_bounds_to_c): Likewise
2799 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
2800 (dwarf2_compile_property_to_c): Likewise
2801 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
2802 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2803 Likewise
2804
2805 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2806
2807 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
2808 * tui/tui-data.c (init_content_element): Don't initialize it.
2809
2810 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2811
2812 * tui/tui-data.h (struct tui_win_info)
2813 <detail::opaque>: Remove.
2814 * tui/tui-data.c (init_win_info): Remove assignment.
2815
2816 2018-09-05 Tom Tromey <tom@tromey.com>
2817
2818 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
2819 -Wformat-nonliteral.
2820 * target-float.c (host_float_ops<T>::to_string)
2821 (host_float_ops<T>::from_string): Use
2822 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2823 * configure: Rebuild.
2824
2825 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
2826
2827 * printcmd.c (printf_c_string): Use
2828 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2829 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2830
2831 2018-09-05 Tom Tromey <tom@tromey.com>
2832
2833 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2834
2835 2018-09-05 Tom de Vries <tdevries@suse.de>
2836
2837 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2838 with resolve_abstract_p == true.
2839 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2840 defaulting to false. Propagate resolve_abstract_p to
2841 dwarf2_fetch_die_loc_sect_off.
2842 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2843 parameter, defaulting to false.
2844 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2845 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2846 parameter.
2847 * dwarf2read.h (struct die_info): Forward-declare.
2848 (die_info_ptr): New typedef.
2849 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2850
2851 2018-09-05 Joel Brobecker <brobecker@adacore.com>
2852
2853 GDB 8.2 released.
2854
2855 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2856 Pedro Alves <palves@redhat.com>
2857
2858 * gnulib/Makefile.in (aclocal_m4_deps): Move to
2859 "aclocal-m4-deps.mk". Include file here.
2860 $(srcdir)/aclocal.m4: Add "configure.ac".
2861 * gnulib/aclocal-m4-deps.mk: New file.
2862 * gnulib/update-gnulib.sh: Automatically update
2863 "aclocal-m4-deps.mk".
2864
2865 2018-09-04 Tom Tromey <tom@tromey.com>
2866
2867 * configure: Rebuild.
2868 * configure.ac: Remove multi-ice code.
2869
2870 2018-09-04 Tom Tromey <tom@tromey.com>
2871
2872 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2873 (ada-exp.o): Update.
2874
2875 2018-09-04 Tom Tromey <tom@tromey.com>
2876
2877 * Makefile.in (printcmd.o, target-float.o): Remove.
2878 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2879
2880 2018-09-04 Tom Tromey <tom@tromey.com>
2881
2882 * gnulib/Makefile.in: Remove obsolete comment.
2883 * Makefile.in: Remove obsolete comment.
2884
2885 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2886
2887 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2888 line with '+'.
2889
2890 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * riscv-tdep.c: Add 'prologue-value.h' include.
2893 (struct riscv_unwind_cache): New struct.
2894 (riscv_debug_unwinder): New global.
2895 (riscv_scan_prologue): Update arguments, capture register details
2896 from prologue scan.
2897 (riscv_skip_prologue): Reformat arguments line, move end of
2898 prologue calculation into riscv_scan_prologue.
2899 (riscv_frame_cache): Update return type, create
2900 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2901 details.
2902 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2903 (riscv_frame_prev_register): Use the trad_frame within the
2904 riscv_unwind_cache.
2905 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2906 flag.
2907
2908 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2909
2910 * trad-frame.h (trad_frame_set_realreg): Declare.
2911 (trad_frame_set_addr): Declare.
2912 * trad-frame.c (trad_frame_set_realreg): Define new function.
2913 (trad_frame_set_addr): Define new function.
2914 (trad_frame_set_reg_realreg): Use new function.
2915 (trad_frame_set_reg_addr): Use new function.
2916
2917 2018-09-01 Keith Seitz <keiths@redhat.com>
2918
2919 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2920 pulongest instead of "%lld".
2921 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2922 ATTRIBUTE_UNUSED.
2923
2924 2018-08-31 Tom Tromey <tom@tromey.com>
2925
2926 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2927 variant part type.
2928
2929 2018-08-31 Pedro Alves <palves@redhat.com>
2930
2931 * gdbarch.h: Regenerate.
2932
2933 2018-08-31 Pedro Alves <palves@redhat.com>
2934
2935 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2936 * target.h (Hardware watchpoint interfaces): Describe
2937 continuable/steppable/non-steppable watchpoints.
2938 * gdbarch.h, gdbarch.c: Regenerate.
2939
2940 2018-08-31 Pedro Alves <palves@redhat.com>
2941
2942 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2943 Delete.
2944 * s390-linux-nat.c
2945 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2946 * target.h (target_ops::have_continuable_watchpoint): Delete.
2947 (target_have_continuable_watchpoint): Delete.
2948 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2949 * target-delegates.c: Regenerate.
2950
2951 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2952
2953 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2954 the files present in "gnulib/import/m4/".
2955
2956 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2957
2958 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2959 c.sw, c.swsp, and c.sdsp.
2960
2961 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2962
2963 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2964 (riscv_read_misa_reg): Don't cache value read into inferior data.
2965 (riscv_new_inferior_data): Delete.
2966 (riscv_inferior_data_cleanup): Delete.
2967 (riscv_inferior_data): Delete.
2968 (riscv_invalidate_inferior_data): Delete.
2969 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2970
2971 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2972
2973 * compile/compile-cplus-types.c
2974 (compile_cplus_instance::leave_scope): Take the address of scope
2975 object.
2976 (compile_cplus_instance::convert_qualified_base): Compare quals
2977 to 0.
2978
2979 2018-08-30 Keith Seitz <keiths@redhat.com>
2980
2981 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2982 Use "%s" and host_address_to_string instead of "%p" in printf.
2983
2984 2018-08-29 Keith Seitz <keiths@redhat.com>
2985
2986 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2987 and compile-cplus-types.c.
2988 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2989 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2990 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2991 Declare.
2992 * compile/compile-c-support.c: Include compile-cplus.h.
2993 (load_libcompile): Templatize.
2994 (get_compile_context): "New" function.
2995 (c_get_compile_context): Use get_compile_context.
2996 (cplus_get_compile_context): New function.
2997 (cplus_push_user_expression, cplus_pop_user_expression)
2998 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2999 (cplus_compute_program): Define new structs/functions.
3000 * compile/compile-cplus-symmbols.c: New file.
3001 * compile/compile-cplus-types.c: New file.
3002 * compile/compile-cplus.h: New file.
3003 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3004 Declare.
3005 * compile/compile-object-load.c (get_out_value_type): Use
3006 strncmp_iw when comparing symbol names.
3007 (compile_object_load): Add mst_bss and mst_data.
3008 * compile/compile.c (_initialize_compile): Remove
3009 -Wno-implicit-function-declaration from `compile_args'.
3010 * compile/gcc-cp-plugin.h: New file.
3011 * NEWS: Mention C++ compile support and new debug options.
3012
3013 2018-08-29 Keith Seitz <keiths@redhat.com>
3014
3015 * linespec.c (collect_info::add_symbol): Make virtual.
3016 (struct symbol_searcher_collect_info): New struct.
3017 (symbol_searcher::find_all_symbols): New method.
3018 * symtab.h (class symbol_searcher): New class.
3019
3020 2018-08-29 Keith Seitz <keiths@redhat.com>
3021
3022 * linespec.c (struct linespec) <function_symbols, label_symbols>:
3023 Change to vector of block_symbol. Update all users.
3024 (struct collect_info) <symbols>: Likewise.
3025 (collect_info::add_symbol): Take block_symbol as argument.
3026 Update all callers.
3027 (decode_compound_collector) <m_symbols>: Change type to vector
3028 of block_symbol. Update all users.
3029 (decode_compound_collector::operator ()): Change parameter type
3030 to block_symbol.
3031 (find_method, find_function_symbols, find_linespec_symbols)
3032 (find_label_symbols_in_block, find_label_symbols): Change symbol
3033 vectors to block_symbol vectors.
3034 * symtab.h (symbol_found_callback_ftype): Change parameter type to
3035 block_symbol.
3036
3037 2018-08-29 Keith Seitz <keiths@redhat.com>
3038
3039 * linespec.c (symbolp): Remove typedef and VEC definitions.
3040 (bound_minimal_symbol_d): Likewise.
3041
3042 2018-08-29 Keith Seitz <keiths@redhat.com>
3043
3044 * linespec.c (decode_compound_collector::decode_compound_collector):
3045 Remove initialization for `m_symtabs'.
3046 (decode_compound_collector::release_symbols): Change return type
3047 to std::vector. Update all callers.
3048 (class decode_compound_collector) <m_symbols>: Change type to
3049 std::vector.
3050 (lookup_prefix_sym): Change return type to std::vector. Update all
3051 callers.
3052 (compare_symbols): Remove.
3053 (std_compare_symbols): Rename to `compare_symbols'.
3054 (find_method): Change `sym_classes' parameter to std::vector.
3055 Update all callers. Use std::sort to sort sym_classes.
3056 (find_linespec_symbols): Remove cleanup.
3057
3058 2018-08-29 Keith Seitz <keiths@redhat.com>
3059
3060 * linespec.c (struct linespec) <minimal_symbols>: Change type to
3061 std::vector. Update all users.
3062 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
3063 (struct collect_info) <minimal_symbols>: Likewise.
3064 (compare_msymbols): Return bool. Change parameters to const
3065 bound_minimal_symbol references.
3066 (find_method, find_function_symbols, find_linespec_symbols): Change
3067 `minsyms' parameter to std::vector. Update all callers.
3068
3069 2018-08-29 Keith Seitz <keiths@redhat.com>
3070
3071 * linespec.c (struct linespec) <label_symbols>: Change type to
3072 std::vector. Update all users.
3073 (find_label_symbols_in_block): Change `result' parameter to
3074 std::vector. Update all callers.
3075 (find_label_symbols): Return std::vector. Update all callers.
3076
3077 2018-08-29 Keith Seitz <keiths@redhat.com>
3078
3079 * linespec.c (struct linespec) <function_symbols>: Change type to
3080 std::vector. Update all users.
3081 (struct collect_info) <function_symbols>: Likewise.
3082 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
3083 (std_compare_symbols): New function.
3084 (find_method, find_function_symbols, find_linespec_symbols)
3085 (find_label_symbols_in_block): Change `symbols' parameter to
3086 std::vector. Update all callers.
3087 (find_label_symbols): Likewise for `function_symbols' and
3088 `label_funcs_ret'.
3089
3090 2018-08-29 Keith Seitz <keiths@redhat.com>
3091
3092 * linespec.c (symtab_vector_up): Define.
3093 (struct linespec) <file_symtabs>: Change type to std::vector *.
3094 Update all uses.
3095 (struct collect_info) <file_symtabs>: Likewise.
3096 (collect_symtabs_from_filename): Return symtab_vector_up.
3097 Update all callers.
3098 (decode_objc): Remove cleanup.
3099 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
3100 (symtab_collector::release_symtabs): Return symtab_vector_up.
3101 Update all callers.
3102 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
3103 Update all users.
3104 (collect_symtabs_from_filename, symtabs_from_filename): Return
3105 symtab_vector_up. Update all callers.
3106
3107 2018-08-29 Tom Tromey <tom@tromey.com>
3108
3109 * csky-tdep.c (csky_analyze_prologue): Use
3110 core_addr_to_string_nz.
3111
3112 2018-08-29 Tom Tromey <tom@tromey.com>
3113
3114 * windows-nat.c (struct xlate_exception) <them>: Change type to
3115 DWORD.
3116 (xlate): Fix formatting. Remove last entry.
3117 (struct xlate_exception, xlate): Comment out.
3118 (windows_nat_target::resume): Use ranged for.
3119
3120 2018-08-29 Jim Wilson <jimw@sifive.com>
3121
3122 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
3123 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
3124 of NT_PRFPREG.
3125 (riscv_linux_nat_target::store_registers): Likewise.
3126
3127 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3128
3129 PR gdb/23555
3130 PR gdb/23558
3131 * gnulib/aclocal.m4: Regenerate.
3132 * gnulib/config.in: Regenerate.
3133 * gnulib/configure: Regenerate.
3134 * gnulib/import/Makefile.am: Update.
3135 * gnulib/import/Makefile.in: Update.
3136 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3137 * gnulib/import/_Noreturn.h: ... this.
3138 * gnulib/import/alloca.in.h: Update.
3139 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3140 * gnulib/import/arg-nonnull.h: ... this.
3141 * gnulib/import/assure.h: Update.
3142 * gnulib/import/at-func.c: Update.
3143 * gnulib/import/basename-lgpl.c: Update.
3144 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3145 * gnulib/import/c++defs.h: ... this.
3146 * gnulib/import/canonicalize-lgpl.c: Update.
3147 * gnulib/import/cdefs.h: Update.
3148 * gnulib/import/chdir-long.c: Update.
3149 * gnulib/import/chdir-long.h: Update.
3150 * gnulib/import/cloexec.c: Update.
3151 * gnulib/import/cloexec.h: Update.
3152 * gnulib/import/close.c: Update.
3153 * gnulib/import/closedir.c: Update.
3154 * gnulib/import/config.charset: Update.
3155 * gnulib/import/dirent-private.h: Update.
3156 * gnulib/import/dirent.in.h: Update.
3157 * gnulib/import/dirfd.c: Update.
3158 * gnulib/import/dirname-lgpl.c: Update.
3159 * gnulib/import/dirname.h: Update.
3160 * gnulib/import/dosname.h: Update.
3161 * gnulib/import/dup-safer-flag.c: Update.
3162 * gnulib/import/dup-safer.c: Update.
3163 * gnulib/import/dup.c: Update.
3164 * gnulib/import/dup2.c: Update.
3165 * gnulib/import/errno.in.h: Update.
3166 * gnulib/import/error.c: Update.
3167 * gnulib/import/error.h: Update.
3168 * gnulib/import/exitfail.c: Update.
3169 * gnulib/import/exitfail.h: Update.
3170 * gnulib/import/extra/update-copyright: Update.
3171 * gnulib/import/fchdir.c: Update.
3172 * gnulib/import/fcntl.c: Update.
3173 * gnulib/import/fcntl.in.h: Update.
3174 * gnulib/import/fd-hook.c: Update.
3175 * gnulib/import/fd-hook.h: Update.
3176 * gnulib/import/fd-safer-flag.c: Update.
3177 * gnulib/import/fd-safer.c: Update.
3178 * gnulib/import/fdopendir.c: Update.
3179 * gnulib/import/filename.h: Update.
3180 * gnulib/import/filenamecat-lgpl.c: Update.
3181 * gnulib/import/filenamecat.h: Update.
3182 * gnulib/import/flexmember.h: Update.
3183 * gnulib/import/float+.h: Update.
3184 * gnulib/import/float.c: Update.
3185 * gnulib/import/float.in.h: Update.
3186 * gnulib/import/fnmatch.c: Update.
3187 * gnulib/import/fnmatch.in.h: Update.
3188 * gnulib/import/fnmatch_loop.c: Update.
3189 * gnulib/import/fpucw.h: Update.
3190 * gnulib/import/frexp.c: Update.
3191 * gnulib/import/frexpl.c: Update.
3192 * gnulib/import/fstat.c: Update.
3193 * gnulib/import/fstatat.c: Update.
3194 * gnulib/import/getcwd-lgpl.c: Update.
3195 * gnulib/import/getcwd.c: Update.
3196 * gnulib/import/getdtablesize.c: Update.
3197 * gnulib/import/getlogin_r.c: Update.
3198 * gnulib/import/getprogname.c: Update.
3199 * gnulib/import/getprogname.h: Update.
3200 * gnulib/import/gettext.h: Update.
3201 * gnulib/import/gettimeofday.c: Update.
3202 * gnulib/import/glob-libc.h: Update.
3203 * gnulib/import/glob.c: Update.
3204 * gnulib/import/glob.in.h: Update.
3205 * gnulib/import/glob_internal.h: Update.
3206 * gnulib/import/glob_pattern_p.c: Update.
3207 * gnulib/import/globfree.c: Update.
3208 * gnulib/import/hard-locale.c: Update.
3209 * gnulib/import/hard-locale.h: Update.
3210 * gnulib/import/intprops.h: Update.
3211 * gnulib/import/inttypes.in.h: Update.
3212 * gnulib/import/isnan.c: Update.
3213 * gnulib/import/isnand-nolibm.h: Update.
3214 * gnulib/import/isnand.c: Update.
3215 * gnulib/import/isnanl-nolibm.h: Update.
3216 * gnulib/import/isnanl.c: Update.
3217 * gnulib/import/itold.c: Update.
3218 * gnulib/import/libc-config.h: Update.
3219 * gnulib/import/limits.in.h: Update.
3220 * gnulib/import/localcharset.c: Update.
3221 * gnulib/import/localcharset.h: Update.
3222 * gnulib/import/localtime-buffer.c: Update.
3223 * gnulib/import/localtime-buffer.h: Update.
3224 * gnulib/import/lstat.c: Update.
3225 * gnulib/import/m4/00gnulib.m4: Update.
3226 * gnulib/import/m4/__inline.m4: Update.
3227 * gnulib/import/m4/absolute-header.m4: Update.
3228 * gnulib/import/m4/alloca.m4: Update.
3229 * gnulib/import/m4/builtin-expect.m4: Update.
3230 * gnulib/import/m4/canonicalize.m4: Update.
3231 * gnulib/import/m4/chdir-long.m4: Update.
3232 * gnulib/import/m4/close.m4: Update.
3233 * gnulib/import/m4/closedir.m4: Update.
3234 * gnulib/import/m4/configmake.m4: Update.
3235 * gnulib/import/m4/d-ino.m4: Update.
3236 * gnulib/import/m4/d-type.m4: Update.
3237 * gnulib/import/m4/dirent_h.m4: Update.
3238 * gnulib/import/m4/dirfd.m4: Update.
3239 * gnulib/import/m4/dirname.m4: Update.
3240 * gnulib/import/m4/double-slash-root.m4: Update.
3241 * gnulib/import/m4/dup.m4: Update.
3242 * gnulib/import/m4/dup2.m4: Update.
3243 * gnulib/import/m4/eealloc.m4: Update.
3244 * gnulib/import/m4/environ.m4: Update.
3245 * gnulib/import/m4/errno_h.m4: Update.
3246 * gnulib/import/m4/error.m4: Update.
3247 * gnulib/import/m4/exponentd.m4: Update.
3248 * gnulib/import/m4/exponentl.m4: Update.
3249 * gnulib/import/m4/extensions.m4: Update.
3250 * gnulib/import/m4/extern-inline.m4: Update.
3251 * gnulib/import/m4/fchdir.m4: Update.
3252 * gnulib/import/m4/fcntl-o.m4: Update.
3253 * gnulib/import/m4/fcntl.m4: Update.
3254 * gnulib/import/m4/fcntl_h.m4: Update.
3255 * gnulib/import/m4/fdopendir.m4: Update.
3256 * gnulib/import/m4/filenamecat.m4: Update.
3257 * gnulib/import/m4/flexmember.m4: Update.
3258 * gnulib/import/m4/float_h.m4: Update.
3259 * gnulib/import/m4/fnmatch.m4: Update.
3260 * gnulib/import/m4/fnmatch_h.m4: Update.
3261 * gnulib/import/m4/fpieee.m4: Update.
3262 * gnulib/import/m4/frexp.m4: Update.
3263 * gnulib/import/m4/frexpl.m4: Update.
3264 * gnulib/import/m4/fstat.m4: Update.
3265 * gnulib/import/m4/fstatat.m4: Update.
3266 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3267 * gnulib/import/m4/getcwd-path-max.m4: Update.
3268 * gnulib/import/m4/getcwd.m4: Update.
3269 * gnulib/import/m4/getdtablesize.m4: Update.
3270 * gnulib/import/m4/getlogin.m4: Update.
3271 * gnulib/import/m4/getlogin_r.m4: Update.
3272 * gnulib/import/m4/getpagesize.m4: Update.
3273 * gnulib/import/m4/getprogname.m4: Update.
3274 * gnulib/import/m4/gettimeofday.m4: Update.
3275 * gnulib/import/m4/glibc21.m4: Update.
3276 * gnulib/import/m4/glob.m4: Update.
3277 * gnulib/import/m4/glob_h.m4: Update.
3278 * gnulib/import/m4/gnulib-cache.m4: Update.
3279 * gnulib/import/m4/gnulib-common.m4: Update.
3280 * gnulib/import/m4/gnulib-comp.m4: Update.
3281 * gnulib/import/m4/gnulib-tool.m4: Update.
3282 * gnulib/import/m4/hard-locale.m4: Update.
3283 * gnulib/import/m4/include_next.m4: Update.
3284 * gnulib/import/m4/inttypes-pri.m4: Update.
3285 * gnulib/import/m4/inttypes.m4: Update.
3286 * gnulib/import/m4/isnand.m4: Update.
3287 * gnulib/import/m4/isnanl.m4: Update.
3288 * gnulib/import/m4/largefile.m4: Update.
3289 * gnulib/import/m4/limits-h.m4: Update.
3290 * gnulib/import/m4/localcharset.m4: Update.
3291 * gnulib/import/m4/locale-fr.m4: Update.
3292 * gnulib/import/m4/locale-ja.m4: Update.
3293 * gnulib/import/m4/locale-zh.m4: Update.
3294 * gnulib/import/m4/localtime-buffer.m4: Update.
3295 * gnulib/import/m4/longlong.m4: Update.
3296 * gnulib/import/m4/lstat.m4: Update.
3297 * gnulib/import/m4/malloc.m4: Update.
3298 * gnulib/import/m4/malloca.m4: Update.
3299 * gnulib/import/m4/math_h.m4: Update.
3300 * gnulib/import/m4/mbrtowc.m4: Update.
3301 * gnulib/import/m4/mbsinit.m4: Update.
3302 * gnulib/import/m4/mbsrtowcs.m4: Update.
3303 * gnulib/import/m4/mbstate_t.m4: Update.
3304 * gnulib/import/m4/memchr.m4: Update.
3305 * gnulib/import/m4/memmem.m4: Update.
3306 * gnulib/import/m4/mempcpy.m4: Update.
3307 * gnulib/import/m4/memrchr.m4: Update.
3308 * gnulib/import/m4/mkdir.m4: Update.
3309 * gnulib/import/m4/mkstemp.m4: Update.
3310 * gnulib/import/m4/mmap-anon.m4: Update.
3311 * gnulib/import/m4/mode_t.m4: Update.
3312 * gnulib/import/m4/msvc-inval.m4: Update.
3313 * gnulib/import/m4/msvc-nothrow.m4: Update.
3314 * gnulib/import/m4/multiarch.m4: Update.
3315 * gnulib/import/m4/nocrash.m4: Update.
3316 * gnulib/import/m4/off_t.m4: Update.
3317 * gnulib/import/m4/onceonly.m4: Update.
3318 * gnulib/import/m4/open-cloexec.m4: Update.
3319 * gnulib/import/m4/open.m4: Update.
3320 * gnulib/import/m4/openat.m4: Update.
3321 * gnulib/import/m4/opendir.m4: Update.
3322 * gnulib/import/m4/pathmax.m4: Update.
3323 * gnulib/import/m4/rawmemchr.m4: Update.
3324 * gnulib/import/m4/readdir.m4: Update.
3325 * gnulib/import/m4/readlink.m4: Update.
3326 * gnulib/import/m4/realloc.m4: Update.
3327 * gnulib/import/m4/rename.m4: Update.
3328 * gnulib/import/m4/rewinddir.m4: Update.
3329 * gnulib/import/m4/rmdir.m4: Update.
3330 * gnulib/import/m4/save-cwd.m4: Update.
3331 * gnulib/import/m4/secure_getenv.m4: Update.
3332 * gnulib/import/m4/setenv.m4: Update.
3333 * gnulib/import/m4/signal_h.m4: Update.
3334 * gnulib/import/m4/ssize_t.m4: Update.
3335 * gnulib/import/m4/stat-time.m4: Update.
3336 * gnulib/import/m4/stat.m4: Update.
3337 * gnulib/import/m4/std-gnu11.m4: Update.
3338 * gnulib/import/m4/stdbool.m4: Update.
3339 * gnulib/import/m4/stddef_h.m4: Update.
3340 * gnulib/import/m4/stdint.m4: Update.
3341 * gnulib/import/m4/stdio_h.m4: Update.
3342 * gnulib/import/m4/stdlib_h.m4: Update.
3343 * gnulib/import/m4/strchrnul.m4: Update.
3344 * gnulib/import/m4/strdup.m4: Update.
3345 * gnulib/import/m4/strerror.m4: Update.
3346 * gnulib/import/m4/string_h.m4: Update.
3347 * gnulib/import/m4/strstr.m4: Update.
3348 * gnulib/import/m4/strtok_r.m4: Update.
3349 * gnulib/import/m4/sys_socket_h.m4: Update.
3350 * gnulib/import/m4/sys_stat_h.m4: Update.
3351 * gnulib/import/m4/sys_time_h.m4: Update.
3352 * gnulib/import/m4/sys_types_h.m4: Update.
3353 * gnulib/import/m4/tempname.m4: Update.
3354 * gnulib/import/m4/time_h.m4: Update.
3355 * gnulib/import/m4/unistd-safer.m4: Update.
3356 * gnulib/import/m4/unistd_h.m4: Update.
3357 * gnulib/import/m4/warn-on-use.m4: Update.
3358 * gnulib/import/m4/wchar_h.m4: Update.
3359 * gnulib/import/m4/wchar_t.m4: Update.
3360 * gnulib/import/m4/wctype_h.m4: Update.
3361 * gnulib/import/m4/wint_t.m4: Update.
3362 * gnulib/import/malloc.c: Update.
3363 * gnulib/import/malloc/scratch_buffer.h: Update.
3364 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3365 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3366 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3367 * gnulib/import/malloca.c: Update.
3368 * gnulib/import/malloca.h: Update.
3369 * gnulib/import/malloca.valgrind: Update.
3370 * gnulib/import/math.in.h: Update.
3371 * gnulib/import/mbrtowc.c: Update.
3372 * gnulib/import/mbsinit.c: Update.
3373 * gnulib/import/mbsrtowcs-impl.h: Update.
3374 * gnulib/import/mbsrtowcs-state.c: Update.
3375 * gnulib/import/mbsrtowcs.c: Update.
3376 * gnulib/import/memchr.c: Update.
3377 * gnulib/import/memmem.c: Update.
3378 * gnulib/import/mempcpy.c: Update.
3379 * gnulib/import/memrchr.c: Update.
3380 * gnulib/import/mkdir.c: Update.
3381 * gnulib/import/mkstemp.c: Update.
3382 * gnulib/import/msvc-inval.c: Update.
3383 * gnulib/import/msvc-inval.h: Update.
3384 * gnulib/import/msvc-nothrow.c: Update.
3385 * gnulib/import/msvc-nothrow.h: Update.
3386 * gnulib/import/open.c: Update.
3387 * gnulib/import/openat-die.c: Update.
3388 * gnulib/import/openat-priv.h: Update.
3389 * gnulib/import/openat-proc.c: Update.
3390 * gnulib/import/openat.c: Update.
3391 * gnulib/import/openat.h: Update.
3392 * gnulib/import/opendir.c: Update.
3393 * gnulib/import/pathmax.h: Update.
3394 * gnulib/import/pipe-safer.c: Update.
3395 * gnulib/import/rawmemchr.c: Update.
3396 * gnulib/import/readdir.c: Update.
3397 * gnulib/import/readlink.c: Update.
3398 * gnulib/import/realloc.c: Update.
3399 * gnulib/import/ref-add.sin: Update.
3400 * gnulib/import/ref-del.sin: Update.
3401 * gnulib/import/rename.c: Update.
3402 * gnulib/import/rewinddir.c: Update.
3403 * gnulib/import/rmdir.c: Update.
3404 * gnulib/import/same-inode.h: Update.
3405 * gnulib/import/save-cwd.c: Update.
3406 * gnulib/import/save-cwd.h: Update.
3407 * gnulib/import/scratch_buffer.h: Update.
3408 * gnulib/import/secure_getenv.c: Update.
3409 * gnulib/import/setenv.c: Update.
3410 * gnulib/import/signal.in.h: Update.
3411 * gnulib/import/stat-time.c: Update.
3412 * gnulib/import/stat-time.h: Update.
3413 * gnulib/import/stat-w32.c: Update.
3414 * gnulib/import/stat-w32.h: Update.
3415 * gnulib/import/stat.c: Update.
3416 * gnulib/import/stdbool.in.h: Update.
3417 * gnulib/import/stddef.in.h: Update.
3418 * gnulib/import/stdint.in.h: Update.
3419 * gnulib/import/stdio.in.h: Update.
3420 * gnulib/import/stdlib.in.h: Update.
3421 * gnulib/import/str-two-way.h: Update.
3422 * gnulib/import/strchrnul.c: Update.
3423 * gnulib/import/strdup.c: Update.
3424 * gnulib/import/streq.h: Update.
3425 * gnulib/import/strerror-override.c: Update.
3426 * gnulib/import/strerror-override.h: Update.
3427 * gnulib/import/strerror.c: Update.
3428 * gnulib/import/string.in.h: Update.
3429 * gnulib/import/stripslash.c: Update.
3430 * gnulib/import/strnlen1.c: Update.
3431 * gnulib/import/strnlen1.h: Update.
3432 * gnulib/import/strstr.c: Update.
3433 * gnulib/import/strtok_r.c: Update.
3434 * gnulib/import/sys_stat.in.h: Update.
3435 * gnulib/import/sys_time.in.h: Update.
3436 * gnulib/import/sys_types.in.h: Update.
3437 * gnulib/import/tempname.c: Update.
3438 * gnulib/import/tempname.h: Update.
3439 * gnulib/import/time.in.h: Update.
3440 * gnulib/import/unistd--.h: Update.
3441 * gnulib/import/unistd-safer.h: Update.
3442 * gnulib/import/unistd.in.h: Update.
3443 * gnulib/import/unsetenv.c: Update.
3444 * gnulib/import/verify.h: Update.
3445 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3446 * gnulib/import/wchar.in.h: Update.
3447 * gnulib/import/wctype.in.h: Update.
3448 * gnulib/import/xalloc-oversized.h: Update.
3449 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3450 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3451
3452 2018-08-16 Gary Benson <gbenson@redhat.com>
3453
3454 PR gdb/13000:
3455 * gdb/main.c (captured_main_1): Exit with nonzero status
3456 in batch mode if the last command to be executed failed.
3457 * NEWS: Mention the above.
3458
3459 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
3460
3461 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3462 end of warning message.
3463
3464 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3465
3466 PR gdb/22943:
3467 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
3468 (aarch64_extract_return_value): Use
3469 aapcs_is_vfp_call_or_return_candidate.
3470 (aarch64_return_in_memory): Likewise.
3471 (aarch64_store_return_value): Likewise.
3472
3473 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3474
3475 * aarch64-tdep.c
3476 (aapcs_is_vfp_call_or_return_candidate): Make static
3477 (pass_in_v_or_stack): Remove function.
3478 (pass_in_v_vfp_candidate): New function.
3479 (aarch64_push_dummy_call): Check for float register candidates.
3480
3481 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3482
3483 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
3484 (aapcs_is_vfp_call_or_return_candidate_1): New function.
3485 (aapcs_is_vfp_call_or_return_candidate): Likewise.
3486
3487 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3488
3489 PR build/23399
3490 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
3491 (struct ipa_sym_addresses): Rename to...
3492 (struct ipa_sym_addresses_common): ... this.
3493 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
3494
3495 2018-08-28 Tom Tromey <tom@tromey.com>
3496
3497 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3498 (token_fifo): Now a std::vector.
3499 (yylex, c_parse): Update.
3500 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3501 (token_fifo): Now a std::vector.
3502 (yylex, d_parse): Update.
3503 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3504 (token_fifo): Now a std::vector.
3505 (yylex, go_parse): Update.
3506
3507 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
3508
3509 * parser-defs.h (struct type_stack) <elements>: Change type to
3510 std::vector<union type_stack_elt>.
3511 <depth, size>: Remove.
3512 * parse.c (parse_exp_in_context_1): Adjust.
3513 (type_stack_reserve): Remove.
3514 (check_type_stack_depth): Remove.
3515 (insert_into_type_stack): Adjust to std::vector.
3516 (insert_type): Likewise.
3517 (push_type): Likewise.
3518 (push_type_int): Likewise.
3519 (insert_type_address_space): Likewise.
3520 (pop_type): Likewise.
3521 (pop_type_int): Likewise.
3522 (pop_typelist): Likewise.
3523 (pop_type_stack): Likewise.
3524 (append_type_stack): Likewise.
3525 (push_type_stack): Likewise.
3526 (get_type_stack): Likewise.
3527 (type_stack_cleanup): Likewise.
3528 (push_typelist): Likewise.
3529 (follow_types): Likewise.
3530 (_initialize_parse): Likewise.
3531
3532 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
3533
3534 * NEWS: Mention csky target.
3535
3536 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
3537 Hafiz Abid Qadeer <abidh@codesourcery.com>
3538 Don Breazeal <donb@codesourcery.com>
3539
3540 * csky-linux-tdep.c: New file.
3541 * csky-tdep.c: Likewise.
3542 * csky-tdep.h: Likewise.
3543 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
3544 csky-tdep.o.
3545 (HFILES_NO_SRCDIR): Add csky-tdep.h.
3546 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
3547 * configure.tgt: Add csky support.
3548
3549 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
3550
3551 * python/py-framefilter.c (py_print_frame): Print frame architecture
3552 when printing on an MI output.
3553
3554 2018-08-27 Tom Tromey <tom@tromey.com>
3555
3556 PR build/23087:
3557 * configure: Rebuild.
3558 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
3559
3560 2018-08-27 Tom Tromey <tom@tromey.com>
3561
3562 * aarch64-linux-tdep.c
3563 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
3564 casts to int.
3565
3566 2018-08-27 Tom Tromey <tom@tromey.com>
3567
3568 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
3569 unsigned.
3570 (ppc64_standard_linkage1, ppc64_standard_linkage2)
3571 (ppc64_standard_linkage3, ppc64_standard_linkage4)
3572 (ppc64_standard_linkage5, ppc64_standard_linkage6)
3573 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
3574 unsigned.
3575
3576 2018-08-27 Tom Tromey <tom@tromey.com>
3577
3578 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
3579 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
3580
3581 2018-08-27 Tom Tromey <tom@tromey.com>
3582
3583 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
3584 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
3585 ULONGEST_MAX.
3586 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
3587 ULONGEST_MAX.
3588 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
3589 ULONGEST_MAX.
3590 * sparc-linux-tdep.c (sparc32_linux_sigframe)
3591 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
3592 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
3593 ULONGEST_MAX.
3594 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
3595 (ppc64_linux_sigaction_tramp_frame)
3596 (ppc32_linux_sighandler_tramp_frame)
3597 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3598 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
3599 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
3600 * mn10300-linux-tdep.c (am33_linux_sigframe)
3601 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
3602 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
3603 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3604 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3605 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
3606 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
3607 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
3608 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
3609 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
3610 * microblaze-linux-tdep.c
3611 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3612 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
3613 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
3614 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
3615 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
3616 * common/common-types.h (ULONGEST_MAX): New define.
3617 (CORE_ADDR_MAX): Fix formatting.
3618 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
3619 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
3620 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
3621 (arm_linux_rt_sigreturn_tramp_frame)
3622 (arm_eabi_linux_sigreturn_tramp_frame)
3623 (arm_eabi_linux_rt_sigreturn_tramp_frame)
3624 (thumb2_eabi_linux_sigreturn_tramp_frame)
3625 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
3626 (arm_linux_restart_syscall_tramp_frame)
3627 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
3628 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
3629 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
3630 ULONGEST_MAX.
3631 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
3632
3633 2018-08-27 Tom Tromey <tom@tromey.com>
3634
3635 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
3636 CORE_ADDR_MAX.
3637 * mips-tdep.c (mips_deal_with_atomic_sequence)
3638 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
3639 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
3640 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
3641 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
3642 CORE_ADDR_MAX.
3643 * aarch64-tdep.c (aarch64_software_single_step): Use
3644 CORE_ADDR_MAX.
3645
3646 2018-08-27 Tom Tromey <tom@tromey.com>
3647
3648 * linespec.c (complete_linespec_component): Add cast to "char".
3649 * completer.c (completion_tracker::build_completion_result): Add
3650 cast to "char".
3651
3652 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3653
3654 * solist.h (struct solist, struct target_so_ops): Fix
3655 indentation.
3656
3657 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3658
3659 * ada-tasks.c (ada_task_info_s): Remove typedef.
3660 (DEF_VEC_O(ada_task_info_s)): Remove.
3661 (struct ada_tasks_inferior_data): Initialize fields.
3662 <task_list>: Make an std::vector.
3663 (get_ada_tasks_inferior_data): Allocate with new.
3664 (ada_get_task_number): Adjust.
3665 (get_task_number_from_id): Likewise.
3666 (valid_task_id): Likewise.
3667 (ada_get_task_info_from_ptid): Likewise.
3668 (iterate_over_live_ada_tasks): Likewise.
3669 (add_ada_task): Likewise.
3670 (read_known_tasks): Likewise.
3671 (ada_build_task_list): Likewise.
3672 (print_ada_task_info): Likewise.
3673 (info_task): Likewise.
3674 (task_command_1): Likewise.
3675
3676 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3677
3678 * ada-lang.c (add_angle_brackets): Return std::string.
3679
3680 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
3681
3682 * python/py-threadevent.c (py_get_event_thread): Initialize
3683 pythread.
3684
3685 2018-08-24 Pedro Alves <palves@redhat.com>
3686
3687 * python/py-bpevent.c (create_breakpoint_event_object): Use
3688 copy-initialization.
3689 * python/py-continueevent.c (emit_continue_event): Use
3690 copy-initialization.
3691 * python/py-exitedevent.c (create_exited_event_object): Return a
3692 gdbpy_ref<>.
3693 (emit_exited_event): Use copy-initialization.
3694 * python/py-inferior.c (python_new_inferior)
3695 (python_inferior_deleted, add_thread_object): Use
3696 copy-initialization.
3697 * python/py-infevents.c (create_inferior_call_event_object)
3698 (create_register_changed_event_object)
3699 (create_memory_changed_event_object): Return a gdbpy_ref<>.
3700 (emit_inferior_call_event, emit_memory_changed_event)
3701 (emit_register_changed_event): Use copy-initialization.
3702 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3703 Return a gdbpy_ref<>.
3704 (emit_new_objfile_event): Use copy-initialization.
3705 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
3706 (emit_clear_objfiles_event): Use copy-initialization.
3707 * python/py-signalevent.c (create_signal_event_object): Use
3708 copy-initialization.
3709 * python/py-threadevent.c (create_thread_event_object): Use
3710 copy-initialization.
3711
3712 2018-08-24 Pedro Alves <palves@redhat.com>
3713 Simon Marchi <simon.marchi@ericsson.com>
3714
3715 PR gdb/23379
3716 * python/py-continueevent.c: Include "gdbthread.h".
3717 (create_continue_event_object): Add intro comment. Add 'ptid'
3718 parameter. Use it to find thread to pass to
3719 create_thread_event_object.
3720 (emit_continue_event): Pass PTID down to
3721 create_continue_event_object.
3722 * python/py-event.h (py_get_event_thread): Declare.
3723 (create_thread_event_object): Remove default from 'thread'
3724 parameter.
3725 * python/py-stopevent.c (create_stop_event_object): Use
3726 py_get_event_thread.
3727 * python/py-threadevent.c (get_event_thread): Rename to ...
3728 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
3729 and use it to find the thread.
3730 (create_thread_event_object): Assert that THREAD isn't null.
3731 Don't find the event thread here.
3732
3733 2018-08-23 Kevin Buettner <kevinb@redhat.com>
3734
3735 * block.h (blockrange, blockranges): New struct declarations.
3736 (struct block): Add new field named `ranges'.
3737 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
3738 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
3739 macros for accessing ranges in struct block.
3740 (make_blockranges): New declaration.
3741 block.c (make_blockranges): New function.
3742 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
3743 for block.
3744 * symtab.h (find_pc_partial_function): Add new parameter `block'.
3745 * blockframe.c (cache_pc_function_block): New static global.
3746 (clear_pc_function_cache): Clear cache_pc_function_block.
3747 (find_pc_partial_function): Move comment to symtab.h. Add
3748 support for non-contiguous blocks.
3749 * cli/cli-cmds.c (block.h): Include.
3750 (print_disassembly): Handle printing of non-contiguous blocks.
3751 (disassemble_current_function): Likewise.
3752 (disassemble_command): Likewise.
3753
3754 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
3755 BLOCK_START.
3756 * blockframe.c (get_pc_function_start): Likewise.
3757 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
3758 (gcc_symbol_address): Likewise.
3759 * compile/compile-object-run.c (compile_object_run): Likewise.
3760 * compile/compile.c (get_expr_block_and_pc): Likewise.
3761 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
3762 (func_addr_to_tail_call_list): Likewise.
3763 * findvar.c (default_read_var_value): Likewise.
3764 * inline-frame.c (inline_frame_this_id): Likewise.
3765 (skip-inline_frames): Likewise.
3766 * infcmd.c (until_next_command): Likewise.
3767 * linespec.c (convert_linespec_to_sals): Likewise.
3768 * parse.c (parse_exp_in_context_1): Likewise.
3769 * printcmd.c (build_address_symbolic): likewise.
3770 (info_address_command): Likewise.
3771 symtab.c (find_function_start_sal): Likewise.
3772 (skip_prologue_sal): Likewise.
3773 (find_function_alias_target): Likewise.
3774 (find_gnu_ifunc): Likewise.
3775 * stack.c (find_frame_funname): Likewise.
3776 * symtab.c (fixup_symbol_section): Likewise.
3777 (find_function_start_sal): Likewise.
3778 (skip_prologue_sal): Likewsie.
3779 (find_function_alias_target): Likewise.
3780 (find_gnu_ifunc): Likewise.
3781 * tracepoint.c (info_scope_command): Likewise.
3782 * value.c (value_fn_field): Likewise.
3783
3784 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
3785 in place of find_pc_partial_function.
3786 * blockframe.c (find_function_entry_range_from_pc): New function.
3787 * symtab.h (find_function_entry_range_from_pc): Declare and document.
3788 * objfiles.c (objfile_relocate1): Relocate start and end addresses
3789 for each range in a block.
3790
3791
3792 2018-08-23 Xavier Roirand <roirand@adacore.com>
3793
3794 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
3795 incrementation.
3796
3797 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3798
3799 * solib-svr4.c (read_program_headers_from_bfd): Return
3800 gdb::optional<gdb::byte_vector>.
3801 (svr4_exec_displacement): Adjust.
3802
3803 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3804
3805 * solib-svr4.c (read_program_header): Return
3806 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
3807 (find_program_interpreter): Return
3808 gdb::optional<gdb::byte_vector>.
3809 (scan_dyntag_auxv): Adjust.
3810 (enable_break): Adjust.
3811 (svr4_exec_displacement): Adjust.
3812
3813 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3814
3815 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
3816 * inf-child.c (inf_child_target::terminal_save_inferior): New.
3817
3818 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3819
3820 * guile/scm-string.c (gdbscm_scm_from_printf): Use
3821 string_vprintf.
3822 * guile/scm-utils.c (gdbscm_printf): Likewise.
3823 * serial.c (serial_printf): Likewise.
3824 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3825
3826 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
3827
3828 * stack.c (print_frame): Print frame architecture when printing on
3829 an MI output.
3830 * NEWS: Mention new "arch" attribute in frame output.
3831
3832 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3833
3834 * arch/aarch64.h (aarch64_regnum): Update comment.
3835
3836 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3837
3838 * NEWS: Add SVE to 8.2 section.
3839
3840 2018-08-21 Pedro Alves <palves@redhat.com>
3841
3842 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3843 out from gdbscm_parse_function_args.
3844 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3845 gdbscm_parse_function_args_1.
3846
3847 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
3848
3849 PR gdb/17816
3850 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3851 operator.
3852
3853 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
3854
3855 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3856
3857 2018-08-19 Michael Spang <spang@google.com>
3858
3859 PR gdb/11786
3860 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3861 for PT_TLS segments.
3862
3863 2018-08-18 Kevin Buettner <kevinb@redhat.com>
3864
3865 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3866 dwarf_variable_value.
3867 * dwarf2-frame.c (class dwarf_expr_executor):
3868 Add override for dwarf_variable_value.
3869 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3870 (class symbol_needs_eval_context): Likewise.
3871 (indirect_synthetic_pointer): Add forward declaration.
3872 (sect_variable_value): New function.
3873 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3874 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3875 for DW_OP_GNU_variable_value.
3876
3877 2018-08-16 Tom Tromey <tom@tromey.com>
3878
3879 * top.c (read_command_file): Update.
3880 (command_line_input): Remove "repeat" argument.
3881 * ada-lang.c (get_selections): Update.
3882 * linespec.c (decode_line_2): Update.
3883 * defs.h (command_line_input): Remove argument.
3884 * cli/cli-script.c (read_next_line): Update.
3885 * python/py-gdb-readline.c: Update.
3886
3887 2018-08-17 Tom Tromey <tom@tromey.com>
3888
3889 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3890 command_line_input.
3891
3892 2018-08-15 Tom Tromey <tom@tromey.com>
3893
3894 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3895
3896 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3897
3898 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3899 If used, use find_pc_partial_function to find address range
3900 to disassemble.
3901 * mi/mi-main.c (mi_cmd_list_features): Report
3902 "data-disassemble-a-option" feature.
3903 * NEWS: Mention new -data-disassemble option -a.
3904
3905 2018-08-13 Tom Tromey <tom@tromey.com>
3906
3907 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3908
3909 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3910
3911 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3912 (aarch64_linux_collect_sve_regset): Likewise.
3913 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3914 * regcache.h (regcache_map_entry_size): New function.
3915
3916 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3917
3918 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3919 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3920 (SVE_HEADER_VL_LENGTH): Likewise.
3921 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3922 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3923 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3924 (SVE_HEADER_SIZE_OFFSET): Likewise.
3925 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3926 (SVE_HEADER_VL_OFFSET): Likewise.
3927 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3928 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3929 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3930 (SVE_HEADER_SIZE): Likewise.
3931 (aarch64_linux_core_read_vq): Add function.
3932 (aarch64_linux_core_read_description): Check for SVE section.
3933
3934 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3935
3936 * aarch64-fbsd-tdep.c
3937 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3938 collect_size.
3939 * aarch64-linux-tdep.c
3940 (aarch64_linux_iterate_over_regset_sections): Likewise.
3941 * alpha-linux-tdep.c
3942 (alpha_linux_iterate_over_regset_sections):
3943 * alpha-nbsd-tdep.c
3944 (alphanbsd_iterate_over_regset_sections): Likewise.
3945 * amd64-fbsd-tdep.c
3946 (amd64fbsd_iterate_over_regset_sections): Likewise.
3947 * amd64-linux-tdep.c
3948 (amd64_linux_iterate_over_regset_sections): Likewise.
3949 * arm-bsd-tdep.c
3950 (armbsd_iterate_over_regset_sections): Likewise.
3951 * arm-fbsd-tdep.c
3952 (arm_fbsd_iterate_over_regset_sections): Likewise.
3953 * arm-linux-tdep.c
3954 (arm_linux_iterate_over_regset_sections): Likewise.
3955 * corelow.c (get_core_registers_cb): Likewise.
3956 (core_target::fetch_registers): Likewise.
3957 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3958 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3959 * gdbarch.h (void): Regenerate.
3960 * gdbarch.sh: Add supply_size and collect_size.
3961 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3962 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3963 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3964 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3965 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3966 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3967 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3968 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3969 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3970 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3971 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3972 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3973 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3974 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3975 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3976 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3977 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3978 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3979 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3980 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3981 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3982 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3983 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3984 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3985 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3986 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3987 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3988 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3989 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3990 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3991
3992 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3993
3994 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3995 with string_printf.
3996
3997 2018-08-10 Keith Seitz <keiths@redhat.com>
3998
3999 * compile/compile-c-support.c (add_code_header, add_code_footer):
4000 Move into policy class.
4001 (c_push_user_expression, pop_user_expression_nop)
4002 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4003 (compile_program): New host class.
4004 (c_compile_program): New typedef.
4005 (c_compute_porgram): Use c_compile_program.
4006
4007 2018-08-10 Keith Seitz <keiths@redhat.com>
4008
4009 * compile/compile-internal.h (compile_instance::~compile_instance):
4010 Remove calls to htab_delete.
4011 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4012 * compile.c (compile_instance::compile_instance): Initialize
4013 htab unique pointers.
4014 (compile_instance::get_cached_type, compile_instance::insert_type)
4015 (compile_instance::error_symbol_once): Update for unique_ptr.
4016
4017 2018-08-10 Keith Seitz <keiths@redhat.com>
4018
4019 * compile/compile-c-symbols.c (struct symbol_error)
4020 (hash_symbol_error, eq_symbol_error, del_symbol_error)
4021 (compile_instance::insert_symbol_error)
4022 (compile_instance::error_symbol_once): Move to ...
4023 * compile/compile.c: ... here.
4024
4025 2018-08-10 Keith Seitz <keiths@redhat.com>
4026
4027 * compile/compile-c-support.c (c_get_compile_context): Use `new'
4028 instead of `new_compile_instance'.
4029 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4030 Update description.
4031 If the symbol error map is not initialized, create it.
4032 (generate_c_for_for_one_symbol): Do not check/initialize
4033 the symbol error map.
4034 * compile/compile-c-types.c (compile_c_instance): Make a class.
4035 Update all callers.
4036 (compile_instance::compile_instance): Initialize the type cache.
4037 (get_cached_type): New function.
4038 (insert_type): Update description.
4039 (compile_c_instance::m_default_cflags): Define.
4040 (convert_type): Update description. Use get_cached_type.
4041 (delete_instance): Moved to destructor.
4042 (new_compile_instance): Moved to constructor.
4043 * compile/compile-c.h (compile_c_instance): Make class inheriting
4044 from compile_instance.
4045 <base>: Remove field.
4046 <type_map, symbol_err_map>: Move to base class.
4047 <c_plugin>: Rename to `m_plugin' and remove pointer type.
4048 * compile/compile-internal.h (compile_instance): Make class.
4049 <type_map_t, symbol_err_map_t>: Define.
4050 <fe>: Rename to `m_gcc_fe'.
4051 <scope, block, gcc_target_options>: Add `m_' prefix.
4052 <m_type_map, m_symbol_err_map>: New fields, moved from
4053 compile_c_instance.
4054 <destroy>: Remove.
4055 (convert_type, new_compile_instance): Remove.
4056 * compile/compile.c (cleanup_compile_instance): Remove.
4057 (compile_to_object): Use unique_ptr to eliminate cleanups.
4058 (compile_instance::set_print_callback, compile_instance::version)
4059 (compile_instance::set_verbose)
4060 (compile_instance::set_driver_filename)
4061 (compile_instance::set_triplet_regexp)
4062 (compile_instance::set_arguments)
4063 (compile_instance::set_source_file)
4064 (compile_instance::compile): Define.
4065
4066 2018-08-10 Keith Seitz <keiths@redhat.com>
4067
4068 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
4069 * compile/compile-c-types.c: Define GCC_METHODN macros and include
4070 gcc-c-fe.def to define C plugin.
4071 (delete_instance): Delete `c_plugin'.
4072 (new_compile_instance): Initialize `c_plugin'.
4073 * compile/compile-c.h: Include gcc_c_plugin.h.
4074 (struct compile_c_instance) <c_plugin>: New member.
4075 * gcc-c-plugin.h: New file.
4076 Update all callers with API change.
4077
4078 2018-08-10 Keith Seitz <keiths@redhat.com>
4079
4080 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
4081 (HFILES_NO_SRCDIR): ... to here.
4082 Add compile-internal.h and compile-c.h.
4083 * compile/compile-c-support.c: Include compile-c.h.
4084 * compile/compile-c-symbols.c: Include compile-c.h.
4085 (generate_c_for_variable_locations): Update comment.
4086 * compile/compile-c-types.c: Include compile-c.h.
4087 * compile/compile-c.h: New file -- moved C language declarations
4088 from other files here.
4089 * compile/compile-internal.h: Do not include hashtab.h or
4090 common/enum-flags.h.
4091 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
4092 (gcc_convert_symbol, gcc_symbol_address)
4093 (generate_c_for_variable_locations, c_get_mode_for_size)
4094 (c_get_range_decl_name): Definitions moved to compile-c.h.
4095 * compile/compile-loc2c.c: Include compile-c.h.
4096
4097 2018-08-10 Keith Seitz <keiths@redhat.com>
4098
4099 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
4100 (c_symbol_substitution_name): ... this.
4101 Update all callers.
4102
4103 2018-08-10 Keith Seitz <keiths@redhat.com>
4104
4105 * compile/compile-c-support.c (c_compute_program): Use
4106 unique_xmalloc_ptr to eliminate cleanup.
4107 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
4108 Return a unique_xmalloc_ptr and eliminate cleanup.
4109 * compile/compile-internal.h (generate_c_for_variable_locations):
4110 Return unique_xmalloc_ptr and update description.
4111
4112 2018-08-10 Alan Hayward <alan.hayward@arm.com>
4113
4114 * corelow.c (core_target::get_core_register_section): Rename
4115 min_size to section_min_size.
4116
4117 2018-08-09 Jim Wilson <jimw@sifive.com>
4118
4119 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
4120 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
4121 * NEWS: Mention new GNU/Linux RISC-V target.
4122 * configure.host: Add riscv*-*-linux*.
4123 * configure.nat: Add riscv*.
4124 * configure.tgt: Add riscv*-*-linux*.
4125 * riscv-linux-nat.c: New file.
4126 * riscv-linux-tdep.c: New file.
4127
4128 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4129
4130 * infrun.c (resume): Make static, add forward declaration.
4131 (proceed): Update header comment.
4132 * infrun.h (resume): Delete declaration.
4133
4134 2018-08-09 Tom Tromey <tom@tromey.com>
4135
4136 * riscv-tdep.h: Minor formatting fixes.
4137
4138 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
4139
4140 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
4141 * dwarf-index-cache.c (create_dir_and_check): Likewise.
4142 (test_mkdir_recursive): Likewise.
4143 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
4144
4145 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4146
4147 * valarith.c (value_subscripted_rvalue): If an array is not in
4148 memory, and we don't know the upper bound, then we can't know that
4149 the requested element exists or not.
4150
4151 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
4152
4153 * target.c (str_comma_list_concat_elem): Fix typo in comment.
4154 (target_options_to_string): Add comment.
4155
4156 2018-08-08 Tom Tromey <tom@tromey.com>
4157
4158 * unittests/scoped_mmap-selftests.c: Check result of "write".
4159
4160 2018-08-08 Jim Wilson <jimw@sifive.com>
4161
4162 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
4163 (decode_register_index_short): New.
4164 (decode_j_type_insn, decode_cj_type_insn): New.
4165 (decode_b_type_insn, decode_cb_type_insn): New.
4166 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
4167 local xlen. Check xlen when decoding ambiguous compressed insns. In
4168 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
4169 is_c_sw_insn instead of is_sw_insn.
4170 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
4171 (riscv_software_single_step): New.
4172 * riscv-tdep.h (riscv_software_single_step): Declare.
4173
4174 * riscv-tdep.c (riscv_isa_xlen): Drop static.
4175 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
4176
4177 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
4178
4179 PR gdb/18050:
4180 * target.c (dispose_inferior): Don't dispose of inferiors that are
4181 already killed.
4182
4183 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
4184
4185 * remote.c (remote_target::download_tracepoint): Change char* to
4186 const char*.
4187
4188 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4189
4190 * target.h (target_options_to_string): Return an std::string.
4191 * target.c (str_comma_list_concat_elem): Return void, use
4192 std::string.
4193 (do_option): Likewise.
4194 (target_options_to_string): Return an std::string.
4195 * linux-nat.c (linux_nat_target::wait): Adjust.
4196 * target-debug.h (target_debug_print_options): Adjust.
4197
4198 2018-08-07 Tom Tromey <tom@tromey.com>
4199
4200 * Makefile.in (CPPFLAGS): New variable.
4201 (INTERNAL_CPPFLAGS): Use it.
4202
4203 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4204
4205 * NEWS: Mention the index cache.
4206
4207 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4208
4209 * common/pathstuff.h (get_standard_cache_dir): New.
4210 * common/pathstuff.c (get_standard_cache_dir): New.
4211 * build-id.h (build_id_to_string): New.
4212 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4213 DEBUG_STR_SUFFIX): Move to here.
4214 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4215 DEBUG_STR_SUFFIX): Move from there.
4216 (write_psymtabs_to_index): Make non-static, add basename
4217 parameter. Write to temporary files, rename when done.
4218 (save_gdb_index_command): Adjust call to
4219 write_psymtabs_to_index.
4220 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4221 field.
4222 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4223 (get_gdb_index_contents_from_cache): New.
4224 (get_gdb_index_contents_from_cache_dwz): New.
4225 (dwarf2_initialize_objfile): Read index from cache.
4226 (dwarf2_build_psymtabs): Save to index.
4227 * dwarf-index-cache.h: New file.
4228 * dwarf-index-cache.c: New file.
4229 * dwarf-index-write.h: New file.
4230
4231 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4232
4233 * gnulib/aclocal.m4: Re-generate.
4234 * gnulib/config.in: Re-generate.
4235 * gnulib/configure: Re-generate.
4236 * gnulib/import/Makefile.am: Re-generate.
4237 * gnulib/import/Makefile.in: Re-generate.
4238 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4239 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4240 * gnulib/import/m4/mkdir.m4: New file.
4241 * gnulib/import/mkdir.c: New file.
4242 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4243 module.
4244
4245 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4246
4247 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
4248 * common/scoped_mmap.c: New file.
4249 * common/scoped_mmap.h (destroy): New method.
4250 (~scoped_mmap, reset): Use destroy.
4251 (scoped_mmap): New move constructor.
4252 (mmap_file): New declaration.
4253 * unittests/scoped_mmap-selftests.c (test_normal,
4254 test_invalid_filename, run_tests): New functions.
4255 (_initialize_scoped_mmap_selftests): Register selftest.
4256
4257 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4258
4259 * dwarf2read.c (read_gdb_index_from_section): Rename to...
4260 (read_gdb_index_from_buffer): ... this. Remove section
4261 parameter, add buffer parameter.
4262 (get_gdb_index_contents_ftype,
4263 get_gdb_index_contents_dwz_ftype): New typedefs.
4264 (dwarf2_read_gdb_index): Add callback parameters to get the
4265 index contents.
4266 (get_gdb_index_contents_from_section): New.
4267 (dwarf2_initialize_objfile): Update call to
4268 dwarf2_read_gdb_index.
4269
4270 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4271
4272 * common/filestuff.h (gdb_fopen_cloexec): New overload.
4273 (gdb_open_cloexec): Likewise.
4274 * nat/linux-osdata.c (command_from_pid): Use string_printf.
4275 (commandline_from_pid): Likewise.
4276 (linux_xfer_osdata_threads): Likewise.
4277 (linux_xfer_osdata_fds): Likewise.
4278 * ada-lang.c (is_package_name): Likewise.
4279 * auxv.c (procfs_xfer_auxv): Likewise.
4280 * breakpoint.c (print_one_breakpoint_location): Use
4281 uiout::field_fmt.
4282 (print_one_catch_solib): Use string_printf.
4283 * coff-pe-read.c (add_pe_exported_sym): Likewise.
4284 (add_pe_forwarded_sym): Likewise.
4285 * dwarf2read.c (create_type_unit_group): Likewise.
4286 (build_error_marker_type): Likewise.
4287 * infcall.c (get_function_name): Likewise.
4288 * valprint.c (print_converted_chars_to_obstack): Likewise.
4289 * xtensa-tdep.c (xtensa_register_type): Likewise.
4290
4291 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
4292
4293 * remote.c (remote_target::download_tracepoint): Fix format
4294 string errors.
4295
4296 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4297
4298 * tracefile.c: Include common/byte-vector.h.
4299 (trace_save): Change type of buf to gdb::byte_vector. Initialize
4300 with trace_regblock_size if needed. Update uses of buf.
4301
4302 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4303
4304 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
4305 std::vector<unsigned char>.
4306 * tracepoint.c (collection_list::collection_list): Remove
4307 m_regs_mask initializer from initializer list. Resize
4308 m_regs_mask using the largest remote register number.
4309 (collection_list::add_remote_register): Remove size check on
4310 m_regs_mask. Use at to access element.
4311 (collection_list::stringify): Change type of temp_buf to
4312 gdb::char_vector. Update uses of temp_buf. Resize if needed to
4313 stringify the register mask. Use pack_hex_byte for the register
4314 mask.
4315
4316 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4317
4318 * tracepoint.h (class collection_list) <add_register>: Remove.
4319 <add_remote_register, add_ax_registers, add_local_register>:
4320 Declare.
4321 <add_memrange>: Add scope parameter.
4322 * tracepoint.c (encode_actions_1): Likewise.
4323 (collection_list::add_register): Rename to ...
4324 (collection_list::add_remote_register): ... this. Update
4325 comment.
4326 (collection_list::add_ax_registers, add_local_register): New
4327 methods.
4328 (collection_list::add_memrange): Add scope parameter. Call
4329 add_local_register instead of add_register.
4330 (finalize_tracepoint_aexpr): New function.
4331 (collection_list::collect_symbol): Update calls to add_memrange.
4332 Call add_local_register instead of add_register. Call
4333 add_ax_registers. Call finalize_tracepoint_aexpr.
4334 (encode_actions_1): Get remote regnos for $reg action. Call
4335 add_remote_register, add_ax_registers, and add_local_register.
4336 Update call to add_memrange. Call finalize_tracepoint_aexpr.
4337 (validate_actionline): Call finalize_tracepoint_aexpr.
4338
4339 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4340
4341 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
4342 Replace array buf with gdb::char_vector buf, of size
4343 get_remote_packet_size (). Replace references to buf and
4344 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
4345 and xsnprintf with snprintf. Raise errors if the buffer is too
4346 small.
4347
4348 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4349
4350 * remote.c (remote_target::download_tracepoint): Fix the has_more
4351 predicate in the QTDP action list iteration.
4352
4353 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4354
4355 * remote.c (remote_target::download_tracepoint): Fix indentation
4356 in for block.
4357
4358 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4359
4360 * proc-api.c (_initialize_proc_api): Remove c, unused.
4361 * procfs.c (procfs_init_inferior): Remove signals, unused.
4362 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4363 unused.
4364
4365 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
4366 Andrew Burgess <andrew.burgess@embecosm.com>
4367
4368 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4369 'W_STOPCODE (0)' as this could be ambiguous.
4370
4371 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
4372
4373 * ser-tcp.c (net_open): Fix thinko when deciding whether to
4374 disable TCP's Nagle algorithm (use "ai_protocol" instead of
4375 "ai_socktype").
4376
4377 2018-08-02 Tom Tromey <tom@tromey.com>
4378
4379 PR symtab/16842.
4380 * dwarf2read.c (read_func_scope): Set symtab on template parameter
4381 symbols.
4382 (process_structure_scope): Likewise.
4383
4384 2018-08-02 Xavier Roirand <roirand@adacore.com>
4385
4386 PR gdb/22629:
4387 * darwin-nat.c (darwin_kill_inferior): Fix handling of
4388 kill inferior.
4389
4390 2018-08-02 Tom Tromey <tom@tromey.com>
4391
4392 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4393 (darwin_suspend_inferior, darwin_resume_inferior)
4394 (darwin_decode_notify_message, darwin_resume_inferior_threads)
4395 (darwin_check_new_threads): Check result of get_darwin_inferior.
4396
4397 2018-07-31 Joel Brobecker <brobecker@adacore.com>
4398
4399 GDB 8.1.1 released.
4400
4401 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
4402
4403 * varobj.c (varobj_get_path_expr_parent): Report an error if
4404 parent is a dynamic varobj.
4405
4406 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4407
4408 * gnulib/aclocal.m4: Re-generate.
4409 * gnulib/config.in: Re-generate.
4410 * gnulib/configure: Re-generate.
4411 * gnulib/import/Makefile.in: Re-generate.
4412 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4413 * gnulib/import/m4/onceonly.m4: Re-generate.
4414
4415 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4416
4417 * target-descriptions.c (struct xml_test_tdesc): New.
4418 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4419 (record_xml_tdesc): Update.
4420 (maintenance_check_xml_descriptions): Update.
4421 * target-descriptions.h (record_xml_tdesc): Update comment.
4422
4423 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4426 checking array bounds are defined.
4427
4428 2018-07-30 Tom Tromey <tom@tromey.com>
4429
4430 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4431 irreflexivity violation.
4432
4433 2018-07-30 Tom Tromey <tom@tromey.com>
4434
4435 * cli/cli-decode.c (lookup_cmd): Remove lint code.
4436 * value.c (unpack_long): Remove lint code.
4437 * valops.c (value_ind): Remove lint code.
4438 * valarith.c (value_x_binop, value_x_unop, value_equal)
4439 (value_pos): Remove lint code.
4440
4441 2018-07-28 Tom de Vries <tdevries@suse.de>
4442
4443 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4444 with undefined upper bound as <optimized out>.
4445
4446 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
4447
4448 * gcore.in: Rename variable "name" to "prefix". Expand
4449 "usage" text.
4450
4451 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
4452
4453 * windows-nat.c (windows_nat_target::create_inferior): Update to
4454 call close() in global namespace.
4455
4456 2018-07-26 Tom Tromey <tom@tromey.com>
4457
4458 * dwarf-index-write.c (add_address_entry): Don't add objfile
4459 offsets.
4460 * dbxread.c (find_stab_function): Rename from
4461 find_stab_function_addr. Return a bound_minimal_symbol.
4462 (read_dbx_symtab): Use raw_text_low, raw_text_high.
4463 Don't add objfile offsets.
4464 (end_psymtab): Use raw_text_low, raw_text_high,
4465 MSYMBOL_VALUE_RAW_ADDRESS.
4466 (read_ofile_symtab): Update.
4467 (process_one_symbol): Update.
4468 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
4469 offsets.
4470 (dw2_relocate): Remove.
4471 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
4472 searching addrmap.
4473 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
4474 Update.
4475 (process_psymtab_comp_unit_reader, add_partial_symbol)
4476 (add_partial_subprogram, dwarf2_ranges_read): Update.
4477 (load_partial_dies): Update.
4478 (add_address_entry): Don't add objfile offsets.
4479 (dwarf2_build_include_psymtabs): Update.
4480 (create_addrmap_from_aranges): Don't add objfile offsets.
4481 (dw2_find_pc_sect_compunit_symtab): Update.
4482 * mdebugread.c (parse_symbol): Don't add objfile offsets.
4483 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
4484 Update.
4485 (parse_partial_symbols): Don't add objfile offsets. Use
4486 raw_text_low, raw_text_high. Update.
4487 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
4488 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
4489 or call 'relocate' quick function. Clear psymbol_map.
4490 * psympriv.h (struct partial_symbol) <address>: Add section
4491 offset.
4492 <set_unrelocated_address>: Rename from set_address.
4493 <raw_text_low, raw_text_high>: New methods.
4494 <text_low, text_high>: Add objfile parameter.
4495 (add_psymbol_to_bcache): Add 'section' parameter. Call
4496 set_unrelocated_address.
4497 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4498 (find_pc_psymbol): Update.
4499 (fixup_psymbol_section, relocate_psymtabs): Remove.
4500 (dump_psymtab, psym_functions): Update.
4501 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
4502 parameter.
4503 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4504 (start_psymtab_common): Update.
4505 * symfile-debug.c (debug_qf_relocate): Remove.
4506 (debug_sym_quick_functions): Update.
4507 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
4508 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
4509 Update.
4510
4511 2018-07-26 Tom Tromey <tromey@redhat.com>
4512
4513 * dbxread.c (end_psymtab): Use text_high_valid and
4514 text_low_valid.
4515 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
4516 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
4517 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4518 Update comment.
4519 <text_low_valid, text_high_valid>: New fields.
4520 <set_text_low, set_text_high>: Update.
4521 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
4522
4523 2018-07-26 Tom Tromey <tom@tromey.com>
4524
4525 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
4526 Update.
4527 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
4528 textlow and texthigh fields.
4529 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
4530 Update.
4531 * mdebugread.c (parse_lines, parse_partial_symbols)
4532 (psymtab_to_symtab_1): Update.
4533 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4534 Rename fields. Update comment. Now private.
4535 <text_low, text_high, set_text_low, set_text_high>: New methods.
4536 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4537 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
4538 (start_psymtab_common, maintenance_info_psymtabs)
4539 (maintenance_check_psymtabs): Update.
4540 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
4541 texthigh fields.
4542 (scan_xcoff_symtab): Update.
4543
4544 2018-07-26 Tom Tromey <tromey@redhat.com>
4545
4546 * psympriv.h (struct partial_symbol) <unrelocated_address,
4547 address, set_address>: New methods.
4548 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
4549 (fixup_psymbol_section, relocate_psymtabs): Update.
4550 (print_partial_symbols): Add 'objfile' parameter. Update.
4551 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
4552 Update.
4553
4554 2018-07-26 Tom Tromey <tom@tromey.com>
4555
4556 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4557 (debug_names::write_psymbols): Update.
4558 * psympriv.h (struct partial_symbol): Derive from
4559 general_symbol_info.
4560 <obj_section>: New method.
4561 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
4562 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4563 (find_pc_sect_psymbol, fixup_psymbol_section)
4564 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
4565 (print_partial_symbols, recursively_search_psymtabs)
4566 (compare_psymbols, psymbol_hash, psymbol_compare)
4567 (add_psymbol_to_bcache, maintenance_check_psymtabs)
4568 (psymbol_name_matches, psym_fill_psymbol_map): Update.
4569
4570 2018-07-26 Tom Tromey <tromey@redhat.com>
4571
4572 * dbxread.c (end_psymtab): Remove dead code.
4573
4574 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
4575
4576 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
4577 DWARF unwinders are disabled.
4578 * dwarf2-frame.c: Add dwarf2read.h include.
4579 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
4580 disabled.
4581 (dwarf2_frame_unwinders_enabled_p): Define.
4582 (show_dwarf_unwinders_enabled_p): New function.
4583 (_initialize_dwarf2_frame): Register switch to control DWARF
4584 unwinder use.
4585 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
4586 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
4587 (show_dwarf_cmdlist): Remove static keyword.
4588 * dwarf2read.h (set_dwarf_cmdlist): Declare.
4589 (show_dwarf_cmdlist): Declare.
4590 * NEWS: Document new feature.
4591
4592 2018-07-26 Tom de Vries <tdevries@suse.de>
4593
4594 PR breakpoints/23366
4595 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
4596
4597 2018-07-26 Tom de Vries <tdevries@suse.de>
4598
4599 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
4600 DW_AT_count can't be translated to a dynamic prop.
4601
4602 2018-07-25 Tom de Vries <tdevries@suse.de>
4603
4604 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
4605 try/catch.
4606
4607 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
4608
4609 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
4610
4611 2018-07-25 Joel Brobecker <brobecker@adacore.com>
4612
4613 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
4614
4615 2018-07-24 Keith Seitz <keiths@redhat.comt
4616
4617 PR symtab/23010
4618 * dwarf2read.c (dw2_add_symbol_to_list): New function.
4619 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
4620 instead of add_symbol_to_list.
4621 (read_file_scope): Call prepare_one_comp_unit before reading
4622 any other DIEs.
4623
4624 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
4625
4626 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
4627
4628 2018-07-24 Tom Tromey <tom@tromey.com>
4629
4630 * utils.c (malloc, realloc, free): Don't declare.
4631 * configure, config.in: Rebuild.
4632 * configure.ac: Don't check for declarations of free, malloc, or
4633 realloc.
4634
4635 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4636
4637 * aarch64-linux-nat.c
4638 (aarch64_linux_nat_target::stopped_data_address): Remove unused
4639 variable.
4640 * arm-linux-nat.c (fetch_regs): Likewise.
4641 (store_regs): Likewise.
4642 (fetch_vfp_regs): Likewise.
4643 (store_vfp_regs): Likewise.
4644 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
4645 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
4646 (arm_linux_nat_target::insert_watchpoint): Likewise.
4647 (arm_linux_nat_target::remove_watchpoint): Likewise.
4648 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
4649 Likewise.
4650 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
4651 Likewise.
4652 * ppc-linux-nat.c (fetch_register): Likewise.
4653 (fetch_all_gp_regs): Likewise.
4654 (fetch_ppc_registers): Likewise.
4655 (store_all_gp_regs): Likewise.
4656 (store_ppc_registers): Likewise.
4657 (hwdebug_insert_point): Likewise.
4658 (can_use_watchpoint_cond_accel): Likewise.
4659 * remote-sim.c (gdb_os_write_stdout): Likewise.
4660
4661 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4662 Tom Tromey <tom@tromey.com>
4663
4664 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
4665 test for it.
4666 * configure: Rebuild.
4667
4668 2018-07-22 Tom Tromey <tom@tromey.com>
4669
4670 * regformats/regdat.sh: Define xmltarget_${name} inside
4671 #ifndef IN_PROCESS_AGENT.
4672
4673 2018-07-22 Tom Tromey <tom@tromey.com>
4674
4675 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
4676
4677 2018-07-22 Tom Tromey <tom@tromey.com>
4678
4679 * symfile.c (reread_symbols): Notify iter, not objfile.
4680
4681 2018-07-22 Tom Tromey <tom@tromey.com>
4682
4683 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
4684 Use arch_ops.
4685 (ravenscar_thread_target::prepare_to_store): Likewise.
4686
4687 2018-07-22 Tom Tromey <tom@tromey.com>
4688
4689 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
4690 unused variable. Call value_fetch_lazy when needed.
4691 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4692 Remove unused variable. Call value_fetch_lazy when needed.
4693
4694 2018-07-22 Tom Tromey <tom@tromey.com>
4695
4696 * m32c-tdep.c (mark_dma): Return void.
4697 (make_regs): Remove unused declarations.
4698
4699 2018-07-22 Tom Tromey <tom@tromey.com>
4700
4701 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
4702 cmdscm_get_valid_command_smob_arg_unsafe for effect.
4703 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
4704 bkscm_get_valid_block_smob_arg_unsafe for effect.
4705
4706 2018-07-22 Tom Tromey <tom@tromey.com>
4707
4708 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
4709 value_type.
4710
4711 2018-07-22 Tom Tromey <tom@tromey.com>
4712
4713 * windows-nat.c (saved_context): Conditionally define.
4714 * remote.c (remote_target::remote_btrace_maybe_reopen):
4715 Conditionally declare "warned".
4716 * inflow.c (sigquit_ours): Conditionally define.
4717 (new_tty): Move "tty" declaration inside #if.
4718 * guile/guile.c (guile_datadir): Conditionally define.
4719 * charset.c (set_be_le_names): Move some declarations inside #if.
4720 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
4721 #if.
4722 (parse_xml_btrace_conf): Likewise.
4723
4724 2018-07-22 Tom Tromey <tom@tromey.com>
4725
4726 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
4727
4728 2018-07-22 Tom Tromey <tom@tromey.com>
4729
4730 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
4731 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
4732 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
4733 * buildsym-legacy.c (get_macro_table): Remove unused variable.
4734 * stack.c (frame_apply_level_command): Remove unused variable.
4735 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
4736 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
4737 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
4738 unused variable.
4739 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
4740 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
4741 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
4742 variable.
4743 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
4744 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
4745 variable.
4746 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
4747 Remove unused variable.
4748 * cli/cli-script.c (recurse_read_control_structure): Remove unused
4749 variable.
4750 * common/tdesc.c (print_xml_feature::visit): Remove unused
4751 variable.
4752 * compile/compile-object-load.c (store_regs): Remove unused
4753 variables.
4754 * complaints.c (clear_complaints): Remove unused variable.
4755 * corelow.c (core_target_open): Remove unused variable.
4756 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
4757 variable.
4758 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
4759 variable.
4760 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
4761 variable.
4762 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
4763 variable.
4764 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
4765 variable.
4766 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
4767 variable.
4768 * ia64-tdep.c (examine_prologue): Remove unused variable.
4769 * infcall.c (run_inferior_call): Remove unused variable.
4770 * inferior.c (exit_inferior): Remove unused variable.
4771 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
4772 * linespec.c (decode_line_2): Remove unused variable.
4773 * linux-nat.c (super_close): Remove.
4774 * linux-tdep.c (linux_info_proc): Remove unused variable.
4775 * mi/mi-main.c (mi_execute_command): Remove unused variable.
4776 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
4777 Remove unused variable.
4778 * parse.c (find_minsym_type_and_address): Remove unused variable.
4779 * printcmd.c (info_symbol_command, printf_floating): Remove unused
4780 variable.
4781 * python/py-breakpoint.c (bppy_set_commands): Remove unused
4782 variable.
4783 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
4784 variables.
4785 * record-btrace.c (record_btrace_target::store_registers): Remove
4786 unused variable.
4787 (cmd_show_record_btrace_cpu): Remove unused variable.
4788 * riscv-tdep.c (riscv_register_reggroup_p)
4789 (riscv_push_dummy_call, riscv_return_value): Remove unused
4790 variable.
4791 * rust-exp.y (literal): Remove unused variable.
4792 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
4793 unused variable.
4794 <STRUCTOP_ANONYMOUS>: Likewise.
4795 * s390-linux-tdep.c (s390_linux_init_abi_31)
4796 (s390_linux_init_abi_64): Remove unused variable.
4797 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
4798 (file_select_thread, net_windows_open, _initialize_ser_windows):
4799 Remove unused variables.
4800 * symtab.c (find_pc_sect_line): Remove unused variable.
4801 * target-memory.c (compute_garbled_blocks): Remove unused
4802 variable.
4803 (target_write_memory_blocks): Remove unused variable.
4804 * target.c (target_stack::unpush): Remove unused variables.
4805 * tracepoint.c (start_tracing, all_tracepoint_actions)
4806 (merge_uploaded_trace_state_variables)
4807 (print_one_static_tracepoint_marker): Remove unused variable.
4808 * unittests/basic_string_view/element_access/char/1.cc (test01):
4809 Remove unused variable.
4810 * windows-nat.c (windows_continue, windows_add_all_dlls)
4811 (do_initial_windows_stuff, windows_nat_target::create_inferior):
4812 Remove unused variables.
4813
4814 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4815
4816 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
4817 attr_profile in HAVE_ELF.
4818 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4819 HAVE_ELF.
4820
4821 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
4822
4823 * frame.c (frame_register_unwind): Change parameter name.
4824 (frame_unwind_register): Likewise.
4825 (frame_unwind_register_value): Likewise.
4826 (frame_unwind_register_signed): Likewise.
4827 (frame_unwind_register_unsigned): Likewise.
4828 * frame.h (frame_register_unwind): Likewise.
4829 (frame_unwind_register): Likewise.
4830 (frame_unwind_register_value): Likewise.
4831 (frame_unwind_register_signed): Likewise.
4832 (frame_unwind_register_unsigned): Likewise.
4833 (frame_unwind_arch): Likewise.
4834
4835 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4836
4837 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4838 ISA maintenance.
4839
4840 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4841
4842 * mips-linux-nat.c (mips_linux_nat_target::read_description):
4843 Call `get_ptrace_pid' rather than extracting the ptrace PID by
4844 hand.
4845
4846 2018-07-20 Keith Seitz <keiths@redhat.com>
4847
4848 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4849 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4850 m_compunit_symtab, m_language>: Add "m_" prefix.
4851 Update all uses.
4852 * buildsym.c: Update all uses.
4853
4854 2018-07-20 Tom Tromey <tom@tromey.com>
4855
4856 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4857 * buildsym.h (record_line_ftype): Remove typedef.
4858
4859 2018-07-20 Tom Tromey <tom@tromey.com>
4860
4861 * buildsym-legacy.h (augment_type_symtab): Don't declare.
4862 (end_expandable_symtab): Likewise.
4863 (end_symtab_get_static_block): Likewise.
4864 (end_symtab_from_static_block): Likewise.
4865 * buildsym-legacy.c (augment_type_symtab): Remove.
4866 (end_expandable_symtab): Remove.
4867 (end_symtab_get_static_block): Remove.
4868 (end_symtab_from_static_block): Remove.
4869
4870 2018-07-20 Tom Tromey <tom@tromey.com>
4871
4872 * dwarf2read.c: Include buildsym.h.
4873 (struct dwarf2_cu) <builder>: New method.
4874 (fixup_go_packaging): Update.
4875 (process_full_comp_unit, process_full_type_unit): Update. Don't
4876 use scoped_free_pendings.
4877 (using_directives): Add "cu" parameter, remove "language".
4878 (read_import_statement, setup_type_unit_groups, )
4879 (read_func_scope, read_lexical_block_scope)
4880 (dwarf2_record_block_ranges, read_namespace): Update.
4881 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4882 (lnp_state_machine::handle_end_sequence): Update.
4883 (class lnp_state_machine) <m_cu>: New member.
4884 <m_record_line_callback>: Remove.
4885 <m_currently_recording_lines>: New member.
4886 (lnp_state_machine::handle_set_file): Update.
4887 (noop_record_line): Remove.
4888 (dwarf_record_line_p): Add cu parameter.
4889 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4890 (lnp_state_machine::record_line)
4891 (lnp_state_machine::lnp_state_machine)
4892 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4893 (dwarf_decode_lines): Update.
4894 (dwarf2_start_subfile): Add cu parameter.
4895 (dwarf2_start_symtab, new_symbol): Update.
4896 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4897 Remove dwarf2_per_objfile parameter.
4898 (dwarf_decode_macros): Update.
4899
4900 2018-07-20 Tom Tromey <tom@tromey.com>
4901
4902 * stabsread.c (define_symbol): Update.
4903 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4904 * dwarf2read.c (new_symbol): Update.
4905 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4906 * cp-namespace.c: Include buildsym.h.
4907 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4908 * buildsym-legacy.c (get_buildsym_compunit): New function.
4909
4910 2018-07-20 Tom Tromey <tom@tromey.com>
4911
4912 * xcoffread.c: Include buildsym-legacy.h.
4913 * windows-nat.c: Include buildsym-legacy.h.
4914 * stabsread.c: Include buildsym-legacy.h.
4915 * mdebugread.c: Include buildsym-legacy.h.
4916 * buildsym-legacy.h: New file.
4917 * buildsym-legacy.c: New file, from buildsym.c.
4918 * go32-nat.c: Include buildsym-legacy.h.
4919 * dwarf2read.c: Include buildsym-legacy.h.
4920 * dbxread.c: Include buildsym-legacy.h.
4921 * cp-namespace.c: Include buildsym-legacy.h.
4922 * coffread.c: Include buildsym-legacy.h.
4923 * buildsym.h: Move some contents to buildsym-legacy.h.
4924 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4925 buildsym-legacy.c.
4926 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4927
4928 2018-07-20 Tom Tromey <tom@tromey.com>
4929
4930 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4931 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4932 (buildsym_compunit::buildsym_compunit)
4933 (buildsym_compunit::~buildsym_compunit)
4934 (buildsym_compunit::get_macro_table): Define.
4935
4936 2018-07-20 Tom Tromey <tom@tromey.com>
4937
4938 * buildsym.c (reset_symtab_globals): Remove.
4939 (buildsym_compunit::end_symtab_from_static_block): Update.
4940 (buildsym_compunit::augment_type_symtab): Update.
4941 (end_symtab_from_static_block): Call free_buildsym_compunit.
4942 (augment_type_symtab, end_symtab, end_expandable_symtab):
4943 Likewise.
4944
4945 2018-07-20 Tom Tromey <tom@tromey.com>
4946
4947 * arch-utils.c: Do not include buildsym.h.
4948 * mipsread.c: Do not include buildsym.h.
4949 * machoread.c: Do not include buildsym.h.
4950 * elfread.c: Do not include buildsym.h.
4951
4952 2018-07-20 Tom Tromey <tom@tromey.com>
4953
4954 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4955 initialization.
4956 (buildsym_compunit): Add new constructor.
4957 (struct buildsym_compunit) <get_last_source_file, finish_block,
4958 record_block_range, start_subfile, patch_subfile_names,
4959 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4960 set_last_source_start_addr, get_last_source_start_addr,
4961 get_local_using_directives, set_local_using_directives,
4962 get_global_using_directives, outermost_context_p,
4963 get_current_context_stack, get_context_stack_depth,
4964 get_current_subfile, get_local_symbols, get_file_symbols,
4965 get_global_symbols, record_debugformat, record_producer,
4966 push_context, pop_context, end_symtab_get_static_block,
4967 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4968 New public methods.
4969 <record_pending_block, finish_block_internal, make_blockvector,
4970 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4971 private methods.
4972 Update all users.
4973
4974 2018-05-22 Tom Tromey <tom@tromey.com>
4975
4976 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4977 parameter.
4978 (finish_block_internal): Update.
4979
4980 2018-07-20 Tom Tromey <tom@tromey.com>
4981
4982 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4983 parameter.
4984 (finish_block_internal): Update.
4985
4986 2018-07-20 Tom Tromey <tom@tromey.com>
4987
4988 * buildsym.h (EXTERN): Don't define or undef.
4989 * buildsym.c (EXTERN): Don't define.
4990
4991 2018-07-20 Tom Tromey <tom@tromey.com>
4992
4993 * buildsym.c: Remove TODO comment.
4994
4995 2018-07-20 Tom Tromey <tom@tromey.com>
4996
4997 * coffread.c (coff_symtab_read): Update.
4998 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4999 (xcoff_new_init): Update.
5000 * mipsread.c (mipscoff_new_init): Update.
5001 * mdebugread.c (mdebug_build_psymtabs): Update.
5002 * elfread.c (elf_new_init): Update.
5003 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5004 Update.
5005 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5006 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5007 (stabsect_build_psymtabs): Update.
5008 * buildsym.h (buildsym_init): Don't declare.
5009 * buildsym.c: Update comment.
5010 (prepare_for_building): Remove.
5011 (start_symtab, restart_symtab): Update.
5012 (reset_symtab_globals): Update comment.
5013 (buildsym_init): Remove.
5014
5015 2018-07-20 Tom Tromey <tom@tromey.com>
5016
5017 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5018 * stabsread.c (patch_block_stabs, define_symbol, read_type)
5019 (read_enum_type, common_block_start, common_block_end)
5020 (cleanup_undefined_types_1, finish_global_stabs): Update.
5021 * mdebugread.c (psymtab_to_symtab_1): Update.
5022 * dwarf2read.c (fixup_go_packaging, read_func_scope)
5023 (read_lexical_block_scope, new_symbol): Update.
5024 * dbxread.c (process_one_symbol): Update.
5025 * coffread.c (coff_symtab_read, process_coff_symbol)
5026 (coff_read_enum_type): Update.
5027 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5028 declare.
5029 (get_local_symbols, get_file_symbols, get_global_symbols): New
5030 functions.
5031 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
5032 m_global_symbols.
5033 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
5034 (~scoped_free_pendings): Update.
5035 (finish_block, prepare_for_building, reset_symtab_globals)
5036 (end_symtab_get_static_block, end_symtab_with_blockvector)
5037 (augment_type_symtab, push_context): Update.
5038 (get_local_symbols, get_file_symbols, get_global_symbols): New
5039 functions.
5040 (buildsym_init): Update.
5041
5042 2018-07-20 Tom Tromey <tom@tromey.com>
5043
5044 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
5045 (process_full_type_unit): Likewise.
5046 (dwarf2_start_symtab): Set list_in_scope.
5047
5048 2018-07-20 Tom Tromey <tom@tromey.com>
5049
5050 * dwarf2read.c (process_psymtab_comp_unit_reader)
5051 (build_type_psymtabs_reader): Do not set list_in_scope.
5052
5053 2018-07-20 Tom Tromey <tom@tromey.com>
5054
5055 * buildsym.c (free_pendings): Remove.
5056 (add_symbol_to_list, scoped_free_pendings)
5057 (finish_block_internal, buildsym_init): Update.
5058
5059 2018-07-20 Tom Tromey <tom@tromey.com>
5060
5061 * xcoffread.c (read_xcoff_symtab): Update.
5062 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5063 Update.
5064 * dbxread.c (process_one_symbol): Update.
5065 * coffread.c (coff_symtab_read): Update.
5066 * buildsym.h (finish_block): Update.
5067 * buildsym.c (finish_block): Remove "listhead" argument.
5068 (end_symtab_get_static_block): Update.
5069
5070 2018-07-20 Tom Tromey <tom@tromey.com>
5071
5072 * buildsym.h (class scoped_free_pendings): Remove constructor.
5073 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
5074 method.
5075 <m_pending_block_obstack, m_pending_blocks>: New members.
5076 (pending_block_obstack, pending_blocks): Remove.
5077 (scoped_free_pendings::scoped_free_pendings): Default.
5078 (~scoped_free_pendings): Update.
5079 (free_pending_blocks): Remove.
5080 (finish_block_internal, record_pending_block, make_blockvector)
5081 (end_symtab_get_static_block, augment_type_symtab, push_context)
5082 (buildsym_init): Update.
5083
5084 2018-07-20 Tom Tromey <tom@tromey.com>
5085
5086 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
5087 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
5088 members.
5089 (pending_addrmap, pending_addrmap_obstack)
5090 (pending_addrmap_interesting): Remove.
5091 (scoped_free_pendings, record_block_range, make_blockvector)
5092 (prepare_for_building, reset_symtab_globals, buildsym_init):
5093 Update.
5094
5095 2018-07-20 Tom Tromey <tom@tromey.com>
5096
5097 * xcoffread.c (process_linenos): Update.
5098 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
5099 * mdebugread.c (psymtab_to_symtab_1): Update.
5100 * dwarf2read.c (setup_type_unit_groups)
5101 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
5102 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
5103 * dbxread.c (process_one_symbol): Update.
5104 * coffread.c (coff_symtab_read, enter_linenos)
5105 (process_coff_symbol): Update.
5106 * buildsym.h (current_subfile): Don't declare.
5107 (get_current_subfile): Declare.
5108 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
5109 member.
5110 (start_subfile, free_buildsym_compunit, push_subfile)
5111 (prepare_for_building, start_symtab): Update.
5112 (get_current_subfile): New function.
5113
5114 2018-07-20 Tom Tromey <tom@tromey.com>
5115
5116 * coffread.c (coff_symtab_read): Update.
5117 * xcoffread.c (read_xcoff_symtab): Update.
5118 * dwarf2read.c (new_symbol): Update.
5119 (read_func_scope, read_lexical_block_scope): Update.
5120 * dbxread.c (process_one_symbol): Update.
5121 * buildsym.h (context_stack, context_stack_depth): Don't declare.
5122 (outermost_context_p): Remove macro.
5123 (outermost_context_p, get_current_context_stack)
5124 (get_context_stack_depth): Declare.
5125 (pop_context): Return struct context_stack.
5126 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
5127 member.
5128 (context_stack_size): Remove.
5129 (INITIAL_CONTEXT_STACK_SIZE): Remove.
5130 (prepare_for_building, end_symtab_get_static_block)
5131 (augment_type_symtab, push_context): Update.
5132 (pop_context): Return struct context_stack.
5133 (outermost_context_p, get_current_context_stack)
5134 (get_context_stack_depth): New functions.
5135 (buildsym_init): Update.
5136
5137 2018-07-20 Tom Tromey <tom@tromey.com>
5138
5139 * rust-exp.y: Now a pure parser. Update all rules.
5140 (%union): Move earlier.
5141 (current_parser, work_obstack): Remove globals.
5142 (rust_parser, ~rust_parser): Update.
5143 (class rust_parser) <copy_name, concat3, crate_name, super_name,
5144 lex_character, lex_number, lex_string, lex_identifier,
5145 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
5146 convert_name, convert_params_to_expression,
5147 convert_ast_to_expression, ast_basic_type, ast_operation,
5148 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
5149 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
5150 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
5151 ast_array_type, ast_slice_type, ast_reference_type,
5152 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
5153 (rust_parse): Update.
5154 (rustyyerror, rustyylex): Add parser parameter.
5155 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
5156 (rust_lex_stringish_test, rust_lex_test_sequence)
5157 (rust_lex_test_trailing_dot, rust_lex_test_completion)
5158 (rust_lex_test_push_back, rust_lex_tests): Update.
5159
5160 2018-07-19 Pedro Alves <palves@redhat.com>
5161
5162 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
5163 gdb::unique_xmalloc_ptr.
5164 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
5165 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
5166 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
5167 copy-initialization.
5168 * guile/scm-pretty-print.c (ppscm_print_children): Use
5169 gdb::unique_xmalloc_ptr instead of cleanups.
5170 (gdbscm_apply_val_pretty_printer): Remove cleanups.
5171 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
5172 gdb::unique_xmalloc_ptr.
5173 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5174 Adjust to use gdb::unique_xmalloc_ptr.
5175 * guile/scm-utils.c (extract_arg): Adjust.
5176 * guile/scm-value.c (gdbscm_value_field): Adjust to use
5177 gdb::unique_xmalloc_ptr instead of a cleanup.
5178
5179 2018-07-19 Tom Tromey <tom@tromey.com>
5180
5181 * utils.c (do_value_free_to_mark)
5182 (make_cleanup_value_free_to_mark): Remove.
5183 * utils.h (make_cleanup_value_free_to_mark): Remove.
5184
5185 2018-07-19 Pedro Alves <palves@redhat.com>
5186
5187 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
5188 forwarding reference.
5189
5190 2018-07-18 Pedro Alves <palves@redhat.com>
5191
5192 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5193 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
5194 cleanup.
5195
5196 2018-07-18 Pedro Alves <palves@redhat.com>
5197
5198 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5199 exceptions.
5200 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5201 (gdbscm_wrap): New.
5202 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5203 directly instead of a cleanup.
5204 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5205 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
5206 (vlscm_binop_gdbthrow): New, factored out from ...
5207 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
5208 (vlscm_rich_compare): Use gdbscm_wrap.
5209 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5210 instead of a cleanup.
5211 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5212 cleanup.
5213 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5214 Use xfree directly instead of a cleanup.
5215 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5216 Adjust to use gdbscm_wrap and scoped_value_mark.
5217 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5218 (gdbscm_value_address, gdbscm_value_dereference)
5219 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5220 scoped_value_mark.
5221 (gdbscm_value_dynamic_type): Use scoped_value_mark.
5222 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5223 scoped_value_mark.
5224 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5225 gdbscm_wrap and scoped_value_mark.
5226 (gdbscm_value_to_string): Use xfree directly instead of a
5227 cleanup. Move 'buffer' unique_ptr to TRY scope.
5228 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5229 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
5230 scoped_value_mark.
5231 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5232 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5233 scoped_value_mark.
5234 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5235 gdbscm_wrap.
5236
5237 2018-07-18 Tom de Vries <tdevries@suse.de>
5238
5239 * findvar.c (default_read_var_value): Also resolve dynamic type for
5240 LOC_OPTIMIZED_OUT vars.
5241
5242 2018-07-18 Maciej W. Rozycki <macro@mips.com>
5243
5244 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
5245 decoding.
5246
5247 2018-07-17 Tom Tromey <tom@tromey.com>
5248
5249 * guile/scm-param.c (pascm_set_func, pascm_show_func)
5250 (compute_enum_list, pascm_set_param_value_x)
5251 (gdbscm_parameter_value): Update.
5252 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
5253 (gdbscm_scm_to_host_string): Update.
5254 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
5255 Update.
5256 * guile/scm-cmd.c (cmdscm_add_completion): Update.
5257 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
5258 * guile/scm-string.c (gdbscm_scm_to_string): Return
5259 unique_xmalloc_ptr.
5260 (gdbscm_scm_to_host_string): Likewise.
5261
5262 2018-07-17 Tom Tromey <tom@tromey.com>
5263
5264 * guile/guile.c (gdbscm_eval_from_control_command): Update.
5265 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
5266 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
5267 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
5268 unique_xmalloc_ptr.
5269
5270 2018-07-17 Tom Tromey <tom@tromey.com>
5271
5272 * guile/scm-param.c (pascm_signal_setshow_error): Update.
5273 * guile/guile-internal.h (gdbscm_exception_message_to_string):
5274 Update.
5275 * guile/scm-cmd.c (cmdscm_function): Update.
5276 * guile/scm-pretty-print.c
5277 (ppscm_print_exception_unless_memory_error): Update.
5278 * guile/scm-exception.c (gdbscm_exception_message_to_string):
5279 Return unique_xmalloc_ptr.
5280
5281 2018-07-17 Tom Tromey <tom@tromey.com>
5282
5283 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
5284 Use string_printf.
5285
5286 2018-07-17 Jim Wilson <jimw@sifive.com>
5287
5288 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
5289 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
5290 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
5291 unecessary braces after EF_RISCV_RVC test. Delete call to
5292 set_gdbarch_decr_pc_after_break.
5293
5294 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
5295 RISCV_LAST_FP_REGNUM + 1.
5296 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
5297
5298 2018-07-17 Tom Tromey <tom@tromey.com>
5299
5300 * configure.ac: Remove --disable-gdbcli.
5301 * configure: Rebuild.
5302 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
5303 (SUBDIR_CLI_CFLAGS): Remove.
5304 (SFILES): Use SUBDIR_CLI_SRCS.
5305 (COMMON_OBS): Use SUBDIR_CLI_OBS.
5306
5307 2018-07-17 Tom Tromey <tom@tromey.com>
5308
5309 PR gdb/18624:
5310 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
5311
5312 2018-07-16 Jim Wilson <jimw@sifive.com>
5313
5314 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
5315
5316 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5317
5318 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
5319 variable.
5320 (libunwind_frame_sniffer): Likewise.
5321 (libunwind_frame_prev_register): Likewise.
5322 (libunwind_sigtramp_frame_sniffer): Likewise.
5323 * ia64-tdep.c (ia64_access_reg): Likewise.
5324 (ia64_access_rse_reg): Likewise.
5325 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
5326 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
5327
5328 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5329
5330 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
5331
5332 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5333
5334 * remote-sim.c (gdbsim_target::close,
5335 gdbsim_target::mourn_inferior): Remove unused variables.
5336
5337 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
5338
5339 * ia64-tdep.c (ktab_buf): New global.
5340 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
5341 (get_kernel_table): Adjust.
5342
5343 2018-07-16 Tom Tromey <tom@tromey.com>
5344
5345 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5346 * dwarf2read.c (using_directives, new_symbol): Use
5347 outermost_context_p.
5348 * dbxread.c (process_one_symbol): Use outermost_context_p.
5349 * coffread.c (coff_symtab_read): Use outermost_context_p.
5350
5351 2018-07-16 Tom Tromey <tom@tromey.com>
5352
5353 * dwarf2read.c (using_directives, read_func_scope)
5354 (read_lexical_block_scope): Update.
5355 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5356 * buildsym.h (local_using_directives, global_using_directives):
5357 Don't declare.
5358 (get_local_using_directives, set_local_using_directives)
5359 (get_global_using_directives): Declare.
5360 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5361 m_global_using_directives>: New members.
5362 (finish_block_internal, prepare_for_building)
5363 (reset_symtab_globals, end_symtab_get_static_block)
5364 (push_context): Update.
5365 (get_local_using_directives, set_local_using_directives)
5366 (get_global_using_directives): New functions.
5367 (buildsym_init): Update.
5368
5369 2018-07-16 Tom Tromey <tom@tromey.com>
5370
5371 * xcoffread.c (xcoff_initial_scan): Don't call
5372 free_pending_blocks.
5373 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5374 * buildsym.h (class scoped_free_pendings): Add constructor.
5375 (free_pending_blocks): Don't declare.
5376 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5377 (free_pending_blocks): Now static.
5378
5379 2018-07-16 Tom Tromey <tom@tromey.com>
5380
5381 * buildsym.h (push_subfile, pop_subfile): Update declarations.
5382 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5383 member.
5384 (struct subfile_stack): Remove.
5385 (subfile_stack): Remove.
5386 (push_subfile, pop_subfile, buildsym_init): Update.
5387
5388 2018-07-16 Tom Tromey <tom@tromey.com>
5389
5390 * buildsym.c (push_subfile): Use gdb_assert.
5391 (pop_subfile): Use gdb_assert.
5392
5393 2018-07-16 Tom Tromey <tom@tromey.com>
5394
5395 * buildsym.h (merge_symbol_lists): Remove.
5396 * buildsym.c (merge_symbol_lists): Remove.
5397
5398 2018-07-16 Tom Tromey <tom@tromey.com>
5399
5400 * stabsread.c (scan_file_globals): Update comment.
5401 * stabsread.h (scan_file_globals): Move from buildsym.h.
5402 * buildsym.h (scan_file_globals): Move to stabsread.h.
5403
5404 2018-07-16 Tom Tromey <tom@tromey.com>
5405
5406 * xcoffread.c (xcoff_new_init): Update.
5407 * mipsread.c (mipscoff_new_init): Update.
5408 * mdebugread.c (mdebug_build_psymtabs): Update.
5409 * elfread.c (elf_new_init): Update.
5410 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5411 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5412 * buildsym.h (buildsym_new_init): Don't declare.
5413 * buildsym.c (buildsym_new_init): Remove.
5414
5415 2018-07-16 Tom Tromey <tom@tromey.com>
5416
5417 * stabsread.h (within_function): Move from buildsym.h.
5418 * stabsread.c (start_stabs): Clear within_function.
5419 * coffread.c (coff_start_symtab): Clear within_function.
5420 * buildsym.h (within_function): Move to stabsread.h.
5421 * buildsym.c (prepare_for_building): Update.
5422
5423 2018-07-16 Tom Tromey <tom@tromey.com>
5424
5425 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5426 * dwarf2read.c (dwarf2_start_symtab): Don't set
5427 processing_gcc_compilation.
5428 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5429
5430 2018-07-16 Tom Tromey <tom@tromey.com>
5431
5432 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5433 (next_symbol_text_func): Move from buildsym.h.
5434 * stabsread.c (hashname): Move from buildsym.c.
5435 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5436 (next_symbol_text_func, hashname): Move to stabsread.h.
5437 * buildsym.c: Don't include bcache.h
5438 (hashname): Move to stasbread.c.
5439
5440 2018-07-16 Tom Tromey <tom@tromey.com>
5441
5442 * buildsym.h (context_stack_size): Don't declare.
5443 * buildsym.c (context_stack_size): New global.
5444
5445 2018-07-16 Tom Tromey <tom@tromey.com>
5446
5447 * dbxread.c (processing_acc_compilation): New global.
5448 * buildsym.h (processing_acc_compilation): Don't declare.
5449
5450 2018-07-16 Tom Tromey <tom@tromey.com>
5451
5452 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5453 * dbxread.c (read_ofile_symtab): Update.
5454 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5455 * buildsym.h (last_source_start_addr): Remove.
5456 (set_last_source_start_addr, get_last_source_start_addr):
5457 Declare.
5458 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5459 parameter.
5460 (struct buildsym_compunit) <m_last_source_start_addr>: New
5461 member.
5462 (prepare_for_building): Remove start_addr parameter.
5463 (start_symtab, restart_symtab, end_symtab_get_static_block)
5464 (end_symtab_with_blockvector): Update.
5465 (set_last_source_start_addr, get_last_source_start_addr): New
5466 functions.
5467
5468 2018-07-16 Tom Tromey <tom@tromey.com>
5469
5470 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
5471 member.
5472 (have_line_numbers): Remove.
5473 (record_line, prepare_for_building, end_symtab_get_static_block)
5474 (augment_type_symtab): Update.
5475
5476 2018-07-16 Tom Tromey <tom@tromey.com>
5477
5478 * buildsym.c (~buildsym_compunit): Free the macro table.
5479 (struct buildsym_compunit) <get_macro_table, release_macros>: New
5480 methods.
5481 <m_pending_macros>: New member.
5482 (pending_macros): Remove.
5483 (~scoped_free_pendings, get_macro_table, prepare_for_building)
5484 (reset_symtab_globals, end_symtab_get_static_block)
5485 (end_symtab_with_blockvector, augment_type_symtab)
5486 (buildsym_init): Update.
5487
5488 2018-07-16 Tom Tromey <tom@tromey.com>
5489
5490 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
5491 parameter.
5492 (buildsym_compunit::set_last_source_file): New method.
5493 <m_last_source_file>: New member.
5494 (prepare_for_building): Remove "name" parameter.
5495 (start_symtab, restart_symtab, reset_symtab_globals): Update.
5496 (last_source_file): Remove.
5497 (set_last_source_file, get_last_source_file): Update.
5498
5499 2018-07-16 Tom Tromey <tom@tromey.com>
5500
5501 * buildsym.c (prepare_for_building): Add assert.
5502
5503 2018-07-16 Tom Tromey <tom@tromey.com>
5504
5505 * buildsym.c (~buildsym_compunit): Update.
5506 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
5507 (start_subfile, patch_subfile_names)
5508 (end_symtab_with_blockvector): Update.
5509
5510 2018-07-16 Tom Tromey <tom@tromey.com>
5511
5512 * buildsym.c (struct buildsym_compunit): Add constructor,
5513 destructor, initializers.
5514 (start_buildsym_compunit): Remove.
5515 (free_buildsym_compunit): Use "delete".
5516 (start_symtab, restart_symtab): Use "new".
5517
5518 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
5519
5520 * symfile.c (set_objfile_default_section_offset): Remove struct
5521 keyword.
5522
5523 2018-07-14 Stafford Horne <shorne@gmail.com>
5524
5525 * (Responsible Maintainers): Add myself as or1k maintainer.
5526
5527 2018-07-13 Tom Tromey <tom@tromey.com>
5528
5529 * symfile.c (set_objfile_default_section_offset): Use extra braces
5530 around initializer.
5531
5532 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5533
5534 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
5535 non-branching basr.
5536
5537 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5538
5539 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5540 unittests/cli-utils-selftests.c
5541 * unittests/cli-utils-selftests.c: New file.
5542
5543 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5544
5545 * NEWS: Mention new commands. Mention change to 'thread apply'.
5546
5547 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5548
5549 * thread.c (thr_try_catch_cmd): New function.
5550 (thread_apply_all_command): Handle qcs flags.
5551 (thread_apply_command): Handle qcs flags.
5552 (taas_command): New function.
5553 (tfaas_command): New function.
5554 (_initialize_thread): Update to setup the new commands 'taas
5555 and 'tfaas'. Change doc string for 'thread apply'.
5556
5557 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5558
5559 * stack.c: (trailing_outermost_frame): New function, mostly
5560 extracted from backtrace_command_1.
5561 (leading_innermost_frame): New function.
5562 (backtrace_command_1): Update to call trailing_outermost_frame.
5563 (frame_apply_command_count): New function.
5564 (frame_apply_level_command): New function.
5565 (frame_apply_all_command): New function.
5566 (frame_apply_command): New function.
5567 (faas_command): New function.
5568 (frame_cmd_list): New variable.
5569 (_initialize_stack): Update to setup the new commands 'frame apply'
5570 and 'faas'.
5571
5572 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5573
5574 * cli-utils.c (number_or_range_parser::get_number): Only handle
5575 numbers or convenience var as numbers.
5576 (parse_flags): New function.
5577 (parse_flags_qcs): New function.
5578 (number_or_range_parser::finished): Ensure parsing end is detected
5579 before end of string.
5580 * cli-utils.h (parse_flags): New function.
5581 (parse_flags_qcs): New function.
5582 (number_or_range_parser): Remove m_finished bool.
5583 (number_or_range_parser::skip_range): Set m_in_range to false.
5584
5585 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
5586
5587 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
5588 on Windows.
5589
5590 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5591 Jan Kratochvil <jan.kratochvil@redhat.com>
5592 Paul Fertser <fercerpav@gmail.com>
5593 Tsutomu Seki <sekiriki@gmail.com>
5594 Pedro Alves <palves@redhat.com>
5595
5596 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5597 'unittests/parse-connection-spec-selftests.c'.
5598 (COMMON_SFILES): Add 'common/netstuff.c'.
5599 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
5600 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
5601 * common/netstuff.c: New file.
5602 * common/netstuff.h: New file.
5603 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
5604 (wait_for_connect): Update comment. New parameter
5605 'gdb::optional<int> sock' instead of 'struct serial *scb'.
5606 Use 'sock' directly instead of 'scb->fd'.
5607 (try_connect): New function, with code from 'net_open'.
5608 (net_open): Rewrite main loop to deal with multiple
5609 sockets/addresses. Handle IPv6-style hostnames; implement
5610 support for IPv6 connections.
5611 * unittests/parse-connection-spec-selftests.c: New file.
5612
5613 2018-07-11 Pedro Alves <palves@redhat.com>
5614
5615 PR gdb/23377
5616 * remote.c (remote_target::remote_detach_pid): Call
5617 set_current_process.
5618
5619 2018-07-11 Pedro Alves <palves@redhat.com>
5620
5621 * h8300-tdep.c (h8300_gdbarch_init): Remove
5622 set_gdbarch_ecoff_reg_to_regnum calls.
5623
5624 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5625
5626 PR c++/23373
5627 * c-typeprint.c (c_type_print_base_struct_union): Don't print
5628 offsets/sizes for static members of a class/struct.
5629
5630 2018-07-11 Alan Hayward <alan.hayward@arm.com>
5631
5632 * target-descriptions.c (tdesc_register_bitsize): Rename.
5633 * target-descriptions.h (tdesc_register_bitsize): Likewise.
5634 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
5635 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
5636
5637 2018-07-10 Tom Tromey <tom@tromey.com>
5638
5639 * breakpoint.c (moribund_locations): Now static and a
5640 std::vector.
5641 (breakpoint_init_inferior, moribund_breakpoint_here_p)
5642 (build_bpstat_chain, update_global_location_list)
5643 (breakpoint_retire_moribund): Update.
5644 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
5645 VEC.
5646
5647 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5648
5649 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
5650 (riscv_register_reggroup_p): Use new function, remove unneeded
5651 parenthesis.
5652 (riscv_push_dummy_call): Extend assert to compare against xlen or
5653 flen based on register type.
5654
5655 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5656
5657 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
5658
5659 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5660
5661 * remote.c (show_hardware_watchpoint_limit): New function.
5662 (show_hardware_watchpoint_length_limit): New function.
5663 (show_hardware_breakpoint_limit): New function.
5664 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
5665 where appropriate, update help text.
5666
5667 2018-07-09 Tom Tromey <tom@tromey.com>
5668
5669 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
5670 (CLIBS): Don't mention NAT_CLIBS.
5671
5672 2018-07-09 Tom Tromey <tom@tromey.com>
5673
5674 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
5675 (LIBGDB_OBS, clean mostlyclean): Update.
5676 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
5677
5678 2018-07-09 Tom Tromey <tom@tromey.com>
5679
5680 * Makefile.in (%.c: %.y): Use ECHO_YACC.
5681 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
5682 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
5683
5684 2018-07-09 Tom Tromey <tom@tromey.com>
5685
5686 * Makefile.in (ALLDEPFILES): Remove exec.c.
5687 (COMMON_OBS): Remove exec.o.
5688 (COMMON_SFILES): Add exec.c.
5689
5690 2018-07-09 Tom Tromey <tom@tromey.com>
5691
5692 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
5693
5694 2018-07-09 Tom Tromey <tom@tromey.com>
5695
5696 * Makefile.in (clean mostlyclean): Remove stamp-version.
5697 (version.c): Depend on stamp-version.
5698 (stamp-version): New rule, from version.c rule.
5699
5700 2018-07-09 Tom Tromey <tom@tromey.com>
5701
5702 * Makefile.in (init.c): Depend on stamp-init.
5703 (stamp-init): New rule, from init.c rule.
5704 (clean mostlyclean): Remove stamp-init.
5705
5706 2018-07-09 Tom Tromey <tom@tromey.com>
5707
5708 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
5709 SUBDIR_GCC_COMPILE_SRCS.
5710
5711 2018-07-09 Tom Tromey <tom@tromey.com>
5712
5713 * Makefile.in (init.c): Remove some unused sed rules.
5714
5715 2018-07-09 Tom Tromey <tom@tromey.com>
5716
5717 * Makefile.in (TSOBS): Remove.
5718 (INIT_FILES): Update.
5719 (LIBGDB_OBS): Update.
5720 (COMMON_SFILES): Add inflow.c.
5721 (SFILES): Remove inflow.c.
5722
5723 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5724
5725 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
5726
5727 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
5728
5729 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
5730 get_saveloc_name, is_signal_frame_name, step_name,
5731 init_remote_name, create_addr_space_name,
5732 destroy_addr_space_name, search_unwind_table_name,
5733 find_dyn_list_name): Constify.
5734
5735 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
5736
5737 * darwin-nat.c (darwin_pthread_kill): New function.
5738 (darwin_resume_thread): Use darwin_pthread_kill.
5739
5740 2018-07-05 Tom de Vries <tdevries@suse.de>
5741
5742 * macroexp.c (macro_buffer) <operator=>: New member function.
5743
5744 2018-07-04 Tom Tromey <tom@tromey.com>
5745
5746 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
5747
5748 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
5749
5750 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
5751 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
5752 * maint.c: Likewise.
5753 * top.c: Likewise.
5754
5755 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5756
5757 * NEWS: Create a new section for the next release branch.
5758 Rename the section of the current branch, now that it has
5759 been cut.
5760
5761 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5762
5763 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
5764 * version.in: Bump version to 8.2.50.DATE-git.
5765
5766 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5767 Pedro Alves <palves@redhat.com>
5768
5769 * linux-nat.c (linux_init_ptrace): Rename to ...
5770 (linux_init_ptrace_procfs): ... this. Call
5771 linux_proc_init_warnings.
5772 (linux_nat_target::post_attach)
5773 (linux_nat_target::post_startup_inferior): Adjust.
5774 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
5775 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
5776
5777 2018-07-04 Tom de Vries <tdevries@suse.de>
5778
5779 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
5780 check ...
5781 (read_comp_unit_head): ... here.
5782
5783 2018-07-03 Tom Tromey <tom@tromey.com>
5784
5785 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
5786 (stop_tracing, tstatus_command)
5787 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
5788 (print_one_static_tracepoint_marker): Update.
5789 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
5790 std::vector.
5791 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
5792 VEC.
5793 (all_tracepoints, static_tracepoints_here): Return std::vector.
5794
5795 2018-07-03 Tom Tromey <tom@tromey.com>
5796
5797 * common/ptid.c (ptid_equal): Remove.
5798 * common/ptid.h (ptid_equal): Don't declare.
5799 * ada-tasks.c: Update.
5800 * breakpoint.c: Update.
5801 * common/agent.c: Update.
5802 * corelow.c: Update.
5803 * darwin-nat-info.c: Update.
5804 * darwin-nat.c: Update.
5805 * dcache.c: Update.
5806 * dtrace-probe.c: Update.
5807 * dummy-frame.c: Update.
5808 * fbsd-nat.c: Update.
5809 * frame.c: Update.
5810 * gdbthread.h: Update.
5811 * gnu-nat.c: Update.
5812 * go32-nat.c: Update.
5813 * inf-loop.c: Update.
5814 * inf-ptrace.c: Update.
5815 * infcall.c: Update.
5816 * infcmd.c: Update.
5817 * inflow.c: Update.
5818 * infrun.c: Update.
5819 * linux-fork.c: Update.
5820 * linux-nat.c: Update.
5821 * linux-thread-db.c: Update.
5822 * mi/mi-cmd-var.c: Update.
5823 * mi/mi-interp.c: Update.
5824 * mi/mi-main.c: Update.
5825 * nto-procfs.c: Update.
5826 * ppc-linux-tdep.c: Update.
5827 * procfs.c: Update.
5828 * python/py-inferior.c: Update.
5829 * python/py-record-btrace.c: Update.
5830 * python/py-record.c: Update.
5831 * ravenscar-thread.c: Update.
5832 * regcache.c: Update.
5833 * remote-sim.c: Update.
5834 * remote.c: Update.
5835 * sol-thread.c: Update.
5836 * solib.c: Update.
5837 * target.c: Update.
5838 * tui/tui-stack.c: Update.
5839 * varobj.c: Update.
5840 * windows-nat.c: Update.
5841 * windows-tdep.c: Update.
5842
5843 2018-07-03 Tom Tromey <tom@tromey.com>
5844
5845 * common/ptid.c (ptid_match): Remove.
5846 * common/ptid.h (ptid_match): Don't declare.
5847 * fbsd-nat.c: Update.
5848 * infcmd.c: Update.
5849 * infrun.c: Update.
5850 * linux-nat.c: Update.
5851 * record-btrace.c: Update.
5852 * regcache.c: Update.
5853 * remote.c: Update.
5854
5855 2018-07-03 Tom Tromey <tom@tromey.com>
5856
5857 * common/ptid.c (ptid_tid_p): Remove.
5858 * common/ptid.h (ptid_tid_p): Don't declare.
5859 * sol-thread.c: Update.
5860
5861 2018-07-03 Tom Tromey <tom@tromey.com>
5862
5863 * common/ptid.c (ptid_lwp_p): Remove.
5864 * common/ptid.h (ptid_lwp_p): Don't declare.
5865 * fbsd-nat.c: Update.
5866 * linux-nat.c: Update.
5867 * nat/linux-procfs.c: Update.
5868 * nat/x86-linux-dregs.c: Update.
5869 * sol-thread.c: Update.
5870
5871 2018-07-03 Tom Tromey <tom@tromey.com>
5872
5873 * common/ptid.c (ptid_is_pid): Remove.
5874 * common/ptid.h (ptid_is_pid): Don't declare.
5875 * infrun.c: Update.
5876 * linux-nat.c: Update.
5877 * mi/mi-interp.c: Update.
5878 * remote.c: Update.
5879 * thread.c: Update.
5880
5881 2018-07-03 Tom Tromey <tom@tromey.com>
5882
5883 * common/ptid.c (ptid_get_tid): Remove.
5884 * common/ptid.h (ptid_get_tid): Don't declare.
5885 * ada-tasks.c: Update.
5886 * aix-thread.c: Update.
5887 * bsd-uthread.c: Update.
5888 * darwin-nat.c: Update.
5889 * fbsd-nat.c: Update.
5890 * i386-darwin-nat.c: Update.
5891 * infrun.c: Update.
5892 * linux-tdep.c: Update.
5893 * nto-procfs.c: Update.
5894 * ppc-ravenscar-thread.c: Update.
5895 * python/py-infthread.c: Update.
5896 * ravenscar-thread.c: Update.
5897 * sol-thread.c: Update.
5898 * sparc-ravenscar-thread.c: Update.
5899 * windows-nat.c: Update.
5900
5901 2018-07-03 Tom Tromey <tom@tromey.com>
5902
5903 * common/ptid.c (ptid_get_lwp): Remove.
5904 * common/ptid.h (ptid_get_lwp): Don't declare.
5905 * aarch64-linux-nat.c: Update.
5906 * ada-tasks.c: Update.
5907 * aix-thread.c: Update.
5908 * amd64-linux-nat.c: Update.
5909 * arm-linux-nat.c: Update.
5910 * corelow.c: Update.
5911 * fbsd-nat.c: Update.
5912 * fbsd-tdep.c: Update.
5913 * gnu-nat.c: Update.
5914 * i386-cygwin-tdep.c: Update.
5915 * i386-gnu-nat.c: Update.
5916 * i386-linux-nat.c: Update.
5917 * ia64-linux-nat.c: Update.
5918 * inf-ptrace.c: Update.
5919 * infrun.c: Update.
5920 * linux-fork.c: Update.
5921 * linux-nat.c: Update.
5922 * linux-tdep.c: Update.
5923 * linux-thread-db.c: Update.
5924 * mips-linux-nat.c: Update.
5925 * nat/aarch64-linux-hw-point.c: Update.
5926 * nat/aarch64-linux.c: Update.
5927 * nat/linux-btrace.c: Update.
5928 * nat/linux-osdata.c: Update.
5929 * nat/linux-procfs.c: Update.
5930 * nat/x86-linux-dregs.c: Update.
5931 * obsd-nat.c: Update.
5932 * ppc-fbsd-nat.c: Update.
5933 * ppc-linux-nat.c: Update.
5934 * procfs.c: Update.
5935 * python/py-infthread.c: Update.
5936 * ravenscar-thread.c: Update.
5937 * remote.c: Update.
5938 * s390-linux-nat.c: Update.
5939 * sol-thread.c: Update.
5940 * sol2-tdep.c: Update.
5941 * spu-linux-nat.c: Update.
5942 * x86-linux-nat.c: Update.
5943 * xtensa-linux-nat.c: Update.
5944
5945 2018-07-03 Tom Tromey <tom@tromey.com>
5946
5947 * common/ptid.c (ptid_get_pid): Remove.
5948 * common/ptid.h (ptid_get_pid): Don't declare.
5949 * aarch64-linux-nat.c: Update.
5950 * ada-lang.c: Update.
5951 * aix-thread.c: Update.
5952 * alpha-bsd-nat.c: Update.
5953 * amd64-fbsd-nat.c: Update.
5954 * amd64-linux-nat.c: Update.
5955 * arm-linux-nat.c: Update.
5956 * arm-nbsd-nat.c: Update.
5957 * auxv.c: Update.
5958 * break-catch-syscall.c: Update.
5959 * breakpoint.c: Update.
5960 * bsd-uthread.c: Update.
5961 * corelow.c: Update.
5962 * ctf.c: Update.
5963 * darwin-nat.c: Update.
5964 * fbsd-nat.c: Update.
5965 * fbsd-tdep.c: Update.
5966 * gcore.c: Update.
5967 * gnu-nat.c: Update.
5968 * hppa-nbsd-nat.c: Update.
5969 * hppa-obsd-nat.c: Update.
5970 * i386-fbsd-nat.c: Update.
5971 * ia64-linux-nat.c: Update.
5972 * inf-ptrace.c: Update.
5973 * infcmd.c: Update.
5974 * inferior.c: Update.
5975 * inferior.h: Update.
5976 * inflow.c: Update.
5977 * infrun.c: Update.
5978 * linux-fork.c: Update.
5979 * linux-nat.c: Update.
5980 * linux-tdep.c: Update.
5981 * linux-thread-db.c: Update.
5982 * m68k-bsd-nat.c: Update.
5983 * mi/mi-interp.c: Update.
5984 * mi/mi-main.c: Update.
5985 * mips-linux-nat.c: Update.
5986 * mips-nbsd-nat.c: Update.
5987 * mips64-obsd-nat.c: Update.
5988 * nat/aarch64-linux-hw-point.c: Update.
5989 * nat/aarch64-linux.c: Update.
5990 * nat/linux-btrace.c: Update.
5991 * nat/linux-osdata.c: Update.
5992 * nat/linux-procfs.c: Update.
5993 * nat/x86-linux-dregs.c: Update.
5994 * nto-procfs.c: Update.
5995 * obsd-nat.c: Update.
5996 * ppc-linux-nat.c: Update.
5997 * ppc-nbsd-nat.c: Update.
5998 * ppc-obsd-nat.c: Update.
5999 * proc-service.c: Update.
6000 * procfs.c: Update.
6001 * python/py-inferior.c: Update.
6002 * python/py-infthread.c: Update.
6003 * ravenscar-thread.c: Update.
6004 * record.c: Update.
6005 * remote-sim.c: Update.
6006 * remote.c: Update.
6007 * rs6000-nat.c: Update.
6008 * s390-linux-nat.c: Update.
6009 * sh-nbsd-nat.c: Update.
6010 * sol-thread.c: Update.
6011 * sparc-nat.c: Update.
6012 * sparc64-tdep.c: Update.
6013 * spu-linux-nat.c: Update.
6014 * spu-tdep.c: Update.
6015 * target-debug.h: Update.
6016 * target.c: Update.
6017 * thread.c: Update.
6018 * tid-parse.c: Update.
6019 * tracefile-tfile.c: Update.
6020 * vax-bsd-nat.c: Update.
6021 * windows-nat.c: Update.
6022 * x86-linux-nat.c: Update.
6023 * x86-nat.c: Update.
6024
6025 2018-07-03 Tom Tromey <tom@tromey.com>
6026
6027 * common/ptid.c (pid_to_ptid): Remove.
6028 * common/ptid.h (pid_to_ptid): Don't declare.
6029 * aix-thread.c: Update.
6030 * arm-linux-nat.c: Update.
6031 * common/ptid.c: Update.
6032 * common/ptid.h: Update.
6033 * corelow.c: Update.
6034 * ctf.c: Update.
6035 * darwin-nat.c: Update.
6036 * fbsd-nat.c: Update.
6037 * fork-child.c: Update.
6038 * gnu-nat.c: Update.
6039 * go32-nat.c: Update.
6040 * inf-ptrace.c: Update.
6041 * infcmd.c: Update.
6042 * inferior.c: Update.
6043 * infrun.c: Update.
6044 * linux-fork.c: Update.
6045 * linux-nat.c: Update.
6046 * nat/aarch64-linux-hw-point.c: Update.
6047 * nat/fork-inferior.c: Update.
6048 * nat/x86-linux-dregs.c: Update.
6049 * nto-procfs.c: Update.
6050 * obsd-nat.c: Update.
6051 * procfs.c: Update.
6052 * progspace.c: Update.
6053 * remote.c: Update.
6054 * rs6000-nat.c: Update.
6055 * s390-linux-nat.c: Update.
6056 * sol-thread.c: Update.
6057 * spu-linux-nat.c: Update.
6058 * target.c: Update.
6059 * top.c: Update.
6060 * tracefile-tfile.c: Update.
6061 * windows-nat.c: Update.
6062
6063 2018-07-03 Tom Tromey <tom@tromey.com>
6064
6065 * common/ptid.h (ptid_build): Don't declare.
6066 * common/ptid.c (ptid_build): Remove.
6067 * aix-thread.c: Update.
6068 * bsd-kvm.c: Update.
6069 * bsd-uthread.c: Update.
6070 * common/agent.c: Update.
6071 * common/ptid.c: Update.
6072 * common/ptid.h: Update.
6073 * corelow.c: Update.
6074 * darwin-nat.c: Update.
6075 * fbsd-nat.c: Update.
6076 * gnu-nat.c: Update.
6077 * linux-fork.c: Update.
6078 * linux-nat.c: Update.
6079 * linux-thread-db.c: Update.
6080 * nat/linux-osdata.c: Update.
6081 * nat/linux-procfs.c: Update.
6082 * nto-procfs.c: Update.
6083 * obsd-nat.c: Update.
6084 * proc-service.c: Update.
6085 * procfs.c: Update.
6086 * ravenscar-thread.c: Update.
6087 * remote-sim.c: Update.
6088 * remote.c: Update.
6089 * sol-thread.c: Update.
6090 * target.c: Update.
6091 * windows-nat.c: Update.
6092
6093 2018-07-03 Tom Tromey <tom@tromey.com>
6094
6095 * infrun.c (follow_exec): Use exit_inferior_silent.
6096 * inferior.c (exit_inferior_num_silent): Remove.
6097 * inferior.h (exit_inferior_num_silent): Don't declare.
6098
6099 2018-07-03 Tom Tromey <tom@tromey.com>
6100
6101 PR cli/23340:
6102 * darwin-nat.c (darwin_attach_pid): Reset inferior and
6103 inferior_ptid on error.
6104
6105 2018-07-02 Maciej W. Rozycki <macro@mips.com>
6106 Simon Marchi <simon.marchi@polymtl.ca>
6107
6108 PR tdep/8282
6109 * disasm.h (gdb_disassembler): Add
6110 `m_disassembler_options_holder'. member
6111 * disasm.c (get_all_disassembler_options): New function.
6112 (gdb_disassembler::gdb_disassembler): Use it.
6113 (gdb_buffered_insn_length_init_dis): Likewise.
6114 (gdb_buffered_insn_length): Adjust accordingly.
6115 (set_disassembler_options): Handle options with arguments.
6116 (show_disassembler_options_sfunc): Likewise. Add a leading new
6117 line if showing options with descriptions.
6118 (disassembler_options_completer): Adapt to using the
6119 `disasm_options_and_args_t' structure.
6120 * mips-tdep.c (mips_disassembler_options): New variable.
6121 (mips_disassembler_options_o32): Likewise.
6122 (mips_disassembler_options_n32): Likewise.
6123 (mips_disassembler_options_n64): Likewise.
6124 (gdb_print_insn_mips): Don't set `disassembler_options'.
6125 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
6126 functions.
6127 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
6128 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
6129 `gdbarch_disassembler_options_implicit' and
6130 `gdbarch_valid_disassembler_options'.
6131 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
6132 `disasm_options_and_args_t' structure.
6133 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
6134 method.
6135 (valid_disassembler_options): Switch from `disasm_options_t' to
6136 the `disasm_options_and_args_t' structure.
6137 * NEWS: Document `set disassembler-options' support for the MIPS
6138 target.
6139 * gdbarch.h: Regenerate.
6140 * gdbarch.c: Regenerate.
6141
6142 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6143
6144 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
6145
6146 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6147
6148 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
6149 parameter in call to amd64_target_description.
6150 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6151 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
6152 (amd64fbsd_init_abi): Likewise.
6153 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6154 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6155 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6156 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
6157
6158 2018-06-29 Pedro Alves <palves@redhat.com>
6159
6160 * gdb/amd64-tdep.h (amd64_create_target_description): Add
6161 "segments" parameter.
6162 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
6163 (_initialize_amd64_tdep): Update call to
6164 amd64_create_target_description.
6165 (amd64_target_description): Add "segments" parameter. Adjust
6166 the implementation to use it.
6167 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
6168 call to amd64_create_target_description.
6169 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
6170 * gdb/arch/amd64.h (amd64_create_target_description): Add
6171 "segments" register.
6172 * gdb/arch/amd64.c (amd64_create_target_description): Add
6173 "segments" parameter. Call create_feature_i386_64bit_segments
6174 only if SEGMENTS is true.
6175 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
6176 call to amd64_create_target_description.
6177
6178 2018-06-29 Pedro Alves <palves@redhat.com>
6179
6180 * thread.c (thread_target_id_str): New, factored out from ...
6181 (print_thread_info_1): ... here. Use it to compute the max
6182 "Target Id" column width.
6183
6184 2018-06-29 Pedro Alves <palves@redhat.com>
6185
6186 * remote.c (remote_target::extra_thread_info): Delete
6187 'display_buf' and 'n' locals. from the cache, regardless of
6188 packet mechanims is in use. Use cache for qThreadExtra and qP
6189 methods too.
6190
6191 2018-06-29 Pedro Alves <palves@redhat.com>
6192
6193 * blockframe.c (find_pc_sect_containing_function): New function.
6194 * breakpoint.c (print_breakpoint_location): Don't call
6195 find_pc_sect_function.
6196 * linespec.c (create_sals_line_offset): Record the location's
6197 symbol in the sal.
6198 * linespec.c (convert_address_location_to_sals): Fill in sal's
6199 symbol with find_pc_sect_containing_function.
6200 * symtab.c (find_function_start_sal): Rename to ...
6201 (find_function_start_sal_1): ... this.
6202 (find_function_start_sal): Reimplement as wrapper around
6203 find_function_start_sal_1, and use
6204 find_pc_sect_containing_function to fill in the sal's symbol.
6205 (find_function_start_sal(symbol*, bool)): Adjust.
6206 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6207 comments.
6208 (find_pc_sect_containing_function): Declare.
6209
6210 2018-06-29 Pedro Alves <palves@redhat.com>
6211
6212 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6213 true if the the location has no symbol.
6214
6215 2018-06-28 Tom Tromey <tom@tromey.com>
6216
6217 * NEWS: Mention --enable-codesign.
6218 * silent-rules.mk (ECHO_SIGN): New variable.
6219 * configure.ac: Add --enable-codesign.
6220 * configure: Rebuild.
6221 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6222 (gdb$(EXEEXT)): Optionally invoke codesign.
6223
6224 2018-06-28 Pedro Alves <palves@redhat.com>
6225
6226 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6227 comments.
6228 (switch_to_thread_no_regs): Adjust comment.
6229 * infcmd.c (stop_pc): Delete.
6230 (post_create_inferior, info_program_command): Replace references
6231 to stop_pc with references to thread_info->suspend.stop_pc.
6232 * inferior.h (stop_pc): Delete declaration.
6233 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6234 (handle_inferior_event_1, handle_signal_stop)
6235 (process_event_stop_test, keep_going_stepped_thread)
6236 (handle_step_into_function, handle_step_into_function_backward)
6237 (print_stop_location): Replace references to stop_pc with
6238 references to thread_info->suspend.stop_pc.
6239 (struct infcall_suspend_state) <stop_pc>: Delete field.
6240 (save_infcall_suspend_state, restore_infcall_suspend_state):
6241 Remove references to inf_stat->stop_pc.
6242 * linux-fork.c (fork_load_infrun_state): Likewise.
6243 * record-btrace.c (record_btrace_set_replay): Likewise.
6244 * record-full.c (record_full_goto_entry): Likewise.
6245 * remote.c (print_one_stopped_thread): Likewise.
6246 * target.c (target_resume): Extend comment.
6247 * thread.c (set_executing_thread): New.
6248 (set_executing): Use it.
6249 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
6250 Remove references to stop_pc.
6251
6252 2018-06-28 Pedro Alves <palves@redhat.com>
6253
6254 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
6255 Moving fetching stop_pc until after ecs->event_thread is refreshed.
6256
6257 2018-06-28 Tom Tromey <tom@tromey.com>
6258
6259 * coffread.c (coff_symfile_finish): Update.
6260 * xcoffread.c (xcoff_symfile_finish): Update.
6261 * elfread.c (elf_symfile_finish): Update.
6262 * symfile.h (dwarf2_free_objfile): Don't declare.
6263 * dwarf2read.c (_initialize_dwarf2_read): Use
6264 register_objfile_data_with_cleanup.
6265 (dwarf2_free_objfile): Now static. Change signature.
6266
6267 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6268
6269 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
6270 option "-o" to add-symbol-file-load to add an offset to each
6271 section's load address.
6272 * symfile.c (set_objfile_default_section_offset): New function.
6273
6274 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6275
6276 * symfile.c (add_symbol_file_command): Make sure that sections
6277 with the same name are sorted in the same order.
6278
6279 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6280
6281 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
6282 require the second argument. If omitted, load sections at the
6283 addresses specified in the file.
6284
6285 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6286
6287 * symfile.c (symbol_file_command, symbol_file_add_main_1)
6288 (_initialize_symfile): Add option "-o" to symbol-file to add an
6289 offset to each section of the symbol file.
6290
6291 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6292
6293 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
6294
6295 2018-06-27 Tom Tromey <tom@tromey.com>
6296
6297 * stack.c (_initialize_stack): Update "func" help text.
6298
6299 2018-06-27 Tom Tromey <tom@tromey.com>
6300
6301 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
6302 std::vector.
6303 (unwind_infopy_str, pyuw_create_unwind_info)
6304 (unwind_infopy_add_saved_register, pyuw_sniffer)
6305 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
6306 Update.
6307 (struct saved_reg): Add constructor.
6308 <value>: Now a gdbpy_ref<>.
6309
6310 2018-06-27 Tom Tromey <tom@tromey.com>
6311
6312 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
6313
6314 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6315
6316 * gdb-gdb.py.in: Format using autopep8.
6317
6318 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6319
6320 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
6321 (type_lookup_function): Recognize CORE_ADDR values.
6322
6323 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6324
6325 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
6326 print tag_name.
6327
6328 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6329
6330 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
6331 <__lt__>: Add.
6332
6333 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6334
6335 * gdb-gdb.py: Move to...
6336 * gdb-gdb.py.in: ... here.
6337 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
6338 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
6339 dependencies.
6340 (distclean): Remove gdb-gdb.py when cleaning.
6341 (gdb-gdb.py, gdb-gdb.gdb): New rules.
6342 * configure: Re-generate.
6343
6344 2018-06-27 Pedro Alves <palves@redhat.com>
6345
6346 * proc-service.c (get_ps_regcache): New.
6347 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6348 (ps_lsetfpregs): Use it.
6349
6350 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
6351
6352 PR gdb/21695
6353 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
6354 (dwarf_decode_lines_1): Adjust.
6355
6356 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6357
6358 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6359 override.
6360 <info_proc>: Likewise.
6361
6362 2018-06-26 Joel Brobecker <brobecker@adacore.com>
6363
6364 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6365 to windows_fetch_one_register, and only handle the case of
6366 fetching one register. Move the code that reloads the context
6367 and iterates over all registers if R is negative to...
6368 (windows_nat_target::fetch_registers): ... here.
6369 (do_windows_store_inferior_registers): Rename to
6370 windows_store_one_register, and only handle the case of storing
6371 one register. Move the code that handles the case where r is
6372 negative to...
6373 (windows_nat_target::store_registers) ... here.
6374
6375 2018-06-26 Tom Tromey <tom@tromey.com>
6376
6377 PR rust/22574:
6378 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6379 * rust-lang.c (rust_print_struct_def): Add podata parameter.
6380 Update.
6381 (rust_internal_print_type): Add podata parameter.
6382 (rust_print_type): Update.
6383
6384 2018-06-26 Tom Tromey <tom@tromey.com>
6385
6386 * typeprint.h (struct print_offset_data) <update, finish,
6387 maybe_print_hole>: New methods.
6388 <indentation>: New constant.
6389 * typeprint.c (print_offset_data::indentation): Define.
6390 (print_offset_data::maybe_print_hole, print_offset_data::update)
6391 (print_offset_data::finish): Move from c-typeprint.c and rename.
6392 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6393 (print_spaces_filtered_with_print_options): Update.
6394 (c_print_type_union_field_offset, maybe_print_hole)
6395 (c_print_type_struct_field_offset): Move to typeprint.c and
6396 rename.
6397 (c_type_print_base_struct_union): Update.
6398
6399 2018-06-25 Pedro Alves <palves@redhat.com>
6400
6401 * gdbthread.h (thread_info_ref, delete_thread)
6402 (delete_thread_silent, first_thread_of_inferior)
6403 (any_thread_of_inferior, switch_to_thread)
6404 (enable_thread_stack_temporaries)
6405 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6406 (get_last_thread_stack_temporary)
6407 (value_in_thread_stack_temporaries, can_access_registers_thread):
6408 Spell out "struct thread_info" instead of just "thread_info".
6409 * inferior.h (notice_new_inferior): Likewise.
6410
6411 2018-06-25 Pedro Alves <palves@redhat.com>
6412
6413 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6414 pass thread_info pointer to delete_thread.
6415 (windows_nat_target::detach): Pass inferior pointer to
6416 detach_inferior.
6417 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6418 delete_thread.
6419 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6420 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6421 and pass a thread_info pointer to delete_thread.
6422 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6423 pass thread_info pointer to delete_thread.
6424 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6425 delete_thread_silent call.
6426 * procfs.c (procfs_target::detach): Pass inferior pointer to
6427 detach_inferior.
6428 (procfs_target::wait): Pass thread_info pointer to delete_thread.
6429 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6430 delete_thread_silent call.
6431 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6432 pass thread_info pointer to delete_thread.
6433 (windows_nat_target::detach): Pass inferior pointer to
6434 delete_inferior.
6435
6436 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6437
6438 * regcache.c (readable_regcache::read_part): Fix asserts.
6439 (reg_buffer::raw_collect_part): New function.
6440 (regcache::write_part): Fix asserts.
6441 (reg_buffer::raw_supply_part): New function.
6442 (regcache::transfer_regset_register): New helper function.
6443 (regcache::transfer_regset): Call new functions.
6444 (regcache_supply_regset): Use gdb_byte*.
6445 (regcache::supply_regset): Likewise.
6446 (regcache_collect_regset): Likewise.
6447 (regcache::collect_regset): Likewise.
6448 * regcache.h (reg_buffer::raw_collect_part): New declaration.
6449 (reg_buffer::raw_supply_part): Likewise.
6450 (regcache::transfer_regset_register): Likewise.
6451 (regcache::transfer_regset): Use gdb_byte*.
6452
6453 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6454
6455 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6456
6457 2018-06-21 Pedro Alves <palves@redhat.com>
6458
6459 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6460 instead of a ptid_t. All callers adjusted.
6461 * ada-tasks.c (ada_get_task_number): Likewise. All callers
6462 adjusted.
6463 (print_ada_task_info, display_current_task_id, task_command_1):
6464 Adjust.
6465 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
6466 inferior_thread.
6467 (breakpoint_kind): Adjust.
6468 (remove_breakpoints_pid): Rename to ...
6469 (remove_breakpoints_inf): ... this. Adjust to take an inferior
6470 pointer. All callers adjusted.
6471 (bpstat_clear_actions): Use inferior_thread.
6472 (get_bpstat_thread): New.
6473 (bpstat_do_actions): Use it.
6474 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
6475 to take a thread_info pointer. All callers adjusted.
6476 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
6477 (breakpoint_re_set_thread): Use inferior_thread.
6478 * breakpoint.h (struct inferior): Forward declare.
6479 (bpstat_stop_status): Update.
6480 (remove_breakpoints_pid): Delete.
6481 (remove_breakpoints_inf): New.
6482 * bsd-uthread.c (bsd_uthread_target::wait)
6483 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
6484 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
6485 (maint_btrace_packet_history_cmd)
6486 (maint_btrace_clear_packet_history_cmd): Adjust.
6487 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
6488 inferior_thread.
6489 * cli/cli-interp.c: Include "inferior.h".
6490 * common/refcounted-object.h (struct
6491 refcounted_object_ref_policy): New.
6492 * compile/compile-object-load.c: Include gdbthread.h.
6493 (store_regs): Use inferior_thread.
6494 * corelow.c (core_target::close): Use current_inferior.
6495 (core_target_open): Adjust to use first_thread_of_inferior and use
6496 the current inferior.
6497 * ctf.c (ctf_target::close): Adjust to use current_inferior.
6498 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
6499 <thread>: ... this new field. All references adjusted.
6500 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
6501 Take a thread_info pointer instead of a ptid_t.
6502 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
6503 (dummy_frame_discard, register_dummy_frame_dtor): Take a
6504 thread_info pointer instead of a ptid_t.
6505 * elfread.c: Include "inferior.h".
6506 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
6507 Use inferior_thread.
6508 * eval.c (evaluate_subexp): Likewise.
6509 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
6510 inferior_thread.
6511 * gdb_proc_service.h (struct thread_info): Forward declare.
6512 (struct ps_prochandle) <ptid>: Delete, replaced by ...
6513 <thread>: ... this new field. All references adjusted.
6514 * gdbarch.h, gdbarch.c: Regenerate.
6515 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
6516 'thread' parameter. All implementations and callers adjusted.
6517 * gdbthread.h (thread_info) <set_running>: New method.
6518 (delete_thread, delete_thread_silent): Take a thread_info pointer
6519 instead of a ptid.
6520 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
6521 (first_thread_of_process): Delete, replaced by ...
6522 (first_thread_of_inferior): ... this new function. All callers
6523 adjusted.
6524 (any_live_thread_of_process): Delete, replaced by ...
6525 (any_live_thread_of_inferior): ... this new function. All callers
6526 adjusted.
6527 (switch_to_thread, switch_to_no_thread): Declare.
6528 (is_executing): Delete.
6529 (enable_thread_stack_temporaries): Update comment.
6530 <enable_thread_stack_temporaries>: Take a thread_info pointer
6531 instead of a ptid_t. Incref the thread.
6532 <~enable_thread_stack_temporaries>: Decref the thread.
6533 <m_ptid>: Delete
6534 <m_thr>: New.
6535 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6536 (get_last_thread_stack_temporary)
6537 (value_in_thread_stack_temporaries, can_access_registers_thread):
6538 Take a thread_info pointer instead of a ptid_t. All callers
6539 adjusted.
6540 * infcall.c (get_call_return_value): Use inferior_thread.
6541 (run_inferior_call): Work with thread pointers instead of ptid_t.
6542 (call_function_by_hand_dummy): Work with thread pointers instead
6543 of ptid_t. Use thread_info_ref.
6544 * infcmd.c (proceed_thread_callback): Access thread's state
6545 directly.
6546 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
6547 access thread's state directly.
6548 (continue_command): Use inferior_thread.
6549 (info_program_command): Use find_thread_ptid and access thread
6550 state directly.
6551 (proceed_after_attach_callback): Use thread state directly.
6552 (notice_new_inferior): Take a thread_info pointer instead of a
6553 ptid_t. All callers adjusted.
6554 (exit_inferior): Take an inferior pointer instead of a pid. All
6555 callers adjusted.
6556 (exit_inferior_silent): New.
6557 (detach_inferior): Delete.
6558 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
6559 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
6560 (detach_inferior_command, kill_inferior_command): Use
6561 find_inferior_id instead of valid_gdb_inferior_id and
6562 gdb_inferior_id_to_pid.
6563 (inferior_command): Use inferior and thread pointers.
6564 * inferior.h (struct thread_info): Forward declare.
6565 (notice_new_inferior): Take a thread_info pointer instead of a
6566 ptid_t. All callers adjusted.
6567 (detach_inferior): Delete declaration.
6568 (exit_inferior, exit_inferior_silent): Take an inferior pointer
6569 instead of a pid. All callers adjusted.
6570 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
6571 (valid_gdb_inferior_id): Delete.
6572 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
6573 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
6574 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
6575 ...
6576 <inf>: ... this new field.
6577 <step_ptid>: Delete, replaced by ...
6578 <step_thread>: ... this new field.
6579 (get_displaced_stepping_state): Take an inferior pointer instead
6580 of a pid. All callers adjusted.
6581 (displaced_step_in_progress_any_inferior): Adjust.
6582 (displaced_step_in_progress_thread): Take a thread pointer instead
6583 of a ptid_t. All callers adjusted.
6584 (displaced_step_in_progress, add_displaced_stepping_state): Take
6585 an inferior pointer instead of a pid. All callers adjusted.
6586 (get_displaced_step_closure_by_addr): Adjust.
6587 (remove_displaced_stepping_state): Take an inferior pointer
6588 instead of a pid. All callers adjusted.
6589 (displaced_step_prepare_throw, displaced_step_prepare)
6590 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
6591 All callers adjusted.
6592 (start_step_over): Adjust.
6593 (infrun_thread_ptid_changed): Remove bit updating ptids in the
6594 displaced step queue.
6595 (do_target_resume): Adjust.
6596 (fetch_inferior_event): Use inferior_thread.
6597 (context_switch, get_inferior_stop_soon): Take an
6598 execution_control_state pointer instead of a ptid_t. All callers
6599 adjusted.
6600 (switch_to_thread_cleanup): Delete.
6601 (stop_all_threads): Use scoped_restore_current_thread.
6602 * inline-frame.c: Include "gdbthread.h".
6603 (inline_state) <inline_state>: Take a thread pointer instead of a
6604 ptid_t. All callers adjusted.
6605 <ptid>: Delete, replaced by ...
6606 <thread>: ... this new field.
6607 (find_inline_frame_state): Take a thread pointer instead of a
6608 ptid_t. All callers adjusted.
6609 (skip_inline_frames, step_into_inline_frame)
6610 (inline_skipped_frames, inline_skipped_symbol): Take a thread
6611 pointer instead of a ptid_t. All callers adjusted.
6612 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
6613 (inline_skipped_frames, inline_skipped_symbol): Likewise.
6614 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
6615 pointers directly.
6616 * linux-nat.c (get_detach_signal): Likewise.
6617 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
6618 (thread_db_notice_clone): Adjust.
6619 (thread_db_find_new_threads_silently)
6620 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
6621 a thread pointer instead of a ptid_t. All callers adjusted.
6622 * mi/mi-cmd-var.c: Include "inferior.h".
6623 (mi_cmd_var_update_iter): Update to use thread pointers.
6624 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
6625 inferior directly.
6626 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
6627 out to ...
6628 (mi_output_running): ... this new function.
6629 (mi_on_resume_1): Adjust to use it.
6630 (mi_user_selected_context_changed): Adjust to use inferior_thread.
6631 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
6632 directly.
6633 (interrupt_thread_callback): : Adjust to use thread and inferior
6634 pointers.
6635 * proc-service.c: Include "gdbthread.h".
6636 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
6637 * progspace-and-thread.c: Include "inferior.h".
6638 * progspace.c: Include "inferior.h".
6639 * python/py-exitedevent.c (create_exited_event_object): Adjust to
6640 hold a reference to an inferior_object.
6641 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
6642 inferior_thread.
6643 * python/py-inferior.c (struct inferior_object): Give the type a
6644 tag name instead of a typedef.
6645 (python_on_normal_stop): No need to check if the current thread is
6646 listed.
6647 (inferior_to_inferior_object): Change return type to
6648 inferior_object. All callers adjusted.
6649 (find_thread_object): Delete, bits factored out to ...
6650 (thread_to_thread_object): ... this new function.
6651 * python/py-infthread.c (create_thread_object): Use
6652 inferior_to_inferior_object.
6653 (thpy_is_stopped): Use thread pointer directly.
6654 (gdbpy_selected_thread): Use inferior_thread.
6655 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
6656 field, replaced with ...
6657 <thread>: ... this new field. All users adjusted.
6658 (btpy_insn_or_gap_new): Drop const.
6659 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
6660 callers adjusted.
6661 * python/py-record.c: Include "gdbthread.h".
6662 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6663 a ptid_t. All callers adjusted.
6664 (gdbpy_current_recording): Use inferior_thread.
6665 * python/py-record.h (recpy_record_object) <ptid>: Delete
6666 field, replaced with ...
6667 <thread>: ... this new field. All users adjusted.
6668 (recpy_element_object) <ptid>: Delete
6669 field, replaced with ...
6670 <thread>: ... this new field. All users adjusted.
6671 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6672 a ptid_t. All callers adjusted.
6673 * python/py-threadevent.c: Include "gdbthread.h".
6674 (get_event_thread): Use thread_to_thread_object.
6675 * python/python-internal.h (struct inferior_object): Forward
6676 declare.
6677 (find_thread_object, find_inferior_object): Delete declarations.
6678 (thread_to_thread_object, inferior_to_inferior_object): New
6679 declarations.
6680 * record-btrace.c: Include "inferior.h".
6681 (require_btrace_thread): Use inferior_thread.
6682 (record_btrace_frame_sniffer)
6683 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
6684 (get_thread_current_frame): Use scoped_restore_current_thread and
6685 switch_to_thread.
6686 (get_thread_current_frame): Use thread pointer directly.
6687 (record_btrace_replay_at_breakpoint): Use thread's inferior
6688 pointer directly.
6689 * record-full.c: Include "inferior.h".
6690 * regcache.c: Include "gdbthread.h".
6691 (get_thread_arch_regcache): Use the inferior's address space
6692 directly.
6693 (get_thread_regcache, registers_changed_thread): New.
6694 * regcache.h (get_thread_regcache(thread_info *thread)): New
6695 overload.
6696 (registers_changed_thread): New.
6697 (remote_target) <remote_detach_1>: Swap order of parameters.
6698 (remote_add_thread): <remote_add_thread>: Return the new thread.
6699 (get_remote_thread_info(ptid_t)): New overload.
6700 (remote_target::remote_notice_new_inferior): Use thread pointers
6701 directly.
6702 (remote_target::process_initial_stop_replies): Use
6703 thread_info::set_running.
6704 (remote_target::remote_detach_1, remote_target::detach)
6705 (extended_remote_target::detach): Adjust.
6706 * stack.c (frame_show_address): Use inferior_thread.
6707 * target-debug.h (target_debug_print_thread_info_pp): New.
6708 * target-delegates.c: Regenerate.
6709 * target.c (default_thread_address_space): Delete.
6710 (memory_xfer_partial_1): Use current_inferior.
6711 (target_detach): Use current_inferior.
6712 (target_thread_address_space): Delete.
6713 (generic_mourn_inferior): Use current_inferior.
6714 * target.h (struct target_ops) <thread_address_space>: Delete.
6715 (target_thread_address_space): Delete.
6716 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
6717 pointers directly.
6718 (delete_thread_1, delete_thread, delete_thread_silent): Take a
6719 thread pointer instead of a ptid_t. Adjust all callers.
6720 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
6721 (first_thread_of_process): Delete, replaced by ...
6722 (first_thread_of_inferior): ... this new function. All callers
6723 adjusted.
6724 (any_thread_of_process): Rename to ...
6725 (any_thread_of_inferior): ... this, and take an inferior pointer.
6726 (any_live_thread_of_process): Rename to ...
6727 (any_live_thread_of_inferior): ... this, and take an inferior
6728 pointer.
6729 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6730 (value_in_thread_stack_temporaries)
6731 (get_last_thread_stack_temporary): Take a thread pointer instead
6732 of a ptid_t. Adjust all callers.
6733 (thread_info::set_running): New.
6734 (validate_registers_access): Use inferior_thread.
6735 (can_access_registers_ptid): Rename to ...
6736 (can_access_registers_thread): ... this, and take a thread
6737 pointer.
6738 (print_thread_info_1): Adjust to compare thread pointers instead
6739 of ptids.
6740 (switch_to_no_thread, switch_to_thread): Make extern.
6741 (scoped_restore_current_thread::~scoped_restore_current_thread):
6742 Use m_thread pointer directly.
6743 (scoped_restore_current_thread::scoped_restore_current_thread):
6744 Use inferior_thread.
6745 (thread_command): Use thread pointer directly.
6746 (thread_num_make_value_helper): Use inferior_thread.
6747 * top.c (execute_command): Use inferior_thread.
6748 * tui/tui-interp.c: Include "inferior.h".
6749 * varobj.c (varobj_create): Use inferior_thread.
6750 (value_of_root_1): Use find_thread_global_id instead of
6751 global_thread_id_to_ptid.
6752
6753 2018-06-21 Alan Hayward <alan.hayward@arm.com>
6754
6755 * regcache.c (readable_regcache::read_part): Avoid memcpy when
6756 possible.
6757 (regcache::write_part): Likewise.
6758 (readable_regcache::cooked_read_part): Update comment.
6759 (readable_regcache::cooked_write_part): Likewise.
6760 * regcache.h: (readable_regcache::read_part): Likewise.
6761 (regcache::write_part): Likewise.
6762
6763 2018-06-21 Richard Bunt <richard.bunt@arm.com>
6764 Dirk Schubert <dirk.schubert@arm.com>
6765
6766 * aarch64-linux-nat.c (post_attach): New.
6767 (aarch64_linux_nat_target::post_attach): Override post_attach to
6768 record the number of hardware debug registers.
6769
6770 2018-06-20 Tom Tromey <tom@tromey.com>
6771
6772 * python/py-param.c (add_setshow_generic): Make parameters const.
6773 (parmpy_init): Update.
6774
6775 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6776
6777 * regcache.h (regcache_cooked_read_ftype): Rename to...
6778 (register_read_ftype): ...this, change type to function_view.
6779 (class reg_buffer) <save>: Remove src parameter.
6780 (readonly_detached_regcache) <readonly_detached_regcache>: Make
6781 parameter non-const in first overload. Remove src parameter in
6782 second overload.
6783 * regcache.c (do_cooked_read): Remove.
6784 (readonly_detached_regcache::readonly_detached_regcache): Make
6785 parameter non-const, adjust call to other constructor.
6786 (reg_buffer::save): Remove src parameter.
6787 * frame.c (do_frame_register_read): Remove.
6788 (frame_save_as_regcache): Use lambda function.
6789 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
6790 parameter to ppu2spu_data *.
6791 (ppu2spu_sniffer): Use lambda function.
6792
6793 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6794
6795 * record-full.c (record_full_target::insert_breakpoint): Remove
6796 "struct" keyword, add const.
6797
6798 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6799
6800 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
6801 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
6802 * configure.ac: Remove AC_PREREQ, add missing quoting.
6803 * gnulib/configure.ac: Modernize usage of
6804 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
6805 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
6806 (AUTOMAKE_VERSION): Bump to 1.15.1.
6807 * configure: Re-generate.
6808 * config.in: Re-generate.
6809 * aclocal.m4: Re-generate.
6810 * gnulib/aclocal.m4: Re-generate.
6811 * gnulib/config.in: Re-generate.
6812 * gnulib/configure: Re-generate.
6813 * gnulib/import/Makefile.in: Re-generate.
6814
6815 2018-06-19 Pedro Alves <palves@redhat.com>
6816
6817 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
6818 (lookup_minimal_symbol_by_pc_section): ... here with
6819 gdb_assert_not_reached added.
6820
6821 2018-06-19 Pedro Alves <palves@redhat.com>
6822
6823 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6824 parameter with a block parameter. Compare location's block symbol
6825 with the frame's block instead of addresses.
6826 (skip_inline_frames): Pass the current block instead of the
6827 frame's address. Break out as soon as we determine the frame
6828 should not be skipped.
6829
6830 2018-06-18 Tom Tromey <tom@tromey.com>
6831
6832 * solib-aix.c (solib_aix_get_section_offsets): Return
6833 unique_xmalloc_ptr.
6834 (solib_aix_solib_create_inferior_hook): Update.
6835
6836 2018-06-18 Tom Tromey <tom@tromey.com>
6837
6838 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6839
6840 2018-06-18 Tom Tromey <tom@tromey.com>
6841
6842 * solib-frv.c (frv_relocate_main_executable): Use
6843 unique_xmalloc_ptr.
6844 * solib-dsbt.c (dsbt_relocate_main_executable): Use
6845 unique_xmalloc_ptr.
6846
6847 2018-06-18 Tom Tromey <tom@tromey.com>
6848
6849 * objfiles.h (inhibit_section_map_updates): Update.
6850 (resume_section_map_updates, resume_section_map_updates_cleanup):
6851 Remove.
6852 * solib-svr4.c (svr4_handle_solib_event): Update.
6853 * objfiles.c (inhibit_section_map_updates): Return
6854 scoped_restore_tmpl<int>.
6855 (resume_section_map_updates, resume_section_map_updates_cleanup):
6856 Remove.
6857
6858 2018-06-18 Tom Tromey <tom@tromey.com>
6859
6860 * valprint.h (read_string): Update.
6861 * valprint.c (read_string): Change type of "buffer".
6862 (val_print_string): Update.
6863 * python/py-value.c (valpy_string): Update.
6864 * language.h (struct language_defn) <la_get_string>: Change
6865 type of "buffer".
6866 (default_get_string, c_get_string): Update.
6867 * language.c (default_get_string): Change type of "buffer".
6868 * guile/scm-value.c (gdbscm_value_to_string): Update.
6869 * c-lang.c (c_get_string): Change type of "buffer".
6870
6871 2018-06-18 Tom Tromey <tom@tromey.com>
6872
6873 * ser-mingw.c (struct pipe_state_destroyer): New.
6874 (pipe_state_up): New typedef.
6875 (cleanup_pipe_state): Remove.
6876 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6877
6878 2018-06-18 Tom Tromey <tom@tromey.com>
6879
6880 * rust-lang.h (rust_yyerror): Don't declare.
6881 * rust-lang.c (rust_language_defn): Update.
6882 * rust-exp.y (yyerror): Now static.
6883 * parse.c (parse_exp_in_context_1): Update.
6884 * p-lang.h (p_yyerror): Don't declare.
6885 * p-lang.c (p_language_defn): Update.
6886 * p-exp.y (yyerror): Now static.
6887 * opencl-lang.c (opencl_language_defn): Update.
6888 * objc-lang.c (objc_language_defn): Update.
6889 * m2-lang.h (m2_yyerror): Don't declare.
6890 * m2-lang.c (m2_language_defn): Update.
6891 * m2-exp.y (yyerror): Now static.
6892 * language.h (struct language_defn) <la_error>: Remove.
6893 * language.c (unk_lang_error): Remove.
6894 (unknown_language_defn, auto_language_defn): Remove.
6895 * go-lang.h (go_yyerror): Don't declare.
6896 * go-lang.c (go_language_defn): Update.
6897 * go-exp.y (yyerror): Now static.
6898 * f-lang.h (f_yyerror): Don't declare.
6899 * f-lang.c (f_language_defn): Update.
6900 * f-exp.y (yyerror): Now static.
6901 * d-lang.h (d_yyerror): Don't declare.
6902 * d-lang.c (d_language_defn): Update.
6903 * d-exp.y (yyerror): Now static.
6904 * c-lang.h (c_yyerror): Don't declare.
6905 * c-lang.c (c_language_defn, cplus_language_defn)
6906 (asm_language_defn, minimal_language_defn): Update.
6907 * c-exp.y (yyerror): Now static.
6908 * ada-lang.h (ada_yyerror): Don't declare.
6909 * ada-lang.c (ada_language_defn): Update.
6910 * ada-exp.y (yyerror): Now static.
6911
6912 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6913
6914 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6915 (store_sveregs_to_thread): Likewise.
6916 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6917 (aarch64_linux_store_inferior_registers): Likewise.
6918 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6919 function.
6920 (aarch64_sve_regs_copy_to_regcache): Likewise.
6921 (aarch64_sve_regs_copy_from_regcache): Likewise.
6922 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6923 declaration.
6924 (aarch64_sve_regs_copy_to_regcache): Likewise.
6925 (aarch64_sve_regs_copy_from_regcache): Likewise.
6926 (sve_context): Structure from Linux headers.
6927 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6928 (SVE_SIG_ZREG_SIZE): Likewise.
6929 (SVE_SIG_PREG_SIZE): Likewise.
6930 (SVE_SIG_FFR_SIZE): Likewise.
6931 (SVE_SIG_REGS_OFFSET): Likewise.
6932 (SVE_SIG_ZREGS_OFFSET): Likewise.
6933 (SVE_SIG_ZREG_OFFSET): Likewise.
6934 (SVE_SIG_ZREGS_SIZE): Likewise.
6935 (SVE_SIG_PREGS_OFFSET): Likewise.
6936 (SVE_SIG_PREG_OFFSET): Likewise.
6937 (SVE_SIG_PREGS_SIZE): Likewise.
6938 (SVE_SIG_FFR_OFFSET): Likewise.
6939 (SVE_SIG_REGS_SIZE): Likewise.
6940 (SVE_SIG_CONTEXT_SIZE): Likewise.
6941 (SVE_PT_REGS_MASK): Likewise.
6942 (SVE_PT_REGS_FPSIMD): Likewise.
6943 (SVE_PT_REGS_SVE): Likewise.
6944 (SVE_PT_VL_INHERIT): Likewise.
6945 (SVE_PT_VL_ONEXEC): Likewise.
6946 (SVE_PT_REGS_OFFSET): Likewise.
6947 (SVE_PT_FPSIMD_OFFSET): Likewise.
6948 (SVE_PT_FPSIMD_SIZE): Likewise.
6949 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6950 (SVE_PT_SVE_PREG_SIZE): Likewise.
6951 (SVE_PT_SVE_FFR_SIZE): Likewise.
6952 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6953 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6954 (__SVE_SIG_TO_PT): Likewise.
6955 (SVE_PT_SVE_OFFSET): Likewise.
6956 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6957 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6958 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6959 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6960 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6961 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6962 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6963 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6964 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6965 (SVE_PT_SVE_SIZE): Likewise.
6966 (SVE_PT_SIZE): Likewise.
6967 (HAS_SVE_STATE): New define.
6968
6969 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6970
6971 * nat/aarch64-sve-linux-sigcontext.h: New file.
6972 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6973 new files.
6974 (SVE_VQ_MIN): Likewise.
6975 (SVE_VQ_MAX): Likewise.
6976 (SVE_VL_MIN): Likewise.
6977 (SVE_VL_MAX): Likewise.
6978 (SVE_NUM_ZREGS): Likewise.
6979 (SVE_NUM_PREGS): Likewise.
6980 (sve_vl_valid): Likewise.
6981 (struct user_sve_header): Likewise.
6982
6983 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6984 Richard Bunt <Richard.Bunt@arm.com>
6985
6986 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6987 was requested by GDB.
6988
6989 2018-06-15 Tom de Vries <tdevries@suse.de>
6990
6991 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6992
6993 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6994
6995 * gnulib/update-gnulib.sh: Print expected versions of
6996 autoconf/aclocal.
6997
6998 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6999
7000 * arch-utils.c (default_type_align): Use type_length_units.
7001 * gdbtypes.c (type_align): Use type_length_units.
7002
7003 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7004
7005 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7006 of 'define' command.
7007
7008 2018-06-14 Tom de Vries <tdevries@suse.de>
7009
7010 PR cli/22573
7011 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7012 get_no_prettyformat_print_options.
7013
7014 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
7015
7016 * sparc-nat.h: Include target.h.
7017 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7018 <fetch_registers>: Remove this argument in function call.
7019 <store_registers>: Remove this argument in function call, remove
7020 extra semicolon.
7021 <low_forget_process>: Call sparc64_forget_process instead of
7022 sparc_forget_process.
7023
7024 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7025
7026 * procfs.c (_initialize_procfs): Use add_inf_child_target.
7027 (procfs_target::make_corefile_notes): Adjust to new
7028 target_read_alloc return type.
7029
7030 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7031 Stephen Roberts <stephen.roberts@arm.com>
7032
7033 PR gdb/22882
7034 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
7035 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
7036 Move should_notify_stop local into more inner scope.
7037
7038 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7039 Stephen Roberts <stephen.roberts@arm.com>
7040
7041 PR gdb/22882
7042 * infrun.c (resume_1): Add call to mark_async_event_handler.
7043
7044 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 * infrun.c (do_target_wait): Change old version of $pc printed.
7047
7048 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
7049
7050 * dwarf2read.c (read_index_from_section): Rename to...
7051 (read_gdb_index_from_section): ... this, update all callers.
7052 (dwarf2_read_index): Rename to...
7053 (dwarf2_read_gdb_index): ... this, update all callers.
7054
7055 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
7056
7057 * gdb/hppa-linux-nat.c
7058 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
7059 hppa_linux_nat_target::fetch_registers.
7060
7061 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7062
7063 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
7064 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
7065 (AARCH64_DWARF_SVE_FFR): Likewise.
7066 (AARCH64_DWARF_SVE_P0): Likewise.
7067 (AARCH64_DWARF_SVE_Z0): Likewise.
7068
7069 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7070
7071 * common/common-regcache.h (raw_compare): New function.
7072 * regcache.c (regcache::raw_compare): Likewise.
7073 * regcache.h (regcache::raw_compare): New declaration.
7074
7075 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7076
7077 * common/common-regcache.h (reg_buffer_common): New structure.
7078 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
7079 (reg_buffer::raw_supply): Likewise.
7080 (reg_buffer::raw_supply_integer): Likewise.
7081 (reg_buffer::raw_supply_zeroed): Likewise.
7082 (reg_buffer::raw_collect): Likewise.
7083 (reg_buffer::raw_collect_integer): Likewise.
7084 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
7085 (reg_buffer::raw_supply): Likewise.
7086 (reg_buffer::raw_supply_integer): Likewise.
7087 (reg_buffer::raw_supply_zeroed): Likewise.
7088 (reg_buffer::raw_collect): Likewise.
7089 (reg_buffer::raw_collect_integer): Likewise.
7090
7091 2018-06-10 Tom Tromey <tom@tromey.com>
7092
7093 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
7094 (class remote_state) <stop_reply_queue>: Now std::vector.
7095 (remote_state::~remote_state)
7096 (remote_target::stop_reply_queue_length): Update.
7097 (struct queue_iter_param, remove_child_of_pending_fork)
7098 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
7099 (check_pending_event_prevents_wildcard_vcont_callback)
7100 (remove_stop_reply_for_inferior)
7101 (remove_stop_reply_of_remote_state)
7102 (remote_notif_remove_once_on_match)
7103 (stop_reply_match_ptid_and_ws)
7104 (remote_kill_child_of_pending_fork): Remove.
7105 (remote_target::remove_new_fork_children)
7106 (remote_target::check_pending_events_prevent_wildcard_vcont)
7107 (remote_target::discard_pending_stop_replies)
7108 (remote_target::discard_pending_stop_replies_in_queue)
7109 (remote_target::remote_notif_remove_queued_reply)
7110 (remote_target::queued_stop_reply)
7111 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
7112 (remote_target::wait, remote_target::kill_new_fork_children)
7113 (remote_target::async): Update.
7114
7115 2018-06-10 Tom Tromey <tom@tromey.com>
7116
7117 * record-full.c (record_full_arch_list_cleanups): Remove.
7118 (record_full_message): Use try/catch.
7119 (record_full_wait_cleanups): Remove.
7120 (record_full_wait_1): Use try/catch.
7121 (record_full_restore): Likewise.
7122
7123 2018-06-10 Tom Tromey <tom@tromey.com>
7124
7125 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
7126 declare VEC. Add constructor.
7127 <in_target_beneath>: Now bool.
7128 (record_full_breakpoints): Now a std::vector, static.
7129 (record_full_sync_record_breakpoints)
7130 (record_full_init_record_breakpoints)
7131 (record_full_target::insert_breakpoint)
7132 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
7133
7134 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7135
7136 * dwarf2read.c (process_cu_includes): Remove struct keyword.
7137 * serial.c (serial_interface_lookup): Remove struct keyword.
7138
7139 2018-06-10 Tom Tromey <tom@tromey.com>
7140
7141 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
7142 method.
7143 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
7144 a method.
7145 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
7146 method.
7147 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
7148 "beneath" as a method.
7149 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
7150 Use "beneath" as a method.
7151
7152 2018-06-10 Tom Tromey <tom@tromey.com>
7153
7154 * tracefile.c (struct trace_file_writer_deleter): New.
7155 <operator()>: Rename from trace_file_writer_xfree.
7156 (trace_file_writer_up): New typedef.
7157 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7158
7159 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7160
7161 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
7162 <m_registers, m_register_status>: Change type to
7163 std::unique_ptr.
7164 * regcache.c (reg_buffer::reg_buffer): Use new instead of
7165 XCNEWVEC.
7166
7167 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7168
7169 * common/common-regcache.h (enum register_status): Add
7170 underlying type "signed char".
7171 * regcache.h (reg_buffer) <m_register_status>: Change type to
7172 register_status *.
7173 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
7174 register_status instead of signed char.
7175 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
7176 (reg_buffer::get_register_status): Remove cast.
7177 (readable_regcache::raw_read): Remove cast.
7178 (readable_regcache::cooked_read): Remove cast.
7179
7180 2018-06-09 Tom Tromey <tom@tromey.com>
7181
7182 * source.c (reverse_search_command, forward_search_command): Use
7183 scoped_fd.
7184
7185 2018-06-09 Tom Tromey <tom@tromey.com>
7186
7187 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
7188 (serial_ops_list): Now static, std::vector.
7189 (serial_interface_lookup, serial_add_interface): Update.
7190
7191 2018-06-09 Tom Tromey <tom@tromey.com>
7192
7193 * dwarf2read.c (process_cu_includes): Update.
7194 (process_full_comp_unit): Update.
7195 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7196 std::vector.
7197
7198 2018-06-08 Paul Koning <paul_koning@dell.com>
7199
7200 PR gdb/23252
7201
7202 * python/python.c (do_start_initialization):
7203 Avoid call to internal Python API.
7204 (init__gdb_module): New function.
7205
7206 2018-06-08 Gary Benson <gbenson@redhat.com>
7207
7208 * linux-thread-db.c (valprint.h): New include.
7209 (struct check_thread_db_info): New structure.
7210 (check_thread_db_on_load, tdb_testinfo): New static globals.
7211 (check_thread_db, check_thread_db_callback): New functions.
7212 (try_thread_db_load_1): Run integrity checks if requested.
7213 (maintenance_check_libthread_db): New function.
7214 (_initialize_thread_db): Register "maint check libthread-db"
7215 and "maint set/show check-libthread-db".
7216 * NEWS: Mention the above new commands.
7217
7218 2018-06-08 Tom Tromey <tom@tromey.com>
7219
7220 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7221 now a method.
7222
7223 2018-06-08 Tom Tromey <tom@tromey.com>
7224
7225 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7226
7227 2018-06-08 Tom Tromey <tom@tromey.com>
7228
7229 * common/btrace-common.h (struct btrace_data): Add constructor,
7230 destructor, move assignment operator.
7231 <empty, clear, fini>: New methods.
7232 <format>: Initialize.
7233 (btrace_data_init, btrace_data_fini, btrace_data_clear)
7234 (btrace_data_empty): Don't declare.
7235 * common/btrace-common.c (btrace_data_init): Remove.
7236 (btrace_data::fini): Rename from btrace_data_fini.
7237 (btrace_data::empty): Rename from btrace_data_empty.
7238 (btrace_data::clear): Rename from btrace_data_clear. Return
7239 bool.
7240 * btrace.h (make_cleanup_btrace_data): Don't declare.
7241 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7242 (parse_xml_btrace): Update.
7243 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
7244 (maint_btrace_clear_packet_history_cmd): Update.
7245
7246 2018-06-07 Pedro Alves <palves@redhat.com>
7247
7248 * target.h (target_ops) <beneath>: Now a method. All references
7249 updated.
7250 (class target_stack): New.
7251 * target.c (g_target_stack): New.
7252 (g_current_top_target): Delete.
7253 (current_top_target): Get the top target out of g_target_stack.
7254 (target_stack::push, target_stack::unpush): New.
7255 (push_target, unpush_target): Reimplement.
7256 (target_is_pushed): Reimplement in terms of g_target_stack.
7257 (target_ops::beneath, target_stack::find_beneath): New.
7258
7259 2018-06-07 Pedro Alves <palves@redhat.com>
7260
7261 * target.h (find_target_beneath): Delete declaration.
7262 * target.c (find_target_beneath): Delete definition.
7263 * aix-thread.c: All callers of find_target_beneath adjusted to
7264 call target_ops::beneath instead.
7265 * bsd-uthread.c: Likewise.
7266 * linux-thread-db.c: Likewise.
7267 * ravenscar-thread.c: Likewise.
7268 * sol-thread.c: Likewise.
7269 * spu-multiarch.c: Likewise.
7270
7271 2018-06-07 Pedro Alves <palves@redhat.com>
7272
7273 * target.h (target_ops) <beneath>: Now a method. All references
7274 updated.
7275 (target_ops) <m_beneath>: New.
7276 * target.c (target_ops::beneath): New.
7277 * corelow.c: Adjust all references to target_ops::beneath.
7278 * linux-thread-db.c: Likewise.
7279 * make-target-delegates: Likewise.
7280 * record-btrace.c: Likewise.
7281 * record-full.c: Likewise.
7282 * remote.c: Likewise.
7283 * target.c: Likewise.
7284 * target-delegates.c: Regenerate.
7285
7286 2018-06-07 Pedro Alves <palves@redhat.com>
7287
7288 * target.h (target_stack): Delete.
7289 (current_top_target): Declare function.
7290 * target.c (target_stack): Delete.
7291 (g_current_top_target): New.
7292 (current_top_target): New function.
7293 * auxv.c: Use current_top_target instead of target_stack
7294 throughout.
7295 * avr-tdep.c: Likewise.
7296 * breakpoint.c: Likewise.
7297 * corefile.c: Likewise.
7298 * elfread.c: Likewise.
7299 * eval.c: Likewise.
7300 * exceptions.c: Likewise.
7301 * frame.c: Likewise.
7302 * gdbarch-selftests.c: Likewise.
7303 * gnu-v3-abi.c: Likewise.
7304 * ia64-tdep.c: Likewise.
7305 * ia64-vms-tdep.c: Likewise.
7306 * infcall.c: Likewise.
7307 * infcmd.c: Likewise.
7308 * infrun.c: Likewise.
7309 * linespec.c: Likewise.
7310 * linux-tdep.c: Likewise.
7311 * minsyms.c: Likewise.
7312 * ppc-linux-nat.c: Likewise.
7313 * ppc-linux-tdep.c: Likewise.
7314 * procfs.c: Likewise.
7315 * regcache.c: Likewise.
7316 * remote.c: Likewise.
7317 * rs6000-tdep.c: Likewise.
7318 * s390-linux-nat.c: Likewise.
7319 * s390-tdep.c: Likewise.
7320 * solib-aix.c: Likewise.
7321 * solib-darwin.c: Likewise.
7322 * solib-dsbt.c: Likewise.
7323 * solib-spu.c: Likewise.
7324 * solib-svr4.c: Likewise.
7325 * solib-target.c: Likewise.
7326 * sparc-tdep.c: Likewise.
7327 * sparc64-tdep.c: Likewise.
7328 * spu-tdep.c: Likewise.
7329 * symfile.c: Likewise.
7330 * symtab.c: Likewise.
7331 * target-descriptions.c: Likewise.
7332 * target-memory.c: Likewise.
7333 * target.c: Likewise.
7334 * target.h: Likewise.
7335 * tracefile-tfile.c: Likewise.
7336 * tracepoint.c: Likewise.
7337 * valops.c: Likewise.
7338 * valprint.c: Likewise.
7339 * value.c: Likewise.
7340 * windows-tdep.c: Likewise.
7341 * mi/mi-main.c: Likewise.
7342
7343 2018-06-07 Tom Tromey <tom@tromey.com>
7344
7345 * valprint.h (build_address_symbolic): Declare.
7346 * printcmd.c (print_address_symbolic): Update.
7347 (build_address_symbolic): Change "name" and "filename" to
7348 std::string.
7349 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7350 Update.
7351 * defs.h (build_address_symbolic): Remove declaration.
7352
7353 2018-06-07 Alan Hayward <alan.hayward@arm.com>
7354
7355 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7356 (aarch64_vnv_type): Add function.
7357 (aarch64_pseudo_register_name): Add V regs for SVE.
7358 (aarch64_pseudo_register_type): Likewise.
7359 (aarch64_pseudo_register_reggroup_p): Likewise.
7360 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7361 (aarch64_pseudo_read_value): Add V regs for SVE.
7362 (aarch64_pseudo_write_2): Use V0 offset for SVE
7363 (aarch64_pseudo_write): Add V regs for SVE.
7364 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7365
7366 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
7367
7368 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7369 (sve_vl_from_vq): Likewise.
7370
7371 2018-06-05 Tom Tromey <tom@tromey.com>
7372
7373 * cli/cli-cmds.c (show_version): Update.
7374 * top.c (print_gdb_version): Add "interactive" parameter.
7375 Update.
7376 * main.c (captured_main_1): Update.
7377 * top.h (print_gdb_version): Add "interactive" parameter and a
7378 comment.
7379
7380 2018-06-05 David Malcolm <dmalcolm@redhat.com>
7381
7382 * common/enum-flags.h: Add trailing semicolon to example in
7383 comment.
7384
7385 2018-06-05 Tom Tromey <tom@tromey.com>
7386
7387 PR cli/12326:
7388 * NEWS: Add entry about pager.
7389 * utils.c (pagination_disabled_for_command): New global.
7390 (prompt_for_continue): Allow "c" response to prompt.
7391 (reinitialize_more_filter): Clear
7392 pagination_disabled_for_command.
7393 (fputs_maybe_filtered): Check pagination_disabled_for_command.
7394
7395 2018-06-04 Tom Tromey <tom@tromey.com>
7396
7397 * ada-lang.h (ada_lookup_symbol_list): Update.
7398 * ada-lang.c (resolve_subexp): Update.
7399 (symbols_are_identical_enums): Change type of syms. Remove nsyms
7400 parameter.
7401 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7402 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7403 results parameter to std::vector.
7404 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7405 Update.
7406 * ada-exp.y (block_lookup): Update.
7407 (select_possible_type_sym): Change type of syms. Remove nsyms
7408 parameter.
7409 (write_var_or_type, write_name_assoc): Update.
7410
7411 2018-06-04 Joel Brobecker <brobecker@adacore.com>
7412
7413 * windows-nat.c (windows_nat_target::xfer_partial): Return
7414 TARGET_XFER_E_IO if we need to delegate to the target beneath
7415 but BENEATH is NULL.
7416
7417 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
7418
7419 * Makefile.in (config.status): Add configure.nat as a
7420 dependency.
7421
7422 2018-06-04 Tom Tromey <tom@tromey.com>
7423
7424 * cp-name-parser.y (cpname_state): Add method declarations.
7425 (HANDLE_QUAL): Update.
7426 (cpname_state::d_grab, cpname_state::fill_comp)
7427 (cpname_state::make_operator, cpname_state::make_dtor)
7428 (cpname_state::make_builtin_type, cpname_state::make_name)
7429 (cpname_state::d_qualify, cpname_state::d_int_type)
7430 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7431 (%union): Move earlier.
7432
7433 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7434
7435 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7436
7437 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7438
7439 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7440 (aarch64_pseudo_write_1): Likewise.
7441 (aarch64_pseudo_read_value): Use helper.
7442 (aarch64_pseudo_write): Likewise.
7443
7444 2018-06-04 Pedro Alves <palves@redhat.com>
7445
7446 * darwin-nat.c (darwin_ops): Delete.
7447 (darwin_attach_pid): Use get_native_target.
7448
7449 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7450
7451 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7452 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7453
7454 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7455
7456 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7457 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7458 (aarch64_gdbarch_init): Check for SVE.
7459 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7460
7461 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7462
7463 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
7464 * aarch64-tdep.h (aarch64_read_description): Likewise.
7465 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7466 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7467 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
7468 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
7469 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
7470
7471 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
7472
7473 * value.c (value_fetch_lazy_bitfield): New.
7474 (value_fetch_lazy_memory): New.
7475 (value_fetch_lazy_register): New.
7476 (value_fetch_lazy): Factor out to smaller functions.
7477
7478 2018-06-01 Tom Tromey <tom@tromey.com>
7479
7480 * cp-name-parser.y (backslashable, represented): Now const.
7481
7482 2018-06-01 Tom Tromey <tom@tromey.com>
7483
7484 * cp-name-parser.y: Include parser-defs.h.
7485 (parser_fprintf): Remove declaration.
7486
7487 2018-06-01 Tom Tromey <tom@tromey.com>
7488
7489 * cp-name-parser.y: Use %pure-parser, %lex-param, and
7490 %parse-param.
7491 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
7492 (global_result): Remove globals.
7493 (struct cpname_state): New.
7494 (yyparse): Don't declare.
7495 (yylex, yyerror): Move declarations after %union.
7496 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
7497 (make_name): Add state parameter.
7498 Update all callers.
7499 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
7500 parameter.
7501 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
7502 Update.
7503 (yylex): Add lvalp, state parameters.
7504 (yyerror): Add state parameter.
7505 (cp_demangled_name_to_comp): Update.
7506
7507 2018-06-01 Tom Tromey <tom@tromey.com>
7508
7509 * cp-name-parser.y (parser_fprintf): Declare.
7510 (GDB_YY_REMAP_PREFIX): Define.
7511 Include yy-remap.h. Don't redefine yy* identifiers.
7512
7513 2018-06-01 Tom Tromey <tom@tromey.com>
7514
7515 * python/py-type.c (typy_legacy_template_argument): Update.
7516 * cp-support.h (cp_demangled_name_to_comp): Update.
7517 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
7518 parameter to be a "std::string *".
7519 (main): Update.
7520
7521 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
7522
7523 * ada-lex.l: Include "diagnostics.h" instead of
7524 "common/diagnostics.h".
7525 * unittests/environ-selftests.c: Likewise.
7526 * common/diagnostics.h: Moved to ../include.
7527
7528 2018-06-01 Joel Brobecker <brobecker@adacore.com>
7529
7530 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
7531 to language_mode_manual while calling breakpoint_re_set_one.
7532
7533 2018-06-01 Tom Tromey <tom@tromey.com>
7534
7535 * valops.c (value_cast_structs, destructor_name_p): Update.
7536 * symtab.c (gdb_mangle_name): Update.
7537 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
7538 Update.
7539 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
7540 (pascal_object_print_value_fields, pascal_object_print_value):
7541 Update.
7542 * p-typeprint.c (pascal_type_print_derivation_info): Update.
7543 * linespec.c (find_methods): Update.
7544 * gdbtypes.h (type_name_no_tag): Remove.
7545 (type_name_or_error): Rename from type_name_no_tag_or_error.
7546 * gdbtypes.c (type_name_no_tag): Remove.
7547 (type_name_or_error): Rename from type_name_no_tag_or_error.
7548 (lookup_struct_elt_type, check_typedef): Update.
7549 * expprint.c (print_subexp_standard): Update.
7550 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
7551 * d-namespace.c (d_lookup_nested_symbol): Update.
7552 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
7553 (cp_print_class_member): Update.
7554 * cp-namespace.c (cp_lookup_nested_symbol): Update.
7555 * completer.c (add_struct_fields): Update.
7556 * c-typeprint.c (cp_type_print_derivation_info)
7557 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
7558 Update.
7559 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
7560 (ada_prefer_type, ada_is_exception_sym): Update.
7561
7562 2018-06-01 Tom Tromey <tom@tromey.com>
7563
7564 * valops.c (enum_constant_from_type, value_namespace_elt)
7565 (value_maybe_namespace_elt): Update.
7566 * valarith.c (find_size_for_pointer_math): Update.
7567 * target-descriptions.c (make_gdb_type): Update.
7568 * symmisc.c (print_symbol): Update.
7569 * stabsread.c (define_symbol, read_type)
7570 (complain_about_struct_wipeout, add_undefined_type)
7571 (cleanup_undefined_types_1): Update.
7572 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
7573 (rust_range_type_p, val_print_struct, rust_print_struct_def)
7574 (rust_internal_print_type, rust_composite_type)
7575 (rust_evaluate_funcall, rust_evaluate_subexp)
7576 (rust_inclusive_range_type_p): Update.
7577 * python/py-type.c (typy_get_tag): Update.
7578 * p-typeprint.c (pascal_type_print_base): Update.
7579 * mdebugread.c (parse_symbol, parse_type): Update.
7580 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
7581 Update.
7582 * guile/scm-type.c (gdbscm_type_tag): Update.
7583 * go-lang.c (sixg_string_p): Update.
7584 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
7585 Update.
7586 * gdbtypes.h (struct main_type) <tag_name>: Remove.
7587 (TYPE_TAG_NAME): Remove.
7588 * gdbtypes.c (type_name_no_tag): Simplify.
7589 (check_typedef, check_types_equal, recursive_dump_type)
7590 (copy_type_recursive, arch_composite_type): Update.
7591 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
7592 in summary mode when needed.
7593 * eval.c (evaluate_funcall): Update.
7594 * dwarf2read.c (fixup_go_packaging, read_structure_type)
7595 (process_structure_scope, read_enumeration_type)
7596 (read_namespace_type, read_module_type, determine_prefix): Update.
7597 * cp-support.c (inspect_type): Update.
7598 * coffread.c (process_coff_symbol, decode_base_type): Update.
7599 * c-varobj.c (c_is_path_expr_parent): Update.
7600 * c-typeprint.c (c_type_print_base_struct_union): Update.
7601 (c_type_print_base_1): Update. Print struct/class/union/enum in
7602 summary when using C language.
7603 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
7604 (gen_maybe_namespace_elt): Update.
7605 * ada-lang.c (ada_type_name): Simplify.
7606 (empty_record, ada_template_to_fixed_record_type_1)
7607 (template_to_static_fixed_type)
7608 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
7609
7610 2018-06-01 Tom Tromey <tom@tromey.com>
7611
7612 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
7613 c_print_type.
7614 * c-typeprint.c (c_print_type_1): Add "language" parameter.
7615 (c_print_type): Update.
7616 (c_print_type): New overload.
7617 (c_type_print_varspec_prefix, c_type_print_args)
7618 (c_type_print_varspec_suffix, c_print_type_no_offsets)
7619 (c_type_print_base_struct_union, c_type_print_base_1)
7620 (cp_type_print_method_args): Add "language" parameter.
7621 (c_type_print_base): Update.
7622 * c-lang.h (c_print_type): Add new overload.
7623
7624 2018-06-01 Tom Tromey <tom@tromey.com>
7625
7626 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
7627 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
7628
7629 2018-06-01 Alan Hayward <alan.hayward@arm.com>
7630
7631 * aarch64-tdep.c (aarch64_sve_register_names): New const
7632 var.
7633 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
7634 (AARCH64_SVE_Z_REGS_NUM): New define.
7635 (AARCH64_SVE_P_REGS_NUM): Likewise.
7636 (AARCH64_SVE_NUM_REGS): Likewise.
7637
7638 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
7639
7640 * nat/linux-ptrace.h [__alpha__]
7641 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
7642 definitions.
7643
7644 2018-05-31 Maciej W. Rozycki <macro@mips.com>
7645
7646 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
7647 the endianness selected.
7648 * NEWS: Document `set endian auto' mode operation update.
7649
7650 2018-05-31 Alan Hayward <alan.hayward@arm.com>
7651
7652 * Makefile.in: Add new header.
7653 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
7654 (sve_vl_from_vg): Likewise.
7655 (sve_vq_from_vl): Likewise.
7656 (sve_vl_from_vq): Likewise.
7657 (sve_vq_from_vg): Likewise.
7658 (sve_vg_from_vq): Likewise.
7659 * configure.nat: Add new c file.
7660 * nat/aarch64-sve-linux-ptrace.c: New file.
7661 * nat/aarch64-sve-linux-ptrace.h: New file.
7662
7663 2018-05-31 Alan Hayward <alan.hayward@arm.com>
7664
7665 * aarch64-linux-nat.c (aarch64_linux_read_description):
7666 Add parmeter zero.
7667 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7668 Likewise.
7669 * aarch64-tdep.c (tdesc_aarch64_list): Add.
7670 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
7671 (aarch64_gdbarch_init): Add parmeter zero.
7672 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
7673 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
7674 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
7675 parmeter.
7676 * doc/gdb.texinfo: Describe SVE feature
7677 * features/aarch64-sve.c: New file.
7678
7679 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
7680
7681 PR gdb/23210
7682 * gdbarch.sh (significant_addr_bit): Default to zero when
7683 not set by target architecture.
7684 * gdbarch.c: Re-generated.
7685 * utils.c (address_significant): Update.
7686
7687 2018-05-30 Joel Brobecker <brobecker@adacore.com>
7688
7689 * stack.c (func_command): Remove trailing newline in call to error.
7690
7691 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7692
7693 * regcache.h (regcache_raw_collect): Remove, update callers to
7694 use regcache::raw_collect.
7695 * regcache.c (regcache_raw_collect): Remove.
7696
7697 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7698
7699 * regcache.h (regcache_raw_supply): Remove, update callers to
7700 use detached_regcache::raw_supply.
7701 * regcache.c (regcache_raw_supply): Remove.
7702
7703 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7704
7705 * regcache.h (regcache_cooked_write_part): Remove, update
7706 callers to use regcache::cooked_write_part.
7707 * regcache.c (regcache_cooked_write_part): Remove.
7708
7709 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7710
7711 * regcache.h (regcache_cooked_read_part): Remove, update callers
7712 to use readable_regcache::cooked_read_part.
7713 * regcache.c (regcache_cooked_read_part): Remove.
7714
7715 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7716
7717 * regcache.h (regcache_cooked_read_value): Remove, update
7718 callers to use readable_regcache::cooked_read_value.
7719 * regcache.c (regcache_cooked_read_value): Remove.
7720
7721 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7722
7723 * regcache.h (regcache_cooked_write): Remove, update callers to
7724 use regcache::cooked_write.
7725 * regcache.c (regcache_cooked_write): Remove.
7726
7727 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7728
7729 * regcache.h (regcache_invalidate): Remove, update callers to
7730 use detached_regcache::invalidate instead.
7731 * regcache.c (regcache_invalidate): Remove.
7732
7733 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7734
7735 * regcache.h (regcache_raw_write_part): Remove, update callers
7736 to use regcache::raw_write_part instead.
7737 * regcache.c (regcache_raw_write_part): Remove.
7738
7739 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7740
7741 * regcache.h (regcache_raw_read_part): Remove, update callers to
7742 use readable_regcache::raw_read_part instead.
7743 * regcache.c (regcache_raw_read_part): Remove.
7744
7745 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7746
7747 * regcache.h (regcache_cooked_read): Remove, update callers to
7748 use readable_regcache::cooked_read instead.
7749 * regcache.c (regcache_cooked_read): Remove.
7750
7751 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7752
7753 * regcache.h (regcache_raw_write): Remove, update callers to use
7754 regcache::raw_write instead.
7755 * regcache.c (regcache_raw_write): Remove.
7756
7757 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7758
7759 * regcache.h (regcache_raw_read): Remove, update callers to use
7760 readable_regcache::raw_read instead.
7761 * regcache.c (regcache_raw_read): Remove.
7762
7763 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7764
7765 * regcache.h (regcache_raw_update): Remove, update callers to
7766 use readable_regcache::raw_update instead.
7767 * regcache.c (regcache_raw_update): Remove.
7768
7769 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7770
7771 * regcache.h (regcache_register_status): Remove, update callers
7772 to use reg_buffer::get_register_status directly instead.
7773 * regcache.c (regcache_register_status): Remove.
7774
7775 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7776
7777 * regcache.h (regcache_get_ptid): Remove, update all callers to
7778 call regcache::ptid instead.
7779 * regcache.c (regcache_get_ptid): Remove.
7780
7781 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7782
7783 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
7784
7785 2018-05-30 Pedro Alves <palves@redhat.com>
7786
7787 * common/common-exceptions.h (exception_rethrow): Use
7788 ATTRIBUTE_NORETURN.
7789
7790 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
7791
7792 * breakpoint.c (print_solib_event, check_status_catch_solib):
7793 Remove struct keyword in range-based for loops.
7794 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
7795 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
7796 Likewise.
7797 * linespec.c (find_superclass_methods, search_minsyms_for_name):
7798 Likewise.
7799 * symfile.c (addr_info_make_relative): Likewise.
7800 * thread.c (value_in_thread_stack_temporaries): Likewise.
7801
7802 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
7803
7804 PR gdb/16841
7805 * valops.c (value_struct_elt_for_reference): Call check_typedef on
7806 aggregate type to get its real type before accessing it.
7807
7808 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
7809
7810 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
7811 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
7812 * coff-pe-read.c (add_pe_forwarded_sym): Replace
7813 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
7814 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
7815 * jit.c (jit_breakpoint_re_set_internal): Likewise.
7816 * printcmd.c (info_address_command): Likewise.
7817
7818 2018-05-29 Tom Tromey <tom@tromey.com>
7819
7820 * windows-nat.c (handle_exception): Update fall-through comment.
7821
7822 2018-05-29 Tom Tromey <tom@tromey.com>
7823
7824 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
7825 (struct program_space) <added_solibs>: Now a std::vector.
7826 * breakpoint.c (print_solib_event): Update.
7827 (check_status_catch_solib): Update.
7828 * progspace.c (clear_program_space_solib_cache): Update.
7829 * solib.c (update_solib_list): Update.
7830
7831 2018-05-29 Tom Tromey <tom@tromey.com>
7832
7833 * python/py-type.c (typy_richcompare): Update.
7834 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7835 * gdbtypes.h (types_deeply_equal): Return bool.
7836 (types_equal): Likewise.
7837 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
7838 declare VEC.
7839 (check_types_equal): Change worklist to std::vector. Return
7840 bool.
7841 (struct type_equality_entry): Add constructor.
7842 (compare_maybe_null_strings): Return bool.
7843 (check_types_worklist): Return bool. Change worklist to
7844 std::vector.
7845 (types_deeply_equal): Use std::vector.
7846 (types_equal): Return bool.
7847 (compare_maybe_null_strings): Simplify.
7848
7849 2018-05-29 Tom Tromey <tom@tromey.com>
7850
7851 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
7852
7853 2018-05-29 Tom Tromey <tom@tromey.com>
7854
7855 * objc-lang.h: Don't include cp-support.h.
7856 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
7857 declare VEC.
7858
7859 2018-05-27 Tom Tromey <tom@tromey.com>
7860
7861 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7862
7863 2018-05-25 Tom Tromey <tom@tromey.com>
7864
7865 * value.c (value::location): Initialize.
7866
7867 2018-05-25 Tom Tromey <tom@tromey.com>
7868
7869 * dbxread.c (init_bincl_list): Remove.
7870 (bincl_list): Now a std::vector.
7871 (bincls_allocated, next_bincl): Remove.
7872 (free_bincl_list, do_free_bincl_list_cleanup)
7873 (make_cleanup_free_bincl_list): Remove.
7874 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7875 unique_xmalloc_ptr.
7876 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7877 (struct header_file_location): Add constructor.
7878 (add_bincl_to_list): Remove.
7879
7880 2018-05-25 Tom Tromey <tom@tromey.com>
7881
7882 * tui/tui.c (tui_enable): Update.
7883 * mi/mi-interp.c (mi_interp::init): Update.
7884 * interps.h (class interp) <name>: New method.
7885 <m_name>: Rename from name.
7886 (~scoped_restore_interp): Update.
7887 * interps.c (interp::interp): Update.
7888 (interp_add, interp_set, interp_lookup_existing)
7889 (current_interp_named_p): Update.
7890
7891 2018-05-25 Tom Tromey <tom@tromey.com>
7892
7893 * interps.c (interp_name): Remove.
7894 * mi/mi-interp.c (mi_interp::init): Update.
7895 * interps.h (interp_name): Remove.
7896 (~scoped_restore_interp): Update.
7897 * tui/tui.c (tui_enable): Update.
7898
7899 2018-05-25 Tom Tromey <tom@tromey.com>
7900
7901 * utils.c (fputs_maybe_filtered): Update.
7902 * linespec.c (decode_line_full): Update.
7903 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7904 (mi_print_breakpoint_for_event, mi_solib_loaded)
7905 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7906 (mi_user_selected_context_changed): Update.
7907 * mi/mi-main.c (mi_execute_command): Update.
7908 * cli/cli-script.c (execute_control_command): Update.
7909 * python/python.c (execute_gdb_command): Update.
7910 * solib.c (info_sharedlibrary_command): Update.
7911 * interps.c (interp_ui_out): Remove.
7912 * interps.h (interp_ui_out): Remove.
7913
7914 2018-05-25 Tom Tromey <tom@tromey.com>
7915
7916 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7917 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7918 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7919
7920 2018-05-25 Tom Tromey <tom@tromey.com>
7921
7922 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7923 * interps.c (interp_exec): Use scoped_restore.
7924
7925 2018-05-25 Tom Tromey <tom@tromey.com>
7926
7927 * remote.c (remote_target::remote_file_get): Use
7928 gdb::byte_vector.
7929 (remote_target::remote_file_put): Likewise.
7930
7931 2018-05-25 Tom Tromey <tom@tromey.com>
7932
7933 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7934 a std::string.
7935 (get_pe_section_index, add_pe_exported_sym): Update.
7936 (read_pe_exported_syms): Use gdb::def_vector.
7937
7938 2018-05-25 Tom Tromey <tom@tromey.com>
7939
7940 * frame.c (remove_prev_frame): Remove.
7941 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7942
7943 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7944
7945 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7946 Remove prototypes.
7947 * mips-linux-nat.c (supply_fpregset): Always call
7948 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7949 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7950 `mips_fill_fpregset'.
7951 * mips-linux-tdep.c (mips_supply_fpregset)
7952 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7953 (mips_fill_fpregset_wrapper): Remove functions.
7954 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7955 (mips_linux_fpregset): Remove variable.
7956 (mips_linux_iterate_over_regset_sections): Use
7957 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7958 (mips_linux_o32_sigframe_init): Remove comment.
7959
7960 2018-05-25 Pedro Alves <palves@redhat.com>
7961
7962 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7963 (struct readahead_cache, struct packet_reg, struct
7964 remote_arch_state, class remote_state): Move higher up in the
7965 file.
7966 (remote_target::m_remote_state): Now an object instead of a pointer.
7967 (remote_target::get_remote_state): Adjust.
7968
7969 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7970
7971 * stack.c (select_and_print_frame): Delete.
7972 (struct function_bounds): Move struct within function.
7973 (func_command): Most content moved into new function
7974 find_frame_for_function, use new function, print result, add
7975 function comment.
7976 (find_frame_for_function): New function, now returns a result.
7977
7978 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7979
7980 * stack.c (iterate_over_block_arg_vars): Fix comment.
7981 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7982
7983 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7984
7985 PR gdb/23203
7986 * frame.c
7987 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7988 Define.
7989 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7990 Define.
7991 * frame.h (class scoped_restore_selected_frame): New class.
7992 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7993 of any exception, use scoped_restore_selected_frame to restore the
7994 frame instead.
7995
7996 2018-05-24 Pedro Alves <palves@redhat.com>
7997
7998 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7999 override.
8000
8001 2018-05-23 Tom Tromey <tom@tromey.com>
8002
8003 * complaints.c (struct complaints): Remove.
8004 (symfile_complaint_book): Remove.
8005 (series): New global.
8006 (complaint_internal): Update.
8007 (clear_complaints): Update.
8008
8009 2018-05-23 Tom Tromey <tom@tromey.com>
8010
8011 * complaints.c (counters): New global.
8012 (struct complain): Remove.
8013 (struct complaints) <root>: Remove.
8014 (complaint_sentinel): Remove.
8015 (symfile_complaint_book): Update.
8016 (find_complaint) Remove.
8017 (complaint_internal, clear_complaints): Update.
8018
8019 2018-05-23 Tom Tromey <tom@tromey.com>
8020
8021 * complaints.c (struct complain) <file, line>: Remove.
8022 (find_complaint): Remove file, line parameters.
8023 (complaint_internal): Update.
8024
8025 2018-05-23 Tom Tromey <tom@tromey.com>
8026
8027 * complaints.c (vcomplaint): Remove.
8028 (complaint_internal) Merge in contents of vcomplaint.
8029
8030 2018-05-23 Tom Tromey <tom@tromey.com>
8031
8032 * complaints.c (struct complaints) <explanation>: Remove.
8033 (symfile_explanations): Remove.
8034 (symfile_complaint_book): Update.
8035 (vcomplaint): Update.
8036 (struct explanation): Remove.
8037
8038 2018-05-23 Tom Tromey <tom@tromey.com>
8039
8040 * complaints.c (symfile_complaints): Remove.
8041 (complaint_internal): Remove "complaints" parameter.
8042 (clear_complaints, vcomplaint): Remove "c" parameter.
8043 (get_complaints): Remove.
8044 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
8045 (dwarf2_debug_line_missing_file_complaint)
8046 (dwarf2_debug_line_missing_end_sequence_complaint)
8047 (dwarf2_complex_location_expr_complaint)
8048 (dwarf2_const_value_length_mismatch_complaint)
8049 (dwarf2_section_buffer_overflow_complaint)
8050 (dwarf2_macro_malformed_definition_complaint)
8051 (dwarf2_invalid_attrib_class_complaint)
8052 (create_addrmap_from_index, dw2_symtab_iter_next)
8053 (dw2_expand_marked_cus)
8054 (dw2_debug_names_iterator::find_vec_in_debug_names)
8055 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
8056 (create_debug_type_hash_table, init_cutu_and_read_dies)
8057 (partial_die_parent_scope, add_partial_enumeration)
8058 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
8059 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
8060 (read_import_statement, read_file_scope, create_dwo_cu_reader)
8061 (create_cus_hash_table, create_dwp_hash_table)
8062 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8063 (dwarf2_rnglists_process, dwarf2_ranges_process)
8064 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
8065 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
8066 (handle_struct_member_die, process_structure_scope)
8067 (read_array_type, read_common_block, read_module_type)
8068 (read_tag_pointer_type, read_typedef, read_base_type)
8069 (read_subrange_type, load_partial_dies, partial_die_info::read)
8070 (partial_die_info::read, partial_die_info::read)
8071 (partial_die_info::read, read_checked_initial_length_and_offset)
8072 (dwarf2_string_attr, read_formatted_entries)
8073 (dwarf_decode_line_header)
8074 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
8075 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
8076 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
8077 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8078 (get_signatured_type, get_DW_AT_signature_type)
8079 (decode_locdesc, file_file_name, consume_improper_spaces)
8080 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
8081 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8082 (dwarf2_symbol_mark_computed, set_die_type)
8083 (read_attribute_value): Update.
8084 * stap-probe.c (handle_stap_probe, get_stap_base_address):
8085 Update.
8086 * dbxread.c (unknown_symtype_complaint)
8087 (lbrac_mismatch_complaint, repeated_header_complaint)
8088 (set_namestring, function_outside_compilation_unit_complaint)
8089 (read_dbx_symtab, process_one_symbol): Update.
8090 * gdbtypes.c (stub_noname_complaint): Update.
8091 * windows-nat.c (handle_unload_dll): Update.
8092 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
8093 (decode_base_type): Update.
8094 * xcoffread.c (bf_notfound_complaint, ef_complaint)
8095 (eb_complaint, record_include_begin, record_include_end)
8096 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
8097 (process_xcoff_symbol, read_symbol)
8098 (function_outside_compilation_unit_complaint)
8099 (scan_xcoff_symtab): Update.
8100 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
8101 * buildsym.c (finish_block_internal, make_blockvector)
8102 (end_symtab_get_static_block, augment_type_symtab): Update.
8103 * dtrace-probe.c (dtrace_process_dof)
8104 (dtrace_static_probe_ops::get_probes): Update.
8105 * complaints.h (struct complaint): Don't declare.
8106 (symfile_complaints): Remove.
8107 (complaint_internal): Remove "complaints" parameter.
8108 (complaint): Likewise.
8109 (clear_complaints): Likewise.
8110 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8111 (reread_symbols): Update.
8112 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
8113 (dwarf2_frame_cache, decode_frame_entry): Update.
8114 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
8115 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8116 (info_selectors_command): Update.
8117 * macrotab.c (macro_include, check_for_redefinition)
8118 (macro_undef): Update.
8119 * objfiles.c (filter_overlapping_sections): Update.
8120 * stabsread.c (invalid_cpp_abbrev_complaint)
8121 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
8122 (define_symbol, error_type, read_type, rs6000_builtin_type)
8123 (stabs_method_name_from_physname, read_member_functions)
8124 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
8125 (attach_fields_to_type, complain_about_struct_wipeout)
8126 (read_range_type, read_args, common_block_start)
8127 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
8128 Update.
8129 * mdebugread.c (index_complaint, unknown_ext_complaint)
8130 (basic_type_complaint, bad_tag_guess_complaint)
8131 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
8132 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
8133 (parse_procedure, parse_lines)
8134 (function_outside_compilation_unit_complaint)
8135 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
8136 (bad_tag_guess_complaint, reg_value_complaint): Update.
8137 * cp-support.c (demangled_name_complaint): Update.
8138 * macroscope.c (sal_macro_scope): Update.
8139 * dwarf-index-write.c (class debug_names): Update.
8140
8141 2018-05-23 Tom Tromey <tom@tromey.com>
8142
8143 * complaints.c (clear_complaints): Remove "noisy" parameter.
8144 * complaints.h (clear_complaints): Update.
8145 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8146 (reread_symbols): Update.
8147
8148 2018-05-23 Tom Tromey <tom@tromey.com>
8149
8150 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
8151 SUBSEQUENT_MESSAGE.
8152 (vcomplaint, clear_complaints): Update.
8153 (symfile_explanations): Remove some messages.
8154
8155 2018-05-23 Tom Tromey <tom@tromey.com>
8156
8157 * complaints.c (internal_complaint): Remove.
8158 * complaints.h (internal_complaint): Remove.
8159
8160 2018-05-22 Maciej W. Rozycki <macro@mips.com>
8161
8162 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
8163
8164 2018-05-22 Pedro Alves <palves@redhat.com>
8165
8166 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
8167 (remote_fileio_badfd, remote_fileio_return_errno)
8168 (remote_fileio_return_success, remote_fileio_func_open)
8169 (remote_fileio_func_open, remote_fileio_func_close)
8170 (remote_fileio_func_read, remote_fileio_func_write)
8171 (remote_fileio_func_lseek, remote_fileio_func_rename)
8172 (remote_fileio_func_unlink, remote_fileio_func_stat)
8173 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
8174 (remote_fileio_func_isatty, remote_fileio_func_system): Add
8175 remote_target parameter.
8176 (remote_fio_func_map) <func>: Add remote_target parameter.
8177 (do_remote_fileio_request, remote_fileio_request):
8178 * remote-fileio.h (remote_fileio_request):
8179 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
8180 remote_target parameter.
8181 (remote_notif_process, handle_notification): Adjust to pass down
8182 the remote.
8183 (remote_notif_state_allocate): Add remote_target parameter. Save
8184 it.
8185 * remote-notif.h (struct remote_target): Forward declare.
8186 (struct notif_client) <parse, ack, can_get_pending_events>: Add
8187 remote_target parameter.
8188 (struct remote_notif_state) <remote>: New field.
8189 (remote_notif_ack, remote_notif_parse): Add remote_target
8190 parameter.
8191 (remote_notif_state_allocate, remote_notif_state_allocate): Add
8192 remote_target parameter.
8193 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8194 (threads_listing_context, rmt_thread_action, protocol_feature)
8195 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8196 (packet_result, struct threads_listing_context, remote_state):
8197 Move definitions and declarations higher up.
8198 (remote_target) <~remote_target>: Declare.
8199 (remote_download_command_source, remote_file_put, remote_file_get)
8200 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8201 (remote_hostio_pread_vFile, remote_hostio_send_command)
8202 (remote_hostio_set_filesystem, remote_hostio_open)
8203 (remote_hostio_close, remote_hostio_unlink, remote_state)
8204 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8205 (get_memory_write_packet_size, get_memory_read_packet_size)
8206 (append_pending_thread_resumptions, remote_detach_1)
8207 (append_resumption, remote_resume_with_vcont)
8208 (add_current_inferior_and_thread, wait_ns, wait_as)
8209 (process_stop_reply, remote_notice_new_inferior)
8210 (process_initial_stop_replies, remote_add_thread)
8211 (btrace_sync_conf, remote_btrace_maybe_reopen)
8212 (remove_new_fork_children, kill_new_fork_children)
8213 (discard_pending_stop_replies, stop_reply_queue_length)
8214 (check_pending_events_prevent_wildcard_vcont)
8215 (discard_pending_stop_replies_in_queue, stop_reply)
8216 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8217 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8218 (remote_interrupt_as, remote_interrupt_ns)
8219 (remote_get_noisy_reply, remote_query_attached)
8220 (remote_add_inferior, remote_current_thread, get_current_thread)
8221 (set_thread, set_general_thread, set_continue_thread)
8222 (set_general_process, write_ptid)
8223 (remote_unpack_thread_info_response, remote_get_threadinfo)
8224 (parse_threadlist_response, remote_get_threadlist)
8225 (remote_threadlist_iterator, remote_get_threads_with_ql)
8226 (remote_get_threads_with_qxfer)
8227 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8228 (get_offsets, remote_check_symbols, remote_supported_packet)
8229 (remote_query_supported, remote_packet_size)
8230 (remote_serial_quit_handler, remote_detach_pid)
8231 (remote_vcont_probe, remote_resume_with_hc)
8232 (send_interrupt_sequence, interrupt_query)
8233 (remote_notif_get_pending_events, fetch_register_using_p)
8234 (send_g_packet, process_g_packet, fetch_registers_using_g)
8235 (store_register_using_P, store_registers_using_G)
8236 (set_remote_traceframe, check_binary_download)
8237 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8238 (remote_xfer_live_readonly_partial, remote_read_bytes)
8239 (remote_send_printf, remote_flash_write, readchar)
8240 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8241 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8242 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
8243 (extended_remote_disable_randomization, extended_remote_run)
8244 (send_environment_packet, extended_remote_environment_support)
8245 (extended_remote_set_inferior_cwd, remote_write_qxfer)
8246 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
8247 (packet_command): Now methods of ...
8248 (remote_target): ... this class.
8249 (m_remote_state) <remote_target>: New field.
8250 (struct remote_state) <stop_reply_queue,
8251 remote_async_inferior_event_token, wait_forever_enabled_p>: New
8252 fields.
8253 (remote_state::remote_state): Allocate stop_reply_queue.
8254 (remote_state): Delete global.
8255 (get_remote_state_raw): Delete.
8256 (remote_target::get_remote_state): Allocate m_remote_state on
8257 demand.
8258 (get_current_remote_target): New.
8259 (remote_ops, extended_remote_ops): Delete.
8260 (wait_forever_enabled_p, remote_async_inferior_event_token):
8261 Delete, moved to struct remote_state.
8262 (remote_target::close): Delete self. Destruction bits split to
8263 ...
8264 (remote_target::~remote_target): ... this.
8265 (show_memory_packet_size): Adjust to use
8266 get_current_remote_target.
8267 (struct protocol_feature) <func>: Add remote_target parameter.
8268 All callers adjusted.
8269 (curr_quit_handler_target): New.
8270 (remote_serial_quit_handler): Reimplement.
8271 (remote_target::open_1): Adjust to use get_current_remote_target.
8272 Heap-allocate remote_target/extended_remote_target instances.
8273 (vcont_builder::vcont_builder): Add remote_target parameter, and
8274 save it in m_remote. All callers adjusted.
8275 (vcont_builder::m_remote): New field.
8276 (vcont_builder::restart, vcont_builder::flush)
8277 (vcont_builder::push_action): Use it.
8278 (remote_target::commit_resume): Use it.
8279 (struct queue_iter_param) <remote>: New field.
8280 (remote_target::remove_new_fork_children): Fill in 'remote' field.
8281 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
8282 (check_pending_event_prevents_wildcard_vcont_callback)
8283 (remote_target::check_pending_events_prevent_wildcard_vcont)
8284 (remote_target::discard_pending_stop_replies)
8285 (remote_target::discard_pending_stop_replies_in_queue)
8286 (remote_target::remote_notif_remove_queued_reply): Fill in
8287 'remote' field.
8288 (remote_notif_get_pending_events): New.
8289 (remote_target::readchar, remote_target::remote_serial_write):
8290 Save/restore curr_quit_handler_target.
8291 (putpkt): New.
8292 (kill_new_fork_children): Fill in 'remote' field.
8293 (packet_command): Use get_current_remote_target, defer to
8294 remote_target method of same name.
8295 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
8296 parameter, and save it in m_remote. All callers adjusted.
8297 (scoped_remote_fd::release): Use m_remote.
8298 (scoped_remote_fd::m_remote): New field.
8299 (remote_file_put, remote_file_get, remote_file_delete): Use
8300 get_current_remote_target, defer to remote_target method of same
8301 name.
8302 (remote_btrace_reset): Add remote_state paremeter. Update all
8303 callers.
8304 (remote_async_inferior_event_handler). Pass down 'data'.
8305 (remote_new_objfile): Use get_current_remote_target.
8306 (remote_target::vcont_r_supported): New.
8307 (set_range_stepping): Use get_current_remote_target and
8308 remote_target::vcont_r_supported.
8309 (_initialize_remote): Don't allocate 'remote_state' and
8310 'stop_reply_queue' globals.
8311 * remote.h (struct remote_target): Forward declare.
8312 (getpkt, putpkt, remote_notif_get_pending_events): Add
8313 'remote_target' parameter.
8314
8315 2018-05-22 Pedro Alves <palves@redhat.com>
8316
8317 * remote.c (vcont_builder): Now a class. Make all data members
8318 private.
8319 (vcont_builder) <vcont_builder, restart, flush, push_action>:
8320 Declare methods.
8321 (vcont_builder_restart): Rename to ...
8322 (vcont_builder::restart): ... this.
8323 (vcont_builder_flush): Rename to ...
8324 (vcont_builder::flush): ... this.
8325 (vcont_builder_push_action): Rename to ...
8326 (vcont_builder::push_action): ... this.
8327 (remote_target::commit_resume): Adjust.
8328
8329 2018-05-22 Pedro Alves <palves@redhat.com>
8330
8331 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
8332 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
8333 (get_fixed_memory_packet_size): New.
8334 (get_memory_packet_size): Use it.
8335 (set_memory_packet_size): Don't override the config size with
8336 DEFAULT_MAX_MEMORY_PACKET_SIZE.
8337 (show_memory_packet_size): Use get_fixed_memory_packet_size.
8338 Don't refer to get_memory_packet_size if not connected to a remote
8339 target. Show "(default)" if configured size is 0.
8340
8341 2018-05-22 Pedro Alves <palves@redhat.com>
8342
8343 * remote.c (remote_target::mourn_inferior): Move
8344 discard_pending_stop_replies call here from ...
8345 (_initialize_remote): ... here.
8346
8347 2018-05-22 Pedro Alves <palves@redhat.com>
8348
8349 * remote.c (compare_section_command): Remove set_general_process
8350 call.
8351
8352 2018-05-22 Pedro Alves <palves@redhat.com>
8353
8354 * remote.c (struct packet_reg, struct remote_arch_state):
8355 Move higher up in the file.
8356 (remote_state) <m_arch_states>: Store remote_arch_state values
8357 instead of remote_arch_state pointers.
8358 (remote_state::get_remote_arch_state): Adjust.
8359
8360 2018-05-22 Pedro Alves <palves@redhat.com>
8361
8362 * remote.c: Include <unordered_map>.
8363 (remote_state): Now a class.
8364 (remote_state) <get_remote_arch_state>: Declare method.
8365 <get_remote_arch_state>: New field.
8366 (remote_arch_state) <remote_arch_state>: Declare ctor.
8367 <regs>: Now a unique_ptr.
8368 (remote_gdbarch_data_handle): Delete.
8369 (get_remote_arch_state): Delete.
8370 (remote_state::get_remote_arch_state): New.
8371 (get_remote_state): Adjust to call remote_state's
8372 get_remote_arch_state method.
8373 (init_remote_state): Delete, bits factored out to ...
8374 (remote_arch_state::remote_arch_state): ... this new method.
8375 (get_remote_packet_size, get_memory_packet_size)
8376 (process_g_packet, remote_target::fetch_registers)
8377 (remote_target::prepare_to_store, store_registers_using_G)
8378 (remote_target::store_registers, remote_target::get_trace_status):
8379 Adjust to call remote_state's method.
8380 (_initialize_remote): Remove reference to
8381 remote_gdbarch_data_handle.
8382
8383 2018-05-22 Pedro Alves <palves@redhat.com>
8384
8385 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8386 pread>: New method declarations.
8387 (remote_target::open_1): Adjust.
8388 (readahead_cache_invalidate): Rename to ...
8389 (readahead_cache::invalidate): ... this, and adjust to be a class
8390 method.
8391 (readahead_cache_invalidate_fd): Rename to ...
8392 (readahead_cache::invalidate_fd): ... this, and adjust to be a
8393 class method.
8394 (remote_hostio_pwrite): Adjust.
8395 (remote_hostio_pread_from_cache): Rename to ...
8396 (readahead_cache::pread): ... this, and adjust to be a class
8397 method.
8398 (remote_hostio_close): Adjust.
8399
8400 2018-05-22 Pedro Alves <palves@redhat.com>
8401
8402 * remote.c (remote_hostio_close_cleanup): Delete.
8403 (class scoped_remote_fd): New.
8404 (remote_file_put, remote_file_get): Use it.
8405
8406 2018-05-22 Pedro Alves <palves@redhat.com>
8407
8408 (struct vCont_action_support): Use bool and initialize all fields.
8409 (struct readahead_cache): Initialize all fields.
8410 (remote_state): Use bool and initialize all fields.
8411 (remote_state::remote_state, remote_state::~remote_state): New.
8412 (new_remote_state): Delete.
8413 (_initialize_remote): Use new to allocate remote_state.
8414
8415 2018-05-22 Pedro Alves <palves@redhat.com>
8416 張俊芝 <zjz@zjz.name>
8417
8418 PR gdb/22973
8419 * c-exp.y: Include "c-support.h".
8420 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8421 of tolower. Use c_ident_is_alpha to scan names.
8422 * c-lang.c: Include "c-support.h".
8423 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8424 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8425 * c-support.h: New file, with bits factored out from ...
8426 * cp-name-parser.y: ... this file.
8427 Include "c-support.h".
8428 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8429 c-support.h and renamed.
8430 (symbol_end, yylex): Adjust.
8431
8432 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8433
8434 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8435 parameter type to CORE_ADDR.
8436 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8437 parameter type in declaration to CORE_ADDR.
8438 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8439 target_auxv_search to get AT_HWCAP and use the result to get the
8440 target description.
8441 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8442 to CORE_ADDR. Remove the cast of the return value to unsigned
8443 long. Fix error predicate of target_auxv_search.
8444 (ppc_linux_nat_target::read_description): Change the type of the
8445 hwcap variable to CORE_ADDR.
8446
8447 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8448
8449 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8450 if the size of fpscr is larger than 32 bits.
8451
8452 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8453
8454 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8455 (ppc32_linux_vsxregmap): New global.
8456 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8457 regcache_supply_regset, and regcache_collect_regset.
8458 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8459 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8460 (fetch_vsx_register, store_vsx_register): Remove.
8461 (fetch_vsx_registers): Add regno parameter. Get regset using
8462 ppc_linux_vsxregset. Use regset to supply registers.
8463 (store_vsx_registers): Add regno parameter. Get regset using
8464 ppc_linux_vsxregset. Use regset to collect registers.
8465 (fetch_register): Call fetch_vsx_registers instead of
8466 fetch_vsx_register.
8467 (store_register): Call store_vsx_registers instead of
8468 store_vsx_register.
8469 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
8470 new regno parameter.
8471 (store_ppc_registers): Call store_vsx_registers with -1 for the
8472 new regno parameter.
8473 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
8474 (ppc_collect_vsxregset): Remove.
8475
8476 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8477
8478 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
8479 offset fields.
8480 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
8481 for vector register offset fields.
8482 (ppc64_fbsd_reg_offsets): Likewise.
8483 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8484 to vector register offset fields.
8485 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8486 to vector register offset fields.
8487 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
8488 vector register offset fields.
8489 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
8490 initializers for vector register offset fields.
8491 (rs6000_aix64_reg_offsets): Likewise.
8492 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
8493 (ppc_supply_vrregset): Remove.
8494 (ppc_collect_vrregset): Remove.
8495 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
8496 (ppc_linux_vrregset) : New function.
8497 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
8498 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
8499 (ppc32_linux_vrregset): Remove.
8500 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
8501 and use result instead of ppc32_linux_vrregset.
8502 (ppc32_linux_reg_offsets): Remove initializers for vector register
8503 offset fields.
8504 (ppc64_linux_reg_offsets): Likewise.
8505 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
8506 * ppc-linux-nat.c: Include regset.h.
8507 (gdb_vrregset_t): Adjust comment to account for little-endian
8508 mode.
8509 (supply_vrregset, fill_vrregset): Remove.
8510 (fetch_altivec_register, store_altivec_register): Remove.
8511 (fetch_altivec_registers): Add regno parameter. Get regset using
8512 ppc_linux_vrregset. Use regset to supply registers.
8513 (store_altivec_registers): Add regno parameter. Get regset using
8514 ppc_linux_vrregset. Use regset to collect registers.
8515 (fetch_register): Call fetch_altivec_registers instead of
8516 fetch_altivec_register.
8517 (store_register): Call store_altivec_registers instead of
8518 store_altivec_register.
8519 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
8520 the new regno parameter.
8521 (store_ppc_registers): Call store_altivec_registers with -1 for
8522 the new regno parameter.
8523
8524 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8525
8526 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
8527 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
8528 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
8529 (gdb_vrregset_t): Change array type size to
8530 PPC_LINUX_SIZEOF_VRREGSET.
8531 (gdb_vsxregset_t): Change array type size to
8532 PPC_LINUX_SIZEOF_VSXREGSET.
8533 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
8534 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
8535 PPC_LINUX_SIZEOF_VSXREGSET.
8536
8537 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8538
8539 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
8540 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
8541 nat/ppc-linux.c.
8542 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
8543 ppc_linux_target_wordsize with tid.
8544 (ppc_linux_nat_target::read_description): Call ppc_linux_target
8545 wordsize with tid.
8546 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
8547 (ppc64_64bit_inferior_p): Add static and inline specifiers.
8548 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
8549 tid parameter. Remove static specifier.
8550 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
8551 (ppc_linux_target_wordsize): New declaration.
8552
8553 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8554
8555 * arch/ppc-linux-common.c: New file.
8556 * arch/ppc-linux-common.h: New file.
8557 * arch/ppc-linux-tdesc.h: New file.
8558 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
8559 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
8560 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
8561 arch/ppc-linux-tdesc.h.
8562 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
8563 arch/ppc-linux-tdesc.h.
8564 (ppc_linux_nat_target::read_description): Remove target
8565 description matching code. Fill a ppc_linux_features struct and
8566 call ppc_linux_match_description with it. Move comment about ISA
8567 2.05 to ppc-linux-common.c.
8568 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
8569 arch/ppc-linux-tdesc.h.
8570 (ppc_linux_core_read_description): Remove target description
8571 matching code. Fill a ppc_linux_features struct and call
8572 ppc_linux_match_description with it.
8573 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
8574 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
8575 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
8576 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
8577 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
8578 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
8579 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
8580 (tdesc_powerpc_e500l): Remove.
8581
8582 2018-05-22 Joel Brobecker <brobecker@adacore.com>
8583
8584 * ada-lang.c (catch_assert_command): Pass empty string instead
8585 of NULL for excep_string argument.
8586
8587 2018-05-22 Maciej W. Rozycki <macro@mips.com>
8588
8589 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
8590 the width of the requested register exceeds the width of the
8591 `ptrace' data type.
8592
8593 2018-05-21 Tom Tromey <tom@tromey.com>
8594
8595 * printcmd.c (output_command): Remove.
8596 (output_command_const): Rename to output_command.
8597 * valprint.h (output_command): Rename from output_command_const.
8598 * tracepoint.c (trace_dump_actions): Call output_command.
8599
8600 2018-05-21 Tom Tromey <tom@tromey.com>
8601
8602 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
8603 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
8604 * ada-lang.h (create_ada_exception_catchpoint): Update.
8605 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
8606 std::string.
8607 (create_excep_cond_exprs, ~ada_catchpoint)
8608 (should_stop_exception, print_one_exception)
8609 (print_mention_exception, print_recreate_exception): Update.
8610 (ada_get_next_arg): Remove.
8611 (catch_ada_exception_command_split): Use std::string. Change type
8612 of "excep_string", "cond_string".
8613 (catch_ada_exception_command): Update.
8614 (create_ada_exception_catchpoint): Change type of excep_string.
8615 (ada_exception_sal): Remove excep_string parameter.
8616 (~ada_catchpoint): Remove.
8617
8618 2018-05-21 Tom Tromey <tom@tromey.com>
8619
8620 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
8621 cleanup.
8622
8623 2018-05-21 Tom Tromey <tom@tromey.com>
8624
8625 * ada-lang.c (ada_exception_message_1, ada_exception_message):
8626 Return unique_xmalloc_ptr.
8627 (print_it_exception): Update.
8628
8629 2018-05-21 Tom Tromey <tom@tromey.com>
8630
8631 * tracepoint.c (trace_dump_actions): Use std::string.
8632
8633 2018-05-21 Tom Tromey <tom@tromey.com>
8634
8635 * symfile.c (reread_symbols): Use std::string for original_name.
8636
8637 2018-05-21 Tom Tromey <tom@tromey.com>
8638
8639 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
8640 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
8641 constructor.
8642
8643 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
8644
8645 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
8646 instance to...
8647 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
8648 * objfiles.c (get_objfile_bfd_data): Allocate
8649 objfile_per_bfd_storage with obstack_new when allocating on
8650 obstack.
8651
8652 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
8653
8654 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
8655 OBSTACK_ZALLOC.
8656 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
8657 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
8658 * mdebugread.c (mdebug_build_psymtabs): Likewise.
8659 (add_pending): Likewise.
8660 (parse_symbol): Likewise.
8661 (parse_partial_symbols): Likewise.
8662 (psymtab_to_symtab_1): Likewise.
8663 (new_psymtab): Likewise.
8664 (elfmdebug_build_psymtabs): Likewise.
8665 * minsyms.c (terminate_minimal_symbol_table): Likewise.
8666 * objfiles.c (get_objfile_bfd_data): Likewise.
8667 (objfile_register_static_link): Likewise.
8668 * psymtab.c (allocate_psymtab): Likewise.
8669 * stabsread.c (read_member_functions): Likewise.
8670 * xcoffread.c (xcoff_end_psymtab): Likewise.
8671
8672 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
8673
8674 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
8675 compiler supports std::is_trivially_constructible.
8676 * common/poison.h: Include obstack.h.
8677 (IsMallocable): Define to is_trivially_constructible if the
8678 compiler supports it, define to true_type otherwise.
8679 (xobnew): New.
8680 (XOBNEW): Redefine.
8681 (xobnewvec): New.
8682 (XOBNEWVEC): Redefine.
8683 * gdb_obstack.h (obstack_zalloc): New.
8684 (OBSTACK_ZALLOC): Redefine.
8685 (obstack_calloc): New.
8686 (OBSTACK_CALLOC): Redefine.
8687 (obstack_new): New.
8688 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
8689 (gdbarch_obstack): New declaration in gdbarch.h, definition in
8690 gdbarch.c.
8691 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
8692 obstack_calloc/obstack_zalloc.
8693 (gdbarch_obstack_zalloc): Remove.
8694 * target-descriptions.c (tdesc_data_init): Use obstack_new.
8695
8696 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8697
8698 * stack.c (backtrace_command_1): Remove useless variable int i.
8699
8700 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8701
8702 * stack.c (print_frame_info): Fix comment.
8703
8704 2018-05-18 Tom Tromey <tom@tromey.com>
8705
8706 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
8707 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
8708 (~dwarf2_per_objfile): Update
8709 (dwarf2_get_dwz_file): Use new.
8710 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
8711 unique_ptr.
8712
8713 2018-05-18 Tom Tromey <tom@tromey.com>
8714
8715 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
8716 unique_ptr.
8717 * dwarf2read.c (struct dwp_file): Add constructor and
8718 initializers.
8719 (open_and_init_dwp_file): Return a unique_ptr.
8720 (dwarf2_per_objfile, create_dwp_hash_table)
8721 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
8722 (lookup_dwo_unit_in_dwp): Update.
8723 (open_and_init_dwp_file, get_dwp_file): Update.
8724
8725 2018-05-18 Tom Tromey <tom@tromey.com>
8726
8727 * dwarf2read.c (dwarf2_per_objfile): Update.
8728 (struct mapped_index): Add initializers.
8729 (dwarf2_read_index): Use new.
8730 (dw2_symtab_iter_init): Update.
8731 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
8732 unique_ptr.
8733
8734 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8735
8736 * dwarf2read.c (mapped_index) <total_size>: Remove.
8737
8738 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8739
8740 * unittests/format_pieces-selftests.c (test_format_specifier):
8741 Add ARI comments.
8742
8743 2018-05-18 Tom Tromey <tom@tromey.com>
8744
8745 * c-typeprint.c (maybe_print_hole): New function.
8746 (c_print_type_struct_field_offset): Update.
8747 (c_type_print_base_struct_union): Call maybe_print_hole.
8748
8749 2018-05-17 Keith Seitz <keiths@redhat.com>
8750
8751 * breakpoint.c (build_bpstat_chain): New function, moved from
8752 bpstat_stop_status.
8753 (bpstat_stop_status): Add optional parameter, `stop_chain'.
8754 If no stop chain is passed, call build_bpstat_chain to build it.
8755 * breakpoint.h (build_bpstat_chain): Declare.
8756 (bpstat_stop_status): Move documentation here from breakpoint.c.
8757 * infrun.c (handle_signal_stop): Before eliding inlined frames,
8758 build the stop chain and pass it to skip_inline_frames.
8759 Pass this stop chain to bpstat_stop_status.
8760 * inline-frame.c: Include breakpoint.h.
8761 (stopped_by_user_bp_inline_frame): New function.
8762 (skip_inline_frames): Add parameter `stop_chain'.
8763 Move documention to inline-frame.h.
8764 If non-NULL, use stopped_by_user_bp_inline_frame to determine
8765 whether the frame should be elided.
8766 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
8767 Add moved documentation and update for new parameter.
8768
8769 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8770
8771 PR cli/14975
8772 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8773 unittests/format_pieces-selftests.c.
8774 * common/format.h (format_piece) <operator==>: New.
8775 (format_pieces) <operator[]>: Remove.
8776 * common/format.c (format_pieces::format_pieces): Handle \e.
8777 * unittests/format_pieces-selftests.c: New.
8778
8779 2018-05-17 Tom Tromey <tom@tromey.com>
8780
8781 PR symtab/23010:
8782 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
8783 (dw2_instantiate_symtab): Add skip_partial parameter.
8784 (dw2_find_last_source_symtab, dw2_map_expand_apply)
8785 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
8786 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
8787 (dw2_expand_symtabs_matching_one)
8788 (dw2_find_pc_sect_compunit_symtab)
8789 (dw2_debug_names_lookup_symbol)
8790 (dw2_debug_names_expand_symtabs_for_function): Update.
8791 (init_cutu_and_read_dies): Add skip_partial parameter.
8792 (process_psymtab_comp_unit, build_type_psymtabs_1)
8793 (process_skeletonless_type_unit, load_partial_comp_unit)
8794 (psymtab_to_symtab_1): Update.
8795 (load_full_comp_unit): Add skip_partial parameter.
8796 (process_imported_unit_die, dwarf2_read_addr_index)
8797 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
8798 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
8799 (read_signatured_type): Update.
8800
8801 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8802
8803 * value.c (release_value): Remove unused variable.
8804 (record_latest_value): Likewise.
8805 (access_value_history): Likewise.
8806 (preserve_values): Likewise.
8807
8808 2018-05-17 Tom Tromey <tom@tromey.com>
8809
8810 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
8811 Initialize.
8812
8813 2018-05-16 Maciej W. Rozycki <macro@mips.com>
8814
8815 PR gdb/22286
8816 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
8817 Also handle registers whose width is not a multiple of
8818 PTRACE_TYPE_RET.
8819 (linux_nat_trad_target::store_register): Likewise.
8820
8821 2018-05-16 Tom Tromey <tom@tromey.com>
8822
8823 * gdbcore.h (core_bfd): Redefine.
8824 * corelow.c (core_target::close): Update.
8825 (core_target_open): Update.
8826 * progspace.h (struct program_space) <cbfd>: Now a
8827 gdb_bfd_ref_ptr.
8828
8829 2018-05-16 Tom Tromey <tom@tromey.com>
8830
8831 PR cli/19551:
8832 * symfile-add-flags.h (enum symfile_add_flags)
8833 <SYMFILE_NOT_FILENAME>: New constant.
8834 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
8835 objfile name from BFD.
8836 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8837 * minidebug.c (find_separate_debug_file_in_section): Put
8838 ".gnu_debugdata" into BFD's file name.
8839
8840 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
8841
8842 * regcache.c (regcache_read_ftype, regcache_write_ftype):
8843 Remove.
8844
8845 2018-05-15 Tamar Christina <tamar.christina@arm.com>
8846
8847 PR binutils/21446
8848 * aarch64-tdep.c (aarch64_analyze_prologue,
8849 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8850 Indicate not interested in errors.
8851
8852 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8853
8854 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8855 Supply the MIPS_ZERO_REGNUM register.
8856
8857 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8858
8859 * mips-tdep.c (mask_address_var): Make variable static.
8860
8861 2018-05-14 Tom Tromey <tom@tromey.com>
8862
8863 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8864
8865 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8866
8867 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8868 FXSAVE_ADDR for the mxcsr register.
8869
8870 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8871
8872 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8873
8874 2018-05-11 Pedro Alves <palves@redhat.com>
8875
8876 * corelow.c (core_target) <core_target>: No longer inline.
8877 Initialize m_core_gdbarch, m_core_vec and build the section table
8878 here.
8879 <~core_target>: New.
8880 <core_gdbarch, get_core_register_section>: New methods.
8881 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8882 factored out from ...
8883 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8884 (core_ops): Delete.
8885 (sniff_core_bfd): Add gdbarch parameter.
8886 (core_close): Delete, merged into ...
8887 (core_target::close): ... here. Delete self.
8888 (core_close_cleanup): Delete.
8889 (core_target_open): Allocate a core_target on the heap. Use a
8890 unique_ptr instead of a cleanup. Bits moved into the core_target
8891 ctor. Adjust to use core_target methods instead of globals.
8892 (get_core_register_section): Rename to ...
8893 (core_target::get_core_register_section): ... this and adjust.
8894 (struct get_core_registers_cb_data): New.
8895 (get_core_registers_cb): Use it. Use bool.
8896 (core_target::fetch_registers, core_target::files_info)
8897 (core_target::xfer_partial, core_target::read_description)
8898 (core_target::pid_to, core_target::thread_name): Adjust to
8899 reference class fields instead of globals.
8900 * target.h (struct target_ops_deleter, target_ops_up): New.
8901
8902 2018-05-11 Pedro Alves <palves@redhat.com>
8903
8904 * corefile.c (core_file_command): Move to corelow.c.
8905 * corelow.c (the_core_target): Delete.
8906 (core_file_command): Moved from corefile.c. Check exec_bfd
8907 instead of the_core_target. Use target_detach instead of calling
8908 into the_core_target directly.
8909 (maybe_say_no_core_file_now): New.
8910 (core_target::detach): Use it.
8911 (_initialize_corelow): Remove references to the_core_target.
8912 * gdbcore.h (the_core_target): Delete.
8913
8914 2018-05-11 Tom Tromey <tromey@redhat.com>
8915 Pedro Alves <palves@redhat.com>
8916
8917 * corefile.c (core_bfd): Remove.
8918 * gdbcore.h (core_bfd): Now a macro.
8919 * progspace.h (struct program_space) <cbfd>: New field.
8920
8921 2018-05-11 Tom Tromey <tom@tromey.com>
8922
8923 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8924 gdb::def_vector.
8925
8926 2018-05-10 Tom Tromey <tom@tromey.com>
8927
8928 * configure: Rebuild.
8929 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8930
8931 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8932
8933 PR server/23158:
8934 * regformats/regdat.sh: Adjust script, following the addition
8935 of the new expedite_regs parameter to init_target_desc.
8936
8937 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8938
8939 PR gdb/23127
8940 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8941 set_gdbarch_significant_addr_bit.
8942 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8943 set_gdbarch_significant_addr_bit.
8944 * utils.c (address_significant): Update to sign extend addr.
8945
8946 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8947
8948 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8949 (xtensa_linux_init_abi): Limit tdep->num_regs by
8950 tdep->num_nopriv_regs.
8951 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8952 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8953 not initialized.
8954
8955 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8956
8957 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8958
8959 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8960
8961 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8962 (I387_MXCSR_INIT_VAL): New constant.
8963 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8964 buffer if it was supplied by the inferior.
8965 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8966 (i387_xsave_get_clear_bv): New function.
8967 (i387_supply_xsave): Only read x87 control registers from the
8968 xsave buffer if the feature is enabled, and the state will have
8969 been written, otherwise, provide a suitable default.
8970 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8971 including x87 control registers. Update control registers if they
8972 have changed from the default value, and mark features as enabled
8973 as required.
8974 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8975
8976 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8977
8978 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8979
8980 2018-05-07 Tom Tromey <tom@tromey.com>
8981
8982 * configure: Rebuild.
8983 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8984
8985 2018-05-07 Tom Tromey <tom@tromey.com>
8986
8987 PR tdep/20362:
8988 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8989 bit. Use correct value for VDIV.
8990
8991 2018-05-04 Tom Tromey <tom@tromey.com>
8992
8993 * configure: Rebuild.
8994 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8995
8996 2018-05-04 Tom Tromey <tom@tromey.com>
8997
8998 * linux-record.c (record_linux_system_call) <case
8999 RECORD_SYS_RECVFROM>: Add "break".
9000
9001 2018-05-04 Tom Tromey <tom@tromey.com>
9002
9003 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9004 Add missing "break".
9005 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9006 Add missing "break".
9007
9008 2018-05-04 Tom Tromey <tom@tromey.com>
9009
9010 * rs6000-tdep.c (ppc_process_record_op4)
9011 (ppc_process_record_op63): Add fall-through comment.
9012
9013 2018-05-04 Tom Tromey <tom@tromey.com>
9014
9015 * i386-tdep.c (i386_process_record): Add fall-through comment.
9016
9017 2018-05-04 Tom Tromey <tom@tromey.com>
9018
9019 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9020 comment.
9021
9022 2018-05-04 Tom Tromey <tom@tromey.com>
9023
9024 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9025 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9026 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9027 comment.
9028 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9029 comment.
9030 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
9031 comment.
9032
9033 2018-05-04 Tom Tromey <tom@tromey.com>
9034
9035 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
9036
9037 2018-05-04 Tom Tromey <tom@tromey.com>
9038
9039 * s390-tdep.c (s390_process_record): Fix fall-through comments.
9040 * xcoffread.c (scan_xcoff_symtab): Move comment later.
9041 * symfile.c (section_is_mapped): Fix fall-through comment.
9042 * stabsread.c (define_symbol, read_member_functions): Fix
9043 fall-through comment.
9044 * s390-linux-tdep.c (s390_process_record): Fix fall-through
9045 comment.
9046 * remote.c (remote_wait_as): Fix fall-through comment.
9047 * p-exp.y (yylex): Fix fall-through comment.
9048 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
9049 comment.
9050 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
9051 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
9052 * jv-exp.y (yylex): Fix fall-through comment.
9053 * go-exp.y (lex_one_token): Fix fall-through comment.
9054 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
9055 fall-through comment.
9056 * f-exp.y (yylex): Fix fall-through comment.
9057 * dwarf2read.c (process_die): Fix fall-through comments.
9058 * dbxread.c (process_one_symbol): Fix fall-through comment.
9059 * d-exp.y (lex_one_token): Fix fall-through comment.
9060 * cp-name-parser.y (yylex): Fix fall-through comment.
9061 * coffread.c (coff_symtab_read): Fix fall-through comment.
9062 * c-exp.y (lex_one_token): Fix fall-through comment.
9063 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
9064 comment.
9065 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
9066 comment.
9067
9068 2018-05-04 Tom Tromey <tom@tromey.com>
9069
9070 PR python/22730:
9071 * NEWS: Mention gdb.execute change.
9072 * gdbcmd.h (execute_control_command): Don't declare.
9073 * python/python.c (execute_gdb_command): Use read_command_lines_1,
9074 execute_control_commands, execute_control_commands_to_string.
9075 * cli/cli-script.h (execute_control_commands)
9076 (execute_control_commands_to_string): Declare.
9077 (execute_control_command): Add from_tty parameter.
9078 * cli/cli-script.c (execute_control_commands)
9079 (execute_control_commands_to_string): New functions.
9080 (execute_user_command): Use execute_control_commands.
9081 (execute_control_command_1): Add "from_tty" parameter. Update.
9082 (execute_control_command): Likewise.
9083
9084 2018-05-04 Tom Tromey <tom@tromey.com>
9085
9086 PR python/22731:
9087 * NEWS: Mention that breakpoint commands are writable.
9088 * python/py-breakpoint.c (bppy_set_commands): New function.
9089 (breakpoint_object_getset) <"commands">: Use it.
9090
9091 2018-05-04 Tom Tromey <tom@tromey.com>
9092
9093 * tracepoint.c (actions_command): Update.
9094 * mi/mi-cmd-break.c (mi_command_line_array)
9095 (mi_command_line_array_cnt, mi_command_line_array_ptr)
9096 (mi_read_next_line): Remove.
9097 (mi_cmd_break_commands): Update.
9098 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
9099 function_view.
9100 * cli/cli-script.c (get_command_line): Update.
9101 (process_next_line): Use function_view. Constify.
9102 (recurse_read_control_structure, read_command_lines)
9103 (read_command_lines_1): Change argument types to function_view.
9104 (do_define_command, document_command): Update.
9105 * breakpoint.h (check_tracepoint_command): Don't declare.
9106 * breakpoint.c (check_tracepoint_command): Remove.
9107 (commands_command_1, create_tracepoint_from_upload): Update.
9108
9109 2018-05-04 Tom Tromey <tom@tromey.com>
9110
9111 PR gdb/11750:
9112 * cli/cli-script.h (enum command_control_type) <define_control>:
9113 New constant.
9114 * cli/cli-script.c (multi_line_command_p): Handle define_control.
9115 (build_command_line, execute_control_command_1)
9116 (process_next_line): Likewise.
9117 (do_define_command): New function, extracted from define_command.
9118 (define_command): Use it.
9119
9120 2018-05-04 Tom Tromey <tom@tromey.com>
9121
9122 * tracepoint.c (actions_command): Update.
9123 * cli/cli-script.h (read_command_lines): Update.
9124 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
9125 (MAX_TMPBUF): Remove define.
9126 (define_command): Use string_printf.
9127 (document_command): Likewise.
9128 * breakpoint.c (commands_command_1): Update.
9129
9130 2018-05-04 Tom Tromey <tom@tromey.com>
9131
9132 * top.c (execute_command): Update.
9133 * cli/cli-script.h (print_command_lines): Now varargs.
9134 * cli/cli-script.c (print_command_lines): Now varargs.
9135 (execute_control_command_1) <case while_control, case if_control>:
9136 Update.
9137
9138 2018-05-04 Tom Tromey <tom@tromey.com>
9139
9140 * tracepoint.c (all_tracepoint_actions): Rename from
9141 all_tracepoint_actions_and_cleanup. Change return type.
9142 (actions_command, encode_actions_1, encode_actions)
9143 (trace_dump_actions, tdump_command): Update.
9144 * remote.c (remote_download_command_source): Update.
9145 * python/python.c (gdbpy_eval_from_control_command)
9146 (python_command, python_interactive_command): Update.
9147 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9148 * guile/guile.c (guile_command)
9149 (gdbscm_eval_from_control_command, guile_command): Update.
9150 * compile/compile.c (compile_code_command)
9151 (compile_print_command, compile_to_object): Update.
9152 * cli/cli-script.h (struct command_lines_deleter): New.
9153 (counted_command_line): New typedef.
9154 (struct command_line): Add constructor, destructor.
9155 <body_list>: Remove.
9156 <body_list_0, body_list_1>: New members.
9157 (command_line_up): Remove typedef.
9158 (read_command_lines, read_command_lines_1, get_command_line):
9159 Update.
9160 (copy_command_lines): Don't declare.
9161 * cli/cli-script.c (build_command_line): Use "new".
9162 (get_command_line): Return counted_command_line.
9163 (print_command_lines, execute_user_command)
9164 (execute_control_command_1, while_command, if_command): Update.
9165 (realloc_body_list): Remove.
9166 (process_next_line, recurse_read_control_structure): Update.
9167 (read_command_lines, read_command_lines_1): Return counted_command_line.
9168 (free_command_lines): Use "delete".
9169 (copy_command_lines): Remove.
9170 (define_command, document_command, show_user_1): Update.
9171 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
9172 a counted_command_line.
9173 * breakpoint.h (counted_command_line): Remove typedef.
9174 (breakpoint_set_commands): Update.
9175 * breakpoint.c (check_no_tracepoint_commands)
9176 (validate_commands_for_breakpoint): Update.
9177 (breakpoint_set_commands): Change commands to be a
9178 counted_command_line.
9179 (commands_command_1, update_dprintf_command_list)
9180 (create_tracepoint_from_upload): Update.
9181
9182 2018-05-04 Tom Tromey <tom@tromey.com>
9183
9184 * cli/cli-decode.h (cmd_list_element): New constructor.
9185 (~cmd_list_element): New destructor.
9186 (struct cmd_list_element): Add initializers.
9187 * cli/cli-decode.c (do_add_cmd): Use "new".
9188 (delete_cmd): Use "delete".
9189
9190 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9191 Pedro Alves <palves@redhat.com>
9192
9193 PR breakpoints/19806 and support for PR external/20207.
9194 * NEWS: Mention Aarch64 watchpoint improvements.
9195 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9196 watchpoints and PR external/20207 watchpoints.
9197 * nat/aarch64-linux-hw-point.c
9198 (kernel_supports_any_contiguous_range): New.
9199 (aarch64_watchpoint_offset): New.
9200 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9201 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9202 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9203 (aarch64_align_watchpoint): New parameters aligned_offset_p and
9204 next_addr_orig_p. Support PR external/20207 watchpoints.
9205 (aarch64_downgrade_regs): New.
9206 (aarch64_dr_state_insert_one_point): New parameters offset and
9207 addr_orig.
9208 (aarch64_dr_state_remove_one_point): Likewise.
9209 (aarch64_handle_breakpoint): Update caller.
9210 (aarch64_handle_aligned_watchpoint): Likewise.
9211 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9212 aligned_offset.
9213 (aarch64_linux_set_debug_regs): Remove const from state. Call
9214 aarch64_downgrade_regs.
9215 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9216 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9217 (DR_CONTROL_MASK): ... this.
9218 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9219 (unsigned int aarch64_watchpoint_offset): New prototype.
9220 (aarch64_linux_set_debug_regs): Remove const from state.
9221 * utils.c (align_up, align_down): Move to ...
9222 * common/common-utils.c (align_up, align_down): ... here.
9223 * utils.h (align_up, align_down): Move to ...
9224 * common/common-utils.h (align_up, align_down): ... here.
9225
9226 2018-05-04 Joel Brobecker <brobecker@adacore.com>
9227
9228 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9229 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9230 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9231 Re-implement to match the ABI as summarized in GCC's
9232 gcc/config/sparc/sparc.c. All callers updated.
9233 (sparc32_store_arguments): Remove assertion.
9234
9235 2018-05-04 Tom Tromey <tom@tromey.com>
9236
9237 * printcmd.c: Don't include tui.h.
9238 (decode_format): Use skip_spaces.
9239
9240 2018-05-04 Tom Tromey <tom@tromey.com>
9241
9242 PR gdb/22619:
9243 * printcmd.c (last_count): New global.
9244 (x_command): Use saved count when repeating.
9245
9246 2018-05-04 Tom Tromey <tom@tromey.com>
9247
9248 * nto-procfs.c (do_closedir_cleanup): Remove.
9249 (procfs_pidlist): Use gdb_dir_up.
9250 * procfs.c (do_closedir_cleanup): Remove.
9251 (proc_update_threads): Use gdb_dir_up.
9252 * common/filestuff.h (struct gdb_dir_deleter): New.
9253 (gdb_dir_up): New typedef.
9254
9255 2018-05-04 Tom Tromey <tom@tromey.com>
9256
9257 * ada-lang.c (print_mention_exception): Use std::string.
9258
9259 2018-05-04 Tom Tromey <tom@tromey.com>
9260
9261 * ada-lang.c (create_excep_cond_exprs): Update.
9262 (ada_exception_catchpoint_cond_string): Use std::string.
9263
9264 2018-05-04 Tom Tromey <tom@tromey.com>
9265
9266 * ada-lang.c (xget_renaming_scope): Return std::string.
9267 (old_renaming_is_invisible): Update.
9268
9269 2018-05-04 Tom Tromey <tom@tromey.com>
9270
9271 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
9272 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
9273
9274 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
9275
9276 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
9277
9278 2018-05-04 Tom Tromey <tom@tromey.com>
9279
9280 * remote.c (remote_query_supported_append): Change type.
9281 (remote_check_symbols): Update.
9282
9283 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
9284
9285 PR gdb/11420
9286 * configure.ac: Prepend libpython.
9287 * python/python-config.py: Likewise.
9288 * configure: Regenerate.
9289
9290 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
9291
9292 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
9293
9294 2018-05-03 Pedro Alves <palves@redhat.com>
9295
9296 * s390-linux-nat.c
9297 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
9298 override. Write 'true' instead of '1'.
9299 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
9300 declaration.
9301
9302 2018-05-02 Pedro Alves <palves@redhat.com>
9303
9304 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
9305 add_inf_child_target.
9306 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
9307 add_inf_child_target.
9308 * aix-thread.c (aix_thread_target_info): New.
9309 (aix_thread_target) <shortname, longname, doc>: Delete.
9310 <info>: New.
9311 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
9312 add_inf_child_target.
9313 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
9314 add_inf_child_target.
9315 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
9316 add_inf_child_target.
9317 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
9318 add_inf_child_target.
9319 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
9320 add_inf_child_target.
9321 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
9322 add_inf_child_target.
9323 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
9324 add_inf_child_target.
9325 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
9326 add_inf_child_target.
9327 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
9328 add_inf_child_target.
9329 * bfd-target.c (target_bfd_target_info): New.
9330 (target_bfd) <shortname, longname, doc>: Delete.
9331 <info>: New.
9332 * bsd-kvm.c (bsd_kvm_target_info): New.
9333 (bsd_kvm_target) <shortname, longname, doc>: Delete.
9334 <info>: New.
9335 (bsd_kvm_target::open): Rename to ...
9336 (bsd_kvm_target_open): ... this. Adjust.
9337 * bsd-uthread.c (bsd_uthread_target_info): New.
9338 (bsd_uthread_target) <shortname, longname, doc>: Delete.
9339 <info>: New.
9340 * corefile.c (core_file_command): Adjust.
9341 * corelow.c (core_target_info): New.
9342 (core_target) <shortname, longname, doc>: Delete.
9343 <info>: New.
9344 (core_target::open): Rename to ...
9345 (core_target_open): ... this. Adjust.
9346 * ctf.c (ctf_target_info): New.
9347 (ctf_target) <shortname, longname, doc>: Delete.
9348 <info>: New.
9349 (ctf_target::open): Rename to ...
9350 (ctf_target_open): ... this.
9351 (_initialize_ctf): Adjust.
9352 * exec.c (exec_target_info): New.
9353 (exec_target) <shortname, longname, doc>: Delete.
9354 <info>: New.
9355 (exec_target::open): Rename to ...
9356 (exec_target_open): ... this.
9357 * gdbcore.h (core_target_open): Declare.
9358 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9359 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9360 add_inf_child_target.
9361 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9362 add_inf_child_target.
9363 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9364 add_inf_child_target.
9365 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9366 add_inf_child_target.
9367 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9368 add_inf_child_target.
9369 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9370 add_inf_child_target.
9371 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9372 add_inf_child_target.
9373 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9374 add_inf_child_target.
9375 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9376 add_inf_child_target.
9377 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9378 add_inf_child_target.
9379 * inf-child.c (inf_child_target_info): New.
9380 (inf_child_target::info): New.
9381 (inf_child_open_target): Remove 'target' parameter. Use
9382 get_native_target instead.
9383 (inf_child_target::open): Delete.
9384 (add_inf_child_target): New.
9385 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9386 Delete.
9387 <info>: New.
9388 (add_inf_child_target): Declare.
9389 (inf_child_open_target): Declare.
9390 * linux-thread-db.c (thread_db_target_info): New.
9391 (thread_db_target) <shortname, longname, doc>: Delete.
9392 <info>: New.
9393 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9394 add_inf_child_target.
9395 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9396 add_inf_child_target.
9397 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9398 add_inf_child_target.
9399 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9400 add_inf_child_target.
9401 * make-target-delegates (print_class): Adjust.
9402 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9403 add_inf_child_target.
9404 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9405 add_inf_child_target.
9406 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9407 add_inf_child_target.
9408 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9409 add_inf_child_target.
9410 * nto-procfs.c (nto_native_target_info): New.
9411 (nto_procfs_target_native) <shortname, longname, doc>:
9412 Delete.
9413 <info>: New.
9414 (nto_procfs_target_info): New.
9415 (nto_procfs_target_procfs) <shortname, longname, doc>:
9416 Delete.
9417 <info>: New.
9418 (init_procfs_targets): Adjust.
9419 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9420 add_inf_child_target.
9421 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9422 add_inf_child_target.
9423 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9424 add_inf_child_target.
9425 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9426 add_inf_child_target.
9427 * ravenscar-thread.c (ravenscar_target_info): New.
9428 (ravenscar_thread_target) <shortname, longname, doc>:
9429 Delete.
9430 <info>: New.
9431 * record-btrace.c (record_btrace_target_info):
9432 (record_btrace_target) <shortname, longname, doc>: Delete.
9433 <info>: New.
9434 (record_btrace_target::open): Rename to ...
9435 (record_btrace_target_open): ... this. Adjust.
9436 * record-full.c (record_longname, record_doc): New.
9437 (record_full_base_target) <shortname, longname, doc>: Delete.
9438 <info>: New.
9439 (record_full_target_info): New.
9440 (record_full_target): <shortname>: Delete.
9441 <info>: New.
9442 (record_full_core_open_1, record_full_open_1): Update comments.
9443 (record_full_base_target::open): Rename to ...
9444 (record_full_open): ... this.
9445 (cmd_record_full_restore): Update.
9446 (_initialize_record_full): Update.
9447 * remote-sim.c (remote_sim_target_info): New.
9448 (gdbsim_target) <shortname, longname, doc>: Delete.
9449 <info>: New.
9450 (gdbsim_target::open): Rename to ...
9451 (gdbsim_target_open): ... this.
9452 (_initialize_remote_sim): Adjust.
9453 * remote.c (remote_doc): New.
9454 (remote_target_info): New.
9455 (remote_target) <shortname, longname, doc>: Delete.
9456 <info>: New.
9457 (extended_remote_target_info): New.
9458 (extended_remote_target) <shortname, longname, doc>: Delete.
9459 <info>: New.
9460 (remote_target::open_1): Make static. Adjust.
9461 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
9462 * s390-linux-nat.c (_initialize_s390_nat): Use
9463 add_inf_child_target.
9464 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
9465 add_inf_child_target.
9466 * sol-thread.c (thread_db_target_info): New.
9467 (sol_thread_target) <shortname, longname, doc>: Delete.
9468 <info>: New.
9469 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
9470 add_inf_child_target.
9471 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
9472 add_inf_child_target.
9473 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
9474 add_inf_child_target.
9475 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
9476 add_inf_child_target.
9477 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
9478 add_inf_child_target.
9479 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
9480 add_inf_child_target.
9481 * spu-linux-nat.c (_initialize_spu_nat): Use
9482 add_inf_child_target.
9483 * spu-multiarch.c (spu_multiarch_target_info): New.
9484 (spu_multiarch_target) <shortname, longname, doc>: Delete.
9485 <info>: New.
9486 * target-delegates.c: Regenerate.
9487 * target.c: Include <unordered_map>.
9488 (target_ops_p): Delete.
9489 (DEF_VEC_P(target_ops_p)): Delete.
9490 (target_factories): New.
9491 (test_target_info): New.
9492 (test_target_ops::info): New.
9493 (open_target): Adjust to use target_factories.
9494 (add_target_with_completer): Rename to ...
9495 (add_target): ... this. Change prototype. Register target_info
9496 and open callback in target_factories. Register target_info in
9497 command context instead of target_ops.
9498 (add_target): Delete old implementation.
9499 (add_deprecated_target_alias): Change prototype. Adjust.
9500 (the_native_target): New.
9501 (set_native_target, get_native_target): New.
9502 (find_default_run_target): Use the_native_target.
9503 (find_attach_target, find_run_target): Simplify.
9504 (target_ops::open): Delete.
9505 (dummy_target_info): New.
9506 (dummy_target::shortname, dummy_target::longname)
9507 (dummy_target::doc): Delete.
9508 (dummy_target::info): New.
9509 (debug_target::shortname, debug_target::longname)
9510 (debug_target::doc): Delete.
9511 (debug_target::info): New.
9512 * target.h (struct target_info): New.
9513 (target_ops::~target_ops): Add comment.
9514 (target_ops::info): New.
9515 (target_ops::shortname, target_ops::longname, target_ops::doc): No
9516 longer virtual. Implement in terms of target_info.
9517 (set_native_target, get_native_target): Declare.
9518 (target_open_ftype): New.
9519 (add_target, add_target_with_completer)
9520 (add_deprecated_target_alias): Change prototype.
9521 (test_target) <shortname, longname, doc>: Delete.
9522 <info>: New.
9523 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
9524 add_inf_child_target.
9525 * tracefile-tfile.c (tfile_target_info): New.
9526 (tfile_target) <shortname, longname, doc>: Delete.
9527 <info>: New.
9528 (tfile_target::open): Rename to ...
9529 (tfile_target_open): ... this.
9530 (_initialize_tracefile_tfile): Adjust.
9531 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
9532 add_inf_child_target.
9533 * windows-nat.c (_initialize_windows_nat): Use
9534 add_inf_child_target.
9535 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
9536 add_inf_child_target.
9537
9538 2018-05-02 Pedro Alves <palves@redhat.com>
9539
9540 * linux-nat.h (linux_nat_target) <low_new_thread,
9541 low_delete_thread, low_new_fork, low_forget_process,
9542 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
9543 New virtual methods.
9544 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9545 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
9546 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
9547 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9548 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
9549 Delete.
9550 * linux-fork.c (delete_fork): Adjust to call low method.
9551 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
9552 (linux_nat_new_fork, linux_nat_forget_process_hook)
9553 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
9554 (linux_nat_status_is_event):
9555 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
9556 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
9557 to call low method.
9558 (sigtrap_is_event): Rename to ...
9559 (linux_nat_target::low_status_is_event): ... this.
9560 (linux_nat_set_status_is_event): Delete.
9561 (save_stop_reason, linux_nat_wait_1)
9562 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
9563 low methods.
9564 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9565 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9566 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9567 (linux_nat_set_prepare_to_resume): Delete.
9568 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
9569 low virtual methods.
9570 * amd64-linux-nat.c: Likewise.
9571 * arm-linux-nat.c: Likewise.
9572 * i386-linux-nat.c: Likewise.
9573 * ia64-linux-nat.c: Likewise.
9574 * mips-linux-nat.c: Likewise.
9575 * ppc-linux-nat.c: Likewise.
9576 * s390-linux-nat.c: Likewise.
9577 * sparc64-linux-nat.c: Likewise.
9578 * x86-linux-nat.c: Likewise.
9579 * x86-linux-nat.h: Include "nat/x86-linux.h".
9580 (x86_linux_nat_target) <low_new_fork, low_forget_process,
9581 low_prepare_to_resume, low_new_thread, low_delete_thread>:
9582 Override methods.
9583
9584 2018-05-02 Pedro Alves <palves@redhat.com>
9585
9586 * target.h (target_ops)
9587 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9588 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
9589 stopped_by_watchpoint, have_continuable_watchpoint,
9590 stopped_data_address, watchpoint_addr_within_range,
9591 can_accel_watchpoint_condition, can_run, thread_alive,
9592 has_all_memory, has_memory, has_stack, has_registers,
9593 has_execution, can_async_p, is_async_p, supports_non_stop,
9594 always_non_stop_p, can_execute_reverse, supports_multi_process,
9595 supports_enable_disable_tracepoint,
9596 supports_disable_randomization, supports_string_tracing,
9597 supports_evaluation_of_breakpoint_conditions,
9598 can_run_breakpoint_commands, filesystem_is_local,
9599 can_download_tracepoint, get_trace_state_variable_value,
9600 set_trace_notes, get_tib_address, use_agent, can_use_agent,
9601 record_is_replaying, record_will_replay,
9602 augmented_libraries_svr4_read>: Adjust to return bool.
9603 * aarch64-linux-nat.c: All implementations adjusted.
9604 * aix-thread.c: All implementations adjusted.
9605 * arm-linux-nat.c: All implementations adjusted.
9606 * breakpoint.c: All implementations adjusted.
9607 * bsd-kvm.c: All implementations adjusted.
9608 * bsd-uthread.c: All implementations adjusted.
9609 * corelow.c: All implementations adjusted.
9610 * ctf.c: All implementations adjusted.
9611 * darwin-nat.c: All implementations adjusted.
9612 * darwin-nat.h: All implementations adjusted.
9613 * exec.c: All implementations adjusted.
9614 * fbsd-nat.c: All implementations adjusted.
9615 * fbsd-nat.h: All implementations adjusted.
9616 * gnu-nat.c: All implementations adjusted.
9617 * gnu-nat.h: All implementations adjusted.
9618 * go32-nat.c: All implementations adjusted.
9619 * ia64-linux-nat.c: All implementations adjusted.
9620 * inf-child.c: All implementations adjusted.
9621 * inf-child.h: All implementations adjusted.
9622 * inf-ptrace.c: All implementations adjusted.
9623 * inf-ptrace.h: All implementations adjusted.
9624 * linux-nat.c: All implementations adjusted.
9625 * linux-nat.h: All implementations adjusted.
9626 * mips-linux-nat.c: All implementations adjusted.
9627 * nto-procfs.c: All implementations adjusted.
9628 * ppc-linux-nat.c: All implementations adjusted.
9629 * procfs.c: All implementations adjusted.
9630 * ravenscar-thread.c: All implementations adjusted.
9631 * record-btrace.c: All implementations adjusted.
9632 * record-full.c: All implementations adjusted.
9633 * remote-sim.c: All implementations adjusted.
9634 * remote.c: All implementations adjusted.
9635 * s390-linux-nat.c: All implementations adjusted.
9636 * sol-thread.c: All implementations adjusted.
9637 * spu-multiarch.c: All implementations adjusted.
9638 * target-delegates.c: All implementations adjusted.
9639 * target.c: All implementations adjusted.
9640 * target.h: All implementations adjusted.
9641 * tracefile-tfile.c: All implementations adjusted.
9642 * tracefile.c: All implementations adjusted.
9643 * tracefile.h: All implementations adjusted.
9644 * windows-nat.c: All implementations adjusted.
9645 * x86-linux-nat.h: All implementations adjusted.
9646 * x86-nat.h: All implementations adjusted.
9647
9648 2018-05-02 Pedro Alves <palves@redhat.com>
9649
9650 * make-target-delegates (scan_target_h): Don't trim lines here.
9651 Replace sequences of tabs and/or whitespace with a single
9652 whitespace.
9653 (top level, parsing methods): Trim each line before processing it
9654 here.
9655
9656 2018-05-02 Pedro Alves <palves@redhat.com>
9657 John Baldwin <jhb@freebsd.org>
9658
9659 * target.h (enum strata) <debug_stratum>: New.
9660 (struct target_ops) <all delegation methods>: Replace by C++
9661 virtual methods, and drop "to_" prefix. All references updated
9662 throughout.
9663 <to_shortname, to_longname, to_doc, to_data,
9664 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
9665 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
9666 virtual methods. All references updated throughout.
9667 <can_attach, supports_terminal_ours, can_create_inferior,
9668 get_thread_control_capabilities, attach_no_wait>: New
9669 virtual methods.
9670 <insert_breakpoint, remove_breakpoint>: Now
9671 TARGET_DEFAULT_NORETURN methods.
9672 <info_proc>: Now returns bool.
9673 <to_magic>: Delete.
9674 (OPS_MAGIC): Delete.
9675 (current_target): Delete. All references replaced by references
9676 to ...
9677 (target_stack): ... this. New.
9678 (target_shortname, target_longname): Adjust.
9679 (target_can_run): Now a function declaration.
9680 (default_child_has_all_memory, default_child_has_memory)
9681 (default_child_has_stack, default_child_has_registers)
9682 (default_child_has_execution): Remove target_ops parameter.
9683 (complete_target_initialization): Delete.
9684 (memory_breakpoint_target): New template class.
9685 (test_target_ops): Refactor as a C++ class with virtual methods.
9686 * make-target-delegates (NAME_PART): Tighten.
9687 (POINTER_PART, CP_SYMBOL): New.
9688 (SIMPLE_RETURN_PART): Reimplement.
9689 (VEC_RETURN_PART): Expect less.
9690 (RETURN_PART, VIRTUAL_PART): New.
9691 (METHOD): Adjust to C++ virtual methods.
9692 (scan_target_h): Remove reference to C99.
9693 (dname): Output "target_ops::" prefix.
9694 (write_function_header): Adjust to output a C++ class method.
9695 (write_declaration): New.
9696 (write_delegator): Adjust to output a C++ class method.
9697 (tdname): Output "dummy_target::" prefix.
9698 (write_tdefault, write_debugmethod): Adjust to output a C++ class
9699 method.
9700 (tdefault_names, debug_names): Delete.
9701 (return_types, tdefaults, styles, argtypes_array): New.
9702 (top level): All methods are delegators.
9703 (print_class): New.
9704 (top level): Print dummy_target and debug_target classes.
9705 * target-delegates.c: Regenerate.
9706 * target-debug.h (target_debug_print_enum_info_proc_what)
9707 (target_debug_print_thread_control_capabilities)
9708 (target_debug_print_thread_info_p): New.
9709 * target.c (dummy_target): Delete.
9710 (the_dummy_target, the_debug_target): New.
9711 (target_stack): Now extern.
9712 (set_targetdebug): Push/unpush debug target.
9713 (default_child_has_all_memory, default_child_has_memory)
9714 (default_child_has_stack, default_child_has_registers)
9715 (default_child_has_execution): Remove target_ops parameter.
9716 (complete_target_initialization): Delete.
9717 (add_target_with_completer): No longer call
9718 complete_target_initialization.
9719 (target_supports_terminal_ours): Use regular delegation.
9720 (update_current_target): Delete.
9721 (push_target): No longer check magic number. Don't call
9722 update_current_target.
9723 (unpush_target): Don't call update_current_target.
9724 (target_is_pushed): No longer check magic number.
9725 (target_require_runnable): Skip for all stratums over
9726 process_stratum.
9727 (target_ops::info_proc): New.
9728 (target_info_proc): Use find_target_at and
9729 find_default_run_target.
9730 (target_supports_disable_randomization): Use regular delegation.
9731 (target_get_osdata): Use find_target_at.
9732 (target_ops::open, target_ops::close, target_ops::can_attach)
9733 (target_ops::attach, target_ops::can_create_inferior)
9734 (target_ops::create_inferior, target_ops::can_run)
9735 (target_can_run): New.
9736 (default_fileio_target): Use regular delegation.
9737 (target_ops::fileio_open, target_ops::fileio_pwrite)
9738 (target_ops::fileio_pread, target_ops::fileio_fstat)
9739 (target_ops::fileio_close, target_ops::fileio_unlink)
9740 (target_ops::fileio_readlink): New.
9741 (target_fileio_open_1, target_fileio_unlink)
9742 (target_fileio_readlink): Always call the target method. Handle
9743 FILEIO_ENOSYS.
9744 (return_zero, return_zero_has_execution): Delete.
9745 (init_dummy_target): Delete.
9746 (dummy_target::dummy_target, dummy_target::shortname)
9747 (dummy_target::longname, dummy_target::doc)
9748 (debug_target::debug_target, debug_target::shortname)
9749 (debug_target::longname, debug_target::doc): New.
9750 (target_supports_delete_record): Use regular delegation.
9751 (setup_target_debug): Delete.
9752 (maintenance_print_target_stack): Skip debug_stratum.
9753 (initialize_targets): Instantiate the_dummy_target and
9754 the_debug_target.
9755 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
9756 use target_stack.
9757 (target_auxv_search, fprint_target_auxv): Adjust.
9758 (info_auxv_command): Adjust to use target_stack.
9759 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
9760 * exceptions.c (print_flush): Handle a NULL target_stack.
9761 * regcache.c (target_ops_no_register): Refactor as class with
9762 virtual methods.
9763
9764 * exec.c (exec_target): New class.
9765 (exec_ops): Now an exec_target.
9766 (exec_open, exec_close_1, exec_get_section_table)
9767 (exec_xfer_partial, exec_files_info, exec_has_memory)
9768 (exec_make_note_section): Refactor as exec_target methods.
9769 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
9770 Delete.
9771 (exec_target::find_memory_regions): New.
9772 (_initialize_exec): Don't call init_exec_ops.
9773 * gdbcore.h (exec_file_clear): Delete.
9774
9775 * corefile.c (core_target): Delete.
9776 (core_file_command): Adjust.
9777 * corelow.c (core_target): New class.
9778 (the_core_target): New.
9779 (core_close): Remove target_ops parameter.
9780 (core_close_cleanup): Adjust.
9781 (core_target::close): New.
9782 (core_open, core_detach, get_core_registers, core_files_info)
9783 (core_xfer_partial, core_thread_alive, core_read_description)
9784 (core_pid_to_str, core_thread_name, core_has_memory)
9785 (core_has_stack, core_has_registers, core_info_proc): Rework as
9786 core_target methods.
9787 (ignore, core_remove_breakpoint, init_core_ops): Delete.
9788 (_initialize_corelow): Initialize the_core_target.
9789 * gdbcore.h (core_target): Delete.
9790 (the_core_target): New.
9791
9792 * ctf.c: (ctf_target): New class.
9793 (ctf_ops): Now a ctf_target.
9794 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
9795 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
9796 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
9797 methods.
9798 (init_ctf_ops): Delete.
9799 (_initialize_ctf): Don't call it.
9800 * tracefile-tfile.c (tfile_target): New class.
9801 (tfile_ops): Now a tfile_target.
9802 (tfile_open, tfile_close, tfile_files_info)
9803 (tfile_get_tracepoint_status, tfile_trace_find)
9804 (tfile_fetch_registers, tfile_xfer_partial)
9805 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
9806 Refactor as tfile_target methods.
9807 (tfile_xfer_partial_features): Remove target_ops parameter.
9808 (init_tfile_ops): Delete.
9809 (_initialize_tracefile_tfile): Don't call it.
9810 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
9811 (tracefile_has_stack, tracefile_has_registers)
9812 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
9813 tracefile_target methods.
9814 (init_tracefile_ops): Delete.
9815 (tracefile_target::tracefile_target): New.
9816 * tracefile.h: Include "target.h".
9817 (tracefile_target): New class.
9818 (init_tracefile_ops): Delete.
9819
9820 * spu-multiarch.c (spu_multiarch_target): New class.
9821 (spu_ops): Now a spu_multiarch_target.
9822 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9823 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9824 (spu_search_memory, spu_mourn_inferior): Refactor as
9825 spu_multiarch_target methods.
9826 (init_spu_ops): Delete.
9827 (_initialize_spu_multiarch): Remove references to init_spu_ops,
9828 complete_target_initialization.
9829
9830 * ravenscar-thread.c (ravenscar_thread_target): New class.
9831 (ravenscar_ops): Now a ravenscar_thread_target.
9832 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9833 (ravenscar_thread_alive, ravenscar_pid_to_str)
9834 (ravenscar_fetch_registers, ravenscar_store_registers)
9835 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9836 (ravenscar_stopped_by_hw_breakpoint)
9837 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9838 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9839 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9840 methods.
9841 (init_ravenscar_thread_ops): Delete.
9842 (_initialize_ravenscar): Remove references to
9843 init_ravenscar_thread_ops and complete_target_initialization.
9844
9845 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9846 (bsd_uthread_target): New class.
9847 (bsd_uthread_ops): Now a bsd_uthread_target.
9848 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9849 (bsd_uthread_close, bsd_uthread_mourn_inferior)
9850 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9851 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9852 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9853 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9854 (bsd_uthread_target): Delete function.
9855 (_initialize_bsd_uthread): Remove reference to
9856 complete_target_initialization.
9857
9858 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
9859 (target_bfd): ... this new class.
9860 (target_bfd_xfer_partial, target_bfd_get_section_table)
9861 (target_bfd_close): Refactor as target_bfd methods.
9862 (target_bfd::~target_bfd): New.
9863 (target_bfd_reopen): Adjust.
9864 (target_bfd::close): New.
9865
9866 * record-btrace.c (record_btrace_target): New class.
9867 (record_btrace_ops): Now a record_btrace_target.
9868 (record_btrace_open, record_btrace_stop_recording)
9869 (record_btrace_disconnect, record_btrace_close)
9870 (record_btrace_async, record_btrace_info)
9871 (record_btrace_insn_history, record_btrace_insn_history_range)
9872 (record_btrace_insn_history_from, record_btrace_call_history)
9873 (record_btrace_call_history_range)
9874 (record_btrace_call_history_from, record_btrace_record_method)
9875 (record_btrace_is_replaying, record_btrace_will_replay)
9876 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9877 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9878 (record_btrace_store_registers, record_btrace_prepare_to_store)
9879 (record_btrace_to_get_unwinder)
9880 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9881 (record_btrace_commit_resume, record_btrace_wait)
9882 (record_btrace_stop, record_btrace_can_execute_reverse)
9883 (record_btrace_stopped_by_sw_breakpoint)
9884 (record_btrace_supports_stopped_by_sw_breakpoint)
9885 (record_btrace_stopped_by_hw_breakpoint)
9886 (record_btrace_supports_stopped_by_hw_breakpoint)
9887 (record_btrace_update_thread_list, record_btrace_thread_alive)
9888 (record_btrace_goto_begin, record_btrace_goto_end)
9889 (record_btrace_goto, record_btrace_stop_replaying_all)
9890 (record_btrace_execution_direction)
9891 (record_btrace_prepare_to_generate_core)
9892 (record_btrace_done_generating_core): Refactor as
9893 record_btrace_target methods.
9894 (init_record_btrace_ops): Delete.
9895 (_initialize_record_btrace): Remove reference to
9896 init_record_btrace_ops.
9897 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9898 the execution_direction global.
9899 (record_full_base_target, record_full_target)
9900 (record_full_core_target): New classes.
9901 (record_full_ops): Now a record_full_target.
9902 (record_full_core_ops): Now a record_full_core_target.
9903 (record_full_target::detach, record_full_target::disconnect)
9904 (record_full_core_target::disconnect)
9905 (record_full_target::mourn_inferior, record_full_target::kill):
9906 New.
9907 (record_full_open, record_full_close, record_full_async): Refactor
9908 as methods of the record_full_base_target class.
9909 (record_full_resume, record_full_commit_resume): Refactor
9910 as methods of the record_full_target class.
9911 (record_full_wait, record_full_stopped_by_watchpoint)
9912 (record_full_stopped_data_address)
9913 (record_full_stopped_by_sw_breakpoint)
9914 (record_full_supports_stopped_by_sw_breakpoint)
9915 (record_full_stopped_by_hw_breakpoint)
9916 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9917 methods of the record_full_base_target class.
9918 (record_full_store_registers, record_full_xfer_partial)
9919 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9920 Refactor as methods of the record_full_target class.
9921 (record_full_can_execute_reverse, record_full_get_bookmark)
9922 (record_full_goto_bookmark, record_full_execution_direction)
9923 (record_full_record_method, record_full_info, record_full_delete)
9924 (record_full_is_replaying, record_full_will_replay)
9925 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9926 (record_full_stop_replaying): Refactor as methods of the
9927 record_full_base_target class.
9928 (record_full_core_resume, record_full_core_kill)
9929 (record_full_core_fetch_registers)
9930 (record_full_core_prepare_to_store)
9931 (record_full_core_store_registers, record_full_core_xfer_partial)
9932 (record_full_core_insert_breakpoint)
9933 (record_full_core_remove_breakpoint)
9934 (record_full_core_has_execution): Refactor
9935 as methods of the record_full_core_target class.
9936 (record_full_base_target::supports_delete_record): New.
9937 (init_record_full_ops): Delete.
9938 (init_record_full_core_ops): Delete.
9939 (record_full_save): Refactor as method of the
9940 record_full_base_target class.
9941 (_initialize_record_full): Remove references to
9942 init_record_full_ops and init_record_full_core_ops.
9943
9944 * remote.c (remote_target, extended_remote_target): New classes.
9945 (remote_ops): Now a remote_target.
9946 (extended_remote_ops): Now an extended_remote_target.
9947 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9948 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9949 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9950 (remote_pass_signals, remote_set_syscall_catchpoint)
9951 (remote_program_signals, )
9952 (remote_thread_always_alive): Remove target_ops parameter.
9953 (remote_thread_alive, remote_thread_name)
9954 (remote_update_thread_list, remote_threads_extra_info)
9955 (remote_static_tracepoint_marker_at)
9956 (remote_static_tracepoint_markers_by_strid)
9957 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9958 (remote_open): Refactor as methods of remote_target.
9959 (extended_remote_open, extended_remote_detach)
9960 (extended_remote_attach, extended_remote_post_attach):
9961 (extended_remote_supports_disable_randomization)
9962 (extended_remote_create_inferior): : Refactor as method of
9963 extended_remote_target.
9964 (remote_set_permissions, remote_open_1, remote_detach)
9965 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9966 (remote_resume, remote_commit_resume, remote_stop)
9967 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9968 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9969 (remote_prepare_to_store, remote_store_registers)
9970 (remote_flash_erase, remote_flash_done, remote_files_info)
9971 (remote_kill, remote_mourn, remote_insert_breakpoint)
9972 (remote_remove_breakpoint, remote_insert_watchpoint)
9973 (remote_watchpoint_addr_within_range)
9974 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9975 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9976 (remote_supports_stopped_by_sw_breakpoint)
9977 (remote_stopped_by_hw_breakpoint)
9978 (remote_supports_stopped_by_hw_breakpoint)
9979 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9980 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9981 (remote_verify_memory): Refactor as methods of remote_target.
9982 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9983 parameter.
9984 (remote_xfer_partial, remote_get_memory_xfer_limit)
9985 (remote_search_memory, remote_rcmd, remote_memory_map)
9986 (remote_pid_to_str, remote_get_thread_local_address)
9987 (remote_get_tib_address, remote_read_description): Refactor as
9988 methods of remote_target.
9989 (remote_target::fileio_open, remote_target::fileio_pwrite)
9990 (remote_target::fileio_pread, remote_target::fileio_close): New.
9991 (remote_hostio_readlink, remote_hostio_fstat)
9992 (remote_filesystem_is_local, remote_can_execute_reverse)
9993 (remote_supports_non_stop, remote_supports_disable_randomization)
9994 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9995 (remote_supports_enable_disable_tracepoint)
9996 (remote_supports_string_tracing)
9997 (remote_can_run_breakpoint_commands, remote_trace_init)
9998 (remote_download_tracepoint, remote_can_download_tracepoint)
9999 (remote_download_trace_state_variable, remote_enable_tracepoint)
10000 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10001 (remote_trace_start, remote_get_trace_status)
10002 (remote_get_tracepoint_status, remote_trace_stop)
10003 (remote_trace_find, remote_get_trace_state_variable_value)
10004 (remote_save_trace_data, remote_get_raw_trace_data)
10005 (remote_set_disconnected_tracing, remote_core_of_thread)
10006 (remote_set_circular_trace_buffer, remote_traceframe_info)
10007 (remote_get_min_fast_tracepoint_insn_len)
10008 (remote_set_trace_buffer_size, remote_set_trace_notes)
10009 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10010 (remote_disable_btrace, remote_teardown_btrace)
10011 (remote_read_btrace, remote_btrace_conf)
10012 (remote_augmented_libraries_svr4_read, remote_load)
10013 (remote_pid_to_exec_file, remote_can_do_single_step)
10014 (remote_execution_direction, remote_thread_handle_to_thread_info):
10015 Refactor as methods of remote_target.
10016 (init_remote_ops, init_extended_remote_ops): Delete.
10017 (remote_can_async_p, remote_is_async_p, remote_async)
10018 (remote_thread_events, remote_upload_tracepoints)
10019 (remote_upload_trace_state_variables): Refactor as methods of
10020 remote_target.
10021 (_initialize_remote): Remove references to init_remote_ops and
10022 init_extended_remote_ops.
10023
10024 * remote-sim.c (gdbsim_target): New class.
10025 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10026 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10027 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10028 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10029 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
10030 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
10031 Refactor as methods of gdbsim_target.
10032 (gdbsim_ops): Now a gdbsim_target.
10033 (init_gdbsim_ops): Delete.
10034 (gdbsim_cntrl_c): Adjust.
10035 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
10036
10037 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
10038 (the_amd64_linux_nat_target): New.
10039 (amd64_linux_fetch_inferior_registers)
10040 (amd64_linux_store_inferior_registers): Refactor as methods of
10041 amd64_linux_nat_target.
10042 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
10043 * i386-linux-nat.c: Don't include "linux-nat.h".
10044 (i386_linux_nat_target): New class.
10045 (the_i386_linux_nat_target): New.
10046 (i386_linux_fetch_inferior_registers)
10047 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
10048 as methods of i386_linux_nat_target.
10049 (_initialize_i386_linux_nat): Adjust. Set linux_target.
10050 * inf-child.c (inf_child_ops): Delete.
10051 (inf_child_fetch_inferior_registers)
10052 (inf_child_store_inferior_registers): Delete.
10053 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
10054 methods of inf_child_target.
10055 (inf_child_target::supports_terminal_ours)
10056 (inf_child_target::terminal_init)
10057 (inf_child_target::terminal_inferior)
10058 (inf_child_target::terminal_ours_for_output)
10059 (inf_child_target::terminal_ours, inf_child_target::interrupt)
10060 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
10061 New.
10062 (inf_child_open, inf_child_disconnect, inf_child_close)
10063 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
10064 (inf_child_post_startup_inferior, inf_child_can_run)
10065 (inf_child_pid_to_exec_file): Refactor as methods of
10066 inf_child_target.
10067 (inf_child_follow_fork): Delete.
10068 (inf_child_target::can_create_inferior)
10069 (inf_child_target::can_attach): New.
10070 (inf_child_target::has_all_memory, inf_child_target::has_memory)
10071 (inf_child_target::has_stack, inf_child_target::has_registers)
10072 (inf_child_target::has_execution): New.
10073 (inf_child_fileio_open, inf_child_fileio_pwrite)
10074 (inf_child_fileio_pread, inf_child_fileio_fstat)
10075 (inf_child_fileio_close, inf_child_fileio_unlink)
10076 (inf_child_fileio_readlink, inf_child_use_agent)
10077 (inf_child_can_use_agent): Refactor as methods of
10078 inf_child_target.
10079 (return_zero, inf_child_target): Delete.
10080 (inf_child_target::inf_child_target): New.
10081 * inf-child.h: Include "target.h".
10082 (inf_child_target): Delete function prototype.
10083 (inf_child_target): New class.
10084 (inf_child_open_target, inf_child_mourn_inferior)
10085 (inf_child_maybe_unpush_target): Delete.
10086 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
10087 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
10088 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
10089 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
10090 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
10091 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
10092 (inf_ptrace_wait, inf_ptrace_xfer_partial)
10093 (inf_ptrace_thread_alive, inf_ptrace_files_info)
10094 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
10095 methods of inf_ptrace_target.
10096 (inf_ptrace_target): Delete function.
10097 * inf-ptrace.h: Include "inf-child.h".
10098 (inf_ptrace_target): Delete function declaration.
10099 (inf_ptrace_target): New class.
10100 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
10101 * linux-nat.c (linux_target): New.
10102 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
10103 (linux_nat_target::~linux_nat_target): New.
10104 (linux_child_post_attach, linux_child_post_startup_inferior)
10105 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
10106 (linux_child_remove_fork_catchpoint)
10107 (linux_child_insert_vfork_catchpoint)
10108 (linux_child_remove_vfork_catchpoint)
10109 (linux_child_insert_exec_catchpoint)
10110 (linux_child_remove_exec_catchpoint)
10111 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
10112 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
10113 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
10114 (linux_nat_stopped_data_address)
10115 (linux_nat_stopped_by_sw_breakpoint)
10116 (linux_nat_supports_stopped_by_sw_breakpoint)
10117 (linux_nat_stopped_by_hw_breakpoint)
10118 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
10119 (linux_nat_kill, linux_nat_mourn_inferior)
10120 (linux_nat_xfer_partial, linux_nat_thread_alive)
10121 (linux_nat_update_thread_list, linux_nat_pid_to_str)
10122 (linux_nat_thread_name, linux_child_pid_to_exec_file)
10123 (linux_child_static_tracepoint_markers_by_strid)
10124 (linux_nat_is_async_p, linux_nat_can_async_p)
10125 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
10126 (linux_nat_supports_multi_process)
10127 (linux_nat_supports_disable_randomization, linux_nat_async)
10128 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
10129 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
10130 (linux_nat_fileio_open, linux_nat_fileio_readlink)
10131 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
10132 methods of linux_nat_target.
10133 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
10134 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
10135 parameter.
10136 (check_stopped_by_watchpoint): Adjust.
10137 (linux_xfer_partial): Delete.
10138 (linux_target_install_ops, linux_target, linux_nat_add_target):
10139 Delete.
10140 (linux_nat_target::linux_nat_target): New.
10141 * linux-nat.h: Include "inf-ptrace.h".
10142 (linux_nat_target): New.
10143 (linux_target, linux_target_install_ops, linux_nat_add_target):
10144 Delete function declarations.
10145 (linux_target): Declare global.
10146 * linux-thread-db.c (thread_db_target): New.
10147 (thread_db_target::thread_db_target): New.
10148 (thread_db_ops): Delete.
10149 (the_thread_db_target): New.
10150 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
10151 (thread_db_update_thread_list, thread_db_pid_to_str)
10152 (thread_db_extra_thread_info)
10153 (thread_db_thread_handle_to_thread_info)
10154 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
10155 (thread_db_resume): Refactor as methods of thread_db_target.
10156 (init_thread_db_ops): Delete.
10157 (_initialize_thread_db): Remove reference to init_thread_db_ops.
10158 * x86-linux-nat.c: Don't include "linux-nat.h".
10159 (super_post_startup_inferior): Delete.
10160 (x86_linux_nat_target::~x86_linux_nat_target): New.
10161 (x86_linux_child_post_startup_inferior)
10162 (x86_linux_read_description, x86_linux_enable_btrace)
10163 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
10164 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
10165 methods of x86_linux_nat_target.
10166 (x86_linux_create_target): Delete. Bits folded ...
10167 (x86_linux_add_target): ... here. Now takes a linux_nat_target
10168 pointer.
10169 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
10170 (x86_linux_nat_target): New class.
10171 (x86_linux_create_target): Delete.
10172 (x86_linux_add_target): Now takes a linux_nat_target pointer.
10173 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
10174 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
10175 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
10176 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
10177 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
10178 make extern.
10179 (x86_use_watchpoints): Delete.
10180 * x86-nat.h: Include "breakpoint.h" and "target.h".
10181 (x86_use_watchpoints): Delete.
10182 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
10183 (x86_stopped_by_watchpoint, x86_stopped_data_address)
10184 (x86_insert_watchpoint, x86_remove_watchpoint)
10185 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
10186 (x86_stopped_by_hw_breakpoint): New declarations.
10187 (x86_nat_target): New template class.
10188
10189 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10190 (the_ppc_linux_nat_target): New.
10191 (ppc_linux_fetch_inferior_registers)
10192 (ppc_linux_can_use_hw_breakpoint)
10193 (ppc_linux_region_ok_for_hw_watchpoint)
10194 (ppc_linux_ranged_break_num_registers)
10195 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10196 (ppc_linux_insert_mask_watchpoint)
10197 (ppc_linux_remove_mask_watchpoint)
10198 (ppc_linux_can_accel_watchpoint_condition)
10199 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10200 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10201 (ppc_linux_watchpoint_addr_within_range)
10202 (ppc_linux_masked_watch_num_registers)
10203 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10204 (ppc_linux_read_description): Refactor as methods of
10205 ppc_linux_nat_target.
10206 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
10207
10208 * procfs.c (procfs_xfer_partial): Delete forward declaration.
10209 (procfs_target): New class.
10210 (the_procfs_target): New.
10211 (procfs_target): Delete function.
10212 (procfs_auxv_parse, procfs_attach, procfs_detach)
10213 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10214 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10215 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10216 (procfs_create_inferior, procfs_update_thread_list)
10217 (procfs_thread_alive, procfs_pid_to_str)
10218 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10219 (procfs_stopped_data_address, procfs_insert_watchpoint)
10220 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10221 (proc_find_memory_regions, procfs_info_proc)
10222 (procfs_make_note_section): Refactor as methods of procfs_target.
10223 (_initialize_procfs): Adjust.
10224 * sol-thread.c (sol_thread_target): New class.
10225 (sol_thread_ops): Now a sol_thread_target.
10226 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10227 (sol_thread_fetch_registers, sol_thread_store_registers)
10228 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10229 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10230 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10231 (init_sol_thread_ops): Delete.
10232 (_initialize_sol_thread): Adjust. Remove references to
10233 init_sol_thread_ops and complete_target_initialization.
10234
10235 * windows-nat.c (windows_nat_target): New class.
10236 (windows_fetch_inferior_registers)
10237 (windows_store_inferior_registers, windows_resume, windows_wait)
10238 (windows_attach, windows_detach, windows_pid_to_exec_file)
10239 (windows_files_info, windows_create_inferior)
10240 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10241 (windows_close, windows_pid_to_str, windows_xfer_partial)
10242 (windows_get_tib_address, windows_get_ada_task_ptid)
10243 (windows_thread_name, windows_thread_alive): Refactor as
10244 windows_nat_target methods.
10245 (do_initial_windows_stuff): Adjust.
10246 (windows_target): Delete function.
10247 (_initialize_windows_nat): Adjust.
10248
10249 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
10250 (darwin_mourn_inferior, darwin_kill_inferior)
10251 (darwin_create_inferior, darwin_attach, darwin_detach)
10252 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
10253 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
10254 (darwin_supports_multi_process): Refactor as darwin_nat_target
10255 methods.
10256 (darwin_resume_to, darwin_files_info): Delete.
10257 (_initialize_darwin_inferior): Rename to ...
10258 (_initialize_darwin_nat): ... this. Adjust to C++ification.
10259 * darwin-nat.h: Include "inf-child.h".
10260 (darwin_nat_target): New class.
10261 (darwin_complete_target): Delete.
10262 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
10263 (darwin_target): New.
10264 (i386_darwin_fetch_inferior_registers)
10265 (i386_darwin_store_inferior_registers): Refactor as methods of
10266 darwin_nat_target.
10267 (darwin_complete_target): Delete, with ...
10268 (_initialize_i386_darwin_nat): ... bits factored out here.
10269
10270 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
10271 (the_alpha_linux_nat_target): New.
10272 (alpha_linux_register_u_offset): Refactor as
10273 alpha_linux_nat_target method.
10274 (_initialize_alpha_linux_nat): Adjust.
10275 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
10276 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10277 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
10278 methods of linux_nat_trad_target.
10279 (linux_trad_target): Delete.
10280 * linux-nat-trad.h (linux_trad_target): Delete function.
10281 (linux_nat_trad_target): New class.
10282 * mips-linux-nat.c (mips_linux_nat_target): New class.
10283 (super_fetch_registers, super_store_registers, super_close):
10284 Delete.
10285 (the_mips_linux_nat_target): New.
10286 (mips64_linux_regsets_fetch_registers)
10287 (mips64_linux_regsets_store_registers)
10288 (mips64_linux_fetch_registers, mips64_linux_store_registers)
10289 (mips_linux_register_u_offset, mips_linux_read_description)
10290 (mips_linux_can_use_hw_breakpoint)
10291 (mips_linux_stopped_by_watchpoint)
10292 (mips_linux_stopped_data_address)
10293 (mips_linux_region_ok_for_hw_watchpoint)
10294 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10295 (mips_linux_close): Refactor as methods of mips_linux_nat.
10296 (_initialize_mips_linux_nat): Adjust to C++ification.
10297
10298 * aix-thread.c (aix_thread_target): New class.
10299 (aix_thread_ops): Now an aix_thread_target.
10300 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10301 (aix_thread_fetch_registers, aix_thread_store_registers)
10302 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10303 (aix_thread_thread_alive, aix_thread_pid_to_str)
10304 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
10305 Refactor as methods of aix_thread_target.
10306 (init_aix_thread_ops): Delete.
10307 (_initialize_aix_thread): Remove references to init_aix_thread_ops
10308 and complete_target_initialization.
10309 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
10310 (rs6000_nat_target): New class.
10311 (the_rs6000_nat_target): New.
10312 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
10313 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
10314 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
10315 (super_create_inferior): Delete.
10316 (_initialize_rs6000_nat): Adjust to C++ification.
10317
10318 * arm-linux-nat.c (arm_linux_nat_target): New class.
10319 (the_arm_linux_nat_target): New.
10320 (arm_linux_fetch_inferior_registers)
10321 (arm_linux_store_inferior_registers, arm_linux_read_description)
10322 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
10323 (arm_linux_remove_hw_breakpoint)
10324 (arm_linux_region_ok_for_hw_watchpoint)
10325 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
10326 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
10327 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
10328 arm_linux_nat_target.
10329 (_initialize_arm_linux_nat): Adjust to C++ification.
10330
10331 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
10332 (the_aarch64_linux_nat_target): New.
10333 (aarch64_linux_fetch_inferior_registers)
10334 (aarch64_linux_store_inferior_registers)
10335 (aarch64_linux_child_post_startup_inferior)
10336 (aarch64_linux_read_description)
10337 (aarch64_linux_can_use_hw_breakpoint)
10338 (aarch64_linux_insert_hw_breakpoint)
10339 (aarch64_linux_remove_hw_breakpoint)
10340 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
10341 (aarch64_linux_region_ok_for_hw_watchpoint)
10342 (aarch64_linux_stopped_data_address)
10343 (aarch64_linux_stopped_by_watchpoint)
10344 (aarch64_linux_watchpoint_addr_within_range)
10345 (aarch64_linux_can_do_single_step): Refactor as methods of
10346 aarch64_linux_nat_target.
10347 (super_post_startup_inferior): Delete.
10348 (_initialize_aarch64_linux_nat): Adjust to C++ification.
10349
10350 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10351 (the_hppa_linux_nat_target): New.
10352 (hppa_linux_fetch_inferior_registers)
10353 (hppa_linux_store_inferior_registers): Refactor as methods of
10354 hppa_linux_nat_target.
10355 (_initialize_hppa_linux_nat): Adjust to C++ification.
10356
10357 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10358 (the_ia64_linux_nat_target): New.
10359 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10360 (ia64_linux_stopped_data_address)
10361 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10362 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10363 ia64_linux_nat_target methods.
10364 (super_xfer_partial): Delete.
10365 (_initialize_ia64_linux_nat): Adjust to C++ification.
10366
10367 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10368 (the_m32r_linux_nat_target): New.
10369 (m32r_linux_fetch_inferior_registers)
10370 (m32r_linux_store_inferior_registers): Refactor as
10371 m32r_linux_nat_target methods.
10372 (_initialize_m32r_linux_nat): Adjust to C++ification.
10373
10374 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10375 (the_m68k_linux_nat_target): New.
10376 (m68k_linux_fetch_inferior_registers)
10377 (m68k_linux_store_inferior_registers): Refactor as
10378 m68k_linux_nat_target methods.
10379 (_initialize_m68k_linux_nat): Adjust to C++ification.
10380
10381 * s390-linux-nat.c (s390_linux_nat_target): New class.
10382 (the_s390_linux_nat_target): New.
10383 (s390_linux_fetch_inferior_registers)
10384 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10385 (s390_insert_watchpoint, s390_remove_watchpoint)
10386 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10387 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10388 (s390_auxv_parse, s390_read_description): Refactor as methods of
10389 s390_linux_nat_target.
10390 (_initialize_s390_nat): Adjust to C++ification.
10391
10392 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10393 (the_sparc_linux_nat_target): New.
10394 (_initialize_sparc_linux_nat): Adjust to C++ification.
10395 * sparc-nat.c (sparc_fetch_inferior_registers)
10396 (sparc_store_inferior_registers): Remove target_ops parameter.
10397 * sparc-nat.h (sparc_fetch_inferior_registers)
10398 (sparc_store_inferior_registers): Remove target_ops parameter.
10399 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10400 (the_sparc64_linux_nat_target): New.
10401 (_initialize_sparc64_linux_nat): Adjust to C++ification.
10402
10403 * spu-linux-nat.c (spu_linux_nat_target): New class.
10404 (the_spu_linux_nat_target): New.
10405 (spu_child_post_startup_inferior, spu_child_post_attach)
10406 (spu_child_wait, spu_fetch_inferior_registers)
10407 (spu_store_inferior_registers, spu_xfer_partial)
10408 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10409 methods.
10410 (_initialize_spu_nat): Adjust to C++ification.
10411
10412 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10413 (the_tilegx_linux_nat_target): New.
10414 (fetch_inferior_registers, store_inferior_registers):
10415 Refactor as methods.
10416 (_initialize_tile_linux_nat): Adjust to C++ification.
10417
10418 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10419 (the_xtensa_linux_nat_target): New.
10420 (xtensa_linux_fetch_inferior_registers)
10421 (xtensa_linux_store_inferior_registers): Refactor as
10422 xtensa_linux_nat_target methods.
10423 (_initialize_xtensa_linux_nat): Adjust to C++ification.
10424
10425 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10426 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10427 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10428 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10429 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10430 (fbsd_stopped_by_sw_breakpoint)
10431 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10432 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10433 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10434 (fbsd_post_startup_inferior, fbsd_post_attach)
10435 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10436 (fbsd_set_syscall_catchpoint)
10437 (super_xfer_partial, super_resume, super_wait)
10438 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10439 (fbsd_handle_debug_trap): Remove target_ops parameter.
10440 (fbsd_nat_add_target): Delete.
10441 * fbsd-nat.h: Include "inf-ptrace.h".
10442 (fbsd_nat_add_target): Delete.
10443 (USE_SIGTRAP_SIGINFO): Define.
10444 (fbsd_nat_target): New class.
10445
10446 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10447 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10448 (amd64bsd_target): Delete.
10449 * amd64-bsd-nat.h: New file.
10450 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10451 "x86-bsd-nat.h".
10452 (amd64_fbsd_nat_target): New class.
10453 (the_amd64_fbsd_nat_target): New.
10454 (amd64fbsd_read_description): Refactor as method of
10455 amd64_fbsd_nat_target.
10456 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10457 (_initialize_amd64fbsd_nat): Adjust to C++ification.
10458 * amd64-nat.h (amd64bsd_target): Delete function declaration.
10459 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10460 (i386bsd_store_inferior_registers): Remove target_ops parameter.
10461 (i386bsd_target): Delete.
10462 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
10463 (i386bsd_fetch_inferior_registers)
10464 (i386bsd_store_inferior_registers): Declare.
10465 (i386_bsd_nat_target): New class.
10466 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
10467 (the_i386_fbsd_nat_target): New.
10468 (i386fbsd_resume, i386fbsd_read_description): Refactor as
10469 i386_fbsd_nat_target methods.
10470 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10471 (_initialize_i386fbsd_nat): Adjust to C++ification.
10472 * x86-bsd-nat.c (super_mourn_inferior): Delete.
10473 (x86bsd_mourn_inferior, x86bsd_target): Delete.
10474 (_initialize_x86_bsd_nat): Adjust to C++ification.
10475 * x86-bsd-nat.h: Include "x86-nat.h".
10476 (x86bsd_target): Delete declaration.
10477 (x86bsd_nat_target): New class.
10478
10479 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
10480 (the_aarch64_fbsd_nat_target): New.
10481 (aarch64_fbsd_fetch_inferior_registers)
10482 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
10483 aarch64_fbsd_nat_target.
10484 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
10485 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
10486 (the_alpha_bsd_nat_target): New.
10487 (alphabsd_fetch_inferior_registers)
10488 (alphabsd_store_inferior_registers): Refactor as
10489 alpha_bsd_nat_target methods.
10490 (_initialize_alphabsd_nat): Refactor as methods of
10491 alpha_bsd_nat_target.
10492 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
10493 (the_amd64_nbsd_nat_target): New.
10494 (_initialize_amd64nbsd_nat): Adjust to C++ification.
10495 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
10496 (the_amd64_obsd_nat_target): New.
10497 (_initialize_amd64obsd_nat): Adjust to C++ification.
10498 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
10499 (the_arm_fbsd_nat_target): New.
10500 (arm_fbsd_fetch_inferior_registers)
10501 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
10502 (_initialize_arm_fbsd_nat): Refactor as methods of
10503 arm_fbsd_nat_target.
10504 (_initialize_arm_fbsd_nat): Adjust to C++ification.
10505 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
10506 (the_arm_netbsd_nat_target): New.
10507 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
10508 arm_netbsd_nat_target.
10509 (_initialize_arm_netbsd_nat): Adjust to C++ification.
10510 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
10511 (the_hppa_nbsd_nat_target): New.
10512 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
10513 hppa_nbsd_nat_target methods.
10514 (_initialize_hppanbsd_nat): Adjust to C++ification.
10515 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
10516 (the_hppa_obsd_nat_target): New.
10517 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
10518 methods of hppa_obsd_nat_target.
10519 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
10520 add_target.
10521 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
10522 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
10523 add_target.
10524 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
10525 (_initialize_i386obsd_nat): Use add_target.
10526 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
10527 (the_m68k_bsd_nat_target): New.
10528 (m68kbsd_fetch_inferior_registers)
10529 (m68kbsd_store_inferior_registers): Refactor as methods of
10530 m68k_bsd_nat_target.
10531 (_initialize_m68kbsd_nat): Adjust to C++ification.
10532 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
10533 (the_mips_fbsd_nat_target): New.
10534 (mips_fbsd_fetch_inferior_registers)
10535 (mips_fbsd_store_inferior_registers): Refactor as methods of
10536 mips_fbsd_nat_target.
10537 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
10538 add_target.
10539 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
10540 (the_mips_nbsd_nat_target): New.
10541 (mipsnbsd_fetch_inferior_registers)
10542 (mipsnbsd_store_inferior_registers): Refactor as methods of
10543 mips_nbsd_nat_target.
10544 (_initialize_mipsnbsd_nat): Adjust to C++ification.
10545 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
10546 (the_mips64_obsd_nat_target): New.
10547 (mips64obsd_fetch_inferior_registers)
10548 (mips64obsd_store_inferior_registers): Refactor as methods of
10549 mips64_obsd_nat_target.
10550 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
10551 add_target.
10552 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
10553 nbsd_nat_target.
10554 * nbsd-nat.h: Include "inf-ptrace.h".
10555 (nbsd_nat_target): New class.
10556 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
10557 (obsd_wait): Refactor as methods of obsd_nat_target.
10558 (obsd_add_target): Delete.
10559 * obsd-nat.h: Include "inf-ptrace.h".
10560 (obsd_nat_target): New class.
10561 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
10562 (the_ppc_fbsd_nat_target): New.
10563 (ppcfbsd_fetch_inferior_registers)
10564 (ppcfbsd_store_inferior_registers): Refactor as methods of
10565 ppc_fbsd_nat_target.
10566 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
10567 add_target.
10568 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
10569 (the_ppc_nbsd_nat_target): New.
10570 (ppcnbsd_fetch_inferior_registers)
10571 (ppcnbsd_store_inferior_registers): Refactor as methods of
10572 ppc_nbsd_nat_target.
10573 (_initialize_ppcnbsd_nat): Adjust to C++ification.
10574 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
10575 (the_ppc_obsd_nat_target): New.
10576 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
10577 methods of ppc_obsd_nat_target.
10578 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
10579 add_target.
10580 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
10581 (the_sh_nbsd_nat_target): New.
10582 (shnbsd_fetch_inferior_registers)
10583 (shnbsd_store_inferior_registers): Refactor as methods of
10584 sh_nbsd_nat_target.
10585 (_initialize_shnbsd_nat): Adjust to C++ification.
10586 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
10587 (inf_ptrace_xfer_partial): Delete.
10588 (sparc_xfer_partial, sparc_target): Delete.
10589 * sparc-nat.h (sparc_fetch_inferior_registers)
10590 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
10591 (sparc_target): Delete function declaration.
10592 (sparc_target): New template class.
10593 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
10594 (_initialize_sparcnbsd_nat): Adjust to C++ification.
10595 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
10596 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
10597 add_target.
10598 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
10599 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
10600 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
10601 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
10602 add_target.
10603 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
10604 (the_vax_bsd_nat_target): New.
10605 (vaxbsd_fetch_inferior_registers)
10606 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
10607 methods.
10608 (_initialize_vaxbsd_nat): Adjust to C++ification.
10609
10610 * bsd-kvm.c (bsd_kvm_target): New class.
10611 (bsd_kvm_ops): Now a bsd_kvm_target.
10612 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
10613 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
10614 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
10615 bsd_kvm_target.
10616 (bsd_kvm_return_one): Delete.
10617 (bsd_kvm_add_target): Adjust to C++ification.
10618
10619 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
10620 (nto_procfs_target_procfs): New classes.
10621 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
10622 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
10623 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
10624 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
10625 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
10626 (procfs_remove_hw_breakpoint, procfs_resume)
10627 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
10628 (procfs_kill_inferior, procfs_store_registers)
10629 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
10630 as methods of nto_procfs_target.
10631 (nto_procfs_ops): Now an nto_procfs_target_procfs.
10632 (nto_native_ops): Delete.
10633 (procfs_open, procfs_native_open): Delete.
10634 (nto_native_ops): Now an nto_procfs_target_native.
10635 (init_procfs_targets): Adjust to C++ification.
10636 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
10637 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
10638 Refactor as methods of nto_procfs_target.
10639
10640 * go32-nat.c (go32_nat_target): New class.
10641 (the_go32_nat_target): New.
10642 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
10643 (go32_store_registers, go32_xfer_partial, go32_files_info)
10644 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
10645 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
10646 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
10647 (go32_pid_to_str): Refactor as methods of go32_nat_target.
10648 (go32_target): Delete.
10649 (_initialize_go32_nat): Adjust to C++ification.
10650
10651 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
10652 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
10653 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
10654 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
10655 gnu_nat_target.
10656 (gnu_target): Delete.
10657 * gnu-nat.h (gnu_target): Delete.
10658 (gnu_nat_target): New class.
10659 * i386-gnu-nat.c (gnu_base_target): New.
10660 (i386_gnu_nat_target): New class.
10661 (the_i386_gnu_nat_target): New.
10662 (_initialize_i386gnu_nat): Adjust to C++ification.
10663
10664 2018-05-02 Pedro Alves <palves@redhat.com>
10665
10666 * bfd-target.c (target_bfd_xclose): Rename to ...
10667 (target_bfd_close): ... this.
10668 (target_bfd_reopen): Adjust.
10669 * target.c (target_close): Remove references to to_xclose.
10670 * target.h (target_ops::to_xclose): Delete.
10671 (target_ops::to_close): Update comments.
10672
10673 2018-05-02 Pedro Alves <palves@redhat.com>
10674
10675 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
10676 "linux-nat.h".
10677 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
10678 * inf-ptrace.c (inf_ptrace_register_u_offset)
10679 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10680 (inf_ptrace_store_register, inf_ptrace_store_registers)
10681 (inf_ptrace_trad_target): Move to ...
10682 * linux-nat-trad.c: ... this new file.
10683 * linux-nat-trad.h: New file.
10684 * linux-nat.c (linux_target_install_ops): Make extern.
10685 (linux_trad_target): Delete.
10686 * linux-nat.h (linux_trad_target): Delete declaration.
10687 (linux_target_install_ops): Declare.
10688 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
10689 "linux-nat.h".
10690
10691 2018-05-02 Pedro Alves <palves@redhat.com>
10692
10693 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10694 procfs_target/add_target here.
10695 * procfs.c (procfs_target): Make static.
10696 (_initialize_procfs): Call add_target here.
10697 * procfs.h (struct target_ops): Remove forward declaration.
10698 (procfs_target): Remove declaration.
10699 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
10700
10701 2018-05-02 Pedro Alves <palves@redhat.com>
10702
10703 * procfs.c (procfs_stopped_by_watchpoint)
10704 (procfs_insert_watchpoint, procfs_remove_watchpoint)
10705 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
10706 Forward declare.
10707 (procfs_use_watchpoints): Delete, move contents...
10708 (procfs_target): ... here.
10709 * procfs.h (procfs_use_watchpoints): Delete declaration.
10710 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10711 procfs_use_watchpoints.
10712 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
10713 procfs_use_watchpoints.
10714
10715 2018-05-02 Tom Tromey <tom@tromey.com>
10716
10717 PR python/20084:
10718 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
10719 and var_zuinteger_unlimited.
10720 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
10721 and PARAM_ZUINTEGER_UNLIMITED.
10722 (set_parameter_value): Handle var_zuinteger and
10723 var_zuinteger_unlimited.
10724 (add_setshow_generic): Likewise.
10725 (parmpy_init): Likewise.
10726
10727 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
10728
10729 PR rust/23124
10730 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
10731 pointer is not null before dereferencing it.
10732
10733 2018-04-30 Tom Tromey <tom@tromey.com>
10734
10735 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
10736 is_mi_like_p.
10737
10738 2018-04-30 Tom Tromey <tom@tromey.com>
10739
10740 * breakpoint.c (mention): Remove use of is_mi_like_p.
10741 (print_mention_ranged_breakpoint): Likewise.
10742 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
10743 of is_mi_like_p.
10744
10745 2018-04-30 Tom Tromey <tom@tromey.com>
10746
10747 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
10748
10749 2018-04-30 Tom Tromey <tom@tromey.com>
10750
10751 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
10752 (info_spu_event_command): Remove some uses of is_mi_like_p.
10753
10754 2018-04-30 Tom Tromey <tom@tromey.com>
10755
10756 * python/py-framefilter.c (py_print_single_arg)
10757 (enumerate_locals, py_print_args, py_print_frame): Remove some
10758 uses of is_mi_like_p.
10759
10760 2018-04-30 Tom Tromey <tom@tromey.com>
10761
10762 * ui-out.c: Update.
10763 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
10764 * ui-out.h (ui_out::is_mi_like_p): Now const.
10765 (ui_out::do_is_mi_like_p): Now const.
10766 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
10767
10768 2018-04-30 Tom Tromey <tom@tromey.com>
10769
10770 * varobj.c (varobj_set_visualizer): Use new_reference.
10771 * python/python.c (gdbpy_decode_line): Use new_reference.
10772 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
10773 new_reference.
10774
10775 2018-04-30 Tom Tromey <tom@tromey.com>
10776
10777 * varobj.c (install_new_value): Use new_reference.
10778 * value.h (value_incref): Return void. Swap intro comment with
10779 value_decref.
10780 * value.c (set_value_parent): Use new_reference.
10781 (value_incref): Return void. Update intro comment.
10782 (release_value): Use new_reference.
10783 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
10784
10785 2018-04-30 Tom Tromey <tom@tromey.com>
10786
10787 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
10788 * gdb_bfd.h (new_bfd_ref): Remove.
10789 (gdb_bfd_open): Update comment.
10790 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10791 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
10792 (gdb_bfd_fdopenr): Use new_reference.
10793 * exec.c (exec_file_attach): Use new_reference.
10794
10795 2018-04-30 Tom Tromey <tom@tromey.com>
10796
10797 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
10798 method.
10799
10800 2018-04-30 Tom Tromey <tom@tromey.com>
10801
10802 * jit.c (jit_read_code_entry): Use type_align.
10803 * i386-tdep.c (i386_gdbarch_init): Don't call
10804 set_gdbarch_long_long_align_bit.
10805 * gdbarch.sh: Remove long_long_align_bit.
10806 * gdbarch.c, gdbarch.h: Rebuild.
10807 * arc-tdep.c (arc_type_align): New function.
10808 (arc_gdbarch_init): Use arc_type_align. Don't call
10809 set_gdbarch_long_long_align_bit.
10810
10811 2018-04-30 Tom Tromey <tom@tromey.com>
10812
10813 * rust-lang.c (rust_type_alignment): Remove.
10814 (rust_composite_type): Use type_align.
10815
10816 2018-04-30 Tom Tromey <tom@tromey.com>
10817
10818 * NEWS: Mention Type.align.
10819 * python/py-type.c (typy_get_alignof): New function.
10820 (type_object_getset): Add "alignof".
10821
10822 2018-04-30 Tom Tromey <tom@tromey.com>
10823
10824 PR exp/17095:
10825 * NEWS: Update.
10826 * std-operator.def (UNOP_ALIGNOF): New operator.
10827 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10828 New.
10829 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10830 * c-lang.c (c_op_print_tab): Add alignof.
10831 * c-exp.y (ALIGNOF): New token.
10832 (exp): Add "ALIGNOF" production.
10833 (ident_tokens): Add _Alignof and alignof.
10834
10835 2018-04-30 Tom Tromey <tom@tromey.com>
10836
10837 * i386-tdep.c (i386_type_align): New function.
10838 (i386_gdbarch_init): Update.
10839 * gdbarch.sh (type_align): New method.
10840 * gdbarch.c, gdbarch.h: Rebuild.
10841 * arch-utils.h (default_type_align): Declare.
10842 * arch-utils.c (default_type_align): New function.
10843 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10844 (struct type) <align_log2>: New field.
10845 <instance_flags>: Now a bitfield.
10846 (TYPE_RAW_ALIGN): New macro.
10847 (type_align, type_raw_align, set_type_align): Declare.
10848 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10849 functions.
10850 * dwarf2read.c (quirk_rust_enum): Set type alignment.
10851 (get_alignment, maybe_set_alignment): New functions.
10852 (read_structure_type, read_enumeration_type, read_array_type)
10853 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10854 (read_subrange_type, read_base_type): Set type alignment.
10855
10856 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
10857
10858 * dwarf2read.c (read_index_from_section): Use bool.
10859
10860 2018-04-29 Fabian Groffen <grobian@gentoo.org>
10861
10862 PR gdb/22950
10863 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10864 with #ifdef.
10865
10866 2018-04-29 John Reiser <jreiser@BitWagon.com>
10867
10868 PR build/22873
10869 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10870 last step, and do it atomically.
10871
10872 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
10873
10874 * compile/compile-c-types.c (convert_int, convert_float):
10875 Update for C FE v1.
10876
10877 2018-04-27 Tom Tromey <tom@tromey.com>
10878
10879 PR rust/22545:
10880 * rust-lang.c (rust_inclusive_range_type_p): New function.
10881 (rust_range): Handle inclusive ranges.
10882 (rust_compute_range): Likewise.
10883 * rust-exp.y (struct rust_op) <inclusive>: New field.
10884 (DOTDOTEQ): New constant.
10885 (range_expr): Add "..=" productions.
10886 (operator_tokens): Add "..=" token.
10887 (ast_range): Add "inclusive" parameter.
10888 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10889 ranges.
10890 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10891 bounds values.
10892 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10893 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10894 Update comments.
10895 * expprint.c (print_subexp_standard): Handle new bounds values.
10896 (dump_subexp_body_standard): Likewise.
10897
10898 2018-04-27 Tom Tromey <tom@tromey.com>
10899
10900 * configure: Rebuild.
10901 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10902 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10903 "OVERRIDE".
10904 (class symbol_needs_eval_context): Likewise.
10905 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10906 (mock_mapped_index::symbol_name_at): Use "override". Remove
10907 "virtual".
10908 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10909 "override".
10910 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10911 * aarch64-tdep.c (instruction_reader::read): Use "override".
10912 (instruction_reader_test::read): Likewise.
10913 * arm-tdep.c (instruction_reader::read): Use "override".
10914 (instruction_reader_thumb::read): Likewise.
10915
10916 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10917
10918 PR remote/9665
10919 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10920 instead of remote_send.
10921 (remote_send): Remove.
10922
10923 2018-04-26 Pedro Alves <palves@redhat.com>
10924
10925 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10926 find_function_start_sal instead of find_pc_line.
10927
10928 2018-04-26 Pedro Alves <palves@redhat.com>
10929
10930 * breakpoint.c (set_breakpoint_location_function): Handle
10931 mst_data_gnu_ifunc.
10932 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10933 * elfread.c (elf_symtab_read): Give data symbols with
10934 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10935 (elf_rel_plt_read): Update comment.
10936 * linespec.c (convert_linespec_to_sals): Handle
10937 mst_data_gnu_ifunc.
10938 (minsym_found): Handle mst_data_gnu_ifunc.
10939 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10940 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10941 * parse.c (find_minsym_type_and_address): Handle
10942 mst_data_gnu_ifunc.
10943 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10944 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10945 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10946 comment.
10947 <mst_data_gnu_ifunc>: New enumerator.
10948
10949 2018-04-26 Pedro Alves <palves@redhat.com>
10950
10951 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10952 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10953 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10954 Handle it.
10955 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10956 (lookup_minimal_symbol_by_pc): Adjust.
10957 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10958 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10959 * minsyms.h (lookup_msym_prefer): New enum.
10960 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10961 parameter by a lookup_msym_prefer parameter.
10962
10963 2018-04-26 Pedro Alves <palves@redhat.com>
10964
10965 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10966 ends in "@plt" instead of looking at the symbol's section.
10967
10968 2018-04-26 Pedro Alves <palves@redhat.com>
10969
10970 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10971 all references.
10972 (find_pc_partial_function_gnu_ifunc): Rename to ...
10973 (find_pc_partial_function): ... this, and remove references to
10974 'is_gnu_ifunc_p'.
10975 (find_pc_partial_function): Delete old implementation.
10976 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10977
10978 2018-04-26 Pedro Alves <palves@redhat.com>
10979
10980 * linespec.c (struct bound_minimal_symbol_search_key): New.
10981 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10982 skip first line if we found a GNU ifunc minimal symbol by name.
10983 (compare_msymbols): Change parameters to work with a destructured
10984 lhs minsym.
10985 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10986 functions.
10987
10988 2018-04-26 Pedro Alves <palves@redhat.com>
10989
10990 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10991 ifunc targets here. Instead, if we have an ifunc minsym, use its
10992 address/name.
10993 (add_location_to_breakpoint): Store the minsym and the objfile in
10994 the breakpoint location.
10995 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10996 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10997 Record the minsym in the sal.
10998 * symtab.h (symtab_and_line) <msymbol>: New field.
10999
11000 2018-04-26 Pedro Alves <palves@redhat.com>
11001
11002 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11003 unless we actually resolved the ifunc.
11004
11005 2018-04-26 Pedro Alves <palves@redhat.com>
11006
11007 * c-exp.y (variable production): Prefer ifunc minsyms over
11008 regular function symbols.
11009 * symtab.c (find_gnu_ifunc): New function.
11010 * minsyms.h (lookup_msym_prefer): New enum.
11011 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11012 parameter by a lookup_msym_prefer parameter.
11013 * symtab.h (find_gnu_ifunc): New declaration.
11014
11015 2018-04-26 Pedro Alves <palves@redhat.com>
11016
11017 * blockframe.c (find_gnu_ifunc_target_type): New function.
11018 (find_function_type): New.
11019 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11020 return a value with a memory address.
11021 (eval_call): For calls to GNU ifunc functions, try to find the
11022 type of the target function from the type that the resolver
11023 returns.
11024 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11025 symbols.
11026 * infcall.c (find_function_return_type): Delete.
11027 (find_function_addr): Add 'function_type' parameter. For calls to
11028 GNU ifunc functions, try to find the type of the target function
11029 from the type that the resolver returns, and return it via
11030 FUNCTION_TYPE.
11031 (call_function_by_hand_dummy): Adjust to use the function type
11032 returned by find_function_addr.
11033 (find_function_addr): Add 'function_type' parameter and move
11034 description here.
11035 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
11036 declarations.
11037
11038 2018-04-26 Pedro Alves <palves@redhat.com>
11039
11040 * c-exp.y (variable production): Skip finding an alias for ifunc
11041 symbols.
11042
11043 2018-04-26 Pedro Alves <palves@redhat.com>
11044
11045 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
11046
11047 2018-04-25 Pedro Alves <palves@redhat.com>
11048
11049 * infcmd.c (kill_command): Print the pid as string, not the whole
11050 thread's ptid. Add comment. s/has been killed/killed/ in output
11051 message.
11052 * remote.c (remote_detach_1): Print the pid as string, not the
11053 whole thread's ptid.
11054
11055 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11056 Sergio Durigan Junior <sergiodj@redhat.com>
11057 Pedro Alves <palves@redhat.com>
11058
11059 * infcmd.c (kill_command): Print message when inferior has
11060 been killed.
11061 * inferior.c (print_inferior_events): Remove 'static'. Set as
11062 '1'.
11063 (add_inferior): Improve message printed when
11064 'print_inferior_events' is on.
11065 (exit_inferior): Remove message printed when
11066 'print_inferior_events' is on.
11067 (detach_inferior): Improve message printed when
11068 'print_inferior_events' is on.
11069 (initialize_inferiors): Use 'add_inferior_silent' to set
11070 'current_inferior_'.
11071 * inferior.h (print_inferior_events): Declare here as
11072 'extern'.
11073 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
11074 '[Detaching...]' messages when 'print_inferior_events' is on.
11075 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
11076 as prefix/suffix for messages. Remove periods. Fix erroneous
11077 'Detaching after fork from child...', replace it by '... from
11078 parent...'.
11079 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
11080 prefix/suffix when printing 'Detaching...' messages. Print
11081 them when 'print_inferior_events' is on.
11082 * remote.c (remote_detach_1): Print message when detaching
11083 from inferior and '!is_fork_parent'.
11084
11085 2018-04-24 Tom Tromey <tom@tromey.com>
11086
11087 * cli-out.h: Reindent.
11088
11089 2018-04-24 Tom Tromey <tom@tromey.com>
11090
11091 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
11092 (cli_ui_out::do_field_string): Use fputs_filtered.
11093 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
11094
11095 2018-04-23 Tom Tromey <tom@tromey.com>
11096
11097 * guile/scm-frame.c (gdbscm_frame_read_var): Use
11098 gdb::unique_xmalloc_ptr.
11099
11100 2018-04-23 Tom Tromey <tom@tromey.com>
11101
11102 * configure: Rebuild.
11103
11104 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
11105
11106 PR gdb/23095
11107 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
11108 prepare_for_testing. Set normal_bp to r_debug_state if target
11109 is bsd.
11110
11111 2018-04-21 Pedro Alves <palves@redhat.com>
11112 Rajendra SY <rajendra.sy@gmail.com>
11113
11114 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
11115 * remote.c (extended_remote_attach): In all-stop mode, mark the
11116 thread as executing.
11117
11118 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11119
11120 * thread.c (thread_apply_all_command): Fix comment.
11121 (thread_command): Fix comment.
11122
11123 2018-04-10 Alan Hayward <alan.hayward@arm.com>
11124
11125 * common/tdesc.h (tdesc_create_feature): Remove xml filename
11126 parameter.
11127 * features/aarch64-core.c (create_feature_aarch64_core):
11128 Regenerate.
11129 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
11130 Likewise.
11131 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
11132 Likewise.
11133 * features/i386/32bit-avx512.c
11134 (create_feature_i386_32bit_avx512): Likewise.
11135 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
11136 Likewise.
11137 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
11138 Likewise.
11139 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
11140 Likewise.
11141 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
11142 Likewise.
11143 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
11144 Likewise.
11145 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
11146 Likewise.
11147 * features/i386/64bit-avx512.c
11148 (create_feature_i386_64bit_avx512): Likewise.
11149 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
11150 Likewise.
11151 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
11152 Likewise.
11153 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
11154 Likewise.
11155 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
11156 Likewise.
11157 * features/i386/64bit-segments.c
11158 (create_feature_i386_64bit_segments): Likewise.
11159 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
11160 Likewise.
11161 * features/i386/x32-core.c
11162 (create_feature_i386_x32_core): Likewise.
11163 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
11164 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
11165 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
11166 * target-descriptions.c: In generated code, don't pass xml
11167 filename.
11168
11169 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11170
11171 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
11172 (print_xml_feature::visit_post): Likewise.
11173 (print_xml_feature::visit): Likewise.
11174 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
11175 (print_xml_feature): Add new class.
11176 * regformats/regdat.sh: Null xmltarget on feature targets.
11177 * target-descriptions.c (struct target_desc): Add xmltarget.
11178 (maintenance_check_tdesc_xml_convert): Add unittest function.
11179 (tdesc_get_features_xml): Add function to get xml.
11180 (maintenance_check_xml_descriptions): Test xml generation.
11181 * xml-tdesc.c (string_read_description_xml): Add function.
11182 * xml-tdesc.h (string_read_description_xml): Add declaration.
11183
11184 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11185
11186 * features/Makefile: Add feature marker to targets with new style
11187 target descriptions.
11188 * regformats/aarch64.dat: Regenerate.
11189 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11190 * regformats/i386/amd64-avx-linux.dat: Likewise.
11191 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11192 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11193 * regformats/i386/amd64-linux.dat: Likewise.
11194 * regformats/i386/amd64-mpx-linux.dat: Likewise.
11195 * regformats/i386/amd64.dat: Likewise.
11196 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11197 * regformats/i386/i386-avx-linux.dat: Likewise.
11198 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11199 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11200 * regformats/i386/i386-linux.dat: Likewise.
11201 * regformats/i386/i386-mmx-linux.dat: Likewise.
11202 * regformats/i386/i386-mpx-linux.dat: Likewise.
11203 * regformats/i386/i386.dat: Likewise.
11204 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11205 * regformats/i386/x32-avx-linux.dat: Likewise.
11206 * regformats/i386/x32-linux.dat: Likewise.
11207 * regformats/tic6x-c62x-linux.dat: Likewise.
11208 * regformats/tic6x-c64x-linux.dat: Likewise.
11209 * regformats/tic6x-c64xp-linux.dat: Likewise.
11210 * regformats/regdat.sh: Parse feature marker.
11211
11212 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11213
11214 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11215 (tdesc_osabi_name): Likewise.
11216 * target-descriptions.c (tdesc_architecture_name): Add new
11217 function.
11218 (tdesc_osabi_name): Likewise.
11219
11220 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11221
11222 * common/tdesc.c (tdesc_predefined_type): Move to here.
11223 (tdesc_named_type): Likewise.
11224 (tdesc_create_vector): Likewise.
11225 (tdesc_create_struct): Likewise.
11226 (tdesc_set_struct_size): Likewise.
11227 (tdesc_create_union): Likewise.
11228 (tdesc_create_flags): Likewise.
11229 (tdesc_create_enum): Likewise.
11230 (tdesc_add_field): Likewise.
11231 (tdesc_add_typed_bitfield): Likewise.
11232 (tdesc_add_bitfield): Likewise.
11233 (tdesc_add_flag): Likewise.
11234 (tdesc_add_enum_value): Likewise.
11235 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11236 (struct tdesc_type_vector): Likewise.
11237 (struct tdesc_type_field): Likewise.
11238 (struct tdesc_type_with_fields): Likewise.
11239 (tdesc_create_enum): Add declaration.
11240 (tdesc_add_typed_bitfield): Likewise.
11241 (tdesc_add_enum_value): Likewise.
11242 * target-descriptions.c (tdesc_type_field): Move from here.
11243 (tdesc_type_builtin): Likewise.
11244 (tdesc_type_vector): Likewise.
11245 (tdesc_type_with_fields): Likewise.
11246 (tdesc_predefined_types): Likewise.
11247 (tdesc_named_type): Likewise.
11248 (tdesc_create_vector): Likewise.
11249 (tdesc_create_struct): Likewise.
11250 (tdesc_set_struct_size): Likewise.
11251 (tdesc_create_union): Likewise.
11252 (tdesc_create_flags): Likewise.
11253 (tdesc_create_enum): Likewise.
11254 (tdesc_add_field): Likewise.
11255 (tdesc_add_typed_bitfield): Likewise.
11256 (tdesc_add_bitfield): Likewise.
11257 (tdesc_add_flag): Likewise.
11258 (tdesc_add_enum_value): Likewise.
11259 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
11260 (tdesc_add_typed_bitfield): Likewise.
11261 (tdesc_add_enum_value): Likewise.
11262
11263 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11264
11265 * common/tdesc.c (tdesc_feature::accept): Move to here.
11266 (tdesc_feature::operator==): Likewise.
11267 (tdesc_create_reg): Likewise.
11268 * common/tdesc.h (tdesc_type_kind): Likewise.
11269 (struct tdesc_type): Likewise.
11270 (struct tdesc_feature): Likewise.
11271 * regformats/regdat.sh: Create a feature.
11272 * target-descriptions.c (tdesc_type_kind): Move from here.
11273 (tdesc_type): Likewise.
11274 (tdesc_type_up): Likewise.
11275 (tdesc_feature): Likewise.
11276 (tdesc_create_reg): Likewise.
11277
11278 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11279
11280 * Makefile.in: Add arch/tdesc.c
11281 * common/tdesc.c: New file.
11282 * common/tdesc.h (tdesc_element_visitor): Move to here.
11283 (tdesc_element): Likewise.
11284 (tdesc_reg): Likewise.
11285 (tdesc_reg_up): Likewise.
11286 * regformats/regdef.h (reg): Add offset to constructors.
11287 * target-descriptions.c (tdesc_element_visitor): Move from here.
11288 (tdesc_element): Likewise.
11289 (tdesc_reg): Likewise.
11290 (tdesc_reg_up): Likewise.
11291
11292 2018-04-17 Tom Tromey <tom@tromey.com>
11293
11294 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
11295 discriminant field.
11296
11297 2018-04-17 Tom Tromey <tom@tromey.com>
11298
11299 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
11300
11301 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
11302
11303 * symtab.c (print_symbol_info): Skip printing filename and line
11304 number when `last' is NULL.
11305 (symtab_symbol_info): Use empty string instead of NULL for first
11306 invocation of print_symbol_info.
11307 (rbreak_command): Pass NULL to `last' parameter of
11308 print_symbol_info.
11309
11310 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
11311
11312 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
11313 instead of nullptr.
11314
11315 2018-04-16 Pedro Alves <palves@redhat.com>
11316
11317 * MAINTAINERS (sh): Remove.
11318 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
11319 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
11320 (ALLDEPFILES): Remove sh64-tdep.c.
11321 * NEWS: Mentions that support for SH-5/SH64 is removed.
11322 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
11323 (sh*-*-openbsd*): Ditto.
11324 (sh64-*-elf*): Remove.
11325 (sh*): Remove.
11326 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
11327 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
11328 * sh-tdep.c: No longer include "sh64-tdep.h".
11329 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
11330 * sh64-tdep.c, sh64-tdep.h: Remove files.
11331
11332 2018-04-16 Pedro Alves <palves@redhat.com>
11333
11334 * MAINTAINERS: Remove m88k.
11335 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
11336 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
11337 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
11338 * NEWS: Mention that support for m88k was removed.
11339 * configure.host (m88*-*-*): Remove support.
11340 * configure.nat (m88k-*-*): Remove support.
11341 * configure.tgt (m88*-*-openbsd*): Remove.
11342 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11343
11344 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
11345
11346 * configure.tgt (x86_tobjs): New variable.
11347 (amd64_tobjs, i386_tobjs): Use it.
11348
11349 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11350
11351 * symtab.c (print_symbol_info): Precede the symbol definition by
11352 the line number when available.
11353 * NEWS: Advertise this enhancement.
11354
11355 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11356
11357 * NEWS (New options): announce set/show record btrace cpu.
11358 * btrace.c: Include record-btrace.h.
11359 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11360 the vendor is unknown.
11361 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
11362 Maybe overwrite the btrace configuration's cpu.
11363 (btrace_compute_ftrace): Add cpu parameter. Update callers.
11364 (btrace_fetch): Add cpu parameter. Update callers.
11365 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11366 Maybe overwrite the btrace configuration's cpu. Skip enabling
11367 errata workarounds if the vendor is unknown.
11368 * python/py-record-btrace.c: Include record-btrace.h.
11369 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11370 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11371 * record-btrace.c (record_btrace_cpu_state_kind): New.
11372 (record_btrace_cpu): New.
11373 (set_record_btrace_cpu_cmdlist): New.
11374 (record_btrace_get_cpu): New.
11375 (require_btrace_thread, record_btrace_info)
11376 (record_btrace_resume_thread): Call record_btrace_get_cpu.
11377 (cmd_set_record_btrace_cpu_none): New.
11378 (cmd_set_record_btrace_cpu_auto): New.
11379 (cmd_set_record_btrace_cpu): New.
11380 (cmd_show_record_btrace_cpu): New.
11381 (_initialize_record_btrace): Initialize set/show record btrace cpu
11382 commands.
11383 * record-btrace.h (record_btrace_get_cpu): New.
11384
11385 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11386
11387 * record.c (set_record_command): Fix typo in message.
11388
11389 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11390
11391 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11392
11393 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11394
11395 * infrun.c (process_event_stop_test): Call
11396 gdbarch_in_indirect_branch_thunk.
11397 * gdbarch.sh (in_indirect_branch_thunk): New.
11398 * gdbarch.c: Regenerated.
11399 * gdbarch.h: Regenerated.
11400 * x86-tdep.h: New.
11401 * x86-tdep.c: New.
11402 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11403 (HFILES_NO_SRCDIR): Add x86-tdep.h.
11404 (ALLDEPFILES): Add x86-tdep.c.
11405 * arch-utils.h (default_in_indirect_branch_thunk): New.
11406 * arch-utils.c (default_in_indirect_branch_thunk): New.
11407 * i386-tdep: Include x86-tdep.h.
11408 (i386_in_indirect_branch_thunk): New.
11409 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11410 function.
11411 * amd64-tdep: Include x86-tdep.h.
11412 (amd64_in_indirect_branch_thunk): New.
11413 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11414
11415 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11416
11417 PR gdb/23053
11418 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11419 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11420 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11421 regression.
11422
11423 2018-04-12 Tom Tromey <tom@tromey.com>
11424
11425 * rust-lang.c (rust_print_struct_def): Remove univariant code.
11426 (rust_evaluate_subexp): Likewise.
11427
11428 2018-04-12 Pedro Alves <palves@redhat.com>
11429
11430 * procfs.c (procfs_detach): Make forward declaration's prototype
11431 match definition's protototype.
11432 (proc_get_LDT_entry): Remove stale do_cleanups call.
11433
11434 2018-04-12 Pedro Alves <palves@redhat.com>
11435
11436 * target.h (target_ops::to_has_exited): Delete.
11437 (target_has_exited): Delete.
11438 * target-delegates.c: Regenerate.
11439
11440 2018-04-11 Pedro Alves <palves@redhat.com>
11441
11442 * target.c (fileio_fh_t::t): Add comment.
11443 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11444 (target_fileio_close): Handle a NULL target.
11445 (invalidate_fileio_fh): New.
11446 (target_close): Call it.
11447 * remote.c (remote_hostio_send_command): No longer check whether
11448 remote_desc is open.
11449
11450 2018-04-11 Pedro Alves <palves@redhat.com>
11451
11452 * target.c (fileio_fh_t): Make it a named struct instead of a
11453 typedef.
11454 (fileio_fh_t::is_closed): New method.
11455 (DEF_VEC_O (fileio_fh_t)): Remove.
11456 (fileio_fhandles): Now a std::vector.
11457 (is_closed_fileio_fh): Delete.
11458 (acquire_fileio_fd): Adjust. Rename parameters.
11459 (release_fileio_fd): Adjust.
11460 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
11461 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11462 (target_fileio_close): Adjust.
11463
11464 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
11465
11466 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
11467 index.
11468
11469 2018-04-10 Pedro Alves <palves@redhat.com>
11470
11471 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
11472 (scoped_finish_thread_state): New class.
11473 * infcmd.c (run_command_1): Use it instead of finish_thread_state
11474 cleanup.
11475 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
11476 (fetch_inferior_event, normal_stop): Likewise.
11477 * thread.c (finish_thread_state_cleanup): Delete.
11478
11479 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11480 Pedro Alves <palves@redhat.com>
11481
11482 * value.c: Include "selftest.h" and "common/array-view.h".
11483 (struct range) <operator ==>: New.
11484 (test_ranges_contain): New.
11485 (check_ranges_vector): New.
11486 (test_insert_into_bit_range_vector): New.
11487 (_initialize_values): Register selftests.
11488 * common/array-view.h (operator==, operator!=): New.
11489
11490 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11491
11492 * common/gdb_vecs.h (unordered_remove): Add overload that takes
11493 an iterator.
11494 * inline-frame.c: Include <algorithm>.
11495 (struct inline_state): Add constructor.
11496 (inline_state_s): Remove.
11497 (DEF_VEC_O(inline_state_s)): Remove.
11498 (inline_states): Change type to std::vector.
11499 (find_inline_frame_state): Adjust to std::vector.
11500 (allocate_inline_frame_state): Remove.
11501 (clear_inline_frame_state): Adjust to std::vector.
11502 (skip_inline_frames): Adjust to std::vector.
11503
11504 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11505
11506 * tracepoint.h (struct trace_state_variable): Add constructor.
11507 <name>: Change type to std::string.
11508 * tracepoint.c (tsv_s): Remove.
11509 (DEF_VEC_O(tsv_s)): Remove.
11510 (tvariables): Change to std::vector.
11511 (create_trace_state_variable): Adjust to std::vector.
11512 (find_trace_state_variable): Likewise.
11513 (find_trace_state_variable_by_number): Likewise.
11514 (delete_trace_state_variable): Likewise.
11515 (trace_variable_command): Adjust to std::string.
11516 (delete_trace_variable_command): Likewise.
11517 (tvariables_info_1): Adjust to std::vector.
11518 (save_trace_state_variables): Likewise.
11519 (start_tracing): Likewise.
11520 (merge_uploaded_trace_state_variables): Adjust to std::vector
11521 and std::string.
11522 * target.h (struct target_ops)
11523 <to_download_trace_state_variable>: Pass reference to
11524 trace_state_variable.
11525 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
11526 * target-delegates.c: Re-generate.
11527 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
11528 (mi_tsv_deleted): Likewise.
11529 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
11530 * remote.c (remote_download_trace_state_variable): Change
11531 pointer to reference and adjust.
11532 * make-target-delegates (parse_argtypes): Handle references.
11533 (write_function_header): Likewise.
11534 (munge_type): Likewise.
11535
11536 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11537
11538 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11539 string_view-selftests.c.
11540 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
11541 testsuite.
11542 * unittests/basic_string_view/cons/char/1.cc: Likewise.
11543 * unittests/basic_string_view/cons/char/2.cc: Likewise.
11544 * unittests/basic_string_view/cons/char/3.cc: Likewise.
11545 * unittests/basic_string_view/element_access/char/1.cc:
11546 Likewise.
11547 * unittests/basic_string_view/element_access/char/empty.cc:
11548 Likewise.
11549 * unittests/basic_string_view/element_access/char/front_back.cc:
11550 Likewise.
11551 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
11552 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
11553 Likewise.
11554 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
11555 Likewise.
11556 * unittests/basic_string_view/modifiers/swap/char/1.cc:
11557 Likewise.
11558 * unittests/basic_string_view/operations/compare/char/1.cc:
11559 Likewise.
11560 * unittests/basic_string_view/operations/compare/char/13650.cc:
11561 Likewise.
11562 * unittests/basic_string_view/operations/copy/char/1.cc:
11563 Likewise.
11564 * unittests/basic_string_view/operations/data/char/1.cc:
11565 Likewise.
11566 * unittests/basic_string_view/operations/find/char/1.cc:
11567 Likewise.
11568 * unittests/basic_string_view/operations/find/char/2.cc:
11569 Likewise.
11570 * unittests/basic_string_view/operations/find/char/3.cc:
11571 Likewise.
11572 * unittests/basic_string_view/operations/find/char/4.cc:
11573 Likewise.
11574 * unittests/basic_string_view/operations/rfind/char/1.cc:
11575 Likewise.
11576 * unittests/basic_string_view/operations/rfind/char/2.cc:
11577 Likewise.
11578 * unittests/basic_string_view/operations/rfind/char/3.cc:
11579 Likewise.
11580 * unittests/basic_string_view/operations/substr/char/1.cc:
11581 Likewise.
11582 * unittests/basic_string_view/operators/char/2.cc: Likewise.
11583 * unittests/string_view-selftests.c: New file.
11584
11585 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11586
11587 * unittests/basic_string_view/capacity/1.cc: New file.
11588 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
11589 * unittests/basic_string_view/cons/char/1.cc: New file.
11590 * unittests/basic_string_view/cons/char/2.cc: New file.
11591 * unittests/basic_string_view/cons/char/3.cc: New file.
11592 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
11593 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
11594 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
11595 * unittests/basic_string_view/element_access/char/1.cc: New file.
11596 * unittests/basic_string_view/element_access/char/2.cc: New file.
11597 * unittests/basic_string_view/element_access/char/empty.cc: New file.
11598 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
11599 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
11600 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
11601 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
11602 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
11603 * unittests/basic_string_view/include.cc: New file.
11604 * unittests/basic_string_view/inserters/char/1.cc: New file.
11605 * unittests/basic_string_view/inserters/char/2.cc: New file.
11606 * unittests/basic_string_view/inserters/char/3.cc: New file.
11607 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
11608 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
11609 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
11610 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
11611 * unittests/basic_string_view/literals/types.cc: New file.
11612 * unittests/basic_string_view/literals/values.cc: New file.
11613 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
11614 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
11615 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
11616 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
11617 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
11618 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
11619 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
11620 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
11621 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
11622 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
11623 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
11624 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
11625 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
11626 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
11627 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
11628 * unittests/basic_string_view/operations/data/char/1.cc: New file.
11629 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
11630 * unittests/basic_string_view/operations/find/char/1.cc: New file.
11631 * unittests/basic_string_view/operations/find/char/2.cc: New file.
11632 * unittests/basic_string_view/operations/find/char/3.cc: New file.
11633 * unittests/basic_string_view/operations/find/char/4.cc: New file.
11634 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
11635 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
11636 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
11637 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
11638 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
11639 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
11640 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
11641 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
11642 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
11643 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
11644 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
11645 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
11646 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
11647 * unittests/basic_string_view/operators/char/2.cc: New file.
11648 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
11649 * unittests/basic_string_view/range_access/char/1.cc: New file.
11650 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
11651 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
11652 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
11653 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
11654 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
11655 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
11656 * unittests/basic_string_view/requirements/typedefs.cc: New file.
11657 * unittests/basic_string_view/typedefs.cc: New file.
11658 * unittests/basic_string_view/types/1.cc: New file.
11659
11660 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11661
11662 * common/gdb_string_view.h: Remove libstdc++ implementation
11663 details, adjust to gdb reality.
11664 * common/gdb_string_view.tcc: Likewise.
11665 * cli/cli-script.c (struct string_view): Remove.
11666 (user_args) <m_args>: Change element type to gdb::string_view.
11667 (user_args::insert_args): Adjust.
11668
11669 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11670
11671 * common/gdb_string_view.h: New file.
11672 * common/gdb_string_view.tcc: New file.
11673
11674 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11675
11676 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
11677 * configure: Re-generate.
11678
11679 2018-04-09 Pedro Alves <palves@redhat.com>
11680
11681 * gdbarch.sh: Include "observable.h" instead of "observer.h".
11682 (set_target_gdbarch): Call
11683 gdb::observers::architecture_changed.notify instead of
11684 observer_notify_architecture_changed.
11685
11686 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11687
11688 * tracepoint.c (struct current_traceframe_cleanup): Remove.
11689 (do_restore_current_traceframe_cleanup): Remove.
11690 (restore_current_traceframe_cleanup_dtor): Remove.
11691 (make_cleanup_restore_current_traceframe): Remove.
11692 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
11693 New.
11694 * tracepoint.h (struct scoped_restore_current_traceframe): New.
11695 * infrun.c (fetch_inferior_event): Use
11696 scoped_restore_current_traceframe.
11697
11698 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11699
11700 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
11701 Remove.
11702 <n_allocated_type_units>: Remove.
11703 <all_type_units>: Change to std::vector.
11704 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11705 to std::vector change.
11706 (dwarf2_per_objfile::get_cutu): Likewise.
11707 (dwarf2_per_objfile::get_tu): Likewise.
11708 (create_signatured_type_table_from_index): Likewise.
11709 (create_signatured_type_table_from_debug_names): Likewise.
11710 (dw2_symtab_iter_next): Likewise.
11711 (dw2_print_stats): Likewise.
11712 (dw2_expand_all_symtabs): Likewise.
11713 (dw2_expand_marked_cus): Likewise.
11714 (dw2_debug_names_iterator::next): Likewise.
11715 (dwarf2_initialize_objfile): Likewise.
11716 (add_signatured_type_cu_to_table): Likewise.
11717 (create_all_type_units): Likewise.
11718 (add_type_unit): Likewise.
11719 (struct tu_abbrev_offset): Add constructor.
11720 (build_type_psymtabs_1): Adjust to std::vector change.
11721 (print_tu_stats): Likewise.
11722 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11723 (write_debug_names): Likewise.
11724
11725 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11726
11727 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
11728 Make an std::vector.
11729 <n_comp_units>: Remove.
11730 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11731 to std::vector change.
11732 (dwarf2_per_objfile::get_cutu): Likewise.
11733 (dwarf2_per_objfile::get_cu): Likewise.
11734 (create_cus_from_index): Likewise.
11735 (create_addrmap_from_index): Likewise.
11736 (create_addrmap_from_aranges): Likewise.
11737 (dwarf2_read_index): Likewise.
11738 (dw2_find_last_source_symtab): Likewise.
11739 (dw2_map_symtabs_matching_filename): Likewise.
11740 (dw2_symtab_iter_next): Likewise.
11741 (dw2_print_stats): Likewise.
11742 (dw2_expand_all_symtabs): Likewise.
11743 (dw2_expand_symtabs_with_fullname): Likewise.
11744 (dw2_expand_marked_cus): Likewise.
11745 (dw2_map_symbol_filenames): Likewise.
11746 (create_cus_from_debug_names): Likewise.
11747 (dwarf2_read_debug_names): Likewise.
11748 (dw2_debug_names_iterator::next): Likewise.
11749 (dwarf2_initialize_objfile): Likewise.
11750 (set_partial_user): Likewise.
11751 (dwarf2_build_psymtabs_hard): Likewise.
11752 (read_comp_units_from_section): Remove arguments, adjust to
11753 std::vector change.
11754 (create_all_comp_units): Adjust to std::vector and
11755 read_comp_units_from_section changes.
11756 (dwarf2_find_containing_comp_unit): Adjust to std::vector
11757 change.
11758 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11759 (psyms_seen_size): Likewise.
11760 (write_gdbindex): Likewise.
11761 (write_debug_names): Likewise.
11762
11763 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11764
11765 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
11766 with dwarf2_per_objfile.
11767 (create_cus_from_index): Likewise.
11768 (create_signatured_type_table_from_index): Likewise.
11769 (dwarf2_read_index): Likewise.
11770 (dwarf2_initialize_objfile): Likewise.
11771 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
11772 per_cu rather than get_dwarf2_per_objfile.
11773
11774 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11775
11776 * dwarf2read.h (struct signatured_type): Forward declare.
11777 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
11778 New methods.
11779 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
11780 (dw2_get_cutu): ...this.
11781 (dwarf2_per_objfile::get_cu): Rename from...
11782 (dw2_get_cu): ...this.
11783 (dwarf2_per_objfile::get_tu): New.
11784 (create_addrmap_from_index): Adjust.
11785 (create_addrmap_from_aranges): Adjust.
11786 (dw2_find_last_source_symtab): Adjust.
11787 (dw2_map_symtabs_matching_filename): Adjust.
11788 (dw2_symtab_iter_next): Adjust.
11789 (dw2_print_stats): Adjust.
11790 (dw2_expand_all_symtabs): Adjust.
11791 (dw2_expand_symtabs_with_fullname): Adjust.
11792 (dw2_expand_marked_cus): Adjust.
11793 (dw_expand_symtabs_matching_file_matcher): Adjust.
11794 (dw2_map_symbol_filenames): Adjust.
11795 (dw2_debug_names_iterator::next): Adjust.
11796 (dwarf2_initialize_objfile): Adjust.
11797 (set_partial_user): Adjust.
11798 (dwarf2_build_psymtabs_hard): Adjust.
11799
11800 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11801
11802 * dwarf2read.c (create_signatured_type_table_from_debug_names):
11803 Remove unused variables.
11804 (dw2_map_symtabs_matching_filename): Likewise.
11805 (dwarf2_record_block_ranges): Likewise.
11806 (dwarf2_read_addr_index): Likewise.
11807 (follow_die_offset): Likewise.
11808
11809 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11810
11811 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
11812 to symbol_file_add_main.
11813
11814 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11815
11816 PR mi/22299
11817 * mi/mi-console.c (do_fputc_async_safe): New.
11818 (mi_console_file::write_async_safe): New.
11819 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11820 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11821 New.
11822 * ui-file.c (ui_file::putstrn): Adjust call to
11823 fputstrn_unfiltered.
11824 * utils.c (printchar): Replace do_fputs and do_fprintf
11825 parameters by do_fputc.
11826 (fputstr_filtered): Adjust call to printchar.
11827 (fputstr_unfiltered): Likewise.
11828 (fputstrn_filtered): Likewise.
11829 (fputstrn_unfiltered): Add do_fputc parameter, pass to
11830 printchar.
11831 * utils.h (do_fputc_ftype): New typedef.
11832 (fputstrn_unfiltered): Add do_fputc parameter.
11833
11834 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11835
11836 * regformats/i386/i386-avx.dat: Remove.
11837
11838 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11839
11840 PR gdb/22979
11841 * amd64-tdep.c (amd64_none_init_abi): New function.
11842 (amd64_x32_none_init_abi): New function.
11843 (_initialize_amd64_tdep): Register handlers for x86-64 and
11844 x64_32 with GDB_OSABI_NONE.
11845 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11846 GDB_OSABI_NONE osabi.
11847
11848 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11849
11850 PR gdb/22980
11851 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11852 GDB_OSABI_NONE.
11853 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11854 * osabi.c (gdb_osabi_names): Add "unknown" entry.
11855
11856 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11857
11858 * common/byte-vector.h (char_vector): New type.
11859 * target.h (target_read_alloc): Return
11860 gdb::optional<byte_vector>.
11861 (target_read_stralloc): Return gdb::optional<char_vector>.
11862 (target_get_osdata): Return gdb::optional<char_vector>.
11863 * target.c (target_read_alloc_1): Templatize. Replacement
11864 manual memory management with vector.
11865 (target_read_alloc): Change return type, adjust.
11866 (target_read_stralloc): Change return type, adjust.
11867 (target_get_osdata): Change return type, adjust.
11868 * auxv.c (struct auxv_info) <length>: Remove.
11869 <data>: Change type to gdb::optional<byte_vector>.
11870 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11871 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11872 (target_auxv_search): Adjust.
11873 (fprint_target_auxv): Adjust.
11874 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11875 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11876 (linux_make_corefile_notes): Adjust.
11877 * osdata.c (get_osdata): Adjust.
11878 * remote.c (remote_get_threads_with_qxfer): Adjust.
11879 (remote_memory_map): Adjust.
11880 (remote_traceframe_info): Adjust.
11881 (btrace_read_config): Adjust.
11882 (remote_read_btrace): Adjust.
11883 (remote_pid_to_exec_file): Adjust.
11884 * solib-aix.c (solib_aix_get_library_list): Adjust.
11885 * solib-dsbt.c (decode_loadmap): Don't free buf.
11886 (dsbt_get_initial_loadmaps): Adjust.
11887 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11888 * solib-target.c (solib_target_current_sos): Adjust.
11889 * tracepoint.c (sdata_make_value): Adjust.
11890 * xml-support.c (xinclude_start_include): Adjust.
11891 (xml_fetch_content_from_file): Adjust.
11892 * xml-support.h (xml_fetch_another): Change return type.
11893 (xml_fetch_content_from_file): Change return type.
11894 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11895 * xml-tdesc.c (file_read_description_xml): Adjust.
11896 (fetch_available_features_from_target): Change return type.
11897 (target_fetch_description_xml): Adjust.
11898 (target_read_description_xml): Adjust.
11899
11900 2018-04-06 Tom Tromey <tom@tromey.com>
11901
11902 * value.c (~value): Update.
11903 (struct value) <contents>: Now unique_xmalloc_ptr.
11904 (value_contents_bits_eq, allocate_value_contents)
11905 (value_contents_raw, value_contents_all_raw)
11906 (value_contents_for_printing, value_contents_for_printing_const)
11907 (set_value_enclosing_type): Update.
11908
11909 2018-04-06 Tom Tromey <tom@tromey.com>
11910
11911 * value.c (range_s): Remove typedef, VEC.
11912 (struct range): Add operator<.
11913 (range_lessthan): Remove.
11914 (ranges_contain): Change type.
11915 (~value): Update.
11916 (struct value) <unavailable, optimized_out>: Now std::vector.
11917 (value_entirely_available)
11918 (value_entirely_covered_by_range_vector)
11919 (value_entirely_unavailable, value_entirely_optimized_out):
11920 Update.
11921 (insert_into_bit_range_vector): Change argument type.
11922 (find_first_range_overlap): Likewise.
11923 (struct ranges_and_idx, value_contents_bits_eq)
11924 (require_not_optimized_out, require_available): Update.
11925 (ranges_copy_adjusted): Change argument types.
11926 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11927
11928 2018-04-06 Tom Tromey <tom@tromey.com>
11929
11930 * value.c (~value): Update.
11931 (struct value) <parent>: Now a value_ref_ptr.
11932 (value_parent, set_value_parent, value_address, value_copy):
11933 Update.
11934
11935 2018-04-06 Tom Tromey <tom@tromey.com>
11936
11937 * value.c (struct value): Add constructor, destructor, and member
11938 initializers.
11939 (allocate_value_lazy, value_decref): Update.
11940
11941 2018-04-06 Tom Tromey <tom@tromey.com>
11942
11943 * value.c (struct value) <released, next>: Remove.
11944 (all_values): Now a std::vector.
11945 (allocate_value_lazy): Update.
11946 (value_next): Remove.
11947 (value_mark, value_free_to_mark, release_value)
11948 (value_release_to_mark): Update.
11949
11950 2018-04-06 Tom Tromey <tom@tromey.com>
11951
11952 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11953 (free_value_chain): Remove.
11954 * value.c (free_value_chain): Remove.
11955 (value_release_to_mark): Return a std::vector.
11956 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11957 std::vector.
11958 (check_condition): Update.
11959 * eval.c (fetch_subexp_value): Change "val_chain" to a
11960 std::vector.
11961 * breakpoint.c (update_watchpoint): Update.
11962 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11963
11964 2018-04-06 Tom Tromey <tom@tromey.com>
11965
11966 * value.h (free_all_values): Remove.
11967 * value.c (free_all_values): Remove.
11968
11969 2018-04-06 Tom Tromey <tom@tromey.com>
11970
11971 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11972 (value_history_chain, value_history_count): Remove.
11973 (value_history): New global.
11974 (record_latest_value, access_value_history, show_values)
11975 (preserve_values): Update.
11976
11977 2018-04-06 Tom Tromey <tom@tromey.com>
11978
11979 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11980 * varobj.c (varobj_set_display_format, varobj_set_value)
11981 (install_default_visualizer, construct_visualizer)
11982 (install_new_value, ~varobj, varobj_get_value_type)
11983 (my_value_of_variable, varobj_editable_p): Update.
11984 * c-varobj.c (c_describe_child, c_value_of_variable)
11985 (cplus_number_of_children, cplus_describe_child): Update.
11986 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11987 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11988 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11989
11990 2018-04-06 Tom Tromey <tom@tromey.com>
11991
11992 * printcmd.c (last_examine_address): Change type to
11993 value_ref_ptr.
11994 (do_examine, x_command): Update.
11995
11996 2018-04-06 Tom Tromey <tom@tromey.com>
11997
11998 * value.c (release_value): Update.
11999 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12000 (struct bpstats) <val>: Now a value_ref_ptr.
12001 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12002 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12003 (~watchpoint, print_it_watchpoint, watch_command_1)
12004 (invalidate_bp_value_on_memory_change): Update.
12005
12006 2018-04-06 Tom Tromey <tom@tromey.com>
12007
12008 * varobj.c (varobj_clear_saved_item)
12009 (update_dynamic_varobj_children, install_new_value, ~varobj):
12010 Update.
12011 * value.h (value_incref): Move declaration earlier.
12012 (value_decref): Rename from value_free.
12013 (struct value_ref_policy): New.
12014 (value_ref_ptr): New typedef.
12015 (struct value_deleter): Remove.
12016 (gdb_value_up): Remove typedef.
12017 (release_value): Change return type.
12018 (release_value_or_incref): Remove.
12019 * value.c (set_value_parent): Update.
12020 (value_incref): Change return type.
12021 (value_decref): Rename from value_free.
12022 (value_free_to_mark, free_all_values, free_value_chain): Update.
12023 (release_value): Return value_ref_ptr.
12024 (release_value_or_incref): Remove.
12025 (record_latest_value, set_internalvar, clear_internalvar):
12026 Update.
12027 * stack.c (info_frame_command): Don't call value_free.
12028 * python/py-value.c (valpy_dealloc, valpy_new)
12029 (value_to_value_object): Update.
12030 * printcmd.c (do_examine): Update.
12031 * opencl-lang.c (lval_func_free_closure): Update.
12032 * mi/mi-main.c (register_changed_p): Don't call value_free.
12033 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
12034 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
12035 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
12036 value_free.
12037 * guile/scm-value.c (vlscm_free_value_smob)
12038 (vlscm_scm_from_value): Update.
12039 * frame.c (frame_register_unwind, frame_unwind_register_signed)
12040 (frame_unwind_register_unsigned, get_frame_register_bytes)
12041 (put_frame_register_bytes): Don't call value_free.
12042 * findvar.c (address_from_register): Don't call value_free.
12043 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
12044 * dwarf2loc.c (entry_data_value_free_closure)
12045 (value_of_dwarf_reg_entry, free_pieced_value_closure)
12046 (dwarf2_evaluate_loc_desc_full): Update.
12047 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12048 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12049 (~watchpoint, watch_command_1)
12050 (invalidate_bp_value_on_memory_change): Update.
12051 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
12052
12053 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
12054
12055 PR gdb/23022
12056 * warning.m4: Add -Wno-error=deprecated-register.
12057 * configure: Re-generate.
12058
12059 2018-04-05 Tom Tromey <tom@tromey.com>
12060
12061 * linespec.h: Remove include of "vec.h".
12062
12063 2018-04-05 Tom Tromey <tom@tromey.com>
12064
12065 * linespec.c (typep): Remove typedef.
12066 (find_methods, find_superclass_methods): Take a std::vector.
12067 (find_method): Use std::vector.
12068
12069 2018-04-05 Tom Tromey <tom@tromey.com>
12070
12071 * utils.c (compare_strings): Remove.
12072 * utils.h (compare_strings): Remove.
12073 * objc-lang.h (find_imps): Update.
12074 * objc-lang.c (find_methods): Take a std::vector.
12075 (uniquify_strings, find_imps): Likewise.
12076 * linespec.c (find_methods): Take a std::vector.
12077 (decode_objc): Use std::vector.
12078 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
12079 a std::vector.
12080 (find_method, find_function_symbols): Use std::vector.
12081
12082 2018-04-05 Tom Tromey <tom@tromey.com>
12083
12084 * completer.c (completion_tracker::completion_tracker): Remove
12085 cast.
12086 (completion_tracker::discard_completions): Likewise.
12087 * breakpoint.c (ambiguous_names_p): Remove cast.
12088 * ada-lang.c (_initialize_ada_language): Remove cast.
12089 * utils.h (streq): Update.
12090 (streq_hash): Add new declaration.
12091 * utils.c (streq): Return bool.
12092 (streq_hash): New function.
12093
12094 2018-04-05 Tom Tromey <tom@tromey.com>
12095
12096 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
12097 Remove a string copy.
12098
12099 2018-04-05 Tom Tromey <tom@tromey.com>
12100
12101 * linespec.c (filter_results): Use std::vector.
12102 (decode_line_2, decode_line_full): Update.
12103
12104 2018-04-05 Tom Tromey <tom@tromey.com>
12105
12106 * linespec.c (canonical_to_fullform): Return std::string.
12107 (filter_results): Update.
12108 (struct decode_line_2_item): Add constructor.
12109 <fullform, displayform>: Now std::string.
12110 (decode_line_2_compare_items): Now a std::sort comparator.
12111 (decode_line_2): Update.
12112
12113 2018-04-05 Tom Tromey <tom@tromey.com>
12114
12115 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
12116 (unexpected_linespec_error): Update.
12117 (linespec_parse_basic, parse_linespec): Update.
12118
12119 2018-04-05 Tom Tromey <tom@tromey.com>
12120
12121 * linespec.c (linespec_parse_basic): Reindent.
12122
12123 2018-04-05 Tom Tromey <tom@tromey.com>
12124
12125 * minsyms.h (iterate_over_minimal_symbols): Update.
12126 * minsyms.c (iterate_over_minimal_symbols): Take a
12127 gdb::function_view.
12128 * linespec.c (struct collect_minsyms): Remove.
12129 (compare_msyms): Now a std::sort comparator.
12130 (add_minsym): Add parameters.
12131 (search_minsyms_for_name): Update. Use std::vector.
12132
12133 2018-04-03 Tom Tromey <tom@tromey.com>
12134
12135 * mipsread.c (read_alphacoff_dynamic_symtab): Use
12136 gdb::byte_vector.
12137
12138 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12139
12140 * MAINTAINERS (Write After Approval): Add Weimin Pan.
12141
12142 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12143
12144 PR gdb/16959
12145 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
12146 printing static type.
12147
12148 2018-04-01 Tom Tromey <tom@tromey.com>
12149
12150 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
12151 (rs6000_xfer_shared_libraries): Update.
12152
12153 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12154
12155 * common/gdb_vecs.h (char_ptr): Remove.
12156 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
12157
12158 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12159
12160 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
12161 with std::vector.
12162 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
12163
12164 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12165
12166 * tracepoint.h (struct uploaded_tp): Initialize fields.
12167 <actions, step_actions, cmd_strings>: Change type to
12168 std::vector<char *>.
12169 * tracepoint.c (get_uploaded_tp): Allocate with new.
12170 (free_uploaded_tps): Free with delete.
12171 (parse_tracepoint_definition): Adjust to std::vector change.
12172 * breakpoint.c (read_uploaded_action): Likewise.
12173 (create_tracepoint_from_upload): Likewise.
12174 * ctf.c (ctf_write_uploaded_tp): Likewise.
12175 (SET_ARRAY_FIELD): Likewise.
12176 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
12177
12178 2018-03-30 Tom Tromey <tom@tromey.com>
12179
12180 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
12181 std::unique_ptr.
12182 (svr4_keep_data_in_core): Update.
12183 (svr4_read_so_list): Update.
12184
12185 2018-03-30 Tom Tromey <tom@tromey.com>
12186
12187 * windows-nat.c (handle_output_debug_string, handle_exception):
12188 Update.
12189 * target.h (target_read_string): Update.
12190 * target.c (target_read_string): Change "string" to
12191 unique_xmalloc_ptr.
12192 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12193 Update.
12194 * solib-frv.c (frv_current_sos): Update.
12195 * solib-dsbt.c (dsbt_current_sos): Update.
12196 * solib-darwin.c (darwin_current_sos): Update.
12197 * linux-thread-db.c (inferior_has_bug): Update.
12198 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12199 Update. Remove alloca.
12200 * ada-lang.c (ada_main_name): Update.
12201
12202 2018-03-30 Tom Tromey <tom@tromey.com>
12203
12204 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12205 (struct dwo_file_deleter): New.
12206 (dwo_file_up): New typedef.
12207 (open_and_init_dwo_file): Use dwo_file_up.
12208 (free_dwo_file_cleanup): Remove.
12209
12210 2018-03-30 Tom Tromey <tom@tromey.com>
12211
12212 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12213 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12214
12215 2018-03-30 Tom Tromey <tom@tromey.com>
12216
12217 * dwarf2read.c (class free_cached_comp_units): New class.
12218 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12219 (free_cached_comp_units): Remove function.
12220
12221 2018-03-30 Tom Tromey <tom@tromey.com>
12222
12223 * utils.h (make_cleanup_unpush_target): Remove.
12224 * inf-ptrace.c (struct target_unpusher): New.
12225 (target_unpush_up) New typedef.
12226 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12227 target_unpush_up.
12228 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12229
12230 2018-03-27 Tom Tromey <tom@tromey.com>
12231
12232 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12233
12234 2018-03-27 Pedro Alves <palves@redhat.com>
12235 Tom Tromey <tom@tromey.com>
12236
12237 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12238 destructor. Now a class.
12239 (gdb_readline_wrapper_cleanup): Remove function.
12240 (gdb_readline_wrapper): Remove cleanups.
12241
12242 2018-03-27 Tom Tromey <tom@tromey.com>
12243
12244 * typeprint.h (struct type_print_options) <local_typedefs,
12245 global_typedefs>: Remove "struct" keyword.
12246 (class typedef_hash_table): New class.
12247 (recursively_update_typedef_hash, add_template_parameters)
12248 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
12249 (find_typedef_in_hash): Don't declare.
12250 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
12251 (typedef_hash_table::recursively_update): Rename from
12252 recursively_update_typedef_hash. Now a member.
12253 (typedef_hash_table::add_template_parameters): Rename from
12254 add_template_parameters. Now a member.
12255 (typedef_hash_table::typedef_hash_table): Now a constructor;
12256 rename from create_typedef_hash.
12257 (typedef_hash_table::~typedef_hash_table): Now a destructor;
12258 rename from free_typedef_hash.
12259 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
12260 (do_free_global_table): Remove.
12261 (typedef_hash_table::typedef_hash_table): New constructor; renamed
12262 from copy_type_recursive.
12263 (create_global_typedef_table): Remove.
12264 (typedef_hash_table::find_global_typedef): Now a member of
12265 typedef_hash_table.
12266 (typedef_hash_table::find_typedef): Rename from
12267 find_typedef_in_hash; now a member.
12268 (whatis_exp): Update.
12269 * extension.h (struct ext_lang_type_printers): Add constructor and
12270 destructor.
12271 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
12272 declare.
12273 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
12274 Now a constructor; rename from start_ext_lang_type_printers.
12275 (ext_lang_type_printers): Now a destructor; rename from
12276 free_ext_lang_type_printers.
12277 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
12278 Update.
12279 (c_type_print_base_struct_union): Update. Remove cleanups.
12280
12281 2018-03-27 Tom Tromey <tom@tromey.com>
12282
12283 * dwarf-index-write.c: Include <cmath>.
12284
12285 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12286
12287 * NEWS: Add entry describing new "set|show varsize-limit" command.
12288 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
12289 command.
12290 * printcmd.c (_initialize_printcmd): Add "set var" alias of
12291 "set variable".
12292
12293 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
12294
12295 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
12296 dwarf-index-write.c
12297 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
12298 * dwarf-index-common.c: New file.
12299 * dwarf-index-common.h: New file.
12300 * dwarf-index-write.c: New file.
12301 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
12302 (struct dwarf2_section_info): Move from here.
12303 (dwarf2_section_info_def): Likewise.
12304 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
12305 (offset_type): Likewise.
12306 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
12307 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
12308 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
12309 (byte_swap): Likewise.
12310 (MAYBE_SWAP): Likewise.
12311 (dwarf2_per_cu_ptr): Likewise.
12312 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
12313 (struct tu_stats): Likewise.
12314 (struct dwarf2_per_objfile): Likewise.
12315 (struct dwarf2_per_cu_data): Likewise.
12316 (struct signatured_type): Likewise.
12317 (sig_type_ptr): Likewise.
12318 (DEF_VEC_P (sig_type_ptr)): Likewise.
12319 (INDEX4_SUFFIX): Likewise.
12320 (INDEX5_SUFFIX): Likewise.
12321 (DEBUG_STR_SUFFIX): Likewise.
12322 (dwarf2_read_section): Make non-static.
12323 (mapped_index_string_hash): Move from here.
12324 (dwarf5_djb_hash): Likewise.
12325 (file_write): Likewise.
12326 (class data_buf): Likewise.
12327 (struct symtab_index_entry): Likewise.
12328 (struct mapped_symtab): Likewise.
12329 (find_slot): Likewise.
12330 (hash_expand): Likewise.
12331 (add_index_entry): Likewise.
12332 (uniquify_cu_indices): Likewise.
12333 (class c_str_view): Likewise.
12334 (class c_str_view_hasher): Likewise.
12335 (class vector_hasher): Likewise.
12336 (write_hash_table): Likewise.
12337 (psym_index_map): Likewise.
12338 (struct addrmap_index_data): Likewise.
12339 (add_address_entry): Likewise.
12340 (add_address_entry_worker): Likewise.
12341 (write_address_map): Likewise.
12342 (symbol_kind): Likewise.
12343 (write_psymbols): Likewise.
12344 (struct signatured_type_index_data): Likewise.
12345 (write_one_signatured_type): Likewise.
12346 (recursively_count_psymbols): Likewise.
12347 (recursively_write_psymbols): Likewise.
12348 (class debug_names): Likewise.
12349 (check_dwarf64_offsets): Likewise.
12350 (psyms_seen_size): Likewise.
12351 (write_gdbindex): Likewise.
12352 (write_debug_names): Likewise.
12353 (assert_file_size): Likewise.
12354 (write_psymtabs_to_index): Likewise.
12355 (save_gdb_index_command): Likewise.
12356 (_initialize_dwarf2_read): Don't register the "save gdb-index"
12357 command.
12358 * dwarf2read.h: New file.
12359
12360 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12361
12362 PR gdb/22670
12363 * dwarf2read.c (dwarf2_physname): Do not return the demangled
12364 symbol name if the CU's language stores symbol names in linkage
12365 format.
12366 * language.h (struct language_defn)
12367 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
12368 all instances of this struct.
12369
12370 2018-03-26 Tom Tromey <tom@tromey.com>
12371
12372 * stack.c (backtrace_command_1): Remove verbose code.
12373
12374 2018-03-26 Tom Tromey <tom@tromey.com>
12375
12376 * python/py-framefilter.c (py_print_type): Don't catch
12377 exceptions. Return void.
12378 (py_print_value): Likewise.
12379 (py_print_single_arg): Likewise.
12380 (enumerate_args): Don't catch exceptions.
12381 (py_print_args): Likewise.
12382 (py_print_frame): Likewise.
12383 (gdbpy_apply_frame_filter): Catch exceptions here.
12384
12385 2018-03-26 Tom Tromey <tom@tromey.com>
12386
12387 * stack.c (_initialize_stack): Remove trailing newlines from help
12388 text. Add "Usage" line to "backtrace" help.
12389
12390 2018-03-26 Tom Tromey <tom@tromey.com>
12391
12392 PR python/16486:
12393 * python/py-framefilter.c (py_print_args): Call wrap_hint.
12394
12395 2018-03-26 Tom Tromey <tom@tromey.com>
12396
12397 * python/py-framefilter.c (py_print_single_arg): Return
12398 EXT_LANG_BT_ERROR from catch.
12399
12400 2018-03-26 Tom Tromey <tom@tromey.com>
12401
12402 PR backtrace/15584:
12403 * stack.c (backtrace_command_1): Move some code into no-filters
12404 "if".
12405
12406 2018-03-26 Tom Tromey <tom@tromey.com>
12407
12408 * python/py-framefilter.c (throw_quit_or_print_exception): New
12409 function.
12410 (gdbpy_apply_frame_filter): Use it.
12411
12412 2018-03-26 Tom Tromey <tom@tromey.com>
12413
12414 PR cli/17716:
12415 * python/py-framefilter.c (py_print_type, py_print_value)
12416 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12417 RETURN_MASK_ERROR.
12418
12419 2018-03-26 Tom Tromey <tom@tromey.com>
12420
12421 * python/py-framefilter.c (enumerate_args): Use
12422 gdb::unique_xmalloc_ptr.
12423
12424 2018-03-26 Tom Tromey <tom@tromey.com>
12425
12426 * python/py-framefilter.c (py_print_frame): Return
12427 EXT_LANG_BT_OK.
12428 (gdbpy_apply_frame_filter): Update comment.
12429 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12430 Remove.
12431 <EXT_LANG_BT_NO_FILTERS>: Change value.
12432
12433 2018-03-26 Tom Tromey <tom@tromey.com>
12434
12435 PR backtrace/15582:
12436 * stack.c (backtrace_command): Parse "hide" argument.
12437 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12438 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12439 constant.
12440
12441 2018-03-26 Tom Tromey <tom@tromey.com>
12442
12443 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12444 add "flags".
12445 (backtrace_command): Remove "fulltrace", add "flags".
12446
12447 2018-03-26 Tom Tromey <tom@tromey.com>
12448
12449 * stack.c (backtrace_command): Rewrite command line parsing.
12450
12451 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12452
12453 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12454
12455 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12456
12457 * filename-seen-cache.h: Add include guard.
12458
12459 2018-03-26 Keith Seitz <keiths@redhat.com>
12460
12461 * symfile.c (place_section): Remove "struct" from section_addr_info
12462 in comment.
12463 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
12464 "struct" keyword from section_addr_info.
12465
12466 2018-03-26 Alan Hayward <alan.hayward@arm.com>
12467
12468 * regformats/regdef.h (reg): Add constructors.
12469
12470 2018-03-25 Pedro Alves <palves@redhat.com>
12471
12472 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
12473 if then/else bodies in var_func_name extraction.
12474
12475 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
12476
12477 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
12478 lookup_minimal_symbol() to find symbol entry.
12479 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
12480
12481 2018-03-23 Keith Seitz <keiths@redhat.com>
12482
12483 PR c++/22968
12484 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
12485 nested type definitions for C++, too.
12486
12487 2018-03-23 Tom Tromey <tom@tromey.com>
12488
12489 * machoread.c (struct oso_el): Add a constructor. Don't define as
12490 a typedef.
12491 (macho_register_oso): Remove.
12492 (macho_symtab_read): Take a std::vector.
12493 (oso_el_compare_name): Now a std::sort comparator.
12494 (macho_symfile_read_all_oso): Take a std::vector.
12495 (macho_symfile_read): Use std::vector. Remove cleanups.
12496
12497 2018-03-22 Tom Tromey <tom@tromey.com>
12498
12499 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
12500 (record_full_goto_bookmark): Use std::string.
12501
12502 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12503
12504 PR tdep/18295
12505 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
12506 a single mask.
12507
12508 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12509
12510 * rs6000-tdep.c (store_insn_p): New function.
12511 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
12512 and cr_reg to their unshifted values. Use store_insn_p to
12513 match LR saves using either R1 or fdata->alloca_reg. Use
12514 store_insn_p to match CR saves. Set alloca_reg_offset
12515 when alloca_reg and framep are set. Remove lr_reg shift
12516 when assigning to fdata->lr_register.
12517
12518 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
12519
12520 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
12521 command line args instead of emitting a warning.
12522
12523 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12524
12525 * tracepoint.h (struct static_tracepoint_marker): Initialize
12526 fields, define default constructor, move constructor and move
12527 assignment, disable the rest.
12528 <str_id, extra>: Make std::string.
12529 (release_static_tracepoint_marker): Remove.
12530 (free_current_marker): Remove.
12531 * tracepoint.c (free_current_marker): Remove.
12532 (parse_static_tracepoint_marker_definition): Adjust to
12533 std::string, use new hex2str overload.
12534 (release_static_tracepoint_marker): Remove.
12535 (print_one_static_tracepoint_marker): Get marker by reference
12536 and adjust to std::string.
12537 (info_static_tracepoint_markers_command): Adjust to std::vector
12538 changes
12539 * target.h (static_tracepoint_marker_p): Remove typedef.
12540 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
12541 (struct target_ops) <to_static_tracepoint_marker_at>: Return
12542 bool.
12543 <to_static_tracepoint_markers_by_strid>: Return std::vector.
12544 * target-debug.h
12545 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
12546 (target_debug_print_std_vector_static_tracepoint_marker): New.
12547 (target_debug_print_struct_static_tracepoint_marker_p): Rename
12548 to...
12549 (target_debug_print_static_tracepoint_marker_p): ... this.
12550 * target-delegates.c: Re-generate.
12551 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
12552 Make std::string.
12553 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
12554 (decode_static_tracepoint_spec): Adjust to std::vector.
12555 (tracepoint_print_one_detail): Adjust to std::string.
12556 (strace_marker_decode_location): Adjust to std::string.
12557 (update_static_tracepoint): Adjust to std::string, remove call
12558 to release_static_tracepoint_marker.
12559 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
12560 Adjust to std::vector.
12561 * remote.c (remote_static_tracepoint_marker_at): Return bool.
12562 (remote_static_tracepoint_markers_by_strid): Adjust to
12563 std::vector.
12564 * common/rsp-low.h (hex2str): New overload with explicit count
12565 of bytes.
12566 * common/rsp-low.c (hex2str): New overload with explicit count
12567 of bytes.
12568 * unittests/rsp-low-selftests.c (test_hex2str): New function.
12569 (_initialize_rsp_low_selftests): Add test_hex2str test.
12570 * unittests/tracepoint-selftests.c
12571 (test_parse_static_tracepoint_marker_definition): Adjust to
12572 std::string.
12573
12574 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12575
12576 * tracepoint.c (parse_static_tracepoint_marker_definition):
12577 Consider case where the definition is followed by more
12578 definitions.
12579 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12580 tracepoint-selftests.c.
12581 * unittests/tracepoint-selftests.c: New.
12582
12583 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12584
12585 * MAINTAINERS (Write After Approval): Add Pedro Franco de
12586 Carvalho.
12587
12588 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
12589
12590 * symtab.c (find_pc_sect_line): fixed indentation.
12591
12592 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
12593
12594 * symtab.c (find_pc_sect_line): now uses binary search.
12595
12596 2018-03-19 Tom Tromey <tom@tromey.com>
12597
12598 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
12599 "IDENT" production.
12600
12601 2018-03-19 Pedro Alves <palves@redhat.com>
12602 Tom Tromey <tom@tromey.com>
12603
12604 * unittests/observable-selftests.c: New file.
12605 * common/observable.h: New file.
12606 * observable.h: New file.
12607 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
12608 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
12609 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
12610 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
12611 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
12612 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
12613 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
12614 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
12615 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
12616 python/py-breakpoint.c, python/py-finishbreakpoint.c,
12617 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
12618 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
12619 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
12620 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
12621 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
12622 tui/tui-interp.c, valops.c: Update all users.
12623 * tui/tui-hooks.c (tui_bp_created_observer)
12624 (tui_bp_deleted_observer, tui_bp_modified_observer)
12625 (tui_inferior_exit_observer, tui_before_prompt_observer)
12626 (tui_normal_stop_observer, tui_register_changed_observer):
12627 Remove.
12628 (tui_observers_token): New global.
12629 (attach_or_detach, tui_attach_detach_observers): New functions.
12630 (tui_install_hooks, tui_remove_hooks): Use
12631 tui_attach_detach_observers.
12632 * record-btrace.c (record_btrace_thread_observer): Remove.
12633 (record_btrace_thread_observer_token): New global.
12634 * observer.sh: Remove.
12635 * observer.c: Rename to observable.c.
12636 * observable.c (namespace gdb_observers): Define new objects.
12637 (observer_debug): Move into gdb_observers namespace.
12638 (struct observer, struct observer_list, xalloc_observer_list_node)
12639 (xfree_observer_list_node, generic_observer_attach)
12640 (generic_observer_detach, generic_observer_notify): Remove.
12641 (_initialize_observer): Update.
12642 Don't include observer.inc.
12643 * Makefile.in (generated_files): Remove observer.h, observer.inc.
12644 (clean mostlyclean): Likewise.
12645 (observer.h, observer.inc): Remove targets.
12646 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
12647 (COMMON_SFILES): Use observable.c, not observer.c.
12648 * .gitignore: Remove observer.h.
12649
12650 2018-03-18 Tom Tromey <tom@tromey.com>
12651
12652 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
12653 gdb::def_vector.
12654 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
12655
12656 2018-03-17 Tom Tromey <tom@tromey.com>
12657
12658 * auto-load.c (auto_load_objfile_script_1): Use std::string.
12659
12660 2018-03-17 Tom Tromey <tom@tromey.com>
12661
12662 * target.c (class scoped_target_fd): New.
12663 (target_fileio_close_cleanup): Remove.
12664 (target_fileio_read_alloc_1): Use scoped_target_fd.
12665
12666 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
12667
12668 * silent-rules.mk: New.
12669 * Makefile.in: Include silent-rules.mk
12670 (srcdir, VPATH, top_srcdir): Move up.
12671 (COMPILE): Add ECHO_CXX.
12672 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
12673 (init.c): Add ECHO_INIT_C.
12674 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
12675 (version.c): Add ECHO_GEN.
12676 (printcmd.o): Add ECHO_CXX.
12677 (target-float.o): Add ECHO_CXX.
12678 (ada-exp.o): Add ECHO_CXX.
12679 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
12680 (insight$(EXEEXT)): Add ECHO_CXXLD.
12681 * gnulib/configure.ac: Add AM_SILENT_RULES.
12682 * gnulib/aclocal.m4: Re-generate.
12683 * gnulib/configure: Re-generate.
12684 * gnulib/import/Makefile.in: Re-generate.
12685
12686 2018-03-16 Tom Tromey <tom@tromey.com>
12687
12688 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
12689 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
12690 * utils.c (do_free_section_addr_info)
12691 (make_cleanup_free_section_addr_info): Remove.
12692 * symfile.h (struct other_sections): Add constructor.
12693 (struct section_addr_info): Remove.
12694 (section_addr_info): New typedef.
12695 (struct sym_fns) <sym_offsets>: Change type of parameter.
12696 (build_section_addr_info_from_objfile)
12697 (relative_addr_info_to_section_offsets, addr_info_make_relative)
12698 (default_symfile_offsets, symbol_file_add)
12699 (symbol_file_add_from_bfd)
12700 (build_section_addr_info_from_section_table): Update.
12701 (alloc_section_addr_info, free_section_addr_info): Don't declare.
12702 * symfile.c (alloc_section_addr_info): Remove.
12703 (build_section_addr_info_from_section_table): Change return type.
12704 Update.
12705 (build_section_addr_info_from_bfd)
12706 (build_section_addr_info_from_objfile): Likewise.
12707 (free_section_addr_info): Remove.
12708 (relative_addr_info_to_section_offsets): Change type of "addrs".
12709 (addrs_section_compar): Now a std::sort comparator.
12710 (addrs_section_sort): Change return type.
12711 (addr_info_make_relative): Change type of "addrs". Update.
12712 (default_symfile_offsets, syms_from_objfile_1)
12713 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
12714 (symbol_file_add_separate): Update.
12715 (symbol_file_add): Change type of "addrs". Update.
12716 (add_symbol_file_command): Update. Remove cleanups.
12717 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
12718 cleanups.
12719 * symfile-debug.c (debug_sym_offsets): Change type of "info".
12720 * solib.c (solib_read_symbols): Update.
12721 * objfiles.c (objfile_relocate): Update. Remove cleanups.
12722 * machoread.c (macho_symfile_offsets): Update.
12723 * jit.c (jit_bfd_try_read_symtab): Update.
12724
12725 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
12726
12727 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12728 unittests/utils-selftests.c.
12729 * unittests/utils-selftests.c: New file.
12730
12731 2018-03-14 Tom Tromey <tom@tromey.com>
12732
12733 PR cli/14977:
12734 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
12735 for NULL.
12736
12737 2018-03-14 Tom Tromey <tom@tromey.com>
12738
12739 PR cli/19918:
12740 * printcmd.c (printf_pointer): Allow "-" in format.
12741
12742 2018-03-14 Tom Tromey <tom@tromey.com>
12743
12744 * printcmd.c (_initialize_printcmd): Add usage to printf.
12745
12746 2018-03-14 Yao Qi <qiyao@sourceware.org>
12747
12748 * MAINTAINERS: Update my email address.
12749
12750 2018-03-13 Tom Tromey <tom@tromey.com>
12751
12752 * machoread.c (macho_check_dsym): Change filenamep to a
12753 std::string*.
12754 (macho_symfile_read): Update.
12755 * symfile.c (load_command): Use std::string.
12756
12757 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
12758
12759 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
12760 to error message string.
12761 (riscv_register_name): Use xsnprintf instead of sprintf.
12762 (riscv_insn::fetch_instruction): Use gdb_assert instead of
12763 internal_error.
12764 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
12765 error.
12766 (riscv_push_dummy_call): Likewise.
12767
12768 2018-03-12 Tom Tromey <tom@tromey.com>
12769
12770 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
12771 Use gdb::byte_vector.
12772 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
12773
12774 2018-03-12 Yao Qi <yao.qi@linaro.org>
12775
12776 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
12777 parameter type to readable_regcache.
12778 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
12779 the declaration.
12780
12781 2018-03-11 Tom Tromey <tom@tromey.com>
12782
12783 * dwarf2read.c (struct nextfield): Add initializers.
12784 (struct nextfnfield): Remove.
12785 (struct fnfieldlist): Add initializers. Remove "length" and
12786 "head", use std::vector.
12787 (struct decl_field_list): Remove.
12788 (struct field_info): Add initializers.
12789 <fields, baseclasses>: Now std::vector.
12790 <nbaseclasses, nfnfields, typedef_field_list_count,
12791 nested_types_list_count>: Remove.
12792 (dwarf2_add_field, dwarf2_add_type_defn)
12793 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
12794 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
12795 (process_structure_scope): Update.
12796
12797 2018-03-11 Tom Tromey <tom@tromey.com>
12798
12799 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
12800 for use by std::sort.
12801 (build_type_psymtabs_1): Use std::vector.
12802
12803 2018-03-09 Eli Zaretskii <eliz@gnu.org>
12804
12805 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
12806 and LIBMPFR in the printed configuration.
12807
12808 2018-03-08 Tom Tromey <tom@tromey.com>
12809
12810 * source.c (get_filename_and_charpos): Use scoped_fd.
12811 * nto-procfs.c (procfs_open_1): Use scoped_fd.
12812 (procfs_pidlist): Likewise.
12813 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
12814 (iterate_over_mappings): Likewise.
12815
12816 2018-03-08 Tom Tromey <tom@tromey.com>
12817
12818 * infcall.c (struct call_return_meta_info)
12819 <stack_temporaries_enabled>: Remove.
12820 (get_call_return_value, call_function_by_hand_dummy): Update.
12821 * thread.c (disable_thread_stack_temporaries): Remove.
12822 (enable_thread_stack_temporaries): Remove.
12823 (thread_stack_temporaries_enabled_p): Return bool.
12824 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12825 (get_last_thread_stack_temporary): Update.
12826 * eval.c (evaluate_subexp): Update.
12827 * gdbthread.h (class enable_thread_stack_temporaries): Now a
12828 class, not a function.
12829 (value_ptr, value_vec): Remove typedefs.
12830 (class thread_info) <stack_temporaries_enabled>: Now bool.
12831 <stack_temporaries>: Now a std::vector.
12832 (thread_stack_temporaries_enabled_p)
12833 (value_in_thread_stack_temporaries): Return bool.
12834
12835 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
12836
12837 * remote.c (putpkt_binary): Fix omitted bytes reporting.
12838 (getpkt_or_notif_sane_1): Likewise.
12839
12840 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12841
12842 * build-id.c (build_id_to_debug_bfd): Use std::string.
12843
12844 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12845
12846 * build-id.c (find_separate_debug_file_by_buildid): Return
12847 std::string.
12848 * build-id.h (find_separate_debug_file_by_buildid): Return
12849 std::string.
12850 * coffread.c (coff_symfile_read): Adjust to std::string.
12851 * elfread.c (elf_symfile_read): Adjust to std::string.
12852 * symfile.c (separate_debug_file_exists): Change parameter to
12853 std::string.
12854 (find_separate_debug_file): Return std::string.
12855 (find_separate_debug_file_by_debuglink): Return std::string.
12856 * symfile.h (find_separate_debug_file_by_debuglink): Return
12857 std::string.
12858
12859 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12860
12861 * common/xml-utils.c (xml_escape_text): Move code to...
12862 (xml_escape_text_append): ... this new function.
12863 * common/xml-utils.h (xml_escape_text_append): New declaration.
12864 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12865 New function.
12866 (_initialize_xml_utils): register test_xml_escape_text_append as
12867 a selftest.
12868
12869 2018-03-07 Alan Hayward <alan.hayward@arm.com>
12870
12871 * defs.h: Remove MAX_REGISTER_SIZE.
12872 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12873 asserts.
12874 * python/py-unwind.c (pyuw_sniffer): Likewise.
12875
12876 2018-03-07 Tom Tromey <tom@tromey.com>
12877
12878 * linux-tdep.c (linux_info_proc): Update.
12879 * target.h (struct target_ops) <to_fileio_readlink>: Return
12880 optional<string>.
12881 (target_fileio_readlink): Return optional<string>.
12882 * remote.c (remote_hostio_readlink): Return optional<string>.
12883 * inf-child.c (inf_child_fileio_readlink): Return
12884 optional<string>.
12885 * target.c (target_fileio_readlink): Return optional<string>.
12886
12887 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12888
12889 * regcache.c (cooked_read_test): Add riscv to the list of
12890 architectures that have a save_reggroup.
12891
12892 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12893
12894 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12895 value is not a dynamic class object.
12896
12897 2018-03-06 Tom Tromey <tom@tromey.com>
12898
12899 * rust-exp.y: Formatting fixes.
12900
12901 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12902
12903 * riscv-tdep.c (riscv_register_name): Remove target description
12904 support.
12905 (riscv_gdbarch_init): Remove target description check.
12906
12907 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12908
12909 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12910 comment.
12911 * riscv-tdep.h: Likewise.
12912
12913 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12914
12915 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12916 (riscv_pseudo_register_write): Delete.
12917 (riscv_gdbarch_init): Remove all use of pseudo registers.
12918
12919 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12920
12921 * record-btrace.c (btrace_print_lines): Replace cleanup
12922 parameter with RAII equivalents.
12923 (btrace_insn_history): Replace cleanup with RAII equivalents.
12924 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12925 make_cleanup_ui_out_tuple_begin_end): Remove.
12926 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12927 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12928 make_cleanup_ui_out_list_begin_end): Remove.
12929
12930 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12931
12932 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12933 parameter types to std::vector. Use bool.
12934 (record_btrace_wait): Replace VEC(tp_t) with
12935 std::vector<thread_info *>.
12936 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12937
12938 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12939
12940 * record-btrace.c (record_btrace_disable_callback): Remove.
12941 (struct scoped_btrace_disable): New.
12942 (record_btrace_open): Use scoped_btrace_disable.
12943
12944 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12945
12946 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12947 reading values from registers.
12948
12949 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12950
12951 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12952 where appropriate.
12953
12954 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12955
12956 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12957 change parameter type. Use GDB's print functions, and use
12958 core_addr_to_string where appropriate.
12959 (riscv_push_dummy_call): Use core_addr_to_string where
12960 appropriate, update call to riscv_print_arg_location, and reindent
12961 a few lines.
12962 (riscv_return_value): Update call to riscv_print_arg_location.
12963
12964 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12965 Tim Newsome <tim@sifive.com>
12966 Albert Ou <a0u@eecs.berkeley.edu>
12967 Darius Rad <darius@bluespec.com>
12968
12969 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12970 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12971 (ALLDEPFILES): Add riscv-tdep.c
12972 * configure.tgt: Add riscv support.
12973 * riscv-tdep.c: New file.
12974 * riscv-tdep.h: New file.
12975 * NEWS: Mention new target.
12976 * MAINTAINERS: Add entry for riscv.
12977
12978 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12979
12980 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12981 fields within aggregates.
12982
12983 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12984
12985 * record-btrace.c (btrace_print_lines): Change type of flags to
12986 gdb_disassembly_flags.
12987
12988 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12989
12990 * fbsd-nat.c: Include "inf-ptrace.h".
12991 (USE_SIGTRAP_SIGINFO): Conditionally define.
12992 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12993 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12994 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12995 function.
12996 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12997 Likewise.
12998 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12999 Likewise.
13000 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13001 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13002 "supports_stopped_by_hw_breakpoint" target methods.
13003
13004 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13005
13006 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13007 * fbsd-nat.c (debug_fbsd_nat): New variable.
13008 (show_fbsd_nat_debug): New function.
13009 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13010 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13011
13012 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13013
13014 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13015 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13016 prototype.
13017 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13018 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13019 method.
13020
13021 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13022
13023 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13024 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13025
13026 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13027
13028 * charset.c (struct charset_vector): New.
13029 (charsets): Change type to charset_vector.
13030 (find_charset_names): Adjust.
13031 (add_one): Adjust.
13032 (_initialize_charset): Adjust.
13033
13034 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13035
13036 * progspace.h (struct program_space) <deleted_solibs>: Change
13037 type to std::vector<std::string>.
13038 * progspace.c (clear_program_space_solib_cache): Adjust.
13039 * breakpoint.c (print_solib_event): Adjust.
13040 (check_status_catch_solib): Adjust.
13041 * solib.c (update_solib_list): Adjust.
13042 * ui-out.h (class ui_out) <field_string>: New overload.
13043 * ui-out.c (ui_out::field_string): New overload.
13044
13045 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13046
13047 * progspace.h (struct program_space): Add constructor and
13048 destructor, initialize fields.
13049 (add_program_space): Remove.
13050 * progspace.c (add_program_space): Rename to...
13051 (program_space::program_space): ... this.
13052 (release_program_space): Rename to...
13053 (program_space::~program_space): ... this.
13054 (delete_program_space): Use delete to delete program_space.
13055 (initialize_progspace): Use new to allocate program_space.
13056 * inferior.c (add_inferior_with_spaces): Likewise.
13057 (clone_inferior_command): Likewise.
13058 * infrun.c (follow_fork_inferior): Likewise.
13059 (handle_vfork_child_exec_or_exit): Likewise.
13060
13061 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13062
13063 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
13064 (delim_string_to_char_ptr_vec): Return std::vector of
13065 gdb::unique_xmalloc_ptr.
13066 (dirnames_to_char_ptr_vec_append): Take std::vector of
13067 gdb::unique_xmalloc_ptr.
13068 (dirnames_to_char_ptr_vec): Return std::vector of
13069 gdb::unique_xmalloc_ptr.
13070 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
13071 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
13072 (delim_string_to_char_ptr_vec): Return an std::vector of
13073 gdb::unique_xmalloc_ptr, adjust the code.
13074 (dirnames_to_char_ptr_vec_append): Take an std::vector of
13075 gdb::unique_xmalloc_ptr, adjust the code.
13076 (dirnames_to_char_ptr_vec): Return an std::vector of
13077 gdb::unique_xmalloc_ptr, adjust the code.
13078 * auto-load.c (auto_load_safe_path_vec): Change type to
13079 std::vector of gdb::unique_xmalloc_ptr.
13080 (auto_load_expand_dir_vars): Return an std::vector of
13081 gdb::unique_xmalloc_ptr, adjust the code.
13082 (auto_load_safe_path_vec_update): Adjust.
13083 (filename_is_in_auto_load_safe_path_vec): Adjust.
13084 (auto_load_objfile_script_1): Adjust.
13085 * build-id.c (build_id_to_debug_bfd): Adjust.
13086 * linux-thread-db.c (thread_db_load_search): Adjust.
13087 * source.c (add_path): Adjust.
13088 (openp): Adjust.
13089 * symfile.c (find_separate_debug_file): Adjust.
13090 * utils.c (do_free_char_ptr_vec): Remove.
13091 (make_cleanup_free_char_ptr_vec): Remove.
13092
13093 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
13094
13095 PR gdb/22907
13096 * common/pathstuff.c: Conditionally include "<windows.h>".
13097
13098 2018-03-01 Georg Sauthoff <mail@georg.so>
13099
13100 PR gdb/22888
13101 * gcore.in: Quote variables and switch interpreter to bash.
13102
13103 2018-03-01 Tom Tromey <tom@tromey.com>
13104
13105 * dwarf2read.c (alloc_discriminant_info): Fix default_index
13106 assertion. Add assertion for discriminant_index.
13107 (quirk_rust_enum): Use correct base type name in univariant case.
13108
13109 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
13110
13111 * record.c (get_call_history_modifiers): Return a
13112 record_print_flags.
13113 (cmd_record_call_history): Adjust.
13114 * record-btrace.c (record_btrace_call_history): Adjust.
13115 (record_btrace_call_history_range): Adjust.
13116 (record_btrace_call_history_from): Adjust.
13117 * target-debug.h (target_debug_print_record_print_flags): New.
13118 * target-delegates.c: Re-generate.
13119 * target.c (target_call_history): Change flags type.
13120 (target_call_history_from): Likewise.
13121 (target_call_history_range): Likewise.
13122 * target.h (struct target_ops) <target_call_history>: Likewise.
13123 (target_call_history_from): Likewise.
13124 (target_call_history_range): Likewise.
13125
13126 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13127 Simon Marchi <simon.marchi@polymtl.ca>
13128
13129 * common/common-utils.c: Include "sys/stat.h".
13130 (is_regular_file): Move here from "source.c"; change return
13131 type to "bool".
13132 * common/common-utils.h (is_regular_file): New prototype.
13133 * common/pathstuff.c (contains_dir_separator): New function.
13134 * common/pathstuff.h (contains_dir_separator): New prototype.
13135 * source.c: Don't include "sys/stat.h".
13136 (is_regular_file): Move to "common/common-utils.c".
13137
13138 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13139
13140 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
13141 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
13142 * auto-load.c: Include "common/pathstuff.h".
13143 * common/common-def.h (current_directory): Move here.
13144 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
13145 function.
13146 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
13147 prototype.
13148 * common/pathstuff.c: New file.
13149 * common/pathstuff.h: New file.
13150 * compile/compile.c: Include "common/pathstuff.h".
13151 * defs.h (current_directory): Move to "common/common-defs.h".
13152 * dwarf2read.c: Include "common/pathstuff.h".
13153 * exec.c: Likewise.
13154 * guile/scm-safe-call.c: Likewise.
13155 * linux-thread-db.c: Likewise.
13156 * main.c: Likewise.
13157 * nto-tdep.c: Likewise.
13158 * objfiles.c: Likewise.
13159 * source.c: Likewise.
13160 * symtab.c: Likewise.
13161 * utils.c: Include "common/pathstuff.h".
13162 (gdb_realpath): Move to "common/pathstuff.c".
13163 (gdb_realpath_keepfile): Likewise.
13164 (gdb_abspath): Likewise.
13165 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
13166 (gdb_realpath_keepfile): Likewise.
13167 (gdb_abspath): Likewise.
13168
13169 2018-02-28 John Baldwin <jhb@FreeBSD.org>
13170
13171 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
13172 wildcard process pid for super_resume for kernels with a
13173 specific bug.
13174
13175 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
13176
13177 * compile/compile.c (get_args): Add additional comments
13178 explaining function.
13179
13180 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
13181 Tom Tromey <tom@tromey.com>
13182
13183 * target.h (memory_write_request_s): Remove typedef. Don't define
13184 VEC.
13185 (target_write_memory_blocks): Change argument to std::vector.
13186 (struct memory_write_request): Add constructor.
13187 * target-memory.c (compare_block_starting_address): Return bool.
13188 Change argument types.
13189 (claim_memory): Change arguments to use std::vector.
13190 (split_regular_and_flash_blocks, blocks_to_erase)
13191 (compute_garbled_blocks): Likewise.
13192 (cleanup_request_data, cleanup_write_requests_vector): Remove.
13193 (target_write_memory_blocks): Change argument to std::vector.
13194 * symfile.c (struct load_section_data): Add constructor and
13195 destructor. Use std::vector for "requests".
13196 (struct load_progress_data): Add initializers.
13197 (load_section_callback): Update. Use "new".
13198 (clear_memory_write_data): Remove.
13199 (generic_load): Update.
13200
13201 2018-02-27 Alan Hayward <alan.hayward@arm.com>
13202
13203 * arch/aarch64.h: Use common/tdesc.h.
13204
13205 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13206
13207 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13208 architecture with a 64-bit ABI.
13209
13210 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13211
13212 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13213 ahead of target description loading.
13214
13215 2018-02-26 Tom Tromey <tom@tromey.com>
13216
13217 * stack.c (backtrace_command_1): Update.
13218 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13219 of "flags".
13220 * python/py-framefilter.c (py_print_frame)
13221 (gdbpy_apply_frame_filter): Change type of "flags".
13222 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13223 of "flags".
13224 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13225 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13226 * extension.h (enum frame_filter_flag): Rename from
13227 frame_filter_flags.
13228 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13229 (apply_ext_lang_frame_filter): Change type of "flags".
13230 * extension.c (apply_ext_lang_frame_filter): Change type of
13231 "flags".
13232 * extension-priv.h (struct extension_language_ops)
13233 <apply_frame_filter>: Change type of "flags".
13234
13235 2018-02-26 Tom Tromey <tom@tromey.com>
13236
13237 PR python/16497:
13238 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
13239 off-by-one in py_end computation.
13240 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13241 PRINT_MORE_FRAMES.
13242 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
13243 constant.
13244
13245 2018-02-26 Tom Tromey <tom@tromey.com>
13246
13247 * dwarf2read.c (struct variant_field): New.
13248 (struct nextfield) <variant>: New field.
13249 (dwarf2_add_field): Handle DW_TAG_variant_part.
13250 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
13251 discriminated union.
13252 (read_structure_type): Handle DW_TAG_variant_part.
13253 (handle_struct_member_die): New function, extracted from
13254 process_structure_scope. Handle DW_TAG_variant.
13255 (process_structure_scope): Handle discriminated unions. Call
13256 handle_struct_member_die.
13257
13258 2018-02-26 Tom Tromey <tom@tromey.com>
13259
13260 * rust-lang.h (rust_last_path_segment): Declare.
13261 * rust-lang.c (rust_last_path_segment): Now public. Change
13262 contract.
13263 (struct disr_info): Remove.
13264 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
13265 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
13266 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
13267 (rust_enum_p, rust_enum_variant): New function.
13268 (rust_underscore_fields): Remove "offset" parameter.
13269 (rust_print_enum): New function.
13270 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
13271 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
13272 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
13273 enums.
13274 (rust_internal_print_type): New function, from rust_print_type.
13275 Remove enum code.
13276 (rust_print_type): Call rust_internal_print_type.
13277 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
13278 Update enum handling.
13279 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
13280 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
13281 (rust_union_quirks): New functions.
13282 (process_full_comp_unit, process_full_type_unit): Call
13283 rust_union_quirks.
13284 (process_structure_scope): Update rust_unions if necessary.
13285
13286 2018-02-26 Tom Tromey <tom@tromey.com>
13287
13288 * value.h (value_union_variant): Declare.
13289 * valops.c (value_union_variant): New function.
13290 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
13291 (struct discriminant_info): New.
13292 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
13293 enumerator.
13294 (struct main_type) <flag_discriminated_union>: New field.
13295
13296 2018-02-26 Tom Tromey <tom@tromey.com>
13297
13298 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13299 unittests/unpack-selftests.c.
13300 * unittests/unpack-selftests.c: New file.
13301 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
13302
13303 2018-02-26 Yao Qi <yao.qi@linaro.org>
13304
13305 * dwarf2read.c (struct partial_die_info) <read>: New method.
13306 (read_partial_die): Remove the declaration.
13307 (load_partial_dies): Update.
13308 (partial_die_info::partial_die_info):
13309 (read_partial_die): Change it to partial_die_info::read.
13310
13311 2018-02-26 Yao Qi <yao.qi@linaro.org>
13312
13313 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
13314 (fixup_partial_die): Remove declaration.
13315 (scan_partial_symbols): Update.
13316 (partial_die_parent_scope): Likewise.
13317 (partial_die_full_name): Likewise.
13318 (fixup_partial_die): Change it to partial_die_info::fixup.
13319
13320 2018-02-26 Yao Qi <yao.qi@linaro.org>
13321
13322 * dwarf2read.c (read_partial_die): Update the declaration.
13323 (load_partial_dies): Caller update.
13324 (read_partial_die): Remove one argument abbrev_len.
13325
13326 2018-02-26 Yao Qi <yao.qi@linaro.org>
13327
13328 * dwarf2read.c (struct partial_die_info): Add ctor, delete
13329 assignment operator.
13330 (load_partial_dies): Use ctor and copy ctor.
13331 (read_partial_die): Update.
13332 (dwarf2_cu::find_partial_die): Use ctor.
13333
13334 2018-02-26 Yao Qi <yao.qi@linaro.org>
13335
13336 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
13337 (find_partial_die_in_comp_unit): Change it to
13338 dwarf2_cu::find_partial_die.
13339 (find_partial_die): Update.
13340
13341 2018-02-26 Yao Qi <yao.qi@linaro.org>
13342
13343 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13344 is NULL.
13345
13346 2018-02-26 Yao Qi <yao.qi@linaro.org>
13347
13348 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13349
13350 2018-02-26 Alan Hayward <alan.hayward@arm.com>
13351
13352 * arch/amd64.h: Use common/tdesc.h.
13353 * arch/i386.c: Likewise.
13354 * arch/i386.h: Likewise.
13355 * arch/tic6x.c: Likewise.
13356 * arch/tdesc.h: Move file from here...
13357 * common/tdesc.h: ...to here.
13358 * features/aarch64-core.c: Regenerate.
13359 * features/aarch64-fpu.c: Regenerate.
13360 * features/i386/32bit-avx.c: Regenerate.
13361 * features/i386/32bit-avx512.c: Regenerate.
13362 * features/i386/32bit-core.c: Regenerate.
13363 * features/i386/32bit-linux.c: Regenerate.
13364 * features/i386/32bit-mpx.c: Regenerate.
13365 * features/i386/32bit-pkeys.c: Regenerate.
13366 * features/i386/32bit-sse.c: Regenerate.
13367 * features/i386/64bit-avx.c: Regenerate.
13368 * features/i386/64bit-avx512.c: Regenerate.
13369 * features/i386/64bit-core.c: Regenerate.
13370 * features/i386/64bit-linux.c: Regenerate.
13371 * features/i386/64bit-mpx.c: Regenerate.
13372 * features/i386/64bit-pkeys.c: Regenerate.
13373 * features/i386/64bit-segments.c: Regenerate.
13374 * features/i386/64bit-sse.c: Regenerate.
13375 * features/i386/x32-core.c: Regenerate.
13376 * features/tic6x-c6xp.c: Regenerate.
13377 * features/tic6x-core.c: Regenerate.
13378 * features/tic6x-gp.c: Regenerate.
13379 * target-descriptions.c: Use common/tdesc.h.
13380 * target-descriptions.h: Likewise.
13381
13382 2018-02-24 Tom Tromey <tom@tromey.com>
13383
13384 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13385 (try_thread_db_load_from_dir, thread_db_load_search): Use
13386 std::string.
13387 (info_auto_load_libthread_db_compare): Return bool. Change
13388 argument types.
13389 (info_auto_load_libthread_db): Use std::vector, std::string.
13390 Remove cleanups.
13391
13392 2018-02-24 Tom Tromey <tom@tromey.com>
13393
13394 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13395 std::string.
13396 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13397 std::string*.
13398 * gdbarch.c: Rebuild.
13399 * gdbarch.h: Rebuild.
13400 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13401 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13402 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13403 std::string*.
13404
13405 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
13406
13407 * gdbtypes.h (sect_offset): Change type to uint64_t.
13408 (sect_offset_str): New function.
13409 * dwarf2read.c (create_addrmap_from_aranges): Use
13410 sect_offset_str.
13411 (error_check_comp_unit_head): Likewise.
13412 (create_debug_type_hash_table): Likewise.
13413 (read_cutu_die_from_dwo): Likewise.
13414 (init_cutu_and_read_dies): Likewise.
13415 (init_cutu_and_read_dies_no_follow): Likewise.
13416 (process_psymtab_comp_unit_reader): Likewise.
13417 (partial_die_parent_scope): Likewise.
13418 (peek_die_abbrev): Likewise.
13419 (process_queue): Likewise.
13420 (dwarf2_physname): Likewise.
13421 (read_namespace_alias): Likewise.
13422 (read_import_statement): Likewise.
13423 (create_dwo_cu_reader): Likewise.
13424 (create_cus_hash_table): Likewise.
13425 (lookup_dwo_cutu): Likewise.
13426 (inherit_abstract_dies): Likewise.
13427 (read_func_scope): Likewise.
13428 (read_call_site_scope): Likewise.
13429 (dwarf2_add_member_fn): Likewise.
13430 (read_common_block): Likewise.
13431 (read_module_type): Likewise.
13432 (read_typedef): Likewise.
13433 (read_subrange_type): Likewise.
13434 (load_partial_dies): Likewise.
13435 (read_partial_die): Likewise.
13436 (find_partial_die): Likewise.
13437 (read_str_index): Likewise.
13438 (dwarf2_string_attr): Likewise.
13439 (build_error_marker_type): Likewise.
13440 (lookup_die_type): Likewise.
13441 (dump_die_shallow): Likewise.
13442 (follow_die_ref): Likewise.
13443 (dwarf2_fetch_die_loc_sect_off): Likewise.
13444 (dwarf2_fetch_constant_bytes): Likewise.
13445 (follow_die_sig): Likewise.
13446 (get_signatured_type): Likewise.
13447 (get_DW_AT_signature_type): Likewise.
13448 (dwarf2_find_containing_comp_unit): Likewise.
13449 (set_die_type): Likewise.
13450
13451 2018-02-21 John Baldwin <jhb@FreeBSD.org>
13452
13453 * arch/aarch64.c: Include "common-defs.h".
13454 * arch/amd64.c: Likewise.
13455 * arch/i386.c: Likewise.
13456
13457 2018-02-21 Tom Tromey <tom@tromey.com>
13458
13459 * value.h: (extract_field_op): Update.
13460 * eval.c (extract_field_op): Return a const char *.
13461 * expression.h (parse_expression_for_completion): Update.
13462 * completer.c (complete_expression): Update.
13463 (add_struct_fields): Make fieldname const.
13464 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
13465 (mark_completion_tag, parse_exp_in_context_1): Update.
13466 (parse_expression_for_completion): Change "name" to
13467 unique_xmalloc_ptr*.
13468
13469 2018-02-21 Tom Tromey <tom@tromey.com>
13470
13471 * infcall.c (call_function_by_hand_dummy): Use std::vector.
13472
13473 2018-02-21 Yao Qi <yao.qi@linaro.org>
13474
13475 * avr-tdep.c (avr_read_pc): Change parameter type to
13476 readable_regcache.
13477 * gdbarch.sh (read_pc): Likewise.
13478 * gdbarch.c: Re-generated.
13479 * gdbarch.h: Re-generated.
13480 * hppa-tdep.c (hppa_read_pc): Change parameter type to
13481 readable_regcache.
13482 * ia64-tdep.c (ia64_read_pc): Likewise.
13483 * mips-tdep.c (mips_read_pc): Likewise.
13484 * spu-tdep.c (spu_read_pc): Likewise.
13485
13486 2018-02-21 Yao Qi <yao.qi@linaro.org>
13487
13488 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
13489 * regcache-dump.c: New file.
13490 * regcache.c: Move register_dump to regcache-dump.c.
13491 (maintenance_print_registers): Likewise.
13492 (maintenance_print_raw_registers): Likewise.
13493 (maintenance_print_cooked_registers): Likewise.
13494 (maintenance_print_register_groups): Likewise.
13495 (maintenance_print_remote_registers): Likewise.
13496 (_initialize_regcache): Likewise.
13497 * regcache.h (register_dump): Moved from regcache.c.
13498
13499 2018-02-21 Yao Qi <yao.qi@linaro.org>
13500
13501 * regcache.c (regcache::regcache): Update.
13502 (regcache::invalidate): Move it to detached_regcache::invalidate.
13503 (get_thread_arch_aspace_regcache): Update.
13504 (regcache::raw_update): Update.
13505 (regcache::cooked_read): Remove some code.
13506 (regcache::cooked_read_value): Likewise.
13507 (regcache::raw_write): Remove assert on m_readonly_p.
13508 (regcache::raw_supply_integer): Move it to
13509 detached_regcache::raw_supply_integer.
13510 (regcache::raw_supply_zeroed): Likewise.
13511 * regcache.h (detached_regcache) <raw_supply_integer>: New
13512 declaration.
13513 <raw_supply_zeroed, invalidate>: Likewise.
13514 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
13515 <invalidate>: Likewise.
13516 <m_readonly_p>: Removed.
13517
13518 2018-02-21 Yao Qi <yao.qi@linaro.org>
13519
13520 * infcmd.c (get_return_value): Let stop_regs point to
13521 get_current_regcache.
13522 * regcache.c (regcache::regcache): Remove.
13523 (register_dump_reg_buffer): New class.
13524 (regcache_print): Adjust.
13525 * regcache.h (regcache): Remove constructors.
13526
13527 2018-02-21 Yao Qi <yao.qi@linaro.org>
13528
13529 * regcache.c (class register_dump): New class.
13530 (register_dump_regcache, register_dump_none): New class.
13531 (register_dump_remote, register_dump_groups): New class.
13532 (regcache_print): Update.
13533 * regcache.h (regcache_dump_what): Move it to regcache.c.
13534 (regcache) <dump>: Remove.
13535
13536 2018-02-21 Yao Qi <yao.qi@linaro.org>
13537
13538 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
13539 reg_buffer_rw *.
13540 (jit_unwind_reg_set_impl): Call raw_supply.
13541 (jit_frame_sniffer): Use reg_buffer_rw.
13542 * record-full.c (record_full_core_regbuf): Change its type.
13543 (record_full_core_open_1): Use reg_buffer_rw.
13544 (record_full_close): Likewise.
13545 (record_full_core_fetch_registers): Use regcache->raw_supply.
13546 (record_full_core_store_registers): Likewise.
13547 * regcache.c (regcache::get_register_status): Move it to
13548 reg_buffer.
13549 (regcache_raw_set_cached_value): Remove.
13550 (regcache::raw_set_cached_value): Remove.
13551 (regcache::raw_write): Call raw_supply.
13552 (regcache::raw_supply): Move it to reg_buffer_rw.
13553 * regcache.h (regcache_raw_set_cached_value): Remove.
13554 (reg_buffer_rw): New class.
13555
13556 2018-02-21 Yao Qi <yao.qi@linaro.org>
13557
13558 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
13559 readonly_detached_regcache.
13560 (dummy_frame_prev_register): Use regcache->cooked_read.
13561 * frame.c (frame_save_as_regcache): Change return type.
13562 (frame_pop): Update.
13563 * frame.h (frame_save_as_regcache): Update declaration.
13564 * inferior.h (get_infcall_suspend_state_regcache): Update
13565 declaration.
13566 * infrun.c (infcall_suspend_state) <registers>: use
13567 readonly_detached_regcache.
13568 (save_infcall_suspend_state): Don't use regcache_dup.
13569 (get_infcall_suspend_state_regcache): Change return type.
13570 * linux-fork.c (struct fork_info) <savedregs>: Change to
13571 readonly_detached_regcache.
13572 <pc>: New field.
13573 (fork_save_infrun_state): Don't use regcache_dup.
13574 (info_checkpoints_command): Adjust.
13575 * mi/mi-main.c (register_changed_p): Update declaration.
13576 (mi_cmd_data_list_changed_registers): Use
13577 readonly_detached_regcache.
13578 (register_changed_p): Change parameter type to
13579 readonly_detached_regcache.
13580 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
13581 readonly_detached_regcache.
13582 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
13583 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
13584 New.
13585 (regcache::save): Move it to reg_buffer.
13586 (regcache::restore): Change parameter type.
13587 (regcache_dup): Remove.
13588 * regcache.h (reg_buffer) <save>: New method.
13589 (readonly_detached_regcache): New class.
13590 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
13591 readonly_detached_regcache.
13592 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
13593
13594 2018-02-21 Yao Qi <yao.qi@linaro.org>
13595
13596 * frame.c (frame_save_as_regcache): Use regcache method save.
13597 (frame_pop): Use regcache method restore.
13598 * infrun.c (restore_infcall_suspend_state): Likewise.
13599 * linux-fork.c (fork_load_infrun_state): Likewise.
13600 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
13601 save.
13602 * regcache.c (regcache_save): Remove.
13603 (regcache::restore): More asserts.
13604 (regcache_cpy): Remove.
13605 * regcache.h (regcache_save): Remove the declaration.
13606 (regcache::restore): Move from private to public.
13607 Remove the friend declaration of regcache_cpy.
13608 (regcache_cpy): Remove declaration.
13609
13610 2018-02-21 Yao Qi <yao.qi@linaro.org>
13611
13612 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
13613 parameter type to 'readable_regcache *'.
13614 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13615 * arm-tdep.c (arm_neon_quad_read): Likewise.
13616 (arm_pseudo_read): Likewise.
13617 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13618 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13619 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13620 * gdbarch.c: Re-generated.
13621 * gdbarch.h: Re-generated.
13622 * gdbarch.sh (pseudo_register_read): Change parameter type to
13623 'readable_regcache *'.
13624 (pseudo_register_read_value): Likewise.
13625 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
13626 (h8300_pseudo_register_read): Likewise.
13627 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
13628 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13629 (i386_pseudo_register_read_into_value): Likewise.
13630 (i386_pseudo_register_read_value): Likewise.
13631 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
13632 declaration.
13633 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
13634 * m32c-tdep.c (m32c_raw_read): Likewise.
13635 (m32c_read_flg): Likewise.
13636 (m32c_banked_register): Likewise.
13637 (m32c_banked_read): Likewise.
13638 (m32c_sb_read): Likewise.
13639 (m32c_part_read): Likewise.
13640 (m32c_cat_read): Likewise.
13641 (m32c_r3r2r1r0_read): Likewise.
13642 (m32c_pseudo_register_read): Likewise.
13643 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13644 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13645 (mep_pseudo_cr64_read): Likewise.
13646 (mep_pseudo_register_read): Likewise.
13647 * mips-tdep.c (mips_pseudo_register_read): Likewise.
13648 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13649 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13650 * regcache.c (regcache::raw_read): Move it to readable_regcache.
13651 (regcache::cooked_read): Likewise.
13652 (regcache::cooked_read_value): Likewise.
13653 (regcache_cooked_read_signed):
13654 (regcache::cooked_read): Likewise.
13655 * regcache.h (readable_regcache): New class.
13656 (regcache): Inherit readable_regcache. Move some methods to
13657 readable_regcache.
13658 * rl78-tdep.c (rl78_pseudo_register_read): Change
13659 parameter type to 'readable_regcache *'.
13660 * rs6000-tdep.c (do_regcache_raw_read): Remove.
13661 (e500_pseudo_register_read): Change parameter type to
13662 'readable_regcache *'.
13663 (dfp_pseudo_register_read): Likewise.
13664 (vsx_pseudo_register_read): Likewise.
13665 (efpr_pseudo_register_read): Likewise.
13666 * s390-tdep.c (s390_pseudo_register_read): Likewise.
13667 * sh-tdep.c (sh_pseudo_register_read): Likewise.
13668 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
13669 (sh64_pseudo_register_read): Likewise.
13670 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13671 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13672 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13673 (spu_pseudo_register_read): Likewise.
13674 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13675 (xtensa_pseudo_register_read): Likewise.
13676
13677 2018-02-21 Yao Qi <yao.qi@linaro.org>
13678
13679 * regcache.c (regcache::regcache): Call reg_buffer ctor.
13680 (regcache::arch): Move it to reg_buffer::arch.
13681 (regcache::register_buffer): Likewise.
13682 (regcache::assert_regnum): Likewise.
13683 (regcache::num_raw_registers): Likewise.
13684 * regcache.h (reg_buffer): New class.
13685 (regcache): Inherit reg_buffer.
13686
13687 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
13688
13689 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
13690 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
13691
13692 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
13693
13694 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
13695
13696 2018-02-19 Alan Hayward <alan.hayward@arm.com>
13697
13698 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
13699 (SFILES): Remove common/*.c files.
13700 (COMMON_OBS): Remove some *.o files built from common/*.c files.
13701 * common/common.host: Add common reference.
13702 * configure.ac: Likewise.
13703 * configure: Regenerate.
13704
13705 2018-02-16 Yao Qi <yao.qi@linaro.org>
13706
13707 * block.c (block_namespace_info): Inherit allocate_on_obstack.
13708 (block_initialize_namespace): Use new.
13709 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
13710 (dwarf2_free_objfile): Use delete.
13711 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
13712 (copy_type_recursive): Use new.
13713 * gdb_obstack.h (allocate_on_obstack): New.
13714
13715 2018-02-15 Yao Qi <yao.qi@linaro.org>
13716
13717 PR gdb/22849
13718 * inferior.c (exit_inferior_1): Reset inf->control.
13719
13720 2018-02-15 Joel Brobecker <brobecker@adacore.com>
13721
13722 * ada-lang.c (ada_to_fixed_value_create): Delete advance
13723 declaration.
13724
13725 2018-02-14 Pedro Alves <palves@redhat.com>
13726
13727 * frame-unwind.c (frame_unwind_try_unwinder): Always call
13728 frame_cleanup_after_sniffer on exception.
13729
13730 2018-02-14 Tom Tromey <tom@tromey.com>
13731
13732 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
13733 const.
13734 (solib_bfd_open): Make pathname const.
13735 * solib.c (solib_bfd_open): Make pathname const.
13736 * solib-spu.c (spu_bfd_fopen): Make name const.
13737 (spu_bfd_open): Make pathname const.
13738 * solib-darwin.c (darwin_bfd_open): Make pathname const.
13739 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
13740
13741 2018-02-14 Tom Tromey <tom@tromey.com>
13742
13743 * symfile.c (symfile_bfd_open): Update.
13744 * source.h (openp, source_full_path_of, find_and_open_source):
13745 Change argument type to unique_xmalloc_ptr.
13746 * source.c (openp): Take a unique_xmalloc_ptr.
13747 (source_full_path_of, find_and_open_source): Likewise.
13748 (open_source_file, symtab_to_fullname): Update.
13749 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
13750 unique_xmalloc_ptr.
13751 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
13752 (exec_file_find): Update.
13753 * psymtab.c (psymtab_to_fullname): Update.
13754 * nto-tdep.h (nto_find_and_open_solib): Update.
13755 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
13756 unique_xmalloc_ptr.
13757 * exec.c (exec_file_attach): Update.
13758 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
13759 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
13760
13761 2018-02-14 Tom Tromey <tom@tromey.com>
13762
13763 * solib.c: Include source.h.
13764 * nto-tdep.c: Include source.h.
13765 * mi/mi-cmd-env.c: Include source.h.
13766 * infcmd.c: Include source.h.
13767 * exec.c: Include source.h.
13768 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
13769 (add_path, directory_switch, source_path, init_source_path): Move
13770 declarations...
13771 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
13772 (add_path, directory_switch, source_path, init_source_path):
13773 ...here.
13774
13775 2018-02-14 Tom Tromey <tom@tromey.com>
13776
13777 * solist.h (exec_file_find, solib_find): Return
13778 unique_xmalloc_ptr.
13779 (solib_bfd_fopen): Take a const char *.
13780 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
13781 (exec_file_find, solib_find): Likewise.
13782 (solib_bfd_fopen): Do not take ownership of "pathname".
13783 (solib_bfd_open): Use unique_xmalloc_ptr.
13784 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
13785 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
13786 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
13787 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
13788
13789 2018-02-14 Joel Brobecker <brobecker@adacore.com>
13790
13791 * ada-lang.c (name_match_type_from_name): Remove reference to
13792 ada_name_for_lookup in function's documentation.
13793 * ada-lang.h (ada_name_for_lookup): Delete declaration.
13794
13795 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13796
13797 * defs.h (enum openp_flags): New enum.
13798 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
13799 Move to enum openp_flags.
13800 (openp_flags): New enum flags.
13801 (openp): Change parameter type to openp_flags.
13802 * source.c (openp): Change parameter type to openp_flags.
13803 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
13804 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
13805
13806 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13807
13808 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
13809 per-command.
13810
13811 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
13812
13813 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
13814 into...
13815 (class dwarf2_queue_guard): ...the destructor of this new class.
13816 (dw2_do_instantiate_symtab): Create instance of the new class
13817 dwarf2_queue_guard, remove cleanup.
13818
13819 2018-02-09 Tom Tromey <tom@tromey.com>
13820
13821 * source.c (find_source_lines): Don't reference past the end of
13822 the vector.
13823
13824 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13825
13826 * remote.c (remote_btrace_maybe_reopen): Change error message.
13827 * btrace.c (btrace_enable): Likewise.
13828 (parse_xml_btrace): Likewise.
13829 (parse_xml_btrace_conf): Likewise.
13830
13831 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13832
13833 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13834 (linux_enable_pt, linux_enable_bts): Call
13835 diagnose_perf_event_open_fail.
13836
13837 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13838
13839 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13840 Remove parameter and change return type. Update callers. Move it.
13841 (linux_enable_bts, linux_enable_pt): Improve error message.
13842 (linux_enable_pt): Remove zero buffer size check.
13843 (linux_enable_btrace): Improve error messages. Remove NULL return
13844 check.
13845
13846 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13847
13848 * btrace.c (btrace_enable): Remove target_supports_btrace call.
13849 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13850 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13851 (linux_supports_pt, linux_supports_btrace): Remove.
13852 (linux_enable_bts): Call cpu_supports_bts.
13853 * nat/linux-btrace.h (linux_supports_btrace): Remove.
13854 * remote.c (remote_supports_btrace): Remove.
13855 (init_remote_ops): Remove remote_supports_btrace.
13856 * target-delegates.c: Regenerated.
13857 * target.c (target_supports_btrace): Remove.
13858 * target.h (target_ops) <to_supports_btrace>: Remove
13859 (target_supports_btrace): Remove.
13860 * x86-linux-nat.c (x86_linux_create_target): Remove
13861 linux_supports_btrace.
13862
13863 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13864
13865 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13866 btrace failed.
13867 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13868 exception and use message in own exception.
13869
13870 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13871
13872 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13873 (perf_event_pt_event_type): Use gdb_file_up.
13874 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13875 scoped_fd, and scoped_mmap.
13876
13877 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13878
13879 * common/scoped_mmap.h: New.
13880 * unittests/scoped_mmap-selftest.c: New.
13881 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13882 unittests/scoped_mmap-selftest.c.
13883
13884 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13885
13886 * common/scoped_fd.h: New.
13887 * unittests/scoped_fd-selftest.c: New.
13888 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13889 unittests/scoped_fd-selftest.c.
13890
13891 2018-02-09 Tom Tromey <tom@tromey.com>
13892
13893 * auto-load.c (auto_load_section_scripts): Use
13894 gdb::unique_xmalloc_ptr.
13895
13896 2018-02-09 Tom Tromey <tom@tromey.com>
13897
13898 * auto-load.c (execute_script_contents): Use std::string.
13899
13900 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13901
13902 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13903 Python function, rather than a new command.
13904
13905 2018-02-08 Tom Tromey <tom@tromey.com>
13906
13907 * solib.c (solib_find_1): Use std::string.
13908 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13909
13910 2018-02-08 Tom Tromey <tom@tromey.com>
13911
13912 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13913
13914 2018-02-08 Tom Tromey <tom@tromey.com>
13915
13916 * source.c (find_source_lines): Use gdb::def_vector.
13917
13918 2018-02-08 Tom Tromey <tom@tromey.com>
13919
13920 * macrocmd.c (struct temporary_macro_definition): New.
13921 (macro_define_command): Use temporary_macro_definition. Remove
13922 cleanups.
13923 (free_macro_definition_ptr): Remove.
13924
13925 2018-02-08 Tom Tromey <tom@tromey.com>
13926
13927 * macroexp.c (maybe_expand): Use std::string.
13928
13929 2018-02-08 Tom Tromey <tom@tromey.com>
13930
13931 * macroexp.c (struct macro_buffer): Add initializers for some
13932 members.
13933 (init_buffer, init_shared_buffer, free_buffer)
13934 (free_buffer_return_text): Remove.
13935 (macro_buffer): New constructors.
13936 (~macro_buffer): New destructor.
13937 (macro_buffer::set_shared): New method.
13938 (macro_buffer::resize_buffer, macro_buffer::appendc)
13939 (macro_buffer::appendmem): Now methods, not free functions.
13940 (set_token, append_tokens_without_splicing, stringify)
13941 (macro_stringify): Update.
13942 (gather_arguments): Change return type. Remove argc_p argument,
13943 add args_ptr argument. Use std::vector.
13944 (substitute_args): Remove argc argument. Accept std::vector.
13945 (expand): Update. Use std::vector.
13946 (scan, macro_expand, macro_expand_next): Update.
13947
13948 2018-02-08 Tom Tromey <tom@tromey.com>
13949
13950 * symtab.c (default_collect_symbol_completion_matches_break_on):
13951 Use unique_xmalloc_ptr.
13952 * macroscope.h: (sal_macro_scope, user_macro_scope)
13953 (default_macro_scope): Return unique_xmalloc_ptr.
13954 * macroscope.c (sal_macro_scope, user_macro_scope)
13955 (default_macro_scope): Return unique_xmalloc_ptr.
13956 * macroexp.h (macro_expand, macro_expand_once): Return
13957 unique_xmalloc_ptr.
13958 * macroexp.c (macro_expand, macro_expand_once): Return
13959 unique_xmalloc_ptr.
13960 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13961 (info_macro_command, info_macros_command): Use
13962 unique_xmalloc_ptr.
13963 * compile/compile-c-support.c (write_macro_definitions): Use
13964 unique_xmalloc_ptr.
13965 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13966
13967 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13968
13969 * value.c (value_static_field): Assign field type instead of
13970 containing type when returning an optimized out value.
13971
13972 2018-02-06 Yao Qi <yao.qi@linaro.org>
13973
13974 * ft32-tdep.c (ft32_read_pc): Remove.
13975 (ft32_write_pc): Remove.
13976 (ft32_gdbarch_init): Update.
13977 * m32r-tdep.c (m32r_read_pc): Remove.
13978 (m32r_gdbarch_init): Update.
13979 * mep-tdep.c (mep_read_pc): Remove.
13980 (mep_gdbarch_init): Update.
13981 * microblaze-tdep.c (microblaze_write_pc): Remove.
13982 (microblaze_gdbarch_init): Update.
13983 * mn10300-tdep.c (mn10300_read_pc): Remove.
13984 (mn10300_write_pc): Remove.
13985 (mn10300_gdbarch_init): Update.
13986 * moxie-tdep.c (moxie_read_pc): Remove.
13987 (moxie_write_pc): Remove.
13988 (moxie_gdbarch_init): Update.
13989
13990 2018-02-06 Yao Qi <yao.qi@linaro.org>
13991
13992 * expprint.c (print_subexp_standard): Handle
13993 OP_F77_UNDETERMINED_ARGLIST.
13994 (dump_subexp_body_standard): Likewise.
13995
13996 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13997
13998 * target-descriptions.c (tdesc_element_visitor) Add empty
13999 implementations.
14000 (tdesc_type): Move make_gdb_type from here.
14001 (tdesc_type_builtin): Likewise.
14002 (tdesc_type_vector): Likewise.
14003 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14004 (make_gdb_type_struct): Move from tdesc_type_with_fields.
14005 (make_gdb_type_union): Likewise.
14006 (make_gdb_type_flags): Likewise.
14007 (make_gdb_type_enum): Likewise.
14008 (make_gdb_type): New function.
14009 (tdesc_register_type): Use static make_gdb_type.
14010
14011 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
14012
14013 * infcmd.c (default_print_one_register_info): Align natural-format
14014 column values consistently one under another.
14015 (pad_to_column): New function.
14016
14017 2018-02-05 Joel Brobecker <brobecker@adacore.com>
14018
14019 * dwarf2read.c (dwarf2_physname): Move commment.
14020
14021 2018-02-01 Leszek Swirski <leszeks@google.com>
14022
14023 * varobj.c (varobj_formatted_print_options): Allow recursive
14024 pretty printing if pretty printing is enabled.
14025
14026 2018-02-01 Leszek Swirski <leszeks@google.com>
14027
14028 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14029 names after a structop as a filename.
14030
14031 2018-02-01 Yao Qi <yao.qi@linaro.org>
14032
14033 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
14034 (arm_record_coproc_data_proc): Likewise.
14035
14036 2018-02-01 Yao Qi <yao.qi@linaro.org>
14037
14038 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
14039
14040 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
14041
14042 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
14043 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
14044
14045 2018-01-31 Pedro Alves <palves@redhat.com>
14046
14047 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
14048 * inflow.c (child_terminal_save_inferior): Wrap reference to
14049 tcgetpgrp in HAVE_TERMIOS_H.
14050 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
14051 _WIN32.
14052 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
14053 always iterate over all inferiors.
14054 (gdbsim_cntrl_c): Adjust.
14055 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
14056
14057 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14058
14059 * gdbtypes.c (lookup_array_range_type): Make sure the array's
14060 index type is objfile-owned if the element type is as well.
14061
14062 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14063
14064 GDB 8.1 released.
14065
14066 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
14067
14068 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
14069 "features/s390x-linux64.c".
14070 (_initialize_s390_linux_tdep): Remove initialization of tdescs
14071 s390_linux32 and s390x_linux64.
14072 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
14073 default tdesc.
14074 * s390-tdep.c: Include "features/s390-linux32.c" and
14075 "features/s390x-linux64.c".
14076 (s390_tdesc_valid): Add check for tdesc_has_registers.
14077 (s390_gdbarch_init): Make sure there is always a valid tdesc.
14078 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
14079 tdesc_s390x_linux64.
14080 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
14081 tdesc_s390x_linux64 to...
14082 * s390-tdep.h: ...here.
14083
14084 2018-01-30 Pedro Alves <palves@redhat.com>
14085
14086 PR gdb/13211
14087 * config.in, configure: Regenerate.
14088 * configure.ac: Check for getpgid.
14089 * go32-nat.c (go32_pass_ctrlc): New.
14090 (go32_target): Install it.
14091 * inf-child.c (inf_child_target): Install
14092 child_terminal_save_inferior, child_pass_ctrlc and
14093 child_interrupt.
14094 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
14095 (inf_ptrace_target): No longer install it.
14096 * infcmd.c (interrupt_target_1): Adjust.
14097 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
14098 (child_interrupt): Declare.
14099 (inferior::terminal_state): New.
14100 * inflow.c (struct terminal_info): Update comments.
14101 (inferior_process_group): Delete.
14102 (terminal_is_ours): Delete.
14103 (gdb_tty_state): New.
14104 (child_terminal_init): Adjust.
14105 (is_gdb_terminal, sharing_input_terminal_1)
14106 (sharing_input_terminal): New functions.
14107 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
14108 Set the process's actual process group in the foreground if
14109 possible. Handle is_ours_for_output/is_ours distinction. Don't
14110 mark terminal as the inferior's if not sharing GDB's terminal.
14111 Don't check attach_flag.
14112 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
14113 pass down a target_terminal_state.
14114 (child_terminal_save_inferior): New, factored out from ...
14115 (child_terminal_ours_1): ... this. Handle
14116 target_terminal_state::is_ours_for_output.
14117 (child_interrupt, child_pass_ctrlc): New.
14118 (inflow_inferior_exit): Clear the inferior's terminal_state.
14119 (copy_terminal_info): Copy the inferior's terminal state.
14120 (_initialize_inflow): Remove reference to terminal_is_ours.
14121 * inflow.h (inferior_process_group): Delete.
14122 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
14123 * procfs.c (procfs_target): Don't install procfs_interrupt.
14124 (procfs_interrupt): Delete.
14125 * remote.c (remote_serial_quit_handler): Adjust.
14126 (remote_interrupt): Remove ptid parameter. Adjust.
14127 * target-delegates.c: Regenerate.
14128 * target.c: Include "terminal.h".
14129 (target_terminal::terminal_state): Rename to ...
14130 (target_terminal::m_terminal_state): ... this.
14131 (target_terminal::init): Adjust.
14132 (target_terminal::inferior): Adjust to per-inferior
14133 terminal_state.
14134 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
14135 (target_terminal::ours, target_terminal::ours_for_output): Use
14136 target_terminal_is_ours_kind.
14137 (target_interrupt): Remove ptid parameter. Adjust.
14138 (default_target_pass_ctrlc): Adjust.
14139 * target.h (target_ops::to_terminal_save_inferior): New field.
14140 (target_ops::to_interrupt): Remove ptid_t parameter.
14141 (target_interrupt): Remove ptid_t parameter. Update comment.
14142 (target_pass_ctrlc): Update comment.
14143 * target/target.h (target_terminal_state): New scoped enum,
14144 factored out of ...
14145 (target_terminal::terminal_state): ... here.
14146 (target_terminal::inferior): Update comments.
14147 (target_terminal::restore_inferior): New.
14148 (target_terminal::is_inferior, target_terminal::is_ours)
14149 (target_terminal::is_ours_for_output): Adjust.
14150 (target_terminal::scoped_restore_terminal_state): Adjust to
14151 rename, and call restore_inferior() instead of inferior().
14152 (target_terminal::scoped_restore_terminal_state::m_state): Change
14153 type.
14154 (target_terminal::terminal_state): Rename to ...
14155 (target_terminal::m_terminal_state): ... this and change type.
14156
14157 2018-01-30 Pedro Alves <palves@redhat.com>
14158
14159 * linux-nat.c (wait_for_signal): New function.
14160 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
14161 directly.
14162 (async_terminal_is_ours)
14163 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
14164 (linux_nat_add_target): Don't override
14165 to_terminal_inferior/to_terminal_ours.
14166
14167 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
14168
14169 * remote.c (remote_follow_fork): Don't call "detach_inferior".
14170
14171 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
14172
14173 * dwarf2read.c (free_dwo_files): Add forward-declaration.
14174 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
14175 dwarf2_per_objfile_free here.
14176 (dwarf2_per_objfile_free): Remove.
14177 (_initialize_dwarf2_read): Don't register
14178 dwarf2_per_objfile_free as a registry cleanup.
14179
14180 2018-01-27 Eli Zaretskii <eliz@gnu.org>
14181
14182 Avoid compilation errors in MinGW native builds
14183
14184 The error is triggered by including python-internal.h, and the
14185 error message is:
14186
14187 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
14188 from build-gnulib/import/math.h:27,
14189 from d:/usr/Python26/include/pyport.h:235,
14190 from d:/usr/Python26/include/Python.h:58,
14191 from python/python-internal.h:94,
14192 from python/py-arch.c:24:
14193 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14194 using ::hypot;
14195 ^~~~~
14196
14197 This happens because Python headers define 'hypot' to expand t
14198 '_hypot' in the Windows builds.
14199 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14200 'hypoth'. This avoids a compilation error.
14201
14202 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14203
14204 * MAINTAINERS (Write After Approval): Fix ordering.
14205
14206 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14207
14208 * MAINTAINERS (Write After Approval): Add Alan Hayward.
14209
14210 2018-01-26 Alan Modra <amodra@gmail.com>
14211
14212 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14213 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14214 Remove nop. Make const. Comment.
14215 (powerpc32_plt_stub_so_2): New.
14216 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14217 Correct count. Update uses.
14218 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14219 Move common code reading PLT entry word. Correct
14220 powerpc32_plt_stub PLT address calculation.
14221 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14222 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14223 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14224 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14225 (ppc64_standard_linkage8): Likewise.
14226 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14227 Correct insns description.
14228 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14229
14230 2018-01-24 Pedro Alves <palves@redhat.com>
14231
14232 GCC PR libstdc++/83906
14233 * gdbtypes.c (operator==(const dynamic_prop &,
14234 const dynamic_prop &)): New.
14235 (operator==(const range_bounds &, const range_bounds &)): New.
14236 (check_types_equal): Use them instead of memcmp.
14237 * gdbtypes.h (operator==(const dynamic_prop &,
14238 const dynamic_prop &)): Declare.
14239 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14240 (operator==(const range_bounds &, const range_bounds &)): Declare.
14241 (operator!=(const range_bounds &, const range_bounds &)): Declare.
14242
14243 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14244
14245 * s390-linux-tdep.c (s390_record_address_mask)
14246 (s390_record_calc_disp_common, s390_record_calc_disp)
14247 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14248 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14249 (s390_process_record): Move to s390-tdep.c.
14250 (s390_linux_init_abi_any): Adjust.
14251 * s390-tdep.c (s390_record_address_mask)
14252 (s390_record_calc_disp_common, s390_record_calc_disp)
14253 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14254 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14255 (s390_process_record): Moved from s390-linux-tdep.c
14256 (s390_gdbarch_init): Adjust.
14257
14258 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14259
14260 * s390-linux-nat.c (s390-tdep.h): New include.
14261 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
14262 (HFILES_NO_SRCDIR): Add s390-tdep.h.
14263 (ALLDEPFILES): Add s390-tdep.c.
14264 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
14265 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
14266 * s390-tdep.h: ...this. New file.
14267 * s390-linux-tdep.c (s390-tdep.h): New include.
14268 (_initialize_s390_tdep): Rename to...
14269 (_initialize_s390_linux_tdep): ...this and adjust.
14270 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
14271 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
14272 s390-tdep.h.
14273 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
14274 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
14275 (s390_is_partial_instruction, s390_software_single_step)
14276 (is_non_branch_ril, s390_displaced_step_copy_insn)
14277 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
14278 (s390_prologue_data, s390_addr, s390_store, s390_load)
14279 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
14280 (s390_register_call_saved, s390_guess_tracepoint_registers)
14281 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
14282 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
14283 (s390_pseudo_register_name, s390_pseudo_register_type)
14284 (s390_pseudo_register_read, s390_pseudo_register_write)
14285 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
14286 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
14287 (s390_addr_bits_remove, s390_address_class_type_flags)
14288 (s390_address_class_type_flags_to_name)
14289 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
14290 (s390_function_arg_float, s390_function_arg_vector)
14291 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
14292 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
14293 (s390_frame_align, s390_register_return_value, s390_return_value)
14294 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
14295 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
14296 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
14297 (s390_trad_frame_prev_register, s390_unwind_cache)
14298 (s390_prologue_frame_unwind_cache)
14299 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
14300 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
14301 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
14302 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
14303 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
14304 (s390_frame_base_address, s390_local_base_address)
14305 (s390_frame_base, s390_gcc_target_options)
14306 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
14307 (s390_validate_reg_range, s390_tdesc_valid)
14308 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
14309 * s390-tdep.c: ...this. New file.
14310
14311 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14312
14313 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
14314 (s390_process_record, s390_gdbarch_tdep_alloc)
14315 (s390_linux_init_abi_any): Use/set new hook.
14316
14317 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14318
14319 * s390-linux-tdep.c (osabi.h): New include.
14320 (s390_linux_init_abi_31, s390_linux_init_abi_64)
14321 (s390_linux_init_abi_any): New functions.
14322 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
14323
14324 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14325
14326 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
14327 tdesc_has_registers check
14328
14329 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14330
14331 * s390-linux-tdep.c (s390_tdesc_valid): New function.
14332 (s390_validate_reg_range): New macro.
14333 (s390_gdbarch_init): Adjust.
14334
14335 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14336
14337 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
14338 (s390_gdbarch_tdep_alloc): Adjust.
14339 (s390_gdbarch_init): Adjust.
14340
14341 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14342
14343 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14344 <have_tdb>: Change type to bool.
14345 (s390_gdbarch_tdep_alloc): Adjust.
14346 (s390_gdbarch_init): Adjust.
14347
14348 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14349
14350 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14351 (gdbarch_tdep) <have_upper, have_vx>: New fields.
14352 (s390_gdbarch_tdep_alloc): New function.
14353 (s390_gdbarch_init): Allocate tdep at start and use its fields
14354 instead of separate variables.
14355
14356 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14357
14358 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14359 when looking for cached gdbarch and add comment for remaining.
14360
14361 2018-01-22 Pedro Alves <palves@redhat.com>
14362 Sergio Durigan Junior <sergiodj@redhat.com>
14363
14364 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14365 case.
14366
14367 2018-01-22 Maciej W. Rozycki <macro@mips.com>
14368
14369 * MAINTAINERS: Update my company e-mail address.
14370
14371 2018-01-22 Yao Qi <yao.qi@linaro.org>
14372
14373 * regcache.c (cooked_write_test): New function.
14374 (_initialize_regcache): Register the test.
14375
14376 2018-01-22 Yao Qi <yao.qi@linaro.org>
14377
14378 * ia64-tdep.c (ia64_pseudo_register_read): Call
14379 regcache->cooked_read instead of regcache_cooked_read_unsigned.
14380 * m32c-tdep.c (m32c_cat_read): Likewise.
14381 (m32c_r3r2r1r0_read): Likewise.
14382 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14383 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14384
14385 2018-01-22 Yao Qi <yao.qi@linaro.org>
14386
14387 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14388 method raw_read instead of regcache_raw_read.
14389 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14390 * arm-tdep.c (arm_neon_quad_read): Likewise.
14391 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14392 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14393 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14394 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14395 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14396 (i386_pseudo_register_read_into_value): Likewise.
14397 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14398 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14399 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14400 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14401 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14402 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14403 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14404 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14405 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14406
14407 2018-01-22 Yao Qi <yao.qi@linaro.org>
14408
14409 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14410 * configure.tgt: Remove target mt.
14411 * mt-tdep.c: Remove.
14412 * regcache.c (cooked_read_test): Remove the check for mt.
14413
14414 2018-01-22 Yao Qi <yao.qi@linaro.org>
14415
14416 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14417 instead of gdbarch_pseudo_register_read_value.
14418
14419 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14420
14421 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14422 language is Ada.
14423
14424 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14425
14426 * linespec.c (create_sals_line_offset): Remove code that preserved
14427 the symtab_and_line's line number.
14428
14429 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14430
14431 * varobj.c (varobj_create): Don't set valid_block when creating a
14432 floating varobj.
14433
14434 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14435
14436 * varobj.c (varobj_create): Remove out of date comment.
14437
14438 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14439
14440 PR mi/20395
14441 * ada-exp.y (write_var_from_sym): Pass extra parameter when
14442 updating innermost block.
14443 * parse.c (innermost_block_tracker::update): Take extra type
14444 parameter, and check types match before updating innermost block.
14445 (write_dollar_variable): Update innermost block for registers.
14446 * parser-defs.h (enum innermost_block_tracker_type): New enum.
14447 (innermost_block_tracker::innermost_block_tracker): Initialise
14448 m_types member.
14449 (innermost_block_tracker::reset): Take type parameter.
14450 (innermost_block_tracker::update): Take type parameter, and pass
14451 type through as needed.
14452 (innermost_block_tracker::m_types): New member.
14453 * varobj.c (varobj_create): Pass type when reseting innermost
14454 block.
14455
14456 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14457
14458 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14459 * ada-lang.c (resolve_subexp): Likewise.
14460 * breakpoint.c (set_breakpoint_condition) Likewise.
14461 (watch_command_1) Likewise.
14462 * c-exp.y (variable): Likewise.
14463 * d-exp.y (PrimaryExpression): Likewise.
14464 * f-exp.y (variable): Likewise.
14465 * go-exp.y (variable): Likewise.
14466 * m2-exp.y (variable): Likewise.
14467 * objfiles.c (objfile::~objfile): Likewise.
14468 * p-exp.y (variable): Likewise.
14469 * parse.c (innermost_block): Change type.
14470 * parser-defs.h (class innermost_block_tracker): New.
14471 (innermost_block): Change to innermost_block_tracker.
14472 * printcmd.c (display_command): Switch to innermost_block API.
14473 (do_one_display): Likewise.
14474 * rust-exp.y (do_one_display): Likewise.
14475 * symfile.c (clear_symtab_users): Likewise.
14476 * varobj.c (varobj_create): Switch to innermost_block API, replace
14477 use of innermost_block with block stored on varobj object.
14478
14479 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14480
14481 * expression.h (innermost_block): Remove declaration.
14482 * varobj.c: Add 'parser-defs.h' include.
14483
14484 2018-01-19 Tom Tromey <tom@tromey.com>
14485
14486 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
14487 symbols in the static and global blocks.
14488
14489 2018-01-19 James Clarke <jrtc27@jrtc27.com>
14490
14491 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
14492 gdb_ptrace.h, and move including gdb_wait.h ...
14493 * nat/linux-ptrace.h: ... to here.
14494
14495 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14496
14497 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
14498 inf_ptrace_detach_success.
14499 (inf_ptrace_detach_success): Add inferior parameter, use it
14500 instead of inferior_ptid, pass it to detach_inferior.
14501 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
14502 parameter.
14503 * inferior.c (detach_inferior): Add overload that takes an
14504 inferior object.
14505 * inferior.h (detach_inferior): Likewise.
14506 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
14507 use inferior_ptid, adjust call to inf_ptrace_detach_success.
14508 * linux-thread-db.c (thread_db_detach): Use inf parameter.
14509
14510 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14511
14512 * target.h (struct target_ops) <to_detach>: Add inferior
14513 parameter.
14514 (target_detach): Likewise.
14515 * target.c (dispose_inferior): Pass inferior down.
14516 (target_detach): Pass inferior down. Assert that it is equal to
14517 the current inferior.
14518 * aix-thread.c (aix_thread_detach): Pass inferior down.
14519 * corefile.c (core_file_command): Pass current_inferior() down.
14520 * corelow.c (core_detach): Add inferior parameter.
14521 * darwin-nat.c (darwin_detach): Likewise.
14522 * gnu-nat.c (gnu_detach): Likewise.
14523 * inf-ptrace.c (inf_ptrace_detach): Likewise.
14524 * infcmd.c (detach_command): Pass current_inferior() down to
14525 target_detach.
14526 * infrun.c (follow_fork_inferior): Pass parent_inf to
14527 target_detach.
14528 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
14529 target_detach.
14530 * linux-nat.c (linux_nat_detach): Add inferior parameter.
14531 * linux-thread-db.c (thread_db_detach): Likewise.
14532 * nto-procfs.c (procfs_detach): Likewise.
14533 * procfs.c (procfs_detach): Likewise.
14534 * record.c (record_detach): Likewise.
14535 * record.h (struct inferior): Forward-declare.
14536 (record_detach): Add inferior parameter.
14537 * remote-sim.c (gdbsim_detach): Likewise.
14538 * remote.c (remote_detach_1): Likewise.
14539 (remote_detach): Likewise.
14540 (extended_remote_detach): Likewise.
14541 * sol-thread.c (sol_thread_detach): Likewise.
14542 * target-debug.h (target_debug_print_inferior_p): New macro.
14543 * target-delegates.c: Re-generate.
14544 * top.c (kill_or_detach): Pass inferior down to target_detach.
14545 * windows-nat.c (windows_detach): Add inferior parameter.
14546
14547 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14548
14549 * target.h (struct target_ops) <to_detach>: Remove args
14550 parameter.
14551 (target_detach): Likewise.
14552 * target.c (dispose_inferior): Adjust.
14553 (target_detach): Remove args parameter, adjust.
14554 * aix-thread.c (aix_thread_detach): Adjust.
14555 * corefile.c (core_file_command): Adjust.
14556 * corelow.c (core_detach): Adjust.
14557 * darwin-nat.c (darwin_detach): Adjust.
14558 * gnu-nat.c (gnu_detach): Adjust.
14559 * inf-ptrace.c (inf_ptrace_detach): Adjust.
14560 * infcmd.c (detach_command): Adjust
14561 * infrun.c (follow_fork_inferior): Adjust.
14562 (handle_vfork_child_exec_or_exit): Adjust.
14563 * linux-fork.c (linux_fork_detach): Remove args parameter.
14564 * linux-fork.h (linux_fork_detach): Likewise.
14565 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
14566 * linux-thread-db.c (thread_db_detach): Likewise.
14567 * nto-procfs.c (procfs_detach): Likewise.
14568 * procfs.c (procfs_detach): Likewise.
14569 (do_detach): Remove signo parameter.
14570 * record.c (record_detach): Remove args parameter.
14571 * record.h (record_detach): Likewise.
14572 * remote-sim.c (gdbsim_detach): Likewise.
14573 * remote.c (remote_detach_1): Likewise.
14574 (remote_detach): Likewise.
14575 (extended_remote_detach): Likewise.
14576 * sol-thread.c (sol_thread_detach): Likewise.
14577 * target-delegates.c: Re-generate.
14578 * top.c (struct qt_args) <args>: Remove field.
14579 (kill_or_detach): Don't pass args.
14580 (quit_force): Don't set args.
14581 * windows-nat.c (windows_detach): Remove args parameter.
14582
14583 2018-01-19 Yao Qi <yao.qi@linaro.org>
14584
14585 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
14586 (arm_linux_init_abi): Install it.
14587
14588 2018-01-19 Yao Qi <yao.qi@linaro.org>
14589
14590 * osabi.c (gdb_osabi_names): Extend the regexp for
14591 arm-linux-gnueabihf.
14592
14593 2018-01-18 Yao Qi <yao.qi@linaro.org>
14594
14595 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
14596 m_abbrevs.
14597 (abbrev_table::add_abbrev): Update.
14598 (abbrev_table::lookup_abbrev): Update.
14599
14600 2018-01-18 Yao Qi <yao.qi@linaro.org>
14601
14602 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
14603
14604 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14605
14606 * compile/compile.c (compile_to_object): Convert "triplet_rx"
14607 to "std::string".
14608
14609 2018-01-17 Tom Tromey <tom@tromey.com>
14610
14611 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
14612
14613 2018-01-17 Tom Tromey <tom@tromey.com>
14614
14615 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
14616 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
14617 (create_array_type_with_stride): Update.
14618 * dwarf2read.c (set_die_type): Update.
14619
14620 2018-01-17 Tom Tromey <tom@tromey.com>
14621
14622 * dwarf2read.c (delayed_method_info): Remove typedef.
14623 (dwarf2_cu::method_info): Now a std::vector.
14624 (add_to_method_list): Update.
14625 (free_delayed_list): Remove.
14626 (compute_delayed_physnames): Update.
14627 (process_full_comp_unit, process_full_type_unit): Clear the method
14628 list. Remove cleanups.
14629 (psymtab_include_file_name): Add name_holder parameter. Use
14630 unique_xmalloc_ptr.
14631 (dwarf_decode_lines): Update.
14632
14633 2018-01-17 Tom Tromey <tom@tromey.com>
14634 Simon Marchi <simon.marchi@ericsson.com>
14635
14636 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
14637 (dwarf2_per_objfile::free_cached_comp_units)
14638 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14639 (init_cutu_and_read_dies_no_follow): Update.
14640 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
14641 (dwarf2_cu::~dwarf2_cu): New.
14642 (free_heap_comp_unit, free_stack_comp_unit): Remove.
14643 (age_cached_comp_units, free_one_cached_comp_unit): Update.
14644
14645 2018-01-17 Tom Tromey <tom@tromey.com>
14646 Simon Marchi <simon.marchi@ericsson.com>
14647
14648 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
14649 (struct die_reader_specs) <abbrev_table>: New member.
14650 (struct abbrev_table): Add constructor.
14651 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
14652 <abbrev_obstack>: Now an auto_obstack.
14653 (abbrev_table_up): New typedef.
14654 (init_cu_die_reader): Add abbrev_table parameter.
14655 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
14656 Add result_dwo_abbrev_table.
14657 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14658 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
14659 Update.
14660 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
14661 parameter.
14662 (skip_children): Update.
14663 (abbrev_table::alloc_abbrev): Rename from
14664 abbrev_table_alloc_abbrev.
14665 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
14666 (abbrev_table::lookup_abbrev): Rename from
14667 abbrev_table_lookup_abbrev.
14668 (abbrev_table_read_table): Return abbrev_table_up.
14669 (abbrev_table_free, abbrev_table_free_cleanup)
14670 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
14671 (load_partial_dies): Update.
14672
14673 2018-01-17 Tom Tromey <tom@tromey.com>
14674
14675 * dwarf2read.c (dwarf2_compute_name): Update comment.
14676 (read_func_scope, read_variable): Update.
14677 (new_symbol): Remove.
14678 (new_symbol_full): Rename to new_symbol.
14679
14680 2018-01-17 Mike Gulick <mgulick@mathworks.com>
14681
14682 PR gdb/16577
14683 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
14684 a warning instead of throwing an error, set section size to 0 and return
14685 NULL.
14686 * gdb_bfd.h (gdb_bfd_map_section): Update description.
14687
14688 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
14689
14690 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
14691 std::string.
14692 (linux_ptrace_attach_fail_reason_string): Likewise.
14693 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
14694 Likewise.
14695 (linux_ptrace_attach_fail_reason_string): Likewise.
14696 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
14697
14698 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
14699
14700 * linux-nat.c (linux_nat_attach): Remove xstrdup.
14701
14702 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
14703
14704 PR gdb/21559
14705 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
14706 checking for fs_base/gs_base fields in struct user_regs_struct.
14707 * configure: Regenerate.
14708
14709 2018-01-17 Yao Qi <yao.qi@linaro.org>
14710
14711 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
14712 function.
14713 (aarch64_linux_init_abi): Install it to gdbarch hook
14714 gcc_target_options.
14715
14716 2018-01-15 Pedro Alves <palves@redhat.com>
14717
14718 * common/signals-state-save-restore.c
14719 (save_original_signals_state): Fix typos.
14720
14721 2017-01-12 Tom Tromey <tom@tromey.com>
14722 Sergio Durigan Junior <sergiodj@redhat.com>
14723
14724 * Makefile.in (install-only): Install gdb-add-index.
14725
14726 2018-01-12 John Baldwin <jhb@FreeBSD.org>
14727
14728 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
14729
14730 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
14731
14732 * infrun.c (keep_going_pass_signal): Clear step-over info when
14733 insert_breakpoints fails.
14734
14735 2018-01-11 Pedro Alves <palves@redhat.com>
14736
14737 PR gdb/22583
14738 * infrun.c (resume): Rename to ...
14739 (resume_1): ... this.
14740 (resume): Reimplement as wrapper around resume_1.
14741
14742 2018-01-11 Pedro Alves <palves@redhat.com>
14743
14744 PR remote/22597
14745 * remote.c (remote_parse_stop_reply): Default to the last-set
14746 general thread instead of to 'magic_null_ptid'.
14747
14748 2018-01-10 Pedro Alves <palves@redhat.com>
14749
14750 * language.h (language_get_symbol_name_matcher): Rename ...
14751 (get_symbol_name_matcher): ... this.
14752 * language.c (language_get_symbol_name_matcher): Ditto.
14753 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
14754 callers adjusted.
14755
14756 2018-01-10 Pedro Alves <palves@redhat.com>
14757
14758 PR gdb/22670
14759 * dwarf2read.c
14760 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
14761 Adjust to use language_get_symbol_name_matcher instead of
14762 language_defn::la_get_symbol_name_matcher.
14763 * language.c (language_get_symbol_name_matcher): If in Ada mode
14764 and the lookup name is a verbatim match, return Ada's matcher.
14765 * language.h (language_get_symbol_name_matcher): Adjust comment.
14766 (ada_lookup_name_info::verbatim_p):: New method.
14767
14768 2018-01-10 Pedro Alves <palves@redhat.com>
14769
14770 PR gdb/22670
14771 * ada-lang.c (ada_collect_symbol_completion_matches): If the
14772 minsym's language is language_auto or language_cplus, pass down
14773 language_ada instead.
14774 * symtab.c (compare_symbol_name): Don't frob symbol language here.
14775
14776 2018-01-10 Pedro Alves <palves@redhat.com>
14777
14778 PR gdb/22670
14779 * minsyms.c (linkage_name_str): New function.
14780 (iterate_over_minimal_symbols): Use it.
14781
14782 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14783
14784 * NEWS: Document that 'info proc' now works on FreeBSD.
14785
14786 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14787
14788 * configure.ac: Check for kinfo_getfile in libutil.
14789 * configure: Regenerate.
14790 * config.in: Regenerate.
14791 * fbsd-nat.c: Include "fbsd-tdep.h".
14792 (fbsd_fetch_cmdline): New.
14793 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
14794 rather than calling error.
14795 (fbsd_info_proc): New.
14796 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
14797 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
14798 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
14799
14800 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14801
14802 * fbsd-nat.c (struct free_deleter): Remove.
14803 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
14804
14805 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14806
14807 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
14808 NULL for an empty pathname.
14809
14810 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14811
14812 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
14813 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
14814 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
14815 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
14816 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
14817 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
14818 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
14819 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14820 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14821 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14822 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14823 (fbsd_core_fetch_timeval, fbsd_print_sigset)
14824 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14825 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
14826 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14827
14828 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14829
14830 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14831 (gnu_xfer_auxv): New function.
14832 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14833 TARGET_OBJECT_AUXV.
14834
14835 2018-01-08 Yao Qi <yao.qi@linaro.org>
14836 Simon Marchi <simon.marchi@ericsson.com>
14837
14838 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14839 common/selftest.c.
14840 (COMMON_OBS): Remove selftest.o.
14841 * configure.ac: Append selftest-arch.c and common/selftest.c to
14842 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
14843 * configure: Re-generated.
14844 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14845 GDB_SELF_TEST.
14846 (maintenance_info_selftests): Likewise.
14847
14848 2018-01-08 Xavier Roirand <roirand@adacore.com>
14849
14850 * ada-valprint.c (val_print_packed_array_elements): Use
14851 proper number of elements when printing an array indexed
14852 by an enumeration type.
14853
14854 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14855
14856 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14857 (dw2_get_file_names_reader): Adjust.
14858 (lookup_dwo_signatured_type): Adjust.
14859 (lookup_dwp_signatured_type): Adjust.
14860 (lookup_signatured_type): Adjust.
14861 (create_type_unit_group): Adjust.
14862 (get_type_unit_group): Adjust.
14863 (process_psymtab_comp_unit_reader): Adjust.
14864 (build_type_psymtabs_reader): Adjust.
14865 (scan_partial_symbols): Adjust.
14866 (add_partial_symbol): Adjust.
14867 (add_partial_subprogram): Adjust.
14868 (peek_die_abbrev): Adjust.
14869 (fixup_go_packaging): Adjust.
14870 (process_imported_unit_die): Adjust.
14871 (dwarf2_compute_name): Adjust.
14872 (dwarf2_physname): Adjust.
14873 (read_import_statement): Adjust.
14874 (handle_DW_AT_stmt_list): Adjust.
14875 (read_file_scope): Adjust.
14876 (read_func_scope): Adjust.
14877 (read_lexical_block_scope): Adjust.
14878 (read_call_site_scope): Adjust.
14879 (read_variable): Adjust.
14880 (dwarf2_rnglists_process): Adjust.
14881 (dwarf2_ranges_process): Adjust.
14882 (dwarf2_ranges_read): Adjust.
14883 (dwarf2_get_pc_bounds): Adjust.
14884 (dwarf2_record_block_ranges): Adjust.
14885 (dwarf2_add_field): Adjust.
14886 (dwarf2_add_member_fn): Adjust.
14887 (read_structure_type): Adjust.
14888 (process_structure_scope): Adjust.
14889 (read_enumeration_type): Adjust.
14890 (read_array_type): Adjust.
14891 (mark_common_block_symbol_computed): Adjust.
14892 (read_common_block): Adjust.
14893 (read_namespace_type): Adjust.
14894 (read_namespace): Adjust.
14895 (read_module_type): Adjust.
14896 (read_tag_pointer_type): Adjust.
14897 (read_tag_ptr_to_member_type): Adjust.
14898 (read_tag_string_type): Adjust.
14899 (read_subroutine_type): Adjust.
14900 (read_typedef): Adjust.
14901 (read_base_type): Adjust.
14902 (attr_to_dynamic_prop): Adjust.
14903 (read_subrange_type): Adjust.
14904 (read_unspecified_type): Adjust.
14905 (dwarf2_read_abbrevs): Adjust.
14906 (load_partial_dies): Adjust.
14907 (read_partial_die): Adjust.
14908 (find_partial_die): Adjust.
14909 (guess_partial_die_structure_name): Adjust.
14910 (fixup_partial_die): Adjust.
14911 (read_attribute_value): Adjust.
14912 (read_addr_index): Adjust.
14913 (read_addr_index_from_leb128): Adjust.
14914 (read_str_index): Adjust.
14915 (dwarf2_string_attr): Adjust.
14916 (get_debug_line_section): Adjust.
14917 (dwarf_decode_line_header): Adjust.
14918 (lnp_state_machine::check_line_address): Adjust.
14919 (dwarf_decode_lines_1): Adjust.
14920 (dwarf_decode_lines): Adjust.
14921 (dwarf2_start_symtab): Adjust.
14922 (var_decode_location): Adjust.
14923 (new_symbol_full): Adjust.
14924 (dwarf2_const_value_data): Adjust.
14925 (dwarf2_const_value_attr): Adjust.
14926 (dwarf2_const_value): Adjust.
14927 (die_type): Adjust.
14928 (die_containing_type): Adjust.
14929 (build_error_marker_type): Adjust.
14930 (lookup_die_type): Adjust.
14931 (guess_full_die_structure_name): Adjust.
14932 (anonymous_struct_prefix): Adjust.
14933 (determine_prefix): Adjust.
14934 (dwarf2_name): Adjust.
14935 (follow_die_ref_or_sig): Adjust.
14936 (follow_die_offset): Adjust.
14937 (follow_die_ref): Adjust.
14938 (follow_die_sig_1): Adjust.
14939 (follow_die_sig): Adjust.
14940 (get_signatured_type): Adjust.
14941 (get_DW_AT_signature_type): Adjust.
14942 (decode_locdesc): Adjust.
14943 (dwarf_decode_macros): Adjust.
14944 (cu_debug_loc_section): Adjust.
14945 (fill_in_loclist_baton): Adjust.
14946 (dwarf2_symbol_mark_computed): Adjust.
14947 (init_one_comp_unit): Don't assign
14948 dwarf2_cu::dwarf2_per_objfile.
14949 (set_die_type): Adjust.
14950
14951 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14952
14953 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14954 <dwarf2_per_objfile>: New field.
14955 (dwarf2_per_objfile): Remove global.
14956 (get_dwarf2_per_objfile): New function.
14957 (set_dwarf2_per_objfile): New function.
14958 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14959 dwarf2_per_objfile.
14960 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14961 (read_abbrev_offset): Likewise.
14962 (read_indirect_string): Likewise.
14963 (read_indirect_line_string): Likewise.
14964 (read_indirect_string_at_offset): Likewise.
14965 (read_indirect_string_from_dwz): Likewise.
14966 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14967 dwarf2_per_objfile.
14968 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14969 (create_all_comp_units): Change objfile parameter to
14970 dwarf2_per_objfile.
14971 (create_all_type_units): Likewise.
14972 (process_queue): Add dwarf2_per_objfile parameter.
14973 (read_and_check_comp_unit_head): Likewise.
14974 (lookup_dwo_unit_in_dwp): Likewise.
14975 (get_dwp_file): Likewise.
14976 (process_cu_includes): Likewise.
14977 (struct free_dwo_file_cleanup_data): New struct.
14978 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14979 set_dwarf2_per_objfile.
14980 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14981 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14982 context, adjust calls.
14983 (dw2_instantiate_symtab): Likewise.
14984 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14985 (dw2_get_cu): Likewise.
14986 (create_cu_from_index_list): Change objfile parameter to
14987 dwarf2_per_objfile.
14988 (create_cus_from_index_list): Get dwarf2_per_objfile from
14989 context, adjust calls.
14990 (create_cus_from_index): Likewise.
14991 (create_signatured_type_table_from_index): Change objfile
14992 parameter to dwarf2_per_objfile.
14993 (create_signatured_type_table_from_debug_names): Change objfile
14994 parameter to dwarf2_per_objfile.
14995 (create_addrmap_from_index): Likewise.
14996 (create_addrmap_from_aranges): Likewise.
14997 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14998 (dw2_setup): Remove.
14999 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15000 context.
15001 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15002 get_dwarf2_per_objfile.
15003 (dw2_forget_cached_source_info): Likewise.
15004 (dw2_map_symtabs_matching_filename): Likewise.
15005 (struct dw2_symtab_iterator) <index>: Remove.
15006 <dwarf2_per_objfile>: New field.
15007 (dw2_symtab_iter_init): Replace index parameter with
15008 dwarf2_per_objfile.
15009 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15010 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15011 (dw2_print_stats): Likewise.
15012 (dw2_dump): Likewise.
15013 (dw2_expand_symtabs_for_function): Likewise.
15014 (dw2_expand_all_symtabs): Likewise.
15015 (dw2_expand_symtabs_with_fullname): Likewise.
15016 (dw2_expand_marked_cus): Replace index and objfile parameters
15017 with dwarf2_per_objfile.
15018 (dw_expand_symtabs_matching_file_matcher): Add
15019 dwarf2_per_objfile parameter and adjust calls.
15020 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15021 adjust calls.
15022 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15023 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15024 adjust calls.
15025 (create_cus_from_debug_names_list): Replace objfile parameter
15026 with dwarf2_per_objfile and adjust calls.
15027 (create_cus_from_debug_names): Likewise.
15028 (dwarf2_read_debug_names): Likewise.
15029 (mapped_debug_names::namei_to_name): Adjust call.
15030 (dw2_debug_names_iterator::next): Likewise.
15031 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
15032 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
15033 (dw2_debug_names_dump): Likewise.
15034 (dw2_debug_names_expand_symtabs_for_function): Likewise.
15035 (dw2_debug_names_expand_symtabs_matching): Likewise.
15036 (dwarf2_initialize_objfile): Likewise.
15037 (dwarf2_build_psymtabs): Likewise.
15038 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
15039 this_cu.
15040 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
15041 (read_and_check_comp_unit_head): Likewise.
15042 (read_abbrev_offset): Likewise.
15043 (create_debug_type_hash_table): Likewise.
15044 (create_debug_types_hash_table): Likewise.
15045 (create_all_type_units): Replace objfile parameter with
15046 dwarf2_per_objfile.
15047 (add_type_unit): Add dwarf2_per_objfile parameter.
15048 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
15049 with dwarf2_per_objfile.
15050 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
15051 (lookup_dwp_signatured_type): Likewise.
15052 (lookup_signatured_type): Likewise.
15053 (read_cutu_die_from_dwo): Likewise.
15054 (init_tu_and_read_dwo_dies): Likewise.
15055 (init_cutu_and_read_dies): Likewise.
15056 (init_cutu_and_read_dies_no_follow): Likewise.
15057 (allocate_type_unit_groups_table): Add objfile parameter.
15058 (create_type_unit_group): Use dwarf2_per_objfile from cu.
15059 (get_type_unit_group): Likewise.
15060 (process_psymtab_comp_unit): Update call.
15061 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
15062 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
15063 (print_tu_stats): Likewise.
15064 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
15065 in void* parameter.
15066 (build_type_psymtabs): Change objfile parameter to
15067 dwarf2_per_objfile.
15068 (process_skeletonless_type_unit): Use dwarf2_per_objfile
15069 passed in void* parameter.
15070 (process_skeletonless_type_units): Change objfile parameter to
15071 dwarf2_per_objfile.
15072 (set_partial_user): Likewise.
15073 (dwarf2_build_psymtabs_hard): Likewise.
15074 (read_comp_units_from_section): Likewise.
15075 (create_all_comp_units): Likewise.
15076 (scan_partial_symbols): Update calls.
15077 (add_partial_symbol): Likewise.
15078 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
15079 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
15080 (process_queue): Add dwarf2_per_objfile parameter.
15081 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
15082 (compute_compunit_symtab_includes): Likewise.
15083 (process_cu_includes): Add dwarf2_per_objfile parameter.
15084 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
15085 (process_full_type_unit): Likewise.
15086 (process_imported_unit_die): Update call.
15087 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
15088 (read_file_scope): Likewise.
15089 (allocate_dwo_file_hash_table): Add objfile parameter.
15090 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
15091 (create_cus_hash_table): Likewise.
15092 (create_dwp_hash_table): Likewise.
15093 (create_dwo_unit_in_dwp_v1): Likewise.
15094 (create_dwp_v2_section): Likewise.
15095 (create_dwo_unit_in_dwp_v2): Likewise.
15096 (lookup_dwo_unit_in_dwp): Likewise.
15097 (try_open_dwop_file): Likewise.
15098 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
15099 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
15100 cleanup to include a reference to dwarf2_per_objfile.
15101 (open_dwp_file): Add dwarf2_per_objfile parameter.
15102 (open_and_init_dwp_file): Likewise.
15103 (get_dwp_file): Likewise.
15104 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
15105 (queue_and_load_all_dwo_tus): Update call.
15106 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
15107 data.
15108 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
15109 (dwarf2_ranges_process): Likewise.
15110 (dwarf2_get_pc_bounds): Likewise.
15111 (mark_common_block_symbol_computed): Likewise.
15112 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15113 (dwarf2_read_abbrevs): Update call.
15114 (read_partial_die): Use dwarf2_per_objfile from cu.
15115 (find_partial_die): Likewise.
15116 (fixup_partial_die): Likewise.
15117 (read_attribute_value): Likewise.
15118 (read_indirect_string_at_offset_from): Add objfile parameter.
15119 (read_indirect_string_at_offset): Add dwarf2_per_objfile
15120 parameter.
15121 (read_indirect_string_from_dwz): Add objfile parameter.
15122 (read_indirect_string): Add objfile parameter.
15123 (read_addr_index_1): Add dwarf2_per_objfile parameter.
15124 (read_addr_index): Use dwarf2_per_objfile from cu.
15125 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
15126 call dw2_setup.
15127 (read_str_index): Use dwarf2_per_objfile from cu.
15128 (get_debug_line_section): Likewise.
15129 (read_formatted_entries): Add dwarf2_per_objfile parameter.
15130 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
15131 (new_symbol_full): Use dwarf2_per_objfile from cu.
15132 (build_error_marker_type): Likewise.
15133 (lookup_die_type): Likewise.
15134 (determine_prefix): Likewise.
15135 (follow_die_offset): Likewise.
15136 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
15137 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
15138 (dwarf2_fetch_die_type_sect_off): Likewise.
15139 (dwarf2_get_die_type): Likewise.
15140 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
15141 (get_signatured_type): Likewise.
15142 (get_DW_AT_signature_type): Likewise.
15143 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
15144 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
15145 (cu_debug_loc_section): Likewise.
15146 (fill_in_loclist_baton): Likewise.
15147 (dwarf2_symbol_mark_computed): Likewise.
15148 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15149 dwarf2_per_objfile.
15150 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
15151 parameter.
15152 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15153 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
15154 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
15155 (set_die_type): Use dwarf2_free_objfile from cu.
15156 (get_die_type_at_offset): Likewise.
15157 (dwarf2_per_objfile_free): Don't assign global variable.
15158 (debug_names) <constructor>: Add dwarf2_per_objfile
15159 parameter, update m_debugstrlookup construction.
15160 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
15161 parameter.
15162 <m_dwarf2_per_objfile>: New field.
15163 <lookup>: Use m_dwarf2_per_objfile.
15164 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
15165 (psyms_seen_size): Likewise.
15166 (write_gdbindex): Replace objfile parameter with
15167 dwarf2_per_objfile.
15168 (write_debug_names): Likewise.
15169 (write_psymtabs_to_index): Likewise.
15170 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
15171 calls.
15172
15173 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15174
15175 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
15176 <dwarf2_per_objfile>: New field.
15177 (struct dwarf2_per_cu_data) <objfile>: Remove.
15178 <dwarf2_per_objfile>: New field.
15179 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
15180 of objfile.
15181 (create_signatured_type_table_from_index): Likewise.
15182 (create_debug_type_hash_table): Likewise.
15183 (fill_in_sig_entry_from_dwo_entry): Likewise.
15184 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
15185 (create_type_unit_group): Assign dwarf2_per_objfile instead of
15186 objfile.
15187 (create_partial_symtab): Access objfile through
15188 dwarf2_per_objfile.
15189 (process_psymtab_comp_unit_reader): Likewise.
15190 (read_comp_units_from_section): Likewise.
15191 (scan_partial_symbols): Likewise.
15192 (add_partial_symbol): Likewise.
15193 (add_partial_subprogram): Likewise.
15194 (peek_die_abbrev): Likewise.
15195 (fixup_go_packaging): Likewise.
15196 (process_full_comp_unit): Likewise.
15197 (process_full_type_unit): Likewise.
15198 (process_imported_unit_die): Likewise.
15199 (dwarf2_compute_name): Likewise.
15200 (dwarf2_physname): Likewise.
15201 (read_import_statement): Likewise.
15202 (create_cus_hash_table): Assign dwarf2_physname instead of
15203 objfile.
15204 (read_func_scope): Access objfile through dwarf2_per_objfile.
15205 (read_lexical_block_scope): Likewise.
15206 (read_call_site_scope): Likewise.
15207 (read_variable): Likewise.
15208 (dwarf2_rnglists_process): Likewise.
15209 (dwarf2_ranges_process): Likewise.
15210 (dwarf2_ranges_read): Likewise.
15211 (dwarf2_record_block_ranges): Likewise.
15212 (dwarf2_add_field): Likewise.
15213 (dwarf2_add_member_fn): Likewise.
15214 (read_structure_type): Likewise.
15215 (process_structure_scope): Likewise.
15216 (read_enumeration_type): Likewise.
15217 (read_array_type): Likewise.
15218 (read_common_block): Likewise.
15219 (read_namespace_type): Likewise.
15220 (read_namespace): Likewise.
15221 (read_module_type): Likewise.
15222 (read_tag_pointer_type): Likewise.
15223 (read_tag_ptr_to_member_type): Likewise.
15224 (read_tag_string_type): Likewise.
15225 (read_subroutine_type): Likewise.
15226 (read_typedef): Likewise.
15227 (read_base_type): Likewise.
15228 (attr_to_dynamic_prop): Likewise.
15229 (read_subrange_type): Likewise.
15230 (read_unspecified_type): Likewise.
15231 (load_partial_dies): Likewise.
15232 (read_partial_die): Likewise.
15233 (find_partial_die): Likewise.
15234 (guess_partial_die_structure_name): Likewise.
15235 (fixup_partial_die): Likewise.
15236 (read_attribute_value): Likewise.
15237 (read_addr_index_from_leb128): Likewise.
15238 (dwarf2_read_addr_index): Likewise.
15239 (dwarf2_string_attr): Likewise.
15240 (lnp_state_machine::check_line_address): Likewise.
15241 (dwarf_decode_lines_1): Likewise.
15242 (dwarf_decode_lines): Likewise.
15243 (dwarf2_start_symtab): Likewise.
15244 (var_decode_location): Likewise.
15245 (new_symbol_full): Likewise.
15246 (dwarf2_const_value_data): Likewise.
15247 (dwarf2_const_value_attr): Likewise.
15248 (dwarf2_const_value): Likewise.
15249 (die_type): Likewise.
15250 (die_containing_type): Likewise.
15251 (lookup_die_type): Likewise.
15252 (guess_full_die_structure_name): Likewise.
15253 (anonymous_struct_prefix): Likewise.
15254 (dwarf2_name): Likewise.
15255 (follow_die_ref_or_sig): Likewise.
15256 (follow_die_offset): Likewise.
15257 (follow_die_ref): Likewise.
15258 (dwarf2_fetch_die_loc_sect_off): Likewise.
15259 (dwarf2_fetch_constant_bytes): Likewise.
15260 (dwarf2_fetch_die_type_sect_off): Likewise.
15261 (dwarf2_get_die_type): Likewise.
15262 (follow_die_sig): Likewise.
15263 (decode_locdesc): Likewise.
15264 (dwarf2_per_cu_objfile): Likewise.
15265 (dwarf2_per_cu_text_offset): Likewise.
15266 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
15267 objfile.
15268 (set_die_type): Access objfile through
15269 dwarf2_per_objfile.
15270
15271 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15272
15273 * valprint.c (converted_character_d): Remove typedef.
15274 (DEF_VEC_O (converted_character_d)): Remove.
15275 (count_next_character): Use std::vector.
15276 (print_converted_chars_to_obstack): Likewise.
15277 (generic_printstr): Likewise.
15278
15279 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15280
15281 * xml-support.h (struct gdb_xml_value): Add constructor.
15282 <value>: Change type to unique_xmalloc_ptr.
15283 (gdb_xml_value_s): Remove typedef.
15284 (DEF_VEC_O (gdb_xml_value_s)): Remove.
15285 (gdb_xml_element_start_handler): Change parameter type to
15286 std::vector.
15287 (xml_find_attribute): Likewise.
15288 * xml-support.c (xml_find_attribute): Change parameter type to
15289 std::vector and adjust.
15290 (gdb_xml_values_cleanup): Remove.
15291 (gdb_xml_parser::start_element): Adjust to std::vector.
15292 (xinclude_start_include): Change paraeter type to std::vector
15293 and adjust.
15294 * btrace.c (check_xml_btrace_version): Likewise.
15295 (parse_xml_btrace_block): Likewise.
15296 (parse_xml_btrace_pt_config_cpu): Likewise.
15297 (parse_xml_btrace_pt): Likewise.
15298 (parse_xml_btrace_conf_bts): Likewise.
15299 (parse_xml_btrace_conf_pt): Likewise.
15300 * memory-map.c (memory_map_start_memory): Likewise.
15301 (memory_map_start_property): Likewise.
15302 * osdata.c (osdata_start_osdata): Likewise.
15303 (osdata_start_item): Likewise.
15304 (osdata_start_column): Likewise.
15305 * remote.c (start_thread): Likewise.
15306 * solib-aix.c (library_list_start_library): Likewise.
15307 (library_list_start_list): Likewise.
15308 * solib-svr4.c (library_list_start_library): Likewise.
15309 (svr4_library_list_start_list): Likewise.
15310 * solib-target.c (library_list_start_segment): Likewise.
15311 (library_list_start_section): Likewise.
15312 (library_list_start_library): Likewise.
15313 (library_list_start_list): Likewise.
15314 * tracepoint.c (traceframe_info_start_memory): Likewise.
15315 (traceframe_info_start_tvar): Likewise.
15316 * xml-syscall.c (syscall_start_syscall): Likewise.
15317 * xml-tdesc.c (tdesc_start_target): Likewise.
15318 (tdesc_start_feature): Likewise.
15319 (tdesc_start_reg): Likewise.
15320 (tdesc_start_union): Likewise.
15321 (tdesc_start_struct): Likewise.
15322 (tdesc_start_flags): Likewise.
15323 (tdesc_start_enum): Likewise.
15324 (tdesc_start_field): Likewise.
15325 (tdesc_start_enum_value): Likewise.
15326 (tdesc_start_vector): Likewise.
15327
15328 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15329
15330 * extension.h (struct xmethod_worker) <clone>: Remove.
15331 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
15332 Remove.
15333 (python_xmethod_worker::clone): Remove.
15334 * valops.c (find_overload_match): Use std::move instead of
15335 clone.
15336
15337 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15338
15339 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
15340 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
15341 <free_xmethod_worker_data>: Remove.
15342 <get_matching_xmethod_workers>: Chance VEC to std::vector.
15343 <get_xmethod_arg_types>: Remove.
15344 <get_xmethod_result_type>: Remove.
15345 <invoke_xmethod>: Remove.
15346 * extension.c (new_xmethod_worker): Remove.
15347 (clone_xmethod_worker): Remove.
15348 (get_matching_xmethod_workers): Return void, pass std::vector by
15349 pointer.
15350 (get_xmethod_arg_types): Rename to...
15351 (xmethod_worker::get_arg_types): ... this, and adjust.
15352 (get_xmethod_result_type): Rename to...
15353 (xmethod_worker::get_result_type): ... this, and adjust.
15354 (invoke_xmethod): Remove.
15355 (free_xmethod_worker): Remove.
15356 (free_xmethod_worker_vec): Remove.
15357 * extension.h (enum ext_lang_rc): Move here from
15358 extension-priv.h.
15359 (struct xmethod_worker): Add constructor and destructor.
15360 <data>: Remove.
15361 <value>: Remove.
15362 <invoke, clone, do_get_result_type, do_get_arg_types>: New
15363 virtual pure methods.
15364 <get_arg_types, get_result_type>: New methods.
15365 (xmethod_worker_ptr): Remove typedef.
15366 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15367 (xmethod_worker_vec): Remove typedef.
15368 (xmethod_worker_up): New typedef.
15369 (invoke_xmethod): Remove.
15370 (clone_xmethod_worker): Remove.
15371 (free_xmethod_worker): Remove.
15372 (free_xmethod_worker_vec): Remove.
15373 (get_xmethod_arg_types): Remove.
15374 (get_xmethod_result_type): Remove.
15375 * valops.c (find_method_list): Use std::vector, don't use
15376 intermediate vector.
15377 (value_find_oload_method_list): Use std::vector.
15378 (find_overload_match): Use std::vector.
15379 (find_oload_champ): Use std::vector.
15380 * value.c (value_free): Use operator delete.
15381 (value_of_xmethod): Rename to...
15382 (value_from_xmethod): ... this. Don't assign
15383 xmethod_worker::value, take rvalue-reference.
15384 (result_type_of_xmethod): Adjust.
15385 (call_xmethod): Adjust.
15386 * value.h: Include extension.h.
15387 (struct xmethod_worker): Don't forward-declare.
15388 (value_of_xmethod): Rename to...
15389 (value_from_xmethod): ... this, take rvalue-reference.
15390 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15391 (struct python_xmethod_worker): ... this, add constructor and
15392 destructor.
15393 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15394 (gdbpy_free_xmethod_worker_data): Rename to...
15395 (python_xmethod_worker::~python_xmethod_worker): ... this and
15396 adjust.
15397 (gdbpy_clone_xmethod_worker_data): Rename to...
15398 (python_xmethod_worker::clone): ... this and adjust.
15399 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15400 temporary vector.
15401 (gdbpy_get_xmethod_arg_types): Rename to...
15402 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15403 (gdbpy_get_xmethod_result_type): Rename to...
15404 (python_xmethod_worker::do_get_result_type): ... this and
15405 adjust.
15406 (gdbpy_invoke_xmethod): Rename to...
15407 (python_xmethod_worker::invoke): ... this and adjust.
15408 (new_python_xmethod_worker): Rename to...
15409 (python_xmethod_worker::python_xmethod_worker): ... this and
15410 adjust.
15411 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15412 Remove.
15413 (gdbpy_free_xmethod_worker_data): Remove.
15414 (gdbpy_get_matching_xmethod_workers): Use std::vector.
15415 (gdbpy_get_xmethod_arg_types): Remove.
15416 (gdbpy_get_xmethod_result_type): Remove.
15417 (gdbpy_invoke_xmethod): Remove.
15418 * python/python.c (python_extension_ops): Remove obsolete
15419 callbacks.
15420
15421 2018-01-05 Pedro Alves <palves@redhat.com>
15422
15423 PR gdb/18653
15424 * common/signals-state-save-restore.c
15425 (save_original_signals_state): New parameter 'quiet'. Warn if we
15426 find a custom handler preinstalled, instead of internal erroring.
15427 But only warn if !quiet.
15428 * common/signals-state-save-restore.h
15429 (save_original_signals_state): New parameter 'quiet'.
15430 * main.c (captured_main_1): Move save_original_signals_state call
15431 after option handling, and pass QUIET.
15432
15433 2018-01-05 Pedro Alves <palves@redhat.com>
15434
15435 * spu-tdep.c (spu_catch_start): Pass
15436 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15437
15438 2018-01-05 Pedro Alves <palves@redhat.com>
15439
15440 PR gdb/22670
15441 * ada-lang.c (literal_symbol_name_matcher): New function.
15442 (ada_get_symbol_name_matcher): Use it for
15443 symbol_name_match_type::SEARCH_NAME.
15444 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
15445 it down instead of assuming symbol_name_match_type::FULL.
15446 * block.h (block_lookup_symbol): New parameter 'match_type'.
15447 * c-valprint.c (print_unpacked_pointer): Use
15448 lookup_symbol_search_name instead of lookup_symbol.
15449 * compile/compile-object-load.c (get_out_value_type): Pass down
15450 symbol_name_match_type::SEARCH_NAME.
15451 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15452 symbol_name_match_type::FULL.
15453 * cp-support.c (cp_get_symbol_name_matcher): Handle
15454 symbol_name_match_type::SEARCH_NAME.
15455 * infrun.c (insert_exception_resume_breakpoint): Use
15456 lookup_symbol_search_name.
15457 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15458 * psymtab.c (maintenance_check_psymtabs): Use
15459 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15460 * stack.c (print_frame_args): Use lookup_symbol_search_name and
15461 SYMBOL_SEARCH_NAME.
15462 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
15463 if symbol_name_match_type::SEARCH_NAME.
15464 (lookup_symbol_in_language): Pass down
15465 symbol_name_match_type::FULL.
15466 (lookup_symbol_search_name): New.
15467 (lookup_language_this): Pass down
15468 symbol_name_match_type::SEARCH_NAME.
15469 (lookup_symbol_aux, lookup_local_symbol): New parameter
15470 'match_type'. Pass it down.
15471 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
15472 (lookup_symbol_search_name): New declaration.
15473 (lookup_symbol_in_block): New 'match_type' parameter.
15474
15475 2018-01-05 Pedro Alves <palves@redhat.com>
15476
15477 PR gdb/22670
15478 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
15479 ada_lookup_symbol.
15480 (ada_lookup_symbol): Reimplement in terms of
15481 ada_lookup_symbol_list, bits factored out from
15482 ada_lookup_encoded_symbol.
15483
15484 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15485
15486 * ada-exp.y (write_object_renaming): When subscripting an array
15487 using a symbol as the index, pass the block in call to
15488 ada_lookup_encoded_symbol when looking that symbol up.
15489
15490 2018-01-05 Jerome Guitton <guitton@adacore.com>
15491
15492 * ada-lang.c (ada_array_length): Use ada_index_type instead of
15493 TYPE_INDEX_TYPE.
15494
15495 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15496
15497 * ada-lang.c (ada_to_fixed_value_create): Add handling of
15498 the case where VALUE_LVAL (val0) is not lval_memory.
15499
15500 2018-01-05 Xavier Roirand <roirand@adacore.com>
15501
15502 * ada-valprint.c (print_optional_low_bound): Handle
15503 character-indexed array printing like boolean-indexed array
15504 printing.
15505
15506 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15507
15508 * NEWS: Create a new section for the next release branch.
15509 Rename the section of the current branch, now that it has
15510 been cut.
15511
15512 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15513
15514 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
15515 * version.in: Bump version to 8.1.50.DATE-git.
15516
15517 2018-01-03 Xavier Roirand <roirand@adacore.com>
15518
15519 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
15520 Add field.
15521 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
15522 Add field.
15523 (default_exception_support_info) <catch_handlers_sym>: Add field.
15524 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
15525 (ada_exception_name_addr_1): Add "catch handlers" handling.
15526 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
15527 Update all callers.
15528 (create_excep_cond_exprs) <ex>: Add parameter.
15529 (re_set_exception): Update create_excep_cond_exprs call.
15530 (print_it_exception, print_one_exception, print_mention_exception)
15531 (print_recreate_exception): Add "catch handler" handling.
15532 (allocate_location_catch_handlers, re_set_catch_handlers)
15533 (check_status_catch_handlers, print_it_catch_handlers)
15534 (print_one_catch_handlers, print_mention_catch_handlers)
15535 (print_recreate_catch_handlers): New function.
15536 (catch_handlers_breakpoint_ops): New variable.
15537 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
15538 Add parameter. Add "catch handler" handling.
15539 (ada_exception_sym_name, ada_exception_breakpoint_ops):
15540 Add "catch handler" handling.
15541 (ada_exception_catchpoint_cond_string): Add "catch handler"
15542 handling.
15543 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
15544 call.
15545 (catch_ada_handlers_command): New function.
15546 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
15547 operations structure.
15548 (_initialize_ada_language): Add "catch handlers" command entry.
15549 * NEWS: Document "catch handlers" feature.
15550
15551 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15552
15553 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
15554 account when creating the array type of the slice.
15555 (ada_value_slice): Likewise.
15556
15557 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15558
15559 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
15560 New enum value.
15561 (create_array_type_with_stride): Add byte_stride_prop parameter.
15562 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
15563 New parameter. Update all callers in this file.
15564 (array_type_has_dynamic_stride): New function.
15565 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
15566 of arrays with dynamic byte strides.
15567 * dwarf2read.c (read_array_type): Add support for dynamic
15568 DW_AT_byte_stride attributes.
15569
15570 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15571
15572 * dwarf2read.c (read_unspecified_type): Treat
15573 DW_TAG_enumeration_type DIEs from Ada units as stubs.
15574
15575 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15576
15577 Update copyright year range in all GDB files.
15578
15579 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
15580
15581 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
15582 and gdb/testsuite/gdb.base/step-line.c.
15583
15584 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15585
15586 * copyright.py (main): Dump the contents of
15587 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
15588 even if BY_HAND is empty.
15589
15590 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15591
15592 * top.c (print_gdb_version): Update Copyright year in version
15593 message.
15594
15595 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15596
15597 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
15598
15599 For older changes see ChangeLog-2017.
15600 \f
15601 Local Variables:
15602 mode: change-log
15603 left-margin: 8
15604 fill-column: 74
15605 version-control: never
15606 coding: utf-8
15607 End:
This page took 0.362279 seconds and 4 git commands to generate.