gdb: Handle ICC's unexpected void return type
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
eb77c9df
AB
12018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
4 (producer_is_icc): New function.
5 (check_producer): Set producer_is_icc field on dwarf2_cu.
6 (dwarf2_init_integer_type): New function.
7 (read_base_type): Call dwarf2_init_integer_type instead of
8 init_integer_type in all cases.
9 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
10 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
11 LEN is greater than 0.
12
4d5d1049
TT
132018-10-30 Tom Tromey <tom@tromey.com>
14
15 * main.c (captured_main_1): Check return value of bfd_init.
16
fd332753
SDJ
172018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
18
19 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
20 Adjust comments.
21
30a7953d
RO
222018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23
24 * procfs.c: Include common/pathstuff.h.
25
a3d72268
AB
262018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
29 Add missing braces. No functional change.
30
cd948f5b
PW
312018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
32
33 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
34 to report a bad option and fix indentation.
35 * demangle.c (demangle_command): Use report_unrecognized_option_error
36 to report a bad option and correctly report the bad option.
37
b50a8b9a
TT
382018-10-27 Tom Tromey <tom@tromey.com>
39
40 PR cli/23364:
41 * darwin-nat.c (copied_shell): New global.
42 (may_have_sip): Rename from should_disable_startup_with_shell.
43 (copy_shell_to_cache, maybe_cache_shell): New functions.
44 (darwin_nat_target::create_inferior): Update. Use
45 copied_shell.
46
36033ef5
TT
472018-10-27 Tom Tromey <tom@tromey.com>
48
49 * unittests/scoped_fd-selftests.c (test_to_file): New function.
50 (run_tests): Call test_to_file.
51 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
52 temporary files.
53 * common/scoped_fd.h (scoped_fd::to_file): New method.
54
b3279b60
TT
552018-10-27 Tom Tromey <tom@tromey.com>
56
57 * unittests/scoped_mmap-selftests.c (test_normal): Use
58 gdb_mkostemp_cloexec.
59 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
60 Use gdb_mkostemp_cloexec.
61 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
62 gnulib/config.in, gnulib/configure,
63 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
64 gnulib/import/m4/gnulib-cache.m4,
65 gnulib/import/m4/gnulib-comp.m4: Update.
66 * gnulib/import/m4/mkostemp.m4: New file.
67 * gnulib/import/m4/mkstemp.m4: Remove.
68 * gnulib/import/mkostemp.c: New file.
69 * gnulib/import/mkstemp.m4: Remove.
70 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
71 mkstemp, add mkostemp. Apply new patch.
72 * gnulib/import/stdlib.in.h: Apply patch.
73 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
74 New file.
75 * dwarf-index-write.c (write_psymtabs_to_index): Use
76 gdb_mkostemp_cloexec.
77 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
78
e418a61a
TT
792018-10-27 Tom Tromey <tom@tromey.com>
80
81 * unittests/mkdir-recursive-selftests.c: New file.
82 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
83 unittests/mkdir-recursive-selftests.c.
84 * dwarf-index-cache.c (mkdir_recursive): Move to
85 common/filestuff.c.
86 (index_cache::store): Check return value of mkdir_recursive.
87 (create_dir_and_check, test_mkdir_recursive): Move to new file.
88 (_initialize_index_cache): Don't register test.
89 * common/filestuff.h (mkdir_recursive): Declare.
90 * common/filestuff.c (mkdir_recursive): Move from
91 dwarf-index-cache.c. Return bool.
92
29be4d9d
TT
932018-10-27 Tom Tromey <tom@tromey.com>
94
95 * dwarf-index-write.c (write_psymtabs_to_index): Move
96 make_temp_filename to common/pathstuff.c.
97 * common/pathstuff.h (make_temp_filename): Declare.
98 * common/pathstuff.c (make_temp_filename): New function, moved
99 from dwarf-index-write.c.
100
974e6844
TT
1012018-10-27 Tom Tromey <tom@tromey.com>
102
103 * procfs.c (procfs_target::create_inferior): Use get_shell.
104 * cli/cli-cmds.c (shell_escape): Use get_shell.
105 * windows-nat.c (windows_nat_target::create_inferior): Use
106 get_shell.
107 * common/pathstuff.c (get_shell): New function.
108 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
109 (fork_inferior): Use get_shell.
110 * common/pathstuff.h (get_shell): Declare.
111
e0a7911f
PW
1122018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
113
114 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
115
12615cba
PW
1162018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
117
118 * stack.c (print_variable_and_value_data): Add preg and treg.
119 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
120 and update callers.
121 (print_frame_arg_vars): Likewise.
122 (prepare_reg): New function.
123 (info_locals_command): Extract info print args and use them.
124 (info_args_command): Likewise.
125 (_initialize_stack): Modify on-line help.
126 * symtab.c (treg_matches_sym_type_name): New function.
127 (search_symbols): New arg t_regexp.
128 (symtab_symbol_info): New args quiet, regexp, t_regexp.
129 (info_variables_command): Extract info print args and use them.
130 (info_functions_command): Likewise.
131 (info_types_command): Update call to symtab_symbol_info.
132 (_initialize_symtab): Modify on-line help.
133 * symtab.h (treg_matches_sym_type_name): New function.
134 (search_symbols): New t_regexp arg.
135
0d4cad90
PW
1362018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
137
138 * cli-utils.c (extract_arg_maybe_quoted): New function.
139 (extract_info_print_args): New function.
140 (info_print_args_help): New function.
141 (report_unrecognized_option_error): New function.
142 * cli-utils.h (extract_arg_maybe_quoted): New function.
143 (extract_info_print_args): New function.
144 (info_print_args_help): New function.
145 (report_unrecognized_option_error): New function.
146
4c39bc03
TT
1472018-10-26 Tom Tromey <tom@tromey.com>
148
149 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
150 (compute_compunit_symtab_includes): Update.
151 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
152 (compunit_symtab_ptr): Likewise.
153
fd2b4de5
JB
1542018-10-26 John Baldwin <jhb@FreeBSD.org>
155
156 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
157 default_print_auxv_entry for specific tag values.
158
d7ded98f
JB
1592018-10-26 John Baldwin <jhb@FreeBSD.org>
160
161 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
162
8a613826
JW
1632018-10-26 Jim Wilson <jimw@sifive.com>
164
77c6f5fc
JW
165 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
166 (riscv_linux_sigframe_init): Declare.
167 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
168 (riscv_linux_sigframe): New.
169 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
170 (riscv_linux_sigframe_init): Define.
171 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
172
8a613826
JW
173 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
174 (riscv_isa_flen): Likewise. Drop static.
175 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
176 (riscv_isa_flen): Likewise. Declare.
177
8d619c01
EBM
1782018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
179 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
180
181 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
182 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
183 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
184 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
185 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
186 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
187 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
188 Define.
189 (struct ppc_linux_features) <htm>: New field.
190 (ppc_linux_no_features): Add initializer for htm field.
191 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
192 new tdescs.
193 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
194 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
195 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
196 Define if not already defined.
197 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
198 and rs6000/powerpc-isa207-htm-vsx64l.
199 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
200 rs6000/powerpc-isa207-htm-vsx64l.xml.
201 * features/rs6000/power-htm-spr.xml: New file.
202 * features/rs6000/power-htm-core.xml: New file.
203 * features/rs6000/power64-htm-core.xml: New file.
204 * features/rs6000/power-htm-fpu.xml: New file.
205 * features/rs6000/power-htm-altivec.xml: New file.
206 * features/rs6000/power-htm-vsx.xml: New file.
207 * features/rs6000/power-htm-ppr.xml: New file.
208 * features/rs6000/power-htm-dscr.xml: New file.
209 * features/rs6000/power-htm-tar.xml: New file.
210 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
211 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
212 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
213 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
214 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
215 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
216 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
217 fetch_regset with HTM regsets.
218 (store_register, store_ppc_registers): Call store_regset with HTM
219 regsets.
220 (ppc_linux_nat_target::read_description): Set htm field in the
221 features struct if needed.
222 * ppc-linux-tdep.c: Include
223 features/rs6000/powerpc-isa207-htm-vsx32l.c and
224 features/rs6000/powerpc-isa207-htm-vsx64l.c.
225 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
226 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
227 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
228 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
229 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
230 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
231 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
232 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
233 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
234 (ppc32_linux_ctarregset): New globals.
235 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
236 (ppc_linux_collect_core_cpgrregset): New function.
237 (ppc_linux_iterate_over_regset_sections): Call back with the htm
238 regsets.
239 (ppc_linux_core_read_description): Check if the tm spr section is
240 present and set htm in the features struct.
241 (_initialize_ppc_linux_tdep): Call
242 initialize_tdesc_powerpc_isa207_htm_vsx32l and
243 initialize_tdesc_powerpc_isa207_htm_vsx64l.
244 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
245 Declare.
246 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
247 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
248 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
249 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
250 New fields.
251 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
252 Likewise.
253 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
254 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
255 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
256 New enum fields.
257 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
258 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
259 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
260 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
261 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
262 <PPC_CTAR_REGNUM>: Likewise.
263 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
264 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
265 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
266 (IS_CEFP_PSEUDOREG): Define.
267 (rs6000_register_name): Hide the upper halves of checkpointed VSX
268 registers. Return names for the checkpointed DFP, VSX, and EFP
269 pseudo registers.
270 (rs6000_pseudo_register_type): Remove initial assert and raise an
271 internal error in the else clause instead. Return types for the
272 checkpointed DFP, VSX, and EFP pseudo registers.
273 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
274 checkpointed DFP pseudo registers.
275 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
276 checkpointed VSX pseudo registers.
277 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
278 from efpr_pseudo_register_read and
279 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
280 registers.
281 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
282 Handle checkpointed DFP, VSX, and EFP registers.
283 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
284 (efp_ax_pseudo_register_collect): New functions.
285 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
286 register logic to new functions. Handle checkpointed DFP, VSX,
287 and EFP pseudo registers.
288 (rs6000_gdbarch_init): Look for and validate the htm features.
289 Include checkpointed DFP, VSX and EFP pseudo-registers.
290 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
291 HTM registers.
292
81ab84fd
PFC
2932018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
294
295 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
296 without altivec or fpu.
297
232bfb86
EBM
2982018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
299 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
300
301 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
302 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
303 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
304 Define if not already defined.
305 * features/rs6000/power-ebb.xml: New file.
306 * features/rs6000/power-linux-pmu.xml: New file.
307 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
308 features.
309 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
310 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
311 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
312 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
313 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
314 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
315 fetch_regset with ebb and pmu regsets.
316 (store_register, store_ppc_registers): Call store_regset with ebb
317 and pmu regsets.
318 (ppc_linux_nat_target::read_description): Set isa207 field in the
319 features struct if ebb and pmu are avaiable.
320 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
321 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
322 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
323 and pmu regsets.
324 (ppc_linux_core_read_description): Check if the pmu section is
325 present and set isa207 in the features struct.
326 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
327 (ppc32_linux_pmuregset): Declare.
328 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
329 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
330 <ppc_sier_regnum>: New field.
331 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
332 New enum values.
333 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
334 values.
335 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
336 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
337 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
338 ebb and pmu features.
339
f2cf6173
EBM
3402018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
341 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
342
343 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
344 (tdesc_powerpc_isa207_vsx64l): Declare.
345 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
346 (struct ppc_linux_features) <isa207>: New field.
347 (ppc_linux_no_features): Add initializer for isa207 field.
348 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
349 new tdescs.
350 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
351 (NT_PPC_TAR): Define if not already defined.
352 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
353 rs6000/powerpc-isa207-vsx64l.
354 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
355 rs6000/powerpc-isa207-vsx64l.xml.
356 * features/rs6000/power-tar.xml: New file.
357 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
358 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
359 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
360 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
361 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
362 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
363 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
364 fetch_regset with the TAR regset.
365 (store_register, store_ppc_registers): Call store_regset with the
366 TAR regset.
367 (ppc_linux_nat_target::read_description): Set isa207 field in the
368 features struct if needed.
369 * ppc-linux-tdep.c: Include
370 features/rs6000/powerpc-isa207-vsx32l.c and
371 features/rs6000/powerpc-isa207-vsx64l.c.
372 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
373 (ppc_linux_iterate_over_regset_sections): Call back with the tar
374 regset.
375 (ppc_linux_core_read_description): Check if the tar section is
376 present and set isa207 in the features struct.
377 (_initialize_ppc_linux_tdep): Call
378 initialize_tdesc_powerpc_isa207_vsx32l and
379 initialize_tdesc_powerpc_isa207_vsx64l.
380 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
381 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
382 (enum) <PPC_TAR_REGNUM>: New enum value.
383 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
384 feature.
385 (ppc_process_record_op31): Record changes to TAR.
386
7ca18ed6
EBM
3872018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
388 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
389
390 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
391 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
392 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
393 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
394 (struct ppc_linux_features) <ppr_dscr>: New field.
395 (ppc_linux_no_features): Add initializer for ppr_dscr field.
396 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
397 new tdescs.
398 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
399 Define if not already defined.
400 * features/Makefile (WHICH): Add
401 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
402 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
403 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
404 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
405 * features/rs6000/power-dscr.xml: New file.
406 * features/rs6000/power-ppr.xml: New file.
407 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
408 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
409 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
410 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
411 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
412 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
413 * ppc-linux-nat.c: Include <sys/uio.h>.
414 (fetch_regset, store_regset, check_regset): New functions.
415 (fetch_register, fetch_ppc_registers): Call fetch_regset with
416 DSCR and PPR regsets.
417 (store_register, store_ppc_registers): Call store_regset with
418 DSCR and PPR regsets.
419 (ppc_linux_get_hwcap2): New function.
420 (ppc_linux_nat_target::read_description): Call
421 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
422 features struct if needed.
423 * ppc-linux-tdep.c: Include
424 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
425 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
426 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
427 (ppc32_linux_dscrregset): New globals.
428 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
429 and dscr regsets.
430 (ppc_linux_core_read_description): Check if the ppr and dscr
431 sections are present and set ppr_dscr in the features struct.
432 (_initialize_ppc_linux_tdep): Call
433 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
434 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
435 * ppc-linux-tdep.h (ppc32_linux_pprregset)
436 (ppc32_linux_dscrregset): Declare.
437 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
438 <ppc_dscr_regnum>: New field.
439 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
440 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
441 and dscr features.
442 (ppc_process_record_op31): Record changes to PPR and DSCR.
443
93b4691f
PFC
4442018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
445
446 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
447 second initializer line for the have_* variables. Initialize
448 have_fpu to 0 instead of 1.
449
71733a7b
PFC
4502018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
451
452 * arch/ppc-linux-common.c (ppc_linux_match_description):
453 Parenthesize tdesc assignements and indent them properly.
454
3d907528
PFC
4552018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
456
457 * ppc-linux-nat.c (fetch_register): Change if statement to else
458 if.
459 (store_register): Likewise.
460
500f01a0
PFC
4612018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
462
463 * rs6000-tdep.c: Remove reggroups.h include.
464 (rs6000_pseudo_register_reggroup_p): Remove.
465 (rs6000_gdbarch_init): Remove call to
466 set_tdesc_pseudo_register_reggroup_p.
467
7ed29001
PFC
4682018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
469
470 * reggroups.c (default_register_reggroup_p): Return true for
471 decfloat registers and float_reggroup.
472
5c849b22
PFC
4732018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
474
475 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
476 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
477 ppc_linux_collect_vrregset by regcache_collect_regset.
478
afde3032
PFC
4792018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
480
481 * linux-tdep.c (linux_collect_regset_section_cb): Use
482 std::vector<gdb_byte> instead of char * and malloc for buf.
483 Remove xfree.
484
b9718991
SM
4852018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
486
487 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
488 symtab_start instead of always using language_unknown.
489
0b0eff8b
AB
4902018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
491
492 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
493 READ_P parameter, catch and ignore register access errors from
494 either the old or new MISA location.
495 (riscv_has_feature): Update call to riscv_read_misa_reg.
496
b352ceb6
AB
4972018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
498
499 * python/py-function.c (convert_values_to_python): Return
500 gdbpy_ref<>. Add header comment.
501 (fnpy_call): Adjust.
502
50db9ef4
AB
5032018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
504
505 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
506 (cmdpy_completer_handle_brkchars): Adjust.
507 (cmdpy_completer): Adjust.
508
ee67fd7f
AB
5092018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
512 Pass correct regnum to raw_supply_zeroed.
513
bea556ab
HAQ
5142018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
515
516 * regcache.c (cooked_read_test): Add CSKY to the list of
517 architectures with a save_reggroup
518
35ed81d4
SM
5192018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
520
521 PR gdb/23368
522 * infrun.c (follow_exec): In the follow_exec_mode_new case,
523 transfer terminal state from old new new inferior.
524 * terminal.h (swap_terminal_info): New function.
525 * inflow.c (swap_terminal_info): New function.
526
79b8d3b0
TT
5272018-10-23 Tom Tromey <tom@tromey.com>
528
529 * record-btrace.c (get_thread_current_frame_id): Rename from
530 get_thread_current_frame. Return a frame_id.
531 (record_btrace_start_replaying): Update.
532
420ecd9c
AB
5332018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
534
535 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
536 for CSRs.
537
5a77b1b4
JB
5382018-10-23 Joel Brobecker <brobecker@adacore.com>
539
540 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
541 have_nonsteppable_watchpoint attribute to 1.
542
0dbfcfff
AB
5432018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
546 register names.
547 (struct register_alias): Rename to...
548 (struct riscv_register_alias): ...this, and update comment.
549 (riscv_register_aliases): Update type, and alias names. Remove
550 CSR names from this list.
551 (riscv_register_name): Use riscv_gdb_reg_names for int and float
552 register names. Add an extra assertion.
553 (riscv_is_regnum_a_named_csr): New function.
554 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
555
270b9329
JW
5562018-10-22 Jim Wilson <jimw@sifive.com>
557
3399f1b3
JW
558 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
559 FP reg smaller than FP reg size, and fill with -1 instead of 0.
560
270b9329
JW
561 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
562 (riscv_register_type): Use them.
563 (riscv_print_one_register_info): Handle union of floats same as float.
564 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
565 riscv_fpreg_q_type fields.
566
f6efe3f8
SM
5672018-10-21 Simon Marchi <simon.marchi@ericsson.com>
568
569 * gdbarch.sh (gdbarch_num_cooked_regs): New.
570 * gdbarch.h: Re-generate.
571 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
572 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
573 * eval.c (evaluate_subexp_standard): Likewise.
574 * findvar.c (value_of_register): Likewise.
575 (value_of_register_lazy): Likewise.
576 (address_from_register): Likewise.
577 * frame.c (get_frame_register_bytes): Likewise.
578 * gdbarch-selftests.c (register_to_value_test): Likewise.
579 * h8300-tdep.c (h8300_register_type): Likewise.
580 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
581 (i386_svr4_reg_to_regnum): Likewise.
582 * infcmd.c (default_print_registers_info): Likewise.
583 (registers_info): Likewise.
584 (print_vector_info): Likewise.
585 (default_print_float_info): Likewise.
586 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
587 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
588 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
589 (mi_cmd_data_list_changed_registers): Likewise.
590 (mi_cmd_data_list_register_values): Likewise.
591 (mi_cmd_data_write_register_values): Likewise.
592 (mi_cmd_trace_frame_collected): Likewise.
593 * mips-tdep.c (print_gp_register_row): Likewise.
594 (mips_print_registers_info): Likewise.
595 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
596 * regcache.c (init_regcache_descr): Likewise.
597 (register_size): Likewise.
598 (register_dump::dump): Likewise.
599 (cooked_read_test): Likewise.
600 (cooked_write_test): Likewise.
601 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
602 (rs6000_gdbarch_init): Likewise.
603 * stabsread.c (stab_reg_to_regnum): Likewise.
604 * stack.c (info_frame_command): Likewise.
605 * target-descriptions.c (tdesc_register_name): Likewise.
606 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
607 * tui/tui-regs.c (tui_show_register_group): Likewise.
608 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
609 (user_reg_map_regnum_to_name): Likewise.
610 (value_of_user_reg): Likewise.
611 (maintenance_print_user_registers): Likewise.
612 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
613 (xtensa_register_name): Likewise.
614 (xtensa_register_type): Likewise.
615 (xtensa_reg_to_regnum): Likewise.
616 (xtensa_pseudo_register_read): Likewise.
617 (xtensa_pseudo_register_write): Likewise.
618
925047fe
SM
6192018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
620
621 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
622 correctly-sized buffer with raw_read.
623 (amd64_pseudo_register_write): Use correctly-sized buffer for
624 raw_read/raw_write.
625
4051d2d6
PW
6262018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
627
628 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
629 in add_prefix_cmd of set print type.
630
7806cea7
TT
6312018-10-19 Tom Tromey <tom@tromey.com>
632
633 PR tui/18388:
634 * NEWS: Mention tabset deprecation.
635 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
636 (update_tab_width): New function.
637 (tui_set_tab_width, tui_show_tab_width): New functions.
638 (tui_set_tab_width_command): Use update_tab_width.
639 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
640 Add new "set tui tab-width" command.
641 * tui/tui-source.c (tui_set_source_content): Update.
642 * tui/tui-disasm.c (tui_set_disassem_content): Update.
643 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
644 Don't declare.
645 (tui_tab_width): Declare.
646 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
647 (tui_set_default_tab_len): Remove.
648
84371624
TT
6492018-10-19 Tom Tromey <tom@tromey.com>
650
651 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
652 (key_is_backspace, tui_getc): Don't declare.
653 * tui/tui-io.c (key_is_start_sequence): Now static.
654 (key_is_end_sequence, key_is_backspace): Remove.
655 (tui_getc): Now static.
656
22ad8107
TT
6572018-10-19 Tom Tromey <tom@tromey.com>
658
659 * symfile.c (reread_symbols): Clear "static_links".
660
74b3c713
AH
6612018-10-19 Alan Hayward <alan.hayward@arm.com>
662
663 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
664 define.
665 (aarch64_linux_sigframe_init): Extra boundary checks.
666
0667c506
AA
6672018-10-19 Andreas Arnez <arnez@linux.ibm.com>
668
669 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
670 the possibly non-existent tdesc type 'vec128', but the type of raw
671 register v16 instead.
672
ba543ca5
GB
6732018-10-19 Gary Benson <gbenson@redhat.com>
674
675 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
676
94c18618
SDJ
6772018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
678
679 PR cli/23785
680 * cli/cli-dump.c (restore_binary_file): Check if "file" is
681 NULL.
682
89eb3c54
PK
6832018-10-17 Paul Koning <paul_koning@dell.com>
684
685 * charset.c (convert_between_encodings): Fix unsigned overflow.
686
6f3b1098
JB
6872018-10-17 John Baldwin <jhb@FreeBSD.org>
688
689 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
690 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
691 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
692 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
693 New functions.
694 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
695 and fbsd_info_proc_mappings_header.
696 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
697 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
698 New.
699
d500b4f2
JB
7002018-10-17 Joel Brobecker <brobecker@adacore.com>
701
702 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
703 Solaris Maintainer.
704
63a33118
TT
7052018-10-15 Tom Tromey <tom@tromey.com>
706
707 * tui/tui.c (strcat_to_buf): Remove casts.
708 * tui/tui-winsource.c (tui_show_source_line)
709 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
710 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
711 * tui/tui-windata.c (tui_first_data_item_displayed)
712 (tui_delete_data_content_windows, tui_erase_data_content)
713 (tui_display_all_data, tui_display_data_from)
714 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
715 * tui/tui-win.c (tui_set_win_height)
716 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
717 casts.
718 * tui/tui-win.c (tui_resize_all): Remove casts.
719 (tui_scroll_backward_command, tui_set_focus)
720 (tui_set_tab_width_command): Likewise.
721 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
722 * tui/tui-regs.c (tui_show_register_group): Remove cast.
723 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
724 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
725 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
726 Remove casts.
727
933e62b1
SM
7282018-10-15 Simon Marchi <simon.marchi@ericsson.com>
729
730 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
731 AArch64/ARM maintainer.
732
fbe61a36
GB
7332018-10-11 Gary Benson <gbenson@redhat.com>
734
735 * interps.h (interp::m_name): Make private and mutable.
736 * interps.c (interp::~interp): Free m_name.
737
8ecfd7bd
SDJ
7382018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
739 Simon Marchi <simark@simark.ca>
740
741 * README (`configure' options): Add documentation for new
742 "--enable-unit-tests" option.
743 * acinclude.m4: Include "selftest.m4".
744 * configure: Regenerate.
745 * configure.ac: Use "GDB_AC_SELFTEST".
746 * maint.c (maintenance_selftest): Update message informing
747 that selftests have been disabled.
748 (maintenance_info_selftests): Likewise.
749 * selftest.m4: New file.
750
33b031ce
GB
7512018-10-10 Gary Benson <gbenson@redhat.com>
752
753 * remote.c (remote_target::remote_send_printf): Add
754 missing va_end found by Coverity.
755
2cb2ba9a
MM
7562018-10-10 Markus Metzger <markus.t.metzger@intel.com>
757
758 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
759
eff98030
TT
7602018-10-09 Tom Tromey <tom@tromey.com>
761
762 * configure: Rebuild.
763 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
764 * NEWS: Update --enable-ubsan documentation.
765
04fd5eed
GB
7662018-10-09 Gary Benson <gbenson@redhat.com>
767
768 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
769 found by Coverity.
770
a0c3048e
TT
7712018-10-08 Tom Tromey <tom@tromey.com>
772
773 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
774 variable.
775 (riscv_fbsd_init_abi): Likewise.
776
a51bb70c
WP
7772018-10-08 Weimin Pan <weimin.pan@oracle.com>
778 * valops.c (value_struct_elt_for_reference): Rename local variable
779 to work around the shadowing a previous local warning.
780
74792ff7
JB
7812018-10-08 John Baldwin <jhb@FreeBSD.org>
782
783 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
784 * NEWS: Mention new FreeBSD/riscv native configuration.
785 * configure.host: Add riscv*-*-freebsd*.
786 * configure.nat: Likewise.
787 * riscv-fbsd-nat.c: New file.
788
ed65e20b
JB
7892018-10-08 John Baldwin <jhb@FreeBSD.org>
790
791 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
792 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
793 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
794 * NEWS: Mention new FreeBSD/riscv target.
795 * configure.tgt: Add riscv*-*-freebsd*.
796 * riscv-fbsd-tdep.c: New file.
797 * riscv-fbsd-tdep.h: New file.
798
498f7407
JB
7992018-10-08 John Baldwin <jhb@FreeBSD.org>
800
801 * regcache.h (struct regcache_map_entry): Note that this type can
802 be used with traditional frame caches.
803 * trad-frame.c (trad_frame_set_reg_regmap): New.
804 * trad-frame.h (trad_frame_set_reg_regmap): New.
805
9f6b697b
WP
8062018-10-08 Weimin Pan <weimin.pan@oracle.com>
807
808 PR c++/16841
809 * valops.c (get_virtual_base_offset): New function.
810 (value_struct_elt_for_reference): Use it to get virtual base offset
811 and add it in calculating class member address.
812
c258c396
JD
8132018-10-08 John Darrington <john@darrington.wattle.id.au>
814
815 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
816 (check_producer): Check if the producer is codewarrior.
817 (producer_is_codewarrior): New function.
818 (lnp_state_machine::record_line): Ignore is_stmt flag for records
819 produced by codewarrior.
820 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
821
add5ded5
TT
8222018-10-06 Tom Tromey <tom@tromey.com>
823
824 PR python/19399:
825 * python/py-inferior.c: Add "architecture" entry.
826 (infpy_architecture): New function.
827
51e78fc5
TT
8282018-10-06 Tom Tromey <tom@tromey.com>
829
830 PR python/21765:
831 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
832 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
833 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
834 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
835
a8a5dbca
TT
8362018-10-06 Tom Tromey <tom@tromey.com>
837
838 PR build/17077:
839 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
840 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
841 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
842 #include.
843
2a8be203
TT
8442018-10-06 Tom Tromey <tom@tromey.com>
845
846 * python/py-breakpoint.c (bppy_get_location): Handle a
847 bp_breakpoint without a location.
848
2fb009bb
TT
8492018-10-06 Tom Tromey <tom@tromey.com>
850
851 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
852 (_RegEx): Reformat help text.
853 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
854 (AnyCallerIs, AnyCallerMatches): Reformat help text.
855 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
856 text.
857 * python/lib/gdb/command/xmethods.py (InfoXMethod)
858 (EnableXMethod, DisableXMethod): Remove help indentation.
859 Capitalize meta-syntactic variables.
860 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
861 (EnableUnwinder, DisableUnwinder): Remove help indentation.
862 Capitalize meta-syntactic variables.
863 * python/lib/gdb/command/explore.py (ExploreCommand)
864 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
865 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
866 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
867 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
868 Remove help indentation.
869 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
870 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
871 (DisableFrameFilter, SetFrameFilterPriority)
872 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
873
7a956928
TT
8742018-10-06 Tom Tromey <tom@tromey.com>
875
876 PR tui/28819:
877 * tui/tui-io.c (gdb_wgetch): New function.
878 (tui_mld_getc, tui_getc): Use it.
879
f8740dc5
TT
8802018-10-05 Tom Tromey <tom@tromey.com>
881
882 * sol-thread.c (sol_thread_target::wait): Rename inner
883 "save_ptid".
884
96643e35
TT
8852018-10-04 Tom Tromey <tom@tromey.com>
886
887 * configure: Rebuild.
888 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
889
d951f98b
TT
8902018-10-04 Tom Tromey <tom@tromey.com>
891
892 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
893 declaration of "block".
894
b8c88847
TT
8952018-10-04 Tom Tromey <tom@tromey.com>
896
897 * common/filestuff.c (fdwalk): Remove inner declaration of
898 "result".
899
ef789dc4
TT
9002018-10-04 Tom Tromey <tom@tromey.com>
901
902 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
903 "structs_addr" and hoist declaration.
904
3fba72f7
TT
9052018-10-04 Tom Tromey <tom@tromey.com>
906
907 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
908 variable "size".
909
795afcbb
TT
9102018-10-04 Tom Tromey <tom@tromey.com>
911
912 * mdebugread.c (parse_partial_symbols): Use std::string.
913
b926417a
TT
9142018-10-04 Tom Tromey <tom@tromey.com>
915
916 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
917 * p-valprint.c (pascal_val_print): Split inner "i" variable.
918 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
919 header.
920 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
921 more inner scope.
922 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
923 * varobj.c (varobj_update): Rename inner "newobj",
924 "type_changed".
925 * valprint.c (generic_emit_char): Rename inner "buf".
926 * valops.c (find_overload_match): Rename inner "temp".
927 (value_struct_elt_for_reference): Declare "v" in more inner
928 scope.
929 * v850-tdep.c (v850_push_dummy_call): Rename "len".
930 * unittests/array-view-selftests.c (run_tests): Rename inner
931 "vec".
932 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
933 header.
934 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
935 "tsv" in more inner scope.
936 (print_one_static_tracepoint_marker): Rename inner
937 "tuple_emitter".
938 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
939 (tic6x_push_dummy_call): Don't redeclare "addr".
940 * target-float.c: Declare "dto" lower.
941 * symtab.c (lookup_local_symbol): Rename inner "sym".
942 (find_pc_sect_line): Rename inner "pc".
943 * stack.c (print_frame): Don't redeclare "gdbarch".
944 (return_command): Rename inner "gdbarch".
945 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
946 "sp".
947 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
948 header.
949 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
950 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
951 scope.
952 * remote.c (remote_target::update_thread_list): Don't redeclare
953 "tp".
954 (remote_target::process_initial_stop_replies): Rename inner
955 "thread".
956 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
957 (remote_target::wait_as): Don't redeclare "stop_reply".
958 (remote_target::get_thread_local_address): Rename inner
959 "result".
960 (remote_target::get_tib_address): Likewise.
961
962 * regcache.c (cooked_read_test): Rename "regnum".
963 * record-btrace.c (cmd_record_btrace_start): Rename inner
964 "exception".
965 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
966 loop header.
967 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
968 header.
969 (ppu2spu_sniffer): Rename inner "buf".
970 * parse.c (operator_check_standard): Rename inner "type",
971 "objfile".
972 * p-valprint.c (pascal_val_print): Introduce new scope for
973 "low_bound", "high_bound".
974 * p-exp.y (yylex): Declare "i" in loop header.
975 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
976 Lower declaration of "s".
977 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
978 header.
979 (nios2_push_dummy_call): Rename "len".
980 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
981 "buf".
982 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
983 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
984 (linux_xfer_osdata_modules): Likewise.
985 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
986 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
987 (mips_o64_push_dummy_call): Likewise.
988 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
989 "op".
990 * mi/mi-main.c (list_available_thread_groups): Rename inner
991 "tuple_emitter".
992 (mi_cmd_data_read_memory): Rename inner "opts".
993 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
994 "tuple_emitter".
995 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
996 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
997 more inner scope.
998 (parse_partial_symbols): Rename inner "pst", "p", "name"
999 * main.c (captured_main_1): Rename inner "i"s.
1000 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1001 "oso2".
1002 * linux-tdep.c (linux_info_proc): Rename inner "filename".
1003 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1004 * infrun.c (handle_no_resumed): Don't redeclare "thread".
1005 (handle_signal_stop): Rename inner "gdbarch".
1006 (handle_command): Declare "signum" in loop header.
1007 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1008 "status".
1009 (examine_prologue): Rename inner "sol" and "sof".
1010 (ia64_extract_return_value): Rename inner "val". Declare another
1011 "val" in a more inner scope.
1012 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1013 inner scope.
1014 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1015 "except".
1016 * findvar.c (default_read_var_value): Don't redeclare "addr".
1017 * f-exp.y (yylex): Declare "i" in loop header.
1018 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1019 Rename inner "type", "expect_type".
1020 (evaluate_subexp_for_sizeof): Rename inner "pc".
1021 * elfread.c (elf_symfile_read): Rename inner "abfd".
1022 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1023 "bytes_read".
1024 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1025 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1026 (dwarf_decode_line_header): Rename inner "lh".
1027 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1028 "offset". Declare "i" in loop header.
1029 (disassemble_dwarf_expression): Rename inner "addr_size".
1030 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1031 inner "result".
1032 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1033 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1034 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1035 "inner_list_emitter".
1036 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1037 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1038 declaration in a block.
1039 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1040 * cp-valprint.c (cp_print_value_fields): Don't redeclare
1041 "obstack_final_size".
1042 * cp-support.c (inspect_type): Declare "i" in loop header.
1043 * compile/compile.c (compile_instance::insert_symbol_error):
1044 Rename inner "e".
1045 * common/agent.c (agent_run_command): Remove inner "ret"
1046 declaration.
1047 * coffread.c (coff_symfile_read): Rename inner "name".
1048 (coff_symfile_read): Rename inner "abfd".
1049 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1050 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1051 "high".
1052 * c-exp.y (lex_one_token): Move "len" declaration lower.
1053 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1054 "gdbarch".
1055 (create_exception_master_breakpoint): Likewise. Don't redeclare
1056 "b".
1057 (watch_command_1): Declare "mark" later.
1058 (clear_command): Don't shadow "a" or "b".
1059 (delete_command): Rename inner "b".
1060 (delete_trace_command): Likewise.
1061 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
1062 "op".
1063 (arm_gdbarch_init): Remove inner "e_flags".
1064 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
1065 "offset" in inner blocks.
1066
1f88d0c8
SM
10672018-10-04 Simon Marchi <simon.marchi@ericsson.com>
1068
1069 * dwarf-index-write.c (file_write): Don't write if the vector is
1070 empty.
1071
5c4481cc
TV
10722018-10-05 Tom de Vries <tdevries@suse.de>
1073
1074 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
1075 PyArg_ParseTuple call.
1076
96b1ad86
TV
10772018-10-05 Tom de Vries <tdevries@suse.de>
1078
1079 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
1080 PyArg_ParseTuple call.
1081
d2f7dcb2
JB
10822018-10-04 Joel Brobecker <brobecker@adacore.com>
1083
1084 * psymtab.c (recursively_search_psymtabs): Reformat parameters
1085 to avoid exceeding 80 characters per line limit.
1086
5ca8c39f
TT
10872018-10-04 Tom Tromey <tom@tromey.com>
1088
1089 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1090 (reread_symbols): Update.
1091 * complaints.h (clear_complaints): Remove argument.
1092 * complaints.c (enum complaint_series): Remove.
1093 (series): Remove global.
1094 (complaint_internal): Update.
1095 (clear_complaints): Remove argument.
1096
e79497a1
TT
10972018-10-04 Tom Tromey <tom@tromey.com>
1098
1099 * symfile.c (symbol_file_add_with_addrs): Do not print "no
1100 debugging symbols" message if there is a separate debug objfile.
1101
3453e7e4
TT
11022018-10-04 Tom Tromey <tom@tromey.com>
1103
1104 PR cli/19551:
1105 * symfile.c (symbol_file_add_with_addrs): Update output.
1106 * psymtab.c (require_partial_symbols): Update output.
1107
6afcf761
TT
11082018-10-04 Tom Tromey <tom@tromey.com>
1109
1110 PR cli/22234:
1111 * complaints.c: Emit \n.
1112
22068491
TT
11132018-10-04 Tom Tromey <tom@tromey.com>
1114
1115 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
1116 (separate_debug_file_exists, find_separate_debug_file)
1117 (add_symbol_file_command, reread_symbols, allocate_symtab)
1118 (allocate_compunit_symtab): Use filtered printing, not
1119 unfiltered.
1120 * psymtab.c (require_partial_symbols, dump_psymtab)
1121 (allocate_psymtab): Use filtered printing, not unfiltered.
1122
9fdd7193
TT
11232018-10-04 Tom Tromey <tom@tromey.com>
1124
1125 * complaints.c (complaint_internal): Correctly check complaint
1126 count.
1127
3f2cf4dc
TT
11282018-10-04 Tom Tromey <tom@tromey.com>
1129
1130 * complaints.h (struct complaints): Remove declaration.
1131 * complaints.c (clear_complaints): Remove an unused variable.
1132
4f9bdf7f
RO
11332018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1134
1135 * MAINTAINERS (Write After Approval): Add self.
1136
875e5398
TT
11372018-10-03 Tom Tromey <tom@tromey.com>
1138
1139 * guile/scm-value.c (gdbscm_value_to_string): Initialize
1140 "buffer_contents".
1141 * coffread.c (coff_symtab_read): Initialize "newobj".
1142
8634679f
SM
11432018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
1144
1145 * dwarf2read.c (read_func_scope): Remove struct keyword in
1146 range-based for.
1147
f35d5ade
TT
11482018-10-03 Tom Tromey <tom@tromey.com>
1149
1150 * README: Mention --enable-ubsan.
1151 * NEWS: Mention --enable-ubsan.
1152 * acinclude.m4: Include sanitize.m4.
1153 * configure: Rebuild.
1154 * configure.ac: Call AM_GDB_UBSAN.
1155 * sanitize.m4: New file.
1156
1dffa580
TT
11572018-10-03 Tom Tromey <tom@tromey.com>
1158
1159 * expression.h (enum exp_opcode): Use uint8_t as base type.
1160 * expprint.c (op_name): Handle invalid opcodes.
1161
5e70ee09
TT
11622018-10-03 Tom Tromey <tom@tromey.com>
1163
1164 * parse.c (prefixify_expression): Add assert.
1165 (parse_exp_in_context_1): Throw exception if the expression is
1166 empty.
1167
4dd1b460
TT
11682018-10-03 Tom Tromey <tom@tromey.com>
1169
1170 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1171
20562150
TT
11722018-10-03 Tom Tromey <tom@tromey.com>
1173
1174 * c-exp.y (parse_number): Work in unsigned. Remove casts.
1175
d359392f
TT
11762018-10-03 Tom Tromey <tom@tromey.com>
1177
1178 * dwarf2read.c (read_subrange_type): Make "negative_mask"
1179 unsigned.
1180
0101665f
TT
11812018-10-03 Tom Tromey <tom@tromey.com>
1182
1183 * findvar.c (extract_integer): Do work in an unsigned type.
1184
ad69edbb
TT
11852018-10-03 Tom Tromey <tom@tromey.com>
1186
1187 * common/enum-flags.h (enum_flags::operator~): Add static assert.
1188 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1189 base type.
1190 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1191 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1192 type.
1193 * c-lang.h (enum c_string_type_values): Use unsigned as base
1194 type.
1195 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1196
780942fc
TT
11972018-10-03 Tom Tromey <tom@tromey.com>
1198
1199 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1200 <~dwarf2_frame_state_reg_info>: Update.
1201 <dwarf2_frame_state_reg_info>: Update.
1202 <alloc_regs>: Add assertion. Update.
1203 <reg>: Now a std::vector.
1204 <num_regs>: Remove.
1205 <swap>: Update.
1206 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1207 (execute_cfa_program_test, dwarf2_frame_cache): Update.
1208
10657c04
TT
12092018-10-03 Tom Tromey <tom@tromey.com>
1210
1211 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1212
34c0fc00
PW
12132018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1214
1215 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1216
2398abf8
TT
12172018-10-02 Tom Tromey <tom@tromey.com>
1218
1219 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1220
c1168a2f
JD
12212018-10-02 John Darrington <john@darrington.wattle.id.au>
1222
1223 * NEWS: Mention changed commands.
1224 * ser-uds.c: New file.
1225 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1226 * configure: Regenerate.
1227 * Makefile.in: Add new file.
1228 * serial.c (serial_open): Check if filename is a socket
1229 and lookup the appropriate interface accordingly.
1230
05c71722
AH
12312018-10-01 Alan Hayward <alan.hayward@arm.com>
1232
1233 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1234 define.
1235 (AARCH64_EXTRA_MAGIC): Likewise.
1236 (AARCH64_FPSIMD_MAGIC): Likewise.
1237 (AARCH64_SVE_MAGIC): Likewise.
1238 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1239 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1240 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1241 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1242 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1243 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1244 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1245 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1246 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1247 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1248 (read_aarch64_ctx): Add function.
1249 (aarch64_linux_sigframe_init): Detect FP registers.
1250
c74e7cb9
AH
12512018-10-01 Alan Hayward <alan.hayward@arm.com>
1252
1253 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
1254 (AARCH64_D0_REGNUM): Likewise.
1255 (AARCH64_S0_REGNUM): Likewise.
1256 (AARCH64_H0_REGNUM): Likewise.
1257 (AARCH64_B0_REGNUM): Likewise.
1258 (AARCH64_SVE_V0_REGNUM): Likewise.
1259 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1260 (AARCH64_D0_REGNUM): Likewise.
1261 (AARCH64_S0_REGNUM): Likewise.
1262 (AARCH64_H0_REGNUM): Likewise.
1263 (AARCH64_B0_REGNUM): Likewise.
1264 (AARCH64_SVE_V0_REGNUM): Likewise.
1265
12b164e9
GB
12662018-10-01 Gary Benson <gbenson@redhat.com>
1267
1268 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1269 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1270 prfpregset_t instead of gdb_prfpregset_t.
1271 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1272 * configure, config.in: Rebuild.
1273
7c619dbd
GB
12742018-10-01 Gary Benson <gbenson@redhat.com>
1275
1276 * common/gdb_proc_service.h: New file, factored out from...
1277 * gdb_proc_service.h: Moved common code to the above file.
1278 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
1279
358ffcf2
GB
12802018-10-01 Gary Benson <gbenson@redhat.com>
1281
1282 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
1283 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
1284
43b7e92b
GB
12852018-10-01 Gary Benson <gbenson@redhat.com>
1286
1287 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
1288 (AC_CHECK_HEADERS): Check for linux/elf.h.
1289 * configure, config.in: Rebuild.
1290 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
1291 doesn't define elf_fpregset_t.
1292
3795e814
GB
12932018-10-01 Gary Benson <gbenson@redhat.com>
1294
1295 * gdb_proc_service.h: Whitespace change.
1296
4176f14d
TT
12972018-10-01 Tom Tromey <tom@tromey.com>
1298
1299 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
1300 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
1301 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
1302
a95746f9
TT
13032018-10-01 Tom Tromey <tom@tromey.com>
1304
1305 * README: Minor change.
1306
dd203782
PA
13072018-09-30 Pedro Alves <palves@redhat.com>
1308
1309 * darwin-nat-info.c (darwin_debug_regions_recurse)
1310 (info_mach_exceptions_command): Remove unused local variables.
1311 * darwin-nat.c (darwin_decode_notify_message)
1312 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
1313 (darwin_stop_inferior, darwin_setup_exceptions)
1314 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
1315 (darwin_nat_target::attach, darwin_nat_target::detach)
1316 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
1317 local variables.
1318 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
1319 variables.
1320
c82a2e6f
TT
13212018-09-29 Tom Tromey <tom@tromey.com>
1322
1323 * README: Remove some leftover text.
1324
7f0bd420
TT
13252018-09-29 Tom Tromey <tom@tromey.com>
1326
1327 * PROBLEMS: Rewrite.
1328 * README: Update.
1329
f37bc8b1
JB
13302018-09-28 John Baldwin <jhb@FreeBSD.org>
1331
1332 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
1333 case with explicit breakpoint kind.
1334 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
1335 'additional_info' and related logic.
1336 (riscv_debug_breakpoints): New variable.
1337 (riscv_breakpoint_kind_from_pc): Use the length of the existing
1338 instruction to determine the breakpoint kind.
1339 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
1340 flag. Update description of 'set/show riscv
1341 use-compressed-breakpoints' flag.
1342
f67ffa6a
AB
13432018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
1344
1345 (NEWS): Mention changes to frame related commands.
1346 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
1347 (add_prefix_cmd_suppress_notification): New function.
1348 (add_com_suppress_notification): Call
1349 add_cmd_suppress_notification.
1350 * command.h (add_cmd_suppress_notification): Declare.
1351 (add_prefix_cmd_suppress_notification): Declare.
1352 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
1353 (parse_frame_specification): Moved from stack.c, with
1354 simplification to handle a single argument.
1355 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
1356 switch to the selected frame. Add a header comment.
1357 * stack.c: Remove 'safe-ctype.h' include.
1358 (find_frame_for_function): Add declaration.
1359 (find_frame_for_address): New function.
1360 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
1361 (frame_selection_by_function_completer): New function.
1362 (info_frame_command): Rename to...
1363 (info_frame_command_core): ...this, and update parameter types.
1364 (select_frame_command): Rename to...
1365 (select_frame_command_core): ...this, and update parameter types.
1366 (frame_command): Rename to...
1367 (frame_command_core): ...this, and update parameter types.
1368 (class frame_command_helper): New class to wrap implementations of
1369 frame related sub-commands.
1370 (frame_apply_cmd_list): New static global.
1371 (frame_cmd_list): Make static.
1372 (select_frame_cmd_list): New global for sub-commands.
1373 (info_frame_cmd_list): New global for sub-commands.
1374 (_initialize_stack): Register sub-commands for 'frame',
1375 'select-frame', and 'info frame'. Update 'frame apply' commands
1376 to use frame_apply_cmd_list. Move function local static
1377 frame_apply_list to file static frame_apply_cmd_list for
1378 consistency.
1379 * stack.h (select_frame_command): Delete declarationn.
1380 (select_frame_for_mi): Declare new function.
1381
d354055e
AB
13822018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
1383
1384 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
1385 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
1386 and NOP.
1387
85392414
SM
13882018-09-26 Simon Marchi <simon.marchi@ericsson.com>
1389
1390 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
1391
896ee098
TT
13922018-09-26 Tom Tromey <tom@tromey.com>
1393
1394 * valops.c (auto_abandon): Remove dead code.
1395
57dbb3af
TT
13962018-09-26 Tom Tromey <tom@tromey.com>
1397
1398 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
1399
b5a9bfbe
TT
14002018-09-24 Tom Tromey <tom@tromey.com>
1401
1402 * common/pathstuff.c (get_standard_cache_dir): Make
1403 "xdg_cache_home" and "home" const.
1404 * top.c (init_history): Make "tmpenv" const.
1405 * main.c (get_init_files): Make "homedir" const.
1406
ae778caf
TT
14072018-09-23 Tom Tromey <tom@tromey.com>
1408
1409 PR python/18852:
1410 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
1411
2b4ad2fe
TT
14122018-09-23 Tom Tromey <tom@tromey.com>
1413
1414 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
1415 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
1416 * python/python-internal.h (gdbpy_handle_exception): Declare.
1417 * python/py-utils.c (gdbpy_handle_exception): New function.
1418
fd3ba736
TT
14192018-09-23 Tom Tromey <tom@tromey.com>
1420
1421 PR python/17284:
1422 * python/py-type.c (typy_template_argument): Check for negative
1423 argument number.
1424
39a24317
TT
14252018-09-23 Tom Tromey <tom@tromey.com>
1426
1427 PR python/14062:
1428 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
1429
f5769a2c
TT
14302018-09-23 Tom Tromey <tom@tromey.com>
1431
1432 PR python/18170:
1433 * python/py-value.c (valpy_int): Allow conversion from pointer
1434 type.
1435
1c1e54f6
TT
14362018-09-23 Tom Tromey <tom@tromey.com>
1437
1438 PR python/20126:
1439 * python/py-value.c (valpy_int): Respect type sign.
1440
fb4fa946
TT
14412018-09-23 Tom Tromey <tom@tromey.com>
1442
1443 PR python/18352;
1444 * python/py-value.c (valpy_float): Allow conversions from int or
1445 char.
1446 (valpy_int, valpy_long): Allow conversions from float.
1447
65773341
TT
14482018-09-23 Tom Tromey <tom@tromey.com>
1449
1450 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
1451 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
1452
1db88d22
RO
14532018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1454
1455 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
1456 __sighndlr.
1457 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
1458
a44294f5
JT
14592018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
1460
1461 * windows-nat.c (windows_nat_target::wait): Remove a spurious
1462 target_terminal::ours().
1463
0c0a40e0
SM
14642018-09-23 Simon Marchi <simon.marchi@ericsson.com>
1465
1466 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
1467 of vl to ULONGEST.
1468
4daf1902
YS
14692018-09-21 Yacov Simhony <ysimhony@gmail.com>
1470
1471 * breakpoint.c (update_inserted_breakpoint_locations): Remove
1472 redundant condition.
1473
c475f569
RO
14742018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1475
1476 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
1477
1478 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
1479 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
1480 * sol-thread.c (ps_pdmodel): Don't guard definition.
1481
1482 * procfs.c: Fix formatting.
1483
1484 * procfs.c (sysset_t_alloc): Remove.
1485 (create_procinfo): Use XNEW instead of sysset_t_alloc.
1486 (procfs_debug_inferior): Likewise.
1487 (procfs_set_exec_trap): Likewise.
1488 (proc_set_traced_sysentry): Don't allocate argp dynamically.
1489 (proc_set_traced_sysexit): Likewise.
1490
1491 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
1492 (dead_procinfo): Likewise.
1493 (proc_warn): Likewise.
1494 (proc_error): Likewise.
1495 (proc_get_LDT_entry): Likewise.
1496 (do_attach): Likewise.
1497 (procfs_target::pid_to_str): Likewise.
1498 (iterate_over_mappings): Likewise.
1499
1500 * procfs.c (create_procinfo): Fix ARI warning.
1501 (proc_get_status): Likewise.
1502 (proc_stop_process): Likewise.
1503 (proc_run_process): Likewise.
1504 (proc_kill): Likewise.
1505 (proc_get_LDT_entry): Likewise.
1506 (procfs_find_LDT_entry): Likewise.
1507 (proc_update_threads): Likewise.
1508 (proc_iterate_over_threads): Likewise.
1509 (do_attach): Likewise.
1510 (procfs_xfer_memory): Likewise.
1511 (invalidate_cache): Likewise.
1512 (procfs_target::resume): Likewise.
1513 (procfs_init_inferior): Likewise.
1514 (procfs_set_exec_trap): Likewise.
1515 (procfs_target::thread_alive): Likewise.
1516 (procfs_target::pid_to_exec_file): Likewise.
1517 (iterate_over_mappings): Likewise.
1518 (procfs_target::make_corefile_notes): Likewise.
1519 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
1520
1521 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
1522 (procfs_find_LDT_entry): Likewise.
1523 * sol-thread.c (ps_lgetLDT): Likewise.
1524
4206c05e
RO
15252018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1526
1527 PR tdep/17903
1528 * procfs.c (procfs_target): Declare pid_to_exec_file.
1529 (procfs_target::pid_to_exec_file): New.
1530
3d282ac3
RO
15312018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1532
1533 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
1534 renaming.
1535 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
1536 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
1537
8c93fae6
RO
15382018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1539
1540 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
1541 (supply_fpregset, fill_fpregset): Move ...
1542 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
1543 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
1544 Remove references to ioctl-based procfs.
1545 Include <sys/reg.h>.
1546 Remove PR_MODEL_NATIVE guards.
1547 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
1548 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
1549
79b32f4a
XR
15502018-09-19 Xavier Roirand <roirand@adacore.com>
1551
1552 PR gdb/20981:
1553 * solib-darwin.c (darwin_get_dyld_bfd): New function.
1554 (darwin_solib_get_all_image_info_addr_at_init): Update call.
1555 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
1556
07147793
JB
15572018-09-19 John Baldwin <jhb@FreeBSD.org>
1558
1559 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
1560 (fbsd_print_sockaddr_in6): Likewise.
1561
23be8da7
RB
15622018-09-19 Richard Bunt <richard.bunt@arm.com>
1563 Chris January <chris.january@arm.com>
1564
1565 * eval.c (skip_undetermined_arglist): Skip argument list helper.
1566 (evaluate_subexp_standard): Return a dummy type when
1567 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
1568 OP_F77_UNDETERMINED_ARGLIST case.
1569 * expression.h (enum noside): Update comment.
1570
7307a73a
RO
15712018-09-19 George Vasick <george.vasick@oracle.com>
1572
1573 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
1574
13db92d3
RO
15752018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
1576 April Chin <april.chin@oracle.com>
1577 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1578
1579 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
1580 uint_t lwpid_t.
1581 (create_procinfo): Print pids in /proc without leading zeros.
1582
3d50f170
SL
15832018-09-18 Sandra Loosemore <sandra@codesourcery.com>
1584
1585 * nios2-tdep.c (nios2_gcc_target_options): New.
1586 (nios2_gdb_arch_init): Install new hook.
1587
b567ca63
SM
15882018-09-18 Simon Marchi <simon.marchi@ericsson.com>
1589
1590 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
1591 New file.
1592 * update-gnulib.sh: Apply patch.
1593 * configure: Re-generate.
1594
73f1bd76
JB
15952018-09-18 John Baldwin <jhb@FreeBSD.org>
1596
1597 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
1598 description. Make "info proc" command descriptions more
1599 consistent.
1600
8b113111
JB
16012018-09-18 John Baldwin <jhb@FreeBSD.org>
1602
1603 * NEWS: Mention 'info proc files' command.
1604
7e69672e
JB
16052018-09-18 John Baldwin <jhb@FreeBSD.org>
1606
1607 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
1608 descriptors for IP_FILES and IP_ALL.
1609
57c2a98a
JB
16102018-09-18 John Baldwin <jhb@FreeBSD.org>
1611
1612 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
1613 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
1614 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
1615 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
1616 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
1617 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
1618 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
1619 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
1620 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
1621 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
1622 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
1623 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
1624 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
1625 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
1626 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
1627 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
1628 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
1629 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1630 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1631 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1632 (struct fbsd_sockaddr_un): New types.
1633 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1634 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1635 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1636 (fbsd_core_info_proc_files): New functions.
1637 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1638 IP_ALL.
1639 * fbsd-tdep.h (fbsd_info_proc_files_header)
1640 (fbsd_info_proc_files_entry): New.
1641
e98ee8c4
JB
16422018-09-18 John Baldwin <jhb@FreeBSD.org>
1643
1644 * defs.h (enum info_proc_what) [IP_FILES]: New value.
1645 * infcmd.c (info_proc_cmd_files): New function.
1646 (_initialize_infcmd): Register 'info proc files' command.
1647
725e2999
JB
16482018-09-18 John Baldwin <jhb@FreeBSD.org>
1649
1650 * gnulib/aclocal-m4-deps.mk: Re-generate.
1651 * gnulib/aclocal.m4: Re-generate.
1652 * gnulib/config.in: Re-generate.
1653 * gnulib/configure: Re-generate.
1654 * gnulib/import/Makefile.am: Re-generate.
1655 * gnulib/import/Makefile.in: Re-generate.
1656 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1657 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1658 * gnulib/import/arpa_inet.in.h: New file.
1659 * gnulib/import/inet_ntop.c: New file.
1660 * gnulib/import/m4/arpa_inet_h.m4: New file.
1661 * gnulib/import/m4/inet_ntop.m4: New file.
1662 * gnulib/import/m4/netinet_in_h.m4: New file.
1663 * gnulib/import/m4/socklen.m4: New file.
1664 * gnulib/import/m4/sockpfaf.m4: New file.
1665 * gnulib/import/m4/stdalign.m4: New file.
1666 * gnulib/import/m4/sys_uio_h.m4: New file.
1667 * gnulib/import/netinet_in.in.h: New file.
1668 * gnulib/import/stdalign.in.h: New file.
1669 * gnulib/import/sys_socket.c: New file.
1670 * gnulib/import/sys_socket.in.h: New file.
1671 * gnulib/import/sys_uio.in.h: New file.
1672 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1673 module.
1674
2afffa7f
JB
16752018-09-18 John Baldwin <jhb@FreeBSD.org>
1676
1677 * gnulib/aclocal-m4-deps.mk: New file.
1678 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1679 deterministically.
1680
9f235e09
JB
16812018-09-18 John Baldwin <jhb@FreeBSD.org>
1682
1683 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1684 KVE_PATH.
1685
40f03055
TT
16862018-09-18 Tom Tromey <tom@tromey.com>
1687
1688 * compile/compile-object-load.c (struct
1689 link_hash_table_cleanup_data): Add constructor and destructor.
1690 Use DISABLE_COPY_AND_ASSIGN.
1691 (~link_hash_table_cleanup_data): Rename from
1692 link_hash_table_free. Now a destructor.
1693 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1694
c9e0a7e3
TT
16952018-09-18 Tom Tromey <tom@tromey.com>
1696
1697 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1698 * compile/compile-object-load.c (struct munmap_list): Move to
1699 header file.
1700 (munmap_list::add): Rename from munmap_list_add; rewrite.
1701 (munmap_list::~munmap_list): Rename from munmap_list_free.
1702 (munmap_listp_free_cleanup): Remove.
1703 (compile_object_load): Update.
1704 * compile/compile-object-load.h (struct munmap_list): Move from
1705 compile-object-load.c. Rewrite.
1706
3ff2c72e
AH
17072018-09-18 Alan Hayward <alan.hayward@arm.com>
1708
1709 * aarch64-tdep.c (pass_in_v): Use register size.
1710 (aarch64_extract_return_value): Likewise.
1711 (aarch64_store_return_value): Likewise.
1712
206c1947
RO
17132018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1714
1715 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1716 rlim_t.
1717
6eb5dbce
PW
17182018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1719
1720 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1721 Fix short help line.
1722
ae292b3a
TT
17232018-09-17 Tom Tromey <tom@tromey.com>
1724
1725 PR python/20445:
1726 * configure: Rebuild.
1727 * configure.ac: Conditionally use -DNDEBUG for Python.
1728
da658607
TT
17292018-09-17 Tom Tromey <tom@tromey.com>
1730
1731 * configure: Rebuild.
1732 * configure.ac: Use gmp as a library dependency when checking for
1733 mpfr.
1734
d35da542
PA
17352018-09-17 Pedro Alves <palves@redhat.com>
1736
1737 * python/py-inferior.c (find_inferior_object): Delete.
1738
461464f2
SM
17392018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1740
1741 * compile/compile-cplus-types.c
1742 (compile_cplus_instance::enter_scope): Don't use new_scope after
1743 std::move.
1744
e6cd1dc1
TT
17452018-09-17 Tom Tromey <tom@tromey.com>
1746
1747 * common/pathstuff.c (get_standard_cache_dir): Use
1748 ~/Library/Caches on macOS.
1749 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1750
8588b356
SM
17512018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1752
1753 PR python/23669
1754 * breakpoint.c (commands_cmd_element): New.
1755 (_initialize_breakpoint): Assign commands_cmd_element.
1756 * breakpoint.h (commands_cmd_element): New.
1757 * cli/cli-script.c (while_cmd_element, if_command,
1758 define_cmd_element): New.
1759 (command_name_equals): Remove.
1760 (process_next_line): Compare commands by pointer, not by name.
1761 (_initialize_cli_script): Assign the various cmd_list_element
1762 variables.
1763 * compile/compile.c (compile_cmd_element): New.
1764 (_initialize_compile): Assign compile_cmd_element.
1765 * compile/compile.h (compile_cmd_element): New.
1766 * guile/guile.c (guile_cmd_element): New.
1767 (install_gdb_commands): Assign guile_cmd_element.
1768 * guile/guile.h (guile_cmd_element): New.
1769 * python/python.c (python_cmd_element): New.
1770 (_initialize_python): Assign python_cmd_element.
1771 * python/python.h (python_cmd_element): New.
1772 * tracepoint.c (while_stepping_cmd_element): New.
1773 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1774 * tracepoint.h (while_stepping_cmd_element): New.
1775
cb524840
TT
17762018-09-17 Tom Tromey <tom@tromey.com>
1777
1778 * infrun.c (save_infcall_suspend_state): Return
1779 infcall_suspend_state_up.
1780 (save_infcall_control_state): Return infcall_control_state_up.
1781 * inferior.h (save_infcall_suspend_state)
1782 (save_infcall_control_state): Declare later. Return unique
1783 pointers.
1784
2d844eaf
TT
17852018-09-17 Tom Tromey <tom@tromey.com>
1786
1787 * infrun.c (struct stop_context): Declare constructor,
1788 destructor, "changed" method.
1789 (stop_context::stop_context): Rename from save_stop_context.
1790 (stop_context::~stop_context): Rename from
1791 release_stop_context_cleanup.
1792 (normal_stop): Update.
1793 (stop_context::changed): Rename from stop_context_changed. Return
1794 bool.
1795
c7c4d3fa
TT
17962018-09-17 Tom Tromey <tom@tromey.com>
1797
1798 * inferior.h (struct infcall_suspend_state_deleter): New.
1799 (infcall_suspend_state_up): New typedef.
1800 (struct infcall_control_state_deleter): New.
1801 (infcall_control_state_up): New typedef.
1802 (make_cleanup_restore_infcall_suspend_state)
1803 (make_cleanup_restore_infcall_control_state): Don't declare.
1804 * infcall.c (call_function_by_hand_dummy): Update.
1805 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1806 (make_cleanup_restore_infcall_suspend_state): Remove.
1807 (do_restore_infcall_control_state_cleanup)
1808 (make_cleanup_restore_infcall_control_state): Remove.
1809
ee841dd8
TT
18102018-09-17 Tom Tromey <tom@tromey.com>
1811
1812 * gdbthread.h (struct thread_control_state): Add initializer.
1813 (class thread_info) <control>: Remove initializer.
1814 * inferior.h (struct inferior_control_state): Add initializer.
1815 (class inferior) <control>: Remove initializer.
1816 (exit_inferior_1): Update.
1817 * infrun.c (struct infcall_control_state): Add constructors.
1818 (save_infcall_control_state): Use new.
1819 (restore_infcall_control_state, discard_infcall_control_state):
1820 Use delete.
1821
117f580a
TT
18222018-09-17 Tom Tromey <tom@tromey.com>
1823
1824 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1825 unique_ptr.
1826 <siginfo_data>: Now a unique_xmalloc_ptr.
1827 (save_infcall_suspend_state, restore_infcall_suspend_state)
1828 (discard_infcall_suspend_state)
1829 (get_infcall_suspend_state_regcache): Update.
1830
dd848631
TT
18312018-09-17 Tom Tromey <tom@tromey.com>
1832
1833 * gdbthread.h (struct thread_suspend_state): Add initializers.
1834 (class thread_info) <suspend>: Remove initializer.
1835 * infrun.c (struct infcall_suspend_state): Add initializers.
1836 (save_infcall_suspend_state): Use new.
1837 (discard_infcall_suspend_state): Use delete.
1838
1a338907
TT
18392018-09-16 Tom Tromey <tom@tromey.com>
1840
1841 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1842 Remove.
1843 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1844 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1845 (py_varobj_iter_new): Likewise.
1846 (py_varobj_get_iterator): Use gdbpy_ref.
1847
4a137fec
TT
18482018-09-16 Tom Tromey <tom@tromey.com>
1849
1850 * python/py-threadevent.c (py_get_event_thread): Simplify.
1851 * python/py-inferior.c (infpy_thread_from_thread_handle):
1852 Return immediately after calling thread_to_thread_object. Use
1853 Py_RETURN_NONE.
1854 (thread_to_thread_object): Set the exception on a NULL return.
1855
8ff03f0b
SM
18562018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1857
1858 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1859
94c8b725
TT
18602018-09-16 Tom Tromey <tom@tromey.com>
1861
1862 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1863 Remove.
1864
db1337cc
TT
18652018-09-16 Tom Tromey <tom@tromey.com>
1866
1867 * python/python-internal.h (thread_to_thread_object): Change
1868 return type.
1869 * python/py-inferior.c (thread_to_thread_object): Return a new
1870 reference.
1871 (infpy_thread_from_thread_handle): Update.
1872 * python/py-infthread.c (gdbpy_selected_thread): Update.
1873 * python/py-stopevent.c (create_stop_event_object): Update.
1874 * python/py-threadevent.c (py_get_event_thread): Return a new
1875 reference.
1876 (py_get_event_thread): Update.
1877 * python/py-event.h (py_get_event_thread): Change return type.
1878 * python/py-continueevent.c (create_continue_event_object):
1879 Update.
1880
0a9db5ad
TT
18812018-09-16 Tom Tromey <tom@tromey.com>
1882
1883 * python/py-progspace.c (pspy_get_objfiles): Update.
1884 * python/python-internal.h (objfile_to_objfile_object): Change
1885 return type.
1886 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1887 Update.
1888 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1889 Update.
1890 * python/python.c (gdbpy_get_current_objfile): Update.
1891 (gdbpy_objfiles): Update.
1892 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1893 Update.
1894 (objfile_to_objfile_object): Return a new reference.
1895 * python/py-symtab.c (stpy_get_objfile): Update.
1896 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1897 Update.
1898
3c7aa307
TT
18992018-09-16 Tom Tromey <tom@tromey.com>
1900
1901 * python/py-inferior.c (infpy_get_progspace): Update.
1902 * python/python-internal.h (pspace_to_pspace_object): Change
1903 return type.
1904 * python/py-newobjfileevent.c
1905 (create_clear_objfiles_event_object): Update.
1906 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1907 Update.
1908 * python/python.c (gdbpy_get_current_progspace): Update.
1909 (gdbpy_progspaces): Update.
1910 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1911 reference.
1912 * python/py-objfile.c (objfpy_get_progspace): Update.
1913 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1914 Update.
1915
8743a9cd
TT
19162018-09-16 Tom Tromey <tom@tromey.com>
1917
1918 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1919 (solib_name, block_for_pc, find_pc_line): New functions.
1920 (execute_unwinders): Update.
1921 * python/py-block.c (gdbpy_block_for_pc): Remove.
1922 * python/py-inferior.c (infpy_get_progspace): New function.
1923 (inferior_object_getset) <progspace>: Add.
1924 * python/py-progspace.c (pspy_objfiles): Rewrite.
1925 (pspy_solib_name, pspy_block_for_pc)
1926 (pspy_find_pc_line, pspy_is_valid): New functions.
1927 (progspace_object_methods): Add entries for solib_name,
1928 block_for_pc, find_pc_line, is_valid.
1929 * python/python-internal.h (gdbpy_block_for_pc)
1930 (build_objfiles_list): Don't declare.
1931 * python/python.c: Don't include solib.h.
1932 (gdbpy_solib_name, gdbpy_find_pc_line)
1933 (gdbpy_get_current_progspace, build_objfiles_list)
1934 (gdbpy_objfiles): Remove.
1935 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1936 solib_name, find_pc_line>: Remove entries.
1937
65e65158
TT
19382018-09-16 Tom Tromey <tom@tromey.com>
1939
1940 * top.c (new_ui_command): Use GNU style for metasyntactic
1941 variables.
1942 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1943 variables.
1944 * maint.c (maintenance_translate_address): Remove "<>" around
1945 text.
1946 * interps.c (interpreter_exec_cmd): Use GNU style for
1947 metasyntactic variables.
1948 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1949 metasyntactic variables.
1950 * tracepoint.c (tfind_range_command): Use GNU style for
1951 metasyntactic variables.
1952 (tfind_outside_command): Likewise.
1953 (_initialize_tracepoint): Likewise.
1954 * remote.c (extended_remote_target::create_inferior): Use GNU
1955 style for metasyntactic variables.
1956 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1957 metasyntactic variables.
1958 (adi_assign_command): Likewise.
1959
f4bab6ff
TT
19602018-09-16 Tom Tromey <tom@tromey.com>
1961
1962 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1963 metasyntactic variables. Print message if no disassembler options
1964 are available.
1965
cbaaa0ca
TT
19662018-09-15 Tom Tromey <tom@tromey.com>
1967
1968 * infcmd.c (get_inferior_args): Return const char *.
1969 * inferior.h (get_inferior_args): Return type now const.
1970 * linux-tdep.c (linux_fill_prpsinfo): Update.
1971 * procfs.c (procfs_target::make_corefile_notes): Update.
1972
a3a6aef4
TT
19732018-09-07 Tom Tromey <tom@tromey.com>
1974
1975 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1976 inside the TRY.
1977
f70e088f
SL
19782018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1979
1980 * nios2-tdep.c (nios2_type_align): New.
1981 (nios2_gdb_arch_init): Install type_align hook.
1982
2fabdf33
AB
19832018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1986 type that is neither object file owned, nor gdbarch owned.
1987 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1988 gdbarch is non-NULL.
1989 (alloc_type_instance): Allocate non-objfile owned types on the
1990 gdbarch obstack.
1991 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1992 using TYPE_ALLOC to ensure memory is allocated on the correct
1993 obstack.
1994 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1995 obstack, or the gdbarch obstack.
1996 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1997
b4b08fa2
TT
19982018-09-14 Tom Tromey <tom@tromey.com>
1999
2000 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2001 block.
2002
87b240d4
TT
20032018-09-14 Tom Tromey <tom@tromey.com>
2004
2005 * nat/fork-inferior.c (get_startup_shell): Remove "static".
2006
7d221512
TT
20072018-09-13 Tom Tromey <tom@tromey.com>
2008
2009 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2010 static.
2011
97e67fc6
TT
20122018-09-13 Tom Tromey <tom@tromey.com>
2013
2014 * exec.c (try_open_exec_file): Use std::string.
2015
803c08d0
TT
20162018-09-13 Tom Tromey <tom@tromey.com>
2017
2018 * utils.h (gdb_bfd_errmsg): Return std::string.
2019 * exec.c (exec_file_attach): Update.
2020 * compile/compile-object-load.c (compile_object_load): Update.
2021 * utils.c (gdb_bfd_errmsg): Return std::string.
2022
5b4cbbe3
TT
20232018-09-13 Tom Tromey <tom@tromey.com>
2024
2025 * procfs.c (struct procinfo_deleter): New.
2026 (procinfo_up): New typedef.
2027 (do_destroy_procinfo_cleanup): Remove.
2028 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
2029
db68fbe2
TT
20302018-09-13 Tom Tromey <tom@tromey.com>
2031
2032 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2033
0ae1a321
SM
20342018-09-13 Simon Marchi <simon.marchi@ericsson.com>
20352018-09-13 Tom Tromey <tom@tromey.com>
2036
2037 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2038 (pspy_get_objfiles): New function.
2039 (progspace_object_methods): New.
2040 (pspace_object_type): Add tp_methods callback.
2041 * python/python-internal.h (build_objfiles_list): New
2042 declaration.
2043 * python/python.c (build_objfiles_list): New function.
2044 (gdbpy_objfiles): Implement using build_objfiles_list.
2045 * NEWS: Mention the Progspace.objfiles method.
2046
a40bf0c2
SM
20472018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2048
2049 * python/py-inferior.c (infpy_get_progspace): New function.
2050 (inferior_object_getset): Add progspace property.
2051 * NEWS: Mention the new property.
2052
4a3fe98f
TT
20532018-09-13 Tom Tromey <tom@tromey.com>
2054
2055 PR rust/23650:
2056 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
2057
098b2108
TT
20582018-09-13 Tom Tromey <tom@tromey.com>
2059
2060 PR rust/23626:
2061 * rust-lang.c (rust_enum_variant): Now static.
2062 (rust_empty_enum_p): New function.
2063 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
2064 Handle empty enum.
2065
1256af7d
SM
20662018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2067
2068 * python/py-inferior.c (infpy_repr): New.
2069 (inferior_object_type): Register infpy_repr.
2070 * python/py-objfile.c (objfpy_repr): New.
2071 (objfile_object_type): Register objfpy_repr.
2072
f117a62c
JB
20732018-09-12 John Baldwin <jhb@FreeBSD.org>
2074
2075 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
2076
88f22c34
JB
20772018-09-12 John Baldwin <jhb@FreeBSD.org>
2078
2079 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
2080 typo.
2081
3c025cfe
SDJ
20822018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
2083
2084 * common/common-utils.c: Don't include '<sys/stat.h>'.
2085 (is_regular_file): Move to...
2086 * common/filestuff.c (is_regular_file): ... here.
2087 * common/common-utils.h (is_regular_file): Move to...
2088 * common/filestuff.h (is_regular_file): ... here.
2089
3e68067f
SM
20902018-09-12 Simon Marchi <simon.marchi@ericsson.com>
2091
2092 * skip.c (debug_skip): New variable.
2093 (skiplist_entry::do_skip_file_p): Add debug output.
2094 (skiplist_entry::do_skip_gfile_p): Likewise.
2095 (skiplist_entry::skip_function_p): Likewise.
2096 (_initialize_step_skip): Create debug command.
2097 * NEWS: Mention set/show debug skip.
2098
d6be54ef
XR
20992018-09-11 Xavier Roirand <roirand@adacore.com>
2100
2101 * darwin-nat.c (should_disable_startup_with_shell):
2102 New function.
2103 (darwin_nat_target::create_inferior): Add call.
2104
de1ec836
XR
21052018-09-11 Xavier Roirand <roirand@adacore.com>
2106
2107 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
2108 inf_port, msg_state>: Initialize.
2109 (struct darwin_thread_info) <signaled, single_step>: Change
2110 type and initialize.
2111 (struct darwin_thread_info) <event>: Initialize.
2112
e2fc52e7
SDJ
21132018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2114
2115 PR gdb/23555
2116 PR gdb/23558
2117 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
2118 guesses.
2119
5e8754f9
SDJ
21202018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2121
2122 Revert:
2123 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2124
2125 PR gdb/23555
2126 PR gdb/23558
2127 * gnulib/aclocal.m4: Regenerate.
2128 * gnulib/config.in: Regenerate.
2129 * gnulib/configure: Regenerate.
2130 * gnulib/import/Makefile.am: Update.
2131 * gnulib/import/Makefile.in: Update.
2132 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2133 * gnulib/import/_Noreturn.h: ... this.
2134 * gnulib/import/alloca.in.h: Update.
2135 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2136 * gnulib/import/arg-nonnull.h: ... this.
2137 * gnulib/import/assure.h: Update.
2138 * gnulib/import/at-func.c: Update.
2139 * gnulib/import/basename-lgpl.c: Update.
2140 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2141 * gnulib/import/c++defs.h: ... this.
2142 * gnulib/import/canonicalize-lgpl.c: Update.
2143 * gnulib/import/cdefs.h: Update.
2144 * gnulib/import/chdir-long.c: Update.
2145 * gnulib/import/chdir-long.h: Update.
2146 * gnulib/import/cloexec.c: Update.
2147 * gnulib/import/cloexec.h: Update.
2148 * gnulib/import/close.c: Update.
2149 * gnulib/import/closedir.c: Update.
2150 * gnulib/import/config.charset: Update.
2151 * gnulib/import/dirent-private.h: Update.
2152 * gnulib/import/dirent.in.h: Update.
2153 * gnulib/import/dirfd.c: Update.
2154 * gnulib/import/dirname-lgpl.c: Update.
2155 * gnulib/import/dirname.h: Update.
2156 * gnulib/import/dosname.h: Update.
2157 * gnulib/import/dup-safer-flag.c: Update.
2158 * gnulib/import/dup-safer.c: Update.
2159 * gnulib/import/dup.c: Update.
2160 * gnulib/import/dup2.c: Update.
2161 * gnulib/import/errno.in.h: Update.
2162 * gnulib/import/error.c: Update.
2163 * gnulib/import/error.h: Update.
2164 * gnulib/import/exitfail.c: Update.
2165 * gnulib/import/exitfail.h: Update.
2166 * gnulib/import/extra/update-copyright: Update.
2167 * gnulib/import/fchdir.c: Update.
2168 * gnulib/import/fcntl.c: Update.
2169 * gnulib/import/fcntl.in.h: Update.
2170 * gnulib/import/fd-hook.c: Update.
2171 * gnulib/import/fd-hook.h: Update.
2172 * gnulib/import/fd-safer-flag.c: Update.
2173 * gnulib/import/fd-safer.c: Update.
2174 * gnulib/import/fdopendir.c: Update.
2175 * gnulib/import/filename.h: Update.
2176 * gnulib/import/filenamecat-lgpl.c: Update.
2177 * gnulib/import/filenamecat.h: Update.
2178 * gnulib/import/flexmember.h: Update.
2179 * gnulib/import/float+.h: Update.
2180 * gnulib/import/float.c: Update.
2181 * gnulib/import/float.in.h: Update.
2182 * gnulib/import/fnmatch.c: Update.
2183 * gnulib/import/fnmatch.in.h: Update.
2184 * gnulib/import/fnmatch_loop.c: Update.
2185 * gnulib/import/fpucw.h: Update.
2186 * gnulib/import/frexp.c: Update.
2187 * gnulib/import/frexpl.c: Update.
2188 * gnulib/import/fstat.c: Update.
2189 * gnulib/import/fstatat.c: Update.
2190 * gnulib/import/getcwd-lgpl.c: Update.
2191 * gnulib/import/getcwd.c: Update.
2192 * gnulib/import/getdtablesize.c: Update.
2193 * gnulib/import/getlogin_r.c: Update.
2194 * gnulib/import/getprogname.c: Update.
2195 * gnulib/import/getprogname.h: Update.
2196 * gnulib/import/gettext.h: Update.
2197 * gnulib/import/gettimeofday.c: Update.
2198 * gnulib/import/glob-libc.h: Update.
2199 * gnulib/import/glob.c: Update.
2200 * gnulib/import/glob.in.h: Update.
2201 * gnulib/import/glob_internal.h: Update.
2202 * gnulib/import/glob_pattern_p.c: Update.
2203 * gnulib/import/globfree.c: Update.
2204 * gnulib/import/hard-locale.c: Update.
2205 * gnulib/import/hard-locale.h: Update.
2206 * gnulib/import/intprops.h: Update.
2207 * gnulib/import/inttypes.in.h: Update.
2208 * gnulib/import/isnan.c: Update.
2209 * gnulib/import/isnand-nolibm.h: Update.
2210 * gnulib/import/isnand.c: Update.
2211 * gnulib/import/isnanl-nolibm.h: Update.
2212 * gnulib/import/isnanl.c: Update.
2213 * gnulib/import/itold.c: Update.
2214 * gnulib/import/libc-config.h: Update.
2215 * gnulib/import/limits.in.h: Update.
2216 * gnulib/import/localcharset.c: Update.
2217 * gnulib/import/localcharset.h: Update.
2218 * gnulib/import/localtime-buffer.c: Update.
2219 * gnulib/import/localtime-buffer.h: Update.
2220 * gnulib/import/lstat.c: Update.
2221 * gnulib/import/m4/00gnulib.m4: Update.
2222 * gnulib/import/m4/__inline.m4: Update.
2223 * gnulib/import/m4/absolute-header.m4: Update.
2224 * gnulib/import/m4/alloca.m4: Update.
2225 * gnulib/import/m4/builtin-expect.m4: Update.
2226 * gnulib/import/m4/canonicalize.m4: Update.
2227 * gnulib/import/m4/chdir-long.m4: Update.
2228 * gnulib/import/m4/close.m4: Update.
2229 * gnulib/import/m4/closedir.m4: Update.
2230 * gnulib/import/m4/configmake.m4: Update.
2231 * gnulib/import/m4/d-ino.m4: Update.
2232 * gnulib/import/m4/d-type.m4: Update.
2233 * gnulib/import/m4/dirent_h.m4: Update.
2234 * gnulib/import/m4/dirfd.m4: Update.
2235 * gnulib/import/m4/dirname.m4: Update.
2236 * gnulib/import/m4/double-slash-root.m4: Update.
2237 * gnulib/import/m4/dup.m4: Update.
2238 * gnulib/import/m4/dup2.m4: Update.
2239 * gnulib/import/m4/eealloc.m4: Update.
2240 * gnulib/import/m4/environ.m4: Update.
2241 * gnulib/import/m4/errno_h.m4: Update.
2242 * gnulib/import/m4/error.m4: Update.
2243 * gnulib/import/m4/exponentd.m4: Update.
2244 * gnulib/import/m4/exponentl.m4: Update.
2245 * gnulib/import/m4/extensions.m4: Update.
2246 * gnulib/import/m4/extern-inline.m4: Update.
2247 * gnulib/import/m4/fchdir.m4: Update.
2248 * gnulib/import/m4/fcntl-o.m4: Update.
2249 * gnulib/import/m4/fcntl.m4: Update.
2250 * gnulib/import/m4/fcntl_h.m4: Update.
2251 * gnulib/import/m4/fdopendir.m4: Update.
2252 * gnulib/import/m4/filenamecat.m4: Update.
2253 * gnulib/import/m4/flexmember.m4: Update.
2254 * gnulib/import/m4/float_h.m4: Update.
2255 * gnulib/import/m4/fnmatch.m4: Update.
2256 * gnulib/import/m4/fnmatch_h.m4: Update.
2257 * gnulib/import/m4/fpieee.m4: Update.
2258 * gnulib/import/m4/frexp.m4: Update.
2259 * gnulib/import/m4/frexpl.m4: Update.
2260 * gnulib/import/m4/fstat.m4: Update.
2261 * gnulib/import/m4/fstatat.m4: Update.
2262 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2263 * gnulib/import/m4/getcwd-path-max.m4: Update.
2264 * gnulib/import/m4/getcwd.m4: Update.
2265 * gnulib/import/m4/getdtablesize.m4: Update.
2266 * gnulib/import/m4/getlogin.m4: Update.
2267 * gnulib/import/m4/getlogin_r.m4: Update.
2268 * gnulib/import/m4/getpagesize.m4: Update.
2269 * gnulib/import/m4/getprogname.m4: Update.
2270 * gnulib/import/m4/gettimeofday.m4: Update.
2271 * gnulib/import/m4/glibc21.m4: Update.
2272 * gnulib/import/m4/glob.m4: Update.
2273 * gnulib/import/m4/glob_h.m4: Update.
2274 * gnulib/import/m4/gnulib-cache.m4: Update.
2275 * gnulib/import/m4/gnulib-common.m4: Update.
2276 * gnulib/import/m4/gnulib-comp.m4: Update.
2277 * gnulib/import/m4/gnulib-tool.m4: Update.
2278 * gnulib/import/m4/hard-locale.m4: Update.
2279 * gnulib/import/m4/include_next.m4: Update.
2280 * gnulib/import/m4/inttypes-pri.m4: Update.
2281 * gnulib/import/m4/inttypes.m4: Update.
2282 * gnulib/import/m4/isnand.m4: Update.
2283 * gnulib/import/m4/isnanl.m4: Update.
2284 * gnulib/import/m4/largefile.m4: Update.
2285 * gnulib/import/m4/limits-h.m4: Update.
2286 * gnulib/import/m4/localcharset.m4: Update.
2287 * gnulib/import/m4/locale-fr.m4: Update.
2288 * gnulib/import/m4/locale-ja.m4: Update.
2289 * gnulib/import/m4/locale-zh.m4: Update.
2290 * gnulib/import/m4/localtime-buffer.m4: Update.
2291 * gnulib/import/m4/longlong.m4: Update.
2292 * gnulib/import/m4/lstat.m4: Update.
2293 * gnulib/import/m4/malloc.m4: Update.
2294 * gnulib/import/m4/malloca.m4: Update.
2295 * gnulib/import/m4/math_h.m4: Update.
2296 * gnulib/import/m4/mbrtowc.m4: Update.
2297 * gnulib/import/m4/mbsinit.m4: Update.
2298 * gnulib/import/m4/mbsrtowcs.m4: Update.
2299 * gnulib/import/m4/mbstate_t.m4: Update.
2300 * gnulib/import/m4/memchr.m4: Update.
2301 * gnulib/import/m4/memmem.m4: Update.
2302 * gnulib/import/m4/mempcpy.m4: Update.
2303 * gnulib/import/m4/memrchr.m4: Update.
2304 * gnulib/import/m4/mkdir.m4: Update.
2305 * gnulib/import/m4/mkstemp.m4: Update.
2306 * gnulib/import/m4/mmap-anon.m4: Update.
2307 * gnulib/import/m4/mode_t.m4: Update.
2308 * gnulib/import/m4/msvc-inval.m4: Update.
2309 * gnulib/import/m4/msvc-nothrow.m4: Update.
2310 * gnulib/import/m4/multiarch.m4: Update.
2311 * gnulib/import/m4/nocrash.m4: Update.
2312 * gnulib/import/m4/off_t.m4: Update.
2313 * gnulib/import/m4/onceonly.m4: Update.
2314 * gnulib/import/m4/open-cloexec.m4: Update.
2315 * gnulib/import/m4/open.m4: Update.
2316 * gnulib/import/m4/openat.m4: Update.
2317 * gnulib/import/m4/opendir.m4: Update.
2318 * gnulib/import/m4/pathmax.m4: Update.
2319 * gnulib/import/m4/rawmemchr.m4: Update.
2320 * gnulib/import/m4/readdir.m4: Update.
2321 * gnulib/import/m4/readlink.m4: Update.
2322 * gnulib/import/m4/realloc.m4: Update.
2323 * gnulib/import/m4/rename.m4: Update.
2324 * gnulib/import/m4/rewinddir.m4: Update.
2325 * gnulib/import/m4/rmdir.m4: Update.
2326 * gnulib/import/m4/save-cwd.m4: Update.
2327 * gnulib/import/m4/secure_getenv.m4: Update.
2328 * gnulib/import/m4/setenv.m4: Update.
2329 * gnulib/import/m4/signal_h.m4: Update.
2330 * gnulib/import/m4/ssize_t.m4: Update.
2331 * gnulib/import/m4/stat-time.m4: Update.
2332 * gnulib/import/m4/stat.m4: Update.
2333 * gnulib/import/m4/std-gnu11.m4: Update.
2334 * gnulib/import/m4/stdbool.m4: Update.
2335 * gnulib/import/m4/stddef_h.m4: Update.
2336 * gnulib/import/m4/stdint.m4: Update.
2337 * gnulib/import/m4/stdio_h.m4: Update.
2338 * gnulib/import/m4/stdlib_h.m4: Update.
2339 * gnulib/import/m4/strchrnul.m4: Update.
2340 * gnulib/import/m4/strdup.m4: Update.
2341 * gnulib/import/m4/strerror.m4: Update.
2342 * gnulib/import/m4/string_h.m4: Update.
2343 * gnulib/import/m4/strstr.m4: Update.
2344 * gnulib/import/m4/strtok_r.m4: Update.
2345 * gnulib/import/m4/sys_socket_h.m4: Update.
2346 * gnulib/import/m4/sys_stat_h.m4: Update.
2347 * gnulib/import/m4/sys_time_h.m4: Update.
2348 * gnulib/import/m4/sys_types_h.m4: Update.
2349 * gnulib/import/m4/tempname.m4: Update.
2350 * gnulib/import/m4/time_h.m4: Update.
2351 * gnulib/import/m4/unistd-safer.m4: Update.
2352 * gnulib/import/m4/unistd_h.m4: Update.
2353 * gnulib/import/m4/warn-on-use.m4: Update.
2354 * gnulib/import/m4/wchar_h.m4: Update.
2355 * gnulib/import/m4/wchar_t.m4: Update.
2356 * gnulib/import/m4/wctype_h.m4: Update.
2357 * gnulib/import/m4/wint_t.m4: Update.
2358 * gnulib/import/malloc.c: Update.
2359 * gnulib/import/malloc/scratch_buffer.h: Update.
2360 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2361 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2362 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2363 * gnulib/import/malloca.c: Update.
2364 * gnulib/import/malloca.h: Update.
2365 * gnulib/import/malloca.valgrind: Update.
2366 * gnulib/import/math.in.h: Update.
2367 * gnulib/import/mbrtowc.c: Update.
2368 * gnulib/import/mbsinit.c: Update.
2369 * gnulib/import/mbsrtowcs-impl.h: Update.
2370 * gnulib/import/mbsrtowcs-state.c: Update.
2371 * gnulib/import/mbsrtowcs.c: Update.
2372 * gnulib/import/memchr.c: Update.
2373 * gnulib/import/memmem.c: Update.
2374 * gnulib/import/mempcpy.c: Update.
2375 * gnulib/import/memrchr.c: Update.
2376 * gnulib/import/mkdir.c: Update.
2377 * gnulib/import/mkstemp.c: Update.
2378 * gnulib/import/msvc-inval.c: Update.
2379 * gnulib/import/msvc-inval.h: Update.
2380 * gnulib/import/msvc-nothrow.c: Update.
2381 * gnulib/import/msvc-nothrow.h: Update.
2382 * gnulib/import/open.c: Update.
2383 * gnulib/import/openat-die.c: Update.
2384 * gnulib/import/openat-priv.h: Update.
2385 * gnulib/import/openat-proc.c: Update.
2386 * gnulib/import/openat.c: Update.
2387 * gnulib/import/openat.h: Update.
2388 * gnulib/import/opendir.c: Update.
2389 * gnulib/import/pathmax.h: Update.
2390 * gnulib/import/pipe-safer.c: Update.
2391 * gnulib/import/rawmemchr.c: Update.
2392 * gnulib/import/readdir.c: Update.
2393 * gnulib/import/readlink.c: Update.
2394 * gnulib/import/realloc.c: Update.
2395 * gnulib/import/ref-add.sin: Update.
2396 * gnulib/import/ref-del.sin: Update.
2397 * gnulib/import/rename.c: Update.
2398 * gnulib/import/rewinddir.c: Update.
2399 * gnulib/import/rmdir.c: Update.
2400 * gnulib/import/same-inode.h: Update.
2401 * gnulib/import/save-cwd.c: Update.
2402 * gnulib/import/save-cwd.h: Update.
2403 * gnulib/import/scratch_buffer.h: Update.
2404 * gnulib/import/secure_getenv.c: Update.
2405 * gnulib/import/setenv.c: Update.
2406 * gnulib/import/signal.in.h: Update.
2407 * gnulib/import/stat-time.c: Update.
2408 * gnulib/import/stat-time.h: Update.
2409 * gnulib/import/stat-w32.c: Update.
2410 * gnulib/import/stat-w32.h: Update.
2411 * gnulib/import/stat.c: Update.
2412 * gnulib/import/stdbool.in.h: Update.
2413 * gnulib/import/stddef.in.h: Update.
2414 * gnulib/import/stdint.in.h: Update.
2415 * gnulib/import/stdio.in.h: Update.
2416 * gnulib/import/stdlib.in.h: Update.
2417 * gnulib/import/str-two-way.h: Update.
2418 * gnulib/import/strchrnul.c: Update.
2419 * gnulib/import/strdup.c: Update.
2420 * gnulib/import/streq.h: Update.
2421 * gnulib/import/strerror-override.c: Update.
2422 * gnulib/import/strerror-override.h: Update.
2423 * gnulib/import/strerror.c: Update.
2424 * gnulib/import/string.in.h: Update.
2425 * gnulib/import/stripslash.c: Update.
2426 * gnulib/import/strnlen1.c: Update.
2427 * gnulib/import/strnlen1.h: Update.
2428 * gnulib/import/strstr.c: Update.
2429 * gnulib/import/strtok_r.c: Update.
2430 * gnulib/import/sys_stat.in.h: Update.
2431 * gnulib/import/sys_time.in.h: Update.
2432 * gnulib/import/sys_types.in.h: Update.
2433 * gnulib/import/tempname.c: Update.
2434 * gnulib/import/tempname.h: Update.
2435 * gnulib/import/time.in.h: Update.
2436 * gnulib/import/unistd--.h: Update.
2437 * gnulib/import/unistd-safer.h: Update.
2438 * gnulib/import/unistd.in.h: Update.
2439 * gnulib/import/unsetenv.c: Update.
2440 * gnulib/import/verify.h: Update.
2441 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2442 * gnulib/import/wchar.in.h: Update.
2443 * gnulib/import/wctype.in.h: Update.
2444 * gnulib/import/xalloc-oversized.h: Update.
2445 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2446 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2447
8ec23583
SM
24482018-09-10 Simon Marchi <simon.marchi@ericsson.com>
2449
2450 * record-btrace.c (get_thread_current_frame): Remove
2451 old_inferior_ptid.
2452
1f5d1570
JG
24532018-09-10 Jerome Guitton <guitton@adacore.com>
2454
2455 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
2456 with check_tag to 1 if and only if the type is tagged and the
2457 component being searched cannot been found in the current
2458 view. Otherwise, always call ada_to_fixed_type with
2459 check_tag to 0.
2460
d91e9ea8
XR
24612018-09-10 Xavier Roirand <roirand@adacore.com>
2462
2463 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
2464 declaration.
2465 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
2466 * ada-varobj.c (ada_varobj_get_number_of_children,
2467 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
2468
cc330e39
XR
24692018-09-10 Xavier Roirand <roirand@adacore.com>
2470
2471 * ada-valprint.c (ada_value_print): Use type instead of
2472 enclosing type.
2473
b9c50e9a
XR
24742018-09-10 Xavier Roirand <roirand@adacore.com>
2475
2476 * ada-lang.c (ada_value_subscript): Handle case when parameter is
2477 an array of access to unconstrained array.
2478
736ade86
XR
24792018-09-10 Xavier Roirand <roirand@adacore.com>
2480
2481 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
2482 (ada_check_typedef): Use it.
2483
2963898f
XR
24842018-09-10 Xavier Roirand <roirand@adacore.com>
2485
2486 * ada-varobj.c (ada_varobj_describe_struct_child)
2487 (ada_varobj_describe_child): Handle union case like struct one.
2488
a154931e
TT
24892018-09-10 Tom Tromey <tom@tromey.com>
2490
2491 PR python/18380:
2492 * python/python.c (_initialize_python): Make example in "python"
2493 help work in Python 3.
2494
23c4651c
EZ
24952018-09-10 Eli Zaretskii <eliz@gnu.org>
2496
2497 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
2498 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
2499 $(EXEEXT) to the script, as it is not a program.
2500
a5c5eda7
SM
25012018-09-09 Simon Marchi <simon.marchi@ericsson.com>
2502
2503 * python/py-prettyprint.c (pretty_print_one_value): Return
2504 gdbpy_ref<>.
2505 (print_string_repr): Adjust.
2506 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
2507 * python/python-internal.h (apply_varobj_pretty_printer): Return
2508 gdbpy_ref<>.
2509 * varobj.c (varobj_value_get_print_value): Adjust.
2510
332cf4c9
TT
25112018-09-08 Tom Tromey <tom@tromey.com>
2512
2513 PR python/16047:
2514 * python/py-prettyprint.c (pretty_print_one_value): Check for
2515 to_string method.
2516
424da6cf
JB
25172018-09-08 Joel Brobecker <brobecker@adacore.com>
2518
2519 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
2520 replace_operator_with_call.
2521
95f39a5b
JB
25222018-09-08 Joel Brobecker <brobecker@adacore.com>
2523
2524 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
2525
16b9eb7b
JB
25262018-09-08 Joel Brobecker <brobecker@adacore.com>
2527
2528 * ada-typeprint.c (print_range): Print the bounds using TYPE
2529 rather than its TYPE_TARGET_TYPE.
2530
d8ce9127
JB
25312018-09-08 Joel Brobecker <brobecker@adacore.com>
2532
2533 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
2534 call to ada_to_fixed_value_create.
2535
0d81f350
JG
25362018-09-08 Jerome Guitton <guitton@adacore.com>
2537
2538 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
2539
57aff202
JB
25402018-09-08 Joel Brobecker <brobecker@adacore.com>
2541
2542 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
2543 by calls to error.
2544
fb44b1a7
JB
25452018-09-08 Joel Brobecker <brobecker@adacore.com>
2546
2547 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
2548 Move update of loop variable "fi".
2549
2a62dfa9
JB
25502018-09-08 Joel Brobecker <brobecker@adacore.com>
2551
2552 * ada-lang.c (value_assign_to_component): In the case of
2553 big-endian targets, extract the bits of the given VAL
2554 using an src_offset of zero if container is not a scalar.
2555
739ab2e9
SS
25562018-09-06 Simon Ser <contact@emersion.fr>
2557
2558 PR gdb/23105
2559 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
2560 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2561 * fbsd-tdep.c (fbsd_make_note_desc): New.
2562 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
2563 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
2564 * target.h (enum target_object) Add FreeBSD-specific
2565 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2566
d82b3862
SM
25672018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2568
2569 * compile/compile-c.h (generate_c_for_variable_locations):
2570 Change reference to pointer.
2571 * compile/compile-c-support.c (compile_program) <compute>:
2572 Likewise.
2573 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
2574 (generate_c_for_for_one_variable): Likewise
2575 (generate_c_for_variable_locations): Likewise
2576 * compile/compile-c-types.c (compile_c_instance::convert_type):
2577 Likewise
2578 * compile/compile-cplus-symbols.c (convert_one_symbol):
2579 std::move the scope passed to enter_scope.
2580 * compile/compile-cplus-types.c
2581 (compile_cplus_instance::enter_scope): Make parameter
2582 rvalue-reference.
2583 (compile_cplus_instance::new_scope): Change reference to
2584 pointer.
2585 (compile_cplus_instance::convert_type): Likewise
2586 (compile_cplus_convert_typedef): std::move the scope passed to
2587 enter_scope.
2588 (compile_cplus_convert_struct_or_union): Likewise.
2589 (compile_cplus_convert_enum): Likewise.
2590 (compile_cplus_convert_namespace): Likewise.
2591 * compile/compile-cplus.h (compile_cplus_instance)
2592 <enter_scope>: Make parameter rvalue-reference.
2593 * compile/compile-internal.h (compile_instance)
2594 <get_cached_type>: Likewise
2595 * compile/compile-loc2c.c (push): Likewise
2596 (pushf): Likewise
2597 (unary): Likewise
2598 (binary): Likewise
2599 (print_label): Likewise
2600 (pushf_register_address): Likewise
2601 (pushf_register): Likewise
2602 (do_compile_dwarf_expr_to_c): Likewise
2603 (compile_dwarf_expr_to_c): Likewise
2604 (compile_dwarf_bounds_to_c): Likewise
2605 * compile/compile.c (compile_instance::get_cached_type):
2606 Likewise
2607 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
2608 (compile_dwarf_bounds_to_c): Likewise
2609 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
2610 (dwarf2_compile_property_to_c): Likewise
2611 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
2612 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2613 Likewise
2614
cc5a5ae5
SM
26152018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2616
2617 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
2618 * tui/tui-data.c (init_content_element): Don't initialize it.
2619
137be540
SM
26202018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2621
2622 * tui/tui-data.h (struct tui_win_info)
2623 <detail::opaque>: Remove.
2624 * tui/tui-data.c (init_win_info): Remove assignment.
2625
f1628857
TT
26262018-09-05 Tom Tromey <tom@tromey.com>
2627
2628 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
2629 -Wformat-nonliteral.
2630 * target-float.c (host_float_ops<T>::to_string)
2631 (host_float_ops<T>::from_string): Use
2632 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2633 * configure: Rebuild.
2634
af39b1c2
SM
26352018-09-05 Simon Marchi <simon.marchi@ericsson.com>
2636
2637 * printcmd.c (printf_c_string): Use
2638 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2639 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2640
081bca4d
TT
26412018-09-05 Tom Tromey <tom@tromey.com>
2642
2643 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2644
e4a62c65
TV
26452018-09-05 Tom de Vries <tdevries@suse.de>
2646
2647 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2648 with resolve_abstract_p == true.
2649 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2650 defaulting to false. Propagate resolve_abstract_p to
2651 dwarf2_fetch_die_loc_sect_off.
2652 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2653 parameter, defaulting to false.
2654 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2655 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2656 parameter.
2657 * dwarf2read.h (struct die_info): Forward-declare.
2658 (die_info_ptr): New typedef.
2659 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2660
2b69821e
JB
26612018-09-05 Joel Brobecker <brobecker@adacore.com>
2662
2663 GDB 8.2 released.
2664
fcc9b044
SDJ
26652018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2666 Pedro Alves <palves@redhat.com>
2667
2668 * gnulib/Makefile.in (aclocal_m4_deps): Move to
2669 "aclocal-m4-deps.mk". Include file here.
2670 $(srcdir)/aclocal.m4: Add "configure.ac".
2671 * gnulib/aclocal-m4-deps.mk: New file.
2672 * gnulib/update-gnulib.sh: Automatically update
2673 "aclocal-m4-deps.mk".
2674
d53d5436
TT
26752018-09-04 Tom Tromey <tom@tromey.com>
2676
2677 * configure: Rebuild.
2678 * configure.ac: Remove multi-ice code.
2679
8dc9fd87
TT
26802018-09-04 Tom Tromey <tom@tromey.com>
2681
2682 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2683 (ada-exp.o): Update.
2684
3322c5d9
TT
26852018-09-04 Tom Tromey <tom@tromey.com>
2686
2687 * Makefile.in (printcmd.o, target-float.o): Remove.
2688 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2689
ba2bf2aa
TT
26902018-09-04 Tom Tromey <tom@tromey.com>
2691
2692 * gnulib/Makefile.in: Remove obsolete comment.
2693 * Makefile.in: Remove obsolete comment.
2694
6c9d681b
AB
26952018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2696
2697 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2698 line with '+'.
2699
78a3b0fa
AB
27002018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2701
2702 * riscv-tdep.c: Add 'prologue-value.h' include.
2703 (struct riscv_unwind_cache): New struct.
2704 (riscv_debug_unwinder): New global.
2705 (riscv_scan_prologue): Update arguments, capture register details
2706 from prologue scan.
2707 (riscv_skip_prologue): Reformat arguments line, move end of
2708 prologue calculation into riscv_scan_prologue.
2709 (riscv_frame_cache): Update return type, create
2710 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2711 details.
2712 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2713 (riscv_frame_prev_register): Use the trad_frame within the
2714 riscv_unwind_cache.
2715 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2716 flag.
2717
23e60e7a
AB
27182018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2719
2720 * trad-frame.h (trad_frame_set_realreg): Declare.
2721 (trad_frame_set_addr): Declare.
2722 * trad-frame.c (trad_frame_set_realreg): Define new function.
2723 (trad_frame_set_addr): Define new function.
2724 (trad_frame_set_reg_realreg): Use new function.
2725 (trad_frame_set_reg_addr): Use new function.
2726
5c889512
KS
27272018-09-01 Keith Seitz <keiths@redhat.com>
2728
2729 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2730 pulongest instead of "%lld".
2731 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2732 ATTRIBUTE_UNUSED.
2733
c8c81635
TT
27342018-08-31 Tom Tromey <tom@tromey.com>
2735
2736 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2737 variant part type.
2738
0c888588
PA
27392018-08-31 Pedro Alves <palves@redhat.com>
2740
2741 * gdbarch.h: Regenerate.
2742
7ea65f08
PA
27432018-08-31 Pedro Alves <palves@redhat.com>
2744
2745 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2746 * target.h (Hardware watchpoint interfaces): Describe
2747 continuable/steppable/non-steppable watchpoints.
2748 * gdbarch.h, gdbarch.c: Regenerate.
2749
7eb65faf
PA
27502018-08-31 Pedro Alves <palves@redhat.com>
2751
2752 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2753 Delete.
2754 * s390-linux-nat.c
2755 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2756 * target.h (target_ops::have_continuable_watchpoint): Delete.
2757 (target_have_continuable_watchpoint): Delete.
2758 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2759 * target-delegates.c: Regenerate.
2760
dab999b1
SDJ
27612018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2762
2763 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2764 the files present in "gnulib/import/m4/".
2765
ff3a05b3
AB
27662018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2767
2768 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2769 c.sw, c.swsp, and c.sdsp.
2770
0b3f9efc
AB
27712018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2772
2773 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2774 (riscv_read_misa_reg): Don't cache value read into inferior data.
2775 (riscv_new_inferior_data): Delete.
2776 (riscv_inferior_data_cleanup): Delete.
2777 (riscv_inferior_data): Delete.
2778 (riscv_invalidate_inferior_data): Delete.
2779 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2780
a0dc02a6
SM
27812018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2782
2783 * compile/compile-cplus-types.c
2784 (compile_cplus_instance::leave_scope): Take the address of scope
2785 object.
2786 (compile_cplus_instance::convert_qualified_base): Compare quals
2787 to 0.
2788
fdad7678
KS
27892018-08-30 Keith Seitz <keiths@redhat.com>
2790
2791 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2792 Use "%s" and host_address_to_string instead of "%p" in printf.
2793
078a0207
KS
27942018-08-29 Keith Seitz <keiths@redhat.com>
2795
2796 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2797 and compile-cplus-types.c.
2798 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2799 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2800 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2801 Declare.
2802 * compile/compile-c-support.c: Include compile-cplus.h.
2803 (load_libcompile): Templatize.
2804 (get_compile_context): "New" function.
2805 (c_get_compile_context): Use get_compile_context.
2806 (cplus_get_compile_context): New function.
2807 (cplus_push_user_expression, cplus_pop_user_expression)
2808 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2809 (cplus_compute_program): Define new structs/functions.
2810 * compile/compile-cplus-symmbols.c: New file.
2811 * compile/compile-cplus-types.c: New file.
2812 * compile/compile-cplus.h: New file.
2813 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2814 Declare.
2815 * compile/compile-object-load.c (get_out_value_type): Use
2816 strncmp_iw when comparing symbol names.
2817 (compile_object_load): Add mst_bss and mst_data.
2818 * compile/compile.c (_initialize_compile): Remove
2819 -Wno-implicit-function-declaration from `compile_args'.
2820 * compile/gcc-cp-plugin.h: New file.
2821 * NEWS: Mention C++ compile support and new debug options.
2822
fcaad03c
KS
28232018-08-29 Keith Seitz <keiths@redhat.com>
2824
2825 * linespec.c (collect_info::add_symbol): Make virtual.
2826 (struct symbol_searcher_collect_info): New struct.
2827 (symbol_searcher::find_all_symbols): New method.
2828 * symtab.h (class symbol_searcher): New class.
2829
7e41c8db
KS
28302018-08-29 Keith Seitz <keiths@redhat.com>
2831
2832 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2833 Change to vector of block_symbol. Update all users.
2834 (struct collect_info) <symbols>: Likewise.
2835 (collect_info::add_symbol): Take block_symbol as argument.
2836 Update all callers.
2837 (decode_compound_collector) <m_symbols>: Change type to vector
2838 of block_symbol. Update all users.
2839 (decode_compound_collector::operator ()): Change parameter type
2840 to block_symbol.
2841 (find_method, find_function_symbols, find_linespec_symbols)
2842 (find_label_symbols_in_block, find_label_symbols): Change symbol
2843 vectors to block_symbol vectors.
2844 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2845 block_symbol.
2846
63e8c3da
KS
28472018-08-29 Keith Seitz <keiths@redhat.com>
2848
2849 * linespec.c (symbolp): Remove typedef and VEC definitions.
2850 (bound_minimal_symbol_d): Likewise.
2851
4dedf84d
KS
28522018-08-29 Keith Seitz <keiths@redhat.com>
2853
2854 * linespec.c (decode_compound_collector::decode_compound_collector):
2855 Remove initialization for `m_symtabs'.
2856 (decode_compound_collector::release_symbols): Change return type
2857 to std::vector. Update all callers.
2858 (class decode_compound_collector) <m_symbols>: Change type to
2859 std::vector.
2860 (lookup_prefix_sym): Change return type to std::vector. Update all
2861 callers.
2862 (compare_symbols): Remove.
2863 (std_compare_symbols): Rename to `compare_symbols'.
2864 (find_method): Change `sym_classes' parameter to std::vector.
2865 Update all callers. Use std::sort to sort sym_classes.
2866 (find_linespec_symbols): Remove cleanup.
2867
c2a031c5
KS
28682018-08-29 Keith Seitz <keiths@redhat.com>
2869
2870 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2871 std::vector. Update all users.
2872 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2873 (struct collect_info) <minimal_symbols>: Likewise.
2874 (compare_msymbols): Return bool. Change parameters to const
2875 bound_minimal_symbol references.
2876 (find_method, find_function_symbols, find_linespec_symbols): Change
2877 `minsyms' parameter to std::vector. Update all callers.
2878
3553eadc
KS
28792018-08-29 Keith Seitz <keiths@redhat.com>
2880
2881 * linespec.c (struct linespec) <label_symbols>: Change type to
2882 std::vector. Update all users.
2883 (find_label_symbols_in_block): Change `result' parameter to
2884 std::vector. Update all callers.
2885 (find_label_symbols): Return std::vector. Update all callers.
2886
7243d011
KS
28872018-08-29 Keith Seitz <keiths@redhat.com>
2888
2889 * linespec.c (struct linespec) <function_symbols>: Change type to
2890 std::vector. Update all users.
2891 (struct collect_info) <function_symbols>: Likewise.
2892 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2893 (std_compare_symbols): New function.
2894 (find_method, find_function_symbols, find_linespec_symbols)
2895 (find_label_symbols_in_block): Change `symbols' parameter to
2896 std::vector. Update all callers.
2897 (find_label_symbols): Likewise for `function_symbols' and
2898 `label_funcs_ret'.
2899
2a908241
KS
29002018-08-29 Keith Seitz <keiths@redhat.com>
2901
2902 * linespec.c (symtab_vector_up): Define.
2903 (struct linespec) <file_symtabs>: Change type to std::vector *.
2904 Update all uses.
2905 (struct collect_info) <file_symtabs>: Likewise.
2906 (collect_symtabs_from_filename): Return symtab_vector_up.
2907 Update all callers.
2908 (decode_objc): Remove cleanup.
2909 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2910 (symtab_collector::release_symtabs): Return symtab_vector_up.
2911 Update all callers.
2912 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2913 Update all users.
2914 (collect_symtabs_from_filename, symtabs_from_filename): Return
2915 symtab_vector_up. Update all callers.
2916
f6c4e3e8
TT
29172018-08-29 Tom Tromey <tom@tromey.com>
2918
2919 * csky-tdep.c (csky_analyze_prologue): Use
2920 core_addr_to_string_nz.
2921
73c13fe6
TT
29222018-08-29 Tom Tromey <tom@tromey.com>
2923
2924 * windows-nat.c (struct xlate_exception) <them>: Change type to
2925 DWORD.
2926 (xlate): Fix formatting. Remove last entry.
2927 (struct xlate_exception, xlate): Comment out.
2928 (windows_nat_target::resume): Use ranged for.
2929
4d3928d7
JW
29302018-08-29 Jim Wilson <jimw@sifive.com>
2931
2932 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2933 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2934 of NT_PRFPREG.
2935 (riscv_linux_nat_target::store_registers): Likewise.
2936
7a6dbc2f
SDJ
29372018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2938
2939 PR gdb/23555
2940 PR gdb/23558
2941 * gnulib/aclocal.m4: Regenerate.
2942 * gnulib/config.in: Regenerate.
2943 * gnulib/configure: Regenerate.
2944 * gnulib/import/Makefile.am: Update.
2945 * gnulib/import/Makefile.in: Update.
2946 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2947 * gnulib/import/_Noreturn.h: ... this.
2948 * gnulib/import/alloca.in.h: Update.
2949 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2950 * gnulib/import/arg-nonnull.h: ... this.
2951 * gnulib/import/assure.h: Update.
2952 * gnulib/import/at-func.c: Update.
2953 * gnulib/import/basename-lgpl.c: Update.
2954 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2955 * gnulib/import/c++defs.h: ... this.
2956 * gnulib/import/canonicalize-lgpl.c: Update.
2957 * gnulib/import/cdefs.h: Update.
2958 * gnulib/import/chdir-long.c: Update.
2959 * gnulib/import/chdir-long.h: Update.
2960 * gnulib/import/cloexec.c: Update.
2961 * gnulib/import/cloexec.h: Update.
2962 * gnulib/import/close.c: Update.
2963 * gnulib/import/closedir.c: Update.
2964 * gnulib/import/config.charset: Update.
2965 * gnulib/import/dirent-private.h: Update.
2966 * gnulib/import/dirent.in.h: Update.
2967 * gnulib/import/dirfd.c: Update.
2968 * gnulib/import/dirname-lgpl.c: Update.
2969 * gnulib/import/dirname.h: Update.
2970 * gnulib/import/dosname.h: Update.
2971 * gnulib/import/dup-safer-flag.c: Update.
2972 * gnulib/import/dup-safer.c: Update.
2973 * gnulib/import/dup.c: Update.
2974 * gnulib/import/dup2.c: Update.
2975 * gnulib/import/errno.in.h: Update.
2976 * gnulib/import/error.c: Update.
2977 * gnulib/import/error.h: Update.
2978 * gnulib/import/exitfail.c: Update.
2979 * gnulib/import/exitfail.h: Update.
2980 * gnulib/import/extra/update-copyright: Update.
2981 * gnulib/import/fchdir.c: Update.
2982 * gnulib/import/fcntl.c: Update.
2983 * gnulib/import/fcntl.in.h: Update.
2984 * gnulib/import/fd-hook.c: Update.
2985 * gnulib/import/fd-hook.h: Update.
2986 * gnulib/import/fd-safer-flag.c: Update.
2987 * gnulib/import/fd-safer.c: Update.
2988 * gnulib/import/fdopendir.c: Update.
2989 * gnulib/import/filename.h: Update.
2990 * gnulib/import/filenamecat-lgpl.c: Update.
2991 * gnulib/import/filenamecat.h: Update.
2992 * gnulib/import/flexmember.h: Update.
2993 * gnulib/import/float+.h: Update.
2994 * gnulib/import/float.c: Update.
2995 * gnulib/import/float.in.h: Update.
2996 * gnulib/import/fnmatch.c: Update.
2997 * gnulib/import/fnmatch.in.h: Update.
2998 * gnulib/import/fnmatch_loop.c: Update.
2999 * gnulib/import/fpucw.h: Update.
3000 * gnulib/import/frexp.c: Update.
3001 * gnulib/import/frexpl.c: Update.
3002 * gnulib/import/fstat.c: Update.
3003 * gnulib/import/fstatat.c: Update.
3004 * gnulib/import/getcwd-lgpl.c: Update.
3005 * gnulib/import/getcwd.c: Update.
3006 * gnulib/import/getdtablesize.c: Update.
3007 * gnulib/import/getlogin_r.c: Update.
3008 * gnulib/import/getprogname.c: Update.
3009 * gnulib/import/getprogname.h: Update.
3010 * gnulib/import/gettext.h: Update.
3011 * gnulib/import/gettimeofday.c: Update.
3012 * gnulib/import/glob-libc.h: Update.
3013 * gnulib/import/glob.c: Update.
3014 * gnulib/import/glob.in.h: Update.
3015 * gnulib/import/glob_internal.h: Update.
3016 * gnulib/import/glob_pattern_p.c: Update.
3017 * gnulib/import/globfree.c: Update.
3018 * gnulib/import/hard-locale.c: Update.
3019 * gnulib/import/hard-locale.h: Update.
3020 * gnulib/import/intprops.h: Update.
3021 * gnulib/import/inttypes.in.h: Update.
3022 * gnulib/import/isnan.c: Update.
3023 * gnulib/import/isnand-nolibm.h: Update.
3024 * gnulib/import/isnand.c: Update.
3025 * gnulib/import/isnanl-nolibm.h: Update.
3026 * gnulib/import/isnanl.c: Update.
3027 * gnulib/import/itold.c: Update.
3028 * gnulib/import/libc-config.h: Update.
3029 * gnulib/import/limits.in.h: Update.
3030 * gnulib/import/localcharset.c: Update.
3031 * gnulib/import/localcharset.h: Update.
3032 * gnulib/import/localtime-buffer.c: Update.
3033 * gnulib/import/localtime-buffer.h: Update.
3034 * gnulib/import/lstat.c: Update.
3035 * gnulib/import/m4/00gnulib.m4: Update.
3036 * gnulib/import/m4/__inline.m4: Update.
3037 * gnulib/import/m4/absolute-header.m4: Update.
3038 * gnulib/import/m4/alloca.m4: Update.
3039 * gnulib/import/m4/builtin-expect.m4: Update.
3040 * gnulib/import/m4/canonicalize.m4: Update.
3041 * gnulib/import/m4/chdir-long.m4: Update.
3042 * gnulib/import/m4/close.m4: Update.
3043 * gnulib/import/m4/closedir.m4: Update.
3044 * gnulib/import/m4/configmake.m4: Update.
3045 * gnulib/import/m4/d-ino.m4: Update.
3046 * gnulib/import/m4/d-type.m4: Update.
3047 * gnulib/import/m4/dirent_h.m4: Update.
3048 * gnulib/import/m4/dirfd.m4: Update.
3049 * gnulib/import/m4/dirname.m4: Update.
3050 * gnulib/import/m4/double-slash-root.m4: Update.
3051 * gnulib/import/m4/dup.m4: Update.
3052 * gnulib/import/m4/dup2.m4: Update.
3053 * gnulib/import/m4/eealloc.m4: Update.
3054 * gnulib/import/m4/environ.m4: Update.
3055 * gnulib/import/m4/errno_h.m4: Update.
3056 * gnulib/import/m4/error.m4: Update.
3057 * gnulib/import/m4/exponentd.m4: Update.
3058 * gnulib/import/m4/exponentl.m4: Update.
3059 * gnulib/import/m4/extensions.m4: Update.
3060 * gnulib/import/m4/extern-inline.m4: Update.
3061 * gnulib/import/m4/fchdir.m4: Update.
3062 * gnulib/import/m4/fcntl-o.m4: Update.
3063 * gnulib/import/m4/fcntl.m4: Update.
3064 * gnulib/import/m4/fcntl_h.m4: Update.
3065 * gnulib/import/m4/fdopendir.m4: Update.
3066 * gnulib/import/m4/filenamecat.m4: Update.
3067 * gnulib/import/m4/flexmember.m4: Update.
3068 * gnulib/import/m4/float_h.m4: Update.
3069 * gnulib/import/m4/fnmatch.m4: Update.
3070 * gnulib/import/m4/fnmatch_h.m4: Update.
3071 * gnulib/import/m4/fpieee.m4: Update.
3072 * gnulib/import/m4/frexp.m4: Update.
3073 * gnulib/import/m4/frexpl.m4: Update.
3074 * gnulib/import/m4/fstat.m4: Update.
3075 * gnulib/import/m4/fstatat.m4: Update.
3076 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3077 * gnulib/import/m4/getcwd-path-max.m4: Update.
3078 * gnulib/import/m4/getcwd.m4: Update.
3079 * gnulib/import/m4/getdtablesize.m4: Update.
3080 * gnulib/import/m4/getlogin.m4: Update.
3081 * gnulib/import/m4/getlogin_r.m4: Update.
3082 * gnulib/import/m4/getpagesize.m4: Update.
3083 * gnulib/import/m4/getprogname.m4: Update.
3084 * gnulib/import/m4/gettimeofday.m4: Update.
3085 * gnulib/import/m4/glibc21.m4: Update.
3086 * gnulib/import/m4/glob.m4: Update.
3087 * gnulib/import/m4/glob_h.m4: Update.
3088 * gnulib/import/m4/gnulib-cache.m4: Update.
3089 * gnulib/import/m4/gnulib-common.m4: Update.
3090 * gnulib/import/m4/gnulib-comp.m4: Update.
3091 * gnulib/import/m4/gnulib-tool.m4: Update.
3092 * gnulib/import/m4/hard-locale.m4: Update.
3093 * gnulib/import/m4/include_next.m4: Update.
3094 * gnulib/import/m4/inttypes-pri.m4: Update.
3095 * gnulib/import/m4/inttypes.m4: Update.
3096 * gnulib/import/m4/isnand.m4: Update.
3097 * gnulib/import/m4/isnanl.m4: Update.
3098 * gnulib/import/m4/largefile.m4: Update.
3099 * gnulib/import/m4/limits-h.m4: Update.
3100 * gnulib/import/m4/localcharset.m4: Update.
3101 * gnulib/import/m4/locale-fr.m4: Update.
3102 * gnulib/import/m4/locale-ja.m4: Update.
3103 * gnulib/import/m4/locale-zh.m4: Update.
3104 * gnulib/import/m4/localtime-buffer.m4: Update.
3105 * gnulib/import/m4/longlong.m4: Update.
3106 * gnulib/import/m4/lstat.m4: Update.
3107 * gnulib/import/m4/malloc.m4: Update.
3108 * gnulib/import/m4/malloca.m4: Update.
3109 * gnulib/import/m4/math_h.m4: Update.
3110 * gnulib/import/m4/mbrtowc.m4: Update.
3111 * gnulib/import/m4/mbsinit.m4: Update.
3112 * gnulib/import/m4/mbsrtowcs.m4: Update.
3113 * gnulib/import/m4/mbstate_t.m4: Update.
3114 * gnulib/import/m4/memchr.m4: Update.
3115 * gnulib/import/m4/memmem.m4: Update.
3116 * gnulib/import/m4/mempcpy.m4: Update.
3117 * gnulib/import/m4/memrchr.m4: Update.
3118 * gnulib/import/m4/mkdir.m4: Update.
3119 * gnulib/import/m4/mkstemp.m4: Update.
3120 * gnulib/import/m4/mmap-anon.m4: Update.
3121 * gnulib/import/m4/mode_t.m4: Update.
3122 * gnulib/import/m4/msvc-inval.m4: Update.
3123 * gnulib/import/m4/msvc-nothrow.m4: Update.
3124 * gnulib/import/m4/multiarch.m4: Update.
3125 * gnulib/import/m4/nocrash.m4: Update.
3126 * gnulib/import/m4/off_t.m4: Update.
3127 * gnulib/import/m4/onceonly.m4: Update.
3128 * gnulib/import/m4/open-cloexec.m4: Update.
3129 * gnulib/import/m4/open.m4: Update.
3130 * gnulib/import/m4/openat.m4: Update.
3131 * gnulib/import/m4/opendir.m4: Update.
3132 * gnulib/import/m4/pathmax.m4: Update.
3133 * gnulib/import/m4/rawmemchr.m4: Update.
3134 * gnulib/import/m4/readdir.m4: Update.
3135 * gnulib/import/m4/readlink.m4: Update.
3136 * gnulib/import/m4/realloc.m4: Update.
3137 * gnulib/import/m4/rename.m4: Update.
3138 * gnulib/import/m4/rewinddir.m4: Update.
3139 * gnulib/import/m4/rmdir.m4: Update.
3140 * gnulib/import/m4/save-cwd.m4: Update.
3141 * gnulib/import/m4/secure_getenv.m4: Update.
3142 * gnulib/import/m4/setenv.m4: Update.
3143 * gnulib/import/m4/signal_h.m4: Update.
3144 * gnulib/import/m4/ssize_t.m4: Update.
3145 * gnulib/import/m4/stat-time.m4: Update.
3146 * gnulib/import/m4/stat.m4: Update.
3147 * gnulib/import/m4/std-gnu11.m4: Update.
3148 * gnulib/import/m4/stdbool.m4: Update.
3149 * gnulib/import/m4/stddef_h.m4: Update.
3150 * gnulib/import/m4/stdint.m4: Update.
3151 * gnulib/import/m4/stdio_h.m4: Update.
3152 * gnulib/import/m4/stdlib_h.m4: Update.
3153 * gnulib/import/m4/strchrnul.m4: Update.
3154 * gnulib/import/m4/strdup.m4: Update.
3155 * gnulib/import/m4/strerror.m4: Update.
3156 * gnulib/import/m4/string_h.m4: Update.
3157 * gnulib/import/m4/strstr.m4: Update.
3158 * gnulib/import/m4/strtok_r.m4: Update.
3159 * gnulib/import/m4/sys_socket_h.m4: Update.
3160 * gnulib/import/m4/sys_stat_h.m4: Update.
3161 * gnulib/import/m4/sys_time_h.m4: Update.
3162 * gnulib/import/m4/sys_types_h.m4: Update.
3163 * gnulib/import/m4/tempname.m4: Update.
3164 * gnulib/import/m4/time_h.m4: Update.
3165 * gnulib/import/m4/unistd-safer.m4: Update.
3166 * gnulib/import/m4/unistd_h.m4: Update.
3167 * gnulib/import/m4/warn-on-use.m4: Update.
3168 * gnulib/import/m4/wchar_h.m4: Update.
3169 * gnulib/import/m4/wchar_t.m4: Update.
3170 * gnulib/import/m4/wctype_h.m4: Update.
3171 * gnulib/import/m4/wint_t.m4: Update.
3172 * gnulib/import/malloc.c: Update.
3173 * gnulib/import/malloc/scratch_buffer.h: Update.
3174 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3175 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3176 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3177 * gnulib/import/malloca.c: Update.
3178 * gnulib/import/malloca.h: Update.
3179 * gnulib/import/malloca.valgrind: Update.
3180 * gnulib/import/math.in.h: Update.
3181 * gnulib/import/mbrtowc.c: Update.
3182 * gnulib/import/mbsinit.c: Update.
3183 * gnulib/import/mbsrtowcs-impl.h: Update.
3184 * gnulib/import/mbsrtowcs-state.c: Update.
3185 * gnulib/import/mbsrtowcs.c: Update.
3186 * gnulib/import/memchr.c: Update.
3187 * gnulib/import/memmem.c: Update.
3188 * gnulib/import/mempcpy.c: Update.
3189 * gnulib/import/memrchr.c: Update.
3190 * gnulib/import/mkdir.c: Update.
3191 * gnulib/import/mkstemp.c: Update.
3192 * gnulib/import/msvc-inval.c: Update.
3193 * gnulib/import/msvc-inval.h: Update.
3194 * gnulib/import/msvc-nothrow.c: Update.
3195 * gnulib/import/msvc-nothrow.h: Update.
3196 * gnulib/import/open.c: Update.
3197 * gnulib/import/openat-die.c: Update.
3198 * gnulib/import/openat-priv.h: Update.
3199 * gnulib/import/openat-proc.c: Update.
3200 * gnulib/import/openat.c: Update.
3201 * gnulib/import/openat.h: Update.
3202 * gnulib/import/opendir.c: Update.
3203 * gnulib/import/pathmax.h: Update.
3204 * gnulib/import/pipe-safer.c: Update.
3205 * gnulib/import/rawmemchr.c: Update.
3206 * gnulib/import/readdir.c: Update.
3207 * gnulib/import/readlink.c: Update.
3208 * gnulib/import/realloc.c: Update.
3209 * gnulib/import/ref-add.sin: Update.
3210 * gnulib/import/ref-del.sin: Update.
3211 * gnulib/import/rename.c: Update.
3212 * gnulib/import/rewinddir.c: Update.
3213 * gnulib/import/rmdir.c: Update.
3214 * gnulib/import/same-inode.h: Update.
3215 * gnulib/import/save-cwd.c: Update.
3216 * gnulib/import/save-cwd.h: Update.
3217 * gnulib/import/scratch_buffer.h: Update.
3218 * gnulib/import/secure_getenv.c: Update.
3219 * gnulib/import/setenv.c: Update.
3220 * gnulib/import/signal.in.h: Update.
3221 * gnulib/import/stat-time.c: Update.
3222 * gnulib/import/stat-time.h: Update.
3223 * gnulib/import/stat-w32.c: Update.
3224 * gnulib/import/stat-w32.h: Update.
3225 * gnulib/import/stat.c: Update.
3226 * gnulib/import/stdbool.in.h: Update.
3227 * gnulib/import/stddef.in.h: Update.
3228 * gnulib/import/stdint.in.h: Update.
3229 * gnulib/import/stdio.in.h: Update.
3230 * gnulib/import/stdlib.in.h: Update.
3231 * gnulib/import/str-two-way.h: Update.
3232 * gnulib/import/strchrnul.c: Update.
3233 * gnulib/import/strdup.c: Update.
3234 * gnulib/import/streq.h: Update.
3235 * gnulib/import/strerror-override.c: Update.
3236 * gnulib/import/strerror-override.h: Update.
3237 * gnulib/import/strerror.c: Update.
3238 * gnulib/import/string.in.h: Update.
3239 * gnulib/import/stripslash.c: Update.
3240 * gnulib/import/strnlen1.c: Update.
3241 * gnulib/import/strnlen1.h: Update.
3242 * gnulib/import/strstr.c: Update.
3243 * gnulib/import/strtok_r.c: Update.
3244 * gnulib/import/sys_stat.in.h: Update.
3245 * gnulib/import/sys_time.in.h: Update.
3246 * gnulib/import/sys_types.in.h: Update.
3247 * gnulib/import/tempname.c: Update.
3248 * gnulib/import/tempname.h: Update.
3249 * gnulib/import/time.in.h: Update.
3250 * gnulib/import/unistd--.h: Update.
3251 * gnulib/import/unistd-safer.h: Update.
3252 * gnulib/import/unistd.in.h: Update.
3253 * gnulib/import/unsetenv.c: Update.
3254 * gnulib/import/verify.h: Update.
3255 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3256 * gnulib/import/wchar.in.h: Update.
3257 * gnulib/import/wctype.in.h: Update.
3258 * gnulib/import/xalloc-oversized.h: Update.
3259 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3260 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3261
b0f492b9
GB
32622018-08-16 Gary Benson <gbenson@redhat.com>
3263
3264 PR gdb/13000:
3265 * gdb/main.c (captured_main_1): Exit with nonzero status
3266 in batch mode if the last command to be executed failed.
3267 * NEWS: Mention the above.
3268
2362e7f7
SM
32692018-08-29 Simon Marchi <simon.marchi@ericsson.com>
3270
3271 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3272 end of warning message.
3273
4f4aedeb
AH
32742018-08-29 Alan Hayward <alan.hayward@arm.com>
3275
3276 PR gdb/22943:
3277 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
3278 (aarch64_extract_return_value): Use
3279 aapcs_is_vfp_call_or_return_candidate.
3280 (aarch64_return_in_memory): Likewise.
3281 (aarch64_store_return_value): Likewise.
3282
0e745c60
AH
32832018-08-29 Alan Hayward <alan.hayward@arm.com>
3284
3285 * aarch64-tdep.c
3286 (aapcs_is_vfp_call_or_return_candidate): Make static
3287 (pass_in_v_or_stack): Remove function.
3288 (pass_in_v_vfp_candidate): New function.
3289 (aarch64_push_dummy_call): Check for float register candidates.
3290
ea92689a
AH
32912018-08-29 Alan Hayward <alan.hayward@arm.com>
3292
3293 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
3294 (aapcs_is_vfp_call_or_return_candidate_1): New function.
3295 (aapcs_is_vfp_call_or_return_candidate): Likewise.
3296
ad202fcc
SM
32972018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3298
3299 PR build/23399
3300 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
3301 (struct ipa_sym_addresses): Rename to...
3302 (struct ipa_sym_addresses_common): ... this.
3303 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
3304
5fe3f3e4
TT
33052018-08-28 Tom Tromey <tom@tromey.com>
3306
3307 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3308 (token_fifo): Now a std::vector.
3309 (yylex, c_parse): Update.
3310 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3311 (token_fifo): Now a std::vector.
3312 (yylex, d_parse): Update.
3313 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3314 (token_fifo): Now a std::vector.
3315 (yylex, go_parse): Update.
3316
858d8004
SM
33172018-08-28 Simon Marchi <simon.marchi@ericsson.com>
3318
3319 * parser-defs.h (struct type_stack) <elements>: Change type to
3320 std::vector<union type_stack_elt>.
3321 <depth, size>: Remove.
3322 * parse.c (parse_exp_in_context_1): Adjust.
3323 (type_stack_reserve): Remove.
3324 (check_type_stack_depth): Remove.
3325 (insert_into_type_stack): Adjust to std::vector.
3326 (insert_type): Likewise.
3327 (push_type): Likewise.
3328 (push_type_int): Likewise.
3329 (insert_type_address_space): Likewise.
3330 (pop_type): Likewise.
3331 (pop_type_int): Likewise.
3332 (pop_typelist): Likewise.
3333 (pop_type_stack): Likewise.
3334 (append_type_stack): Likewise.
3335 (push_type_stack): Likewise.
3336 (get_type_stack): Likewise.
3337 (type_stack_cleanup): Likewise.
3338 (push_typelist): Likewise.
3339 (follow_types): Likewise.
3340 (_initialize_parse): Likewise.
3341
416a69af
HAQ
33422018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
3343
3344 * NEWS: Mention csky target.
3345
9d24df82
HAQ
33462018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
3347 Hafiz Abid Qadeer <abidh@codesourcery.com>
3348 Don Breazeal <donb@codesourcery.com>
3349
3350 * csky-linux-tdep.c: New file.
3351 * csky-tdep.c: Likewise.
3352 * csky-tdep.h: Likewise.
3353 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
3354 csky-tdep.o.
3355 (HFILES_NO_SRCDIR): Add csky-tdep.h.
3356 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
3357 * configure.tgt: Add csky support.
3358
3bf9c013
JV
33592018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
3360
3361 * python/py-framefilter.c (py_print_frame): Print frame architecture
3362 when printing on an MI output.
3363
d3d8724a
TT
33642018-08-27 Tom Tromey <tom@tromey.com>
3365
3366 PR build/23087:
3367 * configure: Rebuild.
3368 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
3369
1885053b
TT
33702018-08-27 Tom Tromey <tom@tromey.com>
3371
3372 * aarch64-linux-tdep.c
3373 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
3374 casts to int.
3375
8406672e
TT
33762018-08-27 Tom Tromey <tom@tromey.com>
3377
3378 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
3379 unsigned.
3380 (ppc64_standard_linkage1, ppc64_standard_linkage2)
3381 (ppc64_standard_linkage3, ppc64_standard_linkage4)
3382 (ppc64_standard_linkage5, ppc64_standard_linkage6)
3383 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
3384 unsigned.
3385
ec40cf90
TT
33862018-08-27 Tom Tromey <tom@tromey.com>
3387
3388 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
3389 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
3390
7bc02706
TT
33912018-08-27 Tom Tromey <tom@tromey.com>
3392
3393 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
3394 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
3395 ULONGEST_MAX.
3396 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
3397 ULONGEST_MAX.
3398 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
3399 ULONGEST_MAX.
3400 * sparc-linux-tdep.c (sparc32_linux_sigframe)
3401 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
3402 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
3403 ULONGEST_MAX.
3404 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
3405 (ppc64_linux_sigaction_tramp_frame)
3406 (ppc32_linux_sighandler_tramp_frame)
3407 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3408 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
3409 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
3410 * mn10300-linux-tdep.c (am33_linux_sigframe)
3411 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
3412 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
3413 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3414 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3415 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
3416 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
3417 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
3418 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
3419 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
3420 * microblaze-linux-tdep.c
3421 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3422 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
3423 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
3424 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
3425 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
3426 * common/common-types.h (ULONGEST_MAX): New define.
3427 (CORE_ADDR_MAX): Fix formatting.
3428 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
3429 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
3430 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
3431 (arm_linux_rt_sigreturn_tramp_frame)
3432 (arm_eabi_linux_sigreturn_tramp_frame)
3433 (arm_eabi_linux_rt_sigreturn_tramp_frame)
3434 (thumb2_eabi_linux_sigreturn_tramp_frame)
3435 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
3436 (arm_linux_restart_syscall_tramp_frame)
3437 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
3438 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
3439 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
3440 ULONGEST_MAX.
3441 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
3442
70ab8ccd
TT
34432018-08-27 Tom Tromey <tom@tromey.com>
3444
3445 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
3446 CORE_ADDR_MAX.
3447 * mips-tdep.c (mips_deal_with_atomic_sequence)
3448 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
3449 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
3450 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
3451 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
3452 CORE_ADDR_MAX.
3453 * aarch64-tdep.c (aarch64_software_single_step): Use
3454 CORE_ADDR_MAX.
3455
896a7aa6
TT
34562018-08-27 Tom Tromey <tom@tromey.com>
3457
3458 * linespec.c (complete_linespec_component): Add cast to "char".
3459 * completer.c (completion_tracker::build_completion_result): Add
3460 cast to "char".
3461
dd33d41d
SM
34622018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3463
3464 * solist.h (struct solist, struct target_so_ops): Fix
3465 indentation.
3466
c645cda4
SM
34672018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3468
3469 * ada-tasks.c (ada_task_info_s): Remove typedef.
3470 (DEF_VEC_O(ada_task_info_s)): Remove.
3471 (struct ada_tasks_inferior_data): Initialize fields.
3472 <task_list>: Make an std::vector.
3473 (get_ada_tasks_inferior_data): Allocate with new.
3474 (ada_get_task_number): Adjust.
3475 (get_task_number_from_id): Likewise.
3476 (valid_task_id): Likewise.
3477 (ada_get_task_info_from_ptid): Likewise.
3478 (iterate_over_live_ada_tasks): Likewise.
3479 (add_ada_task): Likewise.
3480 (read_known_tasks): Likewise.
3481 (ada_build_task_list): Likewise.
3482 (print_ada_task_info): Likewise.
3483 (info_task): Likewise.
3484 (task_command_1): Likewise.
3485
39e7af3e
SM
34862018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3487
3488 * ada-lang.c (add_angle_brackets): Return std::string.
3489
bbbbbcee
SM
34902018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
3491
3492 * python/py-threadevent.c (py_get_event_thread): Initialize
3493 pythread.
3494
d98fc15b
PA
34952018-08-24 Pedro Alves <palves@redhat.com>
3496
3497 * python/py-bpevent.c (create_breakpoint_event_object): Use
3498 copy-initialization.
3499 * python/py-continueevent.c (emit_continue_event): Use
3500 copy-initialization.
3501 * python/py-exitedevent.c (create_exited_event_object): Return a
3502 gdbpy_ref<>.
3503 (emit_exited_event): Use copy-initialization.
3504 * python/py-inferior.c (python_new_inferior)
3505 (python_inferior_deleted, add_thread_object): Use
3506 copy-initialization.
3507 * python/py-infevents.c (create_inferior_call_event_object)
3508 (create_register_changed_event_object)
3509 (create_memory_changed_event_object): Return a gdbpy_ref<>.
3510 (emit_inferior_call_event, emit_memory_changed_event)
3511 (emit_register_changed_event): Use copy-initialization.
3512 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3513 Return a gdbpy_ref<>.
3514 (emit_new_objfile_event): Use copy-initialization.
3515 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
3516 (emit_clear_objfiles_event): Use copy-initialization.
3517 * python/py-signalevent.c (create_signal_event_object): Use
3518 copy-initialization.
3519 * python/py-threadevent.c (create_thread_event_object): Use
3520 copy-initialization.
3521
da3c8738
PA
35222018-08-24 Pedro Alves <palves@redhat.com>
3523 Simon Marchi <simon.marchi@ericsson.com>
3524
3525 PR gdb/23379
3526 * python/py-continueevent.c: Include "gdbthread.h".
3527 (create_continue_event_object): Add intro comment. Add 'ptid'
3528 parameter. Use it to find thread to pass to
3529 create_thread_event_object.
3530 (emit_continue_event): Pass PTID down to
3531 create_continue_event_object.
3532 * python/py-event.h (py_get_event_thread): Declare.
3533 (create_thread_event_object): Remove default from 'thread'
3534 parameter.
3535 * python/py-stopevent.c (create_stop_event_object): Use
3536 py_get_event_thread.
3537 * python/py-threadevent.c (get_event_thread): Rename to ...
3538 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
3539 and use it to find the thread.
3540 (create_thread_event_object): Assert that THREAD isn't null.
3541 Don't find the event thread here.
3542
26457a9c
KB
35432018-08-23 Kevin Buettner <kevinb@redhat.com>
3544
3545 * block.h (blockrange, blockranges): New struct declarations.
3546 (struct block): Add new field named `ranges'.
3547 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
3548 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
3549 macros for accessing ranges in struct block.
3550 (make_blockranges): New declaration.
3551 block.c (make_blockranges): New function.
2d5f09ec
KB
3552 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
3553 for block.
fc811edd
KB
3554 * symtab.h (find_pc_partial_function): Add new parameter `block'.
3555 * blockframe.c (cache_pc_function_block): New static global.
3556 (clear_pc_function_cache): Clear cache_pc_function_block.
3557 (find_pc_partial_function): Move comment to symtab.h. Add
3558 support for non-contiguous blocks.
e9480230
KB
3559 * cli/cli-cmds.c (block.h): Include.
3560 (print_disassembly): Handle printing of non-contiguous blocks.
3561 (disassemble_current_function): Likewise.
3562 (disassemble_command): Likewise.
26457a9c 3563
2b1ffcfd
KB
3564 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
3565 BLOCK_START.
3566 * blockframe.c (get_pc_function_start): Likewise.
3567 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
3568 (gcc_symbol_address): Likewise.
3569 * compile/compile-object-run.c (compile_object_run): Likewise.
3570 * compile/compile.c (get_expr_block_and_pc): Likewise.
3571 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
3572 (func_addr_to_tail_call_list): Likewise.
3573 * findvar.c (default_read_var_value): Likewise.
3574 * inline-frame.c (inline_frame_this_id): Likewise.
3575 (skip-inline_frames): Likewise.
3576 * infcmd.c (until_next_command): Likewise.
3577 * linespec.c (convert_linespec_to_sals): Likewise.
3578 * parse.c (parse_exp_in_context_1): Likewise.
3579 * printcmd.c (build_address_symbolic): likewise.
3580 (info_address_command): Likewise.
3581 symtab.c (find_function_start_sal): Likewise.
3582 (skip_prologue_sal): Likewise.
3583 (find_function_alias_target): Likewise.
3584 (find_gnu_ifunc): Likewise.
3585 * stack.c (find_frame_funname): Likewise.
3586 * symtab.c (fixup_symbol_section): Likewise.
3587 (find_function_start_sal): Likewise.
3588 (skip_prologue_sal): Likewsie.
3589 (find_function_alias_target): Likewise.
3590 (find_gnu_ifunc): Likewise.
3591 * tracepoint.c (info_scope_command): Likewise.
3592 * value.c (value_fn_field): Likewise.
3593
9644dc3a
KB
3594 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
3595 in place of find_pc_partial_function.
3596 * blockframe.c (find_function_entry_range_from_pc): New function.
3597 * symtab.h (find_function_entry_range_from_pc): Declare and document.
3598 * objfiles.c (objfile_relocate1): Relocate start and end addresses
3599 for each range in a block.
3600
3601
12a0d0f6
XR
36022018-08-23 Xavier Roirand <roirand@adacore.com>
3603
3604 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
3605 incrementation.
3606
d1012b8e
SM
36072018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3608
3609 * solib-svr4.c (read_program_headers_from_bfd): Return
3610 gdb::optional<gdb::byte_vector>.
3611 (svr4_exec_displacement): Adjust.
3612
17658d46
SM
36132018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3614
3615 * solib-svr4.c (read_program_header): Return
3616 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
3617 (find_program_interpreter): Return
3618 gdb::optional<gdb::byte_vector>.
3619 (scan_dyntag_auxv): Adjust.
3620 (enable_break): Adjust.
3621 (svr4_exec_displacement): Adjust.
3622
ae739fe7
SM
36232018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3624
3625 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
3626 * inf-child.c (inf_child_target::terminal_save_inferior): New.
3627
467dc1e2
SM
36282018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3629
3630 * guile/scm-string.c (gdbscm_scm_from_printf): Use
3631 string_vprintf.
3632 * guile/scm-utils.c (gdbscm_printf): Likewise.
3633 * serial.c (serial_printf): Likewise.
3634 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3635
6d52907e
JV
36362018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
3637
3638 * stack.c (print_frame): Print frame architecture when printing on
3639 an MI output.
3640 * NEWS: Mention new "arch" attribute in frame output.
3641
9758a8f8
AH
36422018-08-21 Alan Hayward <alan.hayward@arm.com>
3643
3644 * arch/aarch64.h (aarch64_regnum): Update comment.
3645
1461bdac
AH
36462018-08-21 Alan Hayward <alan.hayward@arm.com>
3647
3648 * NEWS: Add SVE to 8.2 section.
3649
4895f384
PA
36502018-08-21 Pedro Alves <palves@redhat.com>
3651
3652 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3653 out from gdbscm_parse_function_args.
3654 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3655 gdbscm_parse_function_args_1.
3656
a4497d2f
SM
36572018-08-21 Simon Marchi <simon.marchi@ericsson.com>
3658
3659 PR gdb/17816
3660 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3661 operator.
3662
c44deb73
SM
36632018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
3664
3665 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3666
be2d111a
MS
36672018-08-19 Michael Spang <spang@google.com>
3668
3669 PR gdb/11786
3670 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3671 for PT_TLS segments.
3672
a6b786da
KB
36732018-08-18 Kevin Buettner <kevinb@redhat.com>
3674
3675 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3676 dwarf_variable_value.
3677 * dwarf2-frame.c (class dwarf_expr_executor):
3678 Add override for dwarf_variable_value.
3679 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3680 (class symbol_needs_eval_context): Likewise.
3681 (indirect_synthetic_pointer): Add forward declaration.
3682 (sect_variable_value): New function.
3683 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3684 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3685 for DW_OP_GNU_variable_value.
3686
89fbedf3
TT
36872018-08-16 Tom Tromey <tom@tromey.com>
3688
3689 * top.c (read_command_file): Update.
3690 (command_line_input): Remove "repeat" argument.
3691 * ada-lang.c (get_selections): Update.
3692 * linespec.c (decode_line_2): Update.
3693 * defs.h (command_line_input): Remove argument.
3694 * cli/cli-script.c (read_next_line): Update.
3695 * python/py-gdb-readline.c: Update.
3696
12582533
TT
36972018-08-17 Tom Tromey <tom@tromey.com>
3698
3699 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3700 command_line_input.
3701
49514353
TT
37022018-08-15 Tom Tromey <tom@tromey.com>
3703
3704 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3705
26fb3983
JV
37062018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3707
3708 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3709 If used, use find_pc_partial_function to find address range
3710 to disassemble.
3711 * mi/mi-main.c (mi_cmd_list_features): Report
3712 "data-disassemble-a-option" feature.
3713 * NEWS: Mention new -data-disassemble option -a.
3714
a97b53dd
TT
37152018-08-13 Tom Tromey <tom@tromey.com>
3716
3717 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3718
0c76e06d
AH
37192018-08-13 Alan Hayward <alan.hayward@arm.com>
3720
3721 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3722 (aarch64_linux_collect_sve_regset): Likewise.
3723 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3724 * regcache.h (regcache_map_entry_size): New function.
3725
b7fd65b9
AH
37262018-08-13 Alan Hayward <alan.hayward@arm.com>
3727
3728 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3729 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3730 (SVE_HEADER_VL_LENGTH): Likewise.
3731 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3732 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3733 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3734 (SVE_HEADER_SIZE_OFFSET): Likewise.
3735 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3736 (SVE_HEADER_VL_OFFSET): Likewise.
3737 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3738 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3739 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3740 (SVE_HEADER_SIZE): Likewise.
3741 (aarch64_linux_core_read_vq): Add function.
3742 (aarch64_linux_core_read_description): Check for SVE section.
3743
a616bb94
AH
37442018-08-13 Alan Hayward <alan.hayward@arm.com>
3745
3746 * aarch64-fbsd-tdep.c
3747 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3748 collect_size.
3749 * aarch64-linux-tdep.c
3750 (aarch64_linux_iterate_over_regset_sections): Likewise.
3751 * alpha-linux-tdep.c
3752 (alpha_linux_iterate_over_regset_sections):
3753 * alpha-nbsd-tdep.c
3754 (alphanbsd_iterate_over_regset_sections): Likewise.
3755 * amd64-fbsd-tdep.c
3756 (amd64fbsd_iterate_over_regset_sections): Likewise.
3757 * amd64-linux-tdep.c
3758 (amd64_linux_iterate_over_regset_sections): Likewise.
3759 * arm-bsd-tdep.c
3760 (armbsd_iterate_over_regset_sections): Likewise.
3761 * arm-fbsd-tdep.c
3762 (arm_fbsd_iterate_over_regset_sections): Likewise.
3763 * arm-linux-tdep.c
3764 (arm_linux_iterate_over_regset_sections): Likewise.
3765 * corelow.c (get_core_registers_cb): Likewise.
3766 (core_target::fetch_registers): Likewise.
3767 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3768 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3769 * gdbarch.h (void): Regenerate.
3770 * gdbarch.sh: Add supply_size and collect_size.
3771 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3772 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3773 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3774 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3775 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3776 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3777 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3778 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3779 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3780 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3781 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3782 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3783 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3784 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3785 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3786 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3787 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3788 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3789 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3790 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3791 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3792 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3793 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3794 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3795 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3796 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3797 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3798 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3799 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3800 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3801
a9925d4f
SM
38022018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3803
3804 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3805 with string_printf.
3806
ad3a68e9
KS
38072018-08-10 Keith Seitz <keiths@redhat.com>
3808
3809 * compile/compile-c-support.c (add_code_header, add_code_footer):
3810 Move into policy class.
3811 (c_push_user_expression, pop_user_expression_nop)
3812 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3813 (compile_program): New host class.
3814 (c_compile_program): New typedef.
3815 (c_compute_porgram): Use c_compile_program.
3816
0cfbf430
KS
38172018-08-10 Keith Seitz <keiths@redhat.com>
3818
3819 * compile/compile-internal.h (compile_instance::~compile_instance):
3820 Remove calls to htab_delete.
3821 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3822 * compile.c (compile_instance::compile_instance): Initialize
3823 htab unique pointers.
3824 (compile_instance::get_cached_type, compile_instance::insert_type)
3825 (compile_instance::error_symbol_once): Update for unique_ptr.
3826
946d3d10
KS
38272018-08-10 Keith Seitz <keiths@redhat.com>
3828
3829 * compile/compile-c-symbols.c (struct symbol_error)
3830 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3831 (compile_instance::insert_symbol_error)
3832 (compile_instance::error_symbol_once): Move to ...
3833 * compile/compile.c: ... here.
3834
9cdfd9a2
KS
38352018-08-10 Keith Seitz <keiths@redhat.com>
3836
3837 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3838 instead of `new_compile_instance'.
3839 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3840 Update description.
3841 If the symbol error map is not initialized, create it.
3842 (generate_c_for_for_one_symbol): Do not check/initialize
3843 the symbol error map.
3844 * compile/compile-c-types.c (compile_c_instance): Make a class.
3845 Update all callers.
3846 (compile_instance::compile_instance): Initialize the type cache.
3847 (get_cached_type): New function.
3848 (insert_type): Update description.
3849 (compile_c_instance::m_default_cflags): Define.
3850 (convert_type): Update description. Use get_cached_type.
3851 (delete_instance): Moved to destructor.
3852 (new_compile_instance): Moved to constructor.
3853 * compile/compile-c.h (compile_c_instance): Make class inheriting
3854 from compile_instance.
3855 <base>: Remove field.
3856 <type_map, symbol_err_map>: Move to base class.
3857 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3858 * compile/compile-internal.h (compile_instance): Make class.
3859 <type_map_t, symbol_err_map_t>: Define.
3860 <fe>: Rename to `m_gcc_fe'.
3861 <scope, block, gcc_target_options>: Add `m_' prefix.
3862 <m_type_map, m_symbol_err_map>: New fields, moved from
3863 compile_c_instance.
3864 <destroy>: Remove.
3865 (convert_type, new_compile_instance): Remove.
3866 * compile/compile.c (cleanup_compile_instance): Remove.
3867 (compile_to_object): Use unique_ptr to eliminate cleanups.
3868 (compile_instance::set_print_callback, compile_instance::version)
3869 (compile_instance::set_verbose)
3870 (compile_instance::set_driver_filename)
3871 (compile_instance::set_triplet_regexp)
3872 (compile_instance::set_arguments)
3873 (compile_instance::set_source_file)
3874 (compile_instance::compile): Define.
3875
18cdc6d8
KS
38762018-08-10 Keith Seitz <keiths@redhat.com>
3877
3878 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3879 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3880 gcc-c-fe.def to define C plugin.
3881 (delete_instance): Delete `c_plugin'.
3882 (new_compile_instance): Initialize `c_plugin'.
3883 * compile/compile-c.h: Include gcc_c_plugin.h.
3884 (struct compile_c_instance) <c_plugin>: New member.
3885 * gcc-c-plugin.h: New file.
3886 Update all callers with API change.
3887
b7dc48b4
KS
38882018-08-10 Keith Seitz <keiths@redhat.com>
3889
3890 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3891 (HFILES_NO_SRCDIR): ... to here.
3892 Add compile-internal.h and compile-c.h.
3893 * compile/compile-c-support.c: Include compile-c.h.
3894 * compile/compile-c-symbols.c: Include compile-c.h.
3895 (generate_c_for_variable_locations): Update comment.
3896 * compile/compile-c-types.c: Include compile-c.h.
3897 * compile/compile-c.h: New file -- moved C language declarations
3898 from other files here.
3899 * compile/compile-internal.h: Do not include hashtab.h or
3900 common/enum-flags.h.
3901 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3902 (gcc_convert_symbol, gcc_symbol_address)
3903 (generate_c_for_variable_locations, c_get_mode_for_size)
3904 (c_get_range_decl_name): Definitions moved to compile-c.h.
3905 * compile/compile-loc2c.c: Include compile-c.h.
3906
6f36b6d2
KS
39072018-08-10 Keith Seitz <keiths@redhat.com>
3908
3909 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3910 (c_symbol_substitution_name): ... this.
3911 Update all callers.
3912
bd923e51
KS
39132018-08-10 Keith Seitz <keiths@redhat.com>
3914
3915 * compile/compile-c-support.c (c_compute_program): Use
3916 unique_xmalloc_ptr to eliminate cleanup.
3917 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3918 Return a unique_xmalloc_ptr and eliminate cleanup.
3919 * compile/compile-internal.h (generate_c_for_variable_locations):
3920 Return unique_xmalloc_ptr and update description.
3921
dbd534fe
AH
39222018-08-10 Alan Hayward <alan.hayward@arm.com>
3923
3924 * corelow.c (core_target::get_core_register_section): Rename
3925 min_size to section_min_size.
3926
90ad3654
JW
39272018-08-09 Jim Wilson <jimw@sifive.com>
3928
52a187f8
JW
3929 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3930 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3931 * NEWS: Mention new GNU/Linux RISC-V target.
3932 * configure.host: Add riscv*-*-linux*.
3933 * configure.nat: Add riscv*.
3934 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 3935 * riscv-linux-nat.c: New file.
90ad3654
JW
3936 * riscv-linux-tdep.c: New file.
3937
aff4e175
AB
39382018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3939
3940 * infrun.c (resume): Make static, add forward declaration.
3941 (proceed): Update header comment.
3942 * infrun.h (resume): Delete declaration.
3943
06ab9219
TT
39442018-08-09 Tom Tromey <tom@tromey.com>
3945
3946 * riscv-tdep.h: Minor formatting fixes.
3947
83c8d318
SM
39482018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3949
3950 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3951 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3952 (test_mkdir_recursive): Likewise.
3953 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3954
5ff2bbae
AB
39552018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3956
3957 * valarith.c (value_subscripted_rvalue): If an array is not in
3958 memory, and we don't know the upper bound, then we can't know that
3959 the requested element exists or not.
3960
fdbac7d8
SM
39612018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3962
3963 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3964 (target_options_to_string): Add comment.
3965
83202f7a
TT
39662018-08-08 Tom Tromey <tom@tromey.com>
3967
3968 * unittests/scoped_mmap-selftests.c: Check result of "write".
3969
411baa47
JW
39702018-08-08 Jim Wilson <jimw@sifive.com>
3971
5c720ed8
JW
3972 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3973 (decode_register_index_short): New.
3974 (decode_j_type_insn, decode_cj_type_insn): New.
3975 (decode_b_type_insn, decode_cb_type_insn): New.
3976 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3977 local xlen. Check xlen when decoding ambiguous compressed insns. In
3978 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3979 is_c_sw_insn instead of is_sw_insn.
3980 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3981 (riscv_software_single_step): New.
3982 * riscv-tdep.h (riscv_software_single_step): Declare.
3983
411baa47
JW
3984 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3985 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3986
9d4a934c
AB
39872018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3988
3989 PR gdb/18050:
3990 * target.c (dispose_inferior): Don't dispose of inferiors that are
3991 already killed.
3992
ff36536c
SN
39932018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3994
3995 * remote.c (remote_target::download_tracepoint): Change char* to
3996 const char*.
3997
09ce46f2
SM
39982018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3999
4000 * target.h (target_options_to_string): Return an std::string.
4001 * target.c (str_comma_list_concat_elem): Return void, use
4002 std::string.
4003 (do_option): Likewise.
4004 (target_options_to_string): Return an std::string.
4005 * linux-nat.c (linux_nat_target::wait): Adjust.
4006 * target-debug.h (target_debug_print_options): Adjust.
4007
9c612964
TT
40082018-08-07 Tom Tromey <tom@tromey.com>
4009
4010 * Makefile.in (CPPFLAGS): New variable.
4011 (INTERNAL_CPPFLAGS): Use it.
4012
7d11235d
SM
40132018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4014
4015 * NEWS: Mention the index cache.
4016
87d6a7aa
SM
40172018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4018
4019 * common/pathstuff.h (get_standard_cache_dir): New.
4020 * common/pathstuff.c (get_standard_cache_dir): New.
4021 * build-id.h (build_id_to_string): New.
4022 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4023 DEBUG_STR_SUFFIX): Move to here.
4024 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4025 DEBUG_STR_SUFFIX): Move from there.
4026 (write_psymtabs_to_index): Make non-static, add basename
4027 parameter. Write to temporary files, rename when done.
4028 (save_gdb_index_command): Adjust call to
4029 write_psymtabs_to_index.
4030 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4031 field.
4032 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4033 (get_gdb_index_contents_from_cache): New.
4034 (get_gdb_index_contents_from_cache_dwz): New.
4035 (dwarf2_initialize_objfile): Read index from cache.
4036 (dwarf2_build_psymtabs): Save to index.
4037 * dwarf-index-cache.h: New file.
4038 * dwarf-index-cache.c: New file.
4039 * dwarf-index-write.h: New file.
4040
8a99096f
SM
40412018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4042
4043 * gnulib/aclocal.m4: Re-generate.
4044 * gnulib/config.in: Re-generate.
4045 * gnulib/configure: Re-generate.
4046 * gnulib/import/Makefile.am: Re-generate.
4047 * gnulib/import/Makefile.in: Re-generate.
4048 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4049 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4050 * gnulib/import/m4/mkdir.m4: New file.
4051 * gnulib/import/mkdir.c: New file.
4052 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4053 module.
4054
5c831bb1
SM
40552018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4056
4057 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
4058 * common/scoped_mmap.c: New file.
4059 * common/scoped_mmap.h (destroy): New method.
4060 (~scoped_mmap, reset): Use destroy.
4061 (scoped_mmap): New move constructor.
4062 (mmap_file): New declaration.
4063 * unittests/scoped_mmap-selftests.c (test_normal,
4064 test_invalid_filename, run_tests): New functions.
4065 (_initialize_scoped_mmap_selftests): Register selftest.
4066
4485a1c1
SM
40672018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4068
4069 * dwarf2read.c (read_gdb_index_from_section): Rename to...
4070 (read_gdb_index_from_buffer): ... this. Remove section
4071 parameter, add buffer parameter.
4072 (get_gdb_index_contents_ftype,
4073 get_gdb_index_contents_dwz_ftype): New typedefs.
4074 (dwarf2_read_gdb_index): Add callback parameters to get the
4075 index contents.
4076 (get_gdb_index_contents_from_section): New.
4077 (dwarf2_initialize_objfile): Update call to
4078 dwarf2_read_gdb_index.
4079
528e1572
SM
40802018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4081
4082 * common/filestuff.h (gdb_fopen_cloexec): New overload.
4083 (gdb_open_cloexec): Likewise.
4084 * nat/linux-osdata.c (command_from_pid): Use string_printf.
4085 (commandline_from_pid): Likewise.
4086 (linux_xfer_osdata_threads): Likewise.
4087 (linux_xfer_osdata_fds): Likewise.
4088 * ada-lang.c (is_package_name): Likewise.
4089 * auxv.c (procfs_xfer_auxv): Likewise.
4090 * breakpoint.c (print_one_breakpoint_location): Use
4091 uiout::field_fmt.
4092 (print_one_catch_solib): Use string_printf.
4093 * coff-pe-read.c (add_pe_exported_sym): Likewise.
4094 (add_pe_forwarded_sym): Likewise.
4095 * dwarf2read.c (create_type_unit_group): Likewise.
4096 (build_error_marker_type): Likewise.
4097 * infcall.c (get_function_name): Likewise.
4098 * valprint.c (print_converted_chars_to_obstack): Likewise.
4099 * xtensa-tdep.c (xtensa_register_type): Likewise.
4100
a7f25a84
SM
41012018-08-06 Simon Marchi <simon.marchi@ericsson.com>
4102
4103 * remote.c (remote_target::download_tracepoint): Fix format
4104 string errors.
4105
296956be
PFC
41062018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4107
4108 * tracefile.c: Include common/byte-vector.h.
4109 (trace_save): Change type of buf to gdb::byte_vector. Initialize
4110 with trace_regblock_size if needed. Update uses of buf.
4111
a04b9d62
PFC
41122018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4113
4114 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
4115 std::vector<unsigned char>.
4116 * tracepoint.c (collection_list::collection_list): Remove
4117 m_regs_mask initializer from initializer list. Resize
4118 m_regs_mask using the largest remote register number.
4119 (collection_list::add_remote_register): Remove size check on
4120 m_regs_mask. Use at to access element.
4121 (collection_list::stringify): Change type of temp_buf to
4122 gdb::char_vector. Update uses of temp_buf. Resize if needed to
4123 stringify the register mask. Use pack_hex_byte for the register
4124 mask.
4125
4277c4b8
PFC
41262018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4127
4128 * tracepoint.h (class collection_list) <add_register>: Remove.
4129 <add_remote_register, add_ax_registers, add_local_register>:
4130 Declare.
4131 <add_memrange>: Add scope parameter.
4132 * tracepoint.c (encode_actions_1): Likewise.
4133 (collection_list::add_register): Rename to ...
4134 (collection_list::add_remote_register): ... this. Update
4135 comment.
4136 (collection_list::add_ax_registers, add_local_register): New
4137 methods.
4138 (collection_list::add_memrange): Add scope parameter. Call
4139 add_local_register instead of add_register.
4140 (finalize_tracepoint_aexpr): New function.
4141 (collection_list::collect_symbol): Update calls to add_memrange.
4142 Call add_local_register instead of add_register. Call
4143 add_ax_registers. Call finalize_tracepoint_aexpr.
4144 (encode_actions_1): Get remote regnos for $reg action. Call
4145 add_remote_register, add_ax_registers, and add_local_register.
4146 Update call to add_memrange. Call finalize_tracepoint_aexpr.
4147 (validate_actionline): Call finalize_tracepoint_aexpr.
4148
3df3a985
PFC
41492018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4150
4151 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
4152 Replace array buf with gdb::char_vector buf, of size
4153 get_remote_packet_size (). Replace references to buf and
4154 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
4155 and xsnprintf with snprintf. Raise errors if the buffer is too
4156 small.
4157
aa6f3694
PFC
41582018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4159
4160 * remote.c (remote_target::download_tracepoint): Fix the has_more
4161 predicate in the QTDP action list iteration.
4162
05abfc39
PFC
41632018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4164
4165 * remote.c (remote_target::download_tracepoint): Fix indentation
4166 in for block.
4167
821a2682
RO
41682018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4169
4170 * proc-api.c (_initialize_proc_api): Remove c, unused.
4171 * procfs.c (procfs_init_inferior): Remove signals, unused.
4172 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4173 unused.
4174
95347337
AB
41752018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
4176 Andrew Burgess <andrew.burgess@embecosm.com>
4177
4178 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4179 'W_STOPCODE (0)' as this could be ambiguous.
4180
425699f5
SDJ
41812018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
4182
4183 * ser-tcp.c (net_open): Fix thinko when deciding whether to
4184 disable TCP's Nagle algorithm (use "ai_protocol" instead of
4185 "ai_socktype").
4186
3e1d3d8c
TT
41872018-08-02 Tom Tromey <tom@tromey.com>
4188
4189 PR symtab/16842.
4190 * dwarf2read.c (read_func_scope): Set symtab on template parameter
4191 symbols.
4192 (process_structure_scope): Likewise.
4193
15843549
XR
41942018-08-02 Xavier Roirand <roirand@adacore.com>
4195
4196 PR gdb/22629:
4197 * darwin-nat.c (darwin_kill_inferior): Fix handling of
4198 kill inferior.
4199
b5bddbbb
TT
42002018-08-02 Tom Tromey <tom@tromey.com>
4201
4202 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4203 (darwin_suspend_inferior, darwin_resume_inferior)
4204 (darwin_decode_notify_message, darwin_resume_inferior_threads)
4205 (darwin_check_new_threads): Check result of get_darwin_inferior.
4206
f61cfa07
JB
42072018-07-31 Joel Brobecker <brobecker@adacore.com>
4208
4209 GDB 8.1.1 released.
4210
5abe0f0c
JV
42112018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
4212
4213 * varobj.c (varobj_get_path_expr_parent): Report an error if
4214 parent is a dynamic varobj.
4215
472fa5ee
SM
42162018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4217
4218 * gnulib/aclocal.m4: Re-generate.
4219 * gnulib/config.in: Re-generate.
4220 * gnulib/configure: Re-generate.
4221 * gnulib/import/Makefile.in: Re-generate.
4222 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4223 * gnulib/import/m4/onceonly.m4: Re-generate.
4224
1c28969e
SM
42252018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4226
4227 * target-descriptions.c (struct xml_test_tdesc): New.
4228 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4229 (record_xml_tdesc): Update.
4230 (maintenance_check_xml_descriptions): Update.
4231 * target-descriptions.h (record_xml_tdesc): Update comment.
4232
c8f2dc0d
AB
42332018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4236 checking array bounds are defined.
4237
463c08d1
TT
42382018-07-30 Tom Tromey <tom@tromey.com>
4239
4240 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4241 irreflexivity violation.
4242
dba7455e
TT
42432018-07-30 Tom Tromey <tom@tromey.com>
4244
4245 * cli/cli-decode.c (lookup_cmd): Remove lint code.
4246 * value.c (unpack_long): Remove lint code.
4247 * valops.c (value_ind): Remove lint code.
4248 * valarith.c (value_x_binop, value_x_unop, value_equal)
4249 (value_pos): Remove lint code.
4250
37cc0cae
TV
42512018-07-28 Tom de Vries <tdevries@suse.de>
4252
4253 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4254 with undefined upper bound as <optimized out>.
4255
129eb0f1
SDJ
42562018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
4257
4258 * gcore.in: Rename variable "name" to "prefix". Expand
4259 "usage" text.
4260
6af79d7b
JT
42612018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
4262
4263 * windows-nat.c (windows_nat_target::create_inferior): Update to
4264 call close() in global namespace.
4265
79748972
TT
42662018-07-26 Tom Tromey <tom@tromey.com>
4267
4268 * dwarf-index-write.c (add_address_entry): Don't add objfile
4269 offsets.
4270 * dbxread.c (find_stab_function): Rename from
4271 find_stab_function_addr. Return a bound_minimal_symbol.
4272 (read_dbx_symtab): Use raw_text_low, raw_text_high.
4273 Don't add objfile offsets.
4274 (end_psymtab): Use raw_text_low, raw_text_high,
4275 MSYMBOL_VALUE_RAW_ADDRESS.
4276 (read_ofile_symtab): Update.
4277 (process_one_symbol): Update.
4278 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
4279 offsets.
4280 (dw2_relocate): Remove.
4281 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
4282 searching addrmap.
4283 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
4284 Update.
4285 (process_psymtab_comp_unit_reader, add_partial_symbol)
4286 (add_partial_subprogram, dwarf2_ranges_read): Update.
4287 (load_partial_dies): Update.
4288 (add_address_entry): Don't add objfile offsets.
4289 (dwarf2_build_include_psymtabs): Update.
4290 (create_addrmap_from_aranges): Don't add objfile offsets.
4291 (dw2_find_pc_sect_compunit_symtab): Update.
4292 * mdebugread.c (parse_symbol): Don't add objfile offsets.
4293 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
4294 Update.
4295 (parse_partial_symbols): Don't add objfile offsets. Use
4296 raw_text_low, raw_text_high. Update.
4297 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
4298 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
4299 or call 'relocate' quick function. Clear psymbol_map.
4300 * psympriv.h (struct partial_symbol) <address>: Add section
4301 offset.
4302 <set_unrelocated_address>: Rename from set_address.
4303 <raw_text_low, raw_text_high>: New methods.
4304 <text_low, text_high>: Add objfile parameter.
4305 (add_psymbol_to_bcache): Add 'section' parameter. Call
4306 set_unrelocated_address.
4307 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4308 (find_pc_psymbol): Update.
4309 (fixup_psymbol_section, relocate_psymtabs): Remove.
4310 (dump_psymtab, psym_functions): Update.
4311 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
4312 parameter.
4313 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4314 (start_psymtab_common): Update.
4315 * symfile-debug.c (debug_qf_relocate): Remove.
4316 (debug_sym_quick_functions): Update.
4317 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
4318 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
4319 Update.
4320
52948f01
TT
43212018-07-26 Tom Tromey <tromey@redhat.com>
4322
4323 * dbxread.c (end_psymtab): Use text_high_valid and
4324 text_low_valid.
4325 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
4326 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
4327 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4328 Update comment.
4329 <text_low_valid, text_high_valid>: New fields.
4330 <set_text_low, set_text_high>: Update.
4331 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
4332
4ae976d1
TT
43332018-07-26 Tom Tromey <tom@tromey.com>
4334
4335 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
4336 Update.
4337 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
4338 textlow and texthigh fields.
4339 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
4340 Update.
4341 * mdebugread.c (parse_lines, parse_partial_symbols)
4342 (psymtab_to_symtab_1): Update.
4343 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4344 Rename fields. Update comment. Now private.
4345 <text_low, text_high, set_text_low, set_text_high>: New methods.
4346 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4347 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
4348 (start_psymtab_common, maintenance_info_psymtabs)
4349 (maintenance_check_psymtabs): Update.
4350 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
4351 texthigh fields.
4352 (scan_xcoff_symtab): Update.
4353
02e9e7f7
TT
43542018-07-26 Tom Tromey <tromey@redhat.com>
4355
4356 * psympriv.h (struct partial_symbol) <unrelocated_address,
4357 address, set_address>: New methods.
4358 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
4359 (fixup_psymbol_section, relocate_psymtabs): Update.
4360 (print_partial_symbols): Add 'objfile' parameter. Update.
4361 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
4362 Update.
4363
8a6d4234
TT
43642018-07-26 Tom Tromey <tom@tromey.com>
4365
4366 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4367 (debug_names::write_psymbols): Update.
4368 * psympriv.h (struct partial_symbol): Derive from
4369 general_symbol_info.
4370 <obj_section>: New method.
4371 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
4372 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4373 (find_pc_sect_psymbol, fixup_psymbol_section)
4374 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
4375 (print_partial_symbols, recursively_search_psymtabs)
4376 (compare_psymbols, psymbol_hash, psymbol_compare)
4377 (add_psymbol_to_bcache, maintenance_check_psymtabs)
4378 (psymbol_name_matches, psym_fill_psymbol_map): Update.
4379
08994e1d
TT
43802018-07-26 Tom Tromey <tromey@redhat.com>
4381
4382 * dbxread.c (end_psymtab): Remove dead code.
4383
3c3bb058
AB
43842018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
4385
4386 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
4387 DWARF unwinders are disabled.
4388 * dwarf2-frame.c: Add dwarf2read.h include.
4389 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
4390 disabled.
4391 (dwarf2_frame_unwinders_enabled_p): Define.
4392 (show_dwarf_unwinders_enabled_p): New function.
4393 (_initialize_dwarf2_frame): Register switch to control DWARF
4394 unwinder use.
4395 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
4396 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
4397 (show_dwarf_cmdlist): Remove static keyword.
4398 * dwarf2read.h (set_dwarf_cmdlist): Declare.
4399 (show_dwarf_cmdlist): Declare.
4400 * NEWS: Document new feature.
4401
9e7f3bbb
TV
44022018-07-26 Tom de Vries <tdevries@suse.de>
4403
4404 PR breakpoints/23366
4405 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
4406
506f5c41
TV
44072018-07-26 Tom de Vries <tdevries@suse.de>
4408
4409 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
4410 DW_AT_count can't be translated to a dynamic prop.
4411
16f808ec
TV
44122018-07-25 Tom de Vries <tdevries@suse.de>
4413
4414 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
4415 try/catch.
4416
d7154a8d
JV
44172018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
4418
4419 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
4420
a45389f6
JB
44212018-07-25 Joel Brobecker <brobecker@adacore.com>
4422
4423 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
4424
380618d6
KS
44252018-07-24 Keith Seitz <keiths@redhat.comt
4426
4427 PR symtab/23010
4428 * dwarf2read.c (dw2_add_symbol_to_list): New function.
4429 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
4430 instead of add_symbol_to_list.
4431 (read_file_scope): Call prepare_one_comp_unit before reading
4432 any other DIEs.
4433
4b17aefe
SM
44342018-07-24 Simon Marchi <simon.marchi@ericsson.com>
4435
4436 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
4437
29d17e47
TT
44382018-07-24 Tom Tromey <tom@tromey.com>
4439
4440 * utils.c (malloc, realloc, free): Don't declare.
4441 * configure, config.in: Rebuild.
4442 * configure.ac: Don't check for declarations of free, malloc, or
4443 realloc.
4444
cf4088a9
SM
44452018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4446
4447 * aarch64-linux-nat.c
4448 (aarch64_linux_nat_target::stopped_data_address): Remove unused
4449 variable.
4450 * arm-linux-nat.c (fetch_regs): Likewise.
4451 (store_regs): Likewise.
4452 (fetch_vfp_regs): Likewise.
4453 (store_vfp_regs): Likewise.
4454 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
4455 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
4456 (arm_linux_nat_target::insert_watchpoint): Likewise.
4457 (arm_linux_nat_target::remove_watchpoint): Likewise.
4458 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
4459 Likewise.
4460 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
4461 Likewise.
4462 * ppc-linux-nat.c (fetch_register): Likewise.
4463 (fetch_all_gp_regs): Likewise.
4464 (fetch_ppc_registers): Likewise.
4465 (store_all_gp_regs): Likewise.
4466 (store_ppc_registers): Likewise.
4467 (hwdebug_insert_point): Likewise.
4468 (can_use_watchpoint_cond_accel): Likewise.
4469 * remote-sim.c (gdb_os_write_stdout): Likewise.
4470
a0de763e
TT
44712018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4472 Tom Tromey <tom@tromey.com>
4473
4474 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
4475 test for it.
4476 * configure: Rebuild.
4477
3b20124b
TT
44782018-07-22 Tom Tromey <tom@tromey.com>
4479
4480 * regformats/regdat.sh: Define xmltarget_${name} inside
4481 #ifndef IN_PROCESS_AGENT.
4482
8c8807f4
TT
44832018-07-22 Tom Tromey <tom@tromey.com>
4484
4485 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
4486
c486b610
TT
44872018-07-22 Tom Tromey <tom@tromey.com>
4488
4489 * symfile.c (reread_symbols): Notify iter, not objfile.
4490
494f80a9
TT
44912018-07-22 Tom Tromey <tom@tromey.com>
4492
4493 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
4494 Use arch_ops.
4495 (ravenscar_thread_target::prepare_to_store): Likewise.
4496
c51f6a54
TT
44972018-07-22 Tom Tromey <tom@tromey.com>
4498
4499 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
4500 unused variable. Call value_fetch_lazy when needed.
4501 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4502 Remove unused variable. Call value_fetch_lazy when needed.
4503
374fd1fd
TT
45042018-07-22 Tom Tromey <tom@tromey.com>
4505
4506 * m32c-tdep.c (mark_dma): Return void.
4507 (make_regs): Remove unused declarations.
4508
d5e9a511
TT
45092018-07-22 Tom Tromey <tom@tromey.com>
4510
4511 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
4512 cmdscm_get_valid_command_smob_arg_unsafe for effect.
4513 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
4514 bkscm_get_valid_block_smob_arg_unsafe for effect.
4515
996d693a
TT
45162018-07-22 Tom Tromey <tom@tromey.com>
4517
4518 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
4519 value_type.
4520
15766370
TT
45212018-07-22 Tom Tromey <tom@tromey.com>
4522
4523 * windows-nat.c (saved_context): Conditionally define.
4524 * remote.c (remote_target::remote_btrace_maybe_reopen):
4525 Conditionally declare "warned".
4526 * inflow.c (sigquit_ours): Conditionally define.
4527 (new_tty): Move "tty" declaration inside #if.
4528 * guile/guile.c (guile_datadir): Conditionally define.
4529 * charset.c (set_be_le_names): Move some declarations inside #if.
4530 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
4531 #if.
4532 (parse_xml_btrace_conf): Likewise.
4533
f4e80e13
TT
45342018-07-22 Tom Tromey <tom@tromey.com>
4535
4536 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
4537
8d49165d
TT
45382018-07-22 Tom Tromey <tom@tromey.com>
4539
4540 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
4541 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
4542 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
4543 * buildsym-legacy.c (get_macro_table): Remove unused variable.
4544 * stack.c (frame_apply_level_command): Remove unused variable.
4545 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
4546 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
4547 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
4548 unused variable.
4549 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
4550 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
4551 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
4552 variable.
4553 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
4554 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
4555 variable.
4556 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
4557 Remove unused variable.
4558 * cli/cli-script.c (recurse_read_control_structure): Remove unused
4559 variable.
4560 * common/tdesc.c (print_xml_feature::visit): Remove unused
4561 variable.
4562 * compile/compile-object-load.c (store_regs): Remove unused
4563 variables.
4564 * complaints.c (clear_complaints): Remove unused variable.
4565 * corelow.c (core_target_open): Remove unused variable.
4566 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
4567 variable.
4568 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
4569 variable.
4570 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
4571 variable.
4572 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
4573 variable.
4574 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
4575 variable.
4576 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
4577 variable.
4578 * ia64-tdep.c (examine_prologue): Remove unused variable.
4579 * infcall.c (run_inferior_call): Remove unused variable.
4580 * inferior.c (exit_inferior): Remove unused variable.
4581 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
4582 * linespec.c (decode_line_2): Remove unused variable.
4583 * linux-nat.c (super_close): Remove.
4584 * linux-tdep.c (linux_info_proc): Remove unused variable.
4585 * mi/mi-main.c (mi_execute_command): Remove unused variable.
4586 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
4587 Remove unused variable.
4588 * parse.c (find_minsym_type_and_address): Remove unused variable.
4589 * printcmd.c (info_symbol_command, printf_floating): Remove unused
4590 variable.
4591 * python/py-breakpoint.c (bppy_set_commands): Remove unused
4592 variable.
4593 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
4594 variables.
4595 * record-btrace.c (record_btrace_target::store_registers): Remove
4596 unused variable.
4597 (cmd_show_record_btrace_cpu): Remove unused variable.
4598 * riscv-tdep.c (riscv_register_reggroup_p)
4599 (riscv_push_dummy_call, riscv_return_value): Remove unused
4600 variable.
4601 * rust-exp.y (literal): Remove unused variable.
4602 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
4603 unused variable.
4604 <STRUCTOP_ANONYMOUS>: Likewise.
4605 * s390-linux-tdep.c (s390_linux_init_abi_31)
4606 (s390_linux_init_abi_64): Remove unused variable.
4607 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
4608 (file_select_thread, net_windows_open, _initialize_ser_windows):
4609 Remove unused variables.
4610 * symtab.c (find_pc_sect_line): Remove unused variable.
4611 * target-memory.c (compute_garbled_blocks): Remove unused
4612 variable.
4613 (target_write_memory_blocks): Remove unused variable.
4614 * target.c (target_stack::unpush): Remove unused variables.
4615 * tracepoint.c (start_tracing, all_tracepoint_actions)
4616 (merge_uploaded_trace_state_variables)
4617 (print_one_static_tracepoint_marker): Remove unused variable.
4618 * unittests/basic_string_view/element_access/char/1.cc (test01):
4619 Remove unused variable.
4620 * windows-nat.c (windows_continue, windows_add_all_dlls)
4621 (do_initial_windows_stuff, windows_nat_target::create_inferior):
4622 Remove unused variables.
4623
17cbafdb
SM
46242018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4625
4626 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
4627 attr_profile in HAVE_ELF.
4628 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4629 HAVE_ELF.
4630
0ee6c332
SM
46312018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
4632
4633 * frame.c (frame_register_unwind): Change parameter name.
4634 (frame_unwind_register): Likewise.
4635 (frame_unwind_register_value): Likewise.
4636 (frame_unwind_register_signed): Likewise.
4637 (frame_unwind_register_unsigned): Likewise.
4638 * frame.h (frame_register_unwind): Likewise.
4639 (frame_unwind_register): Likewise.
4640 (frame_unwind_register_value): Likewise.
4641 (frame_unwind_register_signed): Likewise.
4642 (frame_unwind_register_unsigned): Likewise.
4643 (frame_unwind_arch): Likewise.
4644
e2e31f10
MR
46452018-07-20 Maciej W. Rozycki <macro@mips.com>
4646
4647 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4648 ISA maintenance.
4649
2d389915
MR
46502018-07-20 Maciej W. Rozycki <macro@mips.com>
4651
4652 * mips-linux-nat.c (mips_linux_nat_target::read_description):
4653 Call `get_ptrace_pid' rather than extracting the ptrace PID by
4654 hand.
4655
cbb09508
KS
46562018-07-20 Keith Seitz <keiths@redhat.com>
4657
4658 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4659 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4660 m_compunit_symtab, m_language>: Add "m_" prefix.
4661 Update all uses.
4662 * buildsym.c: Update all uses.
4663
bfe2e011
TT
46642018-07-20 Tom Tromey <tom@tromey.com>
4665
4666 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4667 * buildsym.h (record_line_ftype): Remove typedef.
4668
0e6f3061
TT
46692018-07-20 Tom Tromey <tom@tromey.com>
4670
4671 * buildsym-legacy.h (augment_type_symtab): Don't declare.
4672 (end_expandable_symtab): Likewise.
4673 (end_symtab_get_static_block): Likewise.
4674 (end_symtab_from_static_block): Likewise.
4675 * buildsym-legacy.c (augment_type_symtab): Remove.
4676 (end_expandable_symtab): Remove.
4677 (end_symtab_get_static_block): Remove.
4678 (end_symtab_from_static_block): Remove.
4679
804d2729
TT
46802018-07-20 Tom Tromey <tom@tromey.com>
4681
4682 * dwarf2read.c: Include buildsym.h.
4683 (struct dwarf2_cu) <builder>: New method.
4684 (fixup_go_packaging): Update.
4685 (process_full_comp_unit, process_full_type_unit): Update. Don't
4686 use scoped_free_pendings.
4687 (using_directives): Add "cu" parameter, remove "language".
4688 (read_import_statement, setup_type_unit_groups, )
4689 (read_func_scope, read_lexical_block_scope)
4690 (dwarf2_record_block_ranges, read_namespace): Update.
4691 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4692 (lnp_state_machine::handle_end_sequence): Update.
4693 (class lnp_state_machine) <m_cu>: New member.
4694 <m_record_line_callback>: Remove.
4695 <m_currently_recording_lines>: New member.
4696 (lnp_state_machine::handle_set_file): Update.
4697 (noop_record_line): Remove.
4698 (dwarf_record_line_p): Add cu parameter.
4699 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4700 (lnp_state_machine::record_line)
4701 (lnp_state_machine::lnp_state_machine)
4702 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4703 (dwarf_decode_lines): Update.
4704 (dwarf2_start_subfile): Add cu parameter.
4705 (dwarf2_start_symtab, new_symbol): Update.
4706 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4707 Remove dwarf2_per_objfile parameter.
4708 (dwarf_decode_macros): Update.
4709
80e649fc
TT
47102018-07-20 Tom Tromey <tom@tromey.com>
4711
4712 * stabsread.c (define_symbol): Update.
4713 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4714 * dwarf2read.c (new_symbol): Update.
4715 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4716 * cp-namespace.c: Include buildsym.h.
4717 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4718 * buildsym-legacy.c (get_buildsym_compunit): New function.
4719
0baae8db
TT
47202018-07-20 Tom Tromey <tom@tromey.com>
4721
4722 * xcoffread.c: Include buildsym-legacy.h.
4723 * windows-nat.c: Include buildsym-legacy.h.
4724 * stabsread.c: Include buildsym-legacy.h.
4725 * mdebugread.c: Include buildsym-legacy.h.
4726 * buildsym-legacy.h: New file.
4727 * buildsym-legacy.c: New file, from buildsym.c.
4728 * go32-nat.c: Include buildsym-legacy.h.
4729 * dwarf2read.c: Include buildsym-legacy.h.
4730 * dbxread.c: Include buildsym-legacy.h.
4731 * cp-namespace.c: Include buildsym-legacy.h.
4732 * coffread.c: Include buildsym-legacy.h.
4733 * buildsym.h: Move some contents to buildsym-legacy.h.
4734 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4735 buildsym-legacy.c.
4736 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4737
ab209f6f
TT
47382018-07-20 Tom Tromey <tom@tromey.com>
4739
4740 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4741 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4742 (buildsym_compunit::buildsym_compunit)
4743 (buildsym_compunit::~buildsym_compunit)
4744 (buildsym_compunit::get_macro_table): Define.
4745
74c72eac
TT
47462018-07-20 Tom Tromey <tom@tromey.com>
4747
4748 * buildsym.c (reset_symtab_globals): Remove.
4749 (buildsym_compunit::end_symtab_from_static_block): Update.
4750 (buildsym_compunit::augment_type_symtab): Update.
4751 (end_symtab_from_static_block): Call free_buildsym_compunit.
4752 (augment_type_symtab, end_symtab, end_expandable_symtab):
4753 Likewise.
4754
da6580e5
TT
47552018-07-20 Tom Tromey <tom@tromey.com>
4756
4757 * arch-utils.c: Do not include buildsym.h.
4758 * mipsread.c: Do not include buildsym.h.
4759 * machoread.c: Do not include buildsym.h.
4760 * elfread.c: Do not include buildsym.h.
4761
4a2125f5
TT
47622018-07-20 Tom Tromey <tom@tromey.com>
4763
4764 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4765 initialization.
4766 (buildsym_compunit): Add new constructor.
4767 (struct buildsym_compunit) <get_last_source_file, finish_block,
4768 record_block_range, start_subfile, patch_subfile_names,
4769 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4770 set_last_source_start_addr, get_last_source_start_addr,
4771 get_local_using_directives, set_local_using_directives,
4772 get_global_using_directives, outermost_context_p,
4773 get_current_context_stack, get_context_stack_depth,
4774 get_current_subfile, get_local_symbols, get_file_symbols,
4775 get_global_symbols, record_debugformat, record_producer,
4776 push_context, pop_context, end_symtab_get_static_block,
4777 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4778 New public methods.
4779 <record_pending_block, finish_block_internal, make_blockvector,
4780 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4781 private methods.
4782 Update all users.
4783
47842018-05-22 Tom Tromey <tom@tromey.com>
4785
4786 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4787 parameter.
4788 (finish_block_internal): Update.
4789
6b213a47
TT
47902018-07-20 Tom Tromey <tom@tromey.com>
4791
4792 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4793 parameter.
4794 (finish_block_internal): Update.
4795
b80a981d
TT
47962018-07-20 Tom Tromey <tom@tromey.com>
4797
4798 * buildsym.h (EXTERN): Don't define or undef.
4799 * buildsym.c (EXTERN): Don't define.
4800
ddb70602
TT
48012018-07-20 Tom Tromey <tom@tromey.com>
4802
4803 * buildsym.c: Remove TODO comment.
4804
b37dd3bc
TT
48052018-07-20 Tom Tromey <tom@tromey.com>
4806
4807 * coffread.c (coff_symtab_read): Update.
4808 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4809 (xcoff_new_init): Update.
4810 * mipsread.c (mipscoff_new_init): Update.
4811 * mdebugread.c (mdebug_build_psymtabs): Update.
4812 * elfread.c (elf_new_init): Update.
4813 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4814 Update.
4815 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4816 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4817 (stabsect_build_psymtabs): Update.
4818 * buildsym.h (buildsym_init): Don't declare.
4819 * buildsym.c: Update comment.
4820 (prepare_for_building): Remove.
4821 (start_symtab, restart_symtab): Update.
4822 (reset_symtab_globals): Update comment.
4823 (buildsym_init): Remove.
4824
e148f09d
TT
48252018-07-20 Tom Tromey <tom@tromey.com>
4826
4827 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4828 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4829 (read_enum_type, common_block_start, common_block_end)
4830 (cleanup_undefined_types_1, finish_global_stabs): Update.
4831 * mdebugread.c (psymtab_to_symtab_1): Update.
4832 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4833 (read_lexical_block_scope, new_symbol): Update.
4834 * dbxread.c (process_one_symbol): Update.
4835 * coffread.c (coff_symtab_read, process_coff_symbol)
4836 (coff_read_enum_type): Update.
4837 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4838 declare.
4839 (get_local_symbols, get_file_symbols, get_global_symbols): New
4840 functions.
4841 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4842 m_global_symbols.
4843 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4844 (~scoped_free_pendings): Update.
4845 (finish_block, prepare_for_building, reset_symtab_globals)
4846 (end_symtab_get_static_block, end_symtab_with_blockvector)
4847 (augment_type_symtab, push_context): Update.
4848 (get_local_symbols, get_file_symbols, get_global_symbols): New
4849 functions.
4850 (buildsym_init): Update.
4851
93b8bea4
TT
48522018-07-20 Tom Tromey <tom@tromey.com>
4853
4854 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4855 (process_full_type_unit): Likewise.
4856 (dwarf2_start_symtab): Set list_in_scope.
4857
f62f6af5
TT
48582018-07-20 Tom Tromey <tom@tromey.com>
4859
4860 * dwarf2read.c (process_psymtab_comp_unit_reader)
4861 (build_type_psymtabs_reader): Do not set list_in_scope.
4862
1d376700
TT
48632018-07-20 Tom Tromey <tom@tromey.com>
4864
4865 * buildsym.c (free_pendings): Remove.
4866 (add_symbol_to_list, scoped_free_pendings)
4867 (finish_block_internal, buildsym_init): Update.
4868
c233e9c6
TT
48692018-07-20 Tom Tromey <tom@tromey.com>
4870
4871 * xcoffread.c (read_xcoff_symtab): Update.
4872 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4873 Update.
4874 * dbxread.c (process_one_symbol): Update.
4875 * coffread.c (coff_symtab_read): Update.
4876 * buildsym.h (finish_block): Update.
4877 * buildsym.c (finish_block): Remove "listhead" argument.
4878 (end_symtab_get_static_block): Update.
4879
5ac04550
TT
48802018-07-20 Tom Tromey <tom@tromey.com>
4881
4882 * buildsym.h (class scoped_free_pendings): Remove constructor.
4883 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4884 method.
4885 <m_pending_block_obstack, m_pending_blocks>: New members.
4886 (pending_block_obstack, pending_blocks): Remove.
4887 (scoped_free_pendings::scoped_free_pendings): Default.
4888 (~scoped_free_pendings): Update.
4889 (free_pending_blocks): Remove.
4890 (finish_block_internal, record_pending_block, make_blockvector)
4891 (end_symtab_get_static_block, augment_type_symtab, push_context)
4892 (buildsym_init): Update.
4893
7ea05a7b
TT
48942018-07-20 Tom Tromey <tom@tromey.com>
4895
4896 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4897 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4898 members.
4899 (pending_addrmap, pending_addrmap_obstack)
4900 (pending_addrmap_interesting): Remove.
4901 (scoped_free_pendings, record_block_range, make_blockvector)
4902 (prepare_for_building, reset_symtab_globals, buildsym_init):
4903 Update.
4904
3c65e5b3
TT
49052018-07-20 Tom Tromey <tom@tromey.com>
4906
4907 * xcoffread.c (process_linenos): Update.
4908 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4909 * mdebugread.c (psymtab_to_symtab_1): Update.
4910 * dwarf2read.c (setup_type_unit_groups)
4911 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4912 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4913 * dbxread.c (process_one_symbol): Update.
4914 * coffread.c (coff_symtab_read, enter_linenos)
4915 (process_coff_symbol): Update.
4916 * buildsym.h (current_subfile): Don't declare.
4917 (get_current_subfile): Declare.
4918 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4919 member.
4920 (start_subfile, free_buildsym_compunit, push_subfile)
4921 (prepare_for_building, start_symtab): Update.
4922 (get_current_subfile): New function.
4923
a60f3166
TT
49242018-07-20 Tom Tromey <tom@tromey.com>
4925
4926 * coffread.c (coff_symtab_read): Update.
4927 * xcoffread.c (read_xcoff_symtab): Update.
4928 * dwarf2read.c (new_symbol): Update.
4929 (read_func_scope, read_lexical_block_scope): Update.
4930 * dbxread.c (process_one_symbol): Update.
4931 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4932 (outermost_context_p): Remove macro.
4933 (outermost_context_p, get_current_context_stack)
4934 (get_context_stack_depth): Declare.
4935 (pop_context): Return struct context_stack.
4936 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4937 member.
4938 (context_stack_size): Remove.
4939 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4940 (prepare_for_building, end_symtab_get_static_block)
4941 (augment_type_symtab, push_context): Update.
4942 (pop_context): Return struct context_stack.
4943 (outermost_context_p, get_current_context_stack)
4944 (get_context_stack_depth): New functions.
4945 (buildsym_init): Update.
4946
56ba65a0
TT
49472018-07-20 Tom Tromey <tom@tromey.com>
4948
4949 * rust-exp.y: Now a pure parser. Update all rules.
4950 (%union): Move earlier.
4951 (current_parser, work_obstack): Remove globals.
4952 (rust_parser, ~rust_parser): Update.
4953 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4954 lex_character, lex_number, lex_string, lex_identifier,
4955 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4956 convert_name, convert_params_to_expression,
4957 convert_ast_to_expression, ast_basic_type, ast_operation,
4958 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4959 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4960 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4961 ast_array_type, ast_slice_type, ast_reference_type,
4962 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4963 (rust_parse): Update.
4964 (rustyyerror, rustyylex): Add parser parameter.
4965 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4966 (rust_lex_stringish_test, rust_lex_test_sequence)
4967 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4968 (rust_lex_test_push_back, rust_lex_tests): Update.
4969
4c693332
PA
49702018-07-19 Pedro Alves <palves@redhat.com>
4971
4972 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4973 gdb::unique_xmalloc_ptr.
4974 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4975 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4976 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4977 copy-initialization.
4978 * guile/scm-pretty-print.c (ppscm_print_children): Use
4979 gdb::unique_xmalloc_ptr instead of cleanups.
4980 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4981 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4982 gdb::unique_xmalloc_ptr.
4983 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4984 Adjust to use gdb::unique_xmalloc_ptr.
4985 * guile/scm-utils.c (extract_arg): Adjust.
4986 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4987 gdb::unique_xmalloc_ptr instead of a cleanup.
4988
4581dc82
TT
49892018-07-19 Tom Tromey <tom@tromey.com>
4990
4991 * utils.c (do_value_free_to_mark)
4992 (make_cleanup_value_free_to_mark): Remove.
4993 * utils.h (make_cleanup_value_free_to_mark): Remove.
4994
43cc6c3a
PA
49952018-07-19 Pedro Alves <palves@redhat.com>
4996
4997 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4998 forwarding reference.
4999
3a5f2a48
PA
50002018-07-18 Pedro Alves <palves@redhat.com>
5001
5002 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5003 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
5004 cleanup.
5005
557e56be
PA
50062018-07-18 Pedro Alves <palves@redhat.com>
5007
5008 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5009 exceptions.
5010 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5011 (gdbscm_wrap): New.
5012 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5013 directly instead of a cleanup.
5014 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5015 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
5016 (vlscm_binop_gdbthrow): New, factored out from ...
5017 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
5018 (vlscm_rich_compare): Use gdbscm_wrap.
5019 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5020 instead of a cleanup.
5021 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5022 cleanup.
5023 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5024 Use xfree directly instead of a cleanup.
5025 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5026 Adjust to use gdbscm_wrap and scoped_value_mark.
5027 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5028 (gdbscm_value_address, gdbscm_value_dereference)
5029 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5030 scoped_value_mark.
5031 (gdbscm_value_dynamic_type): Use scoped_value_mark.
5032 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5033 scoped_value_mark.
5034 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5035 gdbscm_wrap and scoped_value_mark.
5036 (gdbscm_value_to_string): Use xfree directly instead of a
5037 cleanup. Move 'buffer' unique_ptr to TRY scope.
5038 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5039 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
5040 scoped_value_mark.
5041 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5042 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5043 scoped_value_mark.
5044 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5045 gdbscm_wrap.
5046
42dc7699
TV
50472018-07-18 Tom de Vries <tdevries@suse.de>
5048
5049 * findvar.c (default_read_var_value): Also resolve dynamic type for
5050 LOC_OPTIMIZED_OUT vars.
5051
6592ceed
MR
50522018-07-18 Maciej W. Rozycki <macro@mips.com>
5053
5054 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
5055 decoding.
5056
c6c6149a
TT
50572018-07-17 Tom Tromey <tom@tromey.com>
5058
5059 * guile/scm-param.c (pascm_set_func, pascm_show_func)
5060 (compute_enum_list, pascm_set_param_value_x)
5061 (gdbscm_parameter_value): Update.
5062 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
5063 (gdbscm_scm_to_host_string): Update.
5064 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
5065 Update.
5066 * guile/scm-cmd.c (cmdscm_add_completion): Update.
5067 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
5068 * guile/scm-string.c (gdbscm_scm_to_string): Return
5069 unique_xmalloc_ptr.
5070 (gdbscm_scm_to_host_string): Likewise.
5071
a1a31cb8
TT
50722018-07-17 Tom Tromey <tom@tromey.com>
5073
5074 * guile/guile.c (gdbscm_eval_from_control_command): Update.
5075 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
5076 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
5077 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
5078 unique_xmalloc_ptr.
5079
15bf3002
TT
50802018-07-17 Tom Tromey <tom@tromey.com>
5081
5082 * guile/scm-param.c (pascm_signal_setshow_error): Update.
5083 * guile/guile-internal.h (gdbscm_exception_message_to_string):
5084 Update.
5085 * guile/scm-cmd.c (cmdscm_function): Update.
5086 * guile/scm-pretty-print.c
5087 (ppscm_print_exception_unless_memory_error): Update.
5088 * guile/scm-exception.c (gdbscm_exception_message_to_string):
5089 Return unique_xmalloc_ptr.
5090
7eb1a66c
TT
50912018-07-17 Tom Tromey <tom@tromey.com>
5092
5093 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
5094 Use string_printf.
5095
ce73f310
JW
50962018-07-17 Jim Wilson <jimw@sifive.com>
5097
27724bad
JW
5098 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
5099 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
5100 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
5101 unecessary braces after EF_RISCV_RVC test. Delete call to
5102 set_gdbarch_decr_pc_after_break.
5103
ce73f310
JW
5104 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
5105 RISCV_LAST_FP_REGNUM + 1.
5106 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
5107
056dec39
TT
51082018-07-17 Tom Tromey <tom@tromey.com>
5109
5110 * configure.ac: Remove --disable-gdbcli.
5111 * configure: Rebuild.
5112 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
5113 (SUBDIR_CLI_CFLAGS): Remove.
5114 (SFILES): Use SUBDIR_CLI_SRCS.
5115 (COMMON_OBS): Use SUBDIR_CLI_OBS.
5116
4735f0ed
TT
51172018-07-17 Tom Tromey <tom@tromey.com>
5118
5119 PR gdb/18624:
5120 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
5121
117a0e99
JW
51222018-07-16 Jim Wilson <jimw@sifive.com>
5123
5124 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
5125
8a67aaa8
SM
51262018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5127
5128 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
5129 variable.
5130 (libunwind_frame_sniffer): Likewise.
5131 (libunwind_frame_prev_register): Likewise.
5132 (libunwind_sigtramp_frame_sniffer): Likewise.
5133 * ia64-tdep.c (ia64_access_reg): Likewise.
5134 (ia64_access_rse_reg): Likewise.
5135 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
5136 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
5137
ec74dcd8
SM
51382018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5139
5140 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
5141
a700e753
SM
51422018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5143
5144 * remote-sim.c (gdbsim_target::close,
5145 gdbsim_target::mourn_inferior): Remove unused variables.
5146
8b411ff8
SM
51472018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
5148
5149 * ia64-tdep.c (ktab_buf): New global.
5150 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
5151 (get_kernel_table): Adjust.
5152
edb0470b
TT
51532018-07-16 Tom Tromey <tom@tromey.com>
5154
5155 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5156 * dwarf2read.c (using_directives, new_symbol): Use
5157 outermost_context_p.
5158 * dbxread.c (process_one_symbol): Use outermost_context_p.
5159 * coffread.c (coff_symtab_read): Use outermost_context_p.
5160
6cccc9a8
TT
51612018-07-16 Tom Tromey <tom@tromey.com>
5162
5163 * dwarf2read.c (using_directives, read_func_scope)
5164 (read_lexical_block_scope): Update.
5165 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5166 * buildsym.h (local_using_directives, global_using_directives):
5167 Don't declare.
5168 (get_local_using_directives, set_local_using_directives)
5169 (get_global_using_directives): Declare.
5170 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5171 m_global_using_directives>: New members.
5172 (finish_block_internal, prepare_for_building)
5173 (reset_symtab_globals, end_symtab_get_static_block)
5174 (push_context): Update.
5175 (get_local_using_directives, set_local_using_directives)
5176 (get_global_using_directives): New functions.
5177 (buildsym_init): Update.
5178
652788a7
TT
51792018-07-16 Tom Tromey <tom@tromey.com>
5180
5181 * xcoffread.c (xcoff_initial_scan): Don't call
5182 free_pending_blocks.
5183 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5184 * buildsym.h (class scoped_free_pendings): Add constructor.
5185 (free_pending_blocks): Don't declare.
5186 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5187 (free_pending_blocks): Now static.
5188
8419ee53
TT
51892018-07-16 Tom Tromey <tom@tromey.com>
5190
5191 * buildsym.h (push_subfile, pop_subfile): Update declarations.
5192 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5193 member.
5194 (struct subfile_stack): Remove.
5195 (subfile_stack): Remove.
5196 (push_subfile, pop_subfile, buildsym_init): Update.
5197
ccdac490
TT
51982018-07-16 Tom Tromey <tom@tromey.com>
5199
5200 * buildsym.c (push_subfile): Use gdb_assert.
5201 (pop_subfile): Use gdb_assert.
5202
43130d6f
TT
52032018-07-16 Tom Tromey <tom@tromey.com>
5204
5205 * buildsym.h (merge_symbol_lists): Remove.
5206 * buildsym.c (merge_symbol_lists): Remove.
5207
77d6f1aa
TT
52082018-07-16 Tom Tromey <tom@tromey.com>
5209
5210 * stabsread.c (scan_file_globals): Update comment.
5211 * stabsread.h (scan_file_globals): Move from buildsym.h.
5212 * buildsym.h (scan_file_globals): Move to stabsread.h.
5213
2c722d18
TT
52142018-07-16 Tom Tromey <tom@tromey.com>
5215
5216 * xcoffread.c (xcoff_new_init): Update.
5217 * mipsread.c (mipscoff_new_init): Update.
5218 * mdebugread.c (mdebug_build_psymtabs): Update.
5219 * elfread.c (elf_new_init): Update.
5220 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5221 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5222 * buildsym.h (buildsym_new_init): Don't declare.
5223 * buildsym.c (buildsym_new_init): Remove.
5224
5985ac61
TT
52252018-07-16 Tom Tromey <tom@tromey.com>
5226
5227 * stabsread.h (within_function): Move from buildsym.h.
5228 * stabsread.c (start_stabs): Clear within_function.
5229 * coffread.c (coff_start_symtab): Clear within_function.
5230 * buildsym.h (within_function): Move to stabsread.h.
5231 * buildsym.c (prepare_for_building): Update.
5232
6b84eeb2
TT
52332018-07-16 Tom Tromey <tom@tromey.com>
5234
5235 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5236 * dwarf2read.c (dwarf2_start_symtab): Don't set
5237 processing_gcc_compilation.
5238 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5239
2150c3ef
TT
52402018-07-16 Tom Tromey <tom@tromey.com>
5241
5242 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5243 (next_symbol_text_func): Move from buildsym.h.
5244 * stabsread.c (hashname): Move from buildsym.c.
5245 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5246 (next_symbol_text_func, hashname): Move to stabsread.h.
5247 * buildsym.c: Don't include bcache.h
5248 (hashname): Move to stasbread.c.
5249
0ec44fc0
TT
52502018-07-16 Tom Tromey <tom@tromey.com>
5251
5252 * buildsym.h (context_stack_size): Don't declare.
5253 * buildsym.c (context_stack_size): New global.
5254
81cc346d
TT
52552018-07-16 Tom Tromey <tom@tromey.com>
5256
5257 * dbxread.c (processing_acc_compilation): New global.
5258 * buildsym.h (processing_acc_compilation): Don't declare.
5259
2c99ee5c
TT
52602018-07-16 Tom Tromey <tom@tromey.com>
5261
5262 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5263 * dbxread.c (read_ofile_symtab): Update.
5264 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5265 * buildsym.h (last_source_start_addr): Remove.
5266 (set_last_source_start_addr, get_last_source_start_addr):
5267 Declare.
5268 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5269 parameter.
5270 (struct buildsym_compunit) <m_last_source_start_addr>: New
5271 member.
5272 (prepare_for_building): Remove start_addr parameter.
5273 (start_symtab, restart_symtab, end_symtab_get_static_block)
5274 (end_symtab_with_blockvector): Update.
5275 (set_last_source_start_addr, get_last_source_start_addr): New
5276 functions.
5277
530fedbc
TT
52782018-07-16 Tom Tromey <tom@tromey.com>
5279
5280 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
5281 member.
5282 (have_line_numbers): Remove.
5283 (record_line, prepare_for_building, end_symtab_get_static_block)
5284 (augment_type_symtab): Update.
5285
6a976300
TT
52862018-07-16 Tom Tromey <tom@tromey.com>
5287
5288 * buildsym.c (~buildsym_compunit): Free the macro table.
5289 (struct buildsym_compunit) <get_macro_table, release_macros>: New
5290 methods.
5291 <m_pending_macros>: New member.
5292 (pending_macros): Remove.
5293 (~scoped_free_pendings, get_macro_table, prepare_for_building)
5294 (reset_symtab_globals, end_symtab_get_static_block)
5295 (end_symtab_with_blockvector, augment_type_symtab)
5296 (buildsym_init): Update.
5297
c0015d44
TT
52982018-07-16 Tom Tromey <tom@tromey.com>
5299
5300 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
5301 parameter.
5302 (buildsym_compunit::set_last_source_file): New method.
5303 <m_last_source_file>: New member.
5304 (prepare_for_building): Remove "name" parameter.
5305 (start_symtab, restart_symtab, reset_symtab_globals): Update.
5306 (last_source_file): Remove.
5307 (set_last_source_file, get_last_source_file): Update.
5308
e62cca7c
TT
53092018-07-16 Tom Tromey <tom@tromey.com>
5310
5311 * buildsym.c (prepare_for_building): Add assert.
5312
905eb0e2
TT
53132018-07-16 Tom Tromey <tom@tromey.com>
5314
5315 * buildsym.c (~buildsym_compunit): Update.
5316 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
5317 (start_subfile, patch_subfile_names)
5318 (end_symtab_with_blockvector): Update.
5319
b248663f
TT
53202018-07-16 Tom Tromey <tom@tromey.com>
5321
5322 * buildsym.c (struct buildsym_compunit): Add constructor,
5323 destructor, initializers.
5324 (start_buildsym_compunit): Remove.
5325 (free_buildsym_compunit): Use "delete".
5326 (start_symtab, restart_symtab): Use "new".
5327
ff27d073
SM
53282018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
5329
5330 * symfile.c (set_objfile_default_section_offset): Remove struct
5331 keyword.
5332
6a15ecf5
SH
53332018-07-14 Stafford Horne <shorne@gmail.com>
5334
5335 * (Responsible Maintainers): Add myself as or1k maintainer.
5336
027a4c30
TT
53372018-07-13 Tom Tromey <tom@tromey.com>
5338
5339 * symfile.c (set_objfile_default_section_offset): Use extra braces
5340 around initializer.
5341
5c1eda30
AA
53422018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5343
5344 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
5345 non-branching basr.
5346
bc7b042b
PW
53472018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5348
5349 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5350 unittests/cli-utils-selftests.c
5351 * unittests/cli-utils-selftests.c: New file.
5352
a14c4daa
PW
53532018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5354
5355 * NEWS: Mention new commands. Mention change to 'thread apply'.
5356
1fe75df7
PW
53572018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5358
5359 * thread.c (thr_try_catch_cmd): New function.
5360 (thread_apply_all_command): Handle qcs flags.
5361 (thread_apply_command): Handle qcs flags.
5362 (taas_command): New function.
5363 (tfaas_command): New function.
5364 (_initialize_thread): Update to setup the new commands 'taas
5365 and 'tfaas'. Change doc string for 'thread apply'.
5366
6a70eb7d
PW
53672018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5368
5369 * stack.c: (trailing_outermost_frame): New function, mostly
5370 extracted from backtrace_command_1.
5371 (leading_innermost_frame): New function.
5372 (backtrace_command_1): Update to call trailing_outermost_frame.
5373 (frame_apply_command_count): New function.
5374 (frame_apply_level_command): New function.
5375 (frame_apply_all_command): New function.
5376 (frame_apply_command): New function.
5377 (faas_command): New function.
5378 (frame_cmd_list): New variable.
5379 (_initialize_stack): Update to setup the new commands 'frame apply'
5380 and 'faas'.
5381
529c08b2
PW
53822018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5383
5384 * cli-utils.c (number_or_range_parser::get_number): Only handle
5385 numbers or convenience var as numbers.
5386 (parse_flags): New function.
5387 (parse_flags_qcs): New function.
5388 (number_or_range_parser::finished): Ensure parsing end is detected
5389 before end of string.
5390 * cli-utils.h (parse_flags): New function.
5391 (parse_flags_qcs): New function.
5392 (number_or_range_parser): Remove m_finished bool.
5393 (number_or_range_parser::skip_range): Set m_in_range to false.
5394
64b58472
SDJ
53952018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
5396
5397 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
5398 on Windows.
5399
c7ab0aef
SDJ
54002018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5401 Jan Kratochvil <jan.kratochvil@redhat.com>
5402 Paul Fertser <fercerpav@gmail.com>
5403 Tsutomu Seki <sekiriki@gmail.com>
5404 Pedro Alves <palves@redhat.com>
5405
5406 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5407 'unittests/parse-connection-spec-selftests.c'.
5408 (COMMON_SFILES): Add 'common/netstuff.c'.
5409 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
5410 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
5411 * common/netstuff.c: New file.
5412 * common/netstuff.h: New file.
5413 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
5414 (wait_for_connect): Update comment. New parameter
5415 'gdb::optional<int> sock' instead of 'struct serial *scb'.
5416 Use 'sock' directly instead of 'scb->fd'.
5417 (try_connect): New function, with code from 'net_open'.
5418 (net_open): Rewrite main loop to deal with multiple
5419 sockets/addresses. Handle IPv6-style hostnames; implement
5420 support for IPv6 connections.
5421 * unittests/parse-connection-spec-selftests.c: New file.
5422
4c7333b3
PA
54232018-07-11 Pedro Alves <palves@redhat.com>
5424
5425 PR gdb/23377
5426 * remote.c (remote_target::remote_detach_pid): Call
5427 set_current_process.
5428
a6f88f6e
PA
54292018-07-11 Pedro Alves <palves@redhat.com>
5430
5431 * h8300-tdep.c (h8300_gdbarch_init): Remove
5432 set_gdbarch_ecoff_reg_to_regnum calls.
5433
16ff70dd
SDJ
54342018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5435
5436 PR c++/23373
5437 * c-typeprint.c (c_type_print_base_struct_union): Don't print
5438 offsets/sizes for static members of a class/struct.
5439
12863263
AH
54402018-07-11 Alan Hayward <alan.hayward@arm.com>
5441
5442 * target-descriptions.c (tdesc_register_bitsize): Rename.
5443 * target-descriptions.h (tdesc_register_bitsize): Likewise.
5444 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
5445 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
5446
1123588c
TT
54472018-07-10 Tom Tromey <tom@tromey.com>
5448
5449 * breakpoint.c (moribund_locations): Now static and a
5450 std::vector.
5451 (breakpoint_init_inferior, moribund_breakpoint_here_p)
5452 (build_bpstat_chain, update_global_location_list)
5453 (breakpoint_retire_moribund): Update.
5454 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
5455 VEC.
5456
8c49aa89
AB
54572018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5458
5459 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
5460 (riscv_register_reggroup_p): Use new function, remove unneeded
5461 parenthesis.
5462 (riscv_push_dummy_call): Extend assert to compare against xlen or
5463 flen based on register type.
5464
42ecac17
AB
54652018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5466
5467 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
5468
055303e2
AB
54692018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5470
5471 * remote.c (show_hardware_watchpoint_limit): New function.
5472 (show_hardware_watchpoint_length_limit): New function.
5473 (show_hardware_breakpoint_limit): New function.
5474 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
5475 where appropriate, update help text.
5476
8fd32c1c
TT
54772018-07-09 Tom Tromey <tom@tromey.com>
5478
5479 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
5480 (CLIBS): Don't mention NAT_CLIBS.
5481
31278b51
TT
54822018-07-09 Tom Tromey <tom@tromey.com>
5483
5484 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
5485 (LIBGDB_OBS, clean mostlyclean): Update.
5486 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
5487
e5fd1493
TT
54882018-07-09 Tom Tromey <tom@tromey.com>
5489
5490 * Makefile.in (%.c: %.y): Use ECHO_YACC.
5491 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
5492 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
5493
981e0c0c
TT
54942018-07-09 Tom Tromey <tom@tromey.com>
5495
5496 * Makefile.in (ALLDEPFILES): Remove exec.c.
5497 (COMMON_OBS): Remove exec.o.
5498 (COMMON_SFILES): Add exec.c.
5499
14ccceb2
TT
55002018-07-09 Tom Tromey <tom@tromey.com>
5501
5502 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
5503
5d3c3a68
TT
55042018-07-09 Tom Tromey <tom@tromey.com>
5505
5506 * Makefile.in (clean mostlyclean): Remove stamp-version.
5507 (version.c): Depend on stamp-version.
5508 (stamp-version): New rule, from version.c rule.
5509
1998086d
TT
55102018-07-09 Tom Tromey <tom@tromey.com>
5511
5512 * Makefile.in (init.c): Depend on stamp-init.
5513 (stamp-init): New rule, from init.c rule.
5514 (clean mostlyclean): Remove stamp-init.
5515
4c754949
TT
55162018-07-09 Tom Tromey <tom@tromey.com>
5517
5518 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
5519 SUBDIR_GCC_COMPILE_SRCS.
5520
6497f1dd
TT
55212018-07-09 Tom Tromey <tom@tromey.com>
5522
5523 * Makefile.in (init.c): Remove some unused sed rules.
5524
97a34db9
TT
55252018-07-09 Tom Tromey <tom@tromey.com>
5526
5527 * Makefile.in (TSOBS): Remove.
5528 (INIT_FILES): Update.
5529 (LIBGDB_OBS): Update.
5530 (COMMON_SFILES): Add inflow.c.
5531 (SFILES): Remove inflow.c.
5532
25289ac1
JK
55332018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5534
5535 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
5536
e83f4d97
SM
55372018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
5538
4869c585
SM
5539 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
5540 get_saveloc_name, is_signal_frame_name, step_name,
5541 init_remote_name, create_addr_space_name,
5542 destroy_addr_space_name, search_unwind_table_name,
5543 find_dyn_list_name): Constify.
e83f4d97 5544
6821842f
SM
55452018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
5546
5547 * darwin-nat.c (darwin_pthread_kill): New function.
5548 (darwin_resume_thread): Use darwin_pthread_kill.
5549
c530603c
TV
55502018-07-05 Tom de Vries <tdevries@suse.de>
5551
5552 * macroexp.c (macro_buffer) <operator=>: New member function.
5553
a7d0f0f0
TT
55542018-07-04 Tom Tromey <tom@tromey.com>
5555
5556 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
5557
6242c6a6
SM
55582018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
5559
5560 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
5561 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
5562 * maint.c: Likewise.
5563 * top.c: Likewise.
5564
4e5b2f89
JB
55652018-07-04 Joel Brobecker <brobecker@adacore.com>
5566
5567 * NEWS: Create a new section for the next release branch.
5568 Rename the section of the current branch, now that it has
5569 been cut.
5570
538ccc4a
JB
55712018-07-04 Joel Brobecker <brobecker@adacore.com>
5572
5573 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
5574 * version.in: Bump version to 8.2.50.DATE-git.
5575
1b919490
VB
55762018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5577 Pedro Alves <palves@redhat.com>
5578
5579 * linux-nat.c (linux_init_ptrace): Rename to ...
5580 (linux_init_ptrace_procfs): ... this. Call
5581 linux_proc_init_warnings.
5582 (linux_nat_target::post_attach)
5583 (linux_nat_target::post_startup_inferior): Adjust.
5584 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
5585 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
5586
1ea5da02
TV
55872018-07-04 Tom de Vries <tdevries@suse.de>
5588
5589 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
5590 check ...
5591 (read_comp_unit_head): ... here.
5592
f51e0e20
TT
55932018-07-03 Tom Tromey <tom@tromey.com>
5594
5595 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
5596 (stop_tracing, tstatus_command)
5597 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
5598 (print_one_static_tracepoint_marker): Update.
5599 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
5600 std::vector.
5601 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
5602 VEC.
5603 (all_tracepoints, static_tracepoints_here): Return std::vector.
5604
d7e15655
TT
56052018-07-03 Tom Tromey <tom@tromey.com>
5606
5607 * common/ptid.c (ptid_equal): Remove.
5608 * common/ptid.h (ptid_equal): Don't declare.
5609 * ada-tasks.c: Update.
5610 * breakpoint.c: Update.
5611 * common/agent.c: Update.
5612 * corelow.c: Update.
5613 * darwin-nat-info.c: Update.
5614 * darwin-nat.c: Update.
5615 * dcache.c: Update.
5616 * dtrace-probe.c: Update.
5617 * dummy-frame.c: Update.
5618 * fbsd-nat.c: Update.
5619 * frame.c: Update.
5620 * gdbthread.h: Update.
5621 * gnu-nat.c: Update.
5622 * go32-nat.c: Update.
5623 * inf-loop.c: Update.
5624 * inf-ptrace.c: Update.
5625 * infcall.c: Update.
5626 * infcmd.c: Update.
5627 * inflow.c: Update.
5628 * infrun.c: Update.
5629 * linux-fork.c: Update.
5630 * linux-nat.c: Update.
5631 * linux-thread-db.c: Update.
5632 * mi/mi-cmd-var.c: Update.
5633 * mi/mi-interp.c: Update.
5634 * mi/mi-main.c: Update.
5635 * nto-procfs.c: Update.
5636 * ppc-linux-tdep.c: Update.
5637 * procfs.c: Update.
5638 * python/py-inferior.c: Update.
5639 * python/py-record-btrace.c: Update.
5640 * python/py-record.c: Update.
5641 * ravenscar-thread.c: Update.
5642 * regcache.c: Update.
5643 * remote-sim.c: Update.
5644 * remote.c: Update.
5645 * sol-thread.c: Update.
5646 * solib.c: Update.
5647 * target.c: Update.
5648 * tui/tui-stack.c: Update.
5649 * varobj.c: Update.
5650 * windows-nat.c: Update.
5651 * windows-tdep.c: Update.
5652
26a57c92
TT
56532018-07-03 Tom Tromey <tom@tromey.com>
5654
5655 * common/ptid.c (ptid_match): Remove.
5656 * common/ptid.h (ptid_match): Don't declare.
5657 * fbsd-nat.c: Update.
5658 * infcmd.c: Update.
5659 * infrun.c: Update.
5660 * linux-nat.c: Update.
5661 * record-btrace.c: Update.
5662 * regcache.c: Update.
5663 * remote.c: Update.
5664
d2a107e3
TT
56652018-07-03 Tom Tromey <tom@tromey.com>
5666
5667 * common/ptid.c (ptid_tid_p): Remove.
5668 * common/ptid.h (ptid_tid_p): Don't declare.
5669 * sol-thread.c: Update.
5670
15a9e13e
TT
56712018-07-03 Tom Tromey <tom@tromey.com>
5672
5673 * common/ptid.c (ptid_lwp_p): Remove.
5674 * common/ptid.h (ptid_lwp_p): Don't declare.
5675 * fbsd-nat.c: Update.
5676 * linux-nat.c: Update.
5677 * nat/linux-procfs.c: Update.
5678 * nat/x86-linux-dregs.c: Update.
5679 * sol-thread.c: Update.
5680
0e998d96
TT
56812018-07-03 Tom Tromey <tom@tromey.com>
5682
5683 * common/ptid.c (ptid_is_pid): Remove.
5684 * common/ptid.h (ptid_is_pid): Don't declare.
5685 * infrun.c: Update.
5686 * linux-nat.c: Update.
5687 * mi/mi-interp.c: Update.
5688 * remote.c: Update.
5689 * thread.c: Update.
5690
cc6bcb54
TT
56912018-07-03 Tom Tromey <tom@tromey.com>
5692
5693 * common/ptid.c (ptid_get_tid): Remove.
5694 * common/ptid.h (ptid_get_tid): Don't declare.
5695 * ada-tasks.c: Update.
5696 * aix-thread.c: Update.
5697 * bsd-uthread.c: Update.
5698 * darwin-nat.c: Update.
5699 * fbsd-nat.c: Update.
5700 * i386-darwin-nat.c: Update.
5701 * infrun.c: Update.
5702 * linux-tdep.c: Update.
5703 * nto-procfs.c: Update.
5704 * ppc-ravenscar-thread.c: Update.
5705 * python/py-infthread.c: Update.
5706 * ravenscar-thread.c: Update.
5707 * sol-thread.c: Update.
5708 * sparc-ravenscar-thread.c: Update.
5709 * windows-nat.c: Update.
5710
e38504b3
TT
57112018-07-03 Tom Tromey <tom@tromey.com>
5712
5713 * common/ptid.c (ptid_get_lwp): Remove.
5714 * common/ptid.h (ptid_get_lwp): Don't declare.
5715 * aarch64-linux-nat.c: Update.
5716 * ada-tasks.c: Update.
5717 * aix-thread.c: Update.
5718 * amd64-linux-nat.c: Update.
5719 * arm-linux-nat.c: Update.
5720 * corelow.c: Update.
5721 * fbsd-nat.c: Update.
5722 * fbsd-tdep.c: Update.
5723 * gnu-nat.c: Update.
5724 * i386-cygwin-tdep.c: Update.
5725 * i386-gnu-nat.c: Update.
5726 * i386-linux-nat.c: Update.
5727 * ia64-linux-nat.c: Update.
5728 * inf-ptrace.c: Update.
5729 * infrun.c: Update.
5730 * linux-fork.c: Update.
5731 * linux-nat.c: Update.
5732 * linux-tdep.c: Update.
5733 * linux-thread-db.c: Update.
5734 * mips-linux-nat.c: Update.
5735 * nat/aarch64-linux-hw-point.c: Update.
5736 * nat/aarch64-linux.c: Update.
5737 * nat/linux-btrace.c: Update.
5738 * nat/linux-osdata.c: Update.
5739 * nat/linux-procfs.c: Update.
5740 * nat/x86-linux-dregs.c: Update.
5741 * obsd-nat.c: Update.
5742 * ppc-fbsd-nat.c: Update.
5743 * ppc-linux-nat.c: Update.
5744 * procfs.c: Update.
5745 * python/py-infthread.c: Update.
5746 * ravenscar-thread.c: Update.
5747 * remote.c: Update.
5748 * s390-linux-nat.c: Update.
5749 * sol-thread.c: Update.
5750 * sol2-tdep.c: Update.
5751 * spu-linux-nat.c: Update.
5752 * x86-linux-nat.c: Update.
5753 * xtensa-linux-nat.c: Update.
5754
e99b03dc
TT
57552018-07-03 Tom Tromey <tom@tromey.com>
5756
5757 * common/ptid.c (ptid_get_pid): Remove.
5758 * common/ptid.h (ptid_get_pid): Don't declare.
5759 * aarch64-linux-nat.c: Update.
5760 * ada-lang.c: Update.
5761 * aix-thread.c: Update.
5762 * alpha-bsd-nat.c: Update.
5763 * amd64-fbsd-nat.c: Update.
5764 * amd64-linux-nat.c: Update.
5765 * arm-linux-nat.c: Update.
5766 * arm-nbsd-nat.c: Update.
5767 * auxv.c: Update.
5768 * break-catch-syscall.c: Update.
5769 * breakpoint.c: Update.
5770 * bsd-uthread.c: Update.
5771 * corelow.c: Update.
5772 * ctf.c: Update.
5773 * darwin-nat.c: Update.
5774 * fbsd-nat.c: Update.
5775 * fbsd-tdep.c: Update.
5776 * gcore.c: Update.
5777 * gnu-nat.c: Update.
5778 * hppa-nbsd-nat.c: Update.
5779 * hppa-obsd-nat.c: Update.
5780 * i386-fbsd-nat.c: Update.
5781 * ia64-linux-nat.c: Update.
5782 * inf-ptrace.c: Update.
5783 * infcmd.c: Update.
5784 * inferior.c: Update.
5785 * inferior.h: Update.
5786 * inflow.c: Update.
5787 * infrun.c: Update.
5788 * linux-fork.c: Update.
5789 * linux-nat.c: Update.
5790 * linux-tdep.c: Update.
5791 * linux-thread-db.c: Update.
5792 * m68k-bsd-nat.c: Update.
5793 * mi/mi-interp.c: Update.
5794 * mi/mi-main.c: Update.
5795 * mips-linux-nat.c: Update.
5796 * mips-nbsd-nat.c: Update.
5797 * mips64-obsd-nat.c: Update.
5798 * nat/aarch64-linux-hw-point.c: Update.
5799 * nat/aarch64-linux.c: Update.
5800 * nat/linux-btrace.c: Update.
5801 * nat/linux-osdata.c: Update.
5802 * nat/linux-procfs.c: Update.
5803 * nat/x86-linux-dregs.c: Update.
5804 * nto-procfs.c: Update.
5805 * obsd-nat.c: Update.
5806 * ppc-linux-nat.c: Update.
5807 * ppc-nbsd-nat.c: Update.
5808 * ppc-obsd-nat.c: Update.
5809 * proc-service.c: Update.
5810 * procfs.c: Update.
5811 * python/py-inferior.c: Update.
5812 * python/py-infthread.c: Update.
5813 * ravenscar-thread.c: Update.
5814 * record.c: Update.
5815 * remote-sim.c: Update.
5816 * remote.c: Update.
5817 * rs6000-nat.c: Update.
5818 * s390-linux-nat.c: Update.
5819 * sh-nbsd-nat.c: Update.
5820 * sol-thread.c: Update.
5821 * sparc-nat.c: Update.
5822 * sparc64-tdep.c: Update.
5823 * spu-linux-nat.c: Update.
5824 * spu-tdep.c: Update.
5825 * target-debug.h: Update.
5826 * target.c: Update.
5827 * thread.c: Update.
5828 * tid-parse.c: Update.
5829 * tracefile-tfile.c: Update.
5830 * vax-bsd-nat.c: Update.
5831 * windows-nat.c: Update.
5832 * x86-linux-nat.c: Update.
5833 * x86-nat.c: Update.
5834
f2907e49
TT
58352018-07-03 Tom Tromey <tom@tromey.com>
5836
5837 * common/ptid.c (pid_to_ptid): Remove.
5838 * common/ptid.h (pid_to_ptid): Don't declare.
5839 * aix-thread.c: Update.
5840 * arm-linux-nat.c: Update.
5841 * common/ptid.c: Update.
5842 * common/ptid.h: Update.
5843 * corelow.c: Update.
5844 * ctf.c: Update.
5845 * darwin-nat.c: Update.
5846 * fbsd-nat.c: Update.
5847 * fork-child.c: Update.
5848 * gnu-nat.c: Update.
5849 * go32-nat.c: Update.
5850 * inf-ptrace.c: Update.
5851 * infcmd.c: Update.
5852 * inferior.c: Update.
5853 * infrun.c: Update.
5854 * linux-fork.c: Update.
5855 * linux-nat.c: Update.
5856 * nat/aarch64-linux-hw-point.c: Update.
5857 * nat/fork-inferior.c: Update.
5858 * nat/x86-linux-dregs.c: Update.
5859 * nto-procfs.c: Update.
5860 * obsd-nat.c: Update.
5861 * procfs.c: Update.
5862 * progspace.c: Update.
5863 * remote.c: Update.
5864 * rs6000-nat.c: Update.
5865 * s390-linux-nat.c: Update.
5866 * sol-thread.c: Update.
5867 * spu-linux-nat.c: Update.
5868 * target.c: Update.
5869 * top.c: Update.
5870 * tracefile-tfile.c: Update.
5871 * windows-nat.c: Update.
5872
fd79271b
TT
58732018-07-03 Tom Tromey <tom@tromey.com>
5874
5875 * common/ptid.h (ptid_build): Don't declare.
5876 * common/ptid.c (ptid_build): Remove.
5877 * aix-thread.c: Update.
5878 * bsd-kvm.c: Update.
5879 * bsd-uthread.c: Update.
5880 * common/agent.c: Update.
5881 * common/ptid.c: Update.
5882 * common/ptid.h: Update.
5883 * corelow.c: Update.
5884 * darwin-nat.c: Update.
5885 * fbsd-nat.c: Update.
5886 * gnu-nat.c: Update.
5887 * linux-fork.c: Update.
5888 * linux-nat.c: Update.
5889 * linux-thread-db.c: Update.
5890 * nat/linux-osdata.c: Update.
5891 * nat/linux-procfs.c: Update.
5892 * nto-procfs.c: Update.
5893 * obsd-nat.c: Update.
5894 * proc-service.c: Update.
5895 * procfs.c: Update.
5896 * ravenscar-thread.c: Update.
5897 * remote-sim.c: Update.
5898 * remote.c: Update.
5899 * sol-thread.c: Update.
5900 * target.c: Update.
5901 * windows-nat.c: Update.
5902
057302ce
TT
59032018-07-03 Tom Tromey <tom@tromey.com>
5904
5905 * infrun.c (follow_exec): Use exit_inferior_silent.
5906 * inferior.c (exit_inferior_num_silent): Remove.
5907 * inferior.h (exit_inferior_num_silent): Don't declare.
5908
a50c11c6
TT
59092018-07-03 Tom Tromey <tom@tromey.com>
5910
5911 PR cli/23340:
5912 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5913 inferior_ptid on error.
5914
471b9d15
MR
59152018-07-02 Maciej W. Rozycki <macro@mips.com>
5916 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 PR tdep/8282
5919 * disasm.h (gdb_disassembler): Add
5920 `m_disassembler_options_holder'. member
5921 * disasm.c (get_all_disassembler_options): New function.
5922 (gdb_disassembler::gdb_disassembler): Use it.
5923 (gdb_buffered_insn_length_init_dis): Likewise.
5924 (gdb_buffered_insn_length): Adjust accordingly.
5925 (set_disassembler_options): Handle options with arguments.
5926 (show_disassembler_options_sfunc): Likewise. Add a leading new
5927 line if showing options with descriptions.
5928 (disassembler_options_completer): Adapt to using the
5929 `disasm_options_and_args_t' structure.
5930 * mips-tdep.c (mips_disassembler_options): New variable.
5931 (mips_disassembler_options_o32): Likewise.
5932 (mips_disassembler_options_n32): Likewise.
5933 (mips_disassembler_options_n64): Likewise.
5934 (gdb_print_insn_mips): Don't set `disassembler_options'.
5935 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5936 functions.
5937 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5938 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5939 `gdbarch_disassembler_options_implicit' and
5940 `gdbarch_valid_disassembler_options'.
5941 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5942 `disasm_options_and_args_t' structure.
5943 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5944 method.
5945 (valid_disassembler_options): Switch from `disasm_options_t' to
5946 the `disasm_options_and_args_t' structure.
5947 * NEWS: Document `set disassembler-options' support for the MIPS
5948 target.
5949 * gdbarch.h: Regenerate.
5950 * gdbarch.c: Regenerate.
5951
41823f29
SH
59522018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5953
5954 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5955
41206e32
JB
59562018-06-29 Joel Brobecker <brobecker@adacore.com>
5957
5958 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5959 parameter in call to amd64_target_description.
5960 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5961 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5962 (amd64fbsd_init_abi): Likewise.
5963 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5964 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5965 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5966 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5967
de52b960
PA
59682018-06-29 Pedro Alves <palves@redhat.com>
5969
5970 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5971 "segments" parameter.
5972 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5973 (_initialize_amd64_tdep): Update call to
5974 amd64_create_target_description.
5975 (amd64_target_description): Add "segments" parameter. Adjust
5976 the implementation to use it.
5977 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5978 call to amd64_create_target_description.
5979 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5980 * gdb/arch/amd64.h (amd64_create_target_description): Add
5981 "segments" register.
5982 * gdb/arch/amd64.c (amd64_create_target_description): Add
5983 "segments" parameter. Call create_feature_i386_64bit_segments
5984 only if SEGMENTS is true.
5985 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5986 call to amd64_create_target_description.
5987
75acb486
PA
59882018-06-29 Pedro Alves <palves@redhat.com>
5989
5990 * thread.c (thread_target_id_str): New, factored out from ...
5991 (print_thread_info_1): ... here. Use it to compute the max
5992 "Target Id" column width.
5993
c76a8ea3
PA
59942018-06-29 Pedro Alves <palves@redhat.com>
5995
5996 * remote.c (remote_target::extra_thread_info): Delete
5997 'display_buf' and 'n' locals. from the cache, regardless of
5998 packet mechanims is in use. Use cache for qThreadExtra and qP
5999 methods too.
6000
cd2bb709
PA
60012018-06-29 Pedro Alves <palves@redhat.com>
6002
6003 * blockframe.c (find_pc_sect_containing_function): New function.
6004 * breakpoint.c (print_breakpoint_location): Don't call
6005 find_pc_sect_function.
6006 * linespec.c (create_sals_line_offset): Record the location's
6007 symbol in the sal.
6008 * linespec.c (convert_address_location_to_sals): Fill in sal's
6009 symbol with find_pc_sect_containing_function.
6010 * symtab.c (find_function_start_sal): Rename to ...
6011 (find_function_start_sal_1): ... this.
6012 (find_function_start_sal): Reimplement as wrapper around
6013 find_function_start_sal_1, and use
6014 find_pc_sect_containing_function to fill in the sal's symbol.
6015 (find_function_start_sal(symbol*, bool)): Adjust.
6016 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6017 comments.
6018 (find_pc_sect_containing_function): Declare.
6019
991ff292
PA
60202018-06-29 Pedro Alves <palves@redhat.com>
6021
6022 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6023 true if the the location has no symbol.
6024
44cee4fd
TT
60252018-06-28 Tom Tromey <tom@tromey.com>
6026
6027 * NEWS: Mention --enable-codesign.
6028 * silent-rules.mk (ECHO_SIGN): New variable.
6029 * configure.ac: Add --enable-codesign.
6030 * configure: Rebuild.
6031 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6032 (gdb$(EXEEXT)): Optionally invoke codesign.
6033
f2ffa92b
PA
60342018-06-28 Pedro Alves <palves@redhat.com>
6035
6036 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6037 comments.
6038 (switch_to_thread_no_regs): Adjust comment.
6039 * infcmd.c (stop_pc): Delete.
6040 (post_create_inferior, info_program_command): Replace references
6041 to stop_pc with references to thread_info->suspend.stop_pc.
6042 * inferior.h (stop_pc): Delete declaration.
6043 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6044 (handle_inferior_event_1, handle_signal_stop)
6045 (process_event_stop_test, keep_going_stepped_thread)
6046 (handle_step_into_function, handle_step_into_function_backward)
6047 (print_stop_location): Replace references to stop_pc with
6048 references to thread_info->suspend.stop_pc.
6049 (struct infcall_suspend_state) <stop_pc>: Delete field.
6050 (save_infcall_suspend_state, restore_infcall_suspend_state):
6051 Remove references to inf_stat->stop_pc.
6052 * linux-fork.c (fork_load_infrun_state): Likewise.
6053 * record-btrace.c (record_btrace_set_replay): Likewise.
6054 * record-full.c (record_full_goto_entry): Likewise.
6055 * remote.c (print_one_stopped_thread): Likewise.
6056 * target.c (target_resume): Extend comment.
6057 * thread.c (set_executing_thread): New.
6058 (set_executing): Use it.
6059 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
6060 Remove references to stop_pc.
6061
ecdc3a72
PA
60622018-06-28 Pedro Alves <palves@redhat.com>
6063
6064 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
6065 Moving fetching stop_pc until after ecs->event_thread is refreshed.
6066
d95d3aef
TT
60672018-06-28 Tom Tromey <tom@tromey.com>
6068
6069 * coffread.c (coff_symfile_finish): Update.
6070 * xcoffread.c (xcoff_symfile_finish): Update.
6071 * elfread.c (elf_symfile_finish): Update.
6072 * symfile.h (dwarf2_free_objfile): Don't declare.
6073 * dwarf2read.c (_initialize_dwarf2_read): Use
6074 register_objfile_data_with_cleanup.
6075 (dwarf2_free_objfile): Now static. Change signature.
6076
291f9a96
PT
60772018-06-28 Petr Tesarik <ptesarik@suse.cz>
6078
6079 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
6080 option "-o" to add-symbol-file-load to add an offset to each
6081 section's load address.
6082 * symfile.c (set_objfile_default_section_offset): New function.
6083
d81a3eaf
PT
60842018-06-28 Petr Tesarik <ptesarik@suse.cz>
6085
6086 * symfile.c (add_symbol_file_command): Make sure that sections
6087 with the same name are sorted in the same order.
6088
ed6dfe51
PT
60892018-06-28 Petr Tesarik <ptesarik@suse.cz>
6090
6091 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
6092 require the second argument. If omitted, load sections at the
6093 addresses specified in the file.
6094
d4d429d5
PT
60952018-06-28 Petr Tesarik <ptesarik@suse.cz>
6096
6097 * symfile.c (symbol_file_command, symbol_file_add_main_1)
6098 (_initialize_symfile): Add option "-o" to symbol-file to add an
6099 offset to each section of the symbol file.
6100
39b27ab6
PT
61012018-06-28 Petr Tesarik <ptesarik@suse.cz>
6102
6103 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
6104
41827fc3
TT
61052018-06-27 Tom Tromey <tom@tromey.com>
6106
6107 * stack.c (_initialize_stack): Update "func" help text.
6108
0c6aef22
TT
61092018-06-27 Tom Tromey <tom@tromey.com>
6110
6111 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
6112 std::vector.
6113 (unwind_infopy_str, pyuw_create_unwind_info)
6114 (unwind_infopy_add_saved_register, pyuw_sniffer)
6115 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
6116 Update.
6117 (struct saved_reg): Add constructor.
6118 <value>: Now a gdbpy_ref<>.
6119
63177289
TT
61202018-06-27 Tom Tromey <tom@tromey.com>
6121
6122 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
6123
e76f78a0
SM
61242018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6125
6126 * gdb-gdb.py.in: Format using autopep8.
6127
9a14af7b
SM
61282018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6129
6130 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
6131 (type_lookup_function): Recognize CORE_ADDR values.
6132
189366cd
SM
61332018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6134
6135 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
6136 print tag_name.
6137
68ad5fb9
SM
61382018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6139
6140 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
6141 <__lt__>: Add.
6142
141ec9f6
SM
61432018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6144
6145 * gdb-gdb.py: Move to...
6146 * gdb-gdb.py.in: ... here.
6147 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
6148 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
6149 dependencies.
6150 (distclean): Remove gdb-gdb.py when cleaning.
6151 (gdb-gdb.py, gdb-gdb.gdb): New rules.
6152 * configure: Re-generate.
6153
4c4e7ad4
PA
61542018-06-27 Pedro Alves <palves@redhat.com>
6155
6156 * proc-service.c (get_ps_regcache): New.
6157 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6158 (ps_lsetfpregs): Use it.
6159
7ab6656f
OJ
61602018-06-27 Omair Javaid <omair.javaid@linaro.org>
6161
6162 PR gdb/21695
6163 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
6164 (dwarf_decode_lines_1): Adjust.
6165
bd583225
SM
61662018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6167
6168 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6169 override.
6170 <info_proc>: Likewise.
6171
9a325b7b
JB
61722018-06-26 Joel Brobecker <brobecker@adacore.com>
6173
6174 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6175 to windows_fetch_one_register, and only handle the case of
6176 fetching one register. Move the code that reloads the context
6177 and iterates over all registers if R is negative to...
6178 (windows_nat_target::fetch_registers): ... here.
6179 (do_windows_store_inferior_registers): Rename to
6180 windows_store_one_register, and only handle the case of storing
6181 one register. Move the code that handles the case where r is
6182 negative to...
6183 (windows_nat_target::store_registers) ... here.
6184
a33ccfc7
TT
61852018-06-26 Tom Tromey <tom@tromey.com>
6186
6187 PR rust/22574:
6188 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6189 * rust-lang.c (rust_print_struct_def): Add podata parameter.
6190 Update.
6191 (rust_internal_print_type): Add podata parameter.
6192 (rust_print_type): Update.
6193
e0c547d1
TT
61942018-06-26 Tom Tromey <tom@tromey.com>
6195
6196 * typeprint.h (struct print_offset_data) <update, finish,
6197 maybe_print_hole>: New methods.
6198 <indentation>: New constant.
6199 * typeprint.c (print_offset_data::indentation): Define.
6200 (print_offset_data::maybe_print_hole, print_offset_data::update)
6201 (print_offset_data::finish): Move from c-typeprint.c and rename.
6202 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6203 (print_spaces_filtered_with_print_options): Update.
6204 (c_print_type_union_field_offset, maybe_print_hole)
6205 (c_print_type_struct_field_offset): Move to typeprint.c and
6206 rename.
6207 (c_type_print_base_struct_union): Update.
6208
75cbc781
PA
62092018-06-25 Pedro Alves <palves@redhat.com>
6210
6211 * gdbthread.h (thread_info_ref, delete_thread)
6212 (delete_thread_silent, first_thread_of_inferior)
6213 (any_thread_of_inferior, switch_to_thread)
6214 (enable_thread_stack_temporaries)
6215 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6216 (get_last_thread_stack_temporary)
6217 (value_in_thread_stack_temporaries, can_access_registers_thread):
6218 Spell out "struct thread_info" instead of just "thread_info".
6219 * inferior.h (notice_new_inferior): Likewise.
6220
b7a08269
PA
62212018-06-25 Pedro Alves <palves@redhat.com>
6222
6223 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6224 pass thread_info pointer to delete_thread.
6225 (windows_nat_target::detach): Pass inferior pointer to
6226 detach_inferior.
6227 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6228 delete_thread.
6229 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6230 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6231 and pass a thread_info pointer to delete_thread.
6232 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6233 pass thread_info pointer to delete_thread.
6234 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6235 delete_thread_silent call.
6236 * procfs.c (procfs_target::detach): Pass inferior pointer to
6237 detach_inferior.
6238 (procfs_target::wait): Pass thread_info pointer to delete_thread.
6239 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6240 delete_thread_silent call.
6241 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6242 pass thread_info pointer to delete_thread.
6243 (windows_nat_target::detach): Pass inferior pointer to
6244 delete_inferior.
6245
8e7767e3
AH
62462018-06-22 Alan Hayward <alan.hayward@arm.com>
6247
6248 * regcache.c (readable_regcache::read_part): Fix asserts.
6249 (reg_buffer::raw_collect_part): New function.
6250 (regcache::write_part): Fix asserts.
6251 (reg_buffer::raw_supply_part): New function.
6252 (regcache::transfer_regset_register): New helper function.
6253 (regcache::transfer_regset): Call new functions.
6254 (regcache_supply_regset): Use gdb_byte*.
6255 (regcache::supply_regset): Likewise.
6256 (regcache_collect_regset): Likewise.
6257 (regcache::collect_regset): Likewise.
6258 * regcache.h (reg_buffer::raw_collect_part): New declaration.
6259 (reg_buffer::raw_supply_part): Likewise.
6260 (regcache::transfer_regset_register): Likewise.
6261 (regcache::transfer_regset): Use gdb_byte*.
6262
bfd60e34
AH
62632018-06-22 Alan Hayward <alan.hayward@arm.com>
6264
6265 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6266
00431a78
PA
62672018-06-21 Pedro Alves <palves@redhat.com>
6268
6269 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6270 instead of a ptid_t. All callers adjusted.
6271 * ada-tasks.c (ada_get_task_number): Likewise. All callers
6272 adjusted.
6273 (print_ada_task_info, display_current_task_id, task_command_1):
6274 Adjust.
6275 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
6276 inferior_thread.
6277 (breakpoint_kind): Adjust.
6278 (remove_breakpoints_pid): Rename to ...
6279 (remove_breakpoints_inf): ... this. Adjust to take an inferior
6280 pointer. All callers adjusted.
6281 (bpstat_clear_actions): Use inferior_thread.
6282 (get_bpstat_thread): New.
6283 (bpstat_do_actions): Use it.
6284 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
6285 to take a thread_info pointer. All callers adjusted.
6286 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
6287 (breakpoint_re_set_thread): Use inferior_thread.
6288 * breakpoint.h (struct inferior): Forward declare.
6289 (bpstat_stop_status): Update.
6290 (remove_breakpoints_pid): Delete.
6291 (remove_breakpoints_inf): New.
6292 * bsd-uthread.c (bsd_uthread_target::wait)
6293 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
6294 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
6295 (maint_btrace_packet_history_cmd)
6296 (maint_btrace_clear_packet_history_cmd): Adjust.
6297 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
6298 inferior_thread.
6299 * cli/cli-interp.c: Include "inferior.h".
6300 * common/refcounted-object.h (struct
6301 refcounted_object_ref_policy): New.
6302 * compile/compile-object-load.c: Include gdbthread.h.
6303 (store_regs): Use inferior_thread.
6304 * corelow.c (core_target::close): Use current_inferior.
6305 (core_target_open): Adjust to use first_thread_of_inferior and use
6306 the current inferior.
6307 * ctf.c (ctf_target::close): Adjust to use current_inferior.
6308 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
6309 <thread>: ... this new field. All references adjusted.
6310 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
6311 Take a thread_info pointer instead of a ptid_t.
6312 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
6313 (dummy_frame_discard, register_dummy_frame_dtor): Take a
6314 thread_info pointer instead of a ptid_t.
6315 * elfread.c: Include "inferior.h".
6316 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
6317 Use inferior_thread.
6318 * eval.c (evaluate_subexp): Likewise.
6319 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
6320 inferior_thread.
6321 * gdb_proc_service.h (struct thread_info): Forward declare.
6322 (struct ps_prochandle) <ptid>: Delete, replaced by ...
6323 <thread>: ... this new field. All references adjusted.
6324 * gdbarch.h, gdbarch.c: Regenerate.
6325 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
6326 'thread' parameter. All implementations and callers adjusted.
6327 * gdbthread.h (thread_info) <set_running>: New method.
6328 (delete_thread, delete_thread_silent): Take a thread_info pointer
6329 instead of a ptid.
6330 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
6331 (first_thread_of_process): Delete, replaced by ...
6332 (first_thread_of_inferior): ... this new function. All callers
6333 adjusted.
6334 (any_live_thread_of_process): Delete, replaced by ...
6335 (any_live_thread_of_inferior): ... this new function. All callers
6336 adjusted.
6337 (switch_to_thread, switch_to_no_thread): Declare.
6338 (is_executing): Delete.
6339 (enable_thread_stack_temporaries): Update comment.
6340 <enable_thread_stack_temporaries>: Take a thread_info pointer
6341 instead of a ptid_t. Incref the thread.
6342 <~enable_thread_stack_temporaries>: Decref the thread.
6343 <m_ptid>: Delete
6344 <m_thr>: New.
6345 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6346 (get_last_thread_stack_temporary)
6347 (value_in_thread_stack_temporaries, can_access_registers_thread):
6348 Take a thread_info pointer instead of a ptid_t. All callers
6349 adjusted.
6350 * infcall.c (get_call_return_value): Use inferior_thread.
6351 (run_inferior_call): Work with thread pointers instead of ptid_t.
6352 (call_function_by_hand_dummy): Work with thread pointers instead
6353 of ptid_t. Use thread_info_ref.
6354 * infcmd.c (proceed_thread_callback): Access thread's state
6355 directly.
6356 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
6357 access thread's state directly.
6358 (continue_command): Use inferior_thread.
6359 (info_program_command): Use find_thread_ptid and access thread
6360 state directly.
6361 (proceed_after_attach_callback): Use thread state directly.
6362 (notice_new_inferior): Take a thread_info pointer instead of a
6363 ptid_t. All callers adjusted.
6364 (exit_inferior): Take an inferior pointer instead of a pid. All
6365 callers adjusted.
6366 (exit_inferior_silent): New.
6367 (detach_inferior): Delete.
6368 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
6369 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
6370 (detach_inferior_command, kill_inferior_command): Use
6371 find_inferior_id instead of valid_gdb_inferior_id and
6372 gdb_inferior_id_to_pid.
6373 (inferior_command): Use inferior and thread pointers.
6374 * inferior.h (struct thread_info): Forward declare.
6375 (notice_new_inferior): Take a thread_info pointer instead of a
6376 ptid_t. All callers adjusted.
6377 (detach_inferior): Delete declaration.
6378 (exit_inferior, exit_inferior_silent): Take an inferior pointer
6379 instead of a pid. All callers adjusted.
6380 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
6381 (valid_gdb_inferior_id): Delete.
6382 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
6383 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
6384 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
6385 ...
6386 <inf>: ... this new field.
6387 <step_ptid>: Delete, replaced by ...
6388 <step_thread>: ... this new field.
6389 (get_displaced_stepping_state): Take an inferior pointer instead
6390 of a pid. All callers adjusted.
6391 (displaced_step_in_progress_any_inferior): Adjust.
6392 (displaced_step_in_progress_thread): Take a thread pointer instead
6393 of a ptid_t. All callers adjusted.
6394 (displaced_step_in_progress, add_displaced_stepping_state): Take
6395 an inferior pointer instead of a pid. All callers adjusted.
6396 (get_displaced_step_closure_by_addr): Adjust.
6397 (remove_displaced_stepping_state): Take an inferior pointer
6398 instead of a pid. All callers adjusted.
6399 (displaced_step_prepare_throw, displaced_step_prepare)
6400 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
6401 All callers adjusted.
6402 (start_step_over): Adjust.
6403 (infrun_thread_ptid_changed): Remove bit updating ptids in the
6404 displaced step queue.
6405 (do_target_resume): Adjust.
6406 (fetch_inferior_event): Use inferior_thread.
6407 (context_switch, get_inferior_stop_soon): Take an
6408 execution_control_state pointer instead of a ptid_t. All callers
6409 adjusted.
6410 (switch_to_thread_cleanup): Delete.
6411 (stop_all_threads): Use scoped_restore_current_thread.
6412 * inline-frame.c: Include "gdbthread.h".
6413 (inline_state) <inline_state>: Take a thread pointer instead of a
6414 ptid_t. All callers adjusted.
6415 <ptid>: Delete, replaced by ...
6416 <thread>: ... this new field.
6417 (find_inline_frame_state): Take a thread pointer instead of a
6418 ptid_t. All callers adjusted.
6419 (skip_inline_frames, step_into_inline_frame)
6420 (inline_skipped_frames, inline_skipped_symbol): Take a thread
6421 pointer instead of a ptid_t. All callers adjusted.
6422 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
6423 (inline_skipped_frames, inline_skipped_symbol): Likewise.
6424 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
6425 pointers directly.
6426 * linux-nat.c (get_detach_signal): Likewise.
6427 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
6428 (thread_db_notice_clone): Adjust.
6429 (thread_db_find_new_threads_silently)
6430 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
6431 a thread pointer instead of a ptid_t. All callers adjusted.
6432 * mi/mi-cmd-var.c: Include "inferior.h".
6433 (mi_cmd_var_update_iter): Update to use thread pointers.
6434 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
6435 inferior directly.
6436 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
6437 out to ...
6438 (mi_output_running): ... this new function.
6439 (mi_on_resume_1): Adjust to use it.
6440 (mi_user_selected_context_changed): Adjust to use inferior_thread.
6441 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
6442 directly.
6443 (interrupt_thread_callback): : Adjust to use thread and inferior
6444 pointers.
6445 * proc-service.c: Include "gdbthread.h".
6446 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
6447 * progspace-and-thread.c: Include "inferior.h".
6448 * progspace.c: Include "inferior.h".
6449 * python/py-exitedevent.c (create_exited_event_object): Adjust to
6450 hold a reference to an inferior_object.
6451 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
6452 inferior_thread.
6453 * python/py-inferior.c (struct inferior_object): Give the type a
6454 tag name instead of a typedef.
6455 (python_on_normal_stop): No need to check if the current thread is
6456 listed.
6457 (inferior_to_inferior_object): Change return type to
6458 inferior_object. All callers adjusted.
6459 (find_thread_object): Delete, bits factored out to ...
6460 (thread_to_thread_object): ... this new function.
6461 * python/py-infthread.c (create_thread_object): Use
6462 inferior_to_inferior_object.
6463 (thpy_is_stopped): Use thread pointer directly.
6464 (gdbpy_selected_thread): Use inferior_thread.
6465 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
6466 field, replaced with ...
6467 <thread>: ... this new field. All users adjusted.
6468 (btpy_insn_or_gap_new): Drop const.
6469 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
6470 callers adjusted.
6471 * python/py-record.c: Include "gdbthread.h".
6472 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6473 a ptid_t. All callers adjusted.
6474 (gdbpy_current_recording): Use inferior_thread.
6475 * python/py-record.h (recpy_record_object) <ptid>: Delete
6476 field, replaced with ...
6477 <thread>: ... this new field. All users adjusted.
6478 (recpy_element_object) <ptid>: Delete
6479 field, replaced with ...
6480 <thread>: ... this new field. All users adjusted.
6481 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6482 a ptid_t. All callers adjusted.
6483 * python/py-threadevent.c: Include "gdbthread.h".
6484 (get_event_thread): Use thread_to_thread_object.
6485 * python/python-internal.h (struct inferior_object): Forward
6486 declare.
6487 (find_thread_object, find_inferior_object): Delete declarations.
6488 (thread_to_thread_object, inferior_to_inferior_object): New
6489 declarations.
6490 * record-btrace.c: Include "inferior.h".
6491 (require_btrace_thread): Use inferior_thread.
6492 (record_btrace_frame_sniffer)
6493 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
6494 (get_thread_current_frame): Use scoped_restore_current_thread and
6495 switch_to_thread.
6496 (get_thread_current_frame): Use thread pointer directly.
6497 (record_btrace_replay_at_breakpoint): Use thread's inferior
6498 pointer directly.
6499 * record-full.c: Include "inferior.h".
6500 * regcache.c: Include "gdbthread.h".
6501 (get_thread_arch_regcache): Use the inferior's address space
6502 directly.
6503 (get_thread_regcache, registers_changed_thread): New.
6504 * regcache.h (get_thread_regcache(thread_info *thread)): New
6505 overload.
6506 (registers_changed_thread): New.
6507 (remote_target) <remote_detach_1>: Swap order of parameters.
6508 (remote_add_thread): <remote_add_thread>: Return the new thread.
6509 (get_remote_thread_info(ptid_t)): New overload.
6510 (remote_target::remote_notice_new_inferior): Use thread pointers
6511 directly.
6512 (remote_target::process_initial_stop_replies): Use
6513 thread_info::set_running.
6514 (remote_target::remote_detach_1, remote_target::detach)
6515 (extended_remote_target::detach): Adjust.
6516 * stack.c (frame_show_address): Use inferior_thread.
6517 * target-debug.h (target_debug_print_thread_info_pp): New.
6518 * target-delegates.c: Regenerate.
6519 * target.c (default_thread_address_space): Delete.
6520 (memory_xfer_partial_1): Use current_inferior.
6521 (target_detach): Use current_inferior.
6522 (target_thread_address_space): Delete.
6523 (generic_mourn_inferior): Use current_inferior.
6524 * target.h (struct target_ops) <thread_address_space>: Delete.
6525 (target_thread_address_space): Delete.
6526 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
6527 pointers directly.
6528 (delete_thread_1, delete_thread, delete_thread_silent): Take a
6529 thread pointer instead of a ptid_t. Adjust all callers.
6530 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
6531 (first_thread_of_process): Delete, replaced by ...
6532 (first_thread_of_inferior): ... this new function. All callers
6533 adjusted.
6534 (any_thread_of_process): Rename to ...
6535 (any_thread_of_inferior): ... this, and take an inferior pointer.
6536 (any_live_thread_of_process): Rename to ...
6537 (any_live_thread_of_inferior): ... this, and take an inferior
6538 pointer.
6539 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6540 (value_in_thread_stack_temporaries)
6541 (get_last_thread_stack_temporary): Take a thread pointer instead
6542 of a ptid_t. Adjust all callers.
6543 (thread_info::set_running): New.
6544 (validate_registers_access): Use inferior_thread.
6545 (can_access_registers_ptid): Rename to ...
6546 (can_access_registers_thread): ... this, and take a thread
6547 pointer.
6548 (print_thread_info_1): Adjust to compare thread pointers instead
6549 of ptids.
6550 (switch_to_no_thread, switch_to_thread): Make extern.
6551 (scoped_restore_current_thread::~scoped_restore_current_thread):
6552 Use m_thread pointer directly.
6553 (scoped_restore_current_thread::scoped_restore_current_thread):
6554 Use inferior_thread.
6555 (thread_command): Use thread pointer directly.
6556 (thread_num_make_value_helper): Use inferior_thread.
6557 * top.c (execute_command): Use inferior_thread.
6558 * tui/tui-interp.c: Include "inferior.h".
6559 * varobj.c (varobj_create): Use inferior_thread.
6560 (value_of_root_1): Use find_thread_global_id instead of
6561 global_thread_id_to_ptid.
6562
33bab475
AH
65632018-06-21 Alan Hayward <alan.hayward@arm.com>
6564
6565 * regcache.c (readable_regcache::read_part): Avoid memcpy when
6566 possible.
6567 (regcache::write_part): Likewise.
6568 (readable_regcache::cooked_read_part): Update comment.
6569 (readable_regcache::cooked_write_part): Likewise.
6570 * regcache.h: (readable_regcache::read_part): Likewise.
6571 (regcache::write_part): Likewise.
6572
8363f9d5
RB
65732018-06-21 Richard Bunt <richard.bunt@arm.com>
6574 Dirk Schubert <dirk.schubert@arm.com>
6575
6576 * aarch64-linux-nat.c (post_attach): New.
6577 (aarch64_linux_nat_target::post_attach): Override post_attach to
6578 record the number of hardware debug registers.
6579
0d0b0ea2
TT
65802018-06-20 Tom Tromey <tom@tromey.com>
6581
6582 * python/py-param.c (add_setshow_generic): Make parameters const.
6583 (parmpy_init): Update.
6584
302abd6e
SM
65852018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6586
6587 * regcache.h (regcache_cooked_read_ftype): Rename to...
6588 (register_read_ftype): ...this, change type to function_view.
6589 (class reg_buffer) <save>: Remove src parameter.
6590 (readonly_detached_regcache) <readonly_detached_regcache>: Make
6591 parameter non-const in first overload. Remove src parameter in
6592 second overload.
6593 * regcache.c (do_cooked_read): Remove.
6594 (readonly_detached_regcache::readonly_detached_regcache): Make
6595 parameter non-const, adjust call to other constructor.
6596 (reg_buffer::save): Remove src parameter.
6597 * frame.c (do_frame_register_read): Remove.
6598 (frame_save_as_regcache): Use lambda function.
6599 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
6600 parameter to ppu2spu_data *.
6601 (ppu2spu_sniffer): Use lambda function.
6602
19f3f25f
SM
66032018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6604
6605 * record-full.c (record_full_target::insert_breakpoint): Remove
6606 "struct" keyword, add const.
6607
d0ac1c44
SM
66082018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6609
6610 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
6611 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
6612 * configure.ac: Remove AC_PREREQ, add missing quoting.
6613 * gnulib/configure.ac: Modernize usage of
6614 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
6615 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
6616 (AUTOMAKE_VERSION): Bump to 1.15.1.
6617 * configure: Re-generate.
6618 * config.in: Re-generate.
6619 * aclocal.m4: Re-generate.
6620 * gnulib/aclocal.m4: Re-generate.
6621 * gnulib/config.in: Re-generate.
6622 * gnulib/configure: Re-generate.
6623 * gnulib/import/Makefile.in: Re-generate.
6624
6ae50267
PA
66252018-06-19 Pedro Alves <palves@redhat.com>
6626
6627 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
6628 (lookup_minimal_symbol_by_pc_section): ... here with
6629 gdb_assert_not_reached added.
6630
61b04dd0
PA
66312018-06-19 Pedro Alves <palves@redhat.com>
6632
6633 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6634 parameter with a block parameter. Compare location's block symbol
6635 with the frame's block instead of addresses.
6636 (skip_inline_frames): Pass the current block instead of the
6637 frame's address. Break out as soon as we determine the frame
6638 should not be skipped.
6639
f709fabb
TT
66402018-06-18 Tom Tromey <tom@tromey.com>
6641
6642 * solib-aix.c (solib_aix_get_section_offsets): Return
6643 unique_xmalloc_ptr.
6644 (solib_aix_solib_create_inferior_hook): Update.
6645
668eb2f0
TT
66462018-06-18 Tom Tromey <tom@tromey.com>
6647
6648 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6649
309822ca
TT
66502018-06-18 Tom Tromey <tom@tromey.com>
6651
6652 * solib-frv.c (frv_relocate_main_executable): Use
6653 unique_xmalloc_ptr.
6654 * solib-dsbt.c (dsbt_relocate_main_executable): Use
6655 unique_xmalloc_ptr.
6656
06424eac
TT
66572018-06-18 Tom Tromey <tom@tromey.com>
6658
6659 * objfiles.h (inhibit_section_map_updates): Update.
6660 (resume_section_map_updates, resume_section_map_updates_cleanup):
6661 Remove.
6662 * solib-svr4.c (svr4_handle_solib_event): Update.
6663 * objfiles.c (inhibit_section_map_updates): Return
6664 scoped_restore_tmpl<int>.
6665 (resume_section_map_updates, resume_section_map_updates_cleanup):
6666 Remove.
6667
b4be9fad
TT
66682018-06-18 Tom Tromey <tom@tromey.com>
6669
6670 * valprint.h (read_string): Update.
6671 * valprint.c (read_string): Change type of "buffer".
6672 (val_print_string): Update.
6673 * python/py-value.c (valpy_string): Update.
6674 * language.h (struct language_defn) <la_get_string>: Change
6675 type of "buffer".
6676 (default_get_string, c_get_string): Update.
6677 * language.c (default_get_string): Change type of "buffer".
6678 * guile/scm-value.c (gdbscm_value_to_string): Update.
6679 * c-lang.c (c_get_string): Change type of "buffer".
6680
3f0dbd67
TT
66812018-06-18 Tom Tromey <tom@tromey.com>
6682
6683 * ser-mingw.c (struct pipe_state_destroyer): New.
6684 (pipe_state_up): New typedef.
6685 (cleanup_pipe_state): Remove.
6686 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6687
69d340c6
TT
66882018-06-18 Tom Tromey <tom@tromey.com>
6689
6690 * rust-lang.h (rust_yyerror): Don't declare.
6691 * rust-lang.c (rust_language_defn): Update.
6692 * rust-exp.y (yyerror): Now static.
6693 * parse.c (parse_exp_in_context_1): Update.
6694 * p-lang.h (p_yyerror): Don't declare.
6695 * p-lang.c (p_language_defn): Update.
6696 * p-exp.y (yyerror): Now static.
6697 * opencl-lang.c (opencl_language_defn): Update.
6698 * objc-lang.c (objc_language_defn): Update.
6699 * m2-lang.h (m2_yyerror): Don't declare.
6700 * m2-lang.c (m2_language_defn): Update.
6701 * m2-exp.y (yyerror): Now static.
6702 * language.h (struct language_defn) <la_error>: Remove.
6703 * language.c (unk_lang_error): Remove.
6704 (unknown_language_defn, auto_language_defn): Remove.
6705 * go-lang.h (go_yyerror): Don't declare.
6706 * go-lang.c (go_language_defn): Update.
6707 * go-exp.y (yyerror): Now static.
6708 * f-lang.h (f_yyerror): Don't declare.
6709 * f-lang.c (f_language_defn): Update.
6710 * f-exp.y (yyerror): Now static.
6711 * d-lang.h (d_yyerror): Don't declare.
6712 * d-lang.c (d_language_defn): Update.
6713 * d-exp.y (yyerror): Now static.
6714 * c-lang.h (c_yyerror): Don't declare.
6715 * c-lang.c (c_language_defn, cplus_language_defn)
6716 (asm_language_defn, minimal_language_defn): Update.
6717 * c-exp.y (yyerror): Now static.
6718 * ada-lang.h (ada_yyerror): Don't declare.
6719 * ada-lang.c (ada_language_defn): Update.
6720 * ada-exp.y (yyerror): Now static.
6721
e9902bfc
AH
67222018-06-18 Alan Hayward <alan.hayward@arm.com>
6723
6724 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6725 (store_sveregs_to_thread): Likewise.
6726 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6727 (aarch64_linux_store_inferior_registers): Likewise.
6728 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6729 function.
6730 (aarch64_sve_regs_copy_to_regcache): Likewise.
6731 (aarch64_sve_regs_copy_from_regcache): Likewise.
6732 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6733 declaration.
6734 (aarch64_sve_regs_copy_to_regcache): Likewise.
6735 (aarch64_sve_regs_copy_from_regcache): Likewise.
6736 (sve_context): Structure from Linux headers.
6737 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6738 (SVE_SIG_ZREG_SIZE): Likewise.
6739 (SVE_SIG_PREG_SIZE): Likewise.
6740 (SVE_SIG_FFR_SIZE): Likewise.
6741 (SVE_SIG_REGS_OFFSET): Likewise.
6742 (SVE_SIG_ZREGS_OFFSET): Likewise.
6743 (SVE_SIG_ZREG_OFFSET): Likewise.
6744 (SVE_SIG_ZREGS_SIZE): Likewise.
6745 (SVE_SIG_PREGS_OFFSET): Likewise.
6746 (SVE_SIG_PREG_OFFSET): Likewise.
6747 (SVE_SIG_PREGS_SIZE): Likewise.
6748 (SVE_SIG_FFR_OFFSET): Likewise.
6749 (SVE_SIG_REGS_SIZE): Likewise.
6750 (SVE_SIG_CONTEXT_SIZE): Likewise.
6751 (SVE_PT_REGS_MASK): Likewise.
6752 (SVE_PT_REGS_FPSIMD): Likewise.
6753 (SVE_PT_REGS_SVE): Likewise.
6754 (SVE_PT_VL_INHERIT): Likewise.
6755 (SVE_PT_VL_ONEXEC): Likewise.
6756 (SVE_PT_REGS_OFFSET): Likewise.
6757 (SVE_PT_FPSIMD_OFFSET): Likewise.
6758 (SVE_PT_FPSIMD_SIZE): Likewise.
6759 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6760 (SVE_PT_SVE_PREG_SIZE): Likewise.
6761 (SVE_PT_SVE_FFR_SIZE): Likewise.
6762 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6763 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6764 (__SVE_SIG_TO_PT): Likewise.
6765 (SVE_PT_SVE_OFFSET): Likewise.
6766 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6767 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6768 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6769 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6770 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6771 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6772 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6773 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6774 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6775 (SVE_PT_SVE_SIZE): Likewise.
6776 (SVE_PT_SIZE): Likewise.
6777 (HAS_SVE_STATE): New define.
6778
17a1cc89
AH
67792018-06-18 Alan Hayward <alan.hayward@arm.com>
6780
6781 * nat/aarch64-sve-linux-sigcontext.h: New file.
6782 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6783 new files.
6784 (SVE_VQ_MIN): Likewise.
6785 (SVE_VQ_MAX): Likewise.
6786 (SVE_VL_MIN): Likewise.
6787 (SVE_VL_MAX): Likewise.
6788 (SVE_NUM_ZREGS): Likewise.
6789 (SVE_NUM_PREGS): Likewise.
6790 (sve_vl_valid): Likewise.
6791 (struct user_sve_header): Likewise.
6792
7010835a
AB
67932018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6794 Richard Bunt <Richard.Bunt@arm.com>
6795
6796 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6797 was requested by GDB.
6798
479b3ef4
TV
67992018-06-15 Tom de Vries <tdevries@suse.de>
6800
6801 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6802
8199b8f4
SM
68032018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6804
6805 * gnulib/update-gnulib.sh: Print expected versions of
6806 autoconf/aclocal.
6807
55c748a1
SM
68082018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6809
6810 * arch-utils.c (default_type_align): Use type_length_units.
6811 * gdbtypes.c (type_align): Use type_length_units.
6812
87a8eca7
PW
68132018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6814
6815 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6816 of 'define' command.
6817
5d9a0608
TV
68182018-06-14 Tom de Vries <tdevries@suse.de>
6819
6820 PR cli/22573
6821 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6822 get_no_prettyformat_print_options.
6823
ab89b5a5
SM
68242018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6825
6826 * sparc-nat.h: Include target.h.
6827 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6828 <fetch_registers>: Remove this argument in function call.
6829 <store_registers>: Remove this argument in function call, remove
6830 extra semicolon.
6831 <low_forget_process>: Call sparc64_forget_process instead of
6832 sparc_forget_process.
6833
62c808ae
RO
68342018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6835
6836 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6837 (procfs_target::make_corefile_notes): Adjust to new
6838 target_read_alloc return type.
6839
1840d81a
AB
68402018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6841 Stephen Roberts <stephen.roberts@arm.com>
6842
6843 PR gdb/22882
6844 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6845 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6846 Move should_notify_stop local into more inner scope.
6847
9516f85a
AB
68482018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6849 Stephen Roberts <stephen.roberts@arm.com>
6850
6851 PR gdb/22882
6852 * infrun.c (resume_1): Add call to mark_async_event_handler.
6853
defd2172
AB
68542018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6855
6856 * infrun.c (do_target_wait): Change old version of $pc printed.
6857
7b23e087
SM
68582018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6859
6860 * dwarf2read.c (read_index_from_section): Rename to...
6861 (read_gdb_index_from_section): ... this, update all callers.
6862 (dwarf2_read_index): Rename to...
6863 (dwarf2_read_gdb_index): ... this, update all callers.
6864
69c67a0b
JDA
68652018-06-11 John David Anglin <danglin@gcc.gnu.org>
6866
6867 * gdb/hppa-linux-nat.c
6868 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6869 hppa_linux_nat_target::fetch_registers.
6870
65d4cada
AH
68712018-06-11 Alan Hayward <alan.hayward@arm.com>
6872
6873 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6874 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6875 (AARCH64_DWARF_SVE_FFR): Likewise.
6876 (AARCH64_DWARF_SVE_P0): Likewise.
6877 (AARCH64_DWARF_SVE_Z0): Likewise.
6878
f868386e
AH
68792018-06-11 Alan Hayward <alan.hayward@arm.com>
6880
6881 * common/common-regcache.h (raw_compare): New function.
6882 * regcache.c (regcache::raw_compare): Likewise.
6883 * regcache.h (regcache::raw_compare): New declaration.
6884
9c861883
AH
68852018-06-11 Alan Hayward <alan.hayward@arm.com>
6886
6887 * common/common-regcache.h (reg_buffer_common): New structure.
6888 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6889 (reg_buffer::raw_supply): Likewise.
6890 (reg_buffer::raw_supply_integer): Likewise.
6891 (reg_buffer::raw_supply_zeroed): Likewise.
6892 (reg_buffer::raw_collect): Likewise.
6893 (reg_buffer::raw_collect_integer): Likewise.
6894 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6895 (reg_buffer::raw_supply): Likewise.
6896 (reg_buffer::raw_supply_integer): Likewise.
6897 (reg_buffer::raw_supply_zeroed): Likewise.
6898 (reg_buffer::raw_collect): Likewise.
6899 (reg_buffer::raw_collect_integer): Likewise.
6900
953edf2b
TT
69012018-06-10 Tom Tromey <tom@tromey.com>
6902
6903 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6904 (class remote_state) <stop_reply_queue>: Now std::vector.
6905 (remote_state::~remote_state)
6906 (remote_target::stop_reply_queue_length): Update.
6907 (struct queue_iter_param, remove_child_of_pending_fork)
6908 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6909 (check_pending_event_prevents_wildcard_vcont_callback)
6910 (remove_stop_reply_for_inferior)
6911 (remove_stop_reply_of_remote_state)
6912 (remote_notif_remove_once_on_match)
6913 (stop_reply_match_ptid_and_ws)
6914 (remote_kill_child_of_pending_fork): Remove.
6915 (remote_target::remove_new_fork_children)
6916 (remote_target::check_pending_events_prevent_wildcard_vcont)
6917 (remote_target::discard_pending_stop_replies)
6918 (remote_target::discard_pending_stop_replies_in_queue)
6919 (remote_target::remote_notif_remove_queued_reply)
6920 (remote_target::queued_stop_reply)
6921 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6922 (remote_target::wait, remote_target::kill_new_fork_children)
6923 (remote_target::async): Update.
6924
1ddbba9d
TT
69252018-06-10 Tom Tromey <tom@tromey.com>
6926
6927 * record-full.c (record_full_arch_list_cleanups): Remove.
6928 (record_full_message): Use try/catch.
6929 (record_full_wait_cleanups): Remove.
6930 (record_full_wait_1): Use try/catch.
6931 (record_full_restore): Likewise.
6932
219605fd
TT
69332018-06-10 Tom Tromey <tom@tromey.com>
6934
6935 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6936 declare VEC. Add constructor.
6937 <in_target_beneath>: Now bool.
6938 (record_full_breakpoints): Now a std::vector, static.
6939 (record_full_sync_record_breakpoints)
6940 (record_full_init_record_breakpoints)
6941 (record_full_target::insert_breakpoint)
6942 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6943
71b73764
SM
69442018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6945
6946 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6947 * serial.c (serial_interface_lookup): Remove struct keyword.
6948
4360561f
TT
69492018-06-10 Tom Tromey <tom@tromey.com>
6950
6951 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6952 method.
6953 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6954 a method.
6955 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6956 method.
6957 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6958 "beneath" as a method.
6959 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6960 Use "beneath" as a method.
6961
d14b92bf
TT
69622018-06-10 Tom Tromey <tom@tromey.com>
6963
6964 * tracefile.c (struct trace_file_writer_deleter): New.
6965 <operator()>: Rename from trace_file_writer_xfree.
6966 (trace_file_writer_up): New typedef.
6967 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6968
835dcf92
SM
69692018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6970
6971 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6972 <m_registers, m_register_status>: Change type to
6973 std::unique_ptr.
6974 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6975 XCNEWVEC.
6976
aac0d564
SM
69772018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6978
6979 * common/common-regcache.h (enum register_status): Add
6980 underlying type "signed char".
6981 * regcache.h (reg_buffer) <m_register_status>: Change type to
6982 register_status *.
6983 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6984 register_status instead of signed char.
6985 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6986 (reg_buffer::get_register_status): Remove cast.
6987 (readable_regcache::raw_read): Remove cast.
6988 (readable_regcache::cooked_read): Remove cast.
6989
77ad7394
TT
69902018-06-09 Tom Tromey <tom@tromey.com>
6991
6992 * source.c (reverse_search_command, forward_search_command): Use
6993 scoped_fd.
6994
191cca63
TT
69952018-06-09 Tom Tromey <tom@tromey.com>
6996
6997 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6998 (serial_ops_list): Now static, std::vector.
6999 (serial_interface_lookup, serial_add_interface): Update.
7000
c5d0225d
TT
70012018-06-09 Tom Tromey <tom@tromey.com>
7002
7003 * dwarf2read.c (process_cu_includes): Update.
7004 (process_full_comp_unit): Update.
7005 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7006 std::vector.
7007
aeab5128
PK
70082018-06-08 Paul Koning <paul_koning@dell.com>
7009
7010 PR gdb/23252
7011
7012 * python/python.c (do_start_initialization):
7013 Avoid call to internal Python API.
7014 (init__gdb_module): New function.
7015
5045b3d7
GB
70162018-06-08 Gary Benson <gbenson@redhat.com>
7017
7018 * linux-thread-db.c (valprint.h): New include.
7019 (struct check_thread_db_info): New structure.
7020 (check_thread_db_on_load, tdb_testinfo): New static globals.
7021 (check_thread_db, check_thread_db_callback): New functions.
7022 (try_thread_db_load_1): Run integrity checks if requested.
7023 (maintenance_check_libthread_db): New function.
7024 (_initialize_thread_db): Register "maint check libthread-db"
7025 and "maint set/show check-libthread-db".
7026 * NEWS: Mention the above new commands.
7027
2f4f025f
TT
70282018-06-08 Tom Tromey <tom@tromey.com>
7029
7030 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7031 now a method.
7032
343b0027
TT
70332018-06-08 Tom Tromey <tom@tromey.com>
7034
7035 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7036
8dcc53b3
TT
70372018-06-08 Tom Tromey <tom@tromey.com>
7038
7039 * common/btrace-common.h (struct btrace_data): Add constructor,
7040 destructor, move assignment operator.
7041 <empty, clear, fini>: New methods.
7042 <format>: Initialize.
7043 (btrace_data_init, btrace_data_fini, btrace_data_clear)
7044 (btrace_data_empty): Don't declare.
7045 * common/btrace-common.c (btrace_data_init): Remove.
7046 (btrace_data::fini): Rename from btrace_data_fini.
7047 (btrace_data::empty): Rename from btrace_data_empty.
7048 (btrace_data::clear): Rename from btrace_data_clear. Return
7049 bool.
7050 * btrace.h (make_cleanup_btrace_data): Don't declare.
7051 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7052 (parse_xml_btrace): Update.
7053 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
7054 (maint_btrace_clear_packet_history_cmd): Update.
7055
a1740ee1
PA
70562018-06-07 Pedro Alves <palves@redhat.com>
7057
7058 * target.h (target_ops) <beneath>: Now a method. All references
7059 updated.
7060 (class target_stack): New.
7061 * target.c (g_target_stack): New.
7062 (g_current_top_target): Delete.
7063 (current_top_target): Get the top target out of g_target_stack.
7064 (target_stack::push, target_stack::unpush): New.
7065 (push_target, unpush_target): Reimplement.
7066 (target_is_pushed): Reimplement in terms of g_target_stack.
7067 (target_ops::beneath, target_stack::find_beneath): New.
7068
d6ca69cd
PA
70692018-06-07 Pedro Alves <palves@redhat.com>
7070
7071 * target.h (find_target_beneath): Delete declaration.
7072 * target.c (find_target_beneath): Delete definition.
7073 * aix-thread.c: All callers of find_target_beneath adjusted to
7074 call target_ops::beneath instead.
7075 * bsd-uthread.c: Likewise.
7076 * linux-thread-db.c: Likewise.
7077 * ravenscar-thread.c: Likewise.
7078 * sol-thread.c: Likewise.
7079 * spu-multiarch.c: Likewise.
7080
b6a8c27b
PA
70812018-06-07 Pedro Alves <palves@redhat.com>
7082
7083 * target.h (target_ops) <beneath>: Now a method. All references
7084 updated.
7085 (target_ops) <m_beneath>: New.
7086 * target.c (target_ops::beneath): New.
7087 * corelow.c: Adjust all references to target_ops::beneath.
7088 * linux-thread-db.c: Likewise.
7089 * make-target-delegates: Likewise.
7090 * record-btrace.c: Likewise.
7091 * record-full.c: Likewise.
7092 * remote.c: Likewise.
7093 * target.c: Likewise.
7094 * target-delegates.c: Regenerate.
7095
8b88a78e
PA
70962018-06-07 Pedro Alves <palves@redhat.com>
7097
7098 * target.h (target_stack): Delete.
7099 (current_top_target): Declare function.
7100 * target.c (target_stack): Delete.
7101 (g_current_top_target): New.
7102 (current_top_target): New function.
7103 * auxv.c: Use current_top_target instead of target_stack
7104 throughout.
7105 * avr-tdep.c: Likewise.
7106 * breakpoint.c: Likewise.
7107 * corefile.c: Likewise.
7108 * elfread.c: Likewise.
7109 * eval.c: Likewise.
7110 * exceptions.c: Likewise.
7111 * frame.c: Likewise.
7112 * gdbarch-selftests.c: Likewise.
7113 * gnu-v3-abi.c: Likewise.
7114 * ia64-tdep.c: Likewise.
7115 * ia64-vms-tdep.c: Likewise.
7116 * infcall.c: Likewise.
7117 * infcmd.c: Likewise.
7118 * infrun.c: Likewise.
7119 * linespec.c: Likewise.
7120 * linux-tdep.c: Likewise.
7121 * minsyms.c: Likewise.
7122 * ppc-linux-nat.c: Likewise.
7123 * ppc-linux-tdep.c: Likewise.
7124 * procfs.c: Likewise.
7125 * regcache.c: Likewise.
7126 * remote.c: Likewise.
7127 * rs6000-tdep.c: Likewise.
7128 * s390-linux-nat.c: Likewise.
7129 * s390-tdep.c: Likewise.
7130 * solib-aix.c: Likewise.
7131 * solib-darwin.c: Likewise.
7132 * solib-dsbt.c: Likewise.
7133 * solib-spu.c: Likewise.
7134 * solib-svr4.c: Likewise.
7135 * solib-target.c: Likewise.
7136 * sparc-tdep.c: Likewise.
7137 * sparc64-tdep.c: Likewise.
7138 * spu-tdep.c: Likewise.
7139 * symfile.c: Likewise.
7140 * symtab.c: Likewise.
7141 * target-descriptions.c: Likewise.
7142 * target-memory.c: Likewise.
7143 * target.c: Likewise.
7144 * target.h: Likewise.
7145 * tracefile-tfile.c: Likewise.
7146 * tracepoint.c: Likewise.
7147 * valops.c: Likewise.
7148 * valprint.c: Likewise.
7149 * value.c: Likewise.
7150 * windows-tdep.c: Likewise.
7151 * mi/mi-main.c: Likewise.
7152
c7110220
TT
71532018-06-07 Tom Tromey <tom@tromey.com>
7154
7155 * valprint.h (build_address_symbolic): Declare.
7156 * printcmd.c (print_address_symbolic): Update.
7157 (build_address_symbolic): Change "name" and "filename" to
7158 std::string.
7159 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7160 Update.
7161 * defs.h (build_address_symbolic): Remove declaration.
7162
63bad7b6
AH
71632018-06-07 Alan Hayward <alan.hayward@arm.com>
7164
7165 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7166 (aarch64_vnv_type): Add function.
7167 (aarch64_pseudo_register_name): Add V regs for SVE.
7168 (aarch64_pseudo_register_type): Likewise.
7169 (aarch64_pseudo_register_reggroup_p): Likewise.
7170 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7171 (aarch64_pseudo_read_value): Add V regs for SVE.
7172 (aarch64_pseudo_write_2): Use V0 offset for SVE
7173 (aarch64_pseudo_write): Add V regs for SVE.
7174 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7175
13e3c608
SDJ
71762018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
7177
7178 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7179 (sve_vl_from_vq): Likewise.
7180
c61b06a1
TT
71812018-06-05 Tom Tromey <tom@tromey.com>
7182
7183 * cli/cli-cmds.c (show_version): Update.
7184 * top.c (print_gdb_version): Add "interactive" parameter.
7185 Update.
7186 * main.c (captured_main_1): Update.
7187 * top.h (print_gdb_version): Add "interactive" parameter and a
7188 comment.
7189
115f7325
DM
71902018-06-05 David Malcolm <dmalcolm@redhat.com>
7191
7192 * common/enum-flags.h: Add trailing semicolon to example in
7193 comment.
7194
eb6af809
TT
71952018-06-05 Tom Tromey <tom@tromey.com>
7196
7197 PR cli/12326:
7198 * NEWS: Add entry about pager.
7199 * utils.c (pagination_disabled_for_command): New global.
7200 (prompt_for_continue): Allow "c" response to prompt.
7201 (reinitialize_more_filter): Clear
7202 pagination_disabled_for_command.
7203 (fputs_maybe_filtered): Check pagination_disabled_for_command.
7204
54d343a2
TT
72052018-06-04 Tom Tromey <tom@tromey.com>
7206
7207 * ada-lang.h (ada_lookup_symbol_list): Update.
7208 * ada-lang.c (resolve_subexp): Update.
7209 (symbols_are_identical_enums): Change type of syms. Remove nsyms
7210 parameter.
7211 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7212 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7213 results parameter to std::vector.
7214 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7215 Update.
7216 * ada-exp.y (block_lookup): Update.
7217 (select_possible_type_sym): Change type of syms. Remove nsyms
7218 parameter.
7219 (write_var_or_type, write_name_assoc): Update.
7220
178d6a63
JB
72212018-06-04 Joel Brobecker <brobecker@adacore.com>
7222
7223 * windows-nat.c (windows_nat_target::xfer_partial): Return
7224 TARGET_XFER_E_IO if we need to delegate to the target beneath
7225 but BENEATH is NULL.
7226
baf00c2d
SM
72272018-06-04 Simon Marchi <simon.marchi@ericsson.com>
7228
7229 * Makefile.in (config.status): Add configure.nat as a
7230 dependency.
7231
214b073c
TT
72322018-06-04 Tom Tromey <tom@tromey.com>
7233
7234 * cp-name-parser.y (cpname_state): Add method declarations.
7235 (HANDLE_QUAL): Update.
7236 (cpname_state::d_grab, cpname_state::fill_comp)
7237 (cpname_state::make_operator, cpname_state::make_dtor)
7238 (cpname_state::make_builtin_type, cpname_state::make_name)
7239 (cpname_state::d_qualify, cpname_state::d_int_type)
7240 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7241 (%union): Move earlier.
7242
62b74cb8
AH
72432018-06-04 Alan Hayward <alan.hayward@arm.com>
7244
7245 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7246
3c5cd5c3
AH
72472018-06-04 Alan Hayward <alan.hayward@arm.com>
7248
7249 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7250 (aarch64_pseudo_write_1): Likewise.
7251 (aarch64_pseudo_read_value): Use helper.
7252 (aarch64_pseudo_write): Likewise.
7253
59f413d5
PA
72542018-06-04 Pedro Alves <palves@redhat.com>
7255
7256 * darwin-nat.c (darwin_ops): Delete.
7257 (darwin_attach_pid): Use get_native_target.
7258
1332a140
AH
72592018-06-04 Alan Hayward <alan.hayward@arm.com>
7260
7261 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7262 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7263
ba2d2bb2
AH
72642018-06-04 Alan Hayward <alan.hayward@arm.com>
7265
7266 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7267 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7268 (aarch64_gdbarch_init): Check for SVE.
7269 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7270
72712018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
7272
7273 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
7274 * aarch64-tdep.h (aarch64_read_description): Likewise.
7275 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7276 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7277 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
7278 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
7279 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
7280
41c60b4b
SM
72812018-06-02 Simon Marchi <simon.marchi@ericsson.com>
7282
7283 * value.c (value_fetch_lazy_bitfield): New.
7284 (value_fetch_lazy_memory): New.
7285 (value_fetch_lazy_register): New.
7286 (value_fetch_lazy): Factor out to smaller functions.
7287
7b640f72
TT
72882018-06-01 Tom Tromey <tom@tromey.com>
7289
7290 * cp-name-parser.y (backslashable, represented): Now const.
7291
98e69eb3
TT
72922018-06-01 Tom Tromey <tom@tromey.com>
7293
7294 * cp-name-parser.y: Include parser-defs.h.
7295 (parser_fprintf): Remove declaration.
7296
49265499
TT
72972018-06-01 Tom Tromey <tom@tromey.com>
7298
7299 * cp-name-parser.y: Use %pure-parser, %lex-param, and
7300 %parse-param.
7301 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
7302 (global_result): Remove globals.
7303 (struct cpname_state): New.
7304 (yyparse): Don't declare.
7305 (yylex, yyerror): Move declarations after %union.
7306 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
7307 (make_name): Add state parameter.
7308 Update all callers.
7309 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
7310 parameter.
7311 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
7312 Update.
7313 (yylex): Add lvalp, state parameters.
7314 (yyerror): Add state parameter.
7315 (cp_demangled_name_to_comp): Update.
7316
55b6c984
TT
73172018-06-01 Tom Tromey <tom@tromey.com>
7318
7319 * cp-name-parser.y (parser_fprintf): Declare.
7320 (GDB_YY_REMAP_PREFIX): Define.
7321 Include yy-remap.h. Don't redefine yy* identifiers.
7322
3513a6bb
TT
73232018-06-01 Tom Tromey <tom@tromey.com>
7324
7325 * python/py-type.c (typy_legacy_template_argument): Update.
7326 * cp-support.h (cp_demangled_name_to_comp): Update.
7327 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
7328 parameter to be a "std::string *".
7329 (main): Update.
7330
e9cb46ab
L
73312018-06-01 H.J. Lu <hongjiu.lu@intel.com>
7332
7333 * ada-lex.l: Include "diagnostics.h" instead of
7334 "common/diagnostics.h".
7335 * unittests/environ-selftests.c: Likewise.
7336 * common/diagnostics.h: Moved to ../include.
7337
8e817061
JB
73382018-06-01 Joel Brobecker <brobecker@adacore.com>
7339
7340 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
7341 to language_mode_manual while calling breakpoint_re_set_one.
7342
a737d952
TT
73432018-06-01 Tom Tromey <tom@tromey.com>
7344
7345 * valops.c (value_cast_structs, destructor_name_p): Update.
7346 * symtab.c (gdb_mangle_name): Update.
7347 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
7348 Update.
7349 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
7350 (pascal_object_print_value_fields, pascal_object_print_value):
7351 Update.
7352 * p-typeprint.c (pascal_type_print_derivation_info): Update.
7353 * linespec.c (find_methods): Update.
7354 * gdbtypes.h (type_name_no_tag): Remove.
7355 (type_name_or_error): Rename from type_name_no_tag_or_error.
7356 * gdbtypes.c (type_name_no_tag): Remove.
7357 (type_name_or_error): Rename from type_name_no_tag_or_error.
7358 (lookup_struct_elt_type, check_typedef): Update.
7359 * expprint.c (print_subexp_standard): Update.
7360 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
7361 * d-namespace.c (d_lookup_nested_symbol): Update.
7362 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
7363 (cp_print_class_member): Update.
7364 * cp-namespace.c (cp_lookup_nested_symbol): Update.
7365 * completer.c (add_struct_fields): Update.
7366 * c-typeprint.c (cp_type_print_derivation_info)
7367 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
7368 Update.
7369 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
7370 (ada_prefer_type, ada_is_exception_sym): Update.
7371
e86ca25f
TT
73722018-06-01 Tom Tromey <tom@tromey.com>
7373
7374 * valops.c (enum_constant_from_type, value_namespace_elt)
7375 (value_maybe_namespace_elt): Update.
7376 * valarith.c (find_size_for_pointer_math): Update.
7377 * target-descriptions.c (make_gdb_type): Update.
7378 * symmisc.c (print_symbol): Update.
7379 * stabsread.c (define_symbol, read_type)
7380 (complain_about_struct_wipeout, add_undefined_type)
7381 (cleanup_undefined_types_1): Update.
7382 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
7383 (rust_range_type_p, val_print_struct, rust_print_struct_def)
7384 (rust_internal_print_type, rust_composite_type)
7385 (rust_evaluate_funcall, rust_evaluate_subexp)
7386 (rust_inclusive_range_type_p): Update.
7387 * python/py-type.c (typy_get_tag): Update.
7388 * p-typeprint.c (pascal_type_print_base): Update.
7389 * mdebugread.c (parse_symbol, parse_type): Update.
7390 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
7391 Update.
7392 * guile/scm-type.c (gdbscm_type_tag): Update.
7393 * go-lang.c (sixg_string_p): Update.
7394 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
7395 Update.
7396 * gdbtypes.h (struct main_type) <tag_name>: Remove.
7397 (TYPE_TAG_NAME): Remove.
7398 * gdbtypes.c (type_name_no_tag): Simplify.
7399 (check_typedef, check_types_equal, recursive_dump_type)
7400 (copy_type_recursive, arch_composite_type): Update.
7401 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
7402 in summary mode when needed.
7403 * eval.c (evaluate_funcall): Update.
7404 * dwarf2read.c (fixup_go_packaging, read_structure_type)
7405 (process_structure_scope, read_enumeration_type)
7406 (read_namespace_type, read_module_type, determine_prefix): Update.
7407 * cp-support.c (inspect_type): Update.
7408 * coffread.c (process_coff_symbol, decode_base_type): Update.
7409 * c-varobj.c (c_is_path_expr_parent): Update.
7410 * c-typeprint.c (c_type_print_base_struct_union): Update.
7411 (c_type_print_base_1): Update. Print struct/class/union/enum in
7412 summary when using C language.
7413 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
7414 (gen_maybe_namespace_elt): Update.
7415 * ada-lang.c (ada_type_name): Simplify.
7416 (empty_record, ada_template_to_fixed_record_type_1)
7417 (template_to_static_fixed_type)
7418 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
7419
c1ec8cea
TT
74202018-06-01 Tom Tromey <tom@tromey.com>
7421
7422 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
7423 c_print_type.
7424 * c-typeprint.c (c_print_type_1): Add "language" parameter.
7425 (c_print_type): Update.
7426 (c_print_type): New overload.
7427 (c_type_print_varspec_prefix, c_type_print_args)
7428 (c_type_print_varspec_suffix, c_print_type_no_offsets)
7429 (c_type_print_base_struct_union, c_type_print_base_1)
7430 (cp_type_print_method_args): Add "language" parameter.
7431 (c_type_print_base): Update.
7432 * c-lang.h (c_print_type): Add new overload.
7433
bc8453a7
TT
74342018-06-01 Tom Tromey <tom@tromey.com>
7435
7436 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
7437 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
7438
739e8682
AH
74392018-06-01 Alan Hayward <alan.hayward@arm.com>
7440
7441 * aarch64-tdep.c (aarch64_sve_register_names): New const
7442 var.
7443 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
7444 (AARCH64_SVE_Z_REGS_NUM): New define.
7445 (AARCH64_SVE_P_REGS_NUM): Likewise.
7446 (AARCH64_SVE_NUM_REGS): Likewise.
7447
8a60efe7
UB
74482018-05-31 Uros Bizjak <ubizjak@gmail.com>
7449
7450 * nat/linux-ptrace.h [__alpha__]
7451 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
7452 definitions.
7453
4b2dfa9d
MR
74542018-05-31 Maciej W. Rozycki <macro@mips.com>
7455
7456 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
7457 the endianness selected.
7458 * NEWS: Document `set endian auto' mode operation update.
7459
122394f1
AH
74602018-05-31 Alan Hayward <alan.hayward@arm.com>
7461
7462 * Makefile.in: Add new header.
7463 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
7464 (sve_vl_from_vg): Likewise.
7465 (sve_vq_from_vl): Likewise.
7466 (sve_vl_from_vq): Likewise.
7467 (sve_vq_from_vg): Likewise.
7468 (sve_vg_from_vq): Likewise.
7469 * configure.nat: Add new c file.
7470 * nat/aarch64-sve-linux-ptrace.c: New file.
7471 * nat/aarch64-sve-linux-ptrace.h: New file.
7472
95228a0d
AH
74732018-05-31 Alan Hayward <alan.hayward@arm.com>
7474
7475 * aarch64-linux-nat.c (aarch64_linux_read_description):
7476 Add parmeter zero.
7477 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7478 Likewise.
7479 * aarch64-tdep.c (tdesc_aarch64_list): Add.
7480 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
7481 (aarch64_gdbarch_init): Add parmeter zero.
7482 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
7483 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
7484 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
7485 parmeter.
7486 * doc/gdb.texinfo: Describe SVE feature
7487 * features/aarch64-sve.c: New file.
7488
5969f0db
OJ
74892018-05-31 Omair Javaid <omair.javaid@linaro.org>
7490
7491 PR gdb/23210
7492 * gdbarch.sh (significant_addr_bit): Default to zero when
7493 not set by target architecture.
7494 * gdbarch.c: Re-generated.
7495 * utils.c (address_significant): Update.
7496
61367c61
JB
74972018-05-30 Joel Brobecker <brobecker@adacore.com>
7498
7499 * stack.c (func_command): Remove trailing newline in call to error.
7500
34a79281
SM
75012018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7502
7503 * regcache.h (regcache_raw_collect): Remove, update callers to
7504 use regcache::raw_collect.
7505 * regcache.c (regcache_raw_collect): Remove.
7506
73e1c03f
SM
75072018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7508
7509 * regcache.h (regcache_raw_supply): Remove, update callers to
7510 use detached_regcache::raw_supply.
7511 * regcache.c (regcache_raw_supply): Remove.
7512
e4c4a59b
SM
75132018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7514
7515 * regcache.h (regcache_cooked_write_part): Remove, update
7516 callers to use regcache::cooked_write_part.
7517 * regcache.c (regcache_cooked_write_part): Remove.
7518
73bb0000
SM
75192018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7520
7521 * regcache.h (regcache_cooked_read_part): Remove, update callers
7522 to use readable_regcache::cooked_read_part.
7523 * regcache.c (regcache_cooked_read_part): Remove.
7524
46a45e9d
SM
75252018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7526
7527 * regcache.h (regcache_cooked_read_value): Remove, update
7528 callers to use readable_regcache::cooked_read_value.
7529 * regcache.c (regcache_cooked_read_value): Remove.
7530
b66f5587
SM
75312018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7532
7533 * regcache.h (regcache_cooked_write): Remove, update callers to
7534 use regcache::cooked_write.
7535 * regcache.c (regcache_cooked_write): Remove.
7536
6aa7d724
SM
75372018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7538
7539 * regcache.h (regcache_invalidate): Remove, update callers to
7540 use detached_regcache::invalidate instead.
7541 * regcache.c (regcache_invalidate): Remove.
7542
4f0420fd
SM
75432018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7544
7545 * regcache.h (regcache_raw_write_part): Remove, update callers
7546 to use regcache::raw_write_part instead.
7547 * regcache.c (regcache_raw_write_part): Remove.
7548
502fe83e
SM
75492018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7550
7551 * regcache.h (regcache_raw_read_part): Remove, update callers to
7552 use readable_regcache::raw_read_part instead.
7553 * regcache.c (regcache_raw_read_part): Remove.
7554
dca08e1f
SM
75552018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7556
7557 * regcache.h (regcache_cooked_read): Remove, update callers to
7558 use readable_regcache::cooked_read instead.
7559 * regcache.c (regcache_cooked_read): Remove.
7560
10eaee5f
SM
75612018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7562
7563 * regcache.h (regcache_raw_write): Remove, update callers to use
7564 regcache::raw_write instead.
7565 * regcache.c (regcache_raw_write): Remove.
7566
0b883586
SM
75672018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7568
7569 * regcache.h (regcache_raw_read): Remove, update callers to use
7570 readable_regcache::raw_read instead.
7571 * regcache.c (regcache_raw_read): Remove.
7572
0b47d985
SM
75732018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7574
7575 * regcache.h (regcache_raw_update): Remove, update callers to
7576 use readable_regcache::raw_update instead.
7577 * regcache.c (regcache_raw_update): Remove.
7578
0ec9f114
SM
75792018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7580
7581 * regcache.h (regcache_register_status): Remove, update callers
7582 to use reg_buffer::get_register_status directly instead.
7583 * regcache.c (regcache_register_status): Remove.
7584
222312d3
SM
75852018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7586
7587 * regcache.h (regcache_get_ptid): Remove, update all callers to
7588 call regcache::ptid instead.
7589 * regcache.c (regcache_get_ptid): Remove.
7590
fdbe37e3
SM
75912018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7592
7593 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
7594
f7c6f423
PA
75952018-05-30 Pedro Alves <palves@redhat.com>
7596
7597 * common/common-exceptions.h (exception_rethrow): Use
7598 ATTRIBUTE_NORETURN.
7599
52941706
SM
76002018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
7601
7602 * breakpoint.c (print_solib_event, check_status_catch_solib):
7603 Remove struct keyword in range-based for loops.
7604 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
7605 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
7606 Likewise.
7607 * linespec.c (find_superclass_methods, search_minsyms_for_name):
7608 Likewise.
7609 * symfile.c (addr_info_make_relative): Likewise.
7610 * thread.c (value_in_thread_stack_temporaries): Likewise.
7611
bf2977b5
WP
76122018-06-12 Weimin Pan <weimin.pan@oracle.com>
7613
7614 PR gdb/16841
7615 * valops.c (value_struct_elt_for_reference): Call check_typedef on
7616 aggregate type to get its real type before accessing it.
7617
64cc34d8
WP
76182018-05-29 Weimin Pan <weimin.pan@oracle.com>
7619
7620 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
7621 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
7622 * coff-pe-read.c (add_pe_forwarded_sym): Replace
7623 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
7624 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
7625 * jit.c (jit_breakpoint_re_set_internal): Likewise.
7626 * printcmd.c (info_address_command): Likewise.
7627
e7ec8713
TT
76282018-05-29 Tom Tromey <tom@tromey.com>
7629
7630 * windows-nat.c (handle_exception): Update fall-through comment.
7631
bcb430e4
TT
76322018-05-29 Tom Tromey <tom@tromey.com>
7633
7634 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
7635 (struct program_space) <added_solibs>: Now a std::vector.
7636 * breakpoint.c (print_solib_event): Update.
7637 (check_status_catch_solib): Update.
7638 * progspace.c (clear_program_space_solib_cache): Update.
7639 * solib.c (update_solib_list): Update.
7640
894882e3
TT
76412018-05-29 Tom Tromey <tom@tromey.com>
7642
7643 * python/py-type.c (typy_richcompare): Update.
7644 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7645 * gdbtypes.h (types_deeply_equal): Return bool.
7646 (types_equal): Likewise.
7647 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
7648 declare VEC.
7649 (check_types_equal): Change worklist to std::vector. Return
7650 bool.
7651 (struct type_equality_entry): Add constructor.
7652 (compare_maybe_null_strings): Return bool.
7653 (check_types_worklist): Return bool. Change worklist to
7654 std::vector.
7655 (types_deeply_equal): Use std::vector.
7656 (types_equal): Return bool.
7657 (compare_maybe_null_strings): Simplify.
7658
10b2ded4
TT
76592018-05-29 Tom Tromey <tom@tromey.com>
7660
7661 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
7662
4f7deebe
TT
76632018-05-29 Tom Tromey <tom@tromey.com>
7664
7665 * objc-lang.h: Don't include cp-support.h.
7666 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
7667 declare VEC.
7668
b8283aea
TT
76692018-05-27 Tom Tromey <tom@tromey.com>
7670
7671 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7672
41a883c8
TT
76732018-05-25 Tom Tromey <tom@tromey.com>
7674
7675 * value.c (value::location): Initialize.
7676
bf259e25
TT
76772018-05-25 Tom Tromey <tom@tromey.com>
7678
7679 * dbxread.c (init_bincl_list): Remove.
7680 (bincl_list): Now a std::vector.
7681 (bincls_allocated, next_bincl): Remove.
7682 (free_bincl_list, do_free_bincl_list_cleanup)
7683 (make_cleanup_free_bincl_list): Remove.
7684 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7685 unique_xmalloc_ptr.
7686 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7687 (struct header_file_location): Add constructor.
7688 (add_bincl_to_list): Remove.
7689
d525a99b
TT
76902018-05-25 Tom Tromey <tom@tromey.com>
7691
7692 * tui/tui.c (tui_enable): Update.
7693 * mi/mi-interp.c (mi_interp::init): Update.
7694 * interps.h (class interp) <name>: New method.
7695 <m_name>: Rename from name.
7696 (~scoped_restore_interp): Update.
7697 * interps.c (interp::interp): Update.
7698 (interp_add, interp_set, interp_lookup_existing)
7699 (current_interp_named_p): Update.
7700
da505cff
TT
77012018-05-25 Tom Tromey <tom@tromey.com>
7702
7703 * interps.c (interp_name): Remove.
7704 * mi/mi-interp.c (mi_interp::init): Update.
7705 * interps.h (interp_name): Remove.
7706 (~scoped_restore_interp): Update.
7707 * tui/tui.c (tui_enable): Update.
7708
29f94340
TT
77092018-05-25 Tom Tromey <tom@tromey.com>
7710
7711 * utils.c (fputs_maybe_filtered): Update.
7712 * linespec.c (decode_line_full): Update.
7713 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7714 (mi_print_breakpoint_for_event, mi_solib_loaded)
7715 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7716 (mi_user_selected_context_changed): Update.
7717 * mi/mi-main.c (mi_execute_command): Update.
7718 * cli/cli-script.c (execute_control_command): Update.
7719 * python/python.c (execute_gdb_command): Update.
7720 * solib.c (info_sharedlibrary_command): Update.
7721 * interps.c (interp_ui_out): Remove.
7722 * interps.h (interp_ui_out): Remove.
7723
716b8bc5
TT
77242018-05-25 Tom Tromey <tom@tromey.com>
7725
7726 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7727 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7728 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7729
753ff9bd
TT
77302018-05-25 Tom Tromey <tom@tromey.com>
7731
7732 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7733 * interps.c (interp_exec): Use scoped_restore.
7734
5ca3b260
TT
77352018-05-25 Tom Tromey <tom@tromey.com>
7736
7737 * remote.c (remote_target::remote_file_get): Use
7738 gdb::byte_vector.
7739 (remote_target::remote_file_put): Likewise.
7740
3173aa2f
TT
77412018-05-25 Tom Tromey <tom@tromey.com>
7742
7743 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7744 a std::string.
7745 (get_pe_section_index, add_pe_exported_sym): Update.
7746 (read_pe_exported_syms): Use gdb::def_vector.
7747
09a5e1b5
TT
77482018-05-25 Tom Tromey <tom@tromey.com>
7749
7750 * frame.c (remove_prev_frame): Remove.
7751 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7752
d8dab6c3
MR
77532018-05-25 Maciej W. Rozycki <macro@mips.com>
7754
7755 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7756 Remove prototypes.
7757 * mips-linux-nat.c (supply_fpregset): Always call
7758 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7759 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7760 `mips_fill_fpregset'.
7761 * mips-linux-tdep.c (mips_supply_fpregset)
7762 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7763 (mips_fill_fpregset_wrapper): Remove functions.
7764 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7765 (mips_linux_fpregset): Remove variable.
7766 (mips_linux_iterate_over_regset_sections): Use
7767 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7768 (mips_linux_o32_sigframe_init): Remove comment.
7769
3c69da40
PA
77702018-05-25 Pedro Alves <palves@redhat.com>
7771
7772 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7773 (struct readahead_cache, struct packet_reg, struct
7774 remote_arch_state, class remote_state): Move higher up in the
7775 file.
7776 (remote_target::m_remote_state): Now an object instead of a pointer.
7777 (remote_target::get_remote_state): Adjust.
7778
39f0c204
AB
77792018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7780
7781 * stack.c (select_and_print_frame): Delete.
7782 (struct function_bounds): Move struct within function.
7783 (func_command): Most content moved into new function
7784 find_frame_for_function, use new function, print result, add
7785 function comment.
7786 (find_frame_for_function): New function, now returns a result.
7787
d392224a
PW
77882018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7789
7790 * stack.c (iterate_over_block_arg_vars): Fix comment.
7791 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7792
45f25d6c
AB
77932018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 PR gdb/23203
7796 * frame.c
7797 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7798 Define.
7799 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7800 Define.
7801 * frame.h (class scoped_restore_selected_frame): New class.
7802 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7803 of any exception, use scoped_restore_selected_frame to restore the
7804 frame instead.
7805
da05d921
PA
78062018-05-24 Pedro Alves <palves@redhat.com>
7807
7808 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7809 override.
7810
a8be540e
TT
78112018-05-23 Tom Tromey <tom@tromey.com>
7812
7813 * complaints.c (struct complaints): Remove.
7814 (symfile_complaint_book): Remove.
7815 (series): New global.
7816 (complaint_internal): Update.
7817 (clear_complaints): Update.
7818
ff1cf532
TT
78192018-05-23 Tom Tromey <tom@tromey.com>
7820
7821 * complaints.c (counters): New global.
7822 (struct complain): Remove.
7823 (struct complaints) <root>: Remove.
7824 (complaint_sentinel): Remove.
7825 (symfile_complaint_book): Update.
7826 (find_complaint) Remove.
7827 (complaint_internal, clear_complaints): Update.
7828
7ff88174
TT
78292018-05-23 Tom Tromey <tom@tromey.com>
7830
7831 * complaints.c (struct complain) <file, line>: Remove.
7832 (find_complaint): Remove file, line parameters.
7833 (complaint_internal): Update.
7834
de54e1a5
TT
78352018-05-23 Tom Tromey <tom@tromey.com>
7836
7837 * complaints.c (vcomplaint): Remove.
7838 (complaint_internal) Merge in contents of vcomplaint.
7839
2ac237e5
TT
78402018-05-23 Tom Tromey <tom@tromey.com>
7841
7842 * complaints.c (struct complaints) <explanation>: Remove.
7843 (symfile_explanations): Remove.
7844 (symfile_complaint_book): Update.
7845 (vcomplaint): Update.
7846 (struct explanation): Remove.
7847
b98664d3
TT
78482018-05-23 Tom Tromey <tom@tromey.com>
7849
7850 * complaints.c (symfile_complaints): Remove.
7851 (complaint_internal): Remove "complaints" parameter.
7852 (clear_complaints, vcomplaint): Remove "c" parameter.
7853 (get_complaints): Remove.
7854 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7855 (dwarf2_debug_line_missing_file_complaint)
7856 (dwarf2_debug_line_missing_end_sequence_complaint)
7857 (dwarf2_complex_location_expr_complaint)
7858 (dwarf2_const_value_length_mismatch_complaint)
7859 (dwarf2_section_buffer_overflow_complaint)
7860 (dwarf2_macro_malformed_definition_complaint)
7861 (dwarf2_invalid_attrib_class_complaint)
7862 (create_addrmap_from_index, dw2_symtab_iter_next)
7863 (dw2_expand_marked_cus)
7864 (dw2_debug_names_iterator::find_vec_in_debug_names)
7865 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7866 (create_debug_type_hash_table, init_cutu_and_read_dies)
7867 (partial_die_parent_scope, add_partial_enumeration)
7868 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7869 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7870 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7871 (create_cus_hash_table, create_dwp_hash_table)
7872 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7873 (dwarf2_rnglists_process, dwarf2_ranges_process)
7874 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7875 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7876 (handle_struct_member_die, process_structure_scope)
7877 (read_array_type, read_common_block, read_module_type)
7878 (read_tag_pointer_type, read_typedef, read_base_type)
7879 (read_subrange_type, load_partial_dies, partial_die_info::read)
7880 (partial_die_info::read, partial_die_info::read)
7881 (partial_die_info::read, read_checked_initial_length_and_offset)
7882 (dwarf2_string_attr, read_formatted_entries)
7883 (dwarf_decode_line_header)
7884 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7885 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7886 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7887 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7888 (get_signatured_type, get_DW_AT_signature_type)
7889 (decode_locdesc, file_file_name, consume_improper_spaces)
7890 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7891 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7892 (dwarf2_symbol_mark_computed, set_die_type)
7893 (read_attribute_value): Update.
7894 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7895 Update.
7896 * dbxread.c (unknown_symtype_complaint)
7897 (lbrac_mismatch_complaint, repeated_header_complaint)
7898 (set_namestring, function_outside_compilation_unit_complaint)
7899 (read_dbx_symtab, process_one_symbol): Update.
7900 * gdbtypes.c (stub_noname_complaint): Update.
7901 * windows-nat.c (handle_unload_dll): Update.
7902 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7903 (decode_base_type): Update.
7904 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7905 (eb_complaint, record_include_begin, record_include_end)
7906 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7907 (process_xcoff_symbol, read_symbol)
7908 (function_outside_compilation_unit_complaint)
7909 (scan_xcoff_symtab): Update.
7910 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7911 * buildsym.c (finish_block_internal, make_blockvector)
7912 (end_symtab_get_static_block, augment_type_symtab): Update.
7913 * dtrace-probe.c (dtrace_process_dof)
7914 (dtrace_static_probe_ops::get_probes): Update.
7915 * complaints.h (struct complaint): Don't declare.
7916 (symfile_complaints): Remove.
7917 (complaint_internal): Remove "complaints" parameter.
7918 (complaint): Likewise.
7919 (clear_complaints): Likewise.
7920 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7921 (reread_symbols): Update.
7922 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7923 (dwarf2_frame_cache, decode_frame_entry): Update.
7924 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7925 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7926 (info_selectors_command): Update.
7927 * macrotab.c (macro_include, check_for_redefinition)
7928 (macro_undef): Update.
7929 * objfiles.c (filter_overlapping_sections): Update.
7930 * stabsread.c (invalid_cpp_abbrev_complaint)
7931 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7932 (define_symbol, error_type, read_type, rs6000_builtin_type)
7933 (stabs_method_name_from_physname, read_member_functions)
7934 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7935 (attach_fields_to_type, complain_about_struct_wipeout)
7936 (read_range_type, read_args, common_block_start)
7937 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7938 Update.
7939 * mdebugread.c (index_complaint, unknown_ext_complaint)
7940 (basic_type_complaint, bad_tag_guess_complaint)
7941 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7942 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7943 (parse_procedure, parse_lines)
7944 (function_outside_compilation_unit_complaint)
7945 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7946 (bad_tag_guess_complaint, reg_value_complaint): Update.
7947 * cp-support.c (demangled_name_complaint): Update.
7948 * macroscope.c (sal_macro_scope): Update.
7949 * dwarf-index-write.c (class debug_names): Update.
7950
4e9668d0
TT
79512018-05-23 Tom Tromey <tom@tromey.com>
7952
7953 * complaints.c (clear_complaints): Remove "noisy" parameter.
7954 * complaints.h (clear_complaints): Update.
7955 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7956 (reread_symbols): Update.
7957
43ba33c7
TT
79582018-05-23 Tom Tromey <tom@tromey.com>
7959
7960 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7961 SUBSEQUENT_MESSAGE.
7962 (vcomplaint, clear_complaints): Update.
7963 (symfile_explanations): Remove some messages.
7964
2b9496b2
TT
79652018-05-23 Tom Tromey <tom@tromey.com>
7966
7967 * complaints.c (internal_complaint): Remove.
7968 * complaints.h (internal_complaint): Remove.
7969
35f1fea3
MR
79702018-05-22 Maciej W. Rozycki <macro@mips.com>
7971
7972 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7973
6b8edb51
PA
79742018-05-22 Pedro Alves <palves@redhat.com>
7975
7976 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7977 (remote_fileio_badfd, remote_fileio_return_errno)
7978 (remote_fileio_return_success, remote_fileio_func_open)
7979 (remote_fileio_func_open, remote_fileio_func_close)
7980 (remote_fileio_func_read, remote_fileio_func_write)
7981 (remote_fileio_func_lseek, remote_fileio_func_rename)
7982 (remote_fileio_func_unlink, remote_fileio_func_stat)
7983 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7984 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7985 remote_target parameter.
7986 (remote_fio_func_map) <func>: Add remote_target parameter.
7987 (do_remote_fileio_request, remote_fileio_request):
7988 * remote-fileio.h (remote_fileio_request):
7989 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7990 remote_target parameter.
7991 (remote_notif_process, handle_notification): Adjust to pass down
7992 the remote.
7993 (remote_notif_state_allocate): Add remote_target parameter. Save
7994 it.
7995 * remote-notif.h (struct remote_target): Forward declare.
7996 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7997 remote_target parameter.
7998 (struct remote_notif_state) <remote>: New field.
7999 (remote_notif_ack, remote_notif_parse): Add remote_target
8000 parameter.
8001 (remote_notif_state_allocate, remote_notif_state_allocate): Add
8002 remote_target parameter.
8003 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8004 (threads_listing_context, rmt_thread_action, protocol_feature)
8005 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8006 (packet_result, struct threads_listing_context, remote_state):
8007 Move definitions and declarations higher up.
8008 (remote_target) <~remote_target>: Declare.
8009 (remote_download_command_source, remote_file_put, remote_file_get)
8010 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8011 (remote_hostio_pread_vFile, remote_hostio_send_command)
8012 (remote_hostio_set_filesystem, remote_hostio_open)
8013 (remote_hostio_close, remote_hostio_unlink, remote_state)
8014 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8015 (get_memory_write_packet_size, get_memory_read_packet_size)
8016 (append_pending_thread_resumptions, remote_detach_1)
8017 (append_resumption, remote_resume_with_vcont)
8018 (add_current_inferior_and_thread, wait_ns, wait_as)
8019 (process_stop_reply, remote_notice_new_inferior)
8020 (process_initial_stop_replies, remote_add_thread)
8021 (btrace_sync_conf, remote_btrace_maybe_reopen)
8022 (remove_new_fork_children, kill_new_fork_children)
8023 (discard_pending_stop_replies, stop_reply_queue_length)
8024 (check_pending_events_prevent_wildcard_vcont)
8025 (discard_pending_stop_replies_in_queue, stop_reply)
8026 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8027 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8028 (remote_interrupt_as, remote_interrupt_ns)
8029 (remote_get_noisy_reply, remote_query_attached)
8030 (remote_add_inferior, remote_current_thread, get_current_thread)
8031 (set_thread, set_general_thread, set_continue_thread)
8032 (set_general_process, write_ptid)
8033 (remote_unpack_thread_info_response, remote_get_threadinfo)
8034 (parse_threadlist_response, remote_get_threadlist)
8035 (remote_threadlist_iterator, remote_get_threads_with_ql)
8036 (remote_get_threads_with_qxfer)
8037 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8038 (get_offsets, remote_check_symbols, remote_supported_packet)
8039 (remote_query_supported, remote_packet_size)
8040 (remote_serial_quit_handler, remote_detach_pid)
8041 (remote_vcont_probe, remote_resume_with_hc)
8042 (send_interrupt_sequence, interrupt_query)
8043 (remote_notif_get_pending_events, fetch_register_using_p)
8044 (send_g_packet, process_g_packet, fetch_registers_using_g)
8045 (store_register_using_P, store_registers_using_G)
8046 (set_remote_traceframe, check_binary_download)
8047 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8048 (remote_xfer_live_readonly_partial, remote_read_bytes)
8049 (remote_send_printf, remote_flash_write, readchar)
8050 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8051 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8052 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
8053 (extended_remote_disable_randomization, extended_remote_run)
8054 (send_environment_packet, extended_remote_environment_support)
8055 (extended_remote_set_inferior_cwd, remote_write_qxfer)
8056 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
8057 (packet_command): Now methods of ...
8058 (remote_target): ... this class.
8059 (m_remote_state) <remote_target>: New field.
8060 (struct remote_state) <stop_reply_queue,
8061 remote_async_inferior_event_token, wait_forever_enabled_p>: New
8062 fields.
8063 (remote_state::remote_state): Allocate stop_reply_queue.
8064 (remote_state): Delete global.
8065 (get_remote_state_raw): Delete.
8066 (remote_target::get_remote_state): Allocate m_remote_state on
8067 demand.
8068 (get_current_remote_target): New.
8069 (remote_ops, extended_remote_ops): Delete.
8070 (wait_forever_enabled_p, remote_async_inferior_event_token):
8071 Delete, moved to struct remote_state.
8072 (remote_target::close): Delete self. Destruction bits split to
8073 ...
8074 (remote_target::~remote_target): ... this.
8075 (show_memory_packet_size): Adjust to use
8076 get_current_remote_target.
8077 (struct protocol_feature) <func>: Add remote_target parameter.
8078 All callers adjusted.
8079 (curr_quit_handler_target): New.
8080 (remote_serial_quit_handler): Reimplement.
8081 (remote_target::open_1): Adjust to use get_current_remote_target.
8082 Heap-allocate remote_target/extended_remote_target instances.
8083 (vcont_builder::vcont_builder): Add remote_target parameter, and
8084 save it in m_remote. All callers adjusted.
8085 (vcont_builder::m_remote): New field.
8086 (vcont_builder::restart, vcont_builder::flush)
8087 (vcont_builder::push_action): Use it.
8088 (remote_target::commit_resume): Use it.
8089 (struct queue_iter_param) <remote>: New field.
8090 (remote_target::remove_new_fork_children): Fill in 'remote' field.
8091 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
8092 (check_pending_event_prevents_wildcard_vcont_callback)
8093 (remote_target::check_pending_events_prevent_wildcard_vcont)
8094 (remote_target::discard_pending_stop_replies)
8095 (remote_target::discard_pending_stop_replies_in_queue)
8096 (remote_target::remote_notif_remove_queued_reply): Fill in
8097 'remote' field.
8098 (remote_notif_get_pending_events): New.
8099 (remote_target::readchar, remote_target::remote_serial_write):
8100 Save/restore curr_quit_handler_target.
8101 (putpkt): New.
8102 (kill_new_fork_children): Fill in 'remote' field.
8103 (packet_command): Use get_current_remote_target, defer to
8104 remote_target method of same name.
8105 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
8106 parameter, and save it in m_remote. All callers adjusted.
8107 (scoped_remote_fd::release): Use m_remote.
8108 (scoped_remote_fd::m_remote): New field.
8109 (remote_file_put, remote_file_get, remote_file_delete): Use
8110 get_current_remote_target, defer to remote_target method of same
8111 name.
8112 (remote_btrace_reset): Add remote_state paremeter. Update all
8113 callers.
8114 (remote_async_inferior_event_handler). Pass down 'data'.
8115 (remote_new_objfile): Use get_current_remote_target.
8116 (remote_target::vcont_r_supported): New.
8117 (set_range_stepping): Use get_current_remote_target and
8118 remote_target::vcont_r_supported.
8119 (_initialize_remote): Don't allocate 'remote_state' and
8120 'stop_reply_queue' globals.
8121 * remote.h (struct remote_target): Forward declare.
8122 (getpkt, putpkt, remote_notif_get_pending_events): Add
8123 'remote_target' parameter.
8124
f5db4863
PA
81252018-05-22 Pedro Alves <palves@redhat.com>
8126
8127 * remote.c (vcont_builder): Now a class. Make all data members
8128 private.
8129 (vcont_builder) <vcont_builder, restart, flush, push_action>:
8130 Declare methods.
8131 (vcont_builder_restart): Rename to ...
8132 (vcont_builder::restart): ... this.
8133 (vcont_builder_flush): Rename to ...
8134 (vcont_builder::flush): ... this.
8135 (vcont_builder_push_action): Rename to ...
8136 (vcont_builder::push_action): ... this.
8137 (remote_target::commit_resume): Adjust.
8138
cc0be08f
PA
81392018-05-22 Pedro Alves <palves@redhat.com>
8140
8141 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
8142 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
8143 (get_fixed_memory_packet_size): New.
8144 (get_memory_packet_size): Use it.
8145 (set_memory_packet_size): Don't override the config size with
8146 DEFAULT_MAX_MEMORY_PACKET_SIZE.
8147 (show_memory_packet_size): Use get_fixed_memory_packet_size.
8148 Don't refer to get_memory_packet_size if not connected to a remote
8149 target. Show "(default)" if configured size is 0.
8150
9607784a
PA
81512018-05-22 Pedro Alves <palves@redhat.com>
8152
8153 * remote.c (remote_target::mourn_inferior): Move
8154 discard_pending_stop_replies call here from ...
8155 (_initialize_remote): ... here.
8156
0e9a6b2f
PA
81572018-05-22 Pedro Alves <palves@redhat.com>
8158
8159 * remote.c (compare_section_command): Remove set_general_process
8160 call.
8161
43c3a0e4
PA
81622018-05-22 Pedro Alves <palves@redhat.com>
8163
8164 * remote.c (struct packet_reg, struct remote_arch_state):
8165 Move higher up in the file.
8166 (remote_state) <m_arch_states>: Store remote_arch_state values
8167 instead of remote_arch_state pointers.
8168 (remote_state::get_remote_arch_state): Adjust.
8169
9d6eea31
PA
81702018-05-22 Pedro Alves <palves@redhat.com>
8171
8172 * remote.c: Include <unordered_map>.
8173 (remote_state): Now a class.
8174 (remote_state) <get_remote_arch_state>: Declare method.
8175 <get_remote_arch_state>: New field.
8176 (remote_arch_state) <remote_arch_state>: Declare ctor.
8177 <regs>: Now a unique_ptr.
8178 (remote_gdbarch_data_handle): Delete.
8179 (get_remote_arch_state): Delete.
8180 (remote_state::get_remote_arch_state): New.
8181 (get_remote_state): Adjust to call remote_state's
8182 get_remote_arch_state method.
8183 (init_remote_state): Delete, bits factored out to ...
8184 (remote_arch_state::remote_arch_state): ... this new method.
8185 (get_remote_packet_size, get_memory_packet_size)
8186 (process_g_packet, remote_target::fetch_registers)
8187 (remote_target::prepare_to_store, store_registers_using_G)
8188 (remote_target::store_registers, remote_target::get_trace_status):
8189 Adjust to call remote_state's method.
8190 (_initialize_remote): Remove reference to
8191 remote_gdbarch_data_handle.
8192
dd194f6b
PA
81932018-05-22 Pedro Alves <palves@redhat.com>
8194
8195 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8196 pread>: New method declarations.
8197 (remote_target::open_1): Adjust.
8198 (readahead_cache_invalidate): Rename to ...
8199 (readahead_cache::invalidate): ... this, and adjust to be a class
8200 method.
8201 (readahead_cache_invalidate_fd): Rename to ...
8202 (readahead_cache::invalidate_fd): ... this, and adjust to be a
8203 class method.
8204 (remote_hostio_pwrite): Adjust.
8205 (remote_hostio_pread_from_cache): Rename to ...
8206 (readahead_cache::pread): ... this, and adjust to be a class
8207 method.
8208 (remote_hostio_close): Adjust.
8209
440b7aec
PA
82102018-05-22 Pedro Alves <palves@redhat.com>
8211
8212 * remote.c (remote_hostio_close_cleanup): Delete.
8213 (class scoped_remote_fd): New.
8214 (remote_file_put, remote_file_get): Use it.
8215
de44f5a7
PA
82162018-05-22 Pedro Alves <palves@redhat.com>
8217
8218 (struct vCont_action_support): Use bool and initialize all fields.
8219 (struct readahead_cache): Initialize all fields.
8220 (remote_state): Use bool and initialize all fields.
8221 (remote_state::remote_state, remote_state::~remote_state): New.
8222 (new_remote_state): Delete.
8223 (_initialize_remote): Use new to allocate remote_state.
8224
b1b60145
PA
82252018-05-22 Pedro Alves <palves@redhat.com>
8226 張俊芝 <zjz@zjz.name>
8227
8228 PR gdb/22973
8229 * c-exp.y: Include "c-support.h".
8230 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8231 of tolower. Use c_ident_is_alpha to scan names.
8232 * c-lang.c: Include "c-support.h".
8233 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8234 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8235 * c-support.h: New file, with bits factored out from ...
8236 * cp-name-parser.y: ... this file.
8237 Include "c-support.h".
8238 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8239 c-support.h and renamed.
8240 (symbol_end, yylex): Adjust.
8241
0ec848ad
PFC
82422018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8243
8244 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8245 parameter type to CORE_ADDR.
8246 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8247 parameter type in declaration to CORE_ADDR.
8248 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8249 target_auxv_search to get AT_HWCAP and use the result to get the
8250 target description.
8251 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8252 to CORE_ADDR. Remove the cast of the return value to unsigned
8253 long. Fix error predicate of target_auxv_search.
8254 (ppc_linux_nat_target::read_description): Change the type of the
8255 hwcap variable to CORE_ADDR.
8256
0fb2aaa1
PFC
82572018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8258
8259 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8260 if the size of fpscr is larger than 32 bits.
8261
2c3305f6
PFC
82622018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8263
8264 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8265 (ppc32_linux_vsxregmap): New global.
8266 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8267 regcache_supply_regset, and regcache_collect_regset.
8268 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8269 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8270 (fetch_vsx_register, store_vsx_register): Remove.
8271 (fetch_vsx_registers): Add regno parameter. Get regset using
8272 ppc_linux_vsxregset. Use regset to supply registers.
8273 (store_vsx_registers): Add regno parameter. Get regset using
8274 ppc_linux_vsxregset. Use regset to collect registers.
8275 (fetch_register): Call fetch_vsx_registers instead of
8276 fetch_vsx_register.
8277 (store_register): Call store_vsx_registers instead of
8278 store_vsx_register.
8279 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
8280 new regno parameter.
8281 (store_ppc_registers): Call store_vsx_registers with -1 for the
8282 new regno parameter.
8283 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
8284 (ppc_collect_vsxregset): Remove.
8285
1d75a658
PFC
82862018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8287
8288 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
8289 offset fields.
8290 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
8291 for vector register offset fields.
8292 (ppc64_fbsd_reg_offsets): Likewise.
8293 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8294 to vector register offset fields.
8295 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8296 to vector register offset fields.
8297 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
8298 vector register offset fields.
8299 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
8300 initializers for vector register offset fields.
8301 (rs6000_aix64_reg_offsets): Likewise.
8302 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
8303 (ppc_supply_vrregset): Remove.
8304 (ppc_collect_vrregset): Remove.
8305 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
8306 (ppc_linux_vrregset) : New function.
8307 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
8308 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
8309 (ppc32_linux_vrregset): Remove.
8310 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
8311 and use result instead of ppc32_linux_vrregset.
8312 (ppc32_linux_reg_offsets): Remove initializers for vector register
8313 offset fields.
8314 (ppc64_linux_reg_offsets): Likewise.
8315 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
8316 * ppc-linux-nat.c: Include regset.h.
8317 (gdb_vrregset_t): Adjust comment to account for little-endian
8318 mode.
8319 (supply_vrregset, fill_vrregset): Remove.
8320 (fetch_altivec_register, store_altivec_register): Remove.
8321 (fetch_altivec_registers): Add regno parameter. Get regset using
8322 ppc_linux_vrregset. Use regset to supply registers.
8323 (store_altivec_registers): Add regno parameter. Get regset using
8324 ppc_linux_vrregset. Use regset to collect registers.
8325 (fetch_register): Call fetch_altivec_registers instead of
8326 fetch_altivec_register.
8327 (store_register): Call store_altivec_registers instead of
8328 store_altivec_register.
8329 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
8330 the new regno parameter.
8331 (store_ppc_registers): Call store_altivec_registers with -1 for
8332 the new regno parameter.
8333
d078308a
PFC
83342018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8335
8336 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
8337 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
8338 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
8339 (gdb_vrregset_t): Change array type size to
8340 PPC_LINUX_SIZEOF_VRREGSET.
8341 (gdb_vsxregset_t): Change array type size to
8342 PPC_LINUX_SIZEOF_VSXREGSET.
8343 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
8344 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
8345 PPC_LINUX_SIZEOF_VSXREGSET.
8346
2e077f5e
PFC
83472018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8348
8349 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
8350 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
8351 nat/ppc-linux.c.
8352 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
8353 ppc_linux_target_wordsize with tid.
8354 (ppc_linux_nat_target::read_description): Call ppc_linux_target
8355 wordsize with tid.
8356 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
8357 (ppc64_64bit_inferior_p): Add static and inline specifiers.
8358 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
8359 tid parameter. Remove static specifier.
8360 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
8361 (ppc_linux_target_wordsize): New declaration.
8362
bd64614e
PFC
83632018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8364
8365 * arch/ppc-linux-common.c: New file.
8366 * arch/ppc-linux-common.h: New file.
8367 * arch/ppc-linux-tdesc.h: New file.
8368 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
8369 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
8370 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
8371 arch/ppc-linux-tdesc.h.
8372 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
8373 arch/ppc-linux-tdesc.h.
8374 (ppc_linux_nat_target::read_description): Remove target
8375 description matching code. Fill a ppc_linux_features struct and
8376 call ppc_linux_match_description with it. Move comment about ISA
8377 2.05 to ppc-linux-common.c.
8378 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
8379 arch/ppc-linux-tdesc.h.
8380 (ppc_linux_core_read_description): Remove target description
8381 matching code. Fill a ppc_linux_features struct and call
8382 ppc_linux_match_description with it.
8383 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
8384 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
8385 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
8386 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
8387 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
8388 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
8389 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
8390 (tdesc_powerpc_e500l): Remove.
8391
241db429
JB
83922018-05-22 Joel Brobecker <brobecker@adacore.com>
8393
8394 * ada-lang.c (catch_assert_command): Pass empty string instead
8395 of NULL for excep_string argument.
8396
75d74cca
MR
83972018-05-22 Maciej W. Rozycki <macro@mips.com>
8398
8399 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
8400 the width of the requested register exceeds the width of the
8401 `ptrace' data type.
8402
122b53ea
TT
84032018-05-21 Tom Tromey <tom@tromey.com>
8404
8405 * printcmd.c (output_command): Remove.
8406 (output_command_const): Rename to output_command.
8407 * valprint.h (output_command): Rename from output_command_const.
8408 * tracepoint.c (trace_dump_actions): Call output_command.
8409
bc18fbb5
TT
84102018-05-21 Tom Tromey <tom@tromey.com>
8411
8412 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
8413 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
8414 * ada-lang.h (create_ada_exception_catchpoint): Update.
8415 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
8416 std::string.
8417 (create_excep_cond_exprs, ~ada_catchpoint)
8418 (should_stop_exception, print_one_exception)
8419 (print_mention_exception, print_recreate_exception): Update.
8420 (ada_get_next_arg): Remove.
8421 (catch_ada_exception_command_split): Use std::string. Change type
8422 of "excep_string", "cond_string".
8423 (catch_ada_exception_command): Update.
8424 (create_ada_exception_catchpoint): Change type of excep_string.
8425 (ada_exception_sal): Remove excep_string parameter.
8426 (~ada_catchpoint): Remove.
8427
790217f6
TT
84282018-05-21 Tom Tromey <tom@tromey.com>
8429
8430 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
8431 cleanup.
8432
6f46ac85
TT
84332018-05-21 Tom Tromey <tom@tromey.com>
8434
8435 * ada-lang.c (ada_exception_message_1, ada_exception_message):
8436 Return unique_xmalloc_ptr.
8437 (print_it_exception): Update.
8438
15b6611c
TT
84392018-05-21 Tom Tromey <tom@tromey.com>
8440
8441 * tracepoint.c (trace_dump_actions): Use std::string.
8442
c0c9f665
TT
84432018-05-21 Tom Tromey <tom@tromey.com>
8444
8445 * symfile.c (reread_symbols): Use std::string for original_name.
8446
22ca247e
TT
84472018-05-21 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
8450 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
8451 constructor.
8452
184cde75
SM
84532018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
8454
8455 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
8456 instance to...
8457 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
8458 * objfiles.c (get_objfile_bfd_data): Allocate
8459 objfile_per_bfd_storage with obstack_new when allocating on
8460 obstack.
8461
e39db4db
SM
84622018-05-20 Simon Marchi <simon.marchi@ericsson.com>
8463
8464 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
8465 OBSTACK_ZALLOC.
8466 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
8467 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
8468 * mdebugread.c (mdebug_build_psymtabs): Likewise.
8469 (add_pending): Likewise.
8470 (parse_symbol): Likewise.
8471 (parse_partial_symbols): Likewise.
8472 (psymtab_to_symtab_1): Likewise.
8473 (new_psymtab): Likewise.
8474 (elfmdebug_build_psymtabs): Likewise.
8475 * minsyms.c (terminate_minimal_symbol_table): Likewise.
8476 * objfiles.c (get_objfile_bfd_data): Likewise.
8477 (objfile_register_static_link): Likewise.
8478 * psymtab.c (allocate_psymtab): Likewise.
8479 * stabsread.c (read_member_functions): Likewise.
8480 * xcoffread.c (xcoff_end_psymtab): Likewise.
8481
284a0e3c
SM
84822018-05-20 Simon Marchi <simon.marchi@ericsson.com>
8483
8484 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
8485 compiler supports std::is_trivially_constructible.
8486 * common/poison.h: Include obstack.h.
8487 (IsMallocable): Define to is_trivially_constructible if the
8488 compiler supports it, define to true_type otherwise.
8489 (xobnew): New.
8490 (XOBNEW): Redefine.
8491 (xobnewvec): New.
8492 (XOBNEWVEC): Redefine.
8493 * gdb_obstack.h (obstack_zalloc): New.
8494 (OBSTACK_ZALLOC): Redefine.
8495 (obstack_calloc): New.
8496 (OBSTACK_CALLOC): Redefine.
8497 (obstack_new): New.
8498 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
8499 (gdbarch_obstack): New declaration in gdbarch.h, definition in
8500 gdbarch.c.
8501 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
8502 obstack_calloc/obstack_zalloc.
8503 (gdbarch_obstack_zalloc): Remove.
8504 * target-descriptions.c (tdesc_data_init): Use obstack_new.
8505
59f66be3
PW
85062018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8507
8508 * stack.c (backtrace_command_1): Remove useless variable int i.
8509
50c65c2d
PW
85102018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8511
8512 * stack.c (print_frame_info): Fix comment.
8513
7ff8cb8c
TT
85142018-05-18 Tom Tromey <tom@tromey.com>
8515
8516 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
8517 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
8518 (~dwarf2_per_objfile): Update
8519 (dwarf2_get_dwz_file): Use new.
8520 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
8521 unique_ptr.
8522
400174b1
TT
85232018-05-18 Tom Tromey <tom@tromey.com>
8524
8525 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
8526 unique_ptr.
8527 * dwarf2read.c (struct dwp_file): Add constructor and
8528 initializers.
8529 (open_and_init_dwp_file): Return a unique_ptr.
8530 (dwarf2_per_objfile, create_dwp_hash_table)
8531 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
8532 (lookup_dwo_unit_in_dwp): Update.
8533 (open_and_init_dwp_file, get_dwp_file): Update.
8534
3063847f
TT
85352018-05-18 Tom Tromey <tom@tromey.com>
8536
8537 * dwarf2read.c (dwarf2_per_objfile): Update.
8538 (struct mapped_index): Add initializers.
8539 (dwarf2_read_index): Use new.
8540 (dw2_symtab_iter_init): Update.
8541 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
8542 unique_ptr.
8543
d3d02dee
SM
85442018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8545
8546 * dwarf2read.c (mapped_index) <total_size>: Remove.
8547
1d143c36
SM
85482018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8549
8550 * unittests/format_pieces-selftests.c (test_format_specifier):
8551 Add ARI comments.
8552
ce1e8424
TT
85532018-05-18 Tom Tromey <tom@tromey.com>
8554
8555 * c-typeprint.c (maybe_print_hole): New function.
8556 (c_print_type_struct_field_offset): Update.
8557 (c_type_print_base_struct_union): Call maybe_print_hole.
8558
ddfe970e
KS
85592018-05-17 Keith Seitz <keiths@redhat.com>
8560
8561 * breakpoint.c (build_bpstat_chain): New function, moved from
8562 bpstat_stop_status.
8563 (bpstat_stop_status): Add optional parameter, `stop_chain'.
8564 If no stop chain is passed, call build_bpstat_chain to build it.
8565 * breakpoint.h (build_bpstat_chain): Declare.
8566 (bpstat_stop_status): Move documentation here from breakpoint.c.
8567 * infrun.c (handle_signal_stop): Before eliding inlined frames,
8568 build the stop chain and pass it to skip_inline_frames.
8569 Pass this stop chain to bpstat_stop_status.
8570 * inline-frame.c: Include breakpoint.h.
8571 (stopped_by_user_bp_inline_frame): New function.
8572 (skip_inline_frames): Add parameter `stop_chain'.
8573 Move documention to inline-frame.h.
8574 If non-NULL, use stopped_by_user_bp_inline_frame to determine
8575 whether the frame should be elided.
8576 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
8577 Add moved documentation and update for new parameter.
8578
b17992c1
SM
85792018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8580
8581 PR cli/14975
8582 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8583 unittests/format_pieces-selftests.c.
8584 * common/format.h (format_piece) <operator==>: New.
8585 (format_pieces) <operator[]>: Remove.
8586 * common/format.c (format_pieces::format_pieces): Handle \e.
8587 * unittests/format_pieces-selftests.c: New.
8588
58f0c718
TT
85892018-05-17 Tom Tromey <tom@tromey.com>
8590
8591 PR symtab/23010:
8592 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
8593 (dw2_instantiate_symtab): Add skip_partial parameter.
8594 (dw2_find_last_source_symtab, dw2_map_expand_apply)
8595 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
8596 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
8597 (dw2_expand_symtabs_matching_one)
8598 (dw2_find_pc_sect_compunit_symtab)
8599 (dw2_debug_names_lookup_symbol)
8600 (dw2_debug_names_expand_symtabs_for_function): Update.
8601 (init_cutu_and_read_dies): Add skip_partial parameter.
8602 (process_psymtab_comp_unit, build_type_psymtabs_1)
8603 (process_skeletonless_type_unit, load_partial_comp_unit)
8604 (psymtab_to_symtab_1): Update.
8605 (load_full_comp_unit): Add skip_partial parameter.
8606 (process_imported_unit_die, dwarf2_read_addr_index)
8607 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
8608 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
8609 (read_signatured_type): Update.
8610
3e618834
SM
86112018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8612
8613 * value.c (release_value): Remove unused variable.
8614 (record_latest_value): Likewise.
8615 (access_value_history): Likewise.
8616 (preserve_values): Likewise.
8617
fe10fe31
TT
86182018-05-17 Tom Tromey <tom@tromey.com>
8619
8620 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
8621 Initialize.
8622
1d761124
MR
86232018-05-16 Maciej W. Rozycki <macro@mips.com>
8624
8625 PR gdb/22286
8626 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
8627 Also handle registers whose width is not a multiple of
8628 PTRACE_TYPE_RET.
8629 (linux_nat_trad_target::store_register): Likewise.
8630
06333fea
TT
86312018-05-16 Tom Tromey <tom@tromey.com>
8632
8633 * gdbcore.h (core_bfd): Redefine.
8634 * corelow.c (core_target::close): Update.
8635 (core_target_open): Update.
8636 * progspace.h (struct program_space) <cbfd>: Now a
8637 gdb_bfd_ref_ptr.
8638
921222e2
TT
86392018-05-16 Tom Tromey <tom@tromey.com>
8640
8641 PR cli/19551:
8642 * symfile-add-flags.h (enum symfile_add_flags)
8643 <SYMFILE_NOT_FILENAME>: New constant.
8644 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
8645 objfile name from BFD.
8646 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8647 * minidebug.c (find_separate_debug_file_in_section): Put
8648 ".gnu_debugdata" into BFD's file name.
8649
3acb7083
SM
86502018-05-16 Simon Marchi <simon.marchi@ericsson.com>
8651
8652 * regcache.c (regcache_read_ftype, regcache_write_ftype):
8653 Remove.
8654
561a72d4
TC
86552018-05-15 Tamar Christina <tamar.christina@arm.com>
8656
8657 PR binutils/21446
8658 * aarch64-tdep.c (aarch64_analyze_prologue,
8659 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8660 Indicate not interested in errors.
8661
4e6ff0e1
MR
86622018-05-15 Maciej W. Rozycki <macro@mips.com>
8663
8664 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8665 Supply the MIPS_ZERO_REGNUM register.
8666
ea33cd92
MR
86672018-05-15 Maciej W. Rozycki <macro@mips.com>
8668
8669 * mips-tdep.c (mask_address_var): Make variable static.
8670
2d79090e
TT
86712018-05-14 Tom Tromey <tom@tromey.com>
8672
8673 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8674
cf4912ae
AB
86752018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8676
8677 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8678 FXSAVE_ADDR for the mxcsr register.
8679
67e6f569
MF
86802018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8681
8682 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8683
15244507
PA
86842018-05-11 Pedro Alves <palves@redhat.com>
8685
8686 * corelow.c (core_target) <core_target>: No longer inline.
8687 Initialize m_core_gdbarch, m_core_vec and build the section table
8688 here.
8689 <~core_target>: New.
8690 <core_gdbarch, get_core_register_section>: New methods.
8691 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8692 factored out from ...
8693 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8694 (core_ops): Delete.
8695 (sniff_core_bfd): Add gdbarch parameter.
8696 (core_close): Delete, merged into ...
8697 (core_target::close): ... here. Delete self.
8698 (core_close_cleanup): Delete.
8699 (core_target_open): Allocate a core_target on the heap. Use a
8700 unique_ptr instead of a cleanup. Bits moved into the core_target
8701 ctor. Adjust to use core_target methods instead of globals.
8702 (get_core_register_section): Rename to ...
8703 (core_target::get_core_register_section): ... this and adjust.
8704 (struct get_core_registers_cb_data): New.
8705 (get_core_registers_cb): Use it. Use bool.
8706 (core_target::fetch_registers, core_target::files_info)
8707 (core_target::xfer_partial, core_target::read_description)
8708 (core_target::pid_to, core_target::thread_name): Adjust to
8709 reference class fields instead of globals.
8710 * target.h (struct target_ops_deleter, target_ops_up): New.
8711
451953fa
PA
87122018-05-11 Pedro Alves <palves@redhat.com>
8713
8714 * corefile.c (core_file_command): Move to corelow.c.
8715 * corelow.c (the_core_target): Delete.
8716 (core_file_command): Moved from corefile.c. Check exec_bfd
8717 instead of the_core_target. Use target_detach instead of calling
8718 into the_core_target directly.
8719 (maybe_say_no_core_file_now): New.
8720 (core_target::detach): Use it.
8721 (_initialize_corelow): Remove references to the_core_target.
8722 * gdbcore.h (the_core_target): Delete.
8723
e540a5a2 87242018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 8725 Pedro Alves <palves@redhat.com>
e540a5a2
TT
8726
8727 * corefile.c (core_bfd): Remove.
8728 * gdbcore.h (core_bfd): Now a macro.
8729 * progspace.h (struct program_space) <cbfd>: New field.
8730
633cf254
TT
87312018-05-11 Tom Tromey <tom@tromey.com>
8732
8733 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8734 gdb::def_vector.
8735
1a34f210
TT
87362018-05-10 Tom Tromey <tom@tromey.com>
8737
8738 * configure: Rebuild.
8739 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8740
190852c8
JB
87412018-05-10 Joel Brobecker <brobecker@adacore.com>
8742
8743 PR server/23158:
8744 * regformats/regdat.sh: Adjust script, following the addition
8745 of the new expedite_regs parameter to init_target_desc.
8746
8727de56
OJ
87472018-05-10 Omair Javaid <omair.javaid@linaro.org>
8748
8749 PR gdb/23127
8750 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8751 set_gdbarch_significant_addr_bit.
8752 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8753 set_gdbarch_significant_addr_bit.
8754 * utils.c (address_significant): Update to sign extend addr.
8755
37d9e062
MF
87562018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8757
8758 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8759 (xtensa_linux_init_abi): Limit tdep->num_regs by
8760 tdep->num_nopriv_regs.
8761 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8762 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8763 not initialized.
8764
7402fbca
SM
87652018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8766
8767 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8768
8ee22052
AB
87692018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8770
8771 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8772 (I387_MXCSR_INIT_VAL): New constant.
8773 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8774 buffer if it was supplied by the inferior.
8775 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8776 (i387_xsave_get_clear_bv): New function.
8777 (i387_supply_xsave): Only read x87 control registers from the
8778 xsave buffer if the feature is enabled, and the state will have
8779 been written, otherwise, provide a suitable default.
8780 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8781 including x87 control registers. Update control registers if they
8782 have changed from the default value, and mark features as enabled
8783 as required.
8784 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8785
968ae51b
UW
87862018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8787
8788 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8789
aff689d3
TT
87902018-05-07 Tom Tromey <tom@tromey.com>
8791
8792 * configure: Rebuild.
8793 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8794
ce887586
TT
87952018-05-07 Tom Tromey <tom@tromey.com>
8796
8797 PR tdep/20362:
8798 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8799 bit. Use correct value for VDIV.
8800
85e26832
TT
88012018-05-04 Tom Tromey <tom@tromey.com>
8802
8803 * configure: Rebuild.
8804 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8805
449b1ac7
TT
88062018-05-04 Tom Tromey <tom@tromey.com>
8807
8808 * linux-record.c (record_linux_system_call) <case
8809 RECORD_SYS_RECVFROM>: Add "break".
8810
15c9ffd6
TT
88112018-05-04 Tom Tromey <tom@tromey.com>
8812
8813 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8814 Add missing "break".
8815 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8816 Add missing "break".
8817
e3829d13
TT
88182018-05-04 Tom Tromey <tom@tromey.com>
8819
8820 * rs6000-tdep.c (ppc_process_record_op4)
8821 (ppc_process_record_op63): Add fall-through comment.
8822
da0e1563
TT
88232018-05-04 Tom Tromey <tom@tromey.com>
8824
8825 * i386-tdep.c (i386_process_record): Add fall-through comment.
8826
0019cd49
TT
88272018-05-04 Tom Tromey <tom@tromey.com>
8828
8829 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8830 comment.
8831
565e0eda
TT
88322018-05-04 Tom Tromey <tom@tromey.com>
8833
8834 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8835 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8836 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8837 comment.
8838 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8839 comment.
8840 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8841 comment.
8842
621846f4
TT
88432018-05-04 Tom Tromey <tom@tromey.com>
8844
8845 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8846
86a73007
TT
88472018-05-04 Tom Tromey <tom@tromey.com>
8848
8849 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8850 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8851 * symfile.c (section_is_mapped): Fix fall-through comment.
8852 * stabsread.c (define_symbol, read_member_functions): Fix
8853 fall-through comment.
8854 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8855 comment.
8856 * remote.c (remote_wait_as): Fix fall-through comment.
8857 * p-exp.y (yylex): Fix fall-through comment.
8858 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8859 comment.
8860 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8861 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8862 * jv-exp.y (yylex): Fix fall-through comment.
8863 * go-exp.y (lex_one_token): Fix fall-through comment.
8864 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8865 fall-through comment.
8866 * f-exp.y (yylex): Fix fall-through comment.
8867 * dwarf2read.c (process_die): Fix fall-through comments.
8868 * dbxread.c (process_one_symbol): Fix fall-through comment.
8869 * d-exp.y (lex_one_token): Fix fall-through comment.
8870 * cp-name-parser.y (yylex): Fix fall-through comment.
8871 * coffread.c (coff_symtab_read): Fix fall-through comment.
8872 * c-exp.y (lex_one_token): Fix fall-through comment.
8873 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8874 comment.
8875 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8876 comment.
8877
56bcdbea
TT
88782018-05-04 Tom Tromey <tom@tromey.com>
8879
8880 PR python/22730:
8881 * NEWS: Mention gdb.execute change.
8882 * gdbcmd.h (execute_control_command): Don't declare.
8883 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8884 execute_control_commands, execute_control_commands_to_string.
8885 * cli/cli-script.h (execute_control_commands)
8886 (execute_control_commands_to_string): Declare.
8887 (execute_control_command): Add from_tty parameter.
8888 * cli/cli-script.c (execute_control_commands)
8889 (execute_control_commands_to_string): New functions.
8890 (execute_user_command): Use execute_control_commands.
8891 (execute_control_command_1): Add "from_tty" parameter. Update.
8892 (execute_control_command): Likewise.
8893
a913fffb
TT
88942018-05-04 Tom Tromey <tom@tromey.com>
8895
8896 PR python/22731:
8897 * NEWS: Mention that breakpoint commands are writable.
8898 * python/py-breakpoint.c (bppy_set_commands): New function.
8899 (breakpoint_object_getset) <"commands">: Use it.
8900
60b3cef2
TT
89012018-05-04 Tom Tromey <tom@tromey.com>
8902
8903 * tracepoint.c (actions_command): Update.
8904 * mi/mi-cmd-break.c (mi_command_line_array)
8905 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8906 (mi_read_next_line): Remove.
8907 (mi_cmd_break_commands): Update.
8908 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8909 function_view.
8910 * cli/cli-script.c (get_command_line): Update.
8911 (process_next_line): Use function_view. Constify.
8912 (recurse_read_control_structure, read_command_lines)
8913 (read_command_lines_1): Change argument types to function_view.
8914 (do_define_command, document_command): Update.
8915 * breakpoint.h (check_tracepoint_command): Don't declare.
8916 * breakpoint.c (check_tracepoint_command): Remove.
8917 (commands_command_1, create_tracepoint_from_upload): Update.
8918
7a2c85f2
TT
89192018-05-04 Tom Tromey <tom@tromey.com>
8920
8921 PR gdb/11750:
8922 * cli/cli-script.h (enum command_control_type) <define_control>:
8923 New constant.
8924 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8925 (build_command_line, execute_control_command_1)
8926 (process_next_line): Likewise.
8927 (do_define_command): New function, extracted from define_command.
8928 (define_command): Use it.
8929
295dc222
TT
89302018-05-04 Tom Tromey <tom@tromey.com>
8931
8932 * tracepoint.c (actions_command): Update.
8933 * cli/cli-script.h (read_command_lines): Update.
8934 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8935 (MAX_TMPBUF): Remove define.
8936 (define_command): Use string_printf.
8937 (document_command): Likewise.
8938 * breakpoint.c (commands_command_1): Update.
8939
1263a9d5
TT
89402018-05-04 Tom Tromey <tom@tromey.com>
8941
8942 * top.c (execute_command): Update.
8943 * cli/cli-script.h (print_command_lines): Now varargs.
8944 * cli/cli-script.c (print_command_lines): Now varargs.
8945 (execute_control_command_1) <case while_control, case if_control>:
8946 Update.
8947
12973681
TT
89482018-05-04 Tom Tromey <tom@tromey.com>
8949
8950 * tracepoint.c (all_tracepoint_actions): Rename from
8951 all_tracepoint_actions_and_cleanup. Change return type.
8952 (actions_command, encode_actions_1, encode_actions)
8953 (trace_dump_actions, tdump_command): Update.
8954 * remote.c (remote_download_command_source): Update.
8955 * python/python.c (gdbpy_eval_from_control_command)
8956 (python_command, python_interactive_command): Update.
8957 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8958 * guile/guile.c (guile_command)
8959 (gdbscm_eval_from_control_command, guile_command): Update.
8960 * compile/compile.c (compile_code_command)
8961 (compile_print_command, compile_to_object): Update.
8962 * cli/cli-script.h (struct command_lines_deleter): New.
8963 (counted_command_line): New typedef.
8964 (struct command_line): Add constructor, destructor.
8965 <body_list>: Remove.
8966 <body_list_0, body_list_1>: New members.
8967 (command_line_up): Remove typedef.
8968 (read_command_lines, read_command_lines_1, get_command_line):
8969 Update.
8970 (copy_command_lines): Don't declare.
8971 * cli/cli-script.c (build_command_line): Use "new".
8972 (get_command_line): Return counted_command_line.
8973 (print_command_lines, execute_user_command)
8974 (execute_control_command_1, while_command, if_command): Update.
8975 (realloc_body_list): Remove.
8976 (process_next_line, recurse_read_control_structure): Update.
8977 (read_command_lines, read_command_lines_1): Return counted_command_line.
8978 (free_command_lines): Use "delete".
8979 (copy_command_lines): Remove.
8980 (define_command, document_command, show_user_1): Update.
8981 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8982 a counted_command_line.
8983 * breakpoint.h (counted_command_line): Remove typedef.
8984 (breakpoint_set_commands): Update.
8985 * breakpoint.c (check_no_tracepoint_commands)
8986 (validate_commands_for_breakpoint): Update.
8987 (breakpoint_set_commands): Change commands to be a
8988 counted_command_line.
8989 (commands_command_1, update_dprintf_command_list)
8990 (create_tracepoint_from_upload): Update.
8991
e2fc72e2
TT
89922018-05-04 Tom Tromey <tom@tromey.com>
8993
8994 * cli/cli-decode.h (cmd_list_element): New constructor.
8995 (~cmd_list_element): New destructor.
8996 (struct cmd_list_element): Add initializers.
8997 * cli/cli-decode.c (do_add_cmd): Use "new".
8998 (delete_cmd): Use "delete".
8999
a3b60e45
JK
90002018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9001 Pedro Alves <palves@redhat.com>
9002
9003 PR breakpoints/19806 and support for PR external/20207.
9004 * NEWS: Mention Aarch64 watchpoint improvements.
9005 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9006 watchpoints and PR external/20207 watchpoints.
9007 * nat/aarch64-linux-hw-point.c
9008 (kernel_supports_any_contiguous_range): New.
9009 (aarch64_watchpoint_offset): New.
9010 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9011 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9012 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9013 (aarch64_align_watchpoint): New parameters aligned_offset_p and
9014 next_addr_orig_p. Support PR external/20207 watchpoints.
9015 (aarch64_downgrade_regs): New.
9016 (aarch64_dr_state_insert_one_point): New parameters offset and
9017 addr_orig.
9018 (aarch64_dr_state_remove_one_point): Likewise.
9019 (aarch64_handle_breakpoint): Update caller.
9020 (aarch64_handle_aligned_watchpoint): Likewise.
9021 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9022 aligned_offset.
9023 (aarch64_linux_set_debug_regs): Remove const from state. Call
9024 aarch64_downgrade_regs.
9025 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9026 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9027 (DR_CONTROL_MASK): ... this.
9028 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9029 (unsigned int aarch64_watchpoint_offset): New prototype.
9030 (aarch64_linux_set_debug_regs): Remove const from state.
9031 * utils.c (align_up, align_down): Move to ...
9032 * common/common-utils.c (align_up, align_down): ... here.
9033 * utils.h (align_up, align_down): Move to ...
9034 * common/common-utils.h (align_up, align_down): ... here.
9035
05bc7456
JB
90362018-05-04 Joel Brobecker <brobecker@adacore.com>
9037
9038 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9039 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9040 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9041 Re-implement to match the ABI as summarized in GCC's
9042 gcc/config/sparc/sparc.c. All callers updated.
9043 (sparc32_store_arguments): Remove assertion.
9044
2f433492
TT
90452018-05-04 Tom Tromey <tom@tromey.com>
9046
9047 * printcmd.c: Don't include tui.h.
9048 (decode_format): Use skip_spaces.
9049
9be2ae8f
TT
90502018-05-04 Tom Tromey <tom@tromey.com>
9051
9052 PR gdb/22619:
9053 * printcmd.c (last_count): New global.
9054 (x_command): Use saved count when repeating.
9055
f0b3976b
TT
90562018-05-04 Tom Tromey <tom@tromey.com>
9057
9058 * nto-procfs.c (do_closedir_cleanup): Remove.
9059 (procfs_pidlist): Use gdb_dir_up.
9060 * procfs.c (do_closedir_cleanup): Remove.
9061 (proc_update_threads): Use gdb_dir_up.
9062 * common/filestuff.h (struct gdb_dir_deleter): New.
9063 (gdb_dir_up): New typedef.
9064
862d101a
TT
90652018-05-04 Tom Tromey <tom@tromey.com>
9066
9067 * ada-lang.c (print_mention_exception): Use std::string.
9068
cb7de75e
TT
90692018-05-04 Tom Tromey <tom@tromey.com>
9070
9071 * ada-lang.c (create_excep_cond_exprs): Update.
9072 (ada_exception_catchpoint_cond_string): Use std::string.
9073
49d83361
TT
90742018-05-04 Tom Tromey <tom@tromey.com>
9075
9076 * ada-lang.c (xget_renaming_scope): Return std::string.
9077 (old_renaming_is_invisible): Update.
9078
ade72a34
TT
90792018-05-04 Tom Tromey <tom@tromey.com>
9080
9081 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
9082 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
9083
2be4d7f0
UW
90842018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
9085
9086 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
9087
69b6ecb0
TT
90882018-05-04 Tom Tromey <tom@tromey.com>
9089
9090 * remote.c (remote_query_supported_append): Change type.
9091 (remote_check_symbols): Update.
9092
bf27f0e2
PP
90932018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
9094
9095 PR gdb/11420
9096 * configure.ac: Prepend libpython.
9097 * python/python-config.py: Likewise.
9098 * configure: Regenerate.
9099
4ea17de8
SM
91002018-05-03 Simon Marchi <simon.marchi@ericsson.com>
9101
9102 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
9103
bd732259
PA
91042018-05-03 Pedro Alves <palves@redhat.com>
9105
9106 * s390-linux-nat.c
9107 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
9108 override. Write 'true' instead of '1'.
9109 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
9110 declaration.
9111
d9f719f1
PA
91122018-05-02 Pedro Alves <palves@redhat.com>
9113
9114 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
9115 add_inf_child_target.
9116 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
9117 add_inf_child_target.
9118 * aix-thread.c (aix_thread_target_info): New.
9119 (aix_thread_target) <shortname, longname, doc>: Delete.
9120 <info>: New.
9121 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
9122 add_inf_child_target.
9123 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
9124 add_inf_child_target.
9125 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
9126 add_inf_child_target.
9127 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
9128 add_inf_child_target.
9129 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
9130 add_inf_child_target.
9131 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
9132 add_inf_child_target.
9133 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
9134 add_inf_child_target.
9135 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
9136 add_inf_child_target.
9137 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
9138 add_inf_child_target.
9139 * bfd-target.c (target_bfd_target_info): New.
9140 (target_bfd) <shortname, longname, doc>: Delete.
9141 <info>: New.
9142 * bsd-kvm.c (bsd_kvm_target_info): New.
9143 (bsd_kvm_target) <shortname, longname, doc>: Delete.
9144 <info>: New.
9145 (bsd_kvm_target::open): Rename to ...
9146 (bsd_kvm_target_open): ... this. Adjust.
9147 * bsd-uthread.c (bsd_uthread_target_info): New.
9148 (bsd_uthread_target) <shortname, longname, doc>: Delete.
9149 <info>: New.
9150 * corefile.c (core_file_command): Adjust.
9151 * corelow.c (core_target_info): New.
9152 (core_target) <shortname, longname, doc>: Delete.
9153 <info>: New.
9154 (core_target::open): Rename to ...
9155 (core_target_open): ... this. Adjust.
9156 * ctf.c (ctf_target_info): New.
9157 (ctf_target) <shortname, longname, doc>: Delete.
9158 <info>: New.
9159 (ctf_target::open): Rename to ...
9160 (ctf_target_open): ... this.
9161 (_initialize_ctf): Adjust.
9162 * exec.c (exec_target_info): New.
9163 (exec_target) <shortname, longname, doc>: Delete.
9164 <info>: New.
9165 (exec_target::open): Rename to ...
9166 (exec_target_open): ... this.
9167 * gdbcore.h (core_target_open): Declare.
9168 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9169 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9170 add_inf_child_target.
9171 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9172 add_inf_child_target.
9173 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9174 add_inf_child_target.
9175 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9176 add_inf_child_target.
9177 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9178 add_inf_child_target.
9179 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9180 add_inf_child_target.
9181 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9182 add_inf_child_target.
9183 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9184 add_inf_child_target.
9185 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9186 add_inf_child_target.
9187 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9188 add_inf_child_target.
9189 * inf-child.c (inf_child_target_info): New.
9190 (inf_child_target::info): New.
9191 (inf_child_open_target): Remove 'target' parameter. Use
9192 get_native_target instead.
9193 (inf_child_target::open): Delete.
9194 (add_inf_child_target): New.
9195 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9196 Delete.
9197 <info>: New.
9198 (add_inf_child_target): Declare.
9199 (inf_child_open_target): Declare.
9200 * linux-thread-db.c (thread_db_target_info): New.
9201 (thread_db_target) <shortname, longname, doc>: Delete.
9202 <info>: New.
9203 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9204 add_inf_child_target.
9205 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9206 add_inf_child_target.
9207 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9208 add_inf_child_target.
9209 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9210 add_inf_child_target.
9211 * make-target-delegates (print_class): Adjust.
9212 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9213 add_inf_child_target.
9214 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9215 add_inf_child_target.
9216 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9217 add_inf_child_target.
9218 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9219 add_inf_child_target.
9220 * nto-procfs.c (nto_native_target_info): New.
9221 (nto_procfs_target_native) <shortname, longname, doc>:
9222 Delete.
9223 <info>: New.
9224 (nto_procfs_target_info): New.
9225 (nto_procfs_target_procfs) <shortname, longname, doc>:
9226 Delete.
9227 <info>: New.
9228 (init_procfs_targets): Adjust.
9229 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9230 add_inf_child_target.
9231 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9232 add_inf_child_target.
9233 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9234 add_inf_child_target.
9235 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9236 add_inf_child_target.
9237 * ravenscar-thread.c (ravenscar_target_info): New.
9238 (ravenscar_thread_target) <shortname, longname, doc>:
9239 Delete.
9240 <info>: New.
9241 * record-btrace.c (record_btrace_target_info):
9242 (record_btrace_target) <shortname, longname, doc>: Delete.
9243 <info>: New.
9244 (record_btrace_target::open): Rename to ...
9245 (record_btrace_target_open): ... this. Adjust.
9246 * record-full.c (record_longname, record_doc): New.
9247 (record_full_base_target) <shortname, longname, doc>: Delete.
9248 <info>: New.
9249 (record_full_target_info): New.
9250 (record_full_target): <shortname>: Delete.
9251 <info>: New.
9252 (record_full_core_open_1, record_full_open_1): Update comments.
9253 (record_full_base_target::open): Rename to ...
9254 (record_full_open): ... this.
9255 (cmd_record_full_restore): Update.
9256 (_initialize_record_full): Update.
9257 * remote-sim.c (remote_sim_target_info): New.
9258 (gdbsim_target) <shortname, longname, doc>: Delete.
9259 <info>: New.
9260 (gdbsim_target::open): Rename to ...
9261 (gdbsim_target_open): ... this.
9262 (_initialize_remote_sim): Adjust.
9263 * remote.c (remote_doc): New.
9264 (remote_target_info): New.
9265 (remote_target) <shortname, longname, doc>: Delete.
9266 <info>: New.
9267 (extended_remote_target_info): New.
9268 (extended_remote_target) <shortname, longname, doc>: Delete.
9269 <info>: New.
9270 (remote_target::open_1): Make static. Adjust.
9271 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
9272 * s390-linux-nat.c (_initialize_s390_nat): Use
9273 add_inf_child_target.
9274 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
9275 add_inf_child_target.
9276 * sol-thread.c (thread_db_target_info): New.
9277 (sol_thread_target) <shortname, longname, doc>: Delete.
9278 <info>: New.
9279 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
9280 add_inf_child_target.
9281 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
9282 add_inf_child_target.
9283 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
9284 add_inf_child_target.
9285 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
9286 add_inf_child_target.
9287 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
9288 add_inf_child_target.
9289 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
9290 add_inf_child_target.
9291 * spu-linux-nat.c (_initialize_spu_nat): Use
9292 add_inf_child_target.
9293 * spu-multiarch.c (spu_multiarch_target_info): New.
9294 (spu_multiarch_target) <shortname, longname, doc>: Delete.
9295 <info>: New.
9296 * target-delegates.c: Regenerate.
9297 * target.c: Include <unordered_map>.
9298 (target_ops_p): Delete.
9299 (DEF_VEC_P(target_ops_p)): Delete.
9300 (target_factories): New.
9301 (test_target_info): New.
9302 (test_target_ops::info): New.
9303 (open_target): Adjust to use target_factories.
9304 (add_target_with_completer): Rename to ...
9305 (add_target): ... this. Change prototype. Register target_info
9306 and open callback in target_factories. Register target_info in
9307 command context instead of target_ops.
9308 (add_target): Delete old implementation.
9309 (add_deprecated_target_alias): Change prototype. Adjust.
9310 (the_native_target): New.
9311 (set_native_target, get_native_target): New.
9312 (find_default_run_target): Use the_native_target.
9313 (find_attach_target, find_run_target): Simplify.
9314 (target_ops::open): Delete.
9315 (dummy_target_info): New.
9316 (dummy_target::shortname, dummy_target::longname)
9317 (dummy_target::doc): Delete.
9318 (dummy_target::info): New.
9319 (debug_target::shortname, debug_target::longname)
9320 (debug_target::doc): Delete.
9321 (debug_target::info): New.
9322 * target.h (struct target_info): New.
9323 (target_ops::~target_ops): Add comment.
9324 (target_ops::info): New.
9325 (target_ops::shortname, target_ops::longname, target_ops::doc): No
9326 longer virtual. Implement in terms of target_info.
9327 (set_native_target, get_native_target): Declare.
9328 (target_open_ftype): New.
9329 (add_target, add_target_with_completer)
9330 (add_deprecated_target_alias): Change prototype.
9331 (test_target) <shortname, longname, doc>: Delete.
9332 <info>: New.
9333 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
9334 add_inf_child_target.
9335 * tracefile-tfile.c (tfile_target_info): New.
9336 (tfile_target) <shortname, longname, doc>: Delete.
9337 <info>: New.
9338 (tfile_target::open): Rename to ...
9339 (tfile_target_open): ... this.
9340 (_initialize_tracefile_tfile): Adjust.
9341 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
9342 add_inf_child_target.
9343 * windows-nat.c (_initialize_windows_nat): Use
9344 add_inf_child_target.
9345 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
9346 add_inf_child_target.
9347
135340af
PA
93482018-05-02 Pedro Alves <palves@redhat.com>
9349
9350 * linux-nat.h (linux_nat_target) <low_new_thread,
9351 low_delete_thread, low_new_fork, low_forget_process,
9352 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
9353 New virtual methods.
9354 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9355 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
9356 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
9357 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9358 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
9359 Delete.
9360 * linux-fork.c (delete_fork): Adjust to call low method.
9361 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
9362 (linux_nat_new_fork, linux_nat_forget_process_hook)
9363 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
9364 (linux_nat_status_is_event):
9365 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
9366 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
9367 to call low method.
9368 (sigtrap_is_event): Rename to ...
9369 (linux_nat_target::low_status_is_event): ... this.
9370 (linux_nat_set_status_is_event): Delete.
9371 (save_stop_reason, linux_nat_wait_1)
9372 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
9373 low methods.
9374 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9375 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9376 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9377 (linux_nat_set_prepare_to_resume): Delete.
9378 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
9379 low virtual methods.
9380 * amd64-linux-nat.c: Likewise.
9381 * arm-linux-nat.c: Likewise.
9382 * i386-linux-nat.c: Likewise.
9383 * ia64-linux-nat.c: Likewise.
9384 * mips-linux-nat.c: Likewise.
9385 * ppc-linux-nat.c: Likewise.
9386 * s390-linux-nat.c: Likewise.
9387 * sparc64-linux-nat.c: Likewise.
9388 * x86-linux-nat.c: Likewise.
9389 * x86-linux-nat.h: Include "nat/x86-linux.h".
9390 (x86_linux_nat_target) <low_new_fork, low_forget_process,
9391 low_prepare_to_resume, low_new_thread, low_delete_thread>:
9392 Override methods.
9393
57810aa7
PA
93942018-05-02 Pedro Alves <palves@redhat.com>
9395
9396 * target.h (target_ops)
9397 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9398 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
9399 stopped_by_watchpoint, have_continuable_watchpoint,
9400 stopped_data_address, watchpoint_addr_within_range,
9401 can_accel_watchpoint_condition, can_run, thread_alive,
9402 has_all_memory, has_memory, has_stack, has_registers,
9403 has_execution, can_async_p, is_async_p, supports_non_stop,
9404 always_non_stop_p, can_execute_reverse, supports_multi_process,
9405 supports_enable_disable_tracepoint,
9406 supports_disable_randomization, supports_string_tracing,
9407 supports_evaluation_of_breakpoint_conditions,
9408 can_run_breakpoint_commands, filesystem_is_local,
9409 can_download_tracepoint, get_trace_state_variable_value,
9410 set_trace_notes, get_tib_address, use_agent, can_use_agent,
9411 record_is_replaying, record_will_replay,
9412 augmented_libraries_svr4_read>: Adjust to return bool.
9413 * aarch64-linux-nat.c: All implementations adjusted.
9414 * aix-thread.c: All implementations adjusted.
9415 * arm-linux-nat.c: All implementations adjusted.
9416 * breakpoint.c: All implementations adjusted.
9417 * bsd-kvm.c: All implementations adjusted.
9418 * bsd-uthread.c: All implementations adjusted.
9419 * corelow.c: All implementations adjusted.
9420 * ctf.c: All implementations adjusted.
9421 * darwin-nat.c: All implementations adjusted.
9422 * darwin-nat.h: All implementations adjusted.
9423 * exec.c: All implementations adjusted.
9424 * fbsd-nat.c: All implementations adjusted.
9425 * fbsd-nat.h: All implementations adjusted.
9426 * gnu-nat.c: All implementations adjusted.
9427 * gnu-nat.h: All implementations adjusted.
9428 * go32-nat.c: All implementations adjusted.
9429 * ia64-linux-nat.c: All implementations adjusted.
9430 * inf-child.c: All implementations adjusted.
9431 * inf-child.h: All implementations adjusted.
9432 * inf-ptrace.c: All implementations adjusted.
9433 * inf-ptrace.h: All implementations adjusted.
9434 * linux-nat.c: All implementations adjusted.
9435 * linux-nat.h: All implementations adjusted.
9436 * mips-linux-nat.c: All implementations adjusted.
9437 * nto-procfs.c: All implementations adjusted.
9438 * ppc-linux-nat.c: All implementations adjusted.
9439 * procfs.c: All implementations adjusted.
9440 * ravenscar-thread.c: All implementations adjusted.
9441 * record-btrace.c: All implementations adjusted.
9442 * record-full.c: All implementations adjusted.
9443 * remote-sim.c: All implementations adjusted.
9444 * remote.c: All implementations adjusted.
9445 * s390-linux-nat.c: All implementations adjusted.
9446 * sol-thread.c: All implementations adjusted.
9447 * spu-multiarch.c: All implementations adjusted.
9448 * target-delegates.c: All implementations adjusted.
9449 * target.c: All implementations adjusted.
9450 * target.h: All implementations adjusted.
9451 * tracefile-tfile.c: All implementations adjusted.
9452 * tracefile.c: All implementations adjusted.
9453 * tracefile.h: All implementations adjusted.
9454 * windows-nat.c: All implementations adjusted.
9455 * x86-linux-nat.h: All implementations adjusted.
9456 * x86-nat.h: All implementations adjusted.
9457
ad6a4e2d
PA
94582018-05-02 Pedro Alves <palves@redhat.com>
9459
9460 * make-target-delegates (scan_target_h): Don't trim lines here.
9461 Replace sequences of tabs and/or whitespace with a single
9462 whitespace.
9463 (top level, parsing methods): Trim each line before processing it
9464 here.
9465
f6ac5f3d
PA
94662018-05-02 Pedro Alves <palves@redhat.com>
9467 John Baldwin <jhb@freebsd.org>
9468
9469 * target.h (enum strata) <debug_stratum>: New.
9470 (struct target_ops) <all delegation methods>: Replace by C++
9471 virtual methods, and drop "to_" prefix. All references updated
9472 throughout.
9473 <to_shortname, to_longname, to_doc, to_data,
9474 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
9475 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
9476 virtual methods. All references updated throughout.
9477 <can_attach, supports_terminal_ours, can_create_inferior,
9478 get_thread_control_capabilities, attach_no_wait>: New
9479 virtual methods.
9480 <insert_breakpoint, remove_breakpoint>: Now
9481 TARGET_DEFAULT_NORETURN methods.
9482 <info_proc>: Now returns bool.
9483 <to_magic>: Delete.
9484 (OPS_MAGIC): Delete.
9485 (current_target): Delete. All references replaced by references
9486 to ...
9487 (target_stack): ... this. New.
9488 (target_shortname, target_longname): Adjust.
9489 (target_can_run): Now a function declaration.
9490 (default_child_has_all_memory, default_child_has_memory)
9491 (default_child_has_stack, default_child_has_registers)
9492 (default_child_has_execution): Remove target_ops parameter.
9493 (complete_target_initialization): Delete.
9494 (memory_breakpoint_target): New template class.
9495 (test_target_ops): Refactor as a C++ class with virtual methods.
9496 * make-target-delegates (NAME_PART): Tighten.
9497 (POINTER_PART, CP_SYMBOL): New.
9498 (SIMPLE_RETURN_PART): Reimplement.
9499 (VEC_RETURN_PART): Expect less.
9500 (RETURN_PART, VIRTUAL_PART): New.
9501 (METHOD): Adjust to C++ virtual methods.
9502 (scan_target_h): Remove reference to C99.
9503 (dname): Output "target_ops::" prefix.
9504 (write_function_header): Adjust to output a C++ class method.
9505 (write_declaration): New.
9506 (write_delegator): Adjust to output a C++ class method.
9507 (tdname): Output "dummy_target::" prefix.
9508 (write_tdefault, write_debugmethod): Adjust to output a C++ class
9509 method.
9510 (tdefault_names, debug_names): Delete.
9511 (return_types, tdefaults, styles, argtypes_array): New.
9512 (top level): All methods are delegators.
9513 (print_class): New.
9514 (top level): Print dummy_target and debug_target classes.
9515 * target-delegates.c: Regenerate.
9516 * target-debug.h (target_debug_print_enum_info_proc_what)
9517 (target_debug_print_thread_control_capabilities)
9518 (target_debug_print_thread_info_p): New.
9519 * target.c (dummy_target): Delete.
9520 (the_dummy_target, the_debug_target): New.
9521 (target_stack): Now extern.
9522 (set_targetdebug): Push/unpush debug target.
9523 (default_child_has_all_memory, default_child_has_memory)
9524 (default_child_has_stack, default_child_has_registers)
9525 (default_child_has_execution): Remove target_ops parameter.
9526 (complete_target_initialization): Delete.
9527 (add_target_with_completer): No longer call
9528 complete_target_initialization.
9529 (target_supports_terminal_ours): Use regular delegation.
9530 (update_current_target): Delete.
9531 (push_target): No longer check magic number. Don't call
9532 update_current_target.
9533 (unpush_target): Don't call update_current_target.
9534 (target_is_pushed): No longer check magic number.
9535 (target_require_runnable): Skip for all stratums over
9536 process_stratum.
9537 (target_ops::info_proc): New.
9538 (target_info_proc): Use find_target_at and
9539 find_default_run_target.
9540 (target_supports_disable_randomization): Use regular delegation.
9541 (target_get_osdata): Use find_target_at.
9542 (target_ops::open, target_ops::close, target_ops::can_attach)
9543 (target_ops::attach, target_ops::can_create_inferior)
9544 (target_ops::create_inferior, target_ops::can_run)
9545 (target_can_run): New.
9546 (default_fileio_target): Use regular delegation.
9547 (target_ops::fileio_open, target_ops::fileio_pwrite)
9548 (target_ops::fileio_pread, target_ops::fileio_fstat)
9549 (target_ops::fileio_close, target_ops::fileio_unlink)
9550 (target_ops::fileio_readlink): New.
9551 (target_fileio_open_1, target_fileio_unlink)
9552 (target_fileio_readlink): Always call the target method. Handle
9553 FILEIO_ENOSYS.
9554 (return_zero, return_zero_has_execution): Delete.
9555 (init_dummy_target): Delete.
9556 (dummy_target::dummy_target, dummy_target::shortname)
9557 (dummy_target::longname, dummy_target::doc)
9558 (debug_target::debug_target, debug_target::shortname)
9559 (debug_target::longname, debug_target::doc): New.
9560 (target_supports_delete_record): Use regular delegation.
9561 (setup_target_debug): Delete.
9562 (maintenance_print_target_stack): Skip debug_stratum.
9563 (initialize_targets): Instantiate the_dummy_target and
9564 the_debug_target.
9565 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
9566 use target_stack.
9567 (target_auxv_search, fprint_target_auxv): Adjust.
9568 (info_auxv_command): Adjust to use target_stack.
9569 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
9570 * exceptions.c (print_flush): Handle a NULL target_stack.
9571 * regcache.c (target_ops_no_register): Refactor as class with
9572 virtual methods.
9573
9574 * exec.c (exec_target): New class.
9575 (exec_ops): Now an exec_target.
9576 (exec_open, exec_close_1, exec_get_section_table)
9577 (exec_xfer_partial, exec_files_info, exec_has_memory)
9578 (exec_make_note_section): Refactor as exec_target methods.
9579 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
9580 Delete.
9581 (exec_target::find_memory_regions): New.
9582 (_initialize_exec): Don't call init_exec_ops.
9583 * gdbcore.h (exec_file_clear): Delete.
9584
9585 * corefile.c (core_target): Delete.
9586 (core_file_command): Adjust.
9587 * corelow.c (core_target): New class.
9588 (the_core_target): New.
9589 (core_close): Remove target_ops parameter.
9590 (core_close_cleanup): Adjust.
9591 (core_target::close): New.
9592 (core_open, core_detach, get_core_registers, core_files_info)
9593 (core_xfer_partial, core_thread_alive, core_read_description)
9594 (core_pid_to_str, core_thread_name, core_has_memory)
9595 (core_has_stack, core_has_registers, core_info_proc): Rework as
9596 core_target methods.
9597 (ignore, core_remove_breakpoint, init_core_ops): Delete.
9598 (_initialize_corelow): Initialize the_core_target.
9599 * gdbcore.h (core_target): Delete.
9600 (the_core_target): New.
9601
9602 * ctf.c: (ctf_target): New class.
9603 (ctf_ops): Now a ctf_target.
9604 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
9605 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
9606 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
9607 methods.
9608 (init_ctf_ops): Delete.
9609 (_initialize_ctf): Don't call it.
9610 * tracefile-tfile.c (tfile_target): New class.
9611 (tfile_ops): Now a tfile_target.
9612 (tfile_open, tfile_close, tfile_files_info)
9613 (tfile_get_tracepoint_status, tfile_trace_find)
9614 (tfile_fetch_registers, tfile_xfer_partial)
9615 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
9616 Refactor as tfile_target methods.
9617 (tfile_xfer_partial_features): Remove target_ops parameter.
9618 (init_tfile_ops): Delete.
9619 (_initialize_tracefile_tfile): Don't call it.
9620 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
9621 (tracefile_has_stack, tracefile_has_registers)
9622 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
9623 tracefile_target methods.
9624 (init_tracefile_ops): Delete.
9625 (tracefile_target::tracefile_target): New.
9626 * tracefile.h: Include "target.h".
9627 (tracefile_target): New class.
9628 (init_tracefile_ops): Delete.
9629
9630 * spu-multiarch.c (spu_multiarch_target): New class.
9631 (spu_ops): Now a spu_multiarch_target.
9632 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9633 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9634 (spu_search_memory, spu_mourn_inferior): Refactor as
9635 spu_multiarch_target methods.
9636 (init_spu_ops): Delete.
9637 (_initialize_spu_multiarch): Remove references to init_spu_ops,
9638 complete_target_initialization.
9639
9640 * ravenscar-thread.c (ravenscar_thread_target): New class.
9641 (ravenscar_ops): Now a ravenscar_thread_target.
9642 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9643 (ravenscar_thread_alive, ravenscar_pid_to_str)
9644 (ravenscar_fetch_registers, ravenscar_store_registers)
9645 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9646 (ravenscar_stopped_by_hw_breakpoint)
9647 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9648 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9649 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9650 methods.
9651 (init_ravenscar_thread_ops): Delete.
9652 (_initialize_ravenscar): Remove references to
9653 init_ravenscar_thread_ops and complete_target_initialization.
9654
9655 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9656 (bsd_uthread_target): New class.
9657 (bsd_uthread_ops): Now a bsd_uthread_target.
9658 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9659 (bsd_uthread_close, bsd_uthread_mourn_inferior)
9660 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9661 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9662 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9663 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9664 (bsd_uthread_target): Delete function.
9665 (_initialize_bsd_uthread): Remove reference to
9666 complete_target_initialization.
9667
9668 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
9669 (target_bfd): ... this new class.
9670 (target_bfd_xfer_partial, target_bfd_get_section_table)
9671 (target_bfd_close): Refactor as target_bfd methods.
9672 (target_bfd::~target_bfd): New.
9673 (target_bfd_reopen): Adjust.
9674 (target_bfd::close): New.
9675
9676 * record-btrace.c (record_btrace_target): New class.
9677 (record_btrace_ops): Now a record_btrace_target.
9678 (record_btrace_open, record_btrace_stop_recording)
9679 (record_btrace_disconnect, record_btrace_close)
9680 (record_btrace_async, record_btrace_info)
9681 (record_btrace_insn_history, record_btrace_insn_history_range)
9682 (record_btrace_insn_history_from, record_btrace_call_history)
9683 (record_btrace_call_history_range)
9684 (record_btrace_call_history_from, record_btrace_record_method)
9685 (record_btrace_is_replaying, record_btrace_will_replay)
9686 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9687 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9688 (record_btrace_store_registers, record_btrace_prepare_to_store)
9689 (record_btrace_to_get_unwinder)
9690 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9691 (record_btrace_commit_resume, record_btrace_wait)
9692 (record_btrace_stop, record_btrace_can_execute_reverse)
9693 (record_btrace_stopped_by_sw_breakpoint)
9694 (record_btrace_supports_stopped_by_sw_breakpoint)
9695 (record_btrace_stopped_by_hw_breakpoint)
9696 (record_btrace_supports_stopped_by_hw_breakpoint)
9697 (record_btrace_update_thread_list, record_btrace_thread_alive)
9698 (record_btrace_goto_begin, record_btrace_goto_end)
9699 (record_btrace_goto, record_btrace_stop_replaying_all)
9700 (record_btrace_execution_direction)
9701 (record_btrace_prepare_to_generate_core)
9702 (record_btrace_done_generating_core): Refactor as
9703 record_btrace_target methods.
9704 (init_record_btrace_ops): Delete.
9705 (_initialize_record_btrace): Remove reference to
9706 init_record_btrace_ops.
9707 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9708 the execution_direction global.
9709 (record_full_base_target, record_full_target)
9710 (record_full_core_target): New classes.
9711 (record_full_ops): Now a record_full_target.
9712 (record_full_core_ops): Now a record_full_core_target.
9713 (record_full_target::detach, record_full_target::disconnect)
9714 (record_full_core_target::disconnect)
9715 (record_full_target::mourn_inferior, record_full_target::kill):
9716 New.
9717 (record_full_open, record_full_close, record_full_async): Refactor
9718 as methods of the record_full_base_target class.
9719 (record_full_resume, record_full_commit_resume): Refactor
9720 as methods of the record_full_target class.
9721 (record_full_wait, record_full_stopped_by_watchpoint)
9722 (record_full_stopped_data_address)
9723 (record_full_stopped_by_sw_breakpoint)
9724 (record_full_supports_stopped_by_sw_breakpoint)
9725 (record_full_stopped_by_hw_breakpoint)
9726 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9727 methods of the record_full_base_target class.
9728 (record_full_store_registers, record_full_xfer_partial)
9729 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9730 Refactor as methods of the record_full_target class.
9731 (record_full_can_execute_reverse, record_full_get_bookmark)
9732 (record_full_goto_bookmark, record_full_execution_direction)
9733 (record_full_record_method, record_full_info, record_full_delete)
9734 (record_full_is_replaying, record_full_will_replay)
9735 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9736 (record_full_stop_replaying): Refactor as methods of the
9737 record_full_base_target class.
9738 (record_full_core_resume, record_full_core_kill)
9739 (record_full_core_fetch_registers)
9740 (record_full_core_prepare_to_store)
9741 (record_full_core_store_registers, record_full_core_xfer_partial)
9742 (record_full_core_insert_breakpoint)
9743 (record_full_core_remove_breakpoint)
9744 (record_full_core_has_execution): Refactor
9745 as methods of the record_full_core_target class.
9746 (record_full_base_target::supports_delete_record): New.
9747 (init_record_full_ops): Delete.
9748 (init_record_full_core_ops): Delete.
9749 (record_full_save): Refactor as method of the
9750 record_full_base_target class.
9751 (_initialize_record_full): Remove references to
9752 init_record_full_ops and init_record_full_core_ops.
9753
9754 * remote.c (remote_target, extended_remote_target): New classes.
9755 (remote_ops): Now a remote_target.
9756 (extended_remote_ops): Now an extended_remote_target.
9757 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9758 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9759 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9760 (remote_pass_signals, remote_set_syscall_catchpoint)
9761 (remote_program_signals, )
9762 (remote_thread_always_alive): Remove target_ops parameter.
9763 (remote_thread_alive, remote_thread_name)
9764 (remote_update_thread_list, remote_threads_extra_info)
9765 (remote_static_tracepoint_marker_at)
9766 (remote_static_tracepoint_markers_by_strid)
9767 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9768 (remote_open): Refactor as methods of remote_target.
9769 (extended_remote_open, extended_remote_detach)
9770 (extended_remote_attach, extended_remote_post_attach):
9771 (extended_remote_supports_disable_randomization)
9772 (extended_remote_create_inferior): : Refactor as method of
9773 extended_remote_target.
9774 (remote_set_permissions, remote_open_1, remote_detach)
9775 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9776 (remote_resume, remote_commit_resume, remote_stop)
9777 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9778 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9779 (remote_prepare_to_store, remote_store_registers)
9780 (remote_flash_erase, remote_flash_done, remote_files_info)
9781 (remote_kill, remote_mourn, remote_insert_breakpoint)
9782 (remote_remove_breakpoint, remote_insert_watchpoint)
9783 (remote_watchpoint_addr_within_range)
9784 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9785 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9786 (remote_supports_stopped_by_sw_breakpoint)
9787 (remote_stopped_by_hw_breakpoint)
9788 (remote_supports_stopped_by_hw_breakpoint)
9789 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9790 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9791 (remote_verify_memory): Refactor as methods of remote_target.
9792 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9793 parameter.
9794 (remote_xfer_partial, remote_get_memory_xfer_limit)
9795 (remote_search_memory, remote_rcmd, remote_memory_map)
9796 (remote_pid_to_str, remote_get_thread_local_address)
9797 (remote_get_tib_address, remote_read_description): Refactor as
9798 methods of remote_target.
9799 (remote_target::fileio_open, remote_target::fileio_pwrite)
9800 (remote_target::fileio_pread, remote_target::fileio_close): New.
9801 (remote_hostio_readlink, remote_hostio_fstat)
9802 (remote_filesystem_is_local, remote_can_execute_reverse)
9803 (remote_supports_non_stop, remote_supports_disable_randomization)
9804 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9805 (remote_supports_enable_disable_tracepoint)
9806 (remote_supports_string_tracing)
9807 (remote_can_run_breakpoint_commands, remote_trace_init)
9808 (remote_download_tracepoint, remote_can_download_tracepoint)
9809 (remote_download_trace_state_variable, remote_enable_tracepoint)
9810 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9811 (remote_trace_start, remote_get_trace_status)
9812 (remote_get_tracepoint_status, remote_trace_stop)
9813 (remote_trace_find, remote_get_trace_state_variable_value)
9814 (remote_save_trace_data, remote_get_raw_trace_data)
9815 (remote_set_disconnected_tracing, remote_core_of_thread)
9816 (remote_set_circular_trace_buffer, remote_traceframe_info)
9817 (remote_get_min_fast_tracepoint_insn_len)
9818 (remote_set_trace_buffer_size, remote_set_trace_notes)
9819 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9820 (remote_disable_btrace, remote_teardown_btrace)
9821 (remote_read_btrace, remote_btrace_conf)
9822 (remote_augmented_libraries_svr4_read, remote_load)
9823 (remote_pid_to_exec_file, remote_can_do_single_step)
9824 (remote_execution_direction, remote_thread_handle_to_thread_info):
9825 Refactor as methods of remote_target.
9826 (init_remote_ops, init_extended_remote_ops): Delete.
9827 (remote_can_async_p, remote_is_async_p, remote_async)
9828 (remote_thread_events, remote_upload_tracepoints)
9829 (remote_upload_trace_state_variables): Refactor as methods of
9830 remote_target.
9831 (_initialize_remote): Remove references to init_remote_ops and
9832 init_extended_remote_ops.
9833
9834 * remote-sim.c (gdbsim_target): New class.
9835 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9836 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9837 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9838 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9839 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9840 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9841 Refactor as methods of gdbsim_target.
9842 (gdbsim_ops): Now a gdbsim_target.
9843 (init_gdbsim_ops): Delete.
9844 (gdbsim_cntrl_c): Adjust.
9845 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9846
9847 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9848 (the_amd64_linux_nat_target): New.
9849 (amd64_linux_fetch_inferior_registers)
9850 (amd64_linux_store_inferior_registers): Refactor as methods of
9851 amd64_linux_nat_target.
9852 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9853 * i386-linux-nat.c: Don't include "linux-nat.h".
9854 (i386_linux_nat_target): New class.
9855 (the_i386_linux_nat_target): New.
9856 (i386_linux_fetch_inferior_registers)
9857 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9858 as methods of i386_linux_nat_target.
9859 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9860 * inf-child.c (inf_child_ops): Delete.
9861 (inf_child_fetch_inferior_registers)
9862 (inf_child_store_inferior_registers): Delete.
9863 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9864 methods of inf_child_target.
9865 (inf_child_target::supports_terminal_ours)
9866 (inf_child_target::terminal_init)
9867 (inf_child_target::terminal_inferior)
9868 (inf_child_target::terminal_ours_for_output)
9869 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9870 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9871 New.
9872 (inf_child_open, inf_child_disconnect, inf_child_close)
9873 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9874 (inf_child_post_startup_inferior, inf_child_can_run)
9875 (inf_child_pid_to_exec_file): Refactor as methods of
9876 inf_child_target.
9877 (inf_child_follow_fork): Delete.
9878 (inf_child_target::can_create_inferior)
9879 (inf_child_target::can_attach): New.
9880 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9881 (inf_child_target::has_stack, inf_child_target::has_registers)
9882 (inf_child_target::has_execution): New.
9883 (inf_child_fileio_open, inf_child_fileio_pwrite)
9884 (inf_child_fileio_pread, inf_child_fileio_fstat)
9885 (inf_child_fileio_close, inf_child_fileio_unlink)
9886 (inf_child_fileio_readlink, inf_child_use_agent)
9887 (inf_child_can_use_agent): Refactor as methods of
9888 inf_child_target.
9889 (return_zero, inf_child_target): Delete.
9890 (inf_child_target::inf_child_target): New.
9891 * inf-child.h: Include "target.h".
9892 (inf_child_target): Delete function prototype.
9893 (inf_child_target): New class.
9894 (inf_child_open_target, inf_child_mourn_inferior)
9895 (inf_child_maybe_unpush_target): Delete.
9896 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9897 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9898 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9899 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9900 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9901 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9902 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9903 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9904 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9905 methods of inf_ptrace_target.
9906 (inf_ptrace_target): Delete function.
9907 * inf-ptrace.h: Include "inf-child.h".
9908 (inf_ptrace_target): Delete function declaration.
9909 (inf_ptrace_target): New class.
9910 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9911 * linux-nat.c (linux_target): New.
9912 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9913 (linux_nat_target::~linux_nat_target): New.
9914 (linux_child_post_attach, linux_child_post_startup_inferior)
9915 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9916 (linux_child_remove_fork_catchpoint)
9917 (linux_child_insert_vfork_catchpoint)
9918 (linux_child_remove_vfork_catchpoint)
9919 (linux_child_insert_exec_catchpoint)
9920 (linux_child_remove_exec_catchpoint)
9921 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9922 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9923 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9924 (linux_nat_stopped_data_address)
9925 (linux_nat_stopped_by_sw_breakpoint)
9926 (linux_nat_supports_stopped_by_sw_breakpoint)
9927 (linux_nat_stopped_by_hw_breakpoint)
9928 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9929 (linux_nat_kill, linux_nat_mourn_inferior)
9930 (linux_nat_xfer_partial, linux_nat_thread_alive)
9931 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9932 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9933 (linux_child_static_tracepoint_markers_by_strid)
9934 (linux_nat_is_async_p, linux_nat_can_async_p)
9935 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9936 (linux_nat_supports_multi_process)
9937 (linux_nat_supports_disable_randomization, linux_nat_async)
9938 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9939 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9940 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9941 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9942 methods of linux_nat_target.
9943 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9944 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9945 parameter.
9946 (check_stopped_by_watchpoint): Adjust.
9947 (linux_xfer_partial): Delete.
9948 (linux_target_install_ops, linux_target, linux_nat_add_target):
9949 Delete.
9950 (linux_nat_target::linux_nat_target): New.
9951 * linux-nat.h: Include "inf-ptrace.h".
9952 (linux_nat_target): New.
9953 (linux_target, linux_target_install_ops, linux_nat_add_target):
9954 Delete function declarations.
9955 (linux_target): Declare global.
9956 * linux-thread-db.c (thread_db_target): New.
9957 (thread_db_target::thread_db_target): New.
9958 (thread_db_ops): Delete.
9959 (the_thread_db_target): New.
9960 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9961 (thread_db_update_thread_list, thread_db_pid_to_str)
9962 (thread_db_extra_thread_info)
9963 (thread_db_thread_handle_to_thread_info)
9964 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9965 (thread_db_resume): Refactor as methods of thread_db_target.
9966 (init_thread_db_ops): Delete.
9967 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9968 * x86-linux-nat.c: Don't include "linux-nat.h".
9969 (super_post_startup_inferior): Delete.
9970 (x86_linux_nat_target::~x86_linux_nat_target): New.
9971 (x86_linux_child_post_startup_inferior)
9972 (x86_linux_read_description, x86_linux_enable_btrace)
9973 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9974 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9975 methods of x86_linux_nat_target.
9976 (x86_linux_create_target): Delete. Bits folded ...
9977 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9978 pointer.
9979 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9980 (x86_linux_nat_target): New class.
9981 (x86_linux_create_target): Delete.
9982 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9983 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9984 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9985 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9986 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9987 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9988 make extern.
9989 (x86_use_watchpoints): Delete.
9990 * x86-nat.h: Include "breakpoint.h" and "target.h".
9991 (x86_use_watchpoints): Delete.
9992 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9993 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9994 (x86_insert_watchpoint, x86_remove_watchpoint)
9995 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9996 (x86_stopped_by_hw_breakpoint): New declarations.
9997 (x86_nat_target): New template class.
9998
9999 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10000 (the_ppc_linux_nat_target): New.
10001 (ppc_linux_fetch_inferior_registers)
10002 (ppc_linux_can_use_hw_breakpoint)
10003 (ppc_linux_region_ok_for_hw_watchpoint)
10004 (ppc_linux_ranged_break_num_registers)
10005 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10006 (ppc_linux_insert_mask_watchpoint)
10007 (ppc_linux_remove_mask_watchpoint)
10008 (ppc_linux_can_accel_watchpoint_condition)
10009 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10010 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10011 (ppc_linux_watchpoint_addr_within_range)
10012 (ppc_linux_masked_watch_num_registers)
10013 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10014 (ppc_linux_read_description): Refactor as methods of
10015 ppc_linux_nat_target.
10016 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
10017
10018 * procfs.c (procfs_xfer_partial): Delete forward declaration.
10019 (procfs_target): New class.
10020 (the_procfs_target): New.
10021 (procfs_target): Delete function.
10022 (procfs_auxv_parse, procfs_attach, procfs_detach)
10023 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10024 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10025 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10026 (procfs_create_inferior, procfs_update_thread_list)
10027 (procfs_thread_alive, procfs_pid_to_str)
10028 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10029 (procfs_stopped_data_address, procfs_insert_watchpoint)
10030 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10031 (proc_find_memory_regions, procfs_info_proc)
10032 (procfs_make_note_section): Refactor as methods of procfs_target.
10033 (_initialize_procfs): Adjust.
10034 * sol-thread.c (sol_thread_target): New class.
10035 (sol_thread_ops): Now a sol_thread_target.
10036 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10037 (sol_thread_fetch_registers, sol_thread_store_registers)
10038 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10039 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10040 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10041 (init_sol_thread_ops): Delete.
10042 (_initialize_sol_thread): Adjust. Remove references to
10043 init_sol_thread_ops and complete_target_initialization.
10044
10045 * windows-nat.c (windows_nat_target): New class.
10046 (windows_fetch_inferior_registers)
10047 (windows_store_inferior_registers, windows_resume, windows_wait)
10048 (windows_attach, windows_detach, windows_pid_to_exec_file)
10049 (windows_files_info, windows_create_inferior)
10050 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10051 (windows_close, windows_pid_to_str, windows_xfer_partial)
10052 (windows_get_tib_address, windows_get_ada_task_ptid)
10053 (windows_thread_name, windows_thread_alive): Refactor as
10054 windows_nat_target methods.
10055 (do_initial_windows_stuff): Adjust.
10056 (windows_target): Delete function.
10057 (_initialize_windows_nat): Adjust.
10058
10059 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
10060 (darwin_mourn_inferior, darwin_kill_inferior)
10061 (darwin_create_inferior, darwin_attach, darwin_detach)
10062 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
10063 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
10064 (darwin_supports_multi_process): Refactor as darwin_nat_target
10065 methods.
10066 (darwin_resume_to, darwin_files_info): Delete.
10067 (_initialize_darwin_inferior): Rename to ...
10068 (_initialize_darwin_nat): ... this. Adjust to C++ification.
10069 * darwin-nat.h: Include "inf-child.h".
10070 (darwin_nat_target): New class.
10071 (darwin_complete_target): Delete.
10072 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
10073 (darwin_target): New.
10074 (i386_darwin_fetch_inferior_registers)
10075 (i386_darwin_store_inferior_registers): Refactor as methods of
10076 darwin_nat_target.
10077 (darwin_complete_target): Delete, with ...
10078 (_initialize_i386_darwin_nat): ... bits factored out here.
10079
10080 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
10081 (the_alpha_linux_nat_target): New.
10082 (alpha_linux_register_u_offset): Refactor as
10083 alpha_linux_nat_target method.
10084 (_initialize_alpha_linux_nat): Adjust.
10085 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
10086 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10087 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
10088 methods of linux_nat_trad_target.
10089 (linux_trad_target): Delete.
10090 * linux-nat-trad.h (linux_trad_target): Delete function.
10091 (linux_nat_trad_target): New class.
10092 * mips-linux-nat.c (mips_linux_nat_target): New class.
10093 (super_fetch_registers, super_store_registers, super_close):
10094 Delete.
10095 (the_mips_linux_nat_target): New.
10096 (mips64_linux_regsets_fetch_registers)
10097 (mips64_linux_regsets_store_registers)
10098 (mips64_linux_fetch_registers, mips64_linux_store_registers)
10099 (mips_linux_register_u_offset, mips_linux_read_description)
10100 (mips_linux_can_use_hw_breakpoint)
10101 (mips_linux_stopped_by_watchpoint)
10102 (mips_linux_stopped_data_address)
10103 (mips_linux_region_ok_for_hw_watchpoint)
10104 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10105 (mips_linux_close): Refactor as methods of mips_linux_nat.
10106 (_initialize_mips_linux_nat): Adjust to C++ification.
10107
10108 * aix-thread.c (aix_thread_target): New class.
10109 (aix_thread_ops): Now an aix_thread_target.
10110 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10111 (aix_thread_fetch_registers, aix_thread_store_registers)
10112 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10113 (aix_thread_thread_alive, aix_thread_pid_to_str)
10114 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
10115 Refactor as methods of aix_thread_target.
10116 (init_aix_thread_ops): Delete.
10117 (_initialize_aix_thread): Remove references to init_aix_thread_ops
10118 and complete_target_initialization.
10119 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
10120 (rs6000_nat_target): New class.
10121 (the_rs6000_nat_target): New.
10122 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
10123 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
10124 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
10125 (super_create_inferior): Delete.
10126 (_initialize_rs6000_nat): Adjust to C++ification.
10127
10128 * arm-linux-nat.c (arm_linux_nat_target): New class.
10129 (the_arm_linux_nat_target): New.
10130 (arm_linux_fetch_inferior_registers)
10131 (arm_linux_store_inferior_registers, arm_linux_read_description)
10132 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
10133 (arm_linux_remove_hw_breakpoint)
10134 (arm_linux_region_ok_for_hw_watchpoint)
10135 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
10136 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
10137 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
10138 arm_linux_nat_target.
10139 (_initialize_arm_linux_nat): Adjust to C++ification.
10140
10141 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
10142 (the_aarch64_linux_nat_target): New.
10143 (aarch64_linux_fetch_inferior_registers)
10144 (aarch64_linux_store_inferior_registers)
10145 (aarch64_linux_child_post_startup_inferior)
10146 (aarch64_linux_read_description)
10147 (aarch64_linux_can_use_hw_breakpoint)
10148 (aarch64_linux_insert_hw_breakpoint)
10149 (aarch64_linux_remove_hw_breakpoint)
10150 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
10151 (aarch64_linux_region_ok_for_hw_watchpoint)
10152 (aarch64_linux_stopped_data_address)
10153 (aarch64_linux_stopped_by_watchpoint)
10154 (aarch64_linux_watchpoint_addr_within_range)
10155 (aarch64_linux_can_do_single_step): Refactor as methods of
10156 aarch64_linux_nat_target.
10157 (super_post_startup_inferior): Delete.
10158 (_initialize_aarch64_linux_nat): Adjust to C++ification.
10159
10160 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10161 (the_hppa_linux_nat_target): New.
10162 (hppa_linux_fetch_inferior_registers)
10163 (hppa_linux_store_inferior_registers): Refactor as methods of
10164 hppa_linux_nat_target.
10165 (_initialize_hppa_linux_nat): Adjust to C++ification.
10166
10167 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10168 (the_ia64_linux_nat_target): New.
10169 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10170 (ia64_linux_stopped_data_address)
10171 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10172 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10173 ia64_linux_nat_target methods.
10174 (super_xfer_partial): Delete.
10175 (_initialize_ia64_linux_nat): Adjust to C++ification.
10176
10177 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10178 (the_m32r_linux_nat_target): New.
10179 (m32r_linux_fetch_inferior_registers)
10180 (m32r_linux_store_inferior_registers): Refactor as
10181 m32r_linux_nat_target methods.
10182 (_initialize_m32r_linux_nat): Adjust to C++ification.
10183
10184 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10185 (the_m68k_linux_nat_target): New.
10186 (m68k_linux_fetch_inferior_registers)
10187 (m68k_linux_store_inferior_registers): Refactor as
10188 m68k_linux_nat_target methods.
10189 (_initialize_m68k_linux_nat): Adjust to C++ification.
10190
10191 * s390-linux-nat.c (s390_linux_nat_target): New class.
10192 (the_s390_linux_nat_target): New.
10193 (s390_linux_fetch_inferior_registers)
10194 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10195 (s390_insert_watchpoint, s390_remove_watchpoint)
10196 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10197 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10198 (s390_auxv_parse, s390_read_description): Refactor as methods of
10199 s390_linux_nat_target.
10200 (_initialize_s390_nat): Adjust to C++ification.
10201
10202 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10203 (the_sparc_linux_nat_target): New.
10204 (_initialize_sparc_linux_nat): Adjust to C++ification.
10205 * sparc-nat.c (sparc_fetch_inferior_registers)
10206 (sparc_store_inferior_registers): Remove target_ops parameter.
10207 * sparc-nat.h (sparc_fetch_inferior_registers)
10208 (sparc_store_inferior_registers): Remove target_ops parameter.
10209 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10210 (the_sparc64_linux_nat_target): New.
10211 (_initialize_sparc64_linux_nat): Adjust to C++ification.
10212
10213 * spu-linux-nat.c (spu_linux_nat_target): New class.
10214 (the_spu_linux_nat_target): New.
10215 (spu_child_post_startup_inferior, spu_child_post_attach)
10216 (spu_child_wait, spu_fetch_inferior_registers)
10217 (spu_store_inferior_registers, spu_xfer_partial)
10218 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10219 methods.
10220 (_initialize_spu_nat): Adjust to C++ification.
10221
10222 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10223 (the_tilegx_linux_nat_target): New.
10224 (fetch_inferior_registers, store_inferior_registers):
10225 Refactor as methods.
10226 (_initialize_tile_linux_nat): Adjust to C++ification.
10227
10228 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10229 (the_xtensa_linux_nat_target): New.
10230 (xtensa_linux_fetch_inferior_registers)
10231 (xtensa_linux_store_inferior_registers): Refactor as
10232 xtensa_linux_nat_target methods.
10233 (_initialize_xtensa_linux_nat): Adjust to C++ification.
10234
10235 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10236 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10237 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10238 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10239 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10240 (fbsd_stopped_by_sw_breakpoint)
10241 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10242 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10243 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10244 (fbsd_post_startup_inferior, fbsd_post_attach)
10245 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10246 (fbsd_set_syscall_catchpoint)
10247 (super_xfer_partial, super_resume, super_wait)
10248 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10249 (fbsd_handle_debug_trap): Remove target_ops parameter.
10250 (fbsd_nat_add_target): Delete.
10251 * fbsd-nat.h: Include "inf-ptrace.h".
10252 (fbsd_nat_add_target): Delete.
10253 (USE_SIGTRAP_SIGINFO): Define.
10254 (fbsd_nat_target): New class.
10255
10256 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10257 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10258 (amd64bsd_target): Delete.
10259 * amd64-bsd-nat.h: New file.
10260 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10261 "x86-bsd-nat.h".
10262 (amd64_fbsd_nat_target): New class.
10263 (the_amd64_fbsd_nat_target): New.
10264 (amd64fbsd_read_description): Refactor as method of
10265 amd64_fbsd_nat_target.
10266 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10267 (_initialize_amd64fbsd_nat): Adjust to C++ification.
10268 * amd64-nat.h (amd64bsd_target): Delete function declaration.
10269 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10270 (i386bsd_store_inferior_registers): Remove target_ops parameter.
10271 (i386bsd_target): Delete.
10272 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
10273 (i386bsd_fetch_inferior_registers)
10274 (i386bsd_store_inferior_registers): Declare.
10275 (i386_bsd_nat_target): New class.
10276 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
10277 (the_i386_fbsd_nat_target): New.
10278 (i386fbsd_resume, i386fbsd_read_description): Refactor as
10279 i386_fbsd_nat_target methods.
10280 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10281 (_initialize_i386fbsd_nat): Adjust to C++ification.
10282 * x86-bsd-nat.c (super_mourn_inferior): Delete.
10283 (x86bsd_mourn_inferior, x86bsd_target): Delete.
10284 (_initialize_x86_bsd_nat): Adjust to C++ification.
10285 * x86-bsd-nat.h: Include "x86-nat.h".
10286 (x86bsd_target): Delete declaration.
10287 (x86bsd_nat_target): New class.
10288
10289 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
10290 (the_aarch64_fbsd_nat_target): New.
10291 (aarch64_fbsd_fetch_inferior_registers)
10292 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
10293 aarch64_fbsd_nat_target.
10294 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
10295 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
10296 (the_alpha_bsd_nat_target): New.
10297 (alphabsd_fetch_inferior_registers)
10298 (alphabsd_store_inferior_registers): Refactor as
10299 alpha_bsd_nat_target methods.
10300 (_initialize_alphabsd_nat): Refactor as methods of
10301 alpha_bsd_nat_target.
10302 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
10303 (the_amd64_nbsd_nat_target): New.
10304 (_initialize_amd64nbsd_nat): Adjust to C++ification.
10305 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
10306 (the_amd64_obsd_nat_target): New.
10307 (_initialize_amd64obsd_nat): Adjust to C++ification.
10308 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
10309 (the_arm_fbsd_nat_target): New.
10310 (arm_fbsd_fetch_inferior_registers)
10311 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
10312 (_initialize_arm_fbsd_nat): Refactor as methods of
10313 arm_fbsd_nat_target.
10314 (_initialize_arm_fbsd_nat): Adjust to C++ification.
10315 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
10316 (the_arm_netbsd_nat_target): New.
10317 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
10318 arm_netbsd_nat_target.
10319 (_initialize_arm_netbsd_nat): Adjust to C++ification.
10320 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
10321 (the_hppa_nbsd_nat_target): New.
10322 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
10323 hppa_nbsd_nat_target methods.
10324 (_initialize_hppanbsd_nat): Adjust to C++ification.
10325 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
10326 (the_hppa_obsd_nat_target): New.
10327 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
10328 methods of hppa_obsd_nat_target.
10329 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
10330 add_target.
10331 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
10332 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
10333 add_target.
10334 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
10335 (_initialize_i386obsd_nat): Use add_target.
10336 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
10337 (the_m68k_bsd_nat_target): New.
10338 (m68kbsd_fetch_inferior_registers)
10339 (m68kbsd_store_inferior_registers): Refactor as methods of
10340 m68k_bsd_nat_target.
10341 (_initialize_m68kbsd_nat): Adjust to C++ification.
10342 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
10343 (the_mips_fbsd_nat_target): New.
10344 (mips_fbsd_fetch_inferior_registers)
10345 (mips_fbsd_store_inferior_registers): Refactor as methods of
10346 mips_fbsd_nat_target.
10347 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
10348 add_target.
10349 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
10350 (the_mips_nbsd_nat_target): New.
10351 (mipsnbsd_fetch_inferior_registers)
10352 (mipsnbsd_store_inferior_registers): Refactor as methods of
10353 mips_nbsd_nat_target.
10354 (_initialize_mipsnbsd_nat): Adjust to C++ification.
10355 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
10356 (the_mips64_obsd_nat_target): New.
10357 (mips64obsd_fetch_inferior_registers)
10358 (mips64obsd_store_inferior_registers): Refactor as methods of
10359 mips64_obsd_nat_target.
10360 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
10361 add_target.
10362 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
10363 nbsd_nat_target.
10364 * nbsd-nat.h: Include "inf-ptrace.h".
10365 (nbsd_nat_target): New class.
10366 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
10367 (obsd_wait): Refactor as methods of obsd_nat_target.
10368 (obsd_add_target): Delete.
10369 * obsd-nat.h: Include "inf-ptrace.h".
10370 (obsd_nat_target): New class.
10371 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
10372 (the_ppc_fbsd_nat_target): New.
10373 (ppcfbsd_fetch_inferior_registers)
10374 (ppcfbsd_store_inferior_registers): Refactor as methods of
10375 ppc_fbsd_nat_target.
10376 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
10377 add_target.
10378 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
10379 (the_ppc_nbsd_nat_target): New.
10380 (ppcnbsd_fetch_inferior_registers)
10381 (ppcnbsd_store_inferior_registers): Refactor as methods of
10382 ppc_nbsd_nat_target.
10383 (_initialize_ppcnbsd_nat): Adjust to C++ification.
10384 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
10385 (the_ppc_obsd_nat_target): New.
10386 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
10387 methods of ppc_obsd_nat_target.
10388 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
10389 add_target.
10390 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
10391 (the_sh_nbsd_nat_target): New.
10392 (shnbsd_fetch_inferior_registers)
10393 (shnbsd_store_inferior_registers): Refactor as methods of
10394 sh_nbsd_nat_target.
10395 (_initialize_shnbsd_nat): Adjust to C++ification.
10396 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
10397 (inf_ptrace_xfer_partial): Delete.
10398 (sparc_xfer_partial, sparc_target): Delete.
10399 * sparc-nat.h (sparc_fetch_inferior_registers)
10400 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
10401 (sparc_target): Delete function declaration.
10402 (sparc_target): New template class.
10403 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
10404 (_initialize_sparcnbsd_nat): Adjust to C++ification.
10405 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
10406 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
10407 add_target.
10408 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
10409 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
10410 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
10411 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
10412 add_target.
10413 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
10414 (the_vax_bsd_nat_target): New.
10415 (vaxbsd_fetch_inferior_registers)
10416 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
10417 methods.
10418 (_initialize_vaxbsd_nat): Adjust to C++ification.
10419
10420 * bsd-kvm.c (bsd_kvm_target): New class.
10421 (bsd_kvm_ops): Now a bsd_kvm_target.
10422 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
10423 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
10424 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
10425 bsd_kvm_target.
10426 (bsd_kvm_return_one): Delete.
10427 (bsd_kvm_add_target): Adjust to C++ification.
10428
10429 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
10430 (nto_procfs_target_procfs): New classes.
10431 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
10432 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
10433 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
10434 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
10435 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
10436 (procfs_remove_hw_breakpoint, procfs_resume)
10437 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
10438 (procfs_kill_inferior, procfs_store_registers)
10439 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
10440 as methods of nto_procfs_target.
10441 (nto_procfs_ops): Now an nto_procfs_target_procfs.
10442 (nto_native_ops): Delete.
10443 (procfs_open, procfs_native_open): Delete.
10444 (nto_native_ops): Now an nto_procfs_target_native.
10445 (init_procfs_targets): Adjust to C++ification.
10446 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
10447 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
10448 Refactor as methods of nto_procfs_target.
10449
10450 * go32-nat.c (go32_nat_target): New class.
10451 (the_go32_nat_target): New.
10452 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
10453 (go32_store_registers, go32_xfer_partial, go32_files_info)
10454 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
10455 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
10456 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
10457 (go32_pid_to_str): Refactor as methods of go32_nat_target.
10458 (go32_target): Delete.
10459 (_initialize_go32_nat): Adjust to C++ification.
10460
10461 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
10462 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
10463 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
10464 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
10465 gnu_nat_target.
10466 (gnu_target): Delete.
10467 * gnu-nat.h (gnu_target): Delete.
10468 (gnu_nat_target): New class.
10469 * i386-gnu-nat.c (gnu_base_target): New.
10470 (i386_gnu_nat_target): New class.
10471 (the_i386_gnu_nat_target): New.
10472 (_initialize_i386gnu_nat): Adjust to C++ification.
10473
3fffc070
PA
104742018-05-02 Pedro Alves <palves@redhat.com>
10475
10476 * bfd-target.c (target_bfd_xclose): Rename to ...
10477 (target_bfd_close): ... this.
10478 (target_bfd_reopen): Adjust.
10479 * target.c (target_close): Remove references to to_xclose.
10480 * target.h (target_ops::to_xclose): Delete.
10481 (target_ops::to_close): Update comments.
10482
6798487f
PA
104832018-05-02 Pedro Alves <palves@redhat.com>
10484
10485 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
10486 "linux-nat.h".
10487 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
10488 * inf-ptrace.c (inf_ptrace_register_u_offset)
10489 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10490 (inf_ptrace_store_register, inf_ptrace_store_registers)
10491 (inf_ptrace_trad_target): Move to ...
10492 * linux-nat-trad.c: ... this new file.
10493 * linux-nat-trad.h: New file.
10494 * linux-nat.c (linux_target_install_ops): Make extern.
10495 (linux_trad_target): Delete.
10496 * linux-nat.h (linux_trad_target): Delete declaration.
10497 (linux_target_install_ops): Declare.
10498 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
10499 "linux-nat.h".
10500
c1955e17
PA
105012018-05-02 Pedro Alves <palves@redhat.com>
10502
10503 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10504 procfs_target/add_target here.
10505 * procfs.c (procfs_target): Make static.
10506 (_initialize_procfs): Call add_target here.
10507 * procfs.h (struct target_ops): Remove forward declaration.
10508 (procfs_target): Remove declaration.
10509 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
10510
b5c8fcb1
PA
105112018-05-02 Pedro Alves <palves@redhat.com>
10512
10513 * procfs.c (procfs_stopped_by_watchpoint)
10514 (procfs_insert_watchpoint, procfs_remove_watchpoint)
10515 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
10516 Forward declare.
10517 (procfs_use_watchpoints): Delete, move contents...
10518 (procfs_target): ... here.
10519 * procfs.h (procfs_use_watchpoints): Delete declaration.
10520 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10521 procfs_use_watchpoints.
10522 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
10523 procfs_use_watchpoints.
10524
0489430a
TT
105252018-05-02 Tom Tromey <tom@tromey.com>
10526
10527 PR python/20084:
10528 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
10529 and var_zuinteger_unlimited.
10530 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
10531 and PARAM_ZUINTEGER_UNLIMITED.
10532 (set_parameter_value): Handle var_zuinteger and
10533 var_zuinteger_unlimited.
10534 (add_setshow_generic): Likewise.
10535 (parmpy_init): Likewise.
10536
1632f8ba
DR
105372018-04-28 Dan Robertson <danlrobertson89@gmail.com>
10538
10539 PR rust/23124
10540 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
10541 pointer is not null before dereferencing it.
10542
76761936
TT
105432018-04-30 Tom Tromey <tom@tromey.com>
10544
10545 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
10546 is_mi_like_p.
10547
2d33446d
TT
105482018-04-30 Tom Tromey <tom@tromey.com>
10549
10550 * breakpoint.c (mention): Remove use of is_mi_like_p.
10551 (print_mention_ranged_breakpoint): Likewise.
10552 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
10553 of is_mi_like_p.
10554
f3c6abab
TT
105552018-04-30 Tom Tromey <tom@tromey.com>
10556
10557 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
10558
40c03530
TT
105592018-04-30 Tom Tromey <tom@tromey.com>
10560
10561 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
10562 (info_spu_event_command): Remove some uses of is_mi_like_p.
10563
2038b7fd
TT
105642018-04-30 Tom Tromey <tom@tromey.com>
10565
10566 * python/py-framefilter.c (py_print_single_arg)
10567 (enumerate_locals, py_print_args, py_print_frame): Remove some
10568 uses of is_mi_like_p.
10569
4904c3c6
TT
105702018-04-30 Tom Tromey <tom@tromey.com>
10571
10572 * ui-out.c: Update.
10573 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
10574 * ui-out.h (ui_out::is_mi_like_p): Now const.
10575 (ui_out::do_is_mi_like_p): Now const.
10576 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
10577
7c66fffc
TT
105782018-04-30 Tom Tromey <tom@tromey.com>
10579
10580 * varobj.c (varobj_set_visualizer): Use new_reference.
10581 * python/python.c (gdbpy_decode_line): Use new_reference.
10582 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
10583 new_reference.
10584
bbfa6f00
TT
105852018-04-30 Tom Tromey <tom@tromey.com>
10586
10587 * varobj.c (install_new_value): Use new_reference.
10588 * value.h (value_incref): Return void. Swap intro comment with
10589 value_decref.
10590 * value.c (set_value_parent): Use new_reference.
10591 (value_incref): Return void. Update intro comment.
10592 (release_value): Use new_reference.
10593 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
10594
1831a9f9
TT
105952018-04-30 Tom Tromey <tom@tromey.com>
10596
10597 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
10598 * gdb_bfd.h (new_bfd_ref): Remove.
10599 (gdb_bfd_open): Update comment.
10600 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10601 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
10602 (gdb_bfd_fdopenr): Use new_reference.
10603 * exec.c (exec_file_attach): Use new_reference.
10604
7c1b5f3d
TT
106052018-04-30 Tom Tromey <tom@tromey.com>
10606
10607 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
10608 method.
10609
e11fb955
TT
106102018-04-30 Tom Tromey <tom@tromey.com>
10611
10612 * jit.c (jit_read_code_entry): Use type_align.
10613 * i386-tdep.c (i386_gdbarch_init): Don't call
10614 set_gdbarch_long_long_align_bit.
10615 * gdbarch.sh: Remove long_long_align_bit.
10616 * gdbarch.c, gdbarch.h: Rebuild.
10617 * arc-tdep.c (arc_type_align): New function.
10618 (arc_gdbarch_init): Use arc_type_align. Don't call
10619 set_gdbarch_long_long_align_bit.
10620
2fff16dd
TT
106212018-04-30 Tom Tromey <tom@tromey.com>
10622
10623 * rust-lang.c (rust_type_alignment): Remove.
10624 (rust_composite_type): Use type_align.
10625
6d7bb824
TT
106262018-04-30 Tom Tromey <tom@tromey.com>
10627
10628 * NEWS: Mention Type.align.
10629 * python/py-type.c (typy_get_alignof): New function.
10630 (type_object_getset): Add "alignof".
10631
007e1530
TT
106322018-04-30 Tom Tromey <tom@tromey.com>
10633
10634 PR exp/17095:
10635 * NEWS: Update.
10636 * std-operator.def (UNOP_ALIGNOF): New operator.
10637 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10638 New.
10639 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10640 * c-lang.c (c_op_print_tab): Add alignof.
10641 * c-exp.y (ALIGNOF): New token.
10642 (exp): Add "ALIGNOF" production.
10643 (ident_tokens): Add _Alignof and alignof.
10644
2b4424c3
TT
106452018-04-30 Tom Tromey <tom@tromey.com>
10646
10647 * i386-tdep.c (i386_type_align): New function.
10648 (i386_gdbarch_init): Update.
10649 * gdbarch.sh (type_align): New method.
10650 * gdbarch.c, gdbarch.h: Rebuild.
10651 * arch-utils.h (default_type_align): Declare.
10652 * arch-utils.c (default_type_align): New function.
10653 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10654 (struct type) <align_log2>: New field.
10655 <instance_flags>: Now a bitfield.
10656 (TYPE_RAW_ALIGN): New macro.
10657 (type_align, type_raw_align, set_type_align): Declare.
10658 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10659 functions.
10660 * dwarf2read.c (quirk_rust_enum): Set type alignment.
10661 (get_alignment, maybe_set_alignment): New functions.
10662 (read_structure_type, read_enumeration_type, read_array_type)
10663 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10664 (read_subrange_type, read_base_type): Set type alignment.
10665
d33bc52e
SM
106662018-04-30 Simon Marchi <simon.marchi@ericsson.com>
10667
10668 * dwarf2read.c (read_index_from_section): Use bool.
10669
e28b63a9
FG
106702018-04-29 Fabian Groffen <grobian@gentoo.org>
10671
10672 PR gdb/22950
10673 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10674 with #ifdef.
10675
cd8c76e4
JR
106762018-04-29 John Reiser <jreiser@BitWagon.com>
10677
10678 PR build/22873
10679 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10680 last step, and do it atomically.
10681
476d250e
AO
106822018-04-27 Alexandre Oliva <aoliva@redhat.com>
10683
10684 * compile/compile-c-types.c (convert_int, convert_float):
10685 Update for C FE v1.
10686
6873858b
TT
106872018-04-27 Tom Tromey <tom@tromey.com>
10688
10689 PR rust/22545:
10690 * rust-lang.c (rust_inclusive_range_type_p): New function.
10691 (rust_range): Handle inclusive ranges.
10692 (rust_compute_range): Likewise.
10693 * rust-exp.y (struct rust_op) <inclusive>: New field.
10694 (DOTDOTEQ): New constant.
10695 (range_expr): Add "..=" productions.
10696 (operator_tokens): Add "..=" token.
10697 (ast_range): Add "inclusive" parameter.
10698 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10699 ranges.
10700 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10701 bounds values.
10702 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10703 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10704 Update comments.
10705 * expprint.c (print_subexp_standard): Handle new bounds values.
10706 (dump_subexp_body_standard): Likewise.
10707
632e107b
TT
107082018-04-27 Tom Tromey <tom@tromey.com>
10709
10710 * configure: Rebuild.
10711 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10712 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10713 "OVERRIDE".
10714 (class symbol_needs_eval_context): Likewise.
10715 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10716 (mock_mapped_index::symbol_name_at): Use "override". Remove
10717 "virtual".
10718 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10719 "override".
10720 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10721 * aarch64-tdep.c (instruction_reader::read): Use "override".
10722 (instruction_reader_test::read): Likewise.
10723 * arm-tdep.c (instruction_reader::read): Use "override".
10724 (instruction_reader_thumb::read): Likewise.
10725
b75abf5b
AK
107262018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10727
10728 PR remote/9665
10729 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10730 instead of remote_send.
10731 (remote_send): Remove.
10732
79188d8d
PA
107332018-04-26 Pedro Alves <palves@redhat.com>
10734
10735 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10736 find_function_start_sal instead of find_pc_line.
10737
f50776aa
PA
107382018-04-26 Pedro Alves <palves@redhat.com>
10739
10740 * breakpoint.c (set_breakpoint_location_function): Handle
10741 mst_data_gnu_ifunc.
10742 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10743 * elfread.c (elf_symtab_read): Give data symbols with
10744 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10745 (elf_rel_plt_read): Update comment.
10746 * linespec.c (convert_linespec_to_sals): Handle
10747 mst_data_gnu_ifunc.
10748 (minsym_found): Handle mst_data_gnu_ifunc.
10749 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10750 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10751 * parse.c (find_minsym_type_and_address): Handle
10752 mst_data_gnu_ifunc.
10753 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10754 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10755 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10756 comment.
10757 <mst_data_gnu_ifunc>: New enumerator.
10758
20944a6e
PA
107592018-04-26 Pedro Alves <palves@redhat.com>
10760
10761 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10762 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10763 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10764 Handle it.
10765 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10766 (lookup_minimal_symbol_by_pc): Adjust.
10767 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10768 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10769 * minsyms.h (lookup_msym_prefer): New enum.
10770 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10771 parameter by a lookup_msym_prefer parameter.
10772
1adeb822
PA
107732018-04-26 Pedro Alves <palves@redhat.com>
10774
10775 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10776 ends in "@plt" instead of looking at the symbol's section.
10777
a0aca7b0
PA
107782018-04-26 Pedro Alves <palves@redhat.com>
10779
10780 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10781 all references.
10782 (find_pc_partial_function_gnu_ifunc): Rename to ...
10783 (find_pc_partial_function): ... this, and remove references to
10784 'is_gnu_ifunc_p'.
10785 (find_pc_partial_function): Delete old implementation.
10786 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10787
76af0f26
PA
107882018-04-26 Pedro Alves <palves@redhat.com>
10789
10790 * linespec.c (struct bound_minimal_symbol_search_key): New.
10791 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10792 skip first line if we found a GNU ifunc minimal symbol by name.
10793 (compare_msymbols): Change parameters to work with a destructured
10794 lhs minsym.
10795 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10796 functions.
10797
3467ec66
PA
107982018-04-26 Pedro Alves <palves@redhat.com>
10799
10800 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10801 ifunc targets here. Instead, if we have an ifunc minsym, use its
10802 address/name.
10803 (add_location_to_breakpoint): Store the minsym and the objfile in
10804 the breakpoint location.
10805 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10806 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10807 Record the minsym in the sal.
10808 * symtab.h (symtab_and_line) <msymbol>: New field.
10809
28f4fa4d
PA
108102018-04-26 Pedro Alves <palves@redhat.com>
10811
10812 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10813 unless we actually resolved the ifunc.
10814
ca31ab1d
PA
108152018-04-26 Pedro Alves <palves@redhat.com>
10816
10817 * c-exp.y (variable production): Prefer ifunc minsyms over
10818 regular function symbols.
10819 * symtab.c (find_gnu_ifunc): New function.
10820 * minsyms.h (lookup_msym_prefer): New enum.
10821 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10822 parameter by a lookup_msym_prefer parameter.
10823 * symtab.h (find_gnu_ifunc): New declaration.
10824
8388016d
PA
108252018-04-26 Pedro Alves <palves@redhat.com>
10826
10827 * blockframe.c (find_gnu_ifunc_target_type): New function.
10828 (find_function_type): New.
10829 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10830 return a value with a memory address.
10831 (eval_call): For calls to GNU ifunc functions, try to find the
10832 type of the target function from the type that the resolver
10833 returns.
10834 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10835 symbols.
10836 * infcall.c (find_function_return_type): Delete.
10837 (find_function_addr): Add 'function_type' parameter. For calls to
10838 GNU ifunc functions, try to find the type of the target function
10839 from the type that the resolver returns, and return it via
10840 FUNCTION_TYPE.
10841 (call_function_by_hand_dummy): Adjust to use the function type
10842 returned by find_function_addr.
10843 (find_function_addr): Add 'function_type' parameter and move
10844 description here.
10845 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10846 declarations.
10847
a376e11d
PA
108482018-04-26 Pedro Alves <palves@redhat.com>
10849
10850 * c-exp.y (variable production): Skip finding an alias for ifunc
10851 symbols.
10852
02e169e2
PA
108532018-04-26 Pedro Alves <palves@redhat.com>
10854
10855 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10856
249b5733
PA
108572018-04-25 Pedro Alves <palves@redhat.com>
10858
10859 * infcmd.c (kill_command): Print the pid as string, not the whole
10860 thread's ptid. Add comment. s/has been killed/killed/ in output
10861 message.
10862 * remote.c (remote_detach_1): Print the pid as string, not the
10863 whole thread's ptid.
10864
f67c0c91
SDJ
108652018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10866 Sergio Durigan Junior <sergiodj@redhat.com>
10867 Pedro Alves <palves@redhat.com>
10868
10869 * infcmd.c (kill_command): Print message when inferior has
10870 been killed.
10871 * inferior.c (print_inferior_events): Remove 'static'. Set as
10872 '1'.
10873 (add_inferior): Improve message printed when
10874 'print_inferior_events' is on.
10875 (exit_inferior): Remove message printed when
10876 'print_inferior_events' is on.
10877 (detach_inferior): Improve message printed when
10878 'print_inferior_events' is on.
10879 (initialize_inferiors): Use 'add_inferior_silent' to set
10880 'current_inferior_'.
10881 * inferior.h (print_inferior_events): Declare here as
10882 'extern'.
10883 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10884 '[Detaching...]' messages when 'print_inferior_events' is on.
10885 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10886 as prefix/suffix for messages. Remove periods. Fix erroneous
10887 'Detaching after fork from child...', replace it by '... from
10888 parent...'.
10889 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10890 prefix/suffix when printing 'Detaching...' messages. Print
10891 them when 'print_inferior_events' is on.
10892 * remote.c (remote_detach_1): Print message when detaching
10893 from inferior and '!is_fork_parent'.
10894
e427af18
TT
108952018-04-24 Tom Tromey <tom@tromey.com>
10896
10897 * cli-out.h: Reindent.
10898
05b1d8d6
TT
108992018-04-24 Tom Tromey <tom@tromey.com>
10900
10901 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10902 (cli_ui_out::do_field_string): Use fputs_filtered.
10903 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10904
a95c7dab
TT
109052018-04-23 Tom Tromey <tom@tromey.com>
10906
10907 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10908 gdb::unique_xmalloc_ptr.
10909
458412c3
TT
109102018-04-23 Tom Tromey <tom@tromey.com>
10911
10912 * configure: Rebuild.
10913
db86b02b
RS
109142018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10915
10916 PR gdb/23095
10917 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10918 prepare_for_testing. Set normal_bp to r_debug_state if target
10919 is bsd.
10920
00aecdcf
PA
109212018-04-21 Pedro Alves <palves@redhat.com>
10922 Rajendra SY <rajendra.sy@gmail.com>
10923
10924 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10925 * remote.c (extended_remote_attach): In all-stop mode, mark the
10926 thread as executing.
10927
224608c3
PW
109282018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10929
10930 * thread.c (thread_apply_all_command): Fix comment.
10931 (thread_command): Fix comment.
10932
3b74854b
AH
109332018-04-10 Alan Hayward <alan.hayward@arm.com>
10934
10935 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10936 parameter.
10937 * features/aarch64-core.c (create_feature_aarch64_core):
10938 Regenerate.
10939 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10940 Likewise.
10941 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10942 Likewise.
10943 * features/i386/32bit-avx512.c
10944 (create_feature_i386_32bit_avx512): Likewise.
10945 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10946 Likewise.
10947 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10948 Likewise.
10949 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10950 Likewise.
10951 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10952 Likewise.
10953 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10954 Likewise.
10955 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10956 Likewise.
10957 * features/i386/64bit-avx512.c
10958 (create_feature_i386_64bit_avx512): Likewise.
10959 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10960 Likewise.
10961 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10962 Likewise.
10963 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10964 Likewise.
10965 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10966 Likewise.
10967 * features/i386/64bit-segments.c
10968 (create_feature_i386_64bit_segments): Likewise.
10969 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10970 Likewise.
10971 * features/i386/x32-core.c
10972 (create_feature_i386_x32_core): Likewise.
10973 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10974 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10975 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10976 * target-descriptions.c: In generated code, don't pass xml
10977 filename.
10978
e98577a9
AH
109792018-04-18 Alan Hayward <alan.hayward@arm.com>
10980
10981 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10982 (print_xml_feature::visit_post): Likewise.
10983 (print_xml_feature::visit): Likewise.
10984 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10985 (print_xml_feature): Add new class.
10986 * regformats/regdat.sh: Null xmltarget on feature targets.
10987 * target-descriptions.c (struct target_desc): Add xmltarget.
10988 (maintenance_check_tdesc_xml_convert): Add unittest function.
10989 (tdesc_get_features_xml): Add function to get xml.
10990 (maintenance_check_xml_descriptions): Test xml generation.
10991 * xml-tdesc.c (string_read_description_xml): Add function.
10992 * xml-tdesc.h (string_read_description_xml): Add declaration.
10993
ad7fc756
AH
109942018-04-18 Alan Hayward <alan.hayward@arm.com>
10995
10996 * features/Makefile: Add feature marker to targets with new style
10997 target descriptions.
10998 * regformats/aarch64.dat: Regenerate.
10999 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11000 * regformats/i386/amd64-avx-linux.dat: Likewise.
11001 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11002 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11003 * regformats/i386/amd64-linux.dat: Likewise.
11004 * regformats/i386/amd64-mpx-linux.dat: Likewise.
11005 * regformats/i386/amd64.dat: Likewise.
11006 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11007 * regformats/i386/i386-avx-linux.dat: Likewise.
11008 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11009 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11010 * regformats/i386/i386-linux.dat: Likewise.
11011 * regformats/i386/i386-mmx-linux.dat: Likewise.
11012 * regformats/i386/i386-mpx-linux.dat: Likewise.
11013 * regformats/i386/i386.dat: Likewise.
11014 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11015 * regformats/i386/x32-avx-linux.dat: Likewise.
11016 * regformats/i386/x32-linux.dat: Likewise.
11017 * regformats/tic6x-c62x-linux.dat: Likewise.
11018 * regformats/tic6x-c64x-linux.dat: Likewise.
11019 * regformats/tic6x-c64xp-linux.dat: Likewise.
11020 * regformats/regdat.sh: Parse feature marker.
11021
d278f585
AH
110222018-04-18 Alan Hayward <alan.hayward@arm.com>
11023
11024 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11025 (tdesc_osabi_name): Likewise.
11026 * target-descriptions.c (tdesc_architecture_name): Add new
11027 function.
11028 (tdesc_osabi_name): Likewise.
11029
eee8a18d
AH
110302018-04-18 Alan Hayward <alan.hayward@arm.com>
11031
11032 * common/tdesc.c (tdesc_predefined_type): Move to here.
11033 (tdesc_named_type): Likewise.
11034 (tdesc_create_vector): Likewise.
11035 (tdesc_create_struct): Likewise.
11036 (tdesc_set_struct_size): Likewise.
11037 (tdesc_create_union): Likewise.
11038 (tdesc_create_flags): Likewise.
11039 (tdesc_create_enum): Likewise.
11040 (tdesc_add_field): Likewise.
11041 (tdesc_add_typed_bitfield): Likewise.
11042 (tdesc_add_bitfield): Likewise.
11043 (tdesc_add_flag): Likewise.
11044 (tdesc_add_enum_value): Likewise.
11045 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11046 (struct tdesc_type_vector): Likewise.
11047 (struct tdesc_type_field): Likewise.
11048 (struct tdesc_type_with_fields): Likewise.
11049 (tdesc_create_enum): Add declaration.
11050 (tdesc_add_typed_bitfield): Likewise.
11051 (tdesc_add_enum_value): Likewise.
11052 * target-descriptions.c (tdesc_type_field): Move from here.
11053 (tdesc_type_builtin): Likewise.
11054 (tdesc_type_vector): Likewise.
11055 (tdesc_type_with_fields): Likewise.
11056 (tdesc_predefined_types): Likewise.
11057 (tdesc_named_type): Likewise.
11058 (tdesc_create_vector): Likewise.
11059 (tdesc_create_struct): Likewise.
11060 (tdesc_set_struct_size): Likewise.
11061 (tdesc_create_union): Likewise.
11062 (tdesc_create_flags): Likewise.
11063 (tdesc_create_enum): Likewise.
11064 (tdesc_add_field): Likewise.
11065 (tdesc_add_typed_bitfield): Likewise.
11066 (tdesc_add_bitfield): Likewise.
11067 (tdesc_add_flag): Likewise.
11068 (tdesc_add_enum_value): Likewise.
11069 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
11070 (tdesc_add_typed_bitfield): Likewise.
11071 (tdesc_add_enum_value): Likewise.
11072
82ec9bc7
AH
110732018-04-18 Alan Hayward <alan.hayward@arm.com>
11074
11075 * common/tdesc.c (tdesc_feature::accept): Move to here.
11076 (tdesc_feature::operator==): Likewise.
11077 (tdesc_create_reg): Likewise.
11078 * common/tdesc.h (tdesc_type_kind): Likewise.
11079 (struct tdesc_type): Likewise.
11080 (struct tdesc_feature): Likewise.
11081 * regformats/regdat.sh: Create a feature.
11082 * target-descriptions.c (tdesc_type_kind): Move from here.
11083 (tdesc_type): Likewise.
11084 (tdesc_type_up): Likewise.
11085 (tdesc_feature): Likewise.
11086 (tdesc_create_reg): Likewise.
11087
ea3e7d71
AH
110882018-04-18 Alan Hayward <alan.hayward@arm.com>
11089
11090 * Makefile.in: Add arch/tdesc.c
11091 * common/tdesc.c: New file.
11092 * common/tdesc.h (tdesc_element_visitor): Move to here.
11093 (tdesc_element): Likewise.
11094 (tdesc_reg): Likewise.
11095 (tdesc_reg_up): Likewise.
11096 * regformats/regdef.h (reg): Add offset to constructors.
11097 * target-descriptions.c (tdesc_element_visitor): Move from here.
11098 (tdesc_element): Likewise.
11099 (tdesc_reg): Likewise.
11100 (tdesc_reg_up): Likewise.
11101
bedda9ac
TT
111022018-04-17 Tom Tromey <tom@tromey.com>
11103
11104 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
11105 discriminant field.
11106
a037790e
TT
111072018-04-17 Tom Tromey <tom@tromey.com>
11108
11109 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
11110
c7dcbf88
AA
111112018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
11112
11113 * symtab.c (print_symbol_info): Skip printing filename and line
11114 number when `last' is NULL.
11115 (symtab_symbol_info): Use empty string instead of NULL for first
11116 invocation of print_symbol_info.
11117 (rbreak_command): Pass NULL to `last' parameter of
11118 print_symbol_info.
11119
07d28c77
SM
111202018-04-16 Simon Marchi <simon.marchi@ericsson.com>
11121
11122 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
11123 instead of nullptr.
11124
8a3de5e1
PA
111252018-04-16 Pedro Alves <palves@redhat.com>
11126
11127 * MAINTAINERS (sh): Remove.
11128 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
11129 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
11130 (ALLDEPFILES): Remove sh64-tdep.c.
11131 * NEWS: Mentions that support for SH-5/SH64 is removed.
11132 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
11133 (sh*-*-openbsd*): Ditto.
11134 (sh64-*-elf*): Remove.
11135 (sh*): Remove.
11136 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
11137 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
11138 * sh-tdep.c: No longer include "sh64-tdep.h".
11139 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
11140 * sh64-tdep.c, sh64-tdep.h: Remove files.
11141
a2a79012
PA
111422018-04-16 Pedro Alves <palves@redhat.com>
11143
11144 * MAINTAINERS: Remove m88k.
11145 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
11146 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
11147 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
11148 * NEWS: Mention that support for m88k was removed.
11149 * configure.host (m88*-*-*): Remove support.
11150 * configure.nat (m88k-*-*): Remove support.
11151 * configure.tgt (m88*-*-openbsd*): Remove.
11152 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11153
eda4efb1
SM
111542018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
11155
11156 * configure.tgt (x86_tobjs): New variable.
11157 (amd64_tobjs, i386_tobjs): Use it.
11158
b744723f
AA
111592018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11160
11161 * symtab.c (print_symbol_info): Precede the symbol definition by
11162 the line number when available.
11163 * NEWS: Advertise this enhancement.
11164
4a4495d6
MM
111652018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11166
11167 * NEWS (New options): announce set/show record btrace cpu.
11168 * btrace.c: Include record-btrace.h.
11169 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11170 the vendor is unknown.
11171 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
11172 Maybe overwrite the btrace configuration's cpu.
11173 (btrace_compute_ftrace): Add cpu parameter. Update callers.
11174 (btrace_fetch): Add cpu parameter. Update callers.
11175 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11176 Maybe overwrite the btrace configuration's cpu. Skip enabling
11177 errata workarounds if the vendor is unknown.
11178 * python/py-record-btrace.c: Include record-btrace.h.
11179 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11180 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11181 * record-btrace.c (record_btrace_cpu_state_kind): New.
11182 (record_btrace_cpu): New.
11183 (set_record_btrace_cpu_cmdlist): New.
11184 (record_btrace_get_cpu): New.
11185 (require_btrace_thread, record_btrace_info)
11186 (record_btrace_resume_thread): Call record_btrace_get_cpu.
11187 (cmd_set_record_btrace_cpu_none): New.
11188 (cmd_set_record_btrace_cpu_auto): New.
11189 (cmd_set_record_btrace_cpu): New.
11190 (cmd_show_record_btrace_cpu): New.
11191 (_initialize_record_btrace): Initialize set/show record btrace cpu
11192 commands.
11193 * record-btrace.h (record_btrace_get_cpu): New.
11194
69f90c75
MM
111952018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11196
11197 * record.c (set_record_command): Fix typo in message.
11198
b85310e1
MM
111992018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11200
11201 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11202
1d509aa6
MM
112032018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11204
11205 * infrun.c (process_event_stop_test): Call
11206 gdbarch_in_indirect_branch_thunk.
11207 * gdbarch.sh (in_indirect_branch_thunk): New.
11208 * gdbarch.c: Regenerated.
11209 * gdbarch.h: Regenerated.
11210 * x86-tdep.h: New.
11211 * x86-tdep.c: New.
11212 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11213 (HFILES_NO_SRCDIR): Add x86-tdep.h.
11214 (ALLDEPFILES): Add x86-tdep.c.
11215 * arch-utils.h (default_in_indirect_branch_thunk): New.
11216 * arch-utils.c (default_in_indirect_branch_thunk): New.
11217 * i386-tdep: Include x86-tdep.h.
11218 (i386_in_indirect_branch_thunk): New.
11219 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11220 function.
11221 * amd64-tdep: Include x86-tdep.h.
11222 (amd64_in_indirect_branch_thunk): New.
11223 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11224
b4be9bfd
JK
112252018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11226
11227 PR gdb/23053
11228 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11229 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11230 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11231 regression.
11232
53d7df28
TT
112332018-04-12 Tom Tromey <tom@tromey.com>
11234
11235 * rust-lang.c (rust_print_struct_def): Remove univariant code.
11236 (rust_evaluate_subexp): Likewise.
11237
70b33f19
PA
112382018-04-12 Pedro Alves <palves@redhat.com>
11239
11240 * procfs.c (procfs_detach): Make forward declaration's prototype
11241 match definition's protototype.
11242 (proc_get_LDT_entry): Remove stale do_cleanups call.
11243
436411b1
PA
112442018-04-12 Pedro Alves <palves@redhat.com>
11245
11246 * target.h (target_ops::to_has_exited): Delete.
11247 (target_has_exited): Delete.
11248 * target-delegates.c: Regenerate.
11249
20db9c52
PA
112502018-04-11 Pedro Alves <palves@redhat.com>
11251
11252 * target.c (fileio_fh_t::t): Add comment.
11253 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11254 (target_fileio_close): Handle a NULL target.
11255 (invalidate_fileio_fh): New.
11256 (target_close): Call it.
11257 * remote.c (remote_hostio_send_command): No longer check whether
11258 remote_desc is open.
11259
5ff79300
PA
112602018-04-11 Pedro Alves <palves@redhat.com>
11261
11262 * target.c (fileio_fh_t): Make it a named struct instead of a
11263 typedef.
11264 (fileio_fh_t::is_closed): New method.
11265 (DEF_VEC_O (fileio_fh_t)): Remove.
11266 (fileio_fhandles): Now a std::vector.
11267 (is_closed_fileio_fh): Delete.
11268 (acquire_fileio_fd): Adjust. Rename parameters.
11269 (release_fileio_fd): Adjust.
11270 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
11271 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11272 (target_fileio_close): Adjust.
11273
6e22e10d
SM
112742018-04-10 Simon Marchi <simon.marchi@ericsson.com>
11275
11276 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
11277 index.
11278
731f534f
PA
112792018-04-10 Pedro Alves <palves@redhat.com>
11280
11281 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
11282 (scoped_finish_thread_state): New class.
11283 * infcmd.c (run_command_1): Use it instead of finish_thread_state
11284 cleanup.
11285 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
11286 (fetch_inferior_event, normal_stop): Likewise.
11287 * thread.c (finish_thread_state_cleanup): Delete.
11288
d5f4488f
SM
112892018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11290 Pedro Alves <palves@redhat.com>
11291
11292 * value.c: Include "selftest.h" and "common/array-view.h".
11293 (struct range) <operator ==>: New.
11294 (test_ranges_contain): New.
11295 (check_ranges_vector): New.
11296 (test_insert_into_bit_range_vector): New.
11297 (_initialize_values): Register selftests.
11298 * common/array-view.h (operator==, operator!=): New.
11299
b24531ed
SM
113002018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11301
11302 * common/gdb_vecs.h (unordered_remove): Add overload that takes
11303 an iterator.
11304 * inline-frame.c: Include <algorithm>.
11305 (struct inline_state): Add constructor.
11306 (inline_state_s): Remove.
11307 (DEF_VEC_O(inline_state_s)): Remove.
11308 (inline_states): Change type to std::vector.
11309 (find_inline_frame_state): Adjust to std::vector.
11310 (allocate_inline_frame_state): Remove.
11311 (clear_inline_frame_state): Adjust to std::vector.
11312 (skip_inline_frames): Adjust to std::vector.
11313
c252925c
SM
113142018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11315
11316 * tracepoint.h (struct trace_state_variable): Add constructor.
11317 <name>: Change type to std::string.
11318 * tracepoint.c (tsv_s): Remove.
11319 (DEF_VEC_O(tsv_s)): Remove.
11320 (tvariables): Change to std::vector.
11321 (create_trace_state_variable): Adjust to std::vector.
11322 (find_trace_state_variable): Likewise.
11323 (find_trace_state_variable_by_number): Likewise.
11324 (delete_trace_state_variable): Likewise.
11325 (trace_variable_command): Adjust to std::string.
11326 (delete_trace_variable_command): Likewise.
11327 (tvariables_info_1): Adjust to std::vector.
11328 (save_trace_state_variables): Likewise.
11329 (start_tracing): Likewise.
11330 (merge_uploaded_trace_state_variables): Adjust to std::vector
11331 and std::string.
11332 * target.h (struct target_ops)
11333 <to_download_trace_state_variable>: Pass reference to
11334 trace_state_variable.
11335 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
11336 * target-delegates.c: Re-generate.
11337 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
11338 (mi_tsv_deleted): Likewise.
11339 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
11340 * remote.c (remote_download_trace_state_variable): Change
11341 pointer to reference and adjust.
11342 * make-target-delegates (parse_argtypes): Handle references.
11343 (write_function_header): Likewise.
11344 (munge_type): Likewise.
11345
c9638d26
SM
113462018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11347
11348 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11349 string_view-selftests.c.
11350 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
11351 testsuite.
11352 * unittests/basic_string_view/cons/char/1.cc: Likewise.
11353 * unittests/basic_string_view/cons/char/2.cc: Likewise.
11354 * unittests/basic_string_view/cons/char/3.cc: Likewise.
11355 * unittests/basic_string_view/element_access/char/1.cc:
11356 Likewise.
11357 * unittests/basic_string_view/element_access/char/empty.cc:
11358 Likewise.
11359 * unittests/basic_string_view/element_access/char/front_back.cc:
11360 Likewise.
11361 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
11362 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
11363 Likewise.
11364 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
11365 Likewise.
11366 * unittests/basic_string_view/modifiers/swap/char/1.cc:
11367 Likewise.
11368 * unittests/basic_string_view/operations/compare/char/1.cc:
11369 Likewise.
11370 * unittests/basic_string_view/operations/compare/char/13650.cc:
11371 Likewise.
11372 * unittests/basic_string_view/operations/copy/char/1.cc:
11373 Likewise.
11374 * unittests/basic_string_view/operations/data/char/1.cc:
11375 Likewise.
11376 * unittests/basic_string_view/operations/find/char/1.cc:
11377 Likewise.
11378 * unittests/basic_string_view/operations/find/char/2.cc:
11379 Likewise.
11380 * unittests/basic_string_view/operations/find/char/3.cc:
11381 Likewise.
11382 * unittests/basic_string_view/operations/find/char/4.cc:
11383 Likewise.
11384 * unittests/basic_string_view/operations/rfind/char/1.cc:
11385 Likewise.
11386 * unittests/basic_string_view/operations/rfind/char/2.cc:
11387 Likewise.
11388 * unittests/basic_string_view/operations/rfind/char/3.cc:
11389 Likewise.
11390 * unittests/basic_string_view/operations/substr/char/1.cc:
11391 Likewise.
11392 * unittests/basic_string_view/operators/char/2.cc: Likewise.
11393 * unittests/string_view-selftests.c: New file.
11394
fdc11678
SM
113952018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11396
11397 * unittests/basic_string_view/capacity/1.cc: New file.
11398 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
11399 * unittests/basic_string_view/cons/char/1.cc: New file.
11400 * unittests/basic_string_view/cons/char/2.cc: New file.
11401 * unittests/basic_string_view/cons/char/3.cc: New file.
11402 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
11403 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
11404 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
11405 * unittests/basic_string_view/element_access/char/1.cc: New file.
11406 * unittests/basic_string_view/element_access/char/2.cc: New file.
11407 * unittests/basic_string_view/element_access/char/empty.cc: New file.
11408 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
11409 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
11410 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
11411 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
11412 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
11413 * unittests/basic_string_view/include.cc: New file.
11414 * unittests/basic_string_view/inserters/char/1.cc: New file.
11415 * unittests/basic_string_view/inserters/char/2.cc: New file.
11416 * unittests/basic_string_view/inserters/char/3.cc: New file.
11417 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
11418 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
11419 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
11420 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
11421 * unittests/basic_string_view/literals/types.cc: New file.
11422 * unittests/basic_string_view/literals/values.cc: New file.
11423 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
11424 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
11425 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
11426 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
11427 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
11428 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
11429 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
11430 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
11431 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
11432 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
11433 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
11434 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
11435 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
11436 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
11437 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
11438 * unittests/basic_string_view/operations/data/char/1.cc: New file.
11439 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
11440 * unittests/basic_string_view/operations/find/char/1.cc: New file.
11441 * unittests/basic_string_view/operations/find/char/2.cc: New file.
11442 * unittests/basic_string_view/operations/find/char/3.cc: New file.
11443 * unittests/basic_string_view/operations/find/char/4.cc: New file.
11444 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
11445 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
11446 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
11447 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
11448 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
11449 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
11450 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
11451 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
11452 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
11453 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
11454 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
11455 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
11456 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
11457 * unittests/basic_string_view/operators/char/2.cc: New file.
11458 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
11459 * unittests/basic_string_view/range_access/char/1.cc: New file.
11460 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
11461 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
11462 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
11463 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
11464 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
11465 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
11466 * unittests/basic_string_view/requirements/typedefs.cc: New file.
11467 * unittests/basic_string_view/typedefs.cc: New file.
11468 * unittests/basic_string_view/types/1.cc: New file.
11469
8345c4a2
SM
114702018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11471
11472 * common/gdb_string_view.h: Remove libstdc++ implementation
11473 details, adjust to gdb reality.
11474 * common/gdb_string_view.tcc: Likewise.
11475 * cli/cli-script.c (struct string_view): Remove.
11476 (user_args) <m_args>: Change element type to gdb::string_view.
11477 (user_args::insert_args): Adjust.
11478
7adcdf08
SM
114792018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11480
11481 * common/gdb_string_view.h: New file.
11482 * common/gdb_string_view.tcc: New file.
11483
41260ac2
SM
114842018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11485
11486 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
11487 * configure: Re-generate.
11488
0bee6dd4
PA
114892018-04-09 Pedro Alves <palves@redhat.com>
11490
11491 * gdbarch.sh: Include "observable.h" instead of "observer.h".
11492 (set_target_gdbarch): Call
11493 gdb::observers::architecture_changed.notify instead of
11494 observer_notify_architecture_changed.
11495
6f14adc5
SM
114962018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11497
11498 * tracepoint.c (struct current_traceframe_cleanup): Remove.
11499 (do_restore_current_traceframe_cleanup): Remove.
11500 (restore_current_traceframe_cleanup_dtor): Remove.
11501 (make_cleanup_restore_current_traceframe): Remove.
11502 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
11503 New.
11504 * tracepoint.h (struct scoped_restore_current_traceframe): New.
11505 * infrun.c (fetch_inferior_event): Use
11506 scoped_restore_current_traceframe.
11507
b2bdb8cf
SM
115082018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11509
11510 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
11511 Remove.
11512 <n_allocated_type_units>: Remove.
11513 <all_type_units>: Change to std::vector.
11514 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11515 to std::vector change.
11516 (dwarf2_per_objfile::get_cutu): Likewise.
11517 (dwarf2_per_objfile::get_tu): Likewise.
11518 (create_signatured_type_table_from_index): Likewise.
11519 (create_signatured_type_table_from_debug_names): Likewise.
11520 (dw2_symtab_iter_next): Likewise.
11521 (dw2_print_stats): Likewise.
11522 (dw2_expand_all_symtabs): Likewise.
11523 (dw2_expand_marked_cus): Likewise.
11524 (dw2_debug_names_iterator::next): Likewise.
11525 (dwarf2_initialize_objfile): Likewise.
11526 (add_signatured_type_cu_to_table): Likewise.
11527 (create_all_type_units): Likewise.
11528 (add_type_unit): Likewise.
11529 (struct tu_abbrev_offset): Add constructor.
11530 (build_type_psymtabs_1): Adjust to std::vector change.
11531 (print_tu_stats): Likewise.
11532 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11533 (write_debug_names): Likewise.
11534
b76e467d
SM
115352018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11536
11537 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
11538 Make an std::vector.
11539 <n_comp_units>: Remove.
11540 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11541 to std::vector change.
11542 (dwarf2_per_objfile::get_cutu): Likewise.
11543 (dwarf2_per_objfile::get_cu): Likewise.
11544 (create_cus_from_index): Likewise.
11545 (create_addrmap_from_index): Likewise.
11546 (create_addrmap_from_aranges): Likewise.
11547 (dwarf2_read_index): Likewise.
11548 (dw2_find_last_source_symtab): Likewise.
11549 (dw2_map_symtabs_matching_filename): Likewise.
11550 (dw2_symtab_iter_next): Likewise.
11551 (dw2_print_stats): Likewise.
11552 (dw2_expand_all_symtabs): Likewise.
11553 (dw2_expand_symtabs_with_fullname): Likewise.
11554 (dw2_expand_marked_cus): Likewise.
11555 (dw2_map_symbol_filenames): Likewise.
11556 (create_cus_from_debug_names): Likewise.
11557 (dwarf2_read_debug_names): Likewise.
11558 (dw2_debug_names_iterator::next): Likewise.
11559 (dwarf2_initialize_objfile): Likewise.
11560 (set_partial_user): Likewise.
11561 (dwarf2_build_psymtabs_hard): Likewise.
11562 (read_comp_units_from_section): Remove arguments, adjust to
11563 std::vector change.
11564 (create_all_comp_units): Adjust to std::vector and
11565 read_comp_units_from_section changes.
11566 (dwarf2_find_containing_comp_unit): Adjust to std::vector
11567 change.
11568 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11569 (psyms_seen_size): Likewise.
11570 (write_gdbindex): Likewise.
11571 (write_debug_names): Likewise.
11572
12359b5e
SM
115732018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11574
11575 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
11576 with dwarf2_per_objfile.
11577 (create_cus_from_index): Likewise.
11578 (create_signatured_type_table_from_index): Likewise.
11579 (dwarf2_read_index): Likewise.
11580 (dwarf2_initialize_objfile): Likewise.
11581 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
11582 per_cu rather than get_dwarf2_per_objfile.
11583
ff4c9fec
SM
115842018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11585
11586 * dwarf2read.h (struct signatured_type): Forward declare.
11587 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
11588 New methods.
11589 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
11590 (dw2_get_cutu): ...this.
11591 (dwarf2_per_objfile::get_cu): Rename from...
11592 (dw2_get_cu): ...this.
11593 (dwarf2_per_objfile::get_tu): New.
11594 (create_addrmap_from_index): Adjust.
11595 (create_addrmap_from_aranges): Adjust.
11596 (dw2_find_last_source_symtab): Adjust.
11597 (dw2_map_symtabs_matching_filename): Adjust.
11598 (dw2_symtab_iter_next): Adjust.
11599 (dw2_print_stats): Adjust.
11600 (dw2_expand_all_symtabs): Adjust.
11601 (dw2_expand_symtabs_with_fullname): Adjust.
11602 (dw2_expand_marked_cus): Adjust.
11603 (dw_expand_symtabs_matching_file_matcher): Adjust.
11604 (dw2_map_symbol_filenames): Adjust.
11605 (dw2_debug_names_iterator::next): Adjust.
11606 (dwarf2_initialize_objfile): Adjust.
11607 (set_partial_user): Adjust.
11608 (dwarf2_build_psymtabs_hard): Adjust.
11609
5ca3fcb6
SM
116102018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11611
11612 * dwarf2read.c (create_signatured_type_table_from_debug_names):
11613 Remove unused variables.
11614 (dw2_map_symtabs_matching_filename): Likewise.
11615 (dwarf2_record_block_ranges): Likewise.
11616 (dwarf2_read_addr_index): Likewise.
11617 (follow_die_offset): Likewise.
11618
b2e586e8
SM
116192018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11620
11621 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
11622 to symbol_file_add_main.
11623
7c4e78cf
SM
116242018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11625
11626 PR mi/22299
11627 * mi/mi-console.c (do_fputc_async_safe): New.
11628 (mi_console_file::write_async_safe): New.
11629 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11630 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11631 New.
11632 * ui-file.c (ui_file::putstrn): Adjust call to
11633 fputstrn_unfiltered.
11634 * utils.c (printchar): Replace do_fputs and do_fprintf
11635 parameters by do_fputc.
11636 (fputstr_filtered): Adjust call to printchar.
11637 (fputstr_unfiltered): Likewise.
11638 (fputstrn_filtered): Likewise.
11639 (fputstrn_unfiltered): Add do_fputc parameter, pass to
11640 printchar.
11641 * utils.h (do_fputc_ftype): New typedef.
11642 (fputstrn_unfiltered): Add do_fputc parameter.
11643
5dc026d3
SM
116442018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11645
11646 * regformats/i386/i386-avx.dat: Remove.
11647
c912f608
SM
116482018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11649
11650 PR gdb/22979
11651 * amd64-tdep.c (amd64_none_init_abi): New function.
11652 (amd64_x32_none_init_abi): New function.
11653 (_initialize_amd64_tdep): Register handlers for x86-64 and
11654 x64_32 with GDB_OSABI_NONE.
11655 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11656 GDB_OSABI_NONE osabi.
11657
26540402
SM
116582018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11659
11660 PR gdb/22980
11661 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11662 GDB_OSABI_NONE.
11663 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11664 * osabi.c (gdb_osabi_names): Add "unknown" entry.
11665
9018be22
SM
116662018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11667
11668 * common/byte-vector.h (char_vector): New type.
11669 * target.h (target_read_alloc): Return
11670 gdb::optional<byte_vector>.
11671 (target_read_stralloc): Return gdb::optional<char_vector>.
11672 (target_get_osdata): Return gdb::optional<char_vector>.
11673 * target.c (target_read_alloc_1): Templatize. Replacement
11674 manual memory management with vector.
11675 (target_read_alloc): Change return type, adjust.
11676 (target_read_stralloc): Change return type, adjust.
11677 (target_get_osdata): Change return type, adjust.
11678 * auxv.c (struct auxv_info) <length>: Remove.
11679 <data>: Change type to gdb::optional<byte_vector>.
11680 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11681 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11682 (target_auxv_search): Adjust.
11683 (fprint_target_auxv): Adjust.
11684 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11685 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11686 (linux_make_corefile_notes): Adjust.
11687 * osdata.c (get_osdata): Adjust.
11688 * remote.c (remote_get_threads_with_qxfer): Adjust.
11689 (remote_memory_map): Adjust.
11690 (remote_traceframe_info): Adjust.
11691 (btrace_read_config): Adjust.
11692 (remote_read_btrace): Adjust.
11693 (remote_pid_to_exec_file): Adjust.
11694 * solib-aix.c (solib_aix_get_library_list): Adjust.
11695 * solib-dsbt.c (decode_loadmap): Don't free buf.
11696 (dsbt_get_initial_loadmaps): Adjust.
11697 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11698 * solib-target.c (solib_target_current_sos): Adjust.
11699 * tracepoint.c (sdata_make_value): Adjust.
11700 * xml-support.c (xinclude_start_include): Adjust.
11701 (xml_fetch_content_from_file): Adjust.
11702 * xml-support.h (xml_fetch_another): Change return type.
11703 (xml_fetch_content_from_file): Change return type.
11704 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11705 * xml-tdesc.c (file_read_description_xml): Adjust.
11706 (fetch_available_features_from_target): Change return type.
11707 (target_fetch_description_xml): Adjust.
11708 (target_read_description_xml): Adjust.
11709
14c88955
TT
117102018-04-06 Tom Tromey <tom@tromey.com>
11711
11712 * value.c (~value): Update.
11713 (struct value) <contents>: Now unique_xmalloc_ptr.
11714 (value_contents_bits_eq, allocate_value_contents)
11715 (value_contents_raw, value_contents_all_raw)
11716 (value_contents_for_printing, value_contents_for_printing_const)
11717 (set_value_enclosing_type): Update.
11718
0c7e6dd8
TT
117192018-04-06 Tom Tromey <tom@tromey.com>
11720
11721 * value.c (range_s): Remove typedef, VEC.
11722 (struct range): Add operator<.
11723 (range_lessthan): Remove.
11724 (ranges_contain): Change type.
11725 (~value): Update.
11726 (struct value) <unavailable, optimized_out>: Now std::vector.
11727 (value_entirely_available)
11728 (value_entirely_covered_by_range_vector)
11729 (value_entirely_unavailable, value_entirely_optimized_out):
11730 Update.
11731 (insert_into_bit_range_vector): Change argument type.
11732 (find_first_range_overlap): Likewise.
11733 (struct ranges_and_idx, value_contents_bits_eq)
11734 (require_not_optimized_out, require_available): Update.
11735 (ranges_copy_adjusted): Change argument types.
11736 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11737
2c8331b9
TT
117382018-04-06 Tom Tromey <tom@tromey.com>
11739
11740 * value.c (~value): Update.
11741 (struct value) <parent>: Now a value_ref_ptr.
11742 (value_parent, set_value_parent, value_address, value_copy):
11743 Update.
11744
466ce3ae
TT
117452018-04-06 Tom Tromey <tom@tromey.com>
11746
11747 * value.c (struct value): Add constructor, destructor, and member
11748 initializers.
11749 (allocate_value_lazy, value_decref): Update.
11750
062d818d
TT
117512018-04-06 Tom Tromey <tom@tromey.com>
11752
11753 * value.c (struct value) <released, next>: Remove.
11754 (all_values): Now a std::vector.
11755 (allocate_value_lazy): Update.
11756 (value_next): Remove.
11757 (value_mark, value_free_to_mark, release_value)
11758 (value_release_to_mark): Update.
11759
a6535de1
TT
117602018-04-06 Tom Tromey <tom@tromey.com>
11761
11762 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11763 (free_value_chain): Remove.
11764 * value.c (free_value_chain): Remove.
11765 (value_release_to_mark): Return a std::vector.
11766 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11767 std::vector.
11768 (check_condition): Update.
11769 * eval.c (fetch_subexp_value): Change "val_chain" to a
11770 std::vector.
11771 * breakpoint.c (update_watchpoint): Update.
11772 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11773
b5621201
TT
117742018-04-06 Tom Tromey <tom@tromey.com>
11775
11776 * value.h (free_all_values): Remove.
11777 * value.c (free_all_values): Remove.
11778
4d0266a0
TT
117792018-04-06 Tom Tromey <tom@tromey.com>
11780
11781 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11782 (value_history_chain, value_history_count): Remove.
11783 (value_history): New global.
11784 (record_latest_value, access_value_history, show_values)
11785 (preserve_values): Update.
11786
b4d61099
TT
117872018-04-06 Tom Tromey <tom@tromey.com>
11788
11789 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11790 * varobj.c (varobj_set_display_format, varobj_set_value)
11791 (install_default_visualizer, construct_visualizer)
11792 (install_new_value, ~varobj, varobj_get_value_type)
11793 (my_value_of_variable, varobj_editable_p): Update.
11794 * c-varobj.c (c_describe_child, c_value_of_variable)
11795 (cplus_number_of_children, cplus_describe_child): Update.
11796 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11797 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11798 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11799
9b558729
TT
118002018-04-06 Tom Tromey <tom@tromey.com>
11801
11802 * printcmd.c (last_examine_address): Change type to
11803 value_ref_ptr.
11804 (do_examine, x_command): Update.
11805
850645cf
TT
118062018-04-06 Tom Tromey <tom@tromey.com>
11807
11808 * value.c (release_value): Update.
11809 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11810 (struct bpstats) <val>: Now a value_ref_ptr.
11811 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11812 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11813 (~watchpoint, print_it_watchpoint, watch_command_1)
11814 (invalidate_bp_value_on_memory_change): Update.
11815
22bc8444
TT
118162018-04-06 Tom Tromey <tom@tromey.com>
11817
11818 * varobj.c (varobj_clear_saved_item)
11819 (update_dynamic_varobj_children, install_new_value, ~varobj):
11820 Update.
11821 * value.h (value_incref): Move declaration earlier.
11822 (value_decref): Rename from value_free.
11823 (struct value_ref_policy): New.
11824 (value_ref_ptr): New typedef.
11825 (struct value_deleter): Remove.
11826 (gdb_value_up): Remove typedef.
11827 (release_value): Change return type.
11828 (release_value_or_incref): Remove.
11829 * value.c (set_value_parent): Update.
11830 (value_incref): Change return type.
11831 (value_decref): Rename from value_free.
11832 (value_free_to_mark, free_all_values, free_value_chain): Update.
11833 (release_value): Return value_ref_ptr.
11834 (release_value_or_incref): Remove.
11835 (record_latest_value, set_internalvar, clear_internalvar):
11836 Update.
11837 * stack.c (info_frame_command): Don't call value_free.
11838 * python/py-value.c (valpy_dealloc, valpy_new)
11839 (value_to_value_object): Update.
11840 * printcmd.c (do_examine): Update.
11841 * opencl-lang.c (lval_func_free_closure): Update.
11842 * mi/mi-main.c (register_changed_p): Don't call value_free.
11843 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11844 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11845 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11846 value_free.
11847 * guile/scm-value.c (vlscm_free_value_smob)
11848 (vlscm_scm_from_value): Update.
11849 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11850 (frame_unwind_register_unsigned, get_frame_register_bytes)
11851 (put_frame_register_bytes): Don't call value_free.
11852 * findvar.c (address_from_register): Don't call value_free.
11853 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11854 * dwarf2loc.c (entry_data_value_free_closure)
11855 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11856 (dwarf2_evaluate_loc_desc_full): Update.
11857 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11858 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11859 (~watchpoint, watch_command_1)
11860 (invalidate_bp_value_on_memory_change): Update.
11861 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11862
7f8a5d38
SM
118632018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11864
11865 PR gdb/23022
11866 * warning.m4: Add -Wno-error=deprecated-register.
11867 * configure: Re-generate.
11868
8a76bd3b
TT
118692018-04-05 Tom Tromey <tom@tromey.com>
11870
11871 * linespec.h: Remove include of "vec.h".
11872
8e8d776e
TT
118732018-04-05 Tom Tromey <tom@tromey.com>
11874
11875 * linespec.c (typep): Remove typedef.
11876 (find_methods, find_superclass_methods): Take a std::vector.
11877 (find_method): Use std::vector.
11878
9b2f8581
TT
118792018-04-05 Tom Tromey <tom@tromey.com>
11880
11881 * utils.c (compare_strings): Remove.
11882 * utils.h (compare_strings): Remove.
11883 * objc-lang.h (find_imps): Update.
11884 * objc-lang.c (find_methods): Take a std::vector.
11885 (uniquify_strings, find_imps): Likewise.
11886 * linespec.c (find_methods): Take a std::vector.
11887 (decode_objc): Use std::vector.
11888 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11889 a std::vector.
11890 (find_method, find_function_symbols): Use std::vector.
11891
459a2e4c
TT
118922018-04-05 Tom Tromey <tom@tromey.com>
11893
11894 * completer.c (completion_tracker::completion_tracker): Remove
11895 cast.
11896 (completion_tracker::discard_completions): Likewise.
11897 * breakpoint.c (ambiguous_names_p): Remove cast.
11898 * ada-lang.c (_initialize_ada_language): Remove cast.
11899 * utils.h (streq): Update.
11900 (streq_hash): Add new declaration.
11901 * utils.c (streq): Return bool.
11902 (streq_hash): New function.
11903
9be2c17a
TT
119042018-04-05 Tom Tromey <tom@tromey.com>
11905
11906 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11907 Remove a string copy.
11908
f73c6ece
TT
119092018-04-05 Tom Tromey <tom@tromey.com>
11910
11911 * linespec.c (filter_results): Use std::vector.
11912 (decode_line_2, decode_line_full): Update.
11913
53a0f8a2
TT
119142018-04-05 Tom Tromey <tom@tromey.com>
11915
11916 * linespec.c (canonical_to_fullform): Return std::string.
11917 (filter_results): Update.
11918 (struct decode_line_2_item): Add constructor.
11919 <fullform, displayform>: Now std::string.
11920 (decode_line_2_compare_items): Now a std::sort comparator.
11921 (decode_line_2): Update.
11922
a5b5adf5
TT
119232018-04-05 Tom Tromey <tom@tromey.com>
11924
11925 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11926 (unexpected_linespec_error): Update.
11927 (linespec_parse_basic, parse_linespec): Update.
11928
6a307fc5
TT
119292018-04-05 Tom Tromey <tom@tromey.com>
11930
11931 * linespec.c (linespec_parse_basic): Reindent.
11932
41c1efc6
TT
119332018-04-05 Tom Tromey <tom@tromey.com>
11934
11935 * minsyms.h (iterate_over_minimal_symbols): Update.
11936 * minsyms.c (iterate_over_minimal_symbols): Take a
11937 gdb::function_view.
11938 * linespec.c (struct collect_minsyms): Remove.
11939 (compare_msyms): Now a std::sort comparator.
11940 (add_minsym): Add parameters.
11941 (search_minsyms_for_name): Update. Use std::vector.
11942
c5edbf3d
TT
119432018-04-03 Tom Tromey <tom@tromey.com>
11944
11945 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11946 gdb::byte_vector.
11947
b39efc48
WP
119482018-04-02 Weimin Pan <weimin.pan@oracle.com>
11949
11950 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11951
121ad66c 119522018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
11953
11954 PR gdb/16959
11955 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11956 printing static type.
11957
09473be8
TT
119582018-04-01 Tom Tromey <tom@tromey.com>
11959
11960 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11961 (rs6000_xfer_shared_libraries): Update.
11962
ec1f2d91
SM
119632018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11964
11965 * common/gdb_vecs.h (char_ptr): Remove.
11966 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11967
d8611974
SM
119682018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11969
11970 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11971 with std::vector.
11972 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11973
a18ba4e4
SM
119742018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11975
11976 * tracepoint.h (struct uploaded_tp): Initialize fields.
11977 <actions, step_actions, cmd_strings>: Change type to
11978 std::vector<char *>.
11979 * tracepoint.c (get_uploaded_tp): Allocate with new.
11980 (free_uploaded_tps): Free with delete.
11981 (parse_tracepoint_definition): Adjust to std::vector change.
11982 * breakpoint.c (read_uploaded_action): Likewise.
11983 (create_tracepoint_from_upload): Likewise.
11984 * ctf.c (ctf_write_uploaded_tp): Likewise.
11985 (SET_ARRAY_FIELD): Likewise.
11986 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11987
a7961323
TT
119882018-03-30 Tom Tromey <tom@tromey.com>
11989
11990 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11991 std::unique_ptr.
11992 (svr4_keep_data_in_core): Update.
11993 (svr4_read_so_list): Update.
11994
e83e4e24
TT
119952018-03-30 Tom Tromey <tom@tromey.com>
11996
11997 * windows-nat.c (handle_output_debug_string, handle_exception):
11998 Update.
11999 * target.h (target_read_string): Update.
12000 * target.c (target_read_string): Change "string" to
12001 unique_xmalloc_ptr.
12002 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12003 Update.
12004 * solib-frv.c (frv_current_sos): Update.
12005 * solib-dsbt.c (dsbt_current_sos): Update.
12006 * solib-darwin.c (darwin_current_sos): Update.
12007 * linux-thread-db.c (inferior_has_bug): Update.
12008 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12009 Update. Remove alloca.
12010 * ada-lang.c (ada_main_name): Update.
12011
263db9a1
TT
120122018-03-30 Tom Tromey <tom@tromey.com>
12013
12014 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12015 (struct dwo_file_deleter): New.
12016 (dwo_file_up): New typedef.
12017 (open_and_init_dwo_file): Use dwo_file_up.
12018 (free_dwo_file_cleanup): Remove.
12019
5dafb3d1
TT
120202018-03-30 Tom Tromey <tom@tromey.com>
12021
12022 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12023 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12024
11ed8cad
TT
120252018-03-30 Tom Tromey <tom@tromey.com>
12026
12027 * dwarf2read.c (class free_cached_comp_units): New class.
12028 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12029 (free_cached_comp_units): Remove function.
12030
9ae79dac
TT
120312018-03-30 Tom Tromey <tom@tromey.com>
12032
12033 * utils.h (make_cleanup_unpush_target): Remove.
12034 * inf-ptrace.c (struct target_unpusher): New.
12035 (target_unpush_up) New typedef.
12036 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12037 target_unpush_up.
12038 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12039
5aa89276
TT
120402018-03-27 Tom Tromey <tom@tromey.com>
12041
12042 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12043
1dbeed45
TT
120442018-03-27 Pedro Alves <palves@redhat.com>
12045 Tom Tromey <tom@tromey.com>
12046
12047 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12048 destructor. Now a class.
12049 (gdb_readline_wrapper_cleanup): Remove function.
12050 (gdb_readline_wrapper): Remove cleanups.
12051
c819b2c0
TT
120522018-03-27 Tom Tromey <tom@tromey.com>
12053
12054 * typeprint.h (struct type_print_options) <local_typedefs,
12055 global_typedefs>: Remove "struct" keyword.
12056 (class typedef_hash_table): New class.
12057 (recursively_update_typedef_hash, add_template_parameters)
12058 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
12059 (find_typedef_in_hash): Don't declare.
12060 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
12061 (typedef_hash_table::recursively_update): Rename from
12062 recursively_update_typedef_hash. Now a member.
12063 (typedef_hash_table::add_template_parameters): Rename from
12064 add_template_parameters. Now a member.
12065 (typedef_hash_table::typedef_hash_table): Now a constructor;
12066 rename from create_typedef_hash.
12067 (typedef_hash_table::~typedef_hash_table): Now a destructor;
12068 rename from free_typedef_hash.
12069 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
12070 (do_free_global_table): Remove.
12071 (typedef_hash_table::typedef_hash_table): New constructor; renamed
12072 from copy_type_recursive.
12073 (create_global_typedef_table): Remove.
12074 (typedef_hash_table::find_global_typedef): Now a member of
12075 typedef_hash_table.
12076 (typedef_hash_table::find_typedef): Rename from
12077 find_typedef_in_hash; now a member.
12078 (whatis_exp): Update.
12079 * extension.h (struct ext_lang_type_printers): Add constructor and
12080 destructor.
12081 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
12082 declare.
12083 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
12084 Now a constructor; rename from start_ext_lang_type_printers.
12085 (ext_lang_type_printers): Now a destructor; rename from
12086 free_ext_lang_type_printers.
12087 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
12088 Update.
12089 (c_type_print_base_struct_union): Update. Remove cleanups.
12090
608219fb
TT
120912018-03-27 Tom Tromey <tom@tromey.com>
12092
12093 * dwarf-index-write.c: Include <cmath>.
12094
3fcded8f
JB
120952018-03-27 Joel Brobecker <brobecker@adacore.com>
12096
12097 * NEWS: Add entry describing new "set|show varsize-limit" command.
12098 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
12099 command.
12100 * printcmd.c (_initialize_printcmd): Add "set var" alias of
12101 "set variable".
12102
cd4fb1b2
SM
121032018-03-27 Simon Marchi <simon.marchi@ericsson.com>
12104
12105 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
12106 dwarf-index-write.c
12107 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
12108 * dwarf-index-common.c: New file.
12109 * dwarf-index-common.h: New file.
12110 * dwarf-index-write.c: New file.
12111 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
12112 (struct dwarf2_section_info): Move from here.
12113 (dwarf2_section_info_def): Likewise.
12114 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
12115 (offset_type): Likewise.
12116 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
12117 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
12118 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
12119 (byte_swap): Likewise.
12120 (MAYBE_SWAP): Likewise.
12121 (dwarf2_per_cu_ptr): Likewise.
12122 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
12123 (struct tu_stats): Likewise.
12124 (struct dwarf2_per_objfile): Likewise.
12125 (struct dwarf2_per_cu_data): Likewise.
12126 (struct signatured_type): Likewise.
12127 (sig_type_ptr): Likewise.
12128 (DEF_VEC_P (sig_type_ptr)): Likewise.
12129 (INDEX4_SUFFIX): Likewise.
12130 (INDEX5_SUFFIX): Likewise.
12131 (DEBUG_STR_SUFFIX): Likewise.
12132 (dwarf2_read_section): Make non-static.
12133 (mapped_index_string_hash): Move from here.
12134 (dwarf5_djb_hash): Likewise.
12135 (file_write): Likewise.
12136 (class data_buf): Likewise.
12137 (struct symtab_index_entry): Likewise.
12138 (struct mapped_symtab): Likewise.
12139 (find_slot): Likewise.
12140 (hash_expand): Likewise.
12141 (add_index_entry): Likewise.
12142 (uniquify_cu_indices): Likewise.
12143 (class c_str_view): Likewise.
12144 (class c_str_view_hasher): Likewise.
12145 (class vector_hasher): Likewise.
12146 (write_hash_table): Likewise.
12147 (psym_index_map): Likewise.
12148 (struct addrmap_index_data): Likewise.
12149 (add_address_entry): Likewise.
12150 (add_address_entry_worker): Likewise.
12151 (write_address_map): Likewise.
12152 (symbol_kind): Likewise.
12153 (write_psymbols): Likewise.
12154 (struct signatured_type_index_data): Likewise.
12155 (write_one_signatured_type): Likewise.
12156 (recursively_count_psymbols): Likewise.
12157 (recursively_write_psymbols): Likewise.
12158 (class debug_names): Likewise.
12159 (check_dwarf64_offsets): Likewise.
12160 (psyms_seen_size): Likewise.
12161 (write_gdbindex): Likewise.
12162 (write_debug_names): Likewise.
12163 (assert_file_size): Likewise.
12164 (write_psymtabs_to_index): Likewise.
12165 (save_gdb_index_command): Likewise.
12166 (_initialize_dwarf2_read): Don't register the "save gdb-index"
12167 command.
12168 * dwarf2read.h: New file.
12169
59cc4834
JB
121702018-03-27 Joel Brobecker <brobecker@adacore.com>
12171
12172 PR gdb/22670
12173 * dwarf2read.c (dwarf2_physname): Do not return the demangled
12174 symbol name if the CU's language stores symbol names in linkage
12175 format.
12176 * language.h (struct language_defn)
12177 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
12178 all instances of this struct.
12179
67501539
TT
121802018-03-26 Tom Tromey <tom@tromey.com>
12181
12182 * stack.c (backtrace_command_1): Remove verbose code.
12183
76c939ac
TT
121842018-03-26 Tom Tromey <tom@tromey.com>
12185
12186 * python/py-framefilter.c (py_print_type): Don't catch
12187 exceptions. Return void.
12188 (py_print_value): Likewise.
12189 (py_print_single_arg): Likewise.
12190 (enumerate_args): Don't catch exceptions.
12191 (py_print_args): Likewise.
12192 (py_print_frame): Likewise.
12193 (gdbpy_apply_frame_filter): Catch exceptions here.
12194
9507b29c
TT
121952018-03-26 Tom Tromey <tom@tromey.com>
12196
12197 * stack.c (_initialize_stack): Remove trailing newlines from help
12198 text. Add "Usage" line to "backtrace" help.
12199
eb68e487
TT
122002018-03-26 Tom Tromey <tom@tromey.com>
12201
12202 PR python/16486:
12203 * python/py-framefilter.c (py_print_args): Call wrap_hint.
12204
1f111921
TT
122052018-03-26 Tom Tromey <tom@tromey.com>
12206
12207 * python/py-framefilter.c (py_print_single_arg): Return
12208 EXT_LANG_BT_ERROR from catch.
12209
fb7eb8b5
TT
122102018-03-26 Tom Tromey <tom@tromey.com>
12211
12212 PR backtrace/15584:
12213 * stack.c (backtrace_command_1): Move some code into no-filters
12214 "if".
12215
4ca59a9f
TT
122162018-03-26 Tom Tromey <tom@tromey.com>
12217
12218 * python/py-framefilter.c (throw_quit_or_print_exception): New
12219 function.
12220 (gdbpy_apply_frame_filter): Use it.
12221
92256134
TT
122222018-03-26 Tom Tromey <tom@tromey.com>
12223
12224 PR cli/17716:
12225 * python/py-framefilter.c (py_print_type, py_print_value)
12226 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12227 RETURN_MASK_ERROR.
12228
7a630bc2
TT
122292018-03-26 Tom Tromey <tom@tromey.com>
12230
12231 * python/py-framefilter.c (enumerate_args): Use
12232 gdb::unique_xmalloc_ptr.
12233
63283d4a
TT
122342018-03-26 Tom Tromey <tom@tromey.com>
12235
12236 * python/py-framefilter.c (py_print_frame): Return
12237 EXT_LANG_BT_OK.
12238 (gdbpy_apply_frame_filter): Update comment.
12239 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12240 Remove.
12241 <EXT_LANG_BT_NO_FILTERS>: Change value.
12242
978d6c75
TT
122432018-03-26 Tom Tromey <tom@tromey.com>
12244
12245 PR backtrace/15582:
12246 * stack.c (backtrace_command): Parse "hide" argument.
12247 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12248 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12249 constant.
12250
1cf7e640
TT
122512018-03-26 Tom Tromey <tom@tromey.com>
12252
12253 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12254 add "flags".
12255 (backtrace_command): Remove "fulltrace", add "flags".
12256
ea3b0687
TT
122572018-03-26 Tom Tromey <tom@tromey.com>
12258
12259 * stack.c (backtrace_command): Rewrite command line parsing.
12260
9f034d75
SM
122612018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12262
12263 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12264
ce1459e5
SM
122652018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12266
12267 * filename-seen-cache.h: Add include guard.
12268
4f7ae6f5
KS
122692018-03-26 Keith Seitz <keiths@redhat.com>
12270
12271 * symfile.c (place_section): Remove "struct" from section_addr_info
12272 in comment.
12273 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
12274 "struct" keyword from section_addr_info.
12275
5cd3e386
AH
122762018-03-26 Alan Hayward <alan.hayward@arm.com>
12277
12278 * regformats/regdef.h (reg): Add constructors.
12279
3e5ef9a4
PA
122802018-03-25 Pedro Alves <palves@redhat.com>
12281
12282 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
12283 if then/else bodies in var_func_name extraction.
12284
c88d2fcc 122852018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
12286
12287 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
12288 lookup_minimal_symbol() to find symbol entry.
12289 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
12290
b7fee5a3
KS
122912018-03-23 Keith Seitz <keiths@redhat.com>
12292
12293 PR c++/22968
12294 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
12295 nested type definitions for C++, too.
12296
2cc9b304
TT
122972018-03-23 Tom Tromey <tom@tromey.com>
12298
12299 * machoread.c (struct oso_el): Add a constructor. Don't define as
12300 a typedef.
12301 (macho_register_oso): Remove.
12302 (macho_symtab_read): Take a std::vector.
12303 (oso_el_compare_name): Now a std::sort comparator.
12304 (macho_symfile_read_all_oso): Take a std::vector.
12305 (macho_symfile_read): Use std::vector. Remove cleanups.
12306
a2b2bc12
TT
123072018-03-22 Tom Tromey <tom@tromey.com>
12308
12309 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
12310 (record_full_goto_bookmark): Use std::string.
12311
7a8f494c
PFC
123122018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12313
12314 PR tdep/18295
12315 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
12316 a single mask.
12317
dd6d677f
PFC
123182018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12319
12320 * rs6000-tdep.c (store_insn_p): New function.
12321 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
12322 and cr_reg to their unshifted values. Use store_insn_p to
12323 match LR saves using either R1 or fdata->alloca_reg. Use
12324 store_insn_p to match CR saves. Set alloca_reg_offset
12325 when alloca_reg and framep are set. Remove lr_reg shift
12326 when assigning to fdata->lr_register.
12327
26d6cec4
AA
123282018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
12329
12330 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
12331 command line args instead of emitting a warning.
12332
5d9310c4
SM
123332018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12334
12335 * tracepoint.h (struct static_tracepoint_marker): Initialize
12336 fields, define default constructor, move constructor and move
12337 assignment, disable the rest.
12338 <str_id, extra>: Make std::string.
12339 (release_static_tracepoint_marker): Remove.
12340 (free_current_marker): Remove.
12341 * tracepoint.c (free_current_marker): Remove.
12342 (parse_static_tracepoint_marker_definition): Adjust to
12343 std::string, use new hex2str overload.
12344 (release_static_tracepoint_marker): Remove.
12345 (print_one_static_tracepoint_marker): Get marker by reference
12346 and adjust to std::string.
12347 (info_static_tracepoint_markers_command): Adjust to std::vector
12348 changes
12349 * target.h (static_tracepoint_marker_p): Remove typedef.
12350 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
12351 (struct target_ops) <to_static_tracepoint_marker_at>: Return
12352 bool.
12353 <to_static_tracepoint_markers_by_strid>: Return std::vector.
12354 * target-debug.h
12355 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
12356 (target_debug_print_std_vector_static_tracepoint_marker): New.
12357 (target_debug_print_struct_static_tracepoint_marker_p): Rename
12358 to...
12359 (target_debug_print_static_tracepoint_marker_p): ... this.
12360 * target-delegates.c: Re-generate.
12361 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
12362 Make std::string.
12363 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
12364 (decode_static_tracepoint_spec): Adjust to std::vector.
12365 (tracepoint_print_one_detail): Adjust to std::string.
12366 (strace_marker_decode_location): Adjust to std::string.
12367 (update_static_tracepoint): Adjust to std::string, remove call
12368 to release_static_tracepoint_marker.
12369 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
12370 Adjust to std::vector.
12371 * remote.c (remote_static_tracepoint_marker_at): Return bool.
12372 (remote_static_tracepoint_markers_by_strid): Adjust to
12373 std::vector.
12374 * common/rsp-low.h (hex2str): New overload with explicit count
12375 of bytes.
12376 * common/rsp-low.c (hex2str): New overload with explicit count
12377 of bytes.
12378 * unittests/rsp-low-selftests.c (test_hex2str): New function.
12379 (_initialize_rsp_low_selftests): Add test_hex2str test.
12380 * unittests/tracepoint-selftests.c
12381 (test_parse_static_tracepoint_marker_definition): Adjust to
12382 std::string.
12383
62c222b6
SM
123842018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12385
12386 * tracepoint.c (parse_static_tracepoint_marker_definition):
12387 Consider case where the definition is followed by more
12388 definitions.
12389 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12390 tracepoint-selftests.c.
12391 * unittests/tracepoint-selftests.c: New.
12392
7eb2418f
PFC
123932018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12394
12395 * MAINTAINERS (Write After Approval): Add Pedro Franco de
12396 Carvalho.
12397
7cbe16e9
SR
123982018-03-20 Stephen Roberts <stephen.roberts@arm.com>
12399
3d6b3b82 12400 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 12401
4ee89e90
SR
124022018-03-20 Stephen Roberts <stephen.roberts@arm.com>
12403
3d6b3b82 12404 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 12405
92630041
TT
124062018-03-19 Tom Tromey <tom@tromey.com>
12407
12408 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
12409 "IDENT" production.
12410
76727919
TT
124112018-03-19 Pedro Alves <palves@redhat.com>
12412 Tom Tromey <tom@tromey.com>
12413
12414 * unittests/observable-selftests.c: New file.
12415 * common/observable.h: New file.
12416 * observable.h: New file.
12417 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
12418 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
12419 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
12420 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
12421 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
12422 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
12423 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
12424 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
12425 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
12426 python/py-breakpoint.c, python/py-finishbreakpoint.c,
12427 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
12428 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
12429 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
12430 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
12431 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
12432 tui/tui-interp.c, valops.c: Update all users.
12433 * tui/tui-hooks.c (tui_bp_created_observer)
12434 (tui_bp_deleted_observer, tui_bp_modified_observer)
12435 (tui_inferior_exit_observer, tui_before_prompt_observer)
12436 (tui_normal_stop_observer, tui_register_changed_observer):
12437 Remove.
12438 (tui_observers_token): New global.
12439 (attach_or_detach, tui_attach_detach_observers): New functions.
12440 (tui_install_hooks, tui_remove_hooks): Use
12441 tui_attach_detach_observers.
12442 * record-btrace.c (record_btrace_thread_observer): Remove.
12443 (record_btrace_thread_observer_token): New global.
12444 * observer.sh: Remove.
12445 * observer.c: Rename to observable.c.
12446 * observable.c (namespace gdb_observers): Define new objects.
12447 (observer_debug): Move into gdb_observers namespace.
12448 (struct observer, struct observer_list, xalloc_observer_list_node)
12449 (xfree_observer_list_node, generic_observer_attach)
12450 (generic_observer_detach, generic_observer_notify): Remove.
12451 (_initialize_observer): Update.
12452 Don't include observer.inc.
12453 * Makefile.in (generated_files): Remove observer.h, observer.inc.
12454 (clean mostlyclean): Likewise.
12455 (observer.h, observer.inc): Remove targets.
12456 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
12457 (COMMON_SFILES): Use observable.c, not observer.c.
12458 * .gitignore: Remove observer.h.
12459
1cb1f3da
TT
124602018-03-18 Tom Tromey <tom@tromey.com>
12461
12462 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
12463 gdb::def_vector.
12464 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
12465
a06ab151
TT
124662018-03-17 Tom Tromey <tom@tromey.com>
12467
12468 * auto-load.c (auto_load_objfile_script_1): Use std::string.
12469
770623f7
TT
124702018-03-17 Tom Tromey <tom@tromey.com>
12471
12472 * target.c (class scoped_target_fd): New.
12473 (target_fileio_close_cleanup): Remove.
12474 (target_fileio_read_alloc_1): Use scoped_target_fd.
12475
39be3c7e
SM
124762018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
12477
12478 * silent-rules.mk: New.
12479 * Makefile.in: Include silent-rules.mk
12480 (srcdir, VPATH, top_srcdir): Move up.
12481 (COMPILE): Add ECHO_CXX.
12482 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
12483 (init.c): Add ECHO_INIT_C.
12484 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
12485 (version.c): Add ECHO_GEN.
12486 (printcmd.o): Add ECHO_CXX.
12487 (target-float.o): Add ECHO_CXX.
12488 (ada-exp.o): Add ECHO_CXX.
12489 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
12490 (insight$(EXEEXT)): Add ECHO_CXXLD.
12491 * gnulib/configure.ac: Add AM_SILENT_RULES.
12492 * gnulib/aclocal.m4: Re-generate.
12493 * gnulib/configure: Re-generate.
12494 * gnulib/import/Makefile.in: Re-generate.
12495
37e136b1
TT
124962018-03-16 Tom Tromey <tom@tromey.com>
12497
12498 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
12499 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
12500 * utils.c (do_free_section_addr_info)
12501 (make_cleanup_free_section_addr_info): Remove.
12502 * symfile.h (struct other_sections): Add constructor.
12503 (struct section_addr_info): Remove.
12504 (section_addr_info): New typedef.
12505 (struct sym_fns) <sym_offsets>: Change type of parameter.
12506 (build_section_addr_info_from_objfile)
12507 (relative_addr_info_to_section_offsets, addr_info_make_relative)
12508 (default_symfile_offsets, symbol_file_add)
12509 (symbol_file_add_from_bfd)
12510 (build_section_addr_info_from_section_table): Update.
12511 (alloc_section_addr_info, free_section_addr_info): Don't declare.
12512 * symfile.c (alloc_section_addr_info): Remove.
12513 (build_section_addr_info_from_section_table): Change return type.
12514 Update.
12515 (build_section_addr_info_from_bfd)
12516 (build_section_addr_info_from_objfile): Likewise.
12517 (free_section_addr_info): Remove.
12518 (relative_addr_info_to_section_offsets): Change type of "addrs".
12519 (addrs_section_compar): Now a std::sort comparator.
12520 (addrs_section_sort): Change return type.
12521 (addr_info_make_relative): Change type of "addrs". Update.
12522 (default_symfile_offsets, syms_from_objfile_1)
12523 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
12524 (symbol_file_add_separate): Update.
12525 (symbol_file_add): Change type of "addrs". Update.
12526 (add_symbol_file_command): Update. Remove cleanups.
12527 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
12528 cleanups.
12529 * symfile-debug.c (debug_sym_offsets): Change type of "info".
12530 * solib.c (solib_read_symbols): Update.
12531 * objfiles.c (objfile_relocate): Update. Remove cleanups.
12532 * machoread.c (macho_symfile_offsets): Update.
12533 * jit.c (jit_bfd_try_read_symtab): Update.
12534
03afa6ef
SM
125352018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
12536
12537 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12538 unittests/utils-selftests.c.
12539 * unittests/utils-selftests.c: New file.
12540
3ae9ce5d
TT
125412018-03-14 Tom Tromey <tom@tromey.com>
12542
12543 PR cli/14977:
12544 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
12545 for NULL.
12546
b8c2339b
TT
125472018-03-14 Tom Tromey <tom@tromey.com>
12548
12549 PR cli/19918:
12550 * printcmd.c (printf_pointer): Allow "-" in format.
12551
80ae639d
TT
125522018-03-14 Tom Tromey <tom@tromey.com>
12553
12554 * printcmd.c (_initialize_printcmd): Add usage to printf.
12555
0d671d99
YQ
125562018-03-14 Yao Qi <qiyao@sourceware.org>
12557
12558 * MAINTAINERS: Update my email address.
12559
b577b6af
TT
125602018-03-13 Tom Tromey <tom@tromey.com>
12561
12562 * machoread.c (macho_check_dsym): Change filenamep to a
12563 std::string*.
12564 (macho_symfile_read): Update.
12565 * symfile.c (load_command): Use std::string.
12566
89a3b63e
AB
125672018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
12568
12569 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
12570 to error message string.
12571 (riscv_register_name): Use xsnprintf instead of sprintf.
12572 (riscv_insn::fetch_instruction): Use gdb_assert instead of
12573 internal_error.
12574 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
12575 error.
12576 (riscv_push_dummy_call): Likewise.
12577
984c7238
TT
125782018-03-12 Tom Tromey <tom@tromey.com>
12579
12580 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
12581 Use gdb::byte_vector.
12582 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
12583
933522d1
YQ
125842018-03-12 Yao Qi <yao.qi@linaro.org>
12585
12586 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
12587 parameter type to readable_regcache.
12588 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
12589 the declaration.
12590
be2daae6
TT
125912018-03-11 Tom Tromey <tom@tromey.com>
12592
12593 * dwarf2read.c (struct nextfield): Add initializers.
12594 (struct nextfnfield): Remove.
12595 (struct fnfieldlist): Add initializers. Remove "length" and
12596 "head", use std::vector.
12597 (struct decl_field_list): Remove.
12598 (struct field_info): Add initializers.
12599 <fields, baseclasses>: Now std::vector.
12600 <nbaseclasses, nfnfields, typedef_field_list_count,
12601 nested_types_list_count>: Remove.
12602 (dwarf2_add_field, dwarf2_add_type_defn)
12603 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
12604 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
12605 (process_structure_scope): Update.
12606
484cf504
TT
126072018-03-11 Tom Tromey <tom@tromey.com>
12608
12609 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
12610 for use by std::sort.
12611 (build_type_psymtabs_1): Use std::vector.
12612
9bd8e0b0
EZ
126132018-03-09 Eli Zaretskii <eliz@gnu.org>
12614
12615 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
12616 and LIBMPFR in the printed configuration.
12617
5dc1a704
TT
126182018-03-08 Tom Tromey <tom@tromey.com>
12619
12620 * source.c (get_filename_and_charpos): Use scoped_fd.
12621 * nto-procfs.c (procfs_open_1): Use scoped_fd.
12622 (procfs_pidlist): Likewise.
12623 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
12624 (iterate_over_mappings): Likewise.
12625
fdf07f3a
TT
126262018-03-08 Tom Tromey <tom@tromey.com>
12627
12628 * infcall.c (struct call_return_meta_info)
12629 <stack_temporaries_enabled>: Remove.
12630 (get_call_return_value, call_function_by_hand_dummy): Update.
12631 * thread.c (disable_thread_stack_temporaries): Remove.
12632 (enable_thread_stack_temporaries): Remove.
12633 (thread_stack_temporaries_enabled_p): Return bool.
12634 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12635 (get_last_thread_stack_temporary): Update.
12636 * eval.c (evaluate_subexp): Update.
12637 * gdbthread.h (class enable_thread_stack_temporaries): Now a
12638 class, not a function.
12639 (value_ptr, value_vec): Remove typedefs.
12640 (class thread_info) <stack_temporaries_enabled>: Now bool.
12641 <stack_temporaries>: Now a std::vector.
12642 (thread_stack_temporaries_enabled_p)
12643 (value_in_thread_stack_temporaries): Return bool.
12644
567a3e54
SM
126452018-03-08 Simon Marchi <simon.marchi@ericsson.com>
12646
12647 * remote.c (putpkt_binary): Fix omitted bytes reporting.
12648 (getpkt_or_notif_sane_1): Likewise.
12649
00b40057
SM
126502018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12651
12652 * build-id.c (build_id_to_debug_bfd): Use std::string.
12653
a8dbfd58
SM
126542018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12655
12656 * build-id.c (find_separate_debug_file_by_buildid): Return
12657 std::string.
12658 * build-id.h (find_separate_debug_file_by_buildid): Return
12659 std::string.
12660 * coffread.c (coff_symfile_read): Adjust to std::string.
12661 * elfread.c (elf_symfile_read): Adjust to std::string.
12662 * symfile.c (separate_debug_file_exists): Change parameter to
12663 std::string.
12664 (find_separate_debug_file): Return std::string.
12665 (find_separate_debug_file_by_debuglink): Return std::string.
12666 * symfile.h (find_separate_debug_file_by_debuglink): Return
12667 std::string.
12668
e6a58aa8
SM
126692018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12670
12671 * common/xml-utils.c (xml_escape_text): Move code to...
12672 (xml_escape_text_append): ... this new function.
12673 * common/xml-utils.h (xml_escape_text_append): New declaration.
12674 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12675 New function.
12676 (_initialize_xml_utils): register test_xml_escape_text_append as
12677 a selftest.
12678
4ef0bef6
AH
126792018-03-07 Alan Hayward <alan.hayward@arm.com>
12680
12681 * defs.h: Remove MAX_REGISTER_SIZE.
12682 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12683 asserts.
12684 * python/py-unwind.c (pyuw_sniffer): Likewise.
12685
e0d3522b
TT
126862018-03-07 Tom Tromey <tom@tromey.com>
12687
12688 * linux-tdep.c (linux_info_proc): Update.
12689 * target.h (struct target_ops) <to_fileio_readlink>: Return
12690 optional<string>.
12691 (target_fileio_readlink): Return optional<string>.
12692 * remote.c (remote_hostio_readlink): Return optional<string>.
12693 * inf-child.c (inf_child_fileio_readlink): Return
12694 optional<string>.
12695 * target.c (target_fileio_readlink): Return optional<string>.
12696
ea005f31
AB
126972018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12698
12699 * regcache.c (cooked_read_test): Add riscv to the list of
12700 architectures that have a save_reggroup.
12701
e95a97d4
AA
127022018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12703
12704 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12705 value is not a dynamic class object.
12706
d8344f3d
TT
127072018-03-06 Tom Tromey <tom@tromey.com>
12708
12709 * rust-exp.y: Formatting fixes.
12710
9add17f2
AB
127112018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12712
12713 * riscv-tdep.c (riscv_register_name): Remove target description
12714 support.
12715 (riscv_gdbarch_init): Remove target description check.
12716
c9486dfe
AB
127172018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12718
12719 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12720 comment.
12721 * riscv-tdep.h: Likewise.
12722
d74aff3d
AB
127232018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12724
12725 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12726 (riscv_pseudo_register_write): Delete.
12727 (riscv_gdbarch_init): Remove all use of pseudo registers.
12728
7ea78b59
SM
127292018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12730
12731 * record-btrace.c (btrace_print_lines): Replace cleanup
12732 parameter with RAII equivalents.
12733 (btrace_insn_history): Replace cleanup with RAII equivalents.
12734 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12735 make_cleanup_ui_out_tuple_begin_end): Remove.
12736 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12737 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12738 make_cleanup_ui_out_list_begin_end): Remove.
12739
53127008
SM
127402018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12741
12742 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12743 parameter types to std::vector. Use bool.
12744 (record_btrace_wait): Replace VEC(tp_t) with
12745 std::vector<thread_info *>.
12746 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12747
228f1508
SM
127482018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12749
12750 * record-btrace.c (record_btrace_disable_callback): Remove.
12751 (struct scoped_btrace_disable): New.
12752 (record_btrace_open): Use scoped_btrace_disable.
12753
b2970c23
AB
127542018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12755
12756 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12757 reading values from registers.
12758
fb294655
AB
127592018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12760
12761 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12762 where appropriate.
12763
cab5bb9d
AB
127642018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12765
12766 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12767 change parameter type. Use GDB's print functions, and use
12768 core_addr_to_string where appropriate.
12769 (riscv_push_dummy_call): Use core_addr_to_string where
12770 appropriate, update call to riscv_print_arg_location, and reindent
12771 a few lines.
12772 (riscv_return_value): Update call to riscv_print_arg_location.
12773
dbbb1059
AB
127742018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12775 Tim Newsome <tim@sifive.com>
12776 Albert Ou <a0u@eecs.berkeley.edu>
12777 Darius Rad <darius@bluespec.com>
12778
12779 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12780 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12781 (ALLDEPFILES): Add riscv-tdep.c
12782 * configure.tgt: Add riscv support.
12783 * riscv-tdep.c: New file.
12784 * riscv-tdep.h: New file.
12785 * NEWS: Mention new target.
12786 * MAINTAINERS: Add entry for riscv.
12787
5dc43913
AB
127882018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12789
12790 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12791 fields within aggregates.
12792
3dea1ef7
SM
127932018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12794
12795 * record-btrace.c (btrace_print_lines): Change type of flags to
12796 gdb_disassembly_flags.
12797
7efba073
JB
127982018-03-04 John Baldwin <jhb@FreeBSD.org>
12799
12800 * fbsd-nat.c: Include "inf-ptrace.h".
12801 (USE_SIGTRAP_SIGINFO): Conditionally define.
12802 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12803 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12804 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12805 function.
12806 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12807 Likewise.
12808 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12809 Likewise.
12810 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12811 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12812 "supports_stopped_by_hw_breakpoint" target methods.
12813
386a8676
JB
128142018-03-04 John Baldwin <jhb@FreeBSD.org>
12815
12816 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12817 * fbsd-nat.c (debug_fbsd_nat): New variable.
12818 (show_fbsd_nat_debug): New function.
12819 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12820 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12821
12279366
JB
128222018-03-04 John Baldwin <jhb@FreeBSD.org>
12823
12824 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12825 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12826 prototype.
12827 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12828 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12829 method.
12830
54693cf5
SM
128312018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12832
12833 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12834 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12835
ccb2231c
SM
128362018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12837
12838 * charset.c (struct charset_vector): New.
12839 (charsets): Change type to charset_vector.
12840 (find_charset_names): Adjust.
12841 (add_one): Adjust.
12842 (_initialize_charset): Adjust.
12843
6fb16ce6
SM
128442018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12845
12846 * progspace.h (struct program_space) <deleted_solibs>: Change
12847 type to std::vector<std::string>.
12848 * progspace.c (clear_program_space_solib_cache): Adjust.
12849 * breakpoint.c (print_solib_event): Adjust.
12850 (check_status_catch_solib): Adjust.
12851 * solib.c (update_solib_list): Adjust.
12852 * ui-out.h (class ui_out) <field_string>: New overload.
12853 * ui-out.c (ui_out::field_string): New overload.
12854
564b1e3f
SM
128552018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12856
12857 * progspace.h (struct program_space): Add constructor and
12858 destructor, initialize fields.
12859 (add_program_space): Remove.
12860 * progspace.c (add_program_space): Rename to...
12861 (program_space::program_space): ... this.
12862 (release_program_space): Rename to...
12863 (program_space::~program_space): ... this.
12864 (delete_program_space): Use delete to delete program_space.
12865 (initialize_progspace): Use new to allocate program_space.
12866 * inferior.c (add_inferior_with_spaces): Likewise.
12867 (clone_inferior_command): Likewise.
12868 * infrun.c (follow_fork_inferior): Likewise.
12869 (handle_vfork_child_exec_or_exit): Likewise.
12870
e80aaf61
SM
128712018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12872
12873 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12874 (delim_string_to_char_ptr_vec): Return std::vector of
12875 gdb::unique_xmalloc_ptr.
12876 (dirnames_to_char_ptr_vec_append): Take std::vector of
12877 gdb::unique_xmalloc_ptr.
12878 (dirnames_to_char_ptr_vec): Return std::vector of
12879 gdb::unique_xmalloc_ptr.
12880 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12881 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12882 (delim_string_to_char_ptr_vec): Return an std::vector of
12883 gdb::unique_xmalloc_ptr, adjust the code.
12884 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12885 gdb::unique_xmalloc_ptr, adjust the code.
12886 (dirnames_to_char_ptr_vec): Return an std::vector of
12887 gdb::unique_xmalloc_ptr, adjust the code.
12888 * auto-load.c (auto_load_safe_path_vec): Change type to
12889 std::vector of gdb::unique_xmalloc_ptr.
12890 (auto_load_expand_dir_vars): Return an std::vector of
12891 gdb::unique_xmalloc_ptr, adjust the code.
12892 (auto_load_safe_path_vec_update): Adjust.
12893 (filename_is_in_auto_load_safe_path_vec): Adjust.
12894 (auto_load_objfile_script_1): Adjust.
12895 * build-id.c (build_id_to_debug_bfd): Adjust.
12896 * linux-thread-db.c (thread_db_load_search): Adjust.
12897 * source.c (add_path): Adjust.
12898 (openp): Adjust.
12899 * symfile.c (find_separate_debug_file): Adjust.
12900 * utils.c (do_free_char_ptr_vec): Remove.
12901 (make_cleanup_free_char_ptr_vec): Remove.
12902
ab818ade
SDJ
129032018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12904
12905 PR gdb/22907
12906 * common/pathstuff.c: Conditionally include "<windows.h>".
12907
e1e6f073
GS
129082018-03-01 Georg Sauthoff <mail@georg.so>
12909
12910 PR gdb/22888
12911 * gcore.in: Quote variables and switch interpreter to bash.
12912
c7b15a66
TT
129132018-03-01 Tom Tromey <tom@tromey.com>
12914
12915 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12916 assertion. Add assertion for discriminant_index.
12917 (quirk_rust_enum): Use correct base type name in univariant case.
12918
0cb7c7b0
SM
129192018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12920
12921 * record.c (get_call_history_modifiers): Return a
12922 record_print_flags.
12923 (cmd_record_call_history): Adjust.
12924 * record-btrace.c (record_btrace_call_history): Adjust.
12925 (record_btrace_call_history_range): Adjust.
12926 (record_btrace_call_history_from): Adjust.
12927 * target-debug.h (target_debug_print_record_print_flags): New.
12928 * target-delegates.c: Re-generate.
12929 * target.c (target_call_history): Change flags type.
12930 (target_call_history_from): Likewise.
12931 (target_call_history_range): Likewise.
12932 * target.h (struct target_ops) <target_call_history>: Likewise.
12933 (target_call_history_from): Likewise.
12934 (target_call_history_range): Likewise.
12935
25e3c82c
SDJ
129362018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12937 Simon Marchi <simon.marchi@polymtl.ca>
12938
12939 * common/common-utils.c: Include "sys/stat.h".
12940 (is_regular_file): Move here from "source.c"; change return
12941 type to "bool".
12942 * common/common-utils.h (is_regular_file): New prototype.
12943 * common/pathstuff.c (contains_dir_separator): New function.
12944 * common/pathstuff.h (contains_dir_separator): New prototype.
12945 * source.c: Don't include "sys/stat.h".
12946 (is_regular_file): Move to "common/common-utils.c".
12947
b4987c95
SDJ
129482018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12949
12950 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12951 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12952 * auto-load.c: Include "common/pathstuff.h".
12953 * common/common-def.h (current_directory): Move here.
12954 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12955 function.
12956 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12957 prototype.
12958 * common/pathstuff.c: New file.
12959 * common/pathstuff.h: New file.
12960 * compile/compile.c: Include "common/pathstuff.h".
12961 * defs.h (current_directory): Move to "common/common-defs.h".
12962 * dwarf2read.c: Include "common/pathstuff.h".
12963 * exec.c: Likewise.
12964 * guile/scm-safe-call.c: Likewise.
12965 * linux-thread-db.c: Likewise.
12966 * main.c: Likewise.
12967 * nto-tdep.c: Likewise.
12968 * objfiles.c: Likewise.
12969 * source.c: Likewise.
12970 * symtab.c: Likewise.
12971 * utils.c: Include "common/pathstuff.h".
12972 (gdb_realpath): Move to "common/pathstuff.c".
12973 (gdb_realpath_keepfile): Likewise.
12974 (gdb_abspath): Likewise.
12975 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12976 (gdb_realpath_keepfile): Likewise.
12977 (gdb_abspath): Likewise.
12978
f169cfdc
JB
129792018-02-28 John Baldwin <jhb@FreeBSD.org>
12980
12981 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12982 wildcard process pid for super_resume for kernels with a
12983 specific bug.
12984
e05cac70
PM
129852018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12986
12987 * compile/compile.c (get_args): Add additional comments
12988 explaining function.
12989
55089490
TT
129902018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12991 Tom Tromey <tom@tromey.com>
12992
12993 * target.h (memory_write_request_s): Remove typedef. Don't define
12994 VEC.
12995 (target_write_memory_blocks): Change argument to std::vector.
12996 (struct memory_write_request): Add constructor.
12997 * target-memory.c (compare_block_starting_address): Return bool.
12998 Change argument types.
12999 (claim_memory): Change arguments to use std::vector.
13000 (split_regular_and_flash_blocks, blocks_to_erase)
13001 (compute_garbled_blocks): Likewise.
13002 (cleanup_request_data, cleanup_write_requests_vector): Remove.
13003 (target_write_memory_blocks): Change argument to std::vector.
13004 * symfile.c (struct load_section_data): Add constructor and
13005 destructor. Use std::vector for "requests".
13006 (struct load_progress_data): Add initializers.
13007 (load_section_callback): Update. Use "new".
13008 (clear_memory_write_data): Remove.
13009 (generic_load): Update.
13010
0c305b61
AH
130112018-02-27 Alan Hayward <alan.hayward@arm.com>
13012
13013 * arch/aarch64.h: Use common/tdesc.h.
13014
c5196c92
MR
130152018-02-26 Maciej W. Rozycki <macro@mips.com>
13016
13017 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13018 architecture with a 64-bit ABI.
13019
37c33887
MR
130202018-02-26 Maciej W. Rozycki <macro@mips.com>
13021
13022 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13023 ahead of target description loading.
13024
d4dd3282
TT
130252018-02-26 Tom Tromey <tom@tromey.com>
13026
13027 * stack.c (backtrace_command_1): Update.
13028 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13029 of "flags".
13030 * python/py-framefilter.c (py_print_frame)
13031 (gdbpy_apply_frame_filter): Change type of "flags".
13032 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13033 of "flags".
13034 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13035 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13036 * extension.h (enum frame_filter_flag): Rename from
13037 frame_filter_flags.
13038 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13039 (apply_ext_lang_frame_filter): Change type of "flags".
13040 * extension.c (apply_ext_lang_frame_filter): Change type of
13041 "flags".
13042 * extension-priv.h (struct extension_language_ops)
13043 <apply_frame_filter>: Change type of "flags".
13044
6893c19a
TT
130452018-02-26 Tom Tromey <tom@tromey.com>
13046
13047 PR python/16497:
13048 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
13049 off-by-one in py_end computation.
13050 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13051 PRINT_MORE_FRAMES.
13052 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
13053 constant.
13054
2ddeaf8a
TT
130552018-02-26 Tom Tromey <tom@tromey.com>
13056
13057 * dwarf2read.c (struct variant_field): New.
13058 (struct nextfield) <variant>: New field.
13059 (dwarf2_add_field): Handle DW_TAG_variant_part.
13060 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
13061 discriminated union.
13062 (read_structure_type): Handle DW_TAG_variant_part.
13063 (handle_struct_member_die): New function, extracted from
13064 process_structure_scope. Handle DW_TAG_variant.
13065 (process_structure_scope): Handle discriminated unions. Call
13066 handle_struct_member_die.
13067
c9317f21
TT
130682018-02-26 Tom Tromey <tom@tromey.com>
13069
13070 * rust-lang.h (rust_last_path_segment): Declare.
13071 * rust-lang.c (rust_last_path_segment): Now public. Change
13072 contract.
13073 (struct disr_info): Remove.
13074 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
13075 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
13076 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
13077 (rust_enum_p, rust_enum_variant): New function.
13078 (rust_underscore_fields): Remove "offset" parameter.
13079 (rust_print_enum): New function.
13080 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
13081 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
13082 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
13083 enums.
13084 (rust_internal_print_type): New function, from rust_print_type.
13085 Remove enum code.
13086 (rust_print_type): Call rust_internal_print_type.
13087 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
13088 Update enum handling.
13089 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
13090 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
13091 (rust_union_quirks): New functions.
13092 (process_full_comp_unit, process_full_type_unit): Call
13093 rust_union_quirks.
13094 (process_structure_scope): Update rust_unions if necessary.
13095
7c22600a
TT
130962018-02-26 Tom Tromey <tom@tromey.com>
13097
13098 * value.h (value_union_variant): Declare.
13099 * valops.c (value_union_variant): New function.
13100 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
13101 (struct discriminant_info): New.
13102 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
13103 enumerator.
13104 (struct main_type) <flag_discriminated_union>: New field.
13105
15ce8941
TT
131062018-02-26 Tom Tromey <tom@tromey.com>
13107
13108 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13109 unittests/unpack-selftests.c.
13110 * unittests/unpack-selftests.c: New file.
13111 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
13112
48fbe735
YQ
131132018-02-26 Yao Qi <yao.qi@linaro.org>
13114
13115 * dwarf2read.c (struct partial_die_info) <read>: New method.
13116 (read_partial_die): Remove the declaration.
13117 (load_partial_dies): Update.
13118 (partial_die_info::partial_die_info):
13119 (read_partial_die): Change it to partial_die_info::read.
13120
52356b79
YQ
131212018-02-26 Yao Qi <yao.qi@linaro.org>
13122
13123 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
13124 (fixup_partial_die): Remove declaration.
13125 (scan_partial_symbols): Update.
13126 (partial_die_parent_scope): Likewise.
13127 (partial_die_full_name): Likewise.
13128 (fixup_partial_die): Change it to partial_die_info::fixup.
13129
35cc7ed7
YQ
131302018-02-26 Yao Qi <yao.qi@linaro.org>
13131
13132 * dwarf2read.c (read_partial_die): Update the declaration.
13133 (load_partial_dies): Caller update.
13134 (read_partial_die): Remove one argument abbrev_len.
13135
6f06d47b
YQ
131362018-02-26 Yao Qi <yao.qi@linaro.org>
13137
13138 * dwarf2read.c (struct partial_die_info): Add ctor, delete
13139 assignment operator.
13140 (load_partial_dies): Use ctor and copy ctor.
13141 (read_partial_die): Update.
13142 (dwarf2_cu::find_partial_die): Use ctor.
13143
d590ff25
YQ
131442018-02-26 Yao Qi <yao.qi@linaro.org>
13145
13146 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
13147 (find_partial_die_in_comp_unit): Change it to
13148 dwarf2_cu::find_partial_die.
13149 (find_partial_die): Update.
13150
fd0a254f
YQ
131512018-02-26 Yao Qi <yao.qi@linaro.org>
13152
13153 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13154 is NULL.
13155
cd9983dd
YQ
131562018-02-26 Yao Qi <yao.qi@linaro.org>
13157
13158 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13159
f46cd62a
AH
131602018-02-26 Alan Hayward <alan.hayward@arm.com>
13161
13162 * arch/amd64.h: Use common/tdesc.h.
13163 * arch/i386.c: Likewise.
13164 * arch/i386.h: Likewise.
13165 * arch/tic6x.c: Likewise.
13166 * arch/tdesc.h: Move file from here...
13167 * common/tdesc.h: ...to here.
13168 * features/aarch64-core.c: Regenerate.
13169 * features/aarch64-fpu.c: Regenerate.
13170 * features/i386/32bit-avx.c: Regenerate.
13171 * features/i386/32bit-avx512.c: Regenerate.
13172 * features/i386/32bit-core.c: Regenerate.
13173 * features/i386/32bit-linux.c: Regenerate.
13174 * features/i386/32bit-mpx.c: Regenerate.
13175 * features/i386/32bit-pkeys.c: Regenerate.
13176 * features/i386/32bit-sse.c: Regenerate.
13177 * features/i386/64bit-avx.c: Regenerate.
13178 * features/i386/64bit-avx512.c: Regenerate.
13179 * features/i386/64bit-core.c: Regenerate.
13180 * features/i386/64bit-linux.c: Regenerate.
13181 * features/i386/64bit-mpx.c: Regenerate.
13182 * features/i386/64bit-pkeys.c: Regenerate.
13183 * features/i386/64bit-segments.c: Regenerate.
13184 * features/i386/64bit-sse.c: Regenerate.
13185 * features/i386/x32-core.c: Regenerate.
13186 * features/tic6x-c6xp.c: Regenerate.
13187 * features/tic6x-core.c: Regenerate.
13188 * features/tic6x-gp.c: Regenerate.
13189 * target-descriptions.c: Use common/tdesc.h.
13190 * target-descriptions.h: Likewise.
13191
9b292f68
TT
131922018-02-24 Tom Tromey <tom@tromey.com>
13193
13194 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13195 (try_thread_db_load_from_dir, thread_db_load_search): Use
13196 std::string.
13197 (info_auto_load_libthread_db_compare): Return bool. Change
13198 argument types.
13199 (info_auto_load_libthread_db): Use std::vector, std::string.
13200 Remove cleanups.
13201
281d762b
TT
132022018-02-24 Tom Tromey <tom@tromey.com>
13203
13204 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13205 std::string.
13206 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13207 std::string*.
13208 * gdbarch.c: Rebuild.
13209 * gdbarch.h: Rebuild.
13210 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13211 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13212 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13213 std::string*.
13214
9d8780f0
SM
132152018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
13216
13217 * gdbtypes.h (sect_offset): Change type to uint64_t.
13218 (sect_offset_str): New function.
13219 * dwarf2read.c (create_addrmap_from_aranges): Use
13220 sect_offset_str.
13221 (error_check_comp_unit_head): Likewise.
13222 (create_debug_type_hash_table): Likewise.
13223 (read_cutu_die_from_dwo): Likewise.
13224 (init_cutu_and_read_dies): Likewise.
13225 (init_cutu_and_read_dies_no_follow): Likewise.
13226 (process_psymtab_comp_unit_reader): Likewise.
13227 (partial_die_parent_scope): Likewise.
13228 (peek_die_abbrev): Likewise.
13229 (process_queue): Likewise.
13230 (dwarf2_physname): Likewise.
13231 (read_namespace_alias): Likewise.
13232 (read_import_statement): Likewise.
13233 (create_dwo_cu_reader): Likewise.
13234 (create_cus_hash_table): Likewise.
13235 (lookup_dwo_cutu): Likewise.
13236 (inherit_abstract_dies): Likewise.
13237 (read_func_scope): Likewise.
13238 (read_call_site_scope): Likewise.
13239 (dwarf2_add_member_fn): Likewise.
13240 (read_common_block): Likewise.
13241 (read_module_type): Likewise.
13242 (read_typedef): Likewise.
13243 (read_subrange_type): Likewise.
13244 (load_partial_dies): Likewise.
13245 (read_partial_die): Likewise.
13246 (find_partial_die): Likewise.
13247 (read_str_index): Likewise.
13248 (dwarf2_string_attr): Likewise.
13249 (build_error_marker_type): Likewise.
13250 (lookup_die_type): Likewise.
13251 (dump_die_shallow): Likewise.
13252 (follow_die_ref): Likewise.
13253 (dwarf2_fetch_die_loc_sect_off): Likewise.
13254 (dwarf2_fetch_constant_bytes): Likewise.
13255 (follow_die_sig): Likewise.
13256 (get_signatured_type): Likewise.
13257 (get_DW_AT_signature_type): Likewise.
13258 (dwarf2_find_containing_comp_unit): Likewise.
13259 (set_die_type): Likewise.
13260
8ec57239
JB
132612018-02-21 John Baldwin <jhb@FreeBSD.org>
13262
13263 * arch/aarch64.c: Include "common-defs.h".
13264 * arch/amd64.c: Likewise.
13265 * arch/i386.c: Likewise.
13266
3eac2b65
TT
132672018-02-21 Tom Tromey <tom@tromey.com>
13268
13269 * value.h: (extract_field_op): Update.
13270 * eval.c (extract_field_op): Return a const char *.
13271 * expression.h (parse_expression_for_completion): Update.
13272 * completer.c (complete_expression): Update.
13273 (add_struct_fields): Make fieldname const.
13274 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
13275 (mark_completion_tag, parse_exp_in_context_1): Update.
13276 (parse_expression_for_completion): Change "name" to
13277 unique_xmalloc_ptr*.
13278
6ccb583f
TT
132792018-02-21 Tom Tromey <tom@tromey.com>
13280
13281 * infcall.c (call_function_by_hand_dummy): Use std::vector.
13282
c113ed0c
YQ
132832018-02-21 Yao Qi <yao.qi@linaro.org>
13284
13285 * avr-tdep.c (avr_read_pc): Change parameter type to
13286 readable_regcache.
13287 * gdbarch.sh (read_pc): Likewise.
13288 * gdbarch.c: Re-generated.
13289 * gdbarch.h: Re-generated.
13290 * hppa-tdep.c (hppa_read_pc): Change parameter type to
13291 readable_regcache.
13292 * ia64-tdep.c (ia64_read_pc): Likewise.
13293 * mips-tdep.c (mips_read_pc): Likewise.
13294 * spu-tdep.c (spu_read_pc): Likewise.
13295
4c74fe6b
YQ
132962018-02-21 Yao Qi <yao.qi@linaro.org>
13297
13298 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
13299 * regcache-dump.c: New file.
13300 * regcache.c: Move register_dump to regcache-dump.c.
13301 (maintenance_print_registers): Likewise.
13302 (maintenance_print_raw_registers): Likewise.
13303 (maintenance_print_cooked_registers): Likewise.
13304 (maintenance_print_register_groups): Likewise.
13305 (maintenance_print_remote_registers): Likewise.
13306 (_initialize_regcache): Likewise.
13307 * regcache.h (register_dump): Moved from regcache.c.
13308
796bb026
YQ
133092018-02-21 Yao Qi <yao.qi@linaro.org>
13310
13311 * regcache.c (regcache::regcache): Update.
13312 (regcache::invalidate): Move it to detached_regcache::invalidate.
13313 (get_thread_arch_aspace_regcache): Update.
13314 (regcache::raw_update): Update.
13315 (regcache::cooked_read): Remove some code.
13316 (regcache::cooked_read_value): Likewise.
13317 (regcache::raw_write): Remove assert on m_readonly_p.
13318 (regcache::raw_supply_integer): Move it to
13319 detached_regcache::raw_supply_integer.
13320 (regcache::raw_supply_zeroed): Likewise.
13321 * regcache.h (detached_regcache) <raw_supply_integer>: New
13322 declaration.
13323 <raw_supply_zeroed, invalidate>: Likewise.
13324 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
13325 <invalidate>: Likewise.
13326 <m_readonly_p>: Removed.
13327
215c69dc
YQ
133282018-02-21 Yao Qi <yao.qi@linaro.org>
13329
13330 * infcmd.c (get_return_value): Let stop_regs point to
13331 get_current_regcache.
13332 * regcache.c (regcache::regcache): Remove.
13333 (register_dump_reg_buffer): New class.
13334 (regcache_print): Adjust.
13335 * regcache.h (regcache): Remove constructors.
13336
f3384e66
YQ
133372018-02-21 Yao Qi <yao.qi@linaro.org>
13338
13339 * regcache.c (class register_dump): New class.
13340 (register_dump_regcache, register_dump_none): New class.
13341 (register_dump_remote, register_dump_groups): New class.
13342 (regcache_print): Update.
13343 * regcache.h (regcache_dump_what): Move it to regcache.c.
13344 (regcache) <dump>: Remove.
13345
c8ec2f33
YQ
133462018-02-21 Yao Qi <yao.qi@linaro.org>
13347
13348 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
13349 reg_buffer_rw *.
13350 (jit_unwind_reg_set_impl): Call raw_supply.
13351 (jit_frame_sniffer): Use reg_buffer_rw.
13352 * record-full.c (record_full_core_regbuf): Change its type.
13353 (record_full_core_open_1): Use reg_buffer_rw.
13354 (record_full_close): Likewise.
13355 (record_full_core_fetch_registers): Use regcache->raw_supply.
13356 (record_full_core_store_registers): Likewise.
13357 * regcache.c (regcache::get_register_status): Move it to
13358 reg_buffer.
13359 (regcache_raw_set_cached_value): Remove.
13360 (regcache::raw_set_cached_value): Remove.
13361 (regcache::raw_write): Call raw_supply.
13362 (regcache::raw_supply): Move it to reg_buffer_rw.
13363 * regcache.h (regcache_raw_set_cached_value): Remove.
13364 (reg_buffer_rw): New class.
13365
daf6667d
YQ
133662018-02-21 Yao Qi <yao.qi@linaro.org>
13367
13368 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
13369 readonly_detached_regcache.
13370 (dummy_frame_prev_register): Use regcache->cooked_read.
13371 * frame.c (frame_save_as_regcache): Change return type.
13372 (frame_pop): Update.
13373 * frame.h (frame_save_as_regcache): Update declaration.
13374 * inferior.h (get_infcall_suspend_state_regcache): Update
13375 declaration.
13376 * infrun.c (infcall_suspend_state) <registers>: use
13377 readonly_detached_regcache.
13378 (save_infcall_suspend_state): Don't use regcache_dup.
13379 (get_infcall_suspend_state_regcache): Change return type.
13380 * linux-fork.c (struct fork_info) <savedregs>: Change to
13381 readonly_detached_regcache.
13382 <pc>: New field.
13383 (fork_save_infrun_state): Don't use regcache_dup.
13384 (info_checkpoints_command): Adjust.
13385 * mi/mi-main.c (register_changed_p): Update declaration.
13386 (mi_cmd_data_list_changed_registers): Use
13387 readonly_detached_regcache.
13388 (register_changed_p): Change parameter type to
13389 readonly_detached_regcache.
13390 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
13391 readonly_detached_regcache.
13392 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
13393 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
13394 New.
13395 (regcache::save): Move it to reg_buffer.
13396 (regcache::restore): Change parameter type.
13397 (regcache_dup): Remove.
13398 * regcache.h (reg_buffer) <save>: New method.
13399 (readonly_detached_regcache): New class.
13400 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
13401 readonly_detached_regcache.
13402 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
13403
fc5b8736
YQ
134042018-02-21 Yao Qi <yao.qi@linaro.org>
13405
13406 * frame.c (frame_save_as_regcache): Use regcache method save.
13407 (frame_pop): Use regcache method restore.
13408 * infrun.c (restore_infcall_suspend_state): Likewise.
13409 * linux-fork.c (fork_load_infrun_state): Likewise.
13410 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
13411 save.
13412 * regcache.c (regcache_save): Remove.
13413 (regcache::restore): More asserts.
13414 (regcache_cpy): Remove.
13415 * regcache.h (regcache_save): Remove the declaration.
13416 (regcache::restore): Move from private to public.
13417 Remove the friend declaration of regcache_cpy.
13418 (regcache_cpy): Remove declaration.
13419
849d0ba8
YQ
134202018-02-21 Yao Qi <yao.qi@linaro.org>
13421
13422 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
13423 parameter type to 'readable_regcache *'.
13424 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13425 * arm-tdep.c (arm_neon_quad_read): Likewise.
13426 (arm_pseudo_read): Likewise.
13427 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13428 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13429 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13430 * gdbarch.c: Re-generated.
13431 * gdbarch.h: Re-generated.
13432 * gdbarch.sh (pseudo_register_read): Change parameter type to
13433 'readable_regcache *'.
13434 (pseudo_register_read_value): Likewise.
13435 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
13436 (h8300_pseudo_register_read): Likewise.
13437 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
13438 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13439 (i386_pseudo_register_read_into_value): Likewise.
13440 (i386_pseudo_register_read_value): Likewise.
13441 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
13442 declaration.
13443 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
13444 * m32c-tdep.c (m32c_raw_read): Likewise.
13445 (m32c_read_flg): Likewise.
13446 (m32c_banked_register): Likewise.
13447 (m32c_banked_read): Likewise.
13448 (m32c_sb_read): Likewise.
13449 (m32c_part_read): Likewise.
13450 (m32c_cat_read): Likewise.
13451 (m32c_r3r2r1r0_read): Likewise.
13452 (m32c_pseudo_register_read): Likewise.
13453 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13454 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13455 (mep_pseudo_cr64_read): Likewise.
13456 (mep_pseudo_register_read): Likewise.
13457 * mips-tdep.c (mips_pseudo_register_read): Likewise.
13458 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13459 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13460 * regcache.c (regcache::raw_read): Move it to readable_regcache.
13461 (regcache::cooked_read): Likewise.
13462 (regcache::cooked_read_value): Likewise.
13463 (regcache_cooked_read_signed):
13464 (regcache::cooked_read): Likewise.
13465 * regcache.h (readable_regcache): New class.
13466 (regcache): Inherit readable_regcache. Move some methods to
13467 readable_regcache.
13468 * rl78-tdep.c (rl78_pseudo_register_read): Change
13469 parameter type to 'readable_regcache *'.
13470 * rs6000-tdep.c (do_regcache_raw_read): Remove.
13471 (e500_pseudo_register_read): Change parameter type to
13472 'readable_regcache *'.
13473 (dfp_pseudo_register_read): Likewise.
13474 (vsx_pseudo_register_read): Likewise.
13475 (efpr_pseudo_register_read): Likewise.
13476 * s390-tdep.c (s390_pseudo_register_read): Likewise.
13477 * sh-tdep.c (sh_pseudo_register_read): Likewise.
13478 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
13479 (sh64_pseudo_register_read): Likewise.
13480 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13481 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13482 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13483 (spu_pseudo_register_read): Likewise.
13484 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13485 (xtensa_pseudo_register_read): Likewise.
13486
31716595
YQ
134872018-02-21 Yao Qi <yao.qi@linaro.org>
13488
13489 * regcache.c (regcache::regcache): Call reg_buffer ctor.
13490 (regcache::arch): Move it to reg_buffer::arch.
13491 (regcache::register_buffer): Likewise.
13492 (regcache::assert_regnum): Likewise.
13493 (regcache::num_raw_registers): Likewise.
13494 * regcache.h (reg_buffer): New class.
13495 (regcache): Inherit reg_buffer.
13496
7104e59b
SM
134972018-02-20 Simon Marchi <simon.marchi@ericsson.com>
13498
13499 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
13500 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
13501
2d8adcbd
MM
135022018-02-20 Markus Metzger <markus.t.metzger@intel.com>
13503
13504 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
13505
b5884fa7
AH
135062018-02-19 Alan Hayward <alan.hayward@arm.com>
13507
13508 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
13509 (SFILES): Remove common/*.c files.
13510 (COMMON_OBS): Remove some *.o files built from common/*.c files.
13511 * common/common.host: Add common reference.
13512 * configure.ac: Likewise.
13513 * configure: Regenerate.
13514
fd90ace4
YQ
135152018-02-16 Yao Qi <yao.qi@linaro.org>
13516
13517 * block.c (block_namespace_info): Inherit allocate_on_obstack.
13518 (block_initialize_namespace): Use new.
13519 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
13520 (dwarf2_free_objfile): Use delete.
13521 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
13522 (copy_type_recursive): Use new.
13523 * gdb_obstack.h (allocate_on_obstack): New.
13524
85046ae2
YQ
135252018-02-15 Yao Qi <yao.qi@linaro.org>
13526
13527 PR gdb/22849
13528 * inferior.c (exit_inferior_1): Reset inf->control.
13529
355c559b
JB
135302018-02-15 Joel Brobecker <brobecker@adacore.com>
13531
13532 * ada-lang.c (ada_to_fixed_value_create): Delete advance
13533 declaration.
13534
980548fd
PA
135352018-02-14 Pedro Alves <palves@redhat.com>
13536
13537 * frame-unwind.c (frame_unwind_try_unwinder): Always call
13538 frame_cleanup_after_sniffer on exception.
13539
692d6f97
TT
135402018-02-14 Tom Tromey <tom@tromey.com>
13541
13542 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
13543 const.
13544 (solib_bfd_open): Make pathname const.
13545 * solib.c (solib_bfd_open): Make pathname const.
13546 * solib-spu.c (spu_bfd_fopen): Make name const.
13547 (spu_bfd_open): Make pathname const.
13548 * solib-darwin.c (darwin_bfd_open): Make pathname const.
13549 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
13550
e0cc99a6
TT
135512018-02-14 Tom Tromey <tom@tromey.com>
13552
13553 * symfile.c (symfile_bfd_open): Update.
13554 * source.h (openp, source_full_path_of, find_and_open_source):
13555 Change argument type to unique_xmalloc_ptr.
13556 * source.c (openp): Take a unique_xmalloc_ptr.
13557 (source_full_path_of, find_and_open_source): Likewise.
13558 (open_source_file, symtab_to_fullname): Update.
13559 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
13560 unique_xmalloc_ptr.
13561 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
13562 (exec_file_find): Update.
13563 * psymtab.c (psymtab_to_fullname): Update.
13564 * nto-tdep.h (nto_find_and_open_solib): Update.
13565 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
13566 unique_xmalloc_ptr.
13567 * exec.c (exec_file_attach): Update.
13568 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
13569 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
13570
b46a8d7c
TT
135712018-02-14 Tom Tromey <tom@tromey.com>
13572
13573 * solib.c: Include source.h.
13574 * nto-tdep.c: Include source.h.
13575 * mi/mi-cmd-env.c: Include source.h.
13576 * infcmd.c: Include source.h.
13577 * exec.c: Include source.h.
13578 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
13579 (add_path, directory_switch, source_path, init_source_path): Move
13580 declarations...
13581 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
13582 (add_path, directory_switch, source_path, init_source_path):
13583 ...here.
13584
797bc1cb
TT
135852018-02-14 Tom Tromey <tom@tromey.com>
13586
13587 * solist.h (exec_file_find, solib_find): Return
13588 unique_xmalloc_ptr.
13589 (solib_bfd_fopen): Take a const char *.
13590 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
13591 (exec_file_find, solib_find): Likewise.
13592 (solib_bfd_fopen): Do not take ownership of "pathname".
13593 (solib_bfd_open): Use unique_xmalloc_ptr.
13594 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
13595 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
13596 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
13597 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
13598
f98b2e33
JB
135992018-02-14 Joel Brobecker <brobecker@adacore.com>
13600
13601 * ada-lang.c (name_match_type_from_name): Remove reference to
13602 ada_name_for_lookup in function's documentation.
13603 * ada-lang.h (ada_name_for_lookup): Delete declaration.
13604
24b9144d
SM
136052018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13606
13607 * defs.h (enum openp_flags): New enum.
13608 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
13609 Move to enum openp_flags.
13610 (openp_flags): New enum flags.
13611 (openp): Change parameter type to openp_flags.
13612 * source.c (openp): Change parameter type to openp_flags.
13613 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
13614 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
13615
387cd15b
SM
136162018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13617
13618 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
13619 per-command.
13620
b303c6f6
AB
136212018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
13622
13623 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
13624 into...
13625 (class dwarf2_queue_guard): ...the destructor of this new class.
13626 (dw2_do_instantiate_symtab): Create instance of the new class
13627 dwarf2_queue_guard, remove cleanup.
13628
9c3630e9
TT
136292018-02-09 Tom Tromey <tom@tromey.com>
13630
13631 * source.c (find_source_lines): Don't reference past the end of
13632 the vector.
13633
c4e12631
MM
136342018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13635
13636 * remote.c (remote_btrace_maybe_reopen): Change error message.
13637 * btrace.c (btrace_enable): Likewise.
13638 (parse_xml_btrace): Likewise.
13639 (parse_xml_btrace_conf): Likewise.
13640
88711fbf
MM
136412018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13642
13643 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13644 (linux_enable_pt, linux_enable_bts): Call
13645 diagnose_perf_event_open_fail.
13646
17ad2a4f
MM
136472018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13648
13649 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13650 Remove parameter and change return type. Update callers. Move it.
13651 (linux_enable_bts, linux_enable_pt): Improve error message.
13652 (linux_enable_pt): Remove zero buffer size check.
13653 (linux_enable_btrace): Improve error messages. Remove NULL return
13654 check.
13655
de6242d3
MM
136562018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13657
13658 * btrace.c (btrace_enable): Remove target_supports_btrace call.
13659 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13660 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13661 (linux_supports_pt, linux_supports_btrace): Remove.
13662 (linux_enable_bts): Call cpu_supports_bts.
13663 * nat/linux-btrace.h (linux_supports_btrace): Remove.
13664 * remote.c (remote_supports_btrace): Remove.
13665 (init_remote_ops): Remove remote_supports_btrace.
13666 * target-delegates.c: Regenerated.
13667 * target.c (target_supports_btrace): Remove.
13668 * target.h (target_ops) <to_supports_btrace>: Remove
13669 (target_supports_btrace): Remove.
13670 * x86-linux-nat.c (x86_linux_create_target): Remove
13671 linux_supports_btrace.
13672
9ee23a85
MM
136732018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13674
13675 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13676 btrace failed.
13677 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13678 exception and use message in own exception.
13679
5c3284c1
MM
136802018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13681
13682 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13683 (perf_event_pt_event_type): Use gdb_file_up.
13684 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13685 scoped_fd, and scoped_mmap.
13686
84696f37
MM
136872018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13688
13689 * common/scoped_mmap.h: New.
13690 * unittests/scoped_mmap-selftest.c: New.
13691 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13692 unittests/scoped_mmap-selftest.c.
13693
ea4a0888
MM
136942018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13695
13696 * common/scoped_fd.h: New.
13697 * unittests/scoped_fd-selftest.c: New.
13698 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13699 unittests/scoped_fd-selftest.c.
13700
869e8290
TT
137012018-02-09 Tom Tromey <tom@tromey.com>
13702
13703 * auto-load.c (auto_load_section_scripts): Use
13704 gdb::unique_xmalloc_ptr.
13705
a37a2ae7
TT
137062018-02-09 Tom Tromey <tom@tromey.com>
13707
13708 * auto-load.c (execute_script_contents): Use std::string.
13709
4e725347
JB
137102018-02-09 Joel Brobecker <brobecker@adacore.com>
13711
13712 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13713 Python function, rather than a new command.
13714
9a897d43
TT
137152018-02-08 Tom Tromey <tom@tromey.com>
13716
13717 * solib.c (solib_find_1): Use std::string.
13718 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13719
58ef3771
TT
137202018-02-08 Tom Tromey <tom@tromey.com>
13721
13722 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13723
a9abc434
TT
137242018-02-08 Tom Tromey <tom@tromey.com>
13725
13726 * source.c (find_source_lines): Use gdb::def_vector.
13727
84f27c6f
TT
137282018-02-08 Tom Tromey <tom@tromey.com>
13729
13730 * macrocmd.c (struct temporary_macro_definition): New.
13731 (macro_define_command): Use temporary_macro_definition. Remove
13732 cleanups.
13733 (free_macro_definition_ptr): Remove.
13734
0354904b
TT
137352018-02-08 Tom Tromey <tom@tromey.com>
13736
13737 * macroexp.c (maybe_expand): Use std::string.
13738
1739cf24
TT
137392018-02-08 Tom Tromey <tom@tromey.com>
13740
13741 * macroexp.c (struct macro_buffer): Add initializers for some
13742 members.
13743 (init_buffer, init_shared_buffer, free_buffer)
13744 (free_buffer_return_text): Remove.
13745 (macro_buffer): New constructors.
13746 (~macro_buffer): New destructor.
13747 (macro_buffer::set_shared): New method.
13748 (macro_buffer::resize_buffer, macro_buffer::appendc)
13749 (macro_buffer::appendmem): Now methods, not free functions.
13750 (set_token, append_tokens_without_splicing, stringify)
13751 (macro_stringify): Update.
13752 (gather_arguments): Change return type. Remove argc_p argument,
13753 add args_ptr argument. Use std::vector.
13754 (substitute_args): Remove argc argument. Accept std::vector.
13755 (expand): Update. Use std::vector.
13756 (scan, macro_expand, macro_expand_next): Update.
13757
f6c2623e
TT
137582018-02-08 Tom Tromey <tom@tromey.com>
13759
13760 * symtab.c (default_collect_symbol_completion_matches_break_on):
13761 Use unique_xmalloc_ptr.
13762 * macroscope.h: (sal_macro_scope, user_macro_scope)
13763 (default_macro_scope): Return unique_xmalloc_ptr.
13764 * macroscope.c (sal_macro_scope, user_macro_scope)
13765 (default_macro_scope): Return unique_xmalloc_ptr.
13766 * macroexp.h (macro_expand, macro_expand_once): Return
13767 unique_xmalloc_ptr.
13768 * macroexp.c (macro_expand, macro_expand_once): Return
13769 unique_xmalloc_ptr.
13770 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13771 (info_macro_command, info_macros_command): Use
13772 unique_xmalloc_ptr.
13773 * compile/compile-c-support.c (write_macro_definitions): Use
13774 unique_xmalloc_ptr.
13775 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13776
c2e0e465
SM
137772018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13778
13779 * value.c (value_static_field): Assign field type instead of
13780 containing type when returning an optimized out value.
13781
3f8c94b4
YQ
137822018-02-06 Yao Qi <yao.qi@linaro.org>
13783
13784 * ft32-tdep.c (ft32_read_pc): Remove.
13785 (ft32_write_pc): Remove.
13786 (ft32_gdbarch_init): Update.
13787 * m32r-tdep.c (m32r_read_pc): Remove.
13788 (m32r_gdbarch_init): Update.
13789 * mep-tdep.c (mep_read_pc): Remove.
13790 (mep_gdbarch_init): Update.
13791 * microblaze-tdep.c (microblaze_write_pc): Remove.
13792 (microblaze_gdbarch_init): Update.
13793 * mn10300-tdep.c (mn10300_read_pc): Remove.
13794 (mn10300_write_pc): Remove.
13795 (mn10300_gdbarch_init): Update.
13796 * moxie-tdep.c (moxie_read_pc): Remove.
13797 (moxie_write_pc): Remove.
13798 (moxie_gdbarch_init): Update.
13799
bca65a23
YQ
138002018-02-06 Yao Qi <yao.qi@linaro.org>
13801
13802 * expprint.c (print_subexp_standard): Handle
13803 OP_F77_UNDETERMINED_ARGLIST.
13804 (dump_subexp_body_standard): Likewise.
13805
583e3f90 138062018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 13807
583e3f90
YQ
13808 * target-descriptions.c (tdesc_element_visitor) Add empty
13809 implementations.
b8df6ca7
AH
13810 (tdesc_type): Move make_gdb_type from here.
13811 (tdesc_type_builtin): Likewise.
13812 (tdesc_type_vector): Likewise.
13813 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13814 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13815 (make_gdb_type_union): Likewise.
13816 (make_gdb_type_flags): Likewise.
13817 (make_gdb_type_enum): Likewise.
13818 (make_gdb_type): New function.
13819 (tdesc_register_type): Use static make_gdb_type.
13820
e813d34a
RK
138212018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13822
13823 * infcmd.c (default_print_one_register_info): Align natural-format
13824 column values consistently one under another.
13825 (pad_to_column): New function.
13826
0eb876f5
JB
138272018-02-05 Joel Brobecker <brobecker@adacore.com>
13828
13829 * dwarf2read.c (dwarf2_physname): Move commment.
13830
0625771b
LS
138312018-02-01 Leszek Swirski <leszeks@google.com>
13832
13833 * varobj.c (varobj_formatted_print_options): Allow recursive
13834 pretty printing if pretty printing is enabled.
13835
59498c30
LS
138362018-02-01 Leszek Swirski <leszeks@google.com>
13837
13838 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13839 names after a structop as a filename.
13840
2d9e6acb
YQ
138412018-02-01 Yao Qi <yao.qi@linaro.org>
13842
13843 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13844 (arm_record_coproc_data_proc): Likewise.
13845
df95a9cf
YQ
138462018-02-01 Yao Qi <yao.qi@linaro.org>
13847
13848 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13849
07e5f5cf
NP
138502018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13851
13852 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13853 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13854
3045b475
PA
138552018-01-31 Pedro Alves <palves@redhat.com>
13856
13857 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13858 * inflow.c (child_terminal_save_inferior): Wrap reference to
13859 tcgetpgrp in HAVE_TERMIOS_H.
13860 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13861 _WIN32.
13862 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13863 always iterate over all inferiors.
13864 (gdbsim_cntrl_c): Adjust.
13865 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13866
929b5ad4
JB
138672018-01-31 Joel Brobecker <brobecker@adacore.com>
13868
13869 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13870 index type is objfile-owned if the element type is as well.
13871
29236ca2
JB
138722018-01-31 Joel Brobecker <brobecker@adacore.com>
13873
13874 GDB 8.1 released.
13875
c81e8879
PR
138762018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13877
13878 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13879 "features/s390x-linux64.c".
13880 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13881 s390_linux32 and s390x_linux64.
13882 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13883 default tdesc.
13884 * s390-tdep.c: Include "features/s390-linux32.c" and
13885 "features/s390x-linux64.c".
13886 (s390_tdesc_valid): Add check for tdesc_has_registers.
13887 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13888 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13889 tdesc_s390x_linux64.
13890 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13891 tdesc_s390x_linux64 to...
13892 * s390-tdep.h: ...here.
13893
e671cd59
PA
138942018-01-30 Pedro Alves <palves@redhat.com>
13895
13896 PR gdb/13211
13897 * config.in, configure: Regenerate.
13898 * configure.ac: Check for getpgid.
13899 * go32-nat.c (go32_pass_ctrlc): New.
13900 (go32_target): Install it.
13901 * inf-child.c (inf_child_target): Install
13902 child_terminal_save_inferior, child_pass_ctrlc and
13903 child_interrupt.
13904 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13905 (inf_ptrace_target): No longer install it.
13906 * infcmd.c (interrupt_target_1): Adjust.
13907 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13908 (child_interrupt): Declare.
13909 (inferior::terminal_state): New.
13910 * inflow.c (struct terminal_info): Update comments.
13911 (inferior_process_group): Delete.
13912 (terminal_is_ours): Delete.
13913 (gdb_tty_state): New.
13914 (child_terminal_init): Adjust.
13915 (is_gdb_terminal, sharing_input_terminal_1)
13916 (sharing_input_terminal): New functions.
13917 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13918 Set the process's actual process group in the foreground if
13919 possible. Handle is_ours_for_output/is_ours distinction. Don't
13920 mark terminal as the inferior's if not sharing GDB's terminal.
13921 Don't check attach_flag.
13922 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13923 pass down a target_terminal_state.
13924 (child_terminal_save_inferior): New, factored out from ...
13925 (child_terminal_ours_1): ... this. Handle
13926 target_terminal_state::is_ours_for_output.
13927 (child_interrupt, child_pass_ctrlc): New.
13928 (inflow_inferior_exit): Clear the inferior's terminal_state.
13929 (copy_terminal_info): Copy the inferior's terminal state.
13930 (_initialize_inflow): Remove reference to terminal_is_ours.
13931 * inflow.h (inferior_process_group): Delete.
13932 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13933 * procfs.c (procfs_target): Don't install procfs_interrupt.
13934 (procfs_interrupt): Delete.
13935 * remote.c (remote_serial_quit_handler): Adjust.
13936 (remote_interrupt): Remove ptid parameter. Adjust.
13937 * target-delegates.c: Regenerate.
13938 * target.c: Include "terminal.h".
13939 (target_terminal::terminal_state): Rename to ...
13940 (target_terminal::m_terminal_state): ... this.
13941 (target_terminal::init): Adjust.
13942 (target_terminal::inferior): Adjust to per-inferior
13943 terminal_state.
13944 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13945 (target_terminal::ours, target_terminal::ours_for_output): Use
13946 target_terminal_is_ours_kind.
13947 (target_interrupt): Remove ptid parameter. Adjust.
13948 (default_target_pass_ctrlc): Adjust.
13949 * target.h (target_ops::to_terminal_save_inferior): New field.
13950 (target_ops::to_interrupt): Remove ptid_t parameter.
13951 (target_interrupt): Remove ptid_t parameter. Update comment.
13952 (target_pass_ctrlc): Update comment.
13953 * target/target.h (target_terminal_state): New scoped enum,
13954 factored out of ...
13955 (target_terminal::terminal_state): ... here.
13956 (target_terminal::inferior): Update comments.
13957 (target_terminal::restore_inferior): New.
13958 (target_terminal::is_inferior, target_terminal::is_ours)
13959 (target_terminal::is_ours_for_output): Adjust.
13960 (target_terminal::scoped_restore_terminal_state): Adjust to
13961 rename, and call restore_inferior() instead of inferior().
13962 (target_terminal::scoped_restore_terminal_state::m_state): Change
13963 type.
13964 (target_terminal::terminal_state): Rename to ...
13965 (target_terminal::m_terminal_state): ... this and change type.
13966
9c3a5d93
PA
139672018-01-30 Pedro Alves <palves@redhat.com>
13968
13969 * linux-nat.c (wait_for_signal): New function.
13970 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13971 directly.
13972 (async_terminal_is_ours)
13973 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13974 (linux_nat_add_target): Don't override
13975 to_terminal_inferior/to_terminal_ours.
13976
69ab5edb
SDJ
139772018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13978
13979 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13980
fc8e7e75
SM
139812018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13982
13983 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13984 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13985 dwarf2_per_objfile_free here.
13986 (dwarf2_per_objfile_free): Remove.
13987 (_initialize_dwarf2_read): Don't register
13988 dwarf2_per_objfile_free as a registry cleanup.
13989
b2a426e2
EZ
139902018-01-27 Eli Zaretskii <eliz@gnu.org>
13991
13992 Avoid compilation errors in MinGW native builds
13993
13994 The error is triggered by including python-internal.h, and the
13995 error message is:
13996
13997 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13998 from build-gnulib/import/math.h:27,
13999 from d:/usr/Python26/include/pyport.h:235,
14000 from d:/usr/Python26/include/Python.h:58,
14001 from python/python-internal.h:94,
14002 from python/py-arch.c:24:
14003 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14004 using ::hypot;
14005 ^~~~~
14006
14007 This happens because Python headers define 'hypot' to expand t
14008 '_hypot' in the Windows builds.
14009 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14010 'hypoth'. This avoids a compilation error.
14011
0bdd8eac
AH
140122018-01-26 Alan Hayward <alan.hayward@arm.com>
14013
14014 * MAINTAINERS (Write After Approval): Fix ordering.
14015
56ae9dc3
AH
140162018-01-26 Alan Hayward <alan.hayward@arm.com>
14017
14018 * MAINTAINERS (Write After Approval): Add Alan Hayward.
14019
7433498b
AM
140202018-01-26 Alan Modra <amodra@gmail.com>
14021
14022 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14023 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14024 Remove nop. Make const. Comment.
14025 (powerpc32_plt_stub_so_2): New.
14026 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14027 Correct count. Update uses.
14028 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14029 Move common code reading PLT entry word. Correct
14030 powerpc32_plt_stub PLT address calculation.
14031 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14032 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14033 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14034 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14035 (ppc64_standard_linkage8): Likewise.
14036 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14037 Correct insns description.
14038 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14039
0f59d5fc
PA
140402018-01-24 Pedro Alves <palves@redhat.com>
14041
14042 GCC PR libstdc++/83906
14043 * gdbtypes.c (operator==(const dynamic_prop &,
14044 const dynamic_prop &)): New.
14045 (operator==(const range_bounds &, const range_bounds &)): New.
14046 (check_types_equal): Use them instead of memcmp.
14047 * gdbtypes.h (operator==(const dynamic_prop &,
14048 const dynamic_prop &)): Declare.
14049 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14050 (operator==(const range_bounds &, const range_bounds &)): Declare.
14051 (operator!=(const range_bounds &, const range_bounds &)): Declare.
14052
ef8914a4
PR
140532018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14054
14055 * s390-linux-tdep.c (s390_record_address_mask)
14056 (s390_record_calc_disp_common, s390_record_calc_disp)
14057 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14058 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14059 (s390_process_record): Move to s390-tdep.c.
14060 (s390_linux_init_abi_any): Adjust.
14061 * s390-tdep.c (s390_record_address_mask)
14062 (s390_record_calc_disp_common, s390_record_calc_disp)
14063 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14064 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14065 (s390_process_record): Moved from s390-linux-tdep.c
14066 (s390_gdbarch_init): Adjust.
14067
d6e58945
PR
140682018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14069
14070 * s390-linux-nat.c (s390-tdep.h): New include.
14071 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
14072 (HFILES_NO_SRCDIR): Add s390-tdep.h.
14073 (ALLDEPFILES): Add s390-tdep.c.
14074 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
14075 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
14076 * s390-tdep.h: ...this. New file.
14077 * s390-linux-tdep.c (s390-tdep.h): New include.
14078 (_initialize_s390_tdep): Rename to...
14079 (_initialize_s390_linux_tdep): ...this and adjust.
14080 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
14081 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
14082 s390-tdep.h.
14083 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
14084 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
14085 (s390_is_partial_instruction, s390_software_single_step)
14086 (is_non_branch_ril, s390_displaced_step_copy_insn)
14087 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
14088 (s390_prologue_data, s390_addr, s390_store, s390_load)
14089 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
14090 (s390_register_call_saved, s390_guess_tracepoint_registers)
14091 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
14092 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
14093 (s390_pseudo_register_name, s390_pseudo_register_type)
14094 (s390_pseudo_register_read, s390_pseudo_register_write)
14095 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
14096 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
14097 (s390_addr_bits_remove, s390_address_class_type_flags)
14098 (s390_address_class_type_flags_to_name)
14099 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
14100 (s390_function_arg_float, s390_function_arg_vector)
14101 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
14102 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
14103 (s390_frame_align, s390_register_return_value, s390_return_value)
14104 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
14105 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
14106 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
14107 (s390_trad_frame_prev_register, s390_unwind_cache)
14108 (s390_prologue_frame_unwind_cache)
14109 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
14110 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
14111 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
14112 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
14113 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
14114 (s390_frame_base_address, s390_local_base_address)
14115 (s390_frame_base, s390_gcc_target_options)
14116 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
14117 (s390_validate_reg_range, s390_tdesc_valid)
14118 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
14119 * s390-tdep.c: ...this. New file.
14120
9c0b896e
PR
141212018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14122
14123 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
14124 (s390_process_record, s390_gdbarch_tdep_alloc)
14125 (s390_linux_init_abi_any): Use/set new hook.
14126
7042632b
PR
141272018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14128
14129 * s390-linux-tdep.c (osabi.h): New include.
14130 (s390_linux_init_abi_31, s390_linux_init_abi_64)
14131 (s390_linux_init_abi_any): New functions.
14132 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
14133
650f5e13
PR
141342018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14135
14136 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
14137 tdesc_has_registers check
14138
47c9317e
PR
141392018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14140
14141 * s390-linux-tdep.c (s390_tdesc_valid): New function.
14142 (s390_validate_reg_range): New macro.
14143 (s390_gdbarch_init): Adjust.
14144
095085d8
PR
141452018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14146
14147 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
14148 (s390_gdbarch_tdep_alloc): Adjust.
14149 (s390_gdbarch_init): Adjust.
14150
ab9bcc67
PR
141512018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14152
14153 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14154 <have_tdb>: Change type to bool.
14155 (s390_gdbarch_tdep_alloc): Adjust.
14156 (s390_gdbarch_init): Adjust.
14157
21f6f5ff
PR
141582018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14159
14160 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14161 (gdbarch_tdep) <have_upper, have_vx>: New fields.
14162 (s390_gdbarch_tdep_alloc): New function.
14163 (s390_gdbarch_init): Allocate tdep at start and use its fields
14164 instead of separate variables.
14165
0eb97953
PR
141662018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14167
14168 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14169 when looking for cached gdbarch and add comment for remaining.
14170
5c319bb2
PA
141712018-01-22 Pedro Alves <palves@redhat.com>
14172 Sergio Durigan Junior <sergiodj@redhat.com>
14173
14174 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14175 case.
14176
d65ce302
MR
141772018-01-22 Maciej W. Rozycki <macro@mips.com>
14178
14179 * MAINTAINERS: Update my company e-mail address.
14180
ec7a5fcb
YQ
141812018-01-22 Yao Qi <yao.qi@linaro.org>
14182
14183 * regcache.c (cooked_write_test): New function.
14184 (_initialize_regcache): Register the test.
14185
11f57cb6
YQ
141862018-01-22 Yao Qi <yao.qi@linaro.org>
14187
14188 * ia64-tdep.c (ia64_pseudo_register_read): Call
14189 regcache->cooked_read instead of regcache_cooked_read_unsigned.
14190 * m32c-tdep.c (m32c_cat_read): Likewise.
14191 (m32c_r3r2r1r0_read): Likewise.
14192 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14193 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14194
03f50fc8
YQ
141952018-01-22 Yao Qi <yao.qi@linaro.org>
14196
14197 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14198 method raw_read instead of regcache_raw_read.
14199 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14200 * arm-tdep.c (arm_neon_quad_read): Likewise.
14201 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14202 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14203 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14204 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14205 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14206 (i386_pseudo_register_read_into_value): Likewise.
14207 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14208 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14209 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14210 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14211 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14212 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14213 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14214 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14215 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14216
dc711524
YQ
142172018-01-22 Yao Qi <yao.qi@linaro.org>
14218
14219 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14220 * configure.tgt: Remove target mt.
14221 * mt-tdep.c: Remove.
14222 * regcache.c (cooked_read_test): Remove the check for mt.
14223
3f5a868b
YQ
142242018-01-22 Yao Qi <yao.qi@linaro.org>
14225
14226 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14227 instead of gdbarch_pseudo_register_read_value.
14228
de4cb04a
JB
142292018-01-22 Joel Brobecker <brobecker@adacore.com>
14230
14231 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14232 language is Ada.
14233
a9e40818
JB
142342018-01-22 Joel Brobecker <brobecker@adacore.com>
14235
14236 * linespec.c (create_sals_line_offset): Remove code that preserved
14237 the symtab_and_line's line number.
14238
e707fc44
AB
142392018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14240
14241 * varobj.c (varobj_create): Don't set valid_block when creating a
14242 floating varobj.
14243
03d0bf7b
AB
142442018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14245
14246 * varobj.c (varobj_create): Remove out of date comment.
14247
ae451627
AB
142482018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14249
14250 PR mi/20395
14251 * ada-exp.y (write_var_from_sym): Pass extra parameter when
14252 updating innermost block.
14253 * parse.c (innermost_block_tracker::update): Take extra type
14254 parameter, and check types match before updating innermost block.
14255 (write_dollar_variable): Update innermost block for registers.
14256 * parser-defs.h (enum innermost_block_tracker_type): New enum.
14257 (innermost_block_tracker::innermost_block_tracker): Initialise
14258 m_types member.
14259 (innermost_block_tracker::reset): Take type parameter.
14260 (innermost_block_tracker::update): Take type parameter, and pass
14261 type through as needed.
14262 (innermost_block_tracker::m_types): New member.
14263 * varobj.c (varobj_create): Pass type when reseting innermost
14264 block.
14265
aee1fcdf
AB
142662018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14267
14268 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14269 * ada-lang.c (resolve_subexp): Likewise.
14270 * breakpoint.c (set_breakpoint_condition) Likewise.
14271 (watch_command_1) Likewise.
14272 * c-exp.y (variable): Likewise.
14273 * d-exp.y (PrimaryExpression): Likewise.
14274 * f-exp.y (variable): Likewise.
14275 * go-exp.y (variable): Likewise.
14276 * m2-exp.y (variable): Likewise.
14277 * objfiles.c (objfile::~objfile): Likewise.
14278 * p-exp.y (variable): Likewise.
14279 * parse.c (innermost_block): Change type.
14280 * parser-defs.h (class innermost_block_tracker): New.
14281 (innermost_block): Change to innermost_block_tracker.
14282 * printcmd.c (display_command): Switch to innermost_block API.
14283 (do_one_display): Likewise.
14284 * rust-exp.y (do_one_display): Likewise.
14285 * symfile.c (clear_symtab_users): Likewise.
14286 * varobj.c (varobj_create): Switch to innermost_block API, replace
14287 use of innermost_block with block stored on varobj object.
14288
396af9a1
AB
142892018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14290
14291 * expression.h (innermost_block): Remove declaration.
14292 * varobj.c: Add 'parser-defs.h' include.
14293
fcfcc376
TT
142942018-01-19 Tom Tromey <tom@tromey.com>
14295
14296 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
14297 symbols in the static and global blocks.
14298
5a6c3296
JC
142992018-01-19 James Clarke <jrtc27@jrtc27.com>
14300
14301 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
14302 gdb_ptrace.h, and move including gdb_wait.h ...
14303 * nat/linux-ptrace.h: ... to here.
14304
bc09b0c1
SM
143052018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14306
14307 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
14308 inf_ptrace_detach_success.
14309 (inf_ptrace_detach_success): Add inferior parameter, use it
14310 instead of inferior_ptid, pass it to detach_inferior.
14311 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
14312 parameter.
14313 * inferior.c (detach_inferior): Add overload that takes an
14314 inferior object.
14315 * inferior.h (detach_inferior): Likewise.
14316 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
14317 use inferior_ptid, adjust call to inf_ptrace_detach_success.
14318 * linux-thread-db.c (thread_db_detach): Use inf parameter.
14319
6e1e1966
SM
143202018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14321
14322 * target.h (struct target_ops) <to_detach>: Add inferior
14323 parameter.
14324 (target_detach): Likewise.
14325 * target.c (dispose_inferior): Pass inferior down.
14326 (target_detach): Pass inferior down. Assert that it is equal to
14327 the current inferior.
14328 * aix-thread.c (aix_thread_detach): Pass inferior down.
14329 * corefile.c (core_file_command): Pass current_inferior() down.
14330 * corelow.c (core_detach): Add inferior parameter.
14331 * darwin-nat.c (darwin_detach): Likewise.
14332 * gnu-nat.c (gnu_detach): Likewise.
14333 * inf-ptrace.c (inf_ptrace_detach): Likewise.
14334 * infcmd.c (detach_command): Pass current_inferior() down to
14335 target_detach.
14336 * infrun.c (follow_fork_inferior): Pass parent_inf to
14337 target_detach.
14338 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
14339 target_detach.
14340 * linux-nat.c (linux_nat_detach): Add inferior parameter.
14341 * linux-thread-db.c (thread_db_detach): Likewise.
14342 * nto-procfs.c (procfs_detach): Likewise.
14343 * procfs.c (procfs_detach): Likewise.
14344 * record.c (record_detach): Likewise.
14345 * record.h (struct inferior): Forward-declare.
14346 (record_detach): Add inferior parameter.
14347 * remote-sim.c (gdbsim_detach): Likewise.
14348 * remote.c (remote_detach_1): Likewise.
14349 (remote_detach): Likewise.
14350 (extended_remote_detach): Likewise.
14351 * sol-thread.c (sol_thread_detach): Likewise.
14352 * target-debug.h (target_debug_print_inferior_p): New macro.
14353 * target-delegates.c: Re-generate.
14354 * top.c (kill_or_detach): Pass inferior down to target_detach.
14355 * windows-nat.c (windows_detach): Add inferior parameter.
14356
6bd6f3b6
SM
143572018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14358
14359 * target.h (struct target_ops) <to_detach>: Remove args
14360 parameter.
14361 (target_detach): Likewise.
14362 * target.c (dispose_inferior): Adjust.
14363 (target_detach): Remove args parameter, adjust.
14364 * aix-thread.c (aix_thread_detach): Adjust.
14365 * corefile.c (core_file_command): Adjust.
14366 * corelow.c (core_detach): Adjust.
14367 * darwin-nat.c (darwin_detach): Adjust.
14368 * gnu-nat.c (gnu_detach): Adjust.
14369 * inf-ptrace.c (inf_ptrace_detach): Adjust.
14370 * infcmd.c (detach_command): Adjust
14371 * infrun.c (follow_fork_inferior): Adjust.
14372 (handle_vfork_child_exec_or_exit): Adjust.
14373 * linux-fork.c (linux_fork_detach): Remove args parameter.
14374 * linux-fork.h (linux_fork_detach): Likewise.
14375 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
14376 * linux-thread-db.c (thread_db_detach): Likewise.
14377 * nto-procfs.c (procfs_detach): Likewise.
14378 * procfs.c (procfs_detach): Likewise.
14379 (do_detach): Remove signo parameter.
14380 * record.c (record_detach): Remove args parameter.
14381 * record.h (record_detach): Likewise.
14382 * remote-sim.c (gdbsim_detach): Likewise.
14383 * remote.c (remote_detach_1): Likewise.
14384 (remote_detach): Likewise.
14385 (extended_remote_detach): Likewise.
14386 * sol-thread.c (sol_thread_detach): Likewise.
14387 * target-delegates.c: Re-generate.
14388 * top.c (struct qt_args) <args>: Remove field.
14389 (kill_or_detach): Don't pass args.
14390 (quit_force): Don't set args.
14391 * windows-nat.c (windows_detach): Remove args parameter.
14392
88af8ea8
YQ
143932018-01-19 Yao Qi <yao.qi@linaro.org>
14394
14395 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
14396 (arm_linux_init_abi): Install it.
14397
dea445b9
YQ
143982018-01-19 Yao Qi <yao.qi@linaro.org>
14399
14400 * osabi.c (gdb_osabi_names): Extend the regexp for
14401 arm-linux-gnueabihf.
14402
4a17f768
YQ
144032018-01-18 Yao Qi <yao.qi@linaro.org>
14404
14405 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
14406 m_abbrevs.
14407 (abbrev_table::add_abbrev): Update.
14408 (abbrev_table::lookup_abbrev): Update.
14409
d679c21a
YQ
144102018-01-18 Yao Qi <yao.qi@linaro.org>
14411
14412 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
14413
7d937cad
SDJ
144142018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14415
14416 * compile/compile.c (compile_to_object): Convert "triplet_rx"
14417 to "std::string".
14418
9e14690d
TT
144192018-01-17 Tom Tromey <tom@tromey.com>
14420
14421 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
14422
50a82047
TT
144232018-01-17 Tom Tromey <tom@tromey.com>
14424
14425 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
14426 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
14427 (create_array_type_with_stride): Update.
14428 * dwarf2read.c (set_die_type): Update.
14429
c89b44cd
TT
144302018-01-17 Tom Tromey <tom@tromey.com>
14431
14432 * dwarf2read.c (delayed_method_info): Remove typedef.
14433 (dwarf2_cu::method_info): Now a std::vector.
14434 (add_to_method_list): Update.
14435 (free_delayed_list): Remove.
14436 (compute_delayed_physnames): Update.
14437 (process_full_comp_unit, process_full_type_unit): Clear the method
14438 list. Remove cleanups.
14439 (psymtab_include_file_name): Add name_holder parameter. Use
14440 unique_xmalloc_ptr.
14441 (dwarf_decode_lines): Update.
14442
fcd3b13d
SM
144432018-01-17 Tom Tromey <tom@tromey.com>
14444 Simon Marchi <simon.marchi@ericsson.com>
14445
14446 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
14447 (dwarf2_per_objfile::free_cached_comp_units)
14448 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14449 (init_cutu_and_read_dies_no_follow): Update.
14450 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
14451 (dwarf2_cu::~dwarf2_cu): New.
14452 (free_heap_comp_unit, free_stack_comp_unit): Remove.
14453 (age_cached_comp_units, free_one_cached_comp_unit): Update.
14454
685af9cd
TT
144552018-01-17 Tom Tromey <tom@tromey.com>
14456 Simon Marchi <simon.marchi@ericsson.com>
14457
14458 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
14459 (struct die_reader_specs) <abbrev_table>: New member.
14460 (struct abbrev_table): Add constructor.
14461 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
14462 <abbrev_obstack>: Now an auto_obstack.
14463 (abbrev_table_up): New typedef.
14464 (init_cu_die_reader): Add abbrev_table parameter.
14465 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
14466 Add result_dwo_abbrev_table.
14467 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14468 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
14469 Update.
14470 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
14471 parameter.
14472 (skip_children): Update.
14473 (abbrev_table::alloc_abbrev): Rename from
14474 abbrev_table_alloc_abbrev.
14475 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
14476 (abbrev_table::lookup_abbrev): Rename from
14477 abbrev_table_lookup_abbrev.
14478 (abbrev_table_read_table): Return abbrev_table_up.
14479 (abbrev_table_free, abbrev_table_free_cleanup)
14480 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
14481 (load_partial_dies): Update.
14482
5e2db402
TT
144832018-01-17 Tom Tromey <tom@tromey.com>
14484
14485 * dwarf2read.c (dwarf2_compute_name): Update comment.
14486 (read_func_scope, read_variable): Update.
14487 (new_symbol): Remove.
14488 (new_symbol_full): Rename to new_symbol.
14489
ee7f689e 144902018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
14491
14492 PR gdb/16577
14493 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
14494 a warning instead of throwing an error, set section size to 0 and return
14495 NULL.
14496 * gdb_bfd.h (gdb_bfd_map_section): Update description.
14497
4d9b86e1
SM
144982018-01-17 Simon Marchi <simon.marchi@ericsson.com>
14499
14500 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
14501 std::string.
14502 (linux_ptrace_attach_fail_reason_string): Likewise.
14503 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
14504 Likewise.
14505 (linux_ptrace_attach_fail_reason_string): Likewise.
14506 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
14507
a7b2d0fb
SM
145082018-01-17 Simon Marchi <simon.marchi@ericsson.com>
14509
14510 * linux-nat.c (linux_nat_attach): Remove xstrdup.
14511
f517c180
EA
145122018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
14513
14514 PR gdb/21559
14515 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
14516 checking for fs_base/gs_base fields in struct user_regs_struct.
14517 * configure: Regenerate.
14518
7045b1ca
YQ
145192018-01-17 Yao Qi <yao.qi@linaro.org>
14520
14521 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
14522 function.
14523 (aarch64_linux_init_abi): Install it to gdbarch hook
14524 gcc_target_options.
14525
db422fb2
PA
145262018-01-15 Pedro Alves <palves@redhat.com>
14527
14528 * common/signals-state-save-restore.c
14529 (save_original_signals_state): Fix typos.
14530
ba643918
SDJ
145312017-01-12 Tom Tromey <tom@tromey.com>
14532 Sergio Durigan Junior <sergiodj@redhat.com>
14533
14534 * Makefile.in (install-only): Install gdb-add-index.
14535
906b4aac
JB
145362018-01-12 John Baldwin <jhb@FreeBSD.org>
14537
14538 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
14539
bdf2a94a
AA
145402018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
14541
14542 * infrun.c (keep_going_pass_signal): Clear step-over info when
14543 insert_breakpoints fails.
14544
71d378ae
PA
145452018-01-11 Pedro Alves <palves@redhat.com>
14546
14547 PR gdb/22583
14548 * infrun.c (resume): Rename to ...
14549 (resume_1): ... this.
14550 (resume): Reimplement as wrapper around resume_1.
14551
3cada740
PA
145522018-01-11 Pedro Alves <palves@redhat.com>
14553
14554 PR remote/22597
14555 * remote.c (remote_parse_stop_reply): Default to the last-set
14556 general thread instead of to 'magic_null_ptid'.
14557
618daa93
PA
145582018-01-10 Pedro Alves <palves@redhat.com>
14559
14560 * language.h (language_get_symbol_name_matcher): Rename ...
14561 (get_symbol_name_matcher): ... this.
14562 * language.c (language_get_symbol_name_matcher): Ditto.
14563 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
14564 callers adjusted.
14565
c63d3e8d
PA
145662018-01-10 Pedro Alves <palves@redhat.com>
14567
14568 PR gdb/22670
14569 * dwarf2read.c
14570 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
14571 Adjust to use language_get_symbol_name_matcher instead of
14572 language_defn::la_get_symbol_name_matcher.
14573 * language.c (language_get_symbol_name_matcher): If in Ada mode
14574 and the lookup name is a verbatim match, return Ada's matcher.
14575 * language.h (language_get_symbol_name_matcher): Adjust comment.
14576 (ada_lookup_name_info::verbatim_p):: New method.
14577
d4c2a405
PA
145782018-01-10 Pedro Alves <palves@redhat.com>
14579
14580 PR gdb/22670
14581 * ada-lang.c (ada_collect_symbol_completion_matches): If the
14582 minsym's language is language_auto or language_cplus, pass down
14583 language_ada instead.
14584 * symtab.c (compare_symbol_name): Don't frob symbol language here.
14585
8825213e
PA
145862018-01-10 Pedro Alves <palves@redhat.com>
14587
14588 PR gdb/22670
14589 * minsyms.c (linkage_name_str): New function.
14590 (iterate_over_minimal_symbols): Use it.
14591
2d97a5d9
JB
145922018-01-09 John Baldwin <jhb@FreeBSD.org>
14593
14594 * NEWS: Document that 'info proc' now works on FreeBSD.
14595
92fce24d
JB
145962018-01-09 John Baldwin <jhb@FreeBSD.org>
14597
14598 * configure.ac: Check for kinfo_getfile in libutil.
14599 * configure: Regenerate.
14600 * config.in: Regenerate.
14601 * fbsd-nat.c: Include "fbsd-tdep.h".
14602 (fbsd_fetch_cmdline): New.
14603 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
14604 rather than calling error.
14605 (fbsd_info_proc): New.
14606 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
14607 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
14608 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
14609
262f62f5
JB
146102018-01-09 John Baldwin <jhb@FreeBSD.org>
14611
14612 * fbsd-nat.c (struct free_deleter): Remove.
14613 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
14614
b999e203
JB
146152018-01-09 John Baldwin <jhb@FreeBSD.org>
14616
14617 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
14618 NULL for an empty pathname.
14619
d2176225
JB
146202018-01-09 John Baldwin <jhb@FreeBSD.org>
14621
14622 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
14623 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
14624 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
14625 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
14626 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
14627 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
14628 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
14629 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14630 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14631 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14632 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14633 (fbsd_core_fetch_timeval, fbsd_print_sigset)
14634 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14635 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
14636 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14637
9c4ac400
ST
146382018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14639
14640 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14641 (gnu_xfer_auxv): New function.
14642 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14643 TARGET_OBJECT_AUXV.
14644
1e5ded6c
YQ
146452018-01-08 Yao Qi <yao.qi@linaro.org>
14646 Simon Marchi <simon.marchi@ericsson.com>
14647
14648 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14649 common/selftest.c.
14650 (COMMON_OBS): Remove selftest.o.
14651 * configure.ac: Append selftest-arch.c and common/selftest.c to
14652 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
14653 * configure: Re-generated.
14654 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14655 GDB_SELF_TEST.
14656 (maintenance_info_selftests): Likewise.
14657
04bafb1e
XR
146582018-01-08 Xavier Roirand <roirand@adacore.com>
14659
14660 * ada-valprint.c (val_print_packed_array_elements): Use
14661 proper number of elements when printing an array indexed
14662 by an enumeration type.
14663
518817b3
SM
146642018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14665
14666 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14667 (dw2_get_file_names_reader): Adjust.
14668 (lookup_dwo_signatured_type): Adjust.
14669 (lookup_dwp_signatured_type): Adjust.
14670 (lookup_signatured_type): Adjust.
14671 (create_type_unit_group): Adjust.
14672 (get_type_unit_group): Adjust.
14673 (process_psymtab_comp_unit_reader): Adjust.
14674 (build_type_psymtabs_reader): Adjust.
14675 (scan_partial_symbols): Adjust.
14676 (add_partial_symbol): Adjust.
14677 (add_partial_subprogram): Adjust.
14678 (peek_die_abbrev): Adjust.
14679 (fixup_go_packaging): Adjust.
14680 (process_imported_unit_die): Adjust.
14681 (dwarf2_compute_name): Adjust.
14682 (dwarf2_physname): Adjust.
14683 (read_import_statement): Adjust.
14684 (handle_DW_AT_stmt_list): Adjust.
14685 (read_file_scope): Adjust.
14686 (read_func_scope): Adjust.
14687 (read_lexical_block_scope): Adjust.
14688 (read_call_site_scope): Adjust.
14689 (read_variable): Adjust.
14690 (dwarf2_rnglists_process): Adjust.
14691 (dwarf2_ranges_process): Adjust.
14692 (dwarf2_ranges_read): Adjust.
14693 (dwarf2_get_pc_bounds): Adjust.
14694 (dwarf2_record_block_ranges): Adjust.
14695 (dwarf2_add_field): Adjust.
14696 (dwarf2_add_member_fn): Adjust.
14697 (read_structure_type): Adjust.
14698 (process_structure_scope): Adjust.
14699 (read_enumeration_type): Adjust.
14700 (read_array_type): Adjust.
14701 (mark_common_block_symbol_computed): Adjust.
14702 (read_common_block): Adjust.
14703 (read_namespace_type): Adjust.
14704 (read_namespace): Adjust.
14705 (read_module_type): Adjust.
14706 (read_tag_pointer_type): Adjust.
14707 (read_tag_ptr_to_member_type): Adjust.
14708 (read_tag_string_type): Adjust.
14709 (read_subroutine_type): Adjust.
14710 (read_typedef): Adjust.
14711 (read_base_type): Adjust.
14712 (attr_to_dynamic_prop): Adjust.
14713 (read_subrange_type): Adjust.
14714 (read_unspecified_type): Adjust.
14715 (dwarf2_read_abbrevs): Adjust.
14716 (load_partial_dies): Adjust.
14717 (read_partial_die): Adjust.
14718 (find_partial_die): Adjust.
14719 (guess_partial_die_structure_name): Adjust.
14720 (fixup_partial_die): Adjust.
14721 (read_attribute_value): Adjust.
14722 (read_addr_index): Adjust.
14723 (read_addr_index_from_leb128): Adjust.
14724 (read_str_index): Adjust.
14725 (dwarf2_string_attr): Adjust.
14726 (get_debug_line_section): Adjust.
14727 (dwarf_decode_line_header): Adjust.
14728 (lnp_state_machine::check_line_address): Adjust.
14729 (dwarf_decode_lines_1): Adjust.
14730 (dwarf_decode_lines): Adjust.
14731 (dwarf2_start_symtab): Adjust.
14732 (var_decode_location): Adjust.
14733 (new_symbol_full): Adjust.
14734 (dwarf2_const_value_data): Adjust.
14735 (dwarf2_const_value_attr): Adjust.
14736 (dwarf2_const_value): Adjust.
14737 (die_type): Adjust.
14738 (die_containing_type): Adjust.
14739 (build_error_marker_type): Adjust.
14740 (lookup_die_type): Adjust.
14741 (guess_full_die_structure_name): Adjust.
14742 (anonymous_struct_prefix): Adjust.
14743 (determine_prefix): Adjust.
14744 (dwarf2_name): Adjust.
14745 (follow_die_ref_or_sig): Adjust.
14746 (follow_die_offset): Adjust.
14747 (follow_die_ref): Adjust.
14748 (follow_die_sig_1): Adjust.
14749 (follow_die_sig): Adjust.
14750 (get_signatured_type): Adjust.
14751 (get_DW_AT_signature_type): Adjust.
14752 (decode_locdesc): Adjust.
14753 (dwarf_decode_macros): Adjust.
14754 (cu_debug_loc_section): Adjust.
14755 (fill_in_loclist_baton): Adjust.
14756 (dwarf2_symbol_mark_computed): Adjust.
14757 (init_one_comp_unit): Don't assign
14758 dwarf2_cu::dwarf2_per_objfile.
14759 (set_die_type): Adjust.
14760
ed2dc618
SM
147612018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14762
14763 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14764 <dwarf2_per_objfile>: New field.
14765 (dwarf2_per_objfile): Remove global.
14766 (get_dwarf2_per_objfile): New function.
14767 (set_dwarf2_per_objfile): New function.
14768 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14769 dwarf2_per_objfile.
14770 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14771 (read_abbrev_offset): Likewise.
14772 (read_indirect_string): Likewise.
14773 (read_indirect_line_string): Likewise.
14774 (read_indirect_string_at_offset): Likewise.
14775 (read_indirect_string_from_dwz): Likewise.
14776 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14777 dwarf2_per_objfile.
14778 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14779 (create_all_comp_units): Change objfile parameter to
14780 dwarf2_per_objfile.
14781 (create_all_type_units): Likewise.
14782 (process_queue): Add dwarf2_per_objfile parameter.
14783 (read_and_check_comp_unit_head): Likewise.
14784 (lookup_dwo_unit_in_dwp): Likewise.
14785 (get_dwp_file): Likewise.
14786 (process_cu_includes): Likewise.
14787 (struct free_dwo_file_cleanup_data): New struct.
14788 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14789 set_dwarf2_per_objfile.
14790 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14791 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14792 context, adjust calls.
14793 (dw2_instantiate_symtab): Likewise.
14794 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14795 (dw2_get_cu): Likewise.
14796 (create_cu_from_index_list): Change objfile parameter to
14797 dwarf2_per_objfile.
14798 (create_cus_from_index_list): Get dwarf2_per_objfile from
14799 context, adjust calls.
14800 (create_cus_from_index): Likewise.
14801 (create_signatured_type_table_from_index): Change objfile
14802 parameter to dwarf2_per_objfile.
14803 (create_signatured_type_table_from_debug_names): Change objfile
14804 parameter to dwarf2_per_objfile.
14805 (create_addrmap_from_index): Likewise.
14806 (create_addrmap_from_aranges): Likewise.
14807 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14808 (dw2_setup): Remove.
14809 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14810 context.
14811 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14812 get_dwarf2_per_objfile.
14813 (dw2_forget_cached_source_info): Likewise.
14814 (dw2_map_symtabs_matching_filename): Likewise.
14815 (struct dw2_symtab_iterator) <index>: Remove.
14816 <dwarf2_per_objfile>: New field.
14817 (dw2_symtab_iter_init): Replace index parameter with
14818 dwarf2_per_objfile.
14819 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14820 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14821 (dw2_print_stats): Likewise.
14822 (dw2_dump): Likewise.
14823 (dw2_expand_symtabs_for_function): Likewise.
14824 (dw2_expand_all_symtabs): Likewise.
14825 (dw2_expand_symtabs_with_fullname): Likewise.
14826 (dw2_expand_marked_cus): Replace index and objfile parameters
14827 with dwarf2_per_objfile.
14828 (dw_expand_symtabs_matching_file_matcher): Add
14829 dwarf2_per_objfile parameter and adjust calls.
14830 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14831 adjust calls.
14832 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14833 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14834 adjust calls.
14835 (create_cus_from_debug_names_list): Replace objfile parameter
14836 with dwarf2_per_objfile and adjust calls.
14837 (create_cus_from_debug_names): Likewise.
14838 (dwarf2_read_debug_names): Likewise.
14839 (mapped_debug_names::namei_to_name): Adjust call.
14840 (dw2_debug_names_iterator::next): Likewise.
14841 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14842 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14843 (dw2_debug_names_dump): Likewise.
14844 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14845 (dw2_debug_names_expand_symtabs_matching): Likewise.
14846 (dwarf2_initialize_objfile): Likewise.
14847 (dwarf2_build_psymtabs): Likewise.
14848 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14849 this_cu.
14850 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14851 (read_and_check_comp_unit_head): Likewise.
14852 (read_abbrev_offset): Likewise.
14853 (create_debug_type_hash_table): Likewise.
14854 (create_debug_types_hash_table): Likewise.
14855 (create_all_type_units): Replace objfile parameter with
14856 dwarf2_per_objfile.
14857 (add_type_unit): Add dwarf2_per_objfile parameter.
14858 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14859 with dwarf2_per_objfile.
14860 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14861 (lookup_dwp_signatured_type): Likewise.
14862 (lookup_signatured_type): Likewise.
14863 (read_cutu_die_from_dwo): Likewise.
14864 (init_tu_and_read_dwo_dies): Likewise.
14865 (init_cutu_and_read_dies): Likewise.
14866 (init_cutu_and_read_dies_no_follow): Likewise.
14867 (allocate_type_unit_groups_table): Add objfile parameter.
14868 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14869 (get_type_unit_group): Likewise.
14870 (process_psymtab_comp_unit): Update call.
14871 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14872 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14873 (print_tu_stats): Likewise.
14874 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14875 in void* parameter.
14876 (build_type_psymtabs): Change objfile parameter to
14877 dwarf2_per_objfile.
14878 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14879 passed in void* parameter.
14880 (process_skeletonless_type_units): Change objfile parameter to
14881 dwarf2_per_objfile.
14882 (set_partial_user): Likewise.
14883 (dwarf2_build_psymtabs_hard): Likewise.
14884 (read_comp_units_from_section): Likewise.
14885 (create_all_comp_units): Likewise.
14886 (scan_partial_symbols): Update calls.
14887 (add_partial_symbol): Likewise.
14888 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14889 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14890 (process_queue): Add dwarf2_per_objfile parameter.
14891 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14892 (compute_compunit_symtab_includes): Likewise.
14893 (process_cu_includes): Add dwarf2_per_objfile parameter.
14894 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14895 (process_full_type_unit): Likewise.
14896 (process_imported_unit_die): Update call.
14897 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14898 (read_file_scope): Likewise.
14899 (allocate_dwo_file_hash_table): Add objfile parameter.
14900 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14901 (create_cus_hash_table): Likewise.
14902 (create_dwp_hash_table): Likewise.
14903 (create_dwo_unit_in_dwp_v1): Likewise.
14904 (create_dwp_v2_section): Likewise.
14905 (create_dwo_unit_in_dwp_v2): Likewise.
14906 (lookup_dwo_unit_in_dwp): Likewise.
14907 (try_open_dwop_file): Likewise.
14908 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14909 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14910 cleanup to include a reference to dwarf2_per_objfile.
14911 (open_dwp_file): Add dwarf2_per_objfile parameter.
14912 (open_and_init_dwp_file): Likewise.
14913 (get_dwp_file): Likewise.
14914 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14915 (queue_and_load_all_dwo_tus): Update call.
14916 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14917 data.
14918 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14919 (dwarf2_ranges_process): Likewise.
14920 (dwarf2_get_pc_bounds): Likewise.
14921 (mark_common_block_symbol_computed): Likewise.
14922 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14923 (dwarf2_read_abbrevs): Update call.
14924 (read_partial_die): Use dwarf2_per_objfile from cu.
14925 (find_partial_die): Likewise.
14926 (fixup_partial_die): Likewise.
14927 (read_attribute_value): Likewise.
14928 (read_indirect_string_at_offset_from): Add objfile parameter.
14929 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14930 parameter.
14931 (read_indirect_string_from_dwz): Add objfile parameter.
14932 (read_indirect_string): Add objfile parameter.
14933 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14934 (read_addr_index): Use dwarf2_per_objfile from cu.
14935 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14936 call dw2_setup.
14937 (read_str_index): Use dwarf2_per_objfile from cu.
14938 (get_debug_line_section): Likewise.
14939 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14940 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14941 (new_symbol_full): Use dwarf2_per_objfile from cu.
14942 (build_error_marker_type): Likewise.
14943 (lookup_die_type): Likewise.
14944 (determine_prefix): Likewise.
14945 (follow_die_offset): Likewise.
14946 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14947 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14948 (dwarf2_fetch_die_type_sect_off): Likewise.
14949 (dwarf2_get_die_type): Likewise.
14950 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14951 (get_signatured_type): Likewise.
14952 (get_DW_AT_signature_type): Likewise.
14953 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14954 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14955 (cu_debug_loc_section): Likewise.
14956 (fill_in_loclist_baton): Likewise.
14957 (dwarf2_symbol_mark_computed): Likewise.
14958 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14959 dwarf2_per_objfile.
14960 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14961 parameter.
14962 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14963 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14964 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14965 (set_die_type): Use dwarf2_free_objfile from cu.
14966 (get_die_type_at_offset): Likewise.
14967 (dwarf2_per_objfile_free): Don't assign global variable.
14968 (debug_names) <constructor>: Add dwarf2_per_objfile
14969 parameter, update m_debugstrlookup construction.
14970 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14971 parameter.
14972 <m_dwarf2_per_objfile>: New field.
14973 <lookup>: Use m_dwarf2_per_objfile.
14974 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14975 (psyms_seen_size): Likewise.
14976 (write_gdbindex): Replace objfile parameter with
14977 dwarf2_per_objfile.
14978 (write_debug_names): Likewise.
14979 (write_psymtabs_to_index): Likewise.
14980 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14981 calls.
14982
e3b94546
SM
149832018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14984
14985 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14986 <dwarf2_per_objfile>: New field.
14987 (struct dwarf2_per_cu_data) <objfile>: Remove.
14988 <dwarf2_per_objfile>: New field.
14989 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14990 of objfile.
14991 (create_signatured_type_table_from_index): Likewise.
14992 (create_debug_type_hash_table): Likewise.
14993 (fill_in_sig_entry_from_dwo_entry): Likewise.
14994 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14995 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14996 objfile.
14997 (create_partial_symtab): Access objfile through
14998 dwarf2_per_objfile.
14999 (process_psymtab_comp_unit_reader): Likewise.
15000 (read_comp_units_from_section): Likewise.
15001 (scan_partial_symbols): Likewise.
15002 (add_partial_symbol): Likewise.
15003 (add_partial_subprogram): Likewise.
15004 (peek_die_abbrev): Likewise.
15005 (fixup_go_packaging): Likewise.
15006 (process_full_comp_unit): Likewise.
15007 (process_full_type_unit): Likewise.
15008 (process_imported_unit_die): Likewise.
15009 (dwarf2_compute_name): Likewise.
15010 (dwarf2_physname): Likewise.
15011 (read_import_statement): Likewise.
15012 (create_cus_hash_table): Assign dwarf2_physname instead of
15013 objfile.
15014 (read_func_scope): Access objfile through dwarf2_per_objfile.
15015 (read_lexical_block_scope): Likewise.
15016 (read_call_site_scope): Likewise.
15017 (read_variable): Likewise.
15018 (dwarf2_rnglists_process): Likewise.
15019 (dwarf2_ranges_process): Likewise.
15020 (dwarf2_ranges_read): Likewise.
15021 (dwarf2_record_block_ranges): Likewise.
15022 (dwarf2_add_field): Likewise.
15023 (dwarf2_add_member_fn): Likewise.
15024 (read_structure_type): Likewise.
15025 (process_structure_scope): Likewise.
15026 (read_enumeration_type): Likewise.
15027 (read_array_type): Likewise.
15028 (read_common_block): Likewise.
15029 (read_namespace_type): Likewise.
15030 (read_namespace): Likewise.
15031 (read_module_type): Likewise.
15032 (read_tag_pointer_type): Likewise.
15033 (read_tag_ptr_to_member_type): Likewise.
15034 (read_tag_string_type): Likewise.
15035 (read_subroutine_type): Likewise.
15036 (read_typedef): Likewise.
15037 (read_base_type): Likewise.
15038 (attr_to_dynamic_prop): Likewise.
15039 (read_subrange_type): Likewise.
15040 (read_unspecified_type): Likewise.
15041 (load_partial_dies): Likewise.
15042 (read_partial_die): Likewise.
15043 (find_partial_die): Likewise.
15044 (guess_partial_die_structure_name): Likewise.
15045 (fixup_partial_die): Likewise.
15046 (read_attribute_value): Likewise.
15047 (read_addr_index_from_leb128): Likewise.
15048 (dwarf2_read_addr_index): Likewise.
15049 (dwarf2_string_attr): Likewise.
15050 (lnp_state_machine::check_line_address): Likewise.
15051 (dwarf_decode_lines_1): Likewise.
15052 (dwarf_decode_lines): Likewise.
15053 (dwarf2_start_symtab): Likewise.
15054 (var_decode_location): Likewise.
15055 (new_symbol_full): Likewise.
15056 (dwarf2_const_value_data): Likewise.
15057 (dwarf2_const_value_attr): Likewise.
15058 (dwarf2_const_value): Likewise.
15059 (die_type): Likewise.
15060 (die_containing_type): Likewise.
15061 (lookup_die_type): Likewise.
15062 (guess_full_die_structure_name): Likewise.
15063 (anonymous_struct_prefix): Likewise.
15064 (dwarf2_name): Likewise.
15065 (follow_die_ref_or_sig): Likewise.
15066 (follow_die_offset): Likewise.
15067 (follow_die_ref): Likewise.
15068 (dwarf2_fetch_die_loc_sect_off): Likewise.
15069 (dwarf2_fetch_constant_bytes): Likewise.
15070 (dwarf2_fetch_die_type_sect_off): Likewise.
15071 (dwarf2_get_die_type): Likewise.
15072 (follow_die_sig): Likewise.
15073 (decode_locdesc): Likewise.
15074 (dwarf2_per_cu_objfile): Likewise.
15075 (dwarf2_per_cu_text_offset): Likewise.
15076 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
15077 objfile.
15078 (set_die_type): Access objfile through
15079 dwarf2_per_objfile.
15080
b01ba14d
SM
150812018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15082
15083 * valprint.c (converted_character_d): Remove typedef.
15084 (DEF_VEC_O (converted_character_d)): Remove.
15085 (count_next_character): Use std::vector.
15086 (print_converted_chars_to_obstack): Likewise.
15087 (generic_printstr): Likewise.
15088
4d0fdd9b
SM
150892018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15090
15091 * xml-support.h (struct gdb_xml_value): Add constructor.
15092 <value>: Change type to unique_xmalloc_ptr.
15093 (gdb_xml_value_s): Remove typedef.
15094 (DEF_VEC_O (gdb_xml_value_s)): Remove.
15095 (gdb_xml_element_start_handler): Change parameter type to
15096 std::vector.
15097 (xml_find_attribute): Likewise.
15098 * xml-support.c (xml_find_attribute): Change parameter type to
15099 std::vector and adjust.
15100 (gdb_xml_values_cleanup): Remove.
15101 (gdb_xml_parser::start_element): Adjust to std::vector.
15102 (xinclude_start_include): Change paraeter type to std::vector
15103 and adjust.
15104 * btrace.c (check_xml_btrace_version): Likewise.
15105 (parse_xml_btrace_block): Likewise.
15106 (parse_xml_btrace_pt_config_cpu): Likewise.
15107 (parse_xml_btrace_pt): Likewise.
15108 (parse_xml_btrace_conf_bts): Likewise.
15109 (parse_xml_btrace_conf_pt): Likewise.
15110 * memory-map.c (memory_map_start_memory): Likewise.
15111 (memory_map_start_property): Likewise.
15112 * osdata.c (osdata_start_osdata): Likewise.
15113 (osdata_start_item): Likewise.
15114 (osdata_start_column): Likewise.
15115 * remote.c (start_thread): Likewise.
15116 * solib-aix.c (library_list_start_library): Likewise.
15117 (library_list_start_list): Likewise.
15118 * solib-svr4.c (library_list_start_library): Likewise.
15119 (svr4_library_list_start_list): Likewise.
15120 * solib-target.c (library_list_start_segment): Likewise.
15121 (library_list_start_section): Likewise.
15122 (library_list_start_library): Likewise.
15123 (library_list_start_list): Likewise.
15124 * tracepoint.c (traceframe_info_start_memory): Likewise.
15125 (traceframe_info_start_tvar): Likewise.
15126 * xml-syscall.c (syscall_start_syscall): Likewise.
15127 * xml-tdesc.c (tdesc_start_target): Likewise.
15128 (tdesc_start_feature): Likewise.
15129 (tdesc_start_reg): Likewise.
15130 (tdesc_start_union): Likewise.
15131 (tdesc_start_struct): Likewise.
15132 (tdesc_start_flags): Likewise.
15133 (tdesc_start_enum): Likewise.
15134 (tdesc_start_field): Likewise.
15135 (tdesc_start_enum_value): Likewise.
15136 (tdesc_start_vector): Likewise.
15137
f979c73f
SM
151382018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15139
15140 * extension.h (struct xmethod_worker) <clone>: Remove.
15141 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
15142 Remove.
15143 (python_xmethod_worker::clone): Remove.
15144 * valops.c (find_overload_match): Use std::move instead of
15145 clone.
15146
ba18742c
SM
151472018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15148
15149 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
15150 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
15151 <free_xmethod_worker_data>: Remove.
15152 <get_matching_xmethod_workers>: Chance VEC to std::vector.
15153 <get_xmethod_arg_types>: Remove.
15154 <get_xmethod_result_type>: Remove.
15155 <invoke_xmethod>: Remove.
15156 * extension.c (new_xmethod_worker): Remove.
15157 (clone_xmethod_worker): Remove.
15158 (get_matching_xmethod_workers): Return void, pass std::vector by
15159 pointer.
15160 (get_xmethod_arg_types): Rename to...
15161 (xmethod_worker::get_arg_types): ... this, and adjust.
15162 (get_xmethod_result_type): Rename to...
15163 (xmethod_worker::get_result_type): ... this, and adjust.
15164 (invoke_xmethod): Remove.
15165 (free_xmethod_worker): Remove.
15166 (free_xmethod_worker_vec): Remove.
15167 * extension.h (enum ext_lang_rc): Move here from
15168 extension-priv.h.
15169 (struct xmethod_worker): Add constructor and destructor.
15170 <data>: Remove.
15171 <value>: Remove.
15172 <invoke, clone, do_get_result_type, do_get_arg_types>: New
15173 virtual pure methods.
15174 <get_arg_types, get_result_type>: New methods.
15175 (xmethod_worker_ptr): Remove typedef.
15176 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15177 (xmethod_worker_vec): Remove typedef.
15178 (xmethod_worker_up): New typedef.
15179 (invoke_xmethod): Remove.
15180 (clone_xmethod_worker): Remove.
15181 (free_xmethod_worker): Remove.
15182 (free_xmethod_worker_vec): Remove.
15183 (get_xmethod_arg_types): Remove.
15184 (get_xmethod_result_type): Remove.
15185 * valops.c (find_method_list): Use std::vector, don't use
15186 intermediate vector.
15187 (value_find_oload_method_list): Use std::vector.
15188 (find_overload_match): Use std::vector.
15189 (find_oload_champ): Use std::vector.
15190 * value.c (value_free): Use operator delete.
15191 (value_of_xmethod): Rename to...
15192 (value_from_xmethod): ... this. Don't assign
15193 xmethod_worker::value, take rvalue-reference.
15194 (result_type_of_xmethod): Adjust.
15195 (call_xmethod): Adjust.
15196 * value.h: Include extension.h.
15197 (struct xmethod_worker): Don't forward-declare.
15198 (value_of_xmethod): Rename to...
15199 (value_from_xmethod): ... this, take rvalue-reference.
15200 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15201 (struct python_xmethod_worker): ... this, add constructor and
15202 destructor.
15203 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15204 (gdbpy_free_xmethod_worker_data): Rename to...
15205 (python_xmethod_worker::~python_xmethod_worker): ... this and
15206 adjust.
15207 (gdbpy_clone_xmethod_worker_data): Rename to...
15208 (python_xmethod_worker::clone): ... this and adjust.
15209 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15210 temporary vector.
15211 (gdbpy_get_xmethod_arg_types): Rename to...
15212 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15213 (gdbpy_get_xmethod_result_type): Rename to...
15214 (python_xmethod_worker::do_get_result_type): ... this and
15215 adjust.
15216 (gdbpy_invoke_xmethod): Rename to...
15217 (python_xmethod_worker::invoke): ... this and adjust.
15218 (new_python_xmethod_worker): Rename to...
15219 (python_xmethod_worker::python_xmethod_worker): ... this and
15220 adjust.
15221 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15222 Remove.
15223 (gdbpy_free_xmethod_worker_data): Remove.
15224 (gdbpy_get_matching_xmethod_workers): Use std::vector.
15225 (gdbpy_get_xmethod_arg_types): Remove.
15226 (gdbpy_get_xmethod_result_type): Remove.
15227 (gdbpy_invoke_xmethod): Remove.
15228 * python/python.c (python_extension_ops): Remove obsolete
15229 callbacks.
15230
e379cee6
PA
152312018-01-05 Pedro Alves <palves@redhat.com>
15232
15233 PR gdb/18653
15234 * common/signals-state-save-restore.c
15235 (save_original_signals_state): New parameter 'quiet'. Warn if we
15236 find a custom handler preinstalled, instead of internal erroring.
15237 But only warn if !quiet.
15238 * common/signals-state-save-restore.h
15239 (save_original_signals_state): New parameter 'quiet'.
15240 * main.c (captured_main_1): Move save_original_signals_state call
15241 after option handling, and pass QUIET.
15242
a655456c
PA
152432018-01-05 Pedro Alves <palves@redhat.com>
15244
15245 * spu-tdep.c (spu_catch_start): Pass
15246 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15247
de63c46b
PA
152482018-01-05 Pedro Alves <palves@redhat.com>
15249
15250 PR gdb/22670
15251 * ada-lang.c (literal_symbol_name_matcher): New function.
15252 (ada_get_symbol_name_matcher): Use it for
15253 symbol_name_match_type::SEARCH_NAME.
15254 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
15255 it down instead of assuming symbol_name_match_type::FULL.
15256 * block.h (block_lookup_symbol): New parameter 'match_type'.
15257 * c-valprint.c (print_unpacked_pointer): Use
15258 lookup_symbol_search_name instead of lookup_symbol.
15259 * compile/compile-object-load.c (get_out_value_type): Pass down
15260 symbol_name_match_type::SEARCH_NAME.
15261 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15262 symbol_name_match_type::FULL.
15263 * cp-support.c (cp_get_symbol_name_matcher): Handle
15264 symbol_name_match_type::SEARCH_NAME.
15265 * infrun.c (insert_exception_resume_breakpoint): Use
15266 lookup_symbol_search_name.
15267 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15268 * psymtab.c (maintenance_check_psymtabs): Use
15269 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15270 * stack.c (print_frame_args): Use lookup_symbol_search_name and
15271 SYMBOL_SEARCH_NAME.
15272 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
15273 if symbol_name_match_type::SEARCH_NAME.
15274 (lookup_symbol_in_language): Pass down
15275 symbol_name_match_type::FULL.
15276 (lookup_symbol_search_name): New.
15277 (lookup_language_this): Pass down
15278 symbol_name_match_type::SEARCH_NAME.
15279 (lookup_symbol_aux, lookup_local_symbol): New parameter
15280 'match_type'. Pass it down.
15281 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
15282 (lookup_symbol_search_name): New declaration.
15283 (lookup_symbol_in_block): New 'match_type' parameter.
15284
f98fc17b
PA
152852018-01-05 Pedro Alves <palves@redhat.com>
15286
15287 PR gdb/22670
15288 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
15289 ada_lookup_symbol.
15290 (ada_lookup_symbol): Reimplement in terms of
15291 ada_lookup_symbol_list, bits factored out from
15292 ada_lookup_encoded_symbol.
15293
342f8240
JB
152942018-01-05 Joel Brobecker <brobecker@adacore.com>
15295
15296 * ada-exp.y (write_object_renaming): When subscripting an array
15297 using a symbol as the index, pass the block in call to
15298 ada_lookup_encoded_symbol when looking that symbol up.
15299
7150d33c
JG
153002018-01-05 Jerome Guitton <guitton@adacore.com>
15301
15302 * ada-lang.c (ada_array_length): Use ada_index_type instead of
15303 TYPE_INDEX_TYPE.
15304
cc0e770c
JB
153052018-01-05 Joel Brobecker <brobecker@adacore.com>
15306
15307 * ada-lang.c (ada_to_fixed_value_create): Add handling of
15308 the case where VALUE_LVAL (val0) is not lval_memory.
15309
f79da888 153102018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
15311
15312 * ada-valprint.c (print_optional_low_bound): Handle
15313 character-indexed array printing like boolean-indexed array
15314 printing.
15315
cd385f94
JB
153162018-01-05 Joel Brobecker <brobecker@adacore.com>
15317
15318 * NEWS: Create a new section for the next release branch.
15319 Rename the section of the current branch, now that it has
15320 been cut.
15321
09aca949
JB
153222018-01-05 Joel Brobecker <brobecker@adacore.com>
15323
15324 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
15325 * version.in: Bump version to 8.1.50.DATE-git.
15326
9f757bf7
XR
153272018-01-03 Xavier Roirand <roirand@adacore.com>
15328
15329 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
15330 Add field.
15331 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
15332 Add field.
15333 (default_exception_support_info) <catch_handlers_sym>: Add field.
15334 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
15335 (ada_exception_name_addr_1): Add "catch handlers" handling.
15336 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
15337 Update all callers.
15338 (create_excep_cond_exprs) <ex>: Add parameter.
15339 (re_set_exception): Update create_excep_cond_exprs call.
15340 (print_it_exception, print_one_exception, print_mention_exception)
15341 (print_recreate_exception): Add "catch handler" handling.
15342 (allocate_location_catch_handlers, re_set_catch_handlers)
15343 (check_status_catch_handlers, print_it_catch_handlers)
15344 (print_one_catch_handlers, print_mention_catch_handlers)
15345 (print_recreate_catch_handlers): New function.
15346 (catch_handlers_breakpoint_ops): New variable.
15347 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
15348 Add parameter. Add "catch handler" handling.
15349 (ada_exception_sym_name, ada_exception_breakpoint_ops):
15350 Add "catch handler" handling.
15351 (ada_exception_catchpoint_cond_string): Add "catch handler"
15352 handling.
15353 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
15354 call.
15355 (catch_ada_handlers_command): New function.
15356 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
15357 operations structure.
15358 (_initialize_ada_language): Add "catch handlers" command entry.
15359 * NEWS: Document "catch handlers" feature.
15360
9fe561ab
JB
153612018-01-02 Joel Brobecker <brobecker@adacore.com>
15362
15363 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
15364 account when creating the array type of the slice.
15365 (ada_value_slice): Likewise.
15366
a405673c
JB
153672018-01-02 Joel Brobecker <brobecker@adacore.com>
15368
15369 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
15370 New enum value.
15371 (create_array_type_with_stride): Add byte_stride_prop parameter.
15372 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
15373 New parameter. Update all callers in this file.
15374 (array_type_has_dynamic_stride): New function.
15375 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
15376 of arrays with dynamic byte strides.
15377 * dwarf2read.c (read_array_type): Add support for dynamic
15378 DW_AT_byte_stride attributes.
15379
74a2f8ff
JB
153802018-01-02 Joel Brobecker <brobecker@adacore.com>
15381
15382 * dwarf2read.c (read_unspecified_type): Treat
15383 DW_TAG_enumeration_type DIEs from Ada units as stubs.
15384
e2882c85
JB
153852018-01-01 Joel Brobecker <brobecker@adacore.com>
15386
15387 Update copyright year range in all GDB files.
15388
5e70ee09 153892018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
1690bb24
JB
15390
15391 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
15392 and gdb/testsuite/gdb.base/step-line.c.
15393
0f0c98a8
JB
153942018-01-01 Joel Brobecker <brobecker@adacore.com>
15395
15396 * copyright.py (main): Dump the contents of
15397 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
15398 even if BY_HAND is empty.
15399
82e1e79a
JB
154002018-01-01 Joel Brobecker <brobecker@adacore.com>
15401
15402 * top.c (print_gdb_version): Update Copyright year in version
15403 message.
15404
053f54e5 154052018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 15406
053f54e5 15407 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 15408
053f54e5 15409For older changes see ChangeLog-2017.
c906108c
SS
15410\f
15411Local Variables:
15412mode: change-log
15413left-margin: 8
15414fill-column: 74
15415version-control: never
57da7796 15416coding: utf-8
c906108c 15417End:
This page took 3.252057 seconds and 4 git commands to generate.