Treat all unknown auxv tags on FreeBSD as unknown.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-10-26 John Baldwin <jhb@FreeBSD.org>
2
3 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
4 default_print_auxv_entry for specific tag values.
5
6 2018-10-26 John Baldwin <jhb@FreeBSD.org>
7
8 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
9
10 2018-10-26 Jim Wilson <jimw@sifive.com>
11
12 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
13 (riscv_linux_sigframe_init): Declare.
14 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
15 (riscv_linux_sigframe): New.
16 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
17 (riscv_linux_sigframe_init): Define.
18 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
19
20 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
21 (riscv_isa_flen): Likewise. Drop static.
22 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
23 (riscv_isa_flen): Likewise. Declare.
24
25 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
27
28 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
29 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
30 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
31 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
32 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
33 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
34 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
35 Define.
36 (struct ppc_linux_features) <htm>: New field.
37 (ppc_linux_no_features): Add initializer for htm field.
38 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
39 new tdescs.
40 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
41 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
42 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
43 Define if not already defined.
44 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
45 and rs6000/powerpc-isa207-htm-vsx64l.
46 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
47 rs6000/powerpc-isa207-htm-vsx64l.xml.
48 * features/rs6000/power-htm-spr.xml: New file.
49 * features/rs6000/power-htm-core.xml: New file.
50 * features/rs6000/power64-htm-core.xml: New file.
51 * features/rs6000/power-htm-fpu.xml: New file.
52 * features/rs6000/power-htm-altivec.xml: New file.
53 * features/rs6000/power-htm-vsx.xml: New file.
54 * features/rs6000/power-htm-ppr.xml: New file.
55 * features/rs6000/power-htm-dscr.xml: New file.
56 * features/rs6000/power-htm-tar.xml: New file.
57 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
58 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
59 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
60 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
61 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
62 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
63 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
64 fetch_regset with HTM regsets.
65 (store_register, store_ppc_registers): Call store_regset with HTM
66 regsets.
67 (ppc_linux_nat_target::read_description): Set htm field in the
68 features struct if needed.
69 * ppc-linux-tdep.c: Include
70 features/rs6000/powerpc-isa207-htm-vsx32l.c and
71 features/rs6000/powerpc-isa207-htm-vsx64l.c.
72 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
73 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
74 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
75 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
76 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
77 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
78 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
79 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
80 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
81 (ppc32_linux_ctarregset): New globals.
82 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
83 (ppc_linux_collect_core_cpgrregset): New function.
84 (ppc_linux_iterate_over_regset_sections): Call back with the htm
85 regsets.
86 (ppc_linux_core_read_description): Check if the tm spr section is
87 present and set htm in the features struct.
88 (_initialize_ppc_linux_tdep): Call
89 initialize_tdesc_powerpc_isa207_htm_vsx32l and
90 initialize_tdesc_powerpc_isa207_htm_vsx64l.
91 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
92 Declare.
93 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
94 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
95 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
96 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
97 New fields.
98 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
99 Likewise.
100 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
101 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
102 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
103 New enum fields.
104 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
105 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
106 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
107 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
108 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
109 <PPC_CTAR_REGNUM>: Likewise.
110 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
111 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
112 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
113 (IS_CEFP_PSEUDOREG): Define.
114 (rs6000_register_name): Hide the upper halves of checkpointed VSX
115 registers. Return names for the checkpointed DFP, VSX, and EFP
116 pseudo registers.
117 (rs6000_pseudo_register_type): Remove initial assert and raise an
118 internal error in the else clause instead. Return types for the
119 checkpointed DFP, VSX, and EFP pseudo registers.
120 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
121 checkpointed DFP pseudo registers.
122 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
123 checkpointed VSX pseudo registers.
124 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
125 from efpr_pseudo_register_read and
126 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
127 registers.
128 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
129 Handle checkpointed DFP, VSX, and EFP registers.
130 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
131 (efp_ax_pseudo_register_collect): New functions.
132 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
133 register logic to new functions. Handle checkpointed DFP, VSX,
134 and EFP pseudo registers.
135 (rs6000_gdbarch_init): Look for and validate the htm features.
136 Include checkpointed DFP, VSX and EFP pseudo-registers.
137 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
138 HTM registers.
139
140 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
141
142 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
143 without altivec or fpu.
144
145 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
146 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
147
148 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
149 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
150 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
151 Define if not already defined.
152 * features/rs6000/power-ebb.xml: New file.
153 * features/rs6000/power-linux-pmu.xml: New file.
154 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
155 features.
156 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
157 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
158 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
159 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
160 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
161 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
162 fetch_regset with ebb and pmu regsets.
163 (store_register, store_ppc_registers): Call store_regset with ebb
164 and pmu regsets.
165 (ppc_linux_nat_target::read_description): Set isa207 field in the
166 features struct if ebb and pmu are avaiable.
167 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
168 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
169 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
170 and pmu regsets.
171 (ppc_linux_core_read_description): Check if the pmu section is
172 present and set isa207 in the features struct.
173 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
174 (ppc32_linux_pmuregset): Declare.
175 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
176 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
177 <ppc_sier_regnum>: New field.
178 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
179 New enum values.
180 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
181 values.
182 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
183 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
184 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
185 ebb and pmu features.
186
187 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
188 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
189
190 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
191 (tdesc_powerpc_isa207_vsx64l): Declare.
192 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
193 (struct ppc_linux_features) <isa207>: New field.
194 (ppc_linux_no_features): Add initializer for isa207 field.
195 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
196 new tdescs.
197 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
198 (NT_PPC_TAR): Define if not already defined.
199 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
200 rs6000/powerpc-isa207-vsx64l.
201 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
202 rs6000/powerpc-isa207-vsx64l.xml.
203 * features/rs6000/power-tar.xml: New file.
204 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
205 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
206 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
207 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
208 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
209 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
210 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
211 fetch_regset with the TAR regset.
212 (store_register, store_ppc_registers): Call store_regset with the
213 TAR regset.
214 (ppc_linux_nat_target::read_description): Set isa207 field in the
215 features struct if needed.
216 * ppc-linux-tdep.c: Include
217 features/rs6000/powerpc-isa207-vsx32l.c and
218 features/rs6000/powerpc-isa207-vsx64l.c.
219 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
220 (ppc_linux_iterate_over_regset_sections): Call back with the tar
221 regset.
222 (ppc_linux_core_read_description): Check if the tar section is
223 present and set isa207 in the features struct.
224 (_initialize_ppc_linux_tdep): Call
225 initialize_tdesc_powerpc_isa207_vsx32l and
226 initialize_tdesc_powerpc_isa207_vsx64l.
227 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
228 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
229 (enum) <PPC_TAR_REGNUM>: New enum value.
230 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
231 feature.
232 (ppc_process_record_op31): Record changes to TAR.
233
234 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
235 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
236
237 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
238 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
239 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
240 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
241 (struct ppc_linux_features) <ppr_dscr>: New field.
242 (ppc_linux_no_features): Add initializer for ppr_dscr field.
243 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
244 new tdescs.
245 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
246 Define if not already defined.
247 * features/Makefile (WHICH): Add
248 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
249 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
250 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
251 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
252 * features/rs6000/power-dscr.xml: New file.
253 * features/rs6000/power-ppr.xml: New file.
254 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
255 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
256 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
257 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
258 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
259 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
260 * ppc-linux-nat.c: Include <sys/uio.h>.
261 (fetch_regset, store_regset, check_regset): New functions.
262 (fetch_register, fetch_ppc_registers): Call fetch_regset with
263 DSCR and PPR regsets.
264 (store_register, store_ppc_registers): Call store_regset with
265 DSCR and PPR regsets.
266 (ppc_linux_get_hwcap2): New function.
267 (ppc_linux_nat_target::read_description): Call
268 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
269 features struct if needed.
270 * ppc-linux-tdep.c: Include
271 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
272 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
273 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
274 (ppc32_linux_dscrregset): New globals.
275 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
276 and dscr regsets.
277 (ppc_linux_core_read_description): Check if the ppr and dscr
278 sections are present and set ppr_dscr in the features struct.
279 (_initialize_ppc_linux_tdep): Call
280 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
281 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
282 * ppc-linux-tdep.h (ppc32_linux_pprregset)
283 (ppc32_linux_dscrregset): Declare.
284 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
285 <ppc_dscr_regnum>: New field.
286 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
287 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
288 and dscr features.
289 (ppc_process_record_op31): Record changes to PPR and DSCR.
290
291 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
292
293 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
294 second initializer line for the have_* variables. Initialize
295 have_fpu to 0 instead of 1.
296
297 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
298
299 * arch/ppc-linux-common.c (ppc_linux_match_description):
300 Parenthesize tdesc assignements and indent them properly.
301
302 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
303
304 * ppc-linux-nat.c (fetch_register): Change if statement to else
305 if.
306 (store_register): Likewise.
307
308 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
309
310 * rs6000-tdep.c: Remove reggroups.h include.
311 (rs6000_pseudo_register_reggroup_p): Remove.
312 (rs6000_gdbarch_init): Remove call to
313 set_tdesc_pseudo_register_reggroup_p.
314
315 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
316
317 * reggroups.c (default_register_reggroup_p): Return true for
318 decfloat registers and float_reggroup.
319
320 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
321
322 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
323 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
324 ppc_linux_collect_vrregset by regcache_collect_regset.
325
326 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
327
328 * linux-tdep.c (linux_collect_regset_section_cb): Use
329 std::vector<gdb_byte> instead of char * and malloc for buf.
330 Remove xfree.
331
332 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
333
334 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
335 symtab_start instead of always using language_unknown.
336
337 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
338
339 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
340 READ_P parameter, catch and ignore register access errors from
341 either the old or new MISA location.
342 (riscv_has_feature): Update call to riscv_read_misa_reg.
343
344 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
345
346 * python/py-function.c (convert_values_to_python): Return
347 gdbpy_ref<>. Add header comment.
348 (fnpy_call): Adjust.
349
350 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
351
352 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
353 (cmdpy_completer_handle_brkchars): Adjust.
354 (cmdpy_completer): Adjust.
355
356 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
359 Pass correct regnum to raw_supply_zeroed.
360
361 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
362
363 * regcache.c (cooked_read_test): Add CSKY to the list of
364 architectures with a save_reggroup
365
366 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
367
368 PR gdb/23368
369 * infrun.c (follow_exec): In the follow_exec_mode_new case,
370 transfer terminal state from old new new inferior.
371 * terminal.h (swap_terminal_info): New function.
372 * inflow.c (swap_terminal_info): New function.
373
374 2018-10-23 Tom Tromey <tom@tromey.com>
375
376 * record-btrace.c (get_thread_current_frame_id): Rename from
377 get_thread_current_frame. Return a frame_id.
378 (record_btrace_start_replaying): Update.
379
380 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
383 for CSRs.
384
385 2018-10-23 Joel Brobecker <brobecker@adacore.com>
386
387 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
388 have_nonsteppable_watchpoint attribute to 1.
389
390 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
393 register names.
394 (struct register_alias): Rename to...
395 (struct riscv_register_alias): ...this, and update comment.
396 (riscv_register_aliases): Update type, and alias names. Remove
397 CSR names from this list.
398 (riscv_register_name): Use riscv_gdb_reg_names for int and float
399 register names. Add an extra assertion.
400 (riscv_is_regnum_a_named_csr): New function.
401 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
402
403 2018-10-22 Jim Wilson <jimw@sifive.com>
404
405 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
406 FP reg smaller than FP reg size, and fill with -1 instead of 0.
407
408 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
409 (riscv_register_type): Use them.
410 (riscv_print_one_register_info): Handle union of floats same as float.
411 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
412 riscv_fpreg_q_type fields.
413
414 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
415
416 * gdbarch.sh (gdbarch_num_cooked_regs): New.
417 * gdbarch.h: Re-generate.
418 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
419 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
420 * eval.c (evaluate_subexp_standard): Likewise.
421 * findvar.c (value_of_register): Likewise.
422 (value_of_register_lazy): Likewise.
423 (address_from_register): Likewise.
424 * frame.c (get_frame_register_bytes): Likewise.
425 * gdbarch-selftests.c (register_to_value_test): Likewise.
426 * h8300-tdep.c (h8300_register_type): Likewise.
427 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
428 (i386_svr4_reg_to_regnum): Likewise.
429 * infcmd.c (default_print_registers_info): Likewise.
430 (registers_info): Likewise.
431 (print_vector_info): Likewise.
432 (default_print_float_info): Likewise.
433 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
434 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
435 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
436 (mi_cmd_data_list_changed_registers): Likewise.
437 (mi_cmd_data_list_register_values): Likewise.
438 (mi_cmd_data_write_register_values): Likewise.
439 (mi_cmd_trace_frame_collected): Likewise.
440 * mips-tdep.c (print_gp_register_row): Likewise.
441 (mips_print_registers_info): Likewise.
442 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
443 * regcache.c (init_regcache_descr): Likewise.
444 (register_size): Likewise.
445 (register_dump::dump): Likewise.
446 (cooked_read_test): Likewise.
447 (cooked_write_test): Likewise.
448 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
449 (rs6000_gdbarch_init): Likewise.
450 * stabsread.c (stab_reg_to_regnum): Likewise.
451 * stack.c (info_frame_command): Likewise.
452 * target-descriptions.c (tdesc_register_name): Likewise.
453 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
454 * tui/tui-regs.c (tui_show_register_group): Likewise.
455 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
456 (user_reg_map_regnum_to_name): Likewise.
457 (value_of_user_reg): Likewise.
458 (maintenance_print_user_registers): Likewise.
459 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
460 (xtensa_register_name): Likewise.
461 (xtensa_register_type): Likewise.
462 (xtensa_reg_to_regnum): Likewise.
463 (xtensa_pseudo_register_read): Likewise.
464 (xtensa_pseudo_register_write): Likewise.
465
466 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
467
468 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
469 correctly-sized buffer with raw_read.
470 (amd64_pseudo_register_write): Use correctly-sized buffer for
471 raw_read/raw_write.
472
473 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
474
475 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
476 in add_prefix_cmd of set print type.
477
478 2018-10-19 Tom Tromey <tom@tromey.com>
479
480 PR tui/18388:
481 * NEWS: Mention tabset deprecation.
482 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
483 (update_tab_width): New function.
484 (tui_set_tab_width, tui_show_tab_width): New functions.
485 (tui_set_tab_width_command): Use update_tab_width.
486 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
487 Add new "set tui tab-width" command.
488 * tui/tui-source.c (tui_set_source_content): Update.
489 * tui/tui-disasm.c (tui_set_disassem_content): Update.
490 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
491 Don't declare.
492 (tui_tab_width): Declare.
493 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
494 (tui_set_default_tab_len): Remove.
495
496 2018-10-19 Tom Tromey <tom@tromey.com>
497
498 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
499 (key_is_backspace, tui_getc): Don't declare.
500 * tui/tui-io.c (key_is_start_sequence): Now static.
501 (key_is_end_sequence, key_is_backspace): Remove.
502 (tui_getc): Now static.
503
504 2018-10-19 Tom Tromey <tom@tromey.com>
505
506 * symfile.c (reread_symbols): Clear "static_links".
507
508 2018-10-19 Alan Hayward <alan.hayward@arm.com>
509
510 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
511 define.
512 (aarch64_linux_sigframe_init): Extra boundary checks.
513
514 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
515
516 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
517 the possibly non-existent tdesc type 'vec128', but the type of raw
518 register v16 instead.
519
520 2018-10-19 Gary Benson <gbenson@redhat.com>
521
522 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
523
524 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
525
526 PR cli/23785
527 * cli/cli-dump.c (restore_binary_file): Check if "file" is
528 NULL.
529
530 2018-10-17 Paul Koning <paul_koning@dell.com>
531
532 * charset.c (convert_between_encodings): Fix unsigned overflow.
533
534 2018-10-17 John Baldwin <jhb@FreeBSD.org>
535
536 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
537 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
538 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
539 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
540 New functions.
541 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
542 and fbsd_info_proc_mappings_header.
543 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
544 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
545 New.
546
547 2018-10-17 Joel Brobecker <brobecker@adacore.com>
548
549 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
550 Solaris Maintainer.
551
552 2018-10-15 Tom Tromey <tom@tromey.com>
553
554 * tui/tui.c (strcat_to_buf): Remove casts.
555 * tui/tui-winsource.c (tui_show_source_line)
556 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
557 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
558 * tui/tui-windata.c (tui_first_data_item_displayed)
559 (tui_delete_data_content_windows, tui_erase_data_content)
560 (tui_display_all_data, tui_display_data_from)
561 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
562 * tui/tui-win.c (tui_set_win_height)
563 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
564 casts.
565 * tui/tui-win.c (tui_resize_all): Remove casts.
566 (tui_scroll_backward_command, tui_set_focus)
567 (tui_set_tab_width_command): Likewise.
568 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
569 * tui/tui-regs.c (tui_show_register_group): Remove cast.
570 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
571 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
572 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
573 Remove casts.
574
575 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
576
577 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
578 AArch64/ARM maintainer.
579
580 2018-10-11 Gary Benson <gbenson@redhat.com>
581
582 * interps.h (interp::m_name): Make private and mutable.
583 * interps.c (interp::~interp): Free m_name.
584
585 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
586 Simon Marchi <simark@simark.ca>
587
588 * README (`configure' options): Add documentation for new
589 "--enable-unit-tests" option.
590 * acinclude.m4: Include "selftest.m4".
591 * configure: Regenerate.
592 * configure.ac: Use "GDB_AC_SELFTEST".
593 * maint.c (maintenance_selftest): Update message informing
594 that selftests have been disabled.
595 (maintenance_info_selftests): Likewise.
596 * selftest.m4: New file.
597
598 2018-10-10 Gary Benson <gbenson@redhat.com>
599
600 * remote.c (remote_target::remote_send_printf): Add
601 missing va_end found by Coverity.
602
603 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
604
605 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
606
607 2018-10-09 Tom Tromey <tom@tromey.com>
608
609 * configure: Rebuild.
610 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
611 * NEWS: Update --enable-ubsan documentation.
612
613 2018-10-09 Gary Benson <gbenson@redhat.com>
614
615 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
616 found by Coverity.
617
618 2018-10-08 Tom Tromey <tom@tromey.com>
619
620 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
621 variable.
622 (riscv_fbsd_init_abi): Likewise.
623
624 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
625 * valops.c (value_struct_elt_for_reference): Rename local variable
626 to work around the shadowing a previous local warning.
627
628 2018-10-08 John Baldwin <jhb@FreeBSD.org>
629
630 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
631 * NEWS: Mention new FreeBSD/riscv native configuration.
632 * configure.host: Add riscv*-*-freebsd*.
633 * configure.nat: Likewise.
634 * riscv-fbsd-nat.c: New file.
635
636 2018-10-08 John Baldwin <jhb@FreeBSD.org>
637
638 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
639 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
640 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
641 * NEWS: Mention new FreeBSD/riscv target.
642 * configure.tgt: Add riscv*-*-freebsd*.
643 * riscv-fbsd-tdep.c: New file.
644 * riscv-fbsd-tdep.h: New file.
645
646 2018-10-08 John Baldwin <jhb@FreeBSD.org>
647
648 * regcache.h (struct regcache_map_entry): Note that this type can
649 be used with traditional frame caches.
650 * trad-frame.c (trad_frame_set_reg_regmap): New.
651 * trad-frame.h (trad_frame_set_reg_regmap): New.
652
653 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
654
655 PR c++/16841
656 * valops.c (get_virtual_base_offset): New function.
657 (value_struct_elt_for_reference): Use it to get virtual base offset
658 and add it in calculating class member address.
659
660 2018-10-08 John Darrington <john@darrington.wattle.id.au>
661
662 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
663 (check_producer): Check if the producer is codewarrior.
664 (producer_is_codewarrior): New function.
665 (lnp_state_machine::record_line): Ignore is_stmt flag for records
666 produced by codewarrior.
667 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
668
669 2018-10-06 Tom Tromey <tom@tromey.com>
670
671 PR python/19399:
672 * python/py-inferior.c: Add "architecture" entry.
673 (infpy_architecture): New function.
674
675 2018-10-06 Tom Tromey <tom@tromey.com>
676
677 PR python/21765:
678 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
679 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
680 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
681 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
682
683 2018-10-06 Tom Tromey <tom@tromey.com>
684
685 PR build/17077:
686 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
687 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
688 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
689 #include.
690
691 2018-10-06 Tom Tromey <tom@tromey.com>
692
693 * python/py-breakpoint.c (bppy_get_location): Handle a
694 bp_breakpoint without a location.
695
696 2018-10-06 Tom Tromey <tom@tromey.com>
697
698 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
699 (_RegEx): Reformat help text.
700 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
701 (AnyCallerIs, AnyCallerMatches): Reformat help text.
702 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
703 text.
704 * python/lib/gdb/command/xmethods.py (InfoXMethod)
705 (EnableXMethod, DisableXMethod): Remove help indentation.
706 Capitalize meta-syntactic variables.
707 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
708 (EnableUnwinder, DisableUnwinder): Remove help indentation.
709 Capitalize meta-syntactic variables.
710 * python/lib/gdb/command/explore.py (ExploreCommand)
711 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
712 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
713 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
714 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
715 Remove help indentation.
716 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
717 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
718 (DisableFrameFilter, SetFrameFilterPriority)
719 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
720
721 2018-10-06 Tom Tromey <tom@tromey.com>
722
723 PR tui/28819:
724 * tui/tui-io.c (gdb_wgetch): New function.
725 (tui_mld_getc, tui_getc): Use it.
726
727 2018-10-05 Tom Tromey <tom@tromey.com>
728
729 * sol-thread.c (sol_thread_target::wait): Rename inner
730 "save_ptid".
731
732 2018-10-04 Tom Tromey <tom@tromey.com>
733
734 * configure: Rebuild.
735 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
736
737 2018-10-04 Tom Tromey <tom@tromey.com>
738
739 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
740 declaration of "block".
741
742 2018-10-04 Tom Tromey <tom@tromey.com>
743
744 * common/filestuff.c (fdwalk): Remove inner declaration of
745 "result".
746
747 2018-10-04 Tom Tromey <tom@tromey.com>
748
749 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
750 "structs_addr" and hoist declaration.
751
752 2018-10-04 Tom Tromey <tom@tromey.com>
753
754 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
755 variable "size".
756
757 2018-10-04 Tom Tromey <tom@tromey.com>
758
759 * mdebugread.c (parse_partial_symbols): Use std::string.
760
761 2018-10-04 Tom Tromey <tom@tromey.com>
762
763 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
764 * p-valprint.c (pascal_val_print): Split inner "i" variable.
765 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
766 header.
767 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
768 more inner scope.
769 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
770 * varobj.c (varobj_update): Rename inner "newobj",
771 "type_changed".
772 * valprint.c (generic_emit_char): Rename inner "buf".
773 * valops.c (find_overload_match): Rename inner "temp".
774 (value_struct_elt_for_reference): Declare "v" in more inner
775 scope.
776 * v850-tdep.c (v850_push_dummy_call): Rename "len".
777 * unittests/array-view-selftests.c (run_tests): Rename inner
778 "vec".
779 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
780 header.
781 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
782 "tsv" in more inner scope.
783 (print_one_static_tracepoint_marker): Rename inner
784 "tuple_emitter".
785 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
786 (tic6x_push_dummy_call): Don't redeclare "addr".
787 * target-float.c: Declare "dto" lower.
788 * symtab.c (lookup_local_symbol): Rename inner "sym".
789 (find_pc_sect_line): Rename inner "pc".
790 * stack.c (print_frame): Don't redeclare "gdbarch".
791 (return_command): Rename inner "gdbarch".
792 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
793 "sp".
794 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
795 header.
796 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
797 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
798 scope.
799 * remote.c (remote_target::update_thread_list): Don't redeclare
800 "tp".
801 (remote_target::process_initial_stop_replies): Rename inner
802 "thread".
803 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
804 (remote_target::wait_as): Don't redeclare "stop_reply".
805 (remote_target::get_thread_local_address): Rename inner
806 "result".
807 (remote_target::get_tib_address): Likewise.
808
809 * regcache.c (cooked_read_test): Rename "regnum".
810 * record-btrace.c (cmd_record_btrace_start): Rename inner
811 "exception".
812 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
813 loop header.
814 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
815 header.
816 (ppu2spu_sniffer): Rename inner "buf".
817 * parse.c (operator_check_standard): Rename inner "type",
818 "objfile".
819 * p-valprint.c (pascal_val_print): Introduce new scope for
820 "low_bound", "high_bound".
821 * p-exp.y (yylex): Declare "i" in loop header.
822 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
823 Lower declaration of "s".
824 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
825 header.
826 (nios2_push_dummy_call): Rename "len".
827 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
828 "buf".
829 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
830 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
831 (linux_xfer_osdata_modules): Likewise.
832 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
833 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
834 (mips_o64_push_dummy_call): Likewise.
835 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
836 "op".
837 * mi/mi-main.c (list_available_thread_groups): Rename inner
838 "tuple_emitter".
839 (mi_cmd_data_read_memory): Rename inner "opts".
840 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
841 "tuple_emitter".
842 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
843 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
844 more inner scope.
845 (parse_partial_symbols): Rename inner "pst", "p", "name"
846 * main.c (captured_main_1): Rename inner "i"s.
847 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
848 "oso2".
849 * linux-tdep.c (linux_info_proc): Rename inner "filename".
850 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
851 * infrun.c (handle_no_resumed): Don't redeclare "thread".
852 (handle_signal_stop): Rename inner "gdbarch".
853 (handle_command): Declare "signum" in loop header.
854 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
855 "status".
856 (examine_prologue): Rename inner "sol" and "sof".
857 (ia64_extract_return_value): Rename inner "val". Declare another
858 "val" in a more inner scope.
859 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
860 inner scope.
861 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
862 "except".
863 * findvar.c (default_read_var_value): Don't redeclare "addr".
864 * f-exp.y (yylex): Declare "i" in loop header.
865 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
866 Rename inner "type", "expect_type".
867 (evaluate_subexp_for_sizeof): Rename inner "pc".
868 * elfread.c (elf_symfile_read): Rename inner "abfd".
869 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
870 "bytes_read".
871 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
872 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
873 (dwarf_decode_line_header): Rename inner "lh".
874 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
875 "offset". Declare "i" in loop header.
876 (disassemble_dwarf_expression): Rename inner "addr_size".
877 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
878 inner "result".
879 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
880 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
881 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
882 "inner_list_emitter".
883 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
884 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
885 declaration in a block.
886 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
887 * cp-valprint.c (cp_print_value_fields): Don't redeclare
888 "obstack_final_size".
889 * cp-support.c (inspect_type): Declare "i" in loop header.
890 * compile/compile.c (compile_instance::insert_symbol_error):
891 Rename inner "e".
892 * common/agent.c (agent_run_command): Remove inner "ret"
893 declaration.
894 * coffread.c (coff_symfile_read): Rename inner "name".
895 (coff_symfile_read): Rename inner "abfd".
896 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
897 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
898 "high".
899 * c-exp.y (lex_one_token): Move "len" declaration lower.
900 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
901 "gdbarch".
902 (create_exception_master_breakpoint): Likewise. Don't redeclare
903 "b".
904 (watch_command_1): Declare "mark" later.
905 (clear_command): Don't shadow "a" or "b".
906 (delete_command): Rename inner "b".
907 (delete_trace_command): Likewise.
908 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
909 "op".
910 (arm_gdbarch_init): Remove inner "e_flags".
911 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
912 "offset" in inner blocks.
913
914 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
915
916 * dwarf-index-write.c (file_write): Don't write if the vector is
917 empty.
918
919 2018-10-05 Tom de Vries <tdevries@suse.de>
920
921 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
922 PyArg_ParseTuple call.
923
924 2018-10-05 Tom de Vries <tdevries@suse.de>
925
926 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
927 PyArg_ParseTuple call.
928
929 2018-10-04 Joel Brobecker <brobecker@adacore.com>
930
931 * psymtab.c (recursively_search_psymtabs): Reformat parameters
932 to avoid exceeding 80 characters per line limit.
933
934 2018-10-04 Tom Tromey <tom@tromey.com>
935
936 * symfile.c (syms_from_objfile_1, finish_new_objfile)
937 (reread_symbols): Update.
938 * complaints.h (clear_complaints): Remove argument.
939 * complaints.c (enum complaint_series): Remove.
940 (series): Remove global.
941 (complaint_internal): Update.
942 (clear_complaints): Remove argument.
943
944 2018-10-04 Tom Tromey <tom@tromey.com>
945
946 * symfile.c (symbol_file_add_with_addrs): Do not print "no
947 debugging symbols" message if there is a separate debug objfile.
948
949 2018-10-04 Tom Tromey <tom@tromey.com>
950
951 PR cli/19551:
952 * symfile.c (symbol_file_add_with_addrs): Update output.
953 * psymtab.c (require_partial_symbols): Update output.
954
955 2018-10-04 Tom Tromey <tom@tromey.com>
956
957 PR cli/22234:
958 * complaints.c: Emit \n.
959
960 2018-10-04 Tom Tromey <tom@tromey.com>
961
962 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
963 (separate_debug_file_exists, find_separate_debug_file)
964 (add_symbol_file_command, reread_symbols, allocate_symtab)
965 (allocate_compunit_symtab): Use filtered printing, not
966 unfiltered.
967 * psymtab.c (require_partial_symbols, dump_psymtab)
968 (allocate_psymtab): Use filtered printing, not unfiltered.
969
970 2018-10-04 Tom Tromey <tom@tromey.com>
971
972 * complaints.c (complaint_internal): Correctly check complaint
973 count.
974
975 2018-10-04 Tom Tromey <tom@tromey.com>
976
977 * complaints.h (struct complaints): Remove declaration.
978 * complaints.c (clear_complaints): Remove an unused variable.
979
980 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
981
982 * MAINTAINERS (Write After Approval): Add self.
983
984 2018-10-03 Tom Tromey <tom@tromey.com>
985
986 * guile/scm-value.c (gdbscm_value_to_string): Initialize
987 "buffer_contents".
988 * coffread.c (coff_symtab_read): Initialize "newobj".
989
990 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
991
992 * dwarf2read.c (read_func_scope): Remove struct keyword in
993 range-based for.
994
995 2018-10-03 Tom Tromey <tom@tromey.com>
996
997 * README: Mention --enable-ubsan.
998 * NEWS: Mention --enable-ubsan.
999 * acinclude.m4: Include sanitize.m4.
1000 * configure: Rebuild.
1001 * configure.ac: Call AM_GDB_UBSAN.
1002 * sanitize.m4: New file.
1003
1004 2018-10-03 Tom Tromey <tom@tromey.com>
1005
1006 * expression.h (enum exp_opcode): Use uint8_t as base type.
1007 * expprint.c (op_name): Handle invalid opcodes.
1008
1009 2018-10-03 Tom Tromey <tom@tromey.com>
1010
1011 * parse.c (prefixify_expression): Add assert.
1012 (parse_exp_in_context_1): Throw exception if the expression is
1013 empty.
1014
1015 2018-10-03 Tom Tromey <tom@tromey.com>
1016
1017 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1018
1019 2018-10-03 Tom Tromey <tom@tromey.com>
1020
1021 * c-exp.y (parse_number): Work in unsigned. Remove casts.
1022
1023 2018-10-03 Tom Tromey <tom@tromey.com>
1024
1025 * dwarf2read.c (read_subrange_type): Make "negative_mask"
1026 unsigned.
1027
1028 2018-10-03 Tom Tromey <tom@tromey.com>
1029
1030 * findvar.c (extract_integer): Do work in an unsigned type.
1031
1032 2018-10-03 Tom Tromey <tom@tromey.com>
1033
1034 * common/enum-flags.h (enum_flags::operator~): Add static assert.
1035 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1036 base type.
1037 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1038 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1039 type.
1040 * c-lang.h (enum c_string_type_values): Use unsigned as base
1041 type.
1042 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1043
1044 2018-10-03 Tom Tromey <tom@tromey.com>
1045
1046 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1047 <~dwarf2_frame_state_reg_info>: Update.
1048 <dwarf2_frame_state_reg_info>: Update.
1049 <alloc_regs>: Add assertion. Update.
1050 <reg>: Now a std::vector.
1051 <num_regs>: Remove.
1052 <swap>: Update.
1053 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1054 (execute_cfa_program_test, dwarf2_frame_cache): Update.
1055
1056 2018-10-03 Tom Tromey <tom@tromey.com>
1057
1058 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1059
1060 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1061
1062 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1063
1064 2018-10-02 Tom Tromey <tom@tromey.com>
1065
1066 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1067
1068 2018-10-02 John Darrington <john@darrington.wattle.id.au>
1069
1070 * NEWS: Mention changed commands.
1071 * ser-uds.c: New file.
1072 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1073 * configure: Regenerate.
1074 * Makefile.in: Add new file.
1075 * serial.c (serial_open): Check if filename is a socket
1076 and lookup the appropriate interface accordingly.
1077
1078 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1079
1080 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1081 define.
1082 (AARCH64_EXTRA_MAGIC): Likewise.
1083 (AARCH64_FPSIMD_MAGIC): Likewise.
1084 (AARCH64_SVE_MAGIC): Likewise.
1085 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1086 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1087 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1088 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1089 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1090 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1091 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1092 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1093 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1094 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1095 (read_aarch64_ctx): Add function.
1096 (aarch64_linux_sigframe_init): Detect FP registers.
1097
1098 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1099
1100 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
1101 (AARCH64_D0_REGNUM): Likewise.
1102 (AARCH64_S0_REGNUM): Likewise.
1103 (AARCH64_H0_REGNUM): Likewise.
1104 (AARCH64_B0_REGNUM): Likewise.
1105 (AARCH64_SVE_V0_REGNUM): Likewise.
1106 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1107 (AARCH64_D0_REGNUM): Likewise.
1108 (AARCH64_S0_REGNUM): Likewise.
1109 (AARCH64_H0_REGNUM): Likewise.
1110 (AARCH64_B0_REGNUM): Likewise.
1111 (AARCH64_SVE_V0_REGNUM): Likewise.
1112
1113 2018-10-01 Gary Benson <gbenson@redhat.com>
1114
1115 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1116 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1117 prfpregset_t instead of gdb_prfpregset_t.
1118 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1119 * configure, config.in: Rebuild.
1120
1121 2018-10-01 Gary Benson <gbenson@redhat.com>
1122
1123 * common/gdb_proc_service.h: New file, factored out from...
1124 * gdb_proc_service.h: Moved common code to the above file.
1125 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
1126
1127 2018-10-01 Gary Benson <gbenson@redhat.com>
1128
1129 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
1130 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
1131
1132 2018-10-01 Gary Benson <gbenson@redhat.com>
1133
1134 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
1135 (AC_CHECK_HEADERS): Check for linux/elf.h.
1136 * configure, config.in: Rebuild.
1137 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
1138 doesn't define elf_fpregset_t.
1139
1140 2018-10-01 Gary Benson <gbenson@redhat.com>
1141
1142 * gdb_proc_service.h: Whitespace change.
1143
1144 2018-10-01 Tom Tromey <tom@tromey.com>
1145
1146 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
1147 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
1148 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
1149
1150 2018-10-01 Tom Tromey <tom@tromey.com>
1151
1152 * README: Minor change.
1153
1154 2018-09-30 Pedro Alves <palves@redhat.com>
1155
1156 * darwin-nat-info.c (darwin_debug_regions_recurse)
1157 (info_mach_exceptions_command): Remove unused local variables.
1158 * darwin-nat.c (darwin_decode_notify_message)
1159 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
1160 (darwin_stop_inferior, darwin_setup_exceptions)
1161 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
1162 (darwin_nat_target::attach, darwin_nat_target::detach)
1163 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
1164 local variables.
1165 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
1166 variables.
1167
1168 2018-09-29 Tom Tromey <tom@tromey.com>
1169
1170 * README: Remove some leftover text.
1171
1172 2018-09-29 Tom Tromey <tom@tromey.com>
1173
1174 * PROBLEMS: Rewrite.
1175 * README: Update.
1176
1177 2018-09-28 John Baldwin <jhb@FreeBSD.org>
1178
1179 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
1180 case with explicit breakpoint kind.
1181 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
1182 'additional_info' and related logic.
1183 (riscv_debug_breakpoints): New variable.
1184 (riscv_breakpoint_kind_from_pc): Use the length of the existing
1185 instruction to determine the breakpoint kind.
1186 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
1187 flag. Update description of 'set/show riscv
1188 use-compressed-breakpoints' flag.
1189
1190 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
1191
1192 (NEWS): Mention changes to frame related commands.
1193 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
1194 (add_prefix_cmd_suppress_notification): New function.
1195 (add_com_suppress_notification): Call
1196 add_cmd_suppress_notification.
1197 * command.h (add_cmd_suppress_notification): Declare.
1198 (add_prefix_cmd_suppress_notification): Declare.
1199 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
1200 (parse_frame_specification): Moved from stack.c, with
1201 simplification to handle a single argument.
1202 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
1203 switch to the selected frame. Add a header comment.
1204 * stack.c: Remove 'safe-ctype.h' include.
1205 (find_frame_for_function): Add declaration.
1206 (find_frame_for_address): New function.
1207 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
1208 (frame_selection_by_function_completer): New function.
1209 (info_frame_command): Rename to...
1210 (info_frame_command_core): ...this, and update parameter types.
1211 (select_frame_command): Rename to...
1212 (select_frame_command_core): ...this, and update parameter types.
1213 (frame_command): Rename to...
1214 (frame_command_core): ...this, and update parameter types.
1215 (class frame_command_helper): New class to wrap implementations of
1216 frame related sub-commands.
1217 (frame_apply_cmd_list): New static global.
1218 (frame_cmd_list): Make static.
1219 (select_frame_cmd_list): New global for sub-commands.
1220 (info_frame_cmd_list): New global for sub-commands.
1221 (_initialize_stack): Register sub-commands for 'frame',
1222 'select-frame', and 'info frame'. Update 'frame apply' commands
1223 to use frame_apply_cmd_list. Move function local static
1224 frame_apply_list to file static frame_apply_cmd_list for
1225 consistency.
1226 * stack.h (select_frame_command): Delete declarationn.
1227 (select_frame_for_mi): Declare new function.
1228
1229 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
1230
1231 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
1232 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
1233 and NOP.
1234
1235 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
1236
1237 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
1238
1239 2018-09-26 Tom Tromey <tom@tromey.com>
1240
1241 * valops.c (auto_abandon): Remove dead code.
1242
1243 2018-09-26 Tom Tromey <tom@tromey.com>
1244
1245 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
1246
1247 2018-09-24 Tom Tromey <tom@tromey.com>
1248
1249 * common/pathstuff.c (get_standard_cache_dir): Make
1250 "xdg_cache_home" and "home" const.
1251 * top.c (init_history): Make "tmpenv" const.
1252 * main.c (get_init_files): Make "homedir" const.
1253
1254 2018-09-23 Tom Tromey <tom@tromey.com>
1255
1256 PR python/18852:
1257 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
1258
1259 2018-09-23 Tom Tromey <tom@tromey.com>
1260
1261 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
1262 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
1263 * python/python-internal.h (gdbpy_handle_exception): Declare.
1264 * python/py-utils.c (gdbpy_handle_exception): New function.
1265
1266 2018-09-23 Tom Tromey <tom@tromey.com>
1267
1268 PR python/17284:
1269 * python/py-type.c (typy_template_argument): Check for negative
1270 argument number.
1271
1272 2018-09-23 Tom Tromey <tom@tromey.com>
1273
1274 PR python/14062:
1275 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
1276
1277 2018-09-23 Tom Tromey <tom@tromey.com>
1278
1279 PR python/18170:
1280 * python/py-value.c (valpy_int): Allow conversion from pointer
1281 type.
1282
1283 2018-09-23 Tom Tromey <tom@tromey.com>
1284
1285 PR python/20126:
1286 * python/py-value.c (valpy_int): Respect type sign.
1287
1288 2018-09-23 Tom Tromey <tom@tromey.com>
1289
1290 PR python/18352;
1291 * python/py-value.c (valpy_float): Allow conversions from int or
1292 char.
1293 (valpy_int, valpy_long): Allow conversions from float.
1294
1295 2018-09-23 Tom Tromey <tom@tromey.com>
1296
1297 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
1298 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
1299
1300 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1301
1302 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
1303 __sighndlr.
1304 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
1305
1306 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
1307
1308 * windows-nat.c (windows_nat_target::wait): Remove a spurious
1309 target_terminal::ours().
1310
1311 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
1312
1313 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
1314 of vl to ULONGEST.
1315
1316 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
1317
1318 * breakpoint.c (update_inserted_breakpoint_locations): Remove
1319 redundant condition.
1320
1321 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1322
1323 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
1324
1325 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
1326 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
1327 * sol-thread.c (ps_pdmodel): Don't guard definition.
1328
1329 * procfs.c: Fix formatting.
1330
1331 * procfs.c (sysset_t_alloc): Remove.
1332 (create_procinfo): Use XNEW instead of sysset_t_alloc.
1333 (procfs_debug_inferior): Likewise.
1334 (procfs_set_exec_trap): Likewise.
1335 (proc_set_traced_sysentry): Don't allocate argp dynamically.
1336 (proc_set_traced_sysexit): Likewise.
1337
1338 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
1339 (dead_procinfo): Likewise.
1340 (proc_warn): Likewise.
1341 (proc_error): Likewise.
1342 (proc_get_LDT_entry): Likewise.
1343 (do_attach): Likewise.
1344 (procfs_target::pid_to_str): Likewise.
1345 (iterate_over_mappings): Likewise.
1346
1347 * procfs.c (create_procinfo): Fix ARI warning.
1348 (proc_get_status): Likewise.
1349 (proc_stop_process): Likewise.
1350 (proc_run_process): Likewise.
1351 (proc_kill): Likewise.
1352 (proc_get_LDT_entry): Likewise.
1353 (procfs_find_LDT_entry): Likewise.
1354 (proc_update_threads): Likewise.
1355 (proc_iterate_over_threads): Likewise.
1356 (do_attach): Likewise.
1357 (procfs_xfer_memory): Likewise.
1358 (invalidate_cache): Likewise.
1359 (procfs_target::resume): Likewise.
1360 (procfs_init_inferior): Likewise.
1361 (procfs_set_exec_trap): Likewise.
1362 (procfs_target::thread_alive): Likewise.
1363 (procfs_target::pid_to_exec_file): Likewise.
1364 (iterate_over_mappings): Likewise.
1365 (procfs_target::make_corefile_notes): Likewise.
1366 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
1367
1368 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
1369 (procfs_find_LDT_entry): Likewise.
1370 * sol-thread.c (ps_lgetLDT): Likewise.
1371
1372 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1373
1374 PR tdep/17903
1375 * procfs.c (procfs_target): Declare pid_to_exec_file.
1376 (procfs_target::pid_to_exec_file): New.
1377
1378 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1379
1380 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
1381 renaming.
1382 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
1383 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
1384
1385 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1386
1387 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
1388 (supply_fpregset, fill_fpregset): Move ...
1389 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
1390 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
1391 Remove references to ioctl-based procfs.
1392 Include <sys/reg.h>.
1393 Remove PR_MODEL_NATIVE guards.
1394 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
1395 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
1396
1397 2018-09-19 Xavier Roirand <roirand@adacore.com>
1398
1399 PR gdb/20981:
1400 * solib-darwin.c (darwin_get_dyld_bfd): New function.
1401 (darwin_solib_get_all_image_info_addr_at_init): Update call.
1402 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
1403
1404 2018-09-19 John Baldwin <jhb@FreeBSD.org>
1405
1406 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
1407 (fbsd_print_sockaddr_in6): Likewise.
1408
1409 2018-09-19 Richard Bunt <richard.bunt@arm.com>
1410 Chris January <chris.january@arm.com>
1411
1412 * eval.c (skip_undetermined_arglist): Skip argument list helper.
1413 (evaluate_subexp_standard): Return a dummy type when
1414 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
1415 OP_F77_UNDETERMINED_ARGLIST case.
1416 * expression.h (enum noside): Update comment.
1417
1418 2018-09-19 George Vasick <george.vasick@oracle.com>
1419
1420 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
1421
1422 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
1423 April Chin <april.chin@oracle.com>
1424 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1425
1426 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
1427 uint_t lwpid_t.
1428 (create_procinfo): Print pids in /proc without leading zeros.
1429
1430 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
1431
1432 * nios2-tdep.c (nios2_gcc_target_options): New.
1433 (nios2_gdb_arch_init): Install new hook.
1434
1435 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
1436
1437 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
1438 New file.
1439 * update-gnulib.sh: Apply patch.
1440 * configure: Re-generate.
1441
1442 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1443
1444 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
1445 description. Make "info proc" command descriptions more
1446 consistent.
1447
1448 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1449
1450 * NEWS: Mention 'info proc files' command.
1451
1452 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1453
1454 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
1455 descriptors for IP_FILES and IP_ALL.
1456
1457 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1458
1459 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
1460 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
1461 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
1462 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
1463 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
1464 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
1465 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
1466 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
1467 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
1468 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
1469 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
1470 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
1471 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
1472 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
1473 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
1474 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
1475 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
1476 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1477 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1478 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1479 (struct fbsd_sockaddr_un): New types.
1480 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1481 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1482 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1483 (fbsd_core_info_proc_files): New functions.
1484 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1485 IP_ALL.
1486 * fbsd-tdep.h (fbsd_info_proc_files_header)
1487 (fbsd_info_proc_files_entry): New.
1488
1489 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1490
1491 * defs.h (enum info_proc_what) [IP_FILES]: New value.
1492 * infcmd.c (info_proc_cmd_files): New function.
1493 (_initialize_infcmd): Register 'info proc files' command.
1494
1495 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1496
1497 * gnulib/aclocal-m4-deps.mk: Re-generate.
1498 * gnulib/aclocal.m4: Re-generate.
1499 * gnulib/config.in: Re-generate.
1500 * gnulib/configure: Re-generate.
1501 * gnulib/import/Makefile.am: Re-generate.
1502 * gnulib/import/Makefile.in: Re-generate.
1503 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1504 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1505 * gnulib/import/arpa_inet.in.h: New file.
1506 * gnulib/import/inet_ntop.c: New file.
1507 * gnulib/import/m4/arpa_inet_h.m4: New file.
1508 * gnulib/import/m4/inet_ntop.m4: New file.
1509 * gnulib/import/m4/netinet_in_h.m4: New file.
1510 * gnulib/import/m4/socklen.m4: New file.
1511 * gnulib/import/m4/sockpfaf.m4: New file.
1512 * gnulib/import/m4/stdalign.m4: New file.
1513 * gnulib/import/m4/sys_uio_h.m4: New file.
1514 * gnulib/import/netinet_in.in.h: New file.
1515 * gnulib/import/stdalign.in.h: New file.
1516 * gnulib/import/sys_socket.c: New file.
1517 * gnulib/import/sys_socket.in.h: New file.
1518 * gnulib/import/sys_uio.in.h: New file.
1519 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1520 module.
1521
1522 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1523
1524 * gnulib/aclocal-m4-deps.mk: New file.
1525 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1526 deterministically.
1527
1528 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1529
1530 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1531 KVE_PATH.
1532
1533 2018-09-18 Tom Tromey <tom@tromey.com>
1534
1535 * compile/compile-object-load.c (struct
1536 link_hash_table_cleanup_data): Add constructor and destructor.
1537 Use DISABLE_COPY_AND_ASSIGN.
1538 (~link_hash_table_cleanup_data): Rename from
1539 link_hash_table_free. Now a destructor.
1540 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1541
1542 2018-09-18 Tom Tromey <tom@tromey.com>
1543
1544 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1545 * compile/compile-object-load.c (struct munmap_list): Move to
1546 header file.
1547 (munmap_list::add): Rename from munmap_list_add; rewrite.
1548 (munmap_list::~munmap_list): Rename from munmap_list_free.
1549 (munmap_listp_free_cleanup): Remove.
1550 (compile_object_load): Update.
1551 * compile/compile-object-load.h (struct munmap_list): Move from
1552 compile-object-load.c. Rewrite.
1553
1554 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1555
1556 * aarch64-tdep.c (pass_in_v): Use register size.
1557 (aarch64_extract_return_value): Likewise.
1558 (aarch64_store_return_value): Likewise.
1559
1560 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1561
1562 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1563 rlim_t.
1564
1565 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1566
1567 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1568 Fix short help line.
1569
1570 2018-09-17 Tom Tromey <tom@tromey.com>
1571
1572 PR python/20445:
1573 * configure: Rebuild.
1574 * configure.ac: Conditionally use -DNDEBUG for Python.
1575
1576 2018-09-17 Tom Tromey <tom@tromey.com>
1577
1578 * configure: Rebuild.
1579 * configure.ac: Use gmp as a library dependency when checking for
1580 mpfr.
1581
1582 2018-09-17 Pedro Alves <palves@redhat.com>
1583
1584 * python/py-inferior.c (find_inferior_object): Delete.
1585
1586 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1587
1588 * compile/compile-cplus-types.c
1589 (compile_cplus_instance::enter_scope): Don't use new_scope after
1590 std::move.
1591
1592 2018-09-17 Tom Tromey <tom@tromey.com>
1593
1594 * common/pathstuff.c (get_standard_cache_dir): Use
1595 ~/Library/Caches on macOS.
1596 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1597
1598 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1599
1600 PR python/23669
1601 * breakpoint.c (commands_cmd_element): New.
1602 (_initialize_breakpoint): Assign commands_cmd_element.
1603 * breakpoint.h (commands_cmd_element): New.
1604 * cli/cli-script.c (while_cmd_element, if_command,
1605 define_cmd_element): New.
1606 (command_name_equals): Remove.
1607 (process_next_line): Compare commands by pointer, not by name.
1608 (_initialize_cli_script): Assign the various cmd_list_element
1609 variables.
1610 * compile/compile.c (compile_cmd_element): New.
1611 (_initialize_compile): Assign compile_cmd_element.
1612 * compile/compile.h (compile_cmd_element): New.
1613 * guile/guile.c (guile_cmd_element): New.
1614 (install_gdb_commands): Assign guile_cmd_element.
1615 * guile/guile.h (guile_cmd_element): New.
1616 * python/python.c (python_cmd_element): New.
1617 (_initialize_python): Assign python_cmd_element.
1618 * python/python.h (python_cmd_element): New.
1619 * tracepoint.c (while_stepping_cmd_element): New.
1620 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1621 * tracepoint.h (while_stepping_cmd_element): New.
1622
1623 2018-09-17 Tom Tromey <tom@tromey.com>
1624
1625 * infrun.c (save_infcall_suspend_state): Return
1626 infcall_suspend_state_up.
1627 (save_infcall_control_state): Return infcall_control_state_up.
1628 * inferior.h (save_infcall_suspend_state)
1629 (save_infcall_control_state): Declare later. Return unique
1630 pointers.
1631
1632 2018-09-17 Tom Tromey <tom@tromey.com>
1633
1634 * infrun.c (struct stop_context): Declare constructor,
1635 destructor, "changed" method.
1636 (stop_context::stop_context): Rename from save_stop_context.
1637 (stop_context::~stop_context): Rename from
1638 release_stop_context_cleanup.
1639 (normal_stop): Update.
1640 (stop_context::changed): Rename from stop_context_changed. Return
1641 bool.
1642
1643 2018-09-17 Tom Tromey <tom@tromey.com>
1644
1645 * inferior.h (struct infcall_suspend_state_deleter): New.
1646 (infcall_suspend_state_up): New typedef.
1647 (struct infcall_control_state_deleter): New.
1648 (infcall_control_state_up): New typedef.
1649 (make_cleanup_restore_infcall_suspend_state)
1650 (make_cleanup_restore_infcall_control_state): Don't declare.
1651 * infcall.c (call_function_by_hand_dummy): Update.
1652 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1653 (make_cleanup_restore_infcall_suspend_state): Remove.
1654 (do_restore_infcall_control_state_cleanup)
1655 (make_cleanup_restore_infcall_control_state): Remove.
1656
1657 2018-09-17 Tom Tromey <tom@tromey.com>
1658
1659 * gdbthread.h (struct thread_control_state): Add initializer.
1660 (class thread_info) <control>: Remove initializer.
1661 * inferior.h (struct inferior_control_state): Add initializer.
1662 (class inferior) <control>: Remove initializer.
1663 (exit_inferior_1): Update.
1664 * infrun.c (struct infcall_control_state): Add constructors.
1665 (save_infcall_control_state): Use new.
1666 (restore_infcall_control_state, discard_infcall_control_state):
1667 Use delete.
1668
1669 2018-09-17 Tom Tromey <tom@tromey.com>
1670
1671 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1672 unique_ptr.
1673 <siginfo_data>: Now a unique_xmalloc_ptr.
1674 (save_infcall_suspend_state, restore_infcall_suspend_state)
1675 (discard_infcall_suspend_state)
1676 (get_infcall_suspend_state_regcache): Update.
1677
1678 2018-09-17 Tom Tromey <tom@tromey.com>
1679
1680 * gdbthread.h (struct thread_suspend_state): Add initializers.
1681 (class thread_info) <suspend>: Remove initializer.
1682 * infrun.c (struct infcall_suspend_state): Add initializers.
1683 (save_infcall_suspend_state): Use new.
1684 (discard_infcall_suspend_state): Use delete.
1685
1686 2018-09-16 Tom Tromey <tom@tromey.com>
1687
1688 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1689 Remove.
1690 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1691 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1692 (py_varobj_iter_new): Likewise.
1693 (py_varobj_get_iterator): Use gdbpy_ref.
1694
1695 2018-09-16 Tom Tromey <tom@tromey.com>
1696
1697 * python/py-threadevent.c (py_get_event_thread): Simplify.
1698 * python/py-inferior.c (infpy_thread_from_thread_handle):
1699 Return immediately after calling thread_to_thread_object. Use
1700 Py_RETURN_NONE.
1701 (thread_to_thread_object): Set the exception on a NULL return.
1702
1703 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1704
1705 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1706
1707 2018-09-16 Tom Tromey <tom@tromey.com>
1708
1709 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1710 Remove.
1711
1712 2018-09-16 Tom Tromey <tom@tromey.com>
1713
1714 * python/python-internal.h (thread_to_thread_object): Change
1715 return type.
1716 * python/py-inferior.c (thread_to_thread_object): Return a new
1717 reference.
1718 (infpy_thread_from_thread_handle): Update.
1719 * python/py-infthread.c (gdbpy_selected_thread): Update.
1720 * python/py-stopevent.c (create_stop_event_object): Update.
1721 * python/py-threadevent.c (py_get_event_thread): Return a new
1722 reference.
1723 (py_get_event_thread): Update.
1724 * python/py-event.h (py_get_event_thread): Change return type.
1725 * python/py-continueevent.c (create_continue_event_object):
1726 Update.
1727
1728 2018-09-16 Tom Tromey <tom@tromey.com>
1729
1730 * python/py-progspace.c (pspy_get_objfiles): Update.
1731 * python/python-internal.h (objfile_to_objfile_object): Change
1732 return type.
1733 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1734 Update.
1735 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1736 Update.
1737 * python/python.c (gdbpy_get_current_objfile): Update.
1738 (gdbpy_objfiles): Update.
1739 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1740 Update.
1741 (objfile_to_objfile_object): Return a new reference.
1742 * python/py-symtab.c (stpy_get_objfile): Update.
1743 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1744 Update.
1745
1746 2018-09-16 Tom Tromey <tom@tromey.com>
1747
1748 * python/py-inferior.c (infpy_get_progspace): Update.
1749 * python/python-internal.h (pspace_to_pspace_object): Change
1750 return type.
1751 * python/py-newobjfileevent.c
1752 (create_clear_objfiles_event_object): Update.
1753 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1754 Update.
1755 * python/python.c (gdbpy_get_current_progspace): Update.
1756 (gdbpy_progspaces): Update.
1757 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1758 reference.
1759 * python/py-objfile.c (objfpy_get_progspace): Update.
1760 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1761 Update.
1762
1763 2018-09-16 Tom Tromey <tom@tromey.com>
1764
1765 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1766 (solib_name, block_for_pc, find_pc_line): New functions.
1767 (execute_unwinders): Update.
1768 * python/py-block.c (gdbpy_block_for_pc): Remove.
1769 * python/py-inferior.c (infpy_get_progspace): New function.
1770 (inferior_object_getset) <progspace>: Add.
1771 * python/py-progspace.c (pspy_objfiles): Rewrite.
1772 (pspy_solib_name, pspy_block_for_pc)
1773 (pspy_find_pc_line, pspy_is_valid): New functions.
1774 (progspace_object_methods): Add entries for solib_name,
1775 block_for_pc, find_pc_line, is_valid.
1776 * python/python-internal.h (gdbpy_block_for_pc)
1777 (build_objfiles_list): Don't declare.
1778 * python/python.c: Don't include solib.h.
1779 (gdbpy_solib_name, gdbpy_find_pc_line)
1780 (gdbpy_get_current_progspace, build_objfiles_list)
1781 (gdbpy_objfiles): Remove.
1782 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1783 solib_name, find_pc_line>: Remove entries.
1784
1785 2018-09-16 Tom Tromey <tom@tromey.com>
1786
1787 * top.c (new_ui_command): Use GNU style for metasyntactic
1788 variables.
1789 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1790 variables.
1791 * maint.c (maintenance_translate_address): Remove "<>" around
1792 text.
1793 * interps.c (interpreter_exec_cmd): Use GNU style for
1794 metasyntactic variables.
1795 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1796 metasyntactic variables.
1797 * tracepoint.c (tfind_range_command): Use GNU style for
1798 metasyntactic variables.
1799 (tfind_outside_command): Likewise.
1800 (_initialize_tracepoint): Likewise.
1801 * remote.c (extended_remote_target::create_inferior): Use GNU
1802 style for metasyntactic variables.
1803 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1804 metasyntactic variables.
1805 (adi_assign_command): Likewise.
1806
1807 2018-09-16 Tom Tromey <tom@tromey.com>
1808
1809 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1810 metasyntactic variables. Print message if no disassembler options
1811 are available.
1812
1813 2018-09-15 Tom Tromey <tom@tromey.com>
1814
1815 * infcmd.c (get_inferior_args): Return const char *.
1816 * inferior.h (get_inferior_args): Return type now const.
1817 * linux-tdep.c (linux_fill_prpsinfo): Update.
1818 * procfs.c (procfs_target::make_corefile_notes): Update.
1819
1820 2018-09-07 Tom Tromey <tom@tromey.com>
1821
1822 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1823 inside the TRY.
1824
1825 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1826
1827 * nios2-tdep.c (nios2_type_align): New.
1828 (nios2_gdb_arch_init): Install type_align hook.
1829
1830 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1833 type that is neither object file owned, nor gdbarch owned.
1834 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1835 gdbarch is non-NULL.
1836 (alloc_type_instance): Allocate non-objfile owned types on the
1837 gdbarch obstack.
1838 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1839 using TYPE_ALLOC to ensure memory is allocated on the correct
1840 obstack.
1841 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1842 obstack, or the gdbarch obstack.
1843 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1844
1845 2018-09-14 Tom Tromey <tom@tromey.com>
1846
1847 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1848 block.
1849
1850 2018-09-14 Tom Tromey <tom@tromey.com>
1851
1852 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1853
1854 2018-09-13 Tom Tromey <tom@tromey.com>
1855
1856 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1857 static.
1858
1859 2018-09-13 Tom Tromey <tom@tromey.com>
1860
1861 * exec.c (try_open_exec_file): Use std::string.
1862
1863 2018-09-13 Tom Tromey <tom@tromey.com>
1864
1865 * utils.h (gdb_bfd_errmsg): Return std::string.
1866 * exec.c (exec_file_attach): Update.
1867 * compile/compile-object-load.c (compile_object_load): Update.
1868 * utils.c (gdb_bfd_errmsg): Return std::string.
1869
1870 2018-09-13 Tom Tromey <tom@tromey.com>
1871
1872 * procfs.c (struct procinfo_deleter): New.
1873 (procinfo_up): New typedef.
1874 (do_destroy_procinfo_cleanup): Remove.
1875 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1876
1877 2018-09-13 Tom Tromey <tom@tromey.com>
1878
1879 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1880
1881 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1882 2018-09-13 Tom Tromey <tom@tromey.com>
1883
1884 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1885 (pspy_get_objfiles): New function.
1886 (progspace_object_methods): New.
1887 (pspace_object_type): Add tp_methods callback.
1888 * python/python-internal.h (build_objfiles_list): New
1889 declaration.
1890 * python/python.c (build_objfiles_list): New function.
1891 (gdbpy_objfiles): Implement using build_objfiles_list.
1892 * NEWS: Mention the Progspace.objfiles method.
1893
1894 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1895
1896 * python/py-inferior.c (infpy_get_progspace): New function.
1897 (inferior_object_getset): Add progspace property.
1898 * NEWS: Mention the new property.
1899
1900 2018-09-13 Tom Tromey <tom@tromey.com>
1901
1902 PR rust/23650:
1903 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1904
1905 2018-09-13 Tom Tromey <tom@tromey.com>
1906
1907 PR rust/23626:
1908 * rust-lang.c (rust_enum_variant): Now static.
1909 (rust_empty_enum_p): New function.
1910 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1911 Handle empty enum.
1912
1913 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1914
1915 * python/py-inferior.c (infpy_repr): New.
1916 (inferior_object_type): Register infpy_repr.
1917 * python/py-objfile.c (objfpy_repr): New.
1918 (objfile_object_type): Register objfpy_repr.
1919
1920 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1921
1922 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1923
1924 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1925
1926 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1927 typo.
1928
1929 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1930
1931 * common/common-utils.c: Don't include '<sys/stat.h>'.
1932 (is_regular_file): Move to...
1933 * common/filestuff.c (is_regular_file): ... here.
1934 * common/common-utils.h (is_regular_file): Move to...
1935 * common/filestuff.h (is_regular_file): ... here.
1936
1937 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1938
1939 * skip.c (debug_skip): New variable.
1940 (skiplist_entry::do_skip_file_p): Add debug output.
1941 (skiplist_entry::do_skip_gfile_p): Likewise.
1942 (skiplist_entry::skip_function_p): Likewise.
1943 (_initialize_step_skip): Create debug command.
1944 * NEWS: Mention set/show debug skip.
1945
1946 2018-09-11 Xavier Roirand <roirand@adacore.com>
1947
1948 * darwin-nat.c (should_disable_startup_with_shell):
1949 New function.
1950 (darwin_nat_target::create_inferior): Add call.
1951
1952 2018-09-11 Xavier Roirand <roirand@adacore.com>
1953
1954 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1955 inf_port, msg_state>: Initialize.
1956 (struct darwin_thread_info) <signaled, single_step>: Change
1957 type and initialize.
1958 (struct darwin_thread_info) <event>: Initialize.
1959
1960 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1961
1962 PR gdb/23555
1963 PR gdb/23558
1964 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1965 guesses.
1966
1967 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1968
1969 Revert:
1970 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1971
1972 PR gdb/23555
1973 PR gdb/23558
1974 * gnulib/aclocal.m4: Regenerate.
1975 * gnulib/config.in: Regenerate.
1976 * gnulib/configure: Regenerate.
1977 * gnulib/import/Makefile.am: Update.
1978 * gnulib/import/Makefile.in: Update.
1979 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1980 * gnulib/import/_Noreturn.h: ... this.
1981 * gnulib/import/alloca.in.h: Update.
1982 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1983 * gnulib/import/arg-nonnull.h: ... this.
1984 * gnulib/import/assure.h: Update.
1985 * gnulib/import/at-func.c: Update.
1986 * gnulib/import/basename-lgpl.c: Update.
1987 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1988 * gnulib/import/c++defs.h: ... this.
1989 * gnulib/import/canonicalize-lgpl.c: Update.
1990 * gnulib/import/cdefs.h: Update.
1991 * gnulib/import/chdir-long.c: Update.
1992 * gnulib/import/chdir-long.h: Update.
1993 * gnulib/import/cloexec.c: Update.
1994 * gnulib/import/cloexec.h: Update.
1995 * gnulib/import/close.c: Update.
1996 * gnulib/import/closedir.c: Update.
1997 * gnulib/import/config.charset: Update.
1998 * gnulib/import/dirent-private.h: Update.
1999 * gnulib/import/dirent.in.h: Update.
2000 * gnulib/import/dirfd.c: Update.
2001 * gnulib/import/dirname-lgpl.c: Update.
2002 * gnulib/import/dirname.h: Update.
2003 * gnulib/import/dosname.h: Update.
2004 * gnulib/import/dup-safer-flag.c: Update.
2005 * gnulib/import/dup-safer.c: Update.
2006 * gnulib/import/dup.c: Update.
2007 * gnulib/import/dup2.c: Update.
2008 * gnulib/import/errno.in.h: Update.
2009 * gnulib/import/error.c: Update.
2010 * gnulib/import/error.h: Update.
2011 * gnulib/import/exitfail.c: Update.
2012 * gnulib/import/exitfail.h: Update.
2013 * gnulib/import/extra/update-copyright: Update.
2014 * gnulib/import/fchdir.c: Update.
2015 * gnulib/import/fcntl.c: Update.
2016 * gnulib/import/fcntl.in.h: Update.
2017 * gnulib/import/fd-hook.c: Update.
2018 * gnulib/import/fd-hook.h: Update.
2019 * gnulib/import/fd-safer-flag.c: Update.
2020 * gnulib/import/fd-safer.c: Update.
2021 * gnulib/import/fdopendir.c: Update.
2022 * gnulib/import/filename.h: Update.
2023 * gnulib/import/filenamecat-lgpl.c: Update.
2024 * gnulib/import/filenamecat.h: Update.
2025 * gnulib/import/flexmember.h: Update.
2026 * gnulib/import/float+.h: Update.
2027 * gnulib/import/float.c: Update.
2028 * gnulib/import/float.in.h: Update.
2029 * gnulib/import/fnmatch.c: Update.
2030 * gnulib/import/fnmatch.in.h: Update.
2031 * gnulib/import/fnmatch_loop.c: Update.
2032 * gnulib/import/fpucw.h: Update.
2033 * gnulib/import/frexp.c: Update.
2034 * gnulib/import/frexpl.c: Update.
2035 * gnulib/import/fstat.c: Update.
2036 * gnulib/import/fstatat.c: Update.
2037 * gnulib/import/getcwd-lgpl.c: Update.
2038 * gnulib/import/getcwd.c: Update.
2039 * gnulib/import/getdtablesize.c: Update.
2040 * gnulib/import/getlogin_r.c: Update.
2041 * gnulib/import/getprogname.c: Update.
2042 * gnulib/import/getprogname.h: Update.
2043 * gnulib/import/gettext.h: Update.
2044 * gnulib/import/gettimeofday.c: Update.
2045 * gnulib/import/glob-libc.h: Update.
2046 * gnulib/import/glob.c: Update.
2047 * gnulib/import/glob.in.h: Update.
2048 * gnulib/import/glob_internal.h: Update.
2049 * gnulib/import/glob_pattern_p.c: Update.
2050 * gnulib/import/globfree.c: Update.
2051 * gnulib/import/hard-locale.c: Update.
2052 * gnulib/import/hard-locale.h: Update.
2053 * gnulib/import/intprops.h: Update.
2054 * gnulib/import/inttypes.in.h: Update.
2055 * gnulib/import/isnan.c: Update.
2056 * gnulib/import/isnand-nolibm.h: Update.
2057 * gnulib/import/isnand.c: Update.
2058 * gnulib/import/isnanl-nolibm.h: Update.
2059 * gnulib/import/isnanl.c: Update.
2060 * gnulib/import/itold.c: Update.
2061 * gnulib/import/libc-config.h: Update.
2062 * gnulib/import/limits.in.h: Update.
2063 * gnulib/import/localcharset.c: Update.
2064 * gnulib/import/localcharset.h: Update.
2065 * gnulib/import/localtime-buffer.c: Update.
2066 * gnulib/import/localtime-buffer.h: Update.
2067 * gnulib/import/lstat.c: Update.
2068 * gnulib/import/m4/00gnulib.m4: Update.
2069 * gnulib/import/m4/__inline.m4: Update.
2070 * gnulib/import/m4/absolute-header.m4: Update.
2071 * gnulib/import/m4/alloca.m4: Update.
2072 * gnulib/import/m4/builtin-expect.m4: Update.
2073 * gnulib/import/m4/canonicalize.m4: Update.
2074 * gnulib/import/m4/chdir-long.m4: Update.
2075 * gnulib/import/m4/close.m4: Update.
2076 * gnulib/import/m4/closedir.m4: Update.
2077 * gnulib/import/m4/configmake.m4: Update.
2078 * gnulib/import/m4/d-ino.m4: Update.
2079 * gnulib/import/m4/d-type.m4: Update.
2080 * gnulib/import/m4/dirent_h.m4: Update.
2081 * gnulib/import/m4/dirfd.m4: Update.
2082 * gnulib/import/m4/dirname.m4: Update.
2083 * gnulib/import/m4/double-slash-root.m4: Update.
2084 * gnulib/import/m4/dup.m4: Update.
2085 * gnulib/import/m4/dup2.m4: Update.
2086 * gnulib/import/m4/eealloc.m4: Update.
2087 * gnulib/import/m4/environ.m4: Update.
2088 * gnulib/import/m4/errno_h.m4: Update.
2089 * gnulib/import/m4/error.m4: Update.
2090 * gnulib/import/m4/exponentd.m4: Update.
2091 * gnulib/import/m4/exponentl.m4: Update.
2092 * gnulib/import/m4/extensions.m4: Update.
2093 * gnulib/import/m4/extern-inline.m4: Update.
2094 * gnulib/import/m4/fchdir.m4: Update.
2095 * gnulib/import/m4/fcntl-o.m4: Update.
2096 * gnulib/import/m4/fcntl.m4: Update.
2097 * gnulib/import/m4/fcntl_h.m4: Update.
2098 * gnulib/import/m4/fdopendir.m4: Update.
2099 * gnulib/import/m4/filenamecat.m4: Update.
2100 * gnulib/import/m4/flexmember.m4: Update.
2101 * gnulib/import/m4/float_h.m4: Update.
2102 * gnulib/import/m4/fnmatch.m4: Update.
2103 * gnulib/import/m4/fnmatch_h.m4: Update.
2104 * gnulib/import/m4/fpieee.m4: Update.
2105 * gnulib/import/m4/frexp.m4: Update.
2106 * gnulib/import/m4/frexpl.m4: Update.
2107 * gnulib/import/m4/fstat.m4: Update.
2108 * gnulib/import/m4/fstatat.m4: Update.
2109 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2110 * gnulib/import/m4/getcwd-path-max.m4: Update.
2111 * gnulib/import/m4/getcwd.m4: Update.
2112 * gnulib/import/m4/getdtablesize.m4: Update.
2113 * gnulib/import/m4/getlogin.m4: Update.
2114 * gnulib/import/m4/getlogin_r.m4: Update.
2115 * gnulib/import/m4/getpagesize.m4: Update.
2116 * gnulib/import/m4/getprogname.m4: Update.
2117 * gnulib/import/m4/gettimeofday.m4: Update.
2118 * gnulib/import/m4/glibc21.m4: Update.
2119 * gnulib/import/m4/glob.m4: Update.
2120 * gnulib/import/m4/glob_h.m4: Update.
2121 * gnulib/import/m4/gnulib-cache.m4: Update.
2122 * gnulib/import/m4/gnulib-common.m4: Update.
2123 * gnulib/import/m4/gnulib-comp.m4: Update.
2124 * gnulib/import/m4/gnulib-tool.m4: Update.
2125 * gnulib/import/m4/hard-locale.m4: Update.
2126 * gnulib/import/m4/include_next.m4: Update.
2127 * gnulib/import/m4/inttypes-pri.m4: Update.
2128 * gnulib/import/m4/inttypes.m4: Update.
2129 * gnulib/import/m4/isnand.m4: Update.
2130 * gnulib/import/m4/isnanl.m4: Update.
2131 * gnulib/import/m4/largefile.m4: Update.
2132 * gnulib/import/m4/limits-h.m4: Update.
2133 * gnulib/import/m4/localcharset.m4: Update.
2134 * gnulib/import/m4/locale-fr.m4: Update.
2135 * gnulib/import/m4/locale-ja.m4: Update.
2136 * gnulib/import/m4/locale-zh.m4: Update.
2137 * gnulib/import/m4/localtime-buffer.m4: Update.
2138 * gnulib/import/m4/longlong.m4: Update.
2139 * gnulib/import/m4/lstat.m4: Update.
2140 * gnulib/import/m4/malloc.m4: Update.
2141 * gnulib/import/m4/malloca.m4: Update.
2142 * gnulib/import/m4/math_h.m4: Update.
2143 * gnulib/import/m4/mbrtowc.m4: Update.
2144 * gnulib/import/m4/mbsinit.m4: Update.
2145 * gnulib/import/m4/mbsrtowcs.m4: Update.
2146 * gnulib/import/m4/mbstate_t.m4: Update.
2147 * gnulib/import/m4/memchr.m4: Update.
2148 * gnulib/import/m4/memmem.m4: Update.
2149 * gnulib/import/m4/mempcpy.m4: Update.
2150 * gnulib/import/m4/memrchr.m4: Update.
2151 * gnulib/import/m4/mkdir.m4: Update.
2152 * gnulib/import/m4/mkstemp.m4: Update.
2153 * gnulib/import/m4/mmap-anon.m4: Update.
2154 * gnulib/import/m4/mode_t.m4: Update.
2155 * gnulib/import/m4/msvc-inval.m4: Update.
2156 * gnulib/import/m4/msvc-nothrow.m4: Update.
2157 * gnulib/import/m4/multiarch.m4: Update.
2158 * gnulib/import/m4/nocrash.m4: Update.
2159 * gnulib/import/m4/off_t.m4: Update.
2160 * gnulib/import/m4/onceonly.m4: Update.
2161 * gnulib/import/m4/open-cloexec.m4: Update.
2162 * gnulib/import/m4/open.m4: Update.
2163 * gnulib/import/m4/openat.m4: Update.
2164 * gnulib/import/m4/opendir.m4: Update.
2165 * gnulib/import/m4/pathmax.m4: Update.
2166 * gnulib/import/m4/rawmemchr.m4: Update.
2167 * gnulib/import/m4/readdir.m4: Update.
2168 * gnulib/import/m4/readlink.m4: Update.
2169 * gnulib/import/m4/realloc.m4: Update.
2170 * gnulib/import/m4/rename.m4: Update.
2171 * gnulib/import/m4/rewinddir.m4: Update.
2172 * gnulib/import/m4/rmdir.m4: Update.
2173 * gnulib/import/m4/save-cwd.m4: Update.
2174 * gnulib/import/m4/secure_getenv.m4: Update.
2175 * gnulib/import/m4/setenv.m4: Update.
2176 * gnulib/import/m4/signal_h.m4: Update.
2177 * gnulib/import/m4/ssize_t.m4: Update.
2178 * gnulib/import/m4/stat-time.m4: Update.
2179 * gnulib/import/m4/stat.m4: Update.
2180 * gnulib/import/m4/std-gnu11.m4: Update.
2181 * gnulib/import/m4/stdbool.m4: Update.
2182 * gnulib/import/m4/stddef_h.m4: Update.
2183 * gnulib/import/m4/stdint.m4: Update.
2184 * gnulib/import/m4/stdio_h.m4: Update.
2185 * gnulib/import/m4/stdlib_h.m4: Update.
2186 * gnulib/import/m4/strchrnul.m4: Update.
2187 * gnulib/import/m4/strdup.m4: Update.
2188 * gnulib/import/m4/strerror.m4: Update.
2189 * gnulib/import/m4/string_h.m4: Update.
2190 * gnulib/import/m4/strstr.m4: Update.
2191 * gnulib/import/m4/strtok_r.m4: Update.
2192 * gnulib/import/m4/sys_socket_h.m4: Update.
2193 * gnulib/import/m4/sys_stat_h.m4: Update.
2194 * gnulib/import/m4/sys_time_h.m4: Update.
2195 * gnulib/import/m4/sys_types_h.m4: Update.
2196 * gnulib/import/m4/tempname.m4: Update.
2197 * gnulib/import/m4/time_h.m4: Update.
2198 * gnulib/import/m4/unistd-safer.m4: Update.
2199 * gnulib/import/m4/unistd_h.m4: Update.
2200 * gnulib/import/m4/warn-on-use.m4: Update.
2201 * gnulib/import/m4/wchar_h.m4: Update.
2202 * gnulib/import/m4/wchar_t.m4: Update.
2203 * gnulib/import/m4/wctype_h.m4: Update.
2204 * gnulib/import/m4/wint_t.m4: Update.
2205 * gnulib/import/malloc.c: Update.
2206 * gnulib/import/malloc/scratch_buffer.h: Update.
2207 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2208 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2209 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2210 * gnulib/import/malloca.c: Update.
2211 * gnulib/import/malloca.h: Update.
2212 * gnulib/import/malloca.valgrind: Update.
2213 * gnulib/import/math.in.h: Update.
2214 * gnulib/import/mbrtowc.c: Update.
2215 * gnulib/import/mbsinit.c: Update.
2216 * gnulib/import/mbsrtowcs-impl.h: Update.
2217 * gnulib/import/mbsrtowcs-state.c: Update.
2218 * gnulib/import/mbsrtowcs.c: Update.
2219 * gnulib/import/memchr.c: Update.
2220 * gnulib/import/memmem.c: Update.
2221 * gnulib/import/mempcpy.c: Update.
2222 * gnulib/import/memrchr.c: Update.
2223 * gnulib/import/mkdir.c: Update.
2224 * gnulib/import/mkstemp.c: Update.
2225 * gnulib/import/msvc-inval.c: Update.
2226 * gnulib/import/msvc-inval.h: Update.
2227 * gnulib/import/msvc-nothrow.c: Update.
2228 * gnulib/import/msvc-nothrow.h: Update.
2229 * gnulib/import/open.c: Update.
2230 * gnulib/import/openat-die.c: Update.
2231 * gnulib/import/openat-priv.h: Update.
2232 * gnulib/import/openat-proc.c: Update.
2233 * gnulib/import/openat.c: Update.
2234 * gnulib/import/openat.h: Update.
2235 * gnulib/import/opendir.c: Update.
2236 * gnulib/import/pathmax.h: Update.
2237 * gnulib/import/pipe-safer.c: Update.
2238 * gnulib/import/rawmemchr.c: Update.
2239 * gnulib/import/readdir.c: Update.
2240 * gnulib/import/readlink.c: Update.
2241 * gnulib/import/realloc.c: Update.
2242 * gnulib/import/ref-add.sin: Update.
2243 * gnulib/import/ref-del.sin: Update.
2244 * gnulib/import/rename.c: Update.
2245 * gnulib/import/rewinddir.c: Update.
2246 * gnulib/import/rmdir.c: Update.
2247 * gnulib/import/same-inode.h: Update.
2248 * gnulib/import/save-cwd.c: Update.
2249 * gnulib/import/save-cwd.h: Update.
2250 * gnulib/import/scratch_buffer.h: Update.
2251 * gnulib/import/secure_getenv.c: Update.
2252 * gnulib/import/setenv.c: Update.
2253 * gnulib/import/signal.in.h: Update.
2254 * gnulib/import/stat-time.c: Update.
2255 * gnulib/import/stat-time.h: Update.
2256 * gnulib/import/stat-w32.c: Update.
2257 * gnulib/import/stat-w32.h: Update.
2258 * gnulib/import/stat.c: Update.
2259 * gnulib/import/stdbool.in.h: Update.
2260 * gnulib/import/stddef.in.h: Update.
2261 * gnulib/import/stdint.in.h: Update.
2262 * gnulib/import/stdio.in.h: Update.
2263 * gnulib/import/stdlib.in.h: Update.
2264 * gnulib/import/str-two-way.h: Update.
2265 * gnulib/import/strchrnul.c: Update.
2266 * gnulib/import/strdup.c: Update.
2267 * gnulib/import/streq.h: Update.
2268 * gnulib/import/strerror-override.c: Update.
2269 * gnulib/import/strerror-override.h: Update.
2270 * gnulib/import/strerror.c: Update.
2271 * gnulib/import/string.in.h: Update.
2272 * gnulib/import/stripslash.c: Update.
2273 * gnulib/import/strnlen1.c: Update.
2274 * gnulib/import/strnlen1.h: Update.
2275 * gnulib/import/strstr.c: Update.
2276 * gnulib/import/strtok_r.c: Update.
2277 * gnulib/import/sys_stat.in.h: Update.
2278 * gnulib/import/sys_time.in.h: Update.
2279 * gnulib/import/sys_types.in.h: Update.
2280 * gnulib/import/tempname.c: Update.
2281 * gnulib/import/tempname.h: Update.
2282 * gnulib/import/time.in.h: Update.
2283 * gnulib/import/unistd--.h: Update.
2284 * gnulib/import/unistd-safer.h: Update.
2285 * gnulib/import/unistd.in.h: Update.
2286 * gnulib/import/unsetenv.c: Update.
2287 * gnulib/import/verify.h: Update.
2288 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2289 * gnulib/import/wchar.in.h: Update.
2290 * gnulib/import/wctype.in.h: Update.
2291 * gnulib/import/xalloc-oversized.h: Update.
2292 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2293 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2294
2295 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
2296
2297 * record-btrace.c (get_thread_current_frame): Remove
2298 old_inferior_ptid.
2299
2300 2018-09-10 Jerome Guitton <guitton@adacore.com>
2301
2302 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
2303 with check_tag to 1 if and only if the type is tagged and the
2304 component being searched cannot been found in the current
2305 view. Otherwise, always call ada_to_fixed_type with
2306 check_tag to 0.
2307
2308 2018-09-10 Xavier Roirand <roirand@adacore.com>
2309
2310 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
2311 declaration.
2312 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
2313 * ada-varobj.c (ada_varobj_get_number_of_children,
2314 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
2315
2316 2018-09-10 Xavier Roirand <roirand@adacore.com>
2317
2318 * ada-valprint.c (ada_value_print): Use type instead of
2319 enclosing type.
2320
2321 2018-09-10 Xavier Roirand <roirand@adacore.com>
2322
2323 * ada-lang.c (ada_value_subscript): Handle case when parameter is
2324 an array of access to unconstrained array.
2325
2326 2018-09-10 Xavier Roirand <roirand@adacore.com>
2327
2328 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
2329 (ada_check_typedef): Use it.
2330
2331 2018-09-10 Xavier Roirand <roirand@adacore.com>
2332
2333 * ada-varobj.c (ada_varobj_describe_struct_child)
2334 (ada_varobj_describe_child): Handle union case like struct one.
2335
2336 2018-09-10 Tom Tromey <tom@tromey.com>
2337
2338 PR python/18380:
2339 * python/python.c (_initialize_python): Make example in "python"
2340 help work in Python 3.
2341
2342 2018-09-10 Eli Zaretskii <eliz@gnu.org>
2343
2344 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
2345 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
2346 $(EXEEXT) to the script, as it is not a program.
2347
2348 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
2349
2350 * python/py-prettyprint.c (pretty_print_one_value): Return
2351 gdbpy_ref<>.
2352 (print_string_repr): Adjust.
2353 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
2354 * python/python-internal.h (apply_varobj_pretty_printer): Return
2355 gdbpy_ref<>.
2356 * varobj.c (varobj_value_get_print_value): Adjust.
2357
2358 2018-09-08 Tom Tromey <tom@tromey.com>
2359
2360 PR python/16047:
2361 * python/py-prettyprint.c (pretty_print_one_value): Check for
2362 to_string method.
2363
2364 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2365
2366 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
2367 replace_operator_with_call.
2368
2369 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2370
2371 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
2372
2373 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2374
2375 * ada-typeprint.c (print_range): Print the bounds using TYPE
2376 rather than its TYPE_TARGET_TYPE.
2377
2378 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2379
2380 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
2381 call to ada_to_fixed_value_create.
2382
2383 2018-09-08 Jerome Guitton <guitton@adacore.com>
2384
2385 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
2386
2387 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2388
2389 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
2390 by calls to error.
2391
2392 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2393
2394 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
2395 Move update of loop variable "fi".
2396
2397 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2398
2399 * ada-lang.c (value_assign_to_component): In the case of
2400 big-endian targets, extract the bits of the given VAL
2401 using an src_offset of zero if container is not a scalar.
2402
2403 2018-09-06 Simon Ser <contact@emersion.fr>
2404
2405 PR gdb/23105
2406 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
2407 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2408 * fbsd-tdep.c (fbsd_make_note_desc): New.
2409 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
2410 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
2411 * target.h (enum target_object) Add FreeBSD-specific
2412 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
2413
2414 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2415
2416 * compile/compile-c.h (generate_c_for_variable_locations):
2417 Change reference to pointer.
2418 * compile/compile-c-support.c (compile_program) <compute>:
2419 Likewise.
2420 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
2421 (generate_c_for_for_one_variable): Likewise
2422 (generate_c_for_variable_locations): Likewise
2423 * compile/compile-c-types.c (compile_c_instance::convert_type):
2424 Likewise
2425 * compile/compile-cplus-symbols.c (convert_one_symbol):
2426 std::move the scope passed to enter_scope.
2427 * compile/compile-cplus-types.c
2428 (compile_cplus_instance::enter_scope): Make parameter
2429 rvalue-reference.
2430 (compile_cplus_instance::new_scope): Change reference to
2431 pointer.
2432 (compile_cplus_instance::convert_type): Likewise
2433 (compile_cplus_convert_typedef): std::move the scope passed to
2434 enter_scope.
2435 (compile_cplus_convert_struct_or_union): Likewise.
2436 (compile_cplus_convert_enum): Likewise.
2437 (compile_cplus_convert_namespace): Likewise.
2438 * compile/compile-cplus.h (compile_cplus_instance)
2439 <enter_scope>: Make parameter rvalue-reference.
2440 * compile/compile-internal.h (compile_instance)
2441 <get_cached_type>: Likewise
2442 * compile/compile-loc2c.c (push): Likewise
2443 (pushf): Likewise
2444 (unary): Likewise
2445 (binary): Likewise
2446 (print_label): Likewise
2447 (pushf_register_address): Likewise
2448 (pushf_register): Likewise
2449 (do_compile_dwarf_expr_to_c): Likewise
2450 (compile_dwarf_expr_to_c): Likewise
2451 (compile_dwarf_bounds_to_c): Likewise
2452 * compile/compile.c (compile_instance::get_cached_type):
2453 Likewise
2454 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
2455 (compile_dwarf_bounds_to_c): Likewise
2456 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
2457 (dwarf2_compile_property_to_c): Likewise
2458 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
2459 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2460 Likewise
2461
2462 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2463
2464 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
2465 * tui/tui-data.c (init_content_element): Don't initialize it.
2466
2467 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
2468
2469 * tui/tui-data.h (struct tui_win_info)
2470 <detail::opaque>: Remove.
2471 * tui/tui-data.c (init_win_info): Remove assignment.
2472
2473 2018-09-05 Tom Tromey <tom@tromey.com>
2474
2475 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
2476 -Wformat-nonliteral.
2477 * target-float.c (host_float_ops<T>::to_string)
2478 (host_float_ops<T>::from_string): Use
2479 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2480 * configure: Rebuild.
2481
2482 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
2483
2484 * printcmd.c (printf_c_string): Use
2485 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2486 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2487
2488 2018-09-05 Tom Tromey <tom@tromey.com>
2489
2490 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2491
2492 2018-09-05 Tom de Vries <tdevries@suse.de>
2493
2494 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2495 with resolve_abstract_p == true.
2496 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2497 defaulting to false. Propagate resolve_abstract_p to
2498 dwarf2_fetch_die_loc_sect_off.
2499 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2500 parameter, defaulting to false.
2501 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2502 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2503 parameter.
2504 * dwarf2read.h (struct die_info): Forward-declare.
2505 (die_info_ptr): New typedef.
2506 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2507
2508 2018-09-05 Joel Brobecker <brobecker@adacore.com>
2509
2510 GDB 8.2 released.
2511
2512 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2513 Pedro Alves <palves@redhat.com>
2514
2515 * gnulib/Makefile.in (aclocal_m4_deps): Move to
2516 "aclocal-m4-deps.mk". Include file here.
2517 $(srcdir)/aclocal.m4: Add "configure.ac".
2518 * gnulib/aclocal-m4-deps.mk: New file.
2519 * gnulib/update-gnulib.sh: Automatically update
2520 "aclocal-m4-deps.mk".
2521
2522 2018-09-04 Tom Tromey <tom@tromey.com>
2523
2524 * configure: Rebuild.
2525 * configure.ac: Remove multi-ice code.
2526
2527 2018-09-04 Tom Tromey <tom@tromey.com>
2528
2529 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2530 (ada-exp.o): Update.
2531
2532 2018-09-04 Tom Tromey <tom@tromey.com>
2533
2534 * Makefile.in (printcmd.o, target-float.o): Remove.
2535 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2536
2537 2018-09-04 Tom Tromey <tom@tromey.com>
2538
2539 * gnulib/Makefile.in: Remove obsolete comment.
2540 * Makefile.in: Remove obsolete comment.
2541
2542 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2543
2544 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2545 line with '+'.
2546
2547 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2548
2549 * riscv-tdep.c: Add 'prologue-value.h' include.
2550 (struct riscv_unwind_cache): New struct.
2551 (riscv_debug_unwinder): New global.
2552 (riscv_scan_prologue): Update arguments, capture register details
2553 from prologue scan.
2554 (riscv_skip_prologue): Reformat arguments line, move end of
2555 prologue calculation into riscv_scan_prologue.
2556 (riscv_frame_cache): Update return type, create
2557 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2558 details.
2559 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2560 (riscv_frame_prev_register): Use the trad_frame within the
2561 riscv_unwind_cache.
2562 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2563 flag.
2564
2565 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2566
2567 * trad-frame.h (trad_frame_set_realreg): Declare.
2568 (trad_frame_set_addr): Declare.
2569 * trad-frame.c (trad_frame_set_realreg): Define new function.
2570 (trad_frame_set_addr): Define new function.
2571 (trad_frame_set_reg_realreg): Use new function.
2572 (trad_frame_set_reg_addr): Use new function.
2573
2574 2018-09-01 Keith Seitz <keiths@redhat.com>
2575
2576 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2577 pulongest instead of "%lld".
2578 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2579 ATTRIBUTE_UNUSED.
2580
2581 2018-08-31 Tom Tromey <tom@tromey.com>
2582
2583 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2584 variant part type.
2585
2586 2018-08-31 Pedro Alves <palves@redhat.com>
2587
2588 * gdbarch.h: Regenerate.
2589
2590 2018-08-31 Pedro Alves <palves@redhat.com>
2591
2592 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2593 * target.h (Hardware watchpoint interfaces): Describe
2594 continuable/steppable/non-steppable watchpoints.
2595 * gdbarch.h, gdbarch.c: Regenerate.
2596
2597 2018-08-31 Pedro Alves <palves@redhat.com>
2598
2599 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2600 Delete.
2601 * s390-linux-nat.c
2602 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2603 * target.h (target_ops::have_continuable_watchpoint): Delete.
2604 (target_have_continuable_watchpoint): Delete.
2605 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2606 * target-delegates.c: Regenerate.
2607
2608 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2609
2610 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2611 the files present in "gnulib/import/m4/".
2612
2613 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2614
2615 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2616 c.sw, c.swsp, and c.sdsp.
2617
2618 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2621 (riscv_read_misa_reg): Don't cache value read into inferior data.
2622 (riscv_new_inferior_data): Delete.
2623 (riscv_inferior_data_cleanup): Delete.
2624 (riscv_inferior_data): Delete.
2625 (riscv_invalidate_inferior_data): Delete.
2626 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2627
2628 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2629
2630 * compile/compile-cplus-types.c
2631 (compile_cplus_instance::leave_scope): Take the address of scope
2632 object.
2633 (compile_cplus_instance::convert_qualified_base): Compare quals
2634 to 0.
2635
2636 2018-08-30 Keith Seitz <keiths@redhat.com>
2637
2638 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2639 Use "%s" and host_address_to_string instead of "%p" in printf.
2640
2641 2018-08-29 Keith Seitz <keiths@redhat.com>
2642
2643 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2644 and compile-cplus-types.c.
2645 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2646 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2647 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2648 Declare.
2649 * compile/compile-c-support.c: Include compile-cplus.h.
2650 (load_libcompile): Templatize.
2651 (get_compile_context): "New" function.
2652 (c_get_compile_context): Use get_compile_context.
2653 (cplus_get_compile_context): New function.
2654 (cplus_push_user_expression, cplus_pop_user_expression)
2655 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2656 (cplus_compute_program): Define new structs/functions.
2657 * compile/compile-cplus-symmbols.c: New file.
2658 * compile/compile-cplus-types.c: New file.
2659 * compile/compile-cplus.h: New file.
2660 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2661 Declare.
2662 * compile/compile-object-load.c (get_out_value_type): Use
2663 strncmp_iw when comparing symbol names.
2664 (compile_object_load): Add mst_bss and mst_data.
2665 * compile/compile.c (_initialize_compile): Remove
2666 -Wno-implicit-function-declaration from `compile_args'.
2667 * compile/gcc-cp-plugin.h: New file.
2668 * NEWS: Mention C++ compile support and new debug options.
2669
2670 2018-08-29 Keith Seitz <keiths@redhat.com>
2671
2672 * linespec.c (collect_info::add_symbol): Make virtual.
2673 (struct symbol_searcher_collect_info): New struct.
2674 (symbol_searcher::find_all_symbols): New method.
2675 * symtab.h (class symbol_searcher): New class.
2676
2677 2018-08-29 Keith Seitz <keiths@redhat.com>
2678
2679 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2680 Change to vector of block_symbol. Update all users.
2681 (struct collect_info) <symbols>: Likewise.
2682 (collect_info::add_symbol): Take block_symbol as argument.
2683 Update all callers.
2684 (decode_compound_collector) <m_symbols>: Change type to vector
2685 of block_symbol. Update all users.
2686 (decode_compound_collector::operator ()): Change parameter type
2687 to block_symbol.
2688 (find_method, find_function_symbols, find_linespec_symbols)
2689 (find_label_symbols_in_block, find_label_symbols): Change symbol
2690 vectors to block_symbol vectors.
2691 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2692 block_symbol.
2693
2694 2018-08-29 Keith Seitz <keiths@redhat.com>
2695
2696 * linespec.c (symbolp): Remove typedef and VEC definitions.
2697 (bound_minimal_symbol_d): Likewise.
2698
2699 2018-08-29 Keith Seitz <keiths@redhat.com>
2700
2701 * linespec.c (decode_compound_collector::decode_compound_collector):
2702 Remove initialization for `m_symtabs'.
2703 (decode_compound_collector::release_symbols): Change return type
2704 to std::vector. Update all callers.
2705 (class decode_compound_collector) <m_symbols>: Change type to
2706 std::vector.
2707 (lookup_prefix_sym): Change return type to std::vector. Update all
2708 callers.
2709 (compare_symbols): Remove.
2710 (std_compare_symbols): Rename to `compare_symbols'.
2711 (find_method): Change `sym_classes' parameter to std::vector.
2712 Update all callers. Use std::sort to sort sym_classes.
2713 (find_linespec_symbols): Remove cleanup.
2714
2715 2018-08-29 Keith Seitz <keiths@redhat.com>
2716
2717 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2718 std::vector. Update all users.
2719 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2720 (struct collect_info) <minimal_symbols>: Likewise.
2721 (compare_msymbols): Return bool. Change parameters to const
2722 bound_minimal_symbol references.
2723 (find_method, find_function_symbols, find_linespec_symbols): Change
2724 `minsyms' parameter to std::vector. Update all callers.
2725
2726 2018-08-29 Keith Seitz <keiths@redhat.com>
2727
2728 * linespec.c (struct linespec) <label_symbols>: Change type to
2729 std::vector. Update all users.
2730 (find_label_symbols_in_block): Change `result' parameter to
2731 std::vector. Update all callers.
2732 (find_label_symbols): Return std::vector. Update all callers.
2733
2734 2018-08-29 Keith Seitz <keiths@redhat.com>
2735
2736 * linespec.c (struct linespec) <function_symbols>: Change type to
2737 std::vector. Update all users.
2738 (struct collect_info) <function_symbols>: Likewise.
2739 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2740 (std_compare_symbols): New function.
2741 (find_method, find_function_symbols, find_linespec_symbols)
2742 (find_label_symbols_in_block): Change `symbols' parameter to
2743 std::vector. Update all callers.
2744 (find_label_symbols): Likewise for `function_symbols' and
2745 `label_funcs_ret'.
2746
2747 2018-08-29 Keith Seitz <keiths@redhat.com>
2748
2749 * linespec.c (symtab_vector_up): Define.
2750 (struct linespec) <file_symtabs>: Change type to std::vector *.
2751 Update all uses.
2752 (struct collect_info) <file_symtabs>: Likewise.
2753 (collect_symtabs_from_filename): Return symtab_vector_up.
2754 Update all callers.
2755 (decode_objc): Remove cleanup.
2756 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2757 (symtab_collector::release_symtabs): Return symtab_vector_up.
2758 Update all callers.
2759 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2760 Update all users.
2761 (collect_symtabs_from_filename, symtabs_from_filename): Return
2762 symtab_vector_up. Update all callers.
2763
2764 2018-08-29 Tom Tromey <tom@tromey.com>
2765
2766 * csky-tdep.c (csky_analyze_prologue): Use
2767 core_addr_to_string_nz.
2768
2769 2018-08-29 Tom Tromey <tom@tromey.com>
2770
2771 * windows-nat.c (struct xlate_exception) <them>: Change type to
2772 DWORD.
2773 (xlate): Fix formatting. Remove last entry.
2774 (struct xlate_exception, xlate): Comment out.
2775 (windows_nat_target::resume): Use ranged for.
2776
2777 2018-08-29 Jim Wilson <jimw@sifive.com>
2778
2779 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2780 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2781 of NT_PRFPREG.
2782 (riscv_linux_nat_target::store_registers): Likewise.
2783
2784 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2785
2786 PR gdb/23555
2787 PR gdb/23558
2788 * gnulib/aclocal.m4: Regenerate.
2789 * gnulib/config.in: Regenerate.
2790 * gnulib/configure: Regenerate.
2791 * gnulib/import/Makefile.am: Update.
2792 * gnulib/import/Makefile.in: Update.
2793 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2794 * gnulib/import/_Noreturn.h: ... this.
2795 * gnulib/import/alloca.in.h: Update.
2796 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2797 * gnulib/import/arg-nonnull.h: ... this.
2798 * gnulib/import/assure.h: Update.
2799 * gnulib/import/at-func.c: Update.
2800 * gnulib/import/basename-lgpl.c: Update.
2801 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2802 * gnulib/import/c++defs.h: ... this.
2803 * gnulib/import/canonicalize-lgpl.c: Update.
2804 * gnulib/import/cdefs.h: Update.
2805 * gnulib/import/chdir-long.c: Update.
2806 * gnulib/import/chdir-long.h: Update.
2807 * gnulib/import/cloexec.c: Update.
2808 * gnulib/import/cloexec.h: Update.
2809 * gnulib/import/close.c: Update.
2810 * gnulib/import/closedir.c: Update.
2811 * gnulib/import/config.charset: Update.
2812 * gnulib/import/dirent-private.h: Update.
2813 * gnulib/import/dirent.in.h: Update.
2814 * gnulib/import/dirfd.c: Update.
2815 * gnulib/import/dirname-lgpl.c: Update.
2816 * gnulib/import/dirname.h: Update.
2817 * gnulib/import/dosname.h: Update.
2818 * gnulib/import/dup-safer-flag.c: Update.
2819 * gnulib/import/dup-safer.c: Update.
2820 * gnulib/import/dup.c: Update.
2821 * gnulib/import/dup2.c: Update.
2822 * gnulib/import/errno.in.h: Update.
2823 * gnulib/import/error.c: Update.
2824 * gnulib/import/error.h: Update.
2825 * gnulib/import/exitfail.c: Update.
2826 * gnulib/import/exitfail.h: Update.
2827 * gnulib/import/extra/update-copyright: Update.
2828 * gnulib/import/fchdir.c: Update.
2829 * gnulib/import/fcntl.c: Update.
2830 * gnulib/import/fcntl.in.h: Update.
2831 * gnulib/import/fd-hook.c: Update.
2832 * gnulib/import/fd-hook.h: Update.
2833 * gnulib/import/fd-safer-flag.c: Update.
2834 * gnulib/import/fd-safer.c: Update.
2835 * gnulib/import/fdopendir.c: Update.
2836 * gnulib/import/filename.h: Update.
2837 * gnulib/import/filenamecat-lgpl.c: Update.
2838 * gnulib/import/filenamecat.h: Update.
2839 * gnulib/import/flexmember.h: Update.
2840 * gnulib/import/float+.h: Update.
2841 * gnulib/import/float.c: Update.
2842 * gnulib/import/float.in.h: Update.
2843 * gnulib/import/fnmatch.c: Update.
2844 * gnulib/import/fnmatch.in.h: Update.
2845 * gnulib/import/fnmatch_loop.c: Update.
2846 * gnulib/import/fpucw.h: Update.
2847 * gnulib/import/frexp.c: Update.
2848 * gnulib/import/frexpl.c: Update.
2849 * gnulib/import/fstat.c: Update.
2850 * gnulib/import/fstatat.c: Update.
2851 * gnulib/import/getcwd-lgpl.c: Update.
2852 * gnulib/import/getcwd.c: Update.
2853 * gnulib/import/getdtablesize.c: Update.
2854 * gnulib/import/getlogin_r.c: Update.
2855 * gnulib/import/getprogname.c: Update.
2856 * gnulib/import/getprogname.h: Update.
2857 * gnulib/import/gettext.h: Update.
2858 * gnulib/import/gettimeofday.c: Update.
2859 * gnulib/import/glob-libc.h: Update.
2860 * gnulib/import/glob.c: Update.
2861 * gnulib/import/glob.in.h: Update.
2862 * gnulib/import/glob_internal.h: Update.
2863 * gnulib/import/glob_pattern_p.c: Update.
2864 * gnulib/import/globfree.c: Update.
2865 * gnulib/import/hard-locale.c: Update.
2866 * gnulib/import/hard-locale.h: Update.
2867 * gnulib/import/intprops.h: Update.
2868 * gnulib/import/inttypes.in.h: Update.
2869 * gnulib/import/isnan.c: Update.
2870 * gnulib/import/isnand-nolibm.h: Update.
2871 * gnulib/import/isnand.c: Update.
2872 * gnulib/import/isnanl-nolibm.h: Update.
2873 * gnulib/import/isnanl.c: Update.
2874 * gnulib/import/itold.c: Update.
2875 * gnulib/import/libc-config.h: Update.
2876 * gnulib/import/limits.in.h: Update.
2877 * gnulib/import/localcharset.c: Update.
2878 * gnulib/import/localcharset.h: Update.
2879 * gnulib/import/localtime-buffer.c: Update.
2880 * gnulib/import/localtime-buffer.h: Update.
2881 * gnulib/import/lstat.c: Update.
2882 * gnulib/import/m4/00gnulib.m4: Update.
2883 * gnulib/import/m4/__inline.m4: Update.
2884 * gnulib/import/m4/absolute-header.m4: Update.
2885 * gnulib/import/m4/alloca.m4: Update.
2886 * gnulib/import/m4/builtin-expect.m4: Update.
2887 * gnulib/import/m4/canonicalize.m4: Update.
2888 * gnulib/import/m4/chdir-long.m4: Update.
2889 * gnulib/import/m4/close.m4: Update.
2890 * gnulib/import/m4/closedir.m4: Update.
2891 * gnulib/import/m4/configmake.m4: Update.
2892 * gnulib/import/m4/d-ino.m4: Update.
2893 * gnulib/import/m4/d-type.m4: Update.
2894 * gnulib/import/m4/dirent_h.m4: Update.
2895 * gnulib/import/m4/dirfd.m4: Update.
2896 * gnulib/import/m4/dirname.m4: Update.
2897 * gnulib/import/m4/double-slash-root.m4: Update.
2898 * gnulib/import/m4/dup.m4: Update.
2899 * gnulib/import/m4/dup2.m4: Update.
2900 * gnulib/import/m4/eealloc.m4: Update.
2901 * gnulib/import/m4/environ.m4: Update.
2902 * gnulib/import/m4/errno_h.m4: Update.
2903 * gnulib/import/m4/error.m4: Update.
2904 * gnulib/import/m4/exponentd.m4: Update.
2905 * gnulib/import/m4/exponentl.m4: Update.
2906 * gnulib/import/m4/extensions.m4: Update.
2907 * gnulib/import/m4/extern-inline.m4: Update.
2908 * gnulib/import/m4/fchdir.m4: Update.
2909 * gnulib/import/m4/fcntl-o.m4: Update.
2910 * gnulib/import/m4/fcntl.m4: Update.
2911 * gnulib/import/m4/fcntl_h.m4: Update.
2912 * gnulib/import/m4/fdopendir.m4: Update.
2913 * gnulib/import/m4/filenamecat.m4: Update.
2914 * gnulib/import/m4/flexmember.m4: Update.
2915 * gnulib/import/m4/float_h.m4: Update.
2916 * gnulib/import/m4/fnmatch.m4: Update.
2917 * gnulib/import/m4/fnmatch_h.m4: Update.
2918 * gnulib/import/m4/fpieee.m4: Update.
2919 * gnulib/import/m4/frexp.m4: Update.
2920 * gnulib/import/m4/frexpl.m4: Update.
2921 * gnulib/import/m4/fstat.m4: Update.
2922 * gnulib/import/m4/fstatat.m4: Update.
2923 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2924 * gnulib/import/m4/getcwd-path-max.m4: Update.
2925 * gnulib/import/m4/getcwd.m4: Update.
2926 * gnulib/import/m4/getdtablesize.m4: Update.
2927 * gnulib/import/m4/getlogin.m4: Update.
2928 * gnulib/import/m4/getlogin_r.m4: Update.
2929 * gnulib/import/m4/getpagesize.m4: Update.
2930 * gnulib/import/m4/getprogname.m4: Update.
2931 * gnulib/import/m4/gettimeofday.m4: Update.
2932 * gnulib/import/m4/glibc21.m4: Update.
2933 * gnulib/import/m4/glob.m4: Update.
2934 * gnulib/import/m4/glob_h.m4: Update.
2935 * gnulib/import/m4/gnulib-cache.m4: Update.
2936 * gnulib/import/m4/gnulib-common.m4: Update.
2937 * gnulib/import/m4/gnulib-comp.m4: Update.
2938 * gnulib/import/m4/gnulib-tool.m4: Update.
2939 * gnulib/import/m4/hard-locale.m4: Update.
2940 * gnulib/import/m4/include_next.m4: Update.
2941 * gnulib/import/m4/inttypes-pri.m4: Update.
2942 * gnulib/import/m4/inttypes.m4: Update.
2943 * gnulib/import/m4/isnand.m4: Update.
2944 * gnulib/import/m4/isnanl.m4: Update.
2945 * gnulib/import/m4/largefile.m4: Update.
2946 * gnulib/import/m4/limits-h.m4: Update.
2947 * gnulib/import/m4/localcharset.m4: Update.
2948 * gnulib/import/m4/locale-fr.m4: Update.
2949 * gnulib/import/m4/locale-ja.m4: Update.
2950 * gnulib/import/m4/locale-zh.m4: Update.
2951 * gnulib/import/m4/localtime-buffer.m4: Update.
2952 * gnulib/import/m4/longlong.m4: Update.
2953 * gnulib/import/m4/lstat.m4: Update.
2954 * gnulib/import/m4/malloc.m4: Update.
2955 * gnulib/import/m4/malloca.m4: Update.
2956 * gnulib/import/m4/math_h.m4: Update.
2957 * gnulib/import/m4/mbrtowc.m4: Update.
2958 * gnulib/import/m4/mbsinit.m4: Update.
2959 * gnulib/import/m4/mbsrtowcs.m4: Update.
2960 * gnulib/import/m4/mbstate_t.m4: Update.
2961 * gnulib/import/m4/memchr.m4: Update.
2962 * gnulib/import/m4/memmem.m4: Update.
2963 * gnulib/import/m4/mempcpy.m4: Update.
2964 * gnulib/import/m4/memrchr.m4: Update.
2965 * gnulib/import/m4/mkdir.m4: Update.
2966 * gnulib/import/m4/mkstemp.m4: Update.
2967 * gnulib/import/m4/mmap-anon.m4: Update.
2968 * gnulib/import/m4/mode_t.m4: Update.
2969 * gnulib/import/m4/msvc-inval.m4: Update.
2970 * gnulib/import/m4/msvc-nothrow.m4: Update.
2971 * gnulib/import/m4/multiarch.m4: Update.
2972 * gnulib/import/m4/nocrash.m4: Update.
2973 * gnulib/import/m4/off_t.m4: Update.
2974 * gnulib/import/m4/onceonly.m4: Update.
2975 * gnulib/import/m4/open-cloexec.m4: Update.
2976 * gnulib/import/m4/open.m4: Update.
2977 * gnulib/import/m4/openat.m4: Update.
2978 * gnulib/import/m4/opendir.m4: Update.
2979 * gnulib/import/m4/pathmax.m4: Update.
2980 * gnulib/import/m4/rawmemchr.m4: Update.
2981 * gnulib/import/m4/readdir.m4: Update.
2982 * gnulib/import/m4/readlink.m4: Update.
2983 * gnulib/import/m4/realloc.m4: Update.
2984 * gnulib/import/m4/rename.m4: Update.
2985 * gnulib/import/m4/rewinddir.m4: Update.
2986 * gnulib/import/m4/rmdir.m4: Update.
2987 * gnulib/import/m4/save-cwd.m4: Update.
2988 * gnulib/import/m4/secure_getenv.m4: Update.
2989 * gnulib/import/m4/setenv.m4: Update.
2990 * gnulib/import/m4/signal_h.m4: Update.
2991 * gnulib/import/m4/ssize_t.m4: Update.
2992 * gnulib/import/m4/stat-time.m4: Update.
2993 * gnulib/import/m4/stat.m4: Update.
2994 * gnulib/import/m4/std-gnu11.m4: Update.
2995 * gnulib/import/m4/stdbool.m4: Update.
2996 * gnulib/import/m4/stddef_h.m4: Update.
2997 * gnulib/import/m4/stdint.m4: Update.
2998 * gnulib/import/m4/stdio_h.m4: Update.
2999 * gnulib/import/m4/stdlib_h.m4: Update.
3000 * gnulib/import/m4/strchrnul.m4: Update.
3001 * gnulib/import/m4/strdup.m4: Update.
3002 * gnulib/import/m4/strerror.m4: Update.
3003 * gnulib/import/m4/string_h.m4: Update.
3004 * gnulib/import/m4/strstr.m4: Update.
3005 * gnulib/import/m4/strtok_r.m4: Update.
3006 * gnulib/import/m4/sys_socket_h.m4: Update.
3007 * gnulib/import/m4/sys_stat_h.m4: Update.
3008 * gnulib/import/m4/sys_time_h.m4: Update.
3009 * gnulib/import/m4/sys_types_h.m4: Update.
3010 * gnulib/import/m4/tempname.m4: Update.
3011 * gnulib/import/m4/time_h.m4: Update.
3012 * gnulib/import/m4/unistd-safer.m4: Update.
3013 * gnulib/import/m4/unistd_h.m4: Update.
3014 * gnulib/import/m4/warn-on-use.m4: Update.
3015 * gnulib/import/m4/wchar_h.m4: Update.
3016 * gnulib/import/m4/wchar_t.m4: Update.
3017 * gnulib/import/m4/wctype_h.m4: Update.
3018 * gnulib/import/m4/wint_t.m4: Update.
3019 * gnulib/import/malloc.c: Update.
3020 * gnulib/import/malloc/scratch_buffer.h: Update.
3021 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3022 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3023 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3024 * gnulib/import/malloca.c: Update.
3025 * gnulib/import/malloca.h: Update.
3026 * gnulib/import/malloca.valgrind: Update.
3027 * gnulib/import/math.in.h: Update.
3028 * gnulib/import/mbrtowc.c: Update.
3029 * gnulib/import/mbsinit.c: Update.
3030 * gnulib/import/mbsrtowcs-impl.h: Update.
3031 * gnulib/import/mbsrtowcs-state.c: Update.
3032 * gnulib/import/mbsrtowcs.c: Update.
3033 * gnulib/import/memchr.c: Update.
3034 * gnulib/import/memmem.c: Update.
3035 * gnulib/import/mempcpy.c: Update.
3036 * gnulib/import/memrchr.c: Update.
3037 * gnulib/import/mkdir.c: Update.
3038 * gnulib/import/mkstemp.c: Update.
3039 * gnulib/import/msvc-inval.c: Update.
3040 * gnulib/import/msvc-inval.h: Update.
3041 * gnulib/import/msvc-nothrow.c: Update.
3042 * gnulib/import/msvc-nothrow.h: Update.
3043 * gnulib/import/open.c: Update.
3044 * gnulib/import/openat-die.c: Update.
3045 * gnulib/import/openat-priv.h: Update.
3046 * gnulib/import/openat-proc.c: Update.
3047 * gnulib/import/openat.c: Update.
3048 * gnulib/import/openat.h: Update.
3049 * gnulib/import/opendir.c: Update.
3050 * gnulib/import/pathmax.h: Update.
3051 * gnulib/import/pipe-safer.c: Update.
3052 * gnulib/import/rawmemchr.c: Update.
3053 * gnulib/import/readdir.c: Update.
3054 * gnulib/import/readlink.c: Update.
3055 * gnulib/import/realloc.c: Update.
3056 * gnulib/import/ref-add.sin: Update.
3057 * gnulib/import/ref-del.sin: Update.
3058 * gnulib/import/rename.c: Update.
3059 * gnulib/import/rewinddir.c: Update.
3060 * gnulib/import/rmdir.c: Update.
3061 * gnulib/import/same-inode.h: Update.
3062 * gnulib/import/save-cwd.c: Update.
3063 * gnulib/import/save-cwd.h: Update.
3064 * gnulib/import/scratch_buffer.h: Update.
3065 * gnulib/import/secure_getenv.c: Update.
3066 * gnulib/import/setenv.c: Update.
3067 * gnulib/import/signal.in.h: Update.
3068 * gnulib/import/stat-time.c: Update.
3069 * gnulib/import/stat-time.h: Update.
3070 * gnulib/import/stat-w32.c: Update.
3071 * gnulib/import/stat-w32.h: Update.
3072 * gnulib/import/stat.c: Update.
3073 * gnulib/import/stdbool.in.h: Update.
3074 * gnulib/import/stddef.in.h: Update.
3075 * gnulib/import/stdint.in.h: Update.
3076 * gnulib/import/stdio.in.h: Update.
3077 * gnulib/import/stdlib.in.h: Update.
3078 * gnulib/import/str-two-way.h: Update.
3079 * gnulib/import/strchrnul.c: Update.
3080 * gnulib/import/strdup.c: Update.
3081 * gnulib/import/streq.h: Update.
3082 * gnulib/import/strerror-override.c: Update.
3083 * gnulib/import/strerror-override.h: Update.
3084 * gnulib/import/strerror.c: Update.
3085 * gnulib/import/string.in.h: Update.
3086 * gnulib/import/stripslash.c: Update.
3087 * gnulib/import/strnlen1.c: Update.
3088 * gnulib/import/strnlen1.h: Update.
3089 * gnulib/import/strstr.c: Update.
3090 * gnulib/import/strtok_r.c: Update.
3091 * gnulib/import/sys_stat.in.h: Update.
3092 * gnulib/import/sys_time.in.h: Update.
3093 * gnulib/import/sys_types.in.h: Update.
3094 * gnulib/import/tempname.c: Update.
3095 * gnulib/import/tempname.h: Update.
3096 * gnulib/import/time.in.h: Update.
3097 * gnulib/import/unistd--.h: Update.
3098 * gnulib/import/unistd-safer.h: Update.
3099 * gnulib/import/unistd.in.h: Update.
3100 * gnulib/import/unsetenv.c: Update.
3101 * gnulib/import/verify.h: Update.
3102 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3103 * gnulib/import/wchar.in.h: Update.
3104 * gnulib/import/wctype.in.h: Update.
3105 * gnulib/import/xalloc-oversized.h: Update.
3106 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3107 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3108
3109 2018-08-16 Gary Benson <gbenson@redhat.com>
3110
3111 PR gdb/13000:
3112 * gdb/main.c (captured_main_1): Exit with nonzero status
3113 in batch mode if the last command to be executed failed.
3114 * NEWS: Mention the above.
3115
3116 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
3117
3118 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3119 end of warning message.
3120
3121 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3122
3123 PR gdb/22943:
3124 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
3125 (aarch64_extract_return_value): Use
3126 aapcs_is_vfp_call_or_return_candidate.
3127 (aarch64_return_in_memory): Likewise.
3128 (aarch64_store_return_value): Likewise.
3129
3130 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3131
3132 * aarch64-tdep.c
3133 (aapcs_is_vfp_call_or_return_candidate): Make static
3134 (pass_in_v_or_stack): Remove function.
3135 (pass_in_v_vfp_candidate): New function.
3136 (aarch64_push_dummy_call): Check for float register candidates.
3137
3138 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3139
3140 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
3141 (aapcs_is_vfp_call_or_return_candidate_1): New function.
3142 (aapcs_is_vfp_call_or_return_candidate): Likewise.
3143
3144 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3145
3146 PR build/23399
3147 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
3148 (struct ipa_sym_addresses): Rename to...
3149 (struct ipa_sym_addresses_common): ... this.
3150 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
3151
3152 2018-08-28 Tom Tromey <tom@tromey.com>
3153
3154 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3155 (token_fifo): Now a std::vector.
3156 (yylex, c_parse): Update.
3157 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3158 (token_fifo): Now a std::vector.
3159 (yylex, d_parse): Update.
3160 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
3161 (token_fifo): Now a std::vector.
3162 (yylex, go_parse): Update.
3163
3164 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
3165
3166 * parser-defs.h (struct type_stack) <elements>: Change type to
3167 std::vector<union type_stack_elt>.
3168 <depth, size>: Remove.
3169 * parse.c (parse_exp_in_context_1): Adjust.
3170 (type_stack_reserve): Remove.
3171 (check_type_stack_depth): Remove.
3172 (insert_into_type_stack): Adjust to std::vector.
3173 (insert_type): Likewise.
3174 (push_type): Likewise.
3175 (push_type_int): Likewise.
3176 (insert_type_address_space): Likewise.
3177 (pop_type): Likewise.
3178 (pop_type_int): Likewise.
3179 (pop_typelist): Likewise.
3180 (pop_type_stack): Likewise.
3181 (append_type_stack): Likewise.
3182 (push_type_stack): Likewise.
3183 (get_type_stack): Likewise.
3184 (type_stack_cleanup): Likewise.
3185 (push_typelist): Likewise.
3186 (follow_types): Likewise.
3187 (_initialize_parse): Likewise.
3188
3189 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
3190
3191 * NEWS: Mention csky target.
3192
3193 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
3194 Hafiz Abid Qadeer <abidh@codesourcery.com>
3195 Don Breazeal <donb@codesourcery.com>
3196
3197 * csky-linux-tdep.c: New file.
3198 * csky-tdep.c: Likewise.
3199 * csky-tdep.h: Likewise.
3200 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
3201 csky-tdep.o.
3202 (HFILES_NO_SRCDIR): Add csky-tdep.h.
3203 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
3204 * configure.tgt: Add csky support.
3205
3206 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
3207
3208 * python/py-framefilter.c (py_print_frame): Print frame architecture
3209 when printing on an MI output.
3210
3211 2018-08-27 Tom Tromey <tom@tromey.com>
3212
3213 PR build/23087:
3214 * configure: Rebuild.
3215 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
3216
3217 2018-08-27 Tom Tromey <tom@tromey.com>
3218
3219 * aarch64-linux-tdep.c
3220 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
3221 casts to int.
3222
3223 2018-08-27 Tom Tromey <tom@tromey.com>
3224
3225 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
3226 unsigned.
3227 (ppc64_standard_linkage1, ppc64_standard_linkage2)
3228 (ppc64_standard_linkage3, ppc64_standard_linkage4)
3229 (ppc64_standard_linkage5, ppc64_standard_linkage6)
3230 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
3231 unsigned.
3232
3233 2018-08-27 Tom Tromey <tom@tromey.com>
3234
3235 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
3236 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
3237
3238 2018-08-27 Tom Tromey <tom@tromey.com>
3239
3240 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
3241 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
3242 ULONGEST_MAX.
3243 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
3244 ULONGEST_MAX.
3245 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
3246 ULONGEST_MAX.
3247 * sparc-linux-tdep.c (sparc32_linux_sigframe)
3248 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
3249 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
3250 ULONGEST_MAX.
3251 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
3252 (ppc64_linux_sigaction_tramp_frame)
3253 (ppc32_linux_sighandler_tramp_frame)
3254 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3255 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
3256 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
3257 * mn10300-linux-tdep.c (am33_linux_sigframe)
3258 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
3259 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
3260 * mips-linux-tdep.c (mips_linux_o32_sigframe)
3261 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
3262 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
3263 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
3264 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
3265 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
3266 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
3267 * microblaze-linux-tdep.c
3268 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
3269 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
3270 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
3271 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
3272 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
3273 * common/common-types.h (ULONGEST_MAX): New define.
3274 (CORE_ADDR_MAX): Fix formatting.
3275 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
3276 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
3277 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
3278 (arm_linux_rt_sigreturn_tramp_frame)
3279 (arm_eabi_linux_sigreturn_tramp_frame)
3280 (arm_eabi_linux_rt_sigreturn_tramp_frame)
3281 (thumb2_eabi_linux_sigreturn_tramp_frame)
3282 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
3283 (arm_linux_restart_syscall_tramp_frame)
3284 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
3285 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
3286 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
3287 ULONGEST_MAX.
3288 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
3289
3290 2018-08-27 Tom Tromey <tom@tromey.com>
3291
3292 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
3293 CORE_ADDR_MAX.
3294 * mips-tdep.c (mips_deal_with_atomic_sequence)
3295 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
3296 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
3297 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
3298 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
3299 CORE_ADDR_MAX.
3300 * aarch64-tdep.c (aarch64_software_single_step): Use
3301 CORE_ADDR_MAX.
3302
3303 2018-08-27 Tom Tromey <tom@tromey.com>
3304
3305 * linespec.c (complete_linespec_component): Add cast to "char".
3306 * completer.c (completion_tracker::build_completion_result): Add
3307 cast to "char".
3308
3309 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3310
3311 * solist.h (struct solist, struct target_so_ops): Fix
3312 indentation.
3313
3314 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3315
3316 * ada-tasks.c (ada_task_info_s): Remove typedef.
3317 (DEF_VEC_O(ada_task_info_s)): Remove.
3318 (struct ada_tasks_inferior_data): Initialize fields.
3319 <task_list>: Make an std::vector.
3320 (get_ada_tasks_inferior_data): Allocate with new.
3321 (ada_get_task_number): Adjust.
3322 (get_task_number_from_id): Likewise.
3323 (valid_task_id): Likewise.
3324 (ada_get_task_info_from_ptid): Likewise.
3325 (iterate_over_live_ada_tasks): Likewise.
3326 (add_ada_task): Likewise.
3327 (read_known_tasks): Likewise.
3328 (ada_build_task_list): Likewise.
3329 (print_ada_task_info): Likewise.
3330 (info_task): Likewise.
3331 (task_command_1): Likewise.
3332
3333 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
3334
3335 * ada-lang.c (add_angle_brackets): Return std::string.
3336
3337 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
3338
3339 * python/py-threadevent.c (py_get_event_thread): Initialize
3340 pythread.
3341
3342 2018-08-24 Pedro Alves <palves@redhat.com>
3343
3344 * python/py-bpevent.c (create_breakpoint_event_object): Use
3345 copy-initialization.
3346 * python/py-continueevent.c (emit_continue_event): Use
3347 copy-initialization.
3348 * python/py-exitedevent.c (create_exited_event_object): Return a
3349 gdbpy_ref<>.
3350 (emit_exited_event): Use copy-initialization.
3351 * python/py-inferior.c (python_new_inferior)
3352 (python_inferior_deleted, add_thread_object): Use
3353 copy-initialization.
3354 * python/py-infevents.c (create_inferior_call_event_object)
3355 (create_register_changed_event_object)
3356 (create_memory_changed_event_object): Return a gdbpy_ref<>.
3357 (emit_inferior_call_event, emit_memory_changed_event)
3358 (emit_register_changed_event): Use copy-initialization.
3359 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3360 Return a gdbpy_ref<>.
3361 (emit_new_objfile_event): Use copy-initialization.
3362 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
3363 (emit_clear_objfiles_event): Use copy-initialization.
3364 * python/py-signalevent.c (create_signal_event_object): Use
3365 copy-initialization.
3366 * python/py-threadevent.c (create_thread_event_object): Use
3367 copy-initialization.
3368
3369 2018-08-24 Pedro Alves <palves@redhat.com>
3370 Simon Marchi <simon.marchi@ericsson.com>
3371
3372 PR gdb/23379
3373 * python/py-continueevent.c: Include "gdbthread.h".
3374 (create_continue_event_object): Add intro comment. Add 'ptid'
3375 parameter. Use it to find thread to pass to
3376 create_thread_event_object.
3377 (emit_continue_event): Pass PTID down to
3378 create_continue_event_object.
3379 * python/py-event.h (py_get_event_thread): Declare.
3380 (create_thread_event_object): Remove default from 'thread'
3381 parameter.
3382 * python/py-stopevent.c (create_stop_event_object): Use
3383 py_get_event_thread.
3384 * python/py-threadevent.c (get_event_thread): Rename to ...
3385 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
3386 and use it to find the thread.
3387 (create_thread_event_object): Assert that THREAD isn't null.
3388 Don't find the event thread here.
3389
3390 2018-08-23 Kevin Buettner <kevinb@redhat.com>
3391
3392 * block.h (blockrange, blockranges): New struct declarations.
3393 (struct block): Add new field named `ranges'.
3394 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
3395 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
3396 macros for accessing ranges in struct block.
3397 (make_blockranges): New declaration.
3398 block.c (make_blockranges): New function.
3399 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
3400 for block.
3401 * symtab.h (find_pc_partial_function): Add new parameter `block'.
3402 * blockframe.c (cache_pc_function_block): New static global.
3403 (clear_pc_function_cache): Clear cache_pc_function_block.
3404 (find_pc_partial_function): Move comment to symtab.h. Add
3405 support for non-contiguous blocks.
3406 * cli/cli-cmds.c (block.h): Include.
3407 (print_disassembly): Handle printing of non-contiguous blocks.
3408 (disassemble_current_function): Likewise.
3409 (disassemble_command): Likewise.
3410
3411 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
3412 BLOCK_START.
3413 * blockframe.c (get_pc_function_start): Likewise.
3414 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
3415 (gcc_symbol_address): Likewise.
3416 * compile/compile-object-run.c (compile_object_run): Likewise.
3417 * compile/compile.c (get_expr_block_and_pc): Likewise.
3418 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
3419 (func_addr_to_tail_call_list): Likewise.
3420 * findvar.c (default_read_var_value): Likewise.
3421 * inline-frame.c (inline_frame_this_id): Likewise.
3422 (skip-inline_frames): Likewise.
3423 * infcmd.c (until_next_command): Likewise.
3424 * linespec.c (convert_linespec_to_sals): Likewise.
3425 * parse.c (parse_exp_in_context_1): Likewise.
3426 * printcmd.c (build_address_symbolic): likewise.
3427 (info_address_command): Likewise.
3428 symtab.c (find_function_start_sal): Likewise.
3429 (skip_prologue_sal): Likewise.
3430 (find_function_alias_target): Likewise.
3431 (find_gnu_ifunc): Likewise.
3432 * stack.c (find_frame_funname): Likewise.
3433 * symtab.c (fixup_symbol_section): Likewise.
3434 (find_function_start_sal): Likewise.
3435 (skip_prologue_sal): Likewsie.
3436 (find_function_alias_target): Likewise.
3437 (find_gnu_ifunc): Likewise.
3438 * tracepoint.c (info_scope_command): Likewise.
3439 * value.c (value_fn_field): Likewise.
3440
3441 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
3442 in place of find_pc_partial_function.
3443 * blockframe.c (find_function_entry_range_from_pc): New function.
3444 * symtab.h (find_function_entry_range_from_pc): Declare and document.
3445 * objfiles.c (objfile_relocate1): Relocate start and end addresses
3446 for each range in a block.
3447
3448
3449 2018-08-23 Xavier Roirand <roirand@adacore.com>
3450
3451 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
3452 incrementation.
3453
3454 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3455
3456 * solib-svr4.c (read_program_headers_from_bfd): Return
3457 gdb::optional<gdb::byte_vector>.
3458 (svr4_exec_displacement): Adjust.
3459
3460 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3461
3462 * solib-svr4.c (read_program_header): Return
3463 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
3464 (find_program_interpreter): Return
3465 gdb::optional<gdb::byte_vector>.
3466 (scan_dyntag_auxv): Adjust.
3467 (enable_break): Adjust.
3468 (svr4_exec_displacement): Adjust.
3469
3470 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3471
3472 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
3473 * inf-child.c (inf_child_target::terminal_save_inferior): New.
3474
3475 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3476
3477 * guile/scm-string.c (gdbscm_scm_from_printf): Use
3478 string_vprintf.
3479 * guile/scm-utils.c (gdbscm_printf): Likewise.
3480 * serial.c (serial_printf): Likewise.
3481 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3482
3483 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
3484
3485 * stack.c (print_frame): Print frame architecture when printing on
3486 an MI output.
3487 * NEWS: Mention new "arch" attribute in frame output.
3488
3489 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3490
3491 * arch/aarch64.h (aarch64_regnum): Update comment.
3492
3493 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3494
3495 * NEWS: Add SVE to 8.2 section.
3496
3497 2018-08-21 Pedro Alves <palves@redhat.com>
3498
3499 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3500 out from gdbscm_parse_function_args.
3501 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3502 gdbscm_parse_function_args_1.
3503
3504 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
3505
3506 PR gdb/17816
3507 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3508 operator.
3509
3510 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
3511
3512 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3513
3514 2018-08-19 Michael Spang <spang@google.com>
3515
3516 PR gdb/11786
3517 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3518 for PT_TLS segments.
3519
3520 2018-08-18 Kevin Buettner <kevinb@redhat.com>
3521
3522 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3523 dwarf_variable_value.
3524 * dwarf2-frame.c (class dwarf_expr_executor):
3525 Add override for dwarf_variable_value.
3526 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3527 (class symbol_needs_eval_context): Likewise.
3528 (indirect_synthetic_pointer): Add forward declaration.
3529 (sect_variable_value): New function.
3530 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3531 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3532 for DW_OP_GNU_variable_value.
3533
3534 2018-08-16 Tom Tromey <tom@tromey.com>
3535
3536 * top.c (read_command_file): Update.
3537 (command_line_input): Remove "repeat" argument.
3538 * ada-lang.c (get_selections): Update.
3539 * linespec.c (decode_line_2): Update.
3540 * defs.h (command_line_input): Remove argument.
3541 * cli/cli-script.c (read_next_line): Update.
3542 * python/py-gdb-readline.c: Update.
3543
3544 2018-08-17 Tom Tromey <tom@tromey.com>
3545
3546 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3547 command_line_input.
3548
3549 2018-08-15 Tom Tromey <tom@tromey.com>
3550
3551 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3552
3553 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3554
3555 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3556 If used, use find_pc_partial_function to find address range
3557 to disassemble.
3558 * mi/mi-main.c (mi_cmd_list_features): Report
3559 "data-disassemble-a-option" feature.
3560 * NEWS: Mention new -data-disassemble option -a.
3561
3562 2018-08-13 Tom Tromey <tom@tromey.com>
3563
3564 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3565
3566 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3567
3568 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3569 (aarch64_linux_collect_sve_regset): Likewise.
3570 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3571 * regcache.h (regcache_map_entry_size): New function.
3572
3573 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3574
3575 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3576 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3577 (SVE_HEADER_VL_LENGTH): Likewise.
3578 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3579 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3580 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3581 (SVE_HEADER_SIZE_OFFSET): Likewise.
3582 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3583 (SVE_HEADER_VL_OFFSET): Likewise.
3584 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3585 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3586 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3587 (SVE_HEADER_SIZE): Likewise.
3588 (aarch64_linux_core_read_vq): Add function.
3589 (aarch64_linux_core_read_description): Check for SVE section.
3590
3591 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3592
3593 * aarch64-fbsd-tdep.c
3594 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3595 collect_size.
3596 * aarch64-linux-tdep.c
3597 (aarch64_linux_iterate_over_regset_sections): Likewise.
3598 * alpha-linux-tdep.c
3599 (alpha_linux_iterate_over_regset_sections):
3600 * alpha-nbsd-tdep.c
3601 (alphanbsd_iterate_over_regset_sections): Likewise.
3602 * amd64-fbsd-tdep.c
3603 (amd64fbsd_iterate_over_regset_sections): Likewise.
3604 * amd64-linux-tdep.c
3605 (amd64_linux_iterate_over_regset_sections): Likewise.
3606 * arm-bsd-tdep.c
3607 (armbsd_iterate_over_regset_sections): Likewise.
3608 * arm-fbsd-tdep.c
3609 (arm_fbsd_iterate_over_regset_sections): Likewise.
3610 * arm-linux-tdep.c
3611 (arm_linux_iterate_over_regset_sections): Likewise.
3612 * corelow.c (get_core_registers_cb): Likewise.
3613 (core_target::fetch_registers): Likewise.
3614 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3615 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3616 * gdbarch.h (void): Regenerate.
3617 * gdbarch.sh: Add supply_size and collect_size.
3618 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3619 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3620 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3621 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3622 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3623 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3624 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3625 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3626 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3627 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3628 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3629 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3630 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3631 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3632 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3633 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3634 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3635 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3636 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3637 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3638 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3639 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3640 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3641 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3642 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3643 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3644 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3645 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3646 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3647 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3648
3649 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3650
3651 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3652 with string_printf.
3653
3654 2018-08-10 Keith Seitz <keiths@redhat.com>
3655
3656 * compile/compile-c-support.c (add_code_header, add_code_footer):
3657 Move into policy class.
3658 (c_push_user_expression, pop_user_expression_nop)
3659 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3660 (compile_program): New host class.
3661 (c_compile_program): New typedef.
3662 (c_compute_porgram): Use c_compile_program.
3663
3664 2018-08-10 Keith Seitz <keiths@redhat.com>
3665
3666 * compile/compile-internal.h (compile_instance::~compile_instance):
3667 Remove calls to htab_delete.
3668 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3669 * compile.c (compile_instance::compile_instance): Initialize
3670 htab unique pointers.
3671 (compile_instance::get_cached_type, compile_instance::insert_type)
3672 (compile_instance::error_symbol_once): Update for unique_ptr.
3673
3674 2018-08-10 Keith Seitz <keiths@redhat.com>
3675
3676 * compile/compile-c-symbols.c (struct symbol_error)
3677 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3678 (compile_instance::insert_symbol_error)
3679 (compile_instance::error_symbol_once): Move to ...
3680 * compile/compile.c: ... here.
3681
3682 2018-08-10 Keith Seitz <keiths@redhat.com>
3683
3684 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3685 instead of `new_compile_instance'.
3686 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3687 Update description.
3688 If the symbol error map is not initialized, create it.
3689 (generate_c_for_for_one_symbol): Do not check/initialize
3690 the symbol error map.
3691 * compile/compile-c-types.c (compile_c_instance): Make a class.
3692 Update all callers.
3693 (compile_instance::compile_instance): Initialize the type cache.
3694 (get_cached_type): New function.
3695 (insert_type): Update description.
3696 (compile_c_instance::m_default_cflags): Define.
3697 (convert_type): Update description. Use get_cached_type.
3698 (delete_instance): Moved to destructor.
3699 (new_compile_instance): Moved to constructor.
3700 * compile/compile-c.h (compile_c_instance): Make class inheriting
3701 from compile_instance.
3702 <base>: Remove field.
3703 <type_map, symbol_err_map>: Move to base class.
3704 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3705 * compile/compile-internal.h (compile_instance): Make class.
3706 <type_map_t, symbol_err_map_t>: Define.
3707 <fe>: Rename to `m_gcc_fe'.
3708 <scope, block, gcc_target_options>: Add `m_' prefix.
3709 <m_type_map, m_symbol_err_map>: New fields, moved from
3710 compile_c_instance.
3711 <destroy>: Remove.
3712 (convert_type, new_compile_instance): Remove.
3713 * compile/compile.c (cleanup_compile_instance): Remove.
3714 (compile_to_object): Use unique_ptr to eliminate cleanups.
3715 (compile_instance::set_print_callback, compile_instance::version)
3716 (compile_instance::set_verbose)
3717 (compile_instance::set_driver_filename)
3718 (compile_instance::set_triplet_regexp)
3719 (compile_instance::set_arguments)
3720 (compile_instance::set_source_file)
3721 (compile_instance::compile): Define.
3722
3723 2018-08-10 Keith Seitz <keiths@redhat.com>
3724
3725 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3726 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3727 gcc-c-fe.def to define C plugin.
3728 (delete_instance): Delete `c_plugin'.
3729 (new_compile_instance): Initialize `c_plugin'.
3730 * compile/compile-c.h: Include gcc_c_plugin.h.
3731 (struct compile_c_instance) <c_plugin>: New member.
3732 * gcc-c-plugin.h: New file.
3733 Update all callers with API change.
3734
3735 2018-08-10 Keith Seitz <keiths@redhat.com>
3736
3737 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3738 (HFILES_NO_SRCDIR): ... to here.
3739 Add compile-internal.h and compile-c.h.
3740 * compile/compile-c-support.c: Include compile-c.h.
3741 * compile/compile-c-symbols.c: Include compile-c.h.
3742 (generate_c_for_variable_locations): Update comment.
3743 * compile/compile-c-types.c: Include compile-c.h.
3744 * compile/compile-c.h: New file -- moved C language declarations
3745 from other files here.
3746 * compile/compile-internal.h: Do not include hashtab.h or
3747 common/enum-flags.h.
3748 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3749 (gcc_convert_symbol, gcc_symbol_address)
3750 (generate_c_for_variable_locations, c_get_mode_for_size)
3751 (c_get_range_decl_name): Definitions moved to compile-c.h.
3752 * compile/compile-loc2c.c: Include compile-c.h.
3753
3754 2018-08-10 Keith Seitz <keiths@redhat.com>
3755
3756 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3757 (c_symbol_substitution_name): ... this.
3758 Update all callers.
3759
3760 2018-08-10 Keith Seitz <keiths@redhat.com>
3761
3762 * compile/compile-c-support.c (c_compute_program): Use
3763 unique_xmalloc_ptr to eliminate cleanup.
3764 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3765 Return a unique_xmalloc_ptr and eliminate cleanup.
3766 * compile/compile-internal.h (generate_c_for_variable_locations):
3767 Return unique_xmalloc_ptr and update description.
3768
3769 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3770
3771 * corelow.c (core_target::get_core_register_section): Rename
3772 min_size to section_min_size.
3773
3774 2018-08-09 Jim Wilson <jimw@sifive.com>
3775
3776 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3777 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3778 * NEWS: Mention new GNU/Linux RISC-V target.
3779 * configure.host: Add riscv*-*-linux*.
3780 * configure.nat: Add riscv*.
3781 * configure.tgt: Add riscv*-*-linux*.
3782 * riscv-linux-nat.c: New file.
3783 * riscv-linux-tdep.c: New file.
3784
3785 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * infrun.c (resume): Make static, add forward declaration.
3788 (proceed): Update header comment.
3789 * infrun.h (resume): Delete declaration.
3790
3791 2018-08-09 Tom Tromey <tom@tromey.com>
3792
3793 * riscv-tdep.h: Minor formatting fixes.
3794
3795 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3796
3797 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3798 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3799 (test_mkdir_recursive): Likewise.
3800 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3801
3802 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3803
3804 * valarith.c (value_subscripted_rvalue): If an array is not in
3805 memory, and we don't know the upper bound, then we can't know that
3806 the requested element exists or not.
3807
3808 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3809
3810 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3811 (target_options_to_string): Add comment.
3812
3813 2018-08-08 Tom Tromey <tom@tromey.com>
3814
3815 * unittests/scoped_mmap-selftests.c: Check result of "write".
3816
3817 2018-08-08 Jim Wilson <jimw@sifive.com>
3818
3819 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3820 (decode_register_index_short): New.
3821 (decode_j_type_insn, decode_cj_type_insn): New.
3822 (decode_b_type_insn, decode_cb_type_insn): New.
3823 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3824 local xlen. Check xlen when decoding ambiguous compressed insns. In
3825 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3826 is_c_sw_insn instead of is_sw_insn.
3827 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3828 (riscv_software_single_step): New.
3829 * riscv-tdep.h (riscv_software_single_step): Declare.
3830
3831 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3832 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3833
3834 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3835
3836 PR gdb/18050:
3837 * target.c (dispose_inferior): Don't dispose of inferiors that are
3838 already killed.
3839
3840 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3841
3842 * remote.c (remote_target::download_tracepoint): Change char* to
3843 const char*.
3844
3845 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3846
3847 * target.h (target_options_to_string): Return an std::string.
3848 * target.c (str_comma_list_concat_elem): Return void, use
3849 std::string.
3850 (do_option): Likewise.
3851 (target_options_to_string): Return an std::string.
3852 * linux-nat.c (linux_nat_target::wait): Adjust.
3853 * target-debug.h (target_debug_print_options): Adjust.
3854
3855 2018-08-07 Tom Tromey <tom@tromey.com>
3856
3857 * Makefile.in (CPPFLAGS): New variable.
3858 (INTERNAL_CPPFLAGS): Use it.
3859
3860 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3861
3862 * NEWS: Mention the index cache.
3863
3864 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3865
3866 * common/pathstuff.h (get_standard_cache_dir): New.
3867 * common/pathstuff.c (get_standard_cache_dir): New.
3868 * build-id.h (build_id_to_string): New.
3869 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3870 DEBUG_STR_SUFFIX): Move to here.
3871 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3872 DEBUG_STR_SUFFIX): Move from there.
3873 (write_psymtabs_to_index): Make non-static, add basename
3874 parameter. Write to temporary files, rename when done.
3875 (save_gdb_index_command): Adjust call to
3876 write_psymtabs_to_index.
3877 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3878 field.
3879 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3880 (get_gdb_index_contents_from_cache): New.
3881 (get_gdb_index_contents_from_cache_dwz): New.
3882 (dwarf2_initialize_objfile): Read index from cache.
3883 (dwarf2_build_psymtabs): Save to index.
3884 * dwarf-index-cache.h: New file.
3885 * dwarf-index-cache.c: New file.
3886 * dwarf-index-write.h: New file.
3887
3888 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3889
3890 * gnulib/aclocal.m4: Re-generate.
3891 * gnulib/config.in: Re-generate.
3892 * gnulib/configure: Re-generate.
3893 * gnulib/import/Makefile.am: Re-generate.
3894 * gnulib/import/Makefile.in: Re-generate.
3895 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3896 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3897 * gnulib/import/m4/mkdir.m4: New file.
3898 * gnulib/import/mkdir.c: New file.
3899 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3900 module.
3901
3902 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3903
3904 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3905 * common/scoped_mmap.c: New file.
3906 * common/scoped_mmap.h (destroy): New method.
3907 (~scoped_mmap, reset): Use destroy.
3908 (scoped_mmap): New move constructor.
3909 (mmap_file): New declaration.
3910 * unittests/scoped_mmap-selftests.c (test_normal,
3911 test_invalid_filename, run_tests): New functions.
3912 (_initialize_scoped_mmap_selftests): Register selftest.
3913
3914 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3915
3916 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3917 (read_gdb_index_from_buffer): ... this. Remove section
3918 parameter, add buffer parameter.
3919 (get_gdb_index_contents_ftype,
3920 get_gdb_index_contents_dwz_ftype): New typedefs.
3921 (dwarf2_read_gdb_index): Add callback parameters to get the
3922 index contents.
3923 (get_gdb_index_contents_from_section): New.
3924 (dwarf2_initialize_objfile): Update call to
3925 dwarf2_read_gdb_index.
3926
3927 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3928
3929 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3930 (gdb_open_cloexec): Likewise.
3931 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3932 (commandline_from_pid): Likewise.
3933 (linux_xfer_osdata_threads): Likewise.
3934 (linux_xfer_osdata_fds): Likewise.
3935 * ada-lang.c (is_package_name): Likewise.
3936 * auxv.c (procfs_xfer_auxv): Likewise.
3937 * breakpoint.c (print_one_breakpoint_location): Use
3938 uiout::field_fmt.
3939 (print_one_catch_solib): Use string_printf.
3940 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3941 (add_pe_forwarded_sym): Likewise.
3942 * dwarf2read.c (create_type_unit_group): Likewise.
3943 (build_error_marker_type): Likewise.
3944 * infcall.c (get_function_name): Likewise.
3945 * valprint.c (print_converted_chars_to_obstack): Likewise.
3946 * xtensa-tdep.c (xtensa_register_type): Likewise.
3947
3948 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3949
3950 * remote.c (remote_target::download_tracepoint): Fix format
3951 string errors.
3952
3953 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3954
3955 * tracefile.c: Include common/byte-vector.h.
3956 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3957 with trace_regblock_size if needed. Update uses of buf.
3958
3959 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3960
3961 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3962 std::vector<unsigned char>.
3963 * tracepoint.c (collection_list::collection_list): Remove
3964 m_regs_mask initializer from initializer list. Resize
3965 m_regs_mask using the largest remote register number.
3966 (collection_list::add_remote_register): Remove size check on
3967 m_regs_mask. Use at to access element.
3968 (collection_list::stringify): Change type of temp_buf to
3969 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3970 stringify the register mask. Use pack_hex_byte for the register
3971 mask.
3972
3973 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3974
3975 * tracepoint.h (class collection_list) <add_register>: Remove.
3976 <add_remote_register, add_ax_registers, add_local_register>:
3977 Declare.
3978 <add_memrange>: Add scope parameter.
3979 * tracepoint.c (encode_actions_1): Likewise.
3980 (collection_list::add_register): Rename to ...
3981 (collection_list::add_remote_register): ... this. Update
3982 comment.
3983 (collection_list::add_ax_registers, add_local_register): New
3984 methods.
3985 (collection_list::add_memrange): Add scope parameter. Call
3986 add_local_register instead of add_register.
3987 (finalize_tracepoint_aexpr): New function.
3988 (collection_list::collect_symbol): Update calls to add_memrange.
3989 Call add_local_register instead of add_register. Call
3990 add_ax_registers. Call finalize_tracepoint_aexpr.
3991 (encode_actions_1): Get remote regnos for $reg action. Call
3992 add_remote_register, add_ax_registers, and add_local_register.
3993 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3994 (validate_actionline): Call finalize_tracepoint_aexpr.
3995
3996 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3997
3998 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3999 Replace array buf with gdb::char_vector buf, of size
4000 get_remote_packet_size (). Replace references to buf and
4001 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
4002 and xsnprintf with snprintf. Raise errors if the buffer is too
4003 small.
4004
4005 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4006
4007 * remote.c (remote_target::download_tracepoint): Fix the has_more
4008 predicate in the QTDP action list iteration.
4009
4010 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4011
4012 * remote.c (remote_target::download_tracepoint): Fix indentation
4013 in for block.
4014
4015 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4016
4017 * proc-api.c (_initialize_proc_api): Remove c, unused.
4018 * procfs.c (procfs_init_inferior): Remove signals, unused.
4019 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4020 unused.
4021
4022 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
4023 Andrew Burgess <andrew.burgess@embecosm.com>
4024
4025 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4026 'W_STOPCODE (0)' as this could be ambiguous.
4027
4028 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
4029
4030 * ser-tcp.c (net_open): Fix thinko when deciding whether to
4031 disable TCP's Nagle algorithm (use "ai_protocol" instead of
4032 "ai_socktype").
4033
4034 2018-08-02 Tom Tromey <tom@tromey.com>
4035
4036 PR symtab/16842.
4037 * dwarf2read.c (read_func_scope): Set symtab on template parameter
4038 symbols.
4039 (process_structure_scope): Likewise.
4040
4041 2018-08-02 Xavier Roirand <roirand@adacore.com>
4042
4043 PR gdb/22629:
4044 * darwin-nat.c (darwin_kill_inferior): Fix handling of
4045 kill inferior.
4046
4047 2018-08-02 Tom Tromey <tom@tromey.com>
4048
4049 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4050 (darwin_suspend_inferior, darwin_resume_inferior)
4051 (darwin_decode_notify_message, darwin_resume_inferior_threads)
4052 (darwin_check_new_threads): Check result of get_darwin_inferior.
4053
4054 2018-07-31 Joel Brobecker <brobecker@adacore.com>
4055
4056 GDB 8.1.1 released.
4057
4058 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
4059
4060 * varobj.c (varobj_get_path_expr_parent): Report an error if
4061 parent is a dynamic varobj.
4062
4063 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4064
4065 * gnulib/aclocal.m4: Re-generate.
4066 * gnulib/config.in: Re-generate.
4067 * gnulib/configure: Re-generate.
4068 * gnulib/import/Makefile.in: Re-generate.
4069 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4070 * gnulib/import/m4/onceonly.m4: Re-generate.
4071
4072 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4073
4074 * target-descriptions.c (struct xml_test_tdesc): New.
4075 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4076 (record_xml_tdesc): Update.
4077 (maintenance_check_xml_descriptions): Update.
4078 * target-descriptions.h (record_xml_tdesc): Update comment.
4079
4080 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
4081
4082 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4083 checking array bounds are defined.
4084
4085 2018-07-30 Tom Tromey <tom@tromey.com>
4086
4087 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4088 irreflexivity violation.
4089
4090 2018-07-30 Tom Tromey <tom@tromey.com>
4091
4092 * cli/cli-decode.c (lookup_cmd): Remove lint code.
4093 * value.c (unpack_long): Remove lint code.
4094 * valops.c (value_ind): Remove lint code.
4095 * valarith.c (value_x_binop, value_x_unop, value_equal)
4096 (value_pos): Remove lint code.
4097
4098 2018-07-28 Tom de Vries <tdevries@suse.de>
4099
4100 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4101 with undefined upper bound as <optimized out>.
4102
4103 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
4104
4105 * gcore.in: Rename variable "name" to "prefix". Expand
4106 "usage" text.
4107
4108 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
4109
4110 * windows-nat.c (windows_nat_target::create_inferior): Update to
4111 call close() in global namespace.
4112
4113 2018-07-26 Tom Tromey <tom@tromey.com>
4114
4115 * dwarf-index-write.c (add_address_entry): Don't add objfile
4116 offsets.
4117 * dbxread.c (find_stab_function): Rename from
4118 find_stab_function_addr. Return a bound_minimal_symbol.
4119 (read_dbx_symtab): Use raw_text_low, raw_text_high.
4120 Don't add objfile offsets.
4121 (end_psymtab): Use raw_text_low, raw_text_high,
4122 MSYMBOL_VALUE_RAW_ADDRESS.
4123 (read_ofile_symtab): Update.
4124 (process_one_symbol): Update.
4125 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
4126 offsets.
4127 (dw2_relocate): Remove.
4128 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
4129 searching addrmap.
4130 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
4131 Update.
4132 (process_psymtab_comp_unit_reader, add_partial_symbol)
4133 (add_partial_subprogram, dwarf2_ranges_read): Update.
4134 (load_partial_dies): Update.
4135 (add_address_entry): Don't add objfile offsets.
4136 (dwarf2_build_include_psymtabs): Update.
4137 (create_addrmap_from_aranges): Don't add objfile offsets.
4138 (dw2_find_pc_sect_compunit_symtab): Update.
4139 * mdebugread.c (parse_symbol): Don't add objfile offsets.
4140 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
4141 Update.
4142 (parse_partial_symbols): Don't add objfile offsets. Use
4143 raw_text_low, raw_text_high. Update.
4144 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
4145 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
4146 or call 'relocate' quick function. Clear psymbol_map.
4147 * psympriv.h (struct partial_symbol) <address>: Add section
4148 offset.
4149 <set_unrelocated_address>: Rename from set_address.
4150 <raw_text_low, raw_text_high>: New methods.
4151 <text_low, text_high>: Add objfile parameter.
4152 (add_psymbol_to_bcache): Add 'section' parameter. Call
4153 set_unrelocated_address.
4154 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4155 (find_pc_psymbol): Update.
4156 (fixup_psymbol_section, relocate_psymtabs): Remove.
4157 (dump_psymtab, psym_functions): Update.
4158 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
4159 parameter.
4160 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4161 (start_psymtab_common): Update.
4162 * symfile-debug.c (debug_qf_relocate): Remove.
4163 (debug_sym_quick_functions): Update.
4164 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
4165 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
4166 Update.
4167
4168 2018-07-26 Tom Tromey <tromey@redhat.com>
4169
4170 * dbxread.c (end_psymtab): Use text_high_valid and
4171 text_low_valid.
4172 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
4173 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
4174 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4175 Update comment.
4176 <text_low_valid, text_high_valid>: New fields.
4177 <set_text_low, set_text_high>: Update.
4178 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
4179
4180 2018-07-26 Tom Tromey <tom@tromey.com>
4181
4182 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
4183 Update.
4184 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
4185 textlow and texthigh fields.
4186 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
4187 Update.
4188 * mdebugread.c (parse_lines, parse_partial_symbols)
4189 (psymtab_to_symtab_1): Update.
4190 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
4191 Rename fields. Update comment. Now private.
4192 <text_low, text_high, set_text_low, set_text_high>: New methods.
4193 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4194 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
4195 (start_psymtab_common, maintenance_info_psymtabs)
4196 (maintenance_check_psymtabs): Update.
4197 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
4198 texthigh fields.
4199 (scan_xcoff_symtab): Update.
4200
4201 2018-07-26 Tom Tromey <tromey@redhat.com>
4202
4203 * psympriv.h (struct partial_symbol) <unrelocated_address,
4204 address, set_address>: New methods.
4205 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
4206 (fixup_psymbol_section, relocate_psymtabs): Update.
4207 (print_partial_symbols): Add 'objfile' parameter. Update.
4208 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
4209 Update.
4210
4211 2018-07-26 Tom Tromey <tom@tromey.com>
4212
4213 * dwarf-index-write.c (write_psymbols, debug_names::insert)
4214 (debug_names::write_psymbols): Update.
4215 * psympriv.h (struct partial_symbol): Derive from
4216 general_symbol_info.
4217 <obj_section>: New method.
4218 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
4219 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
4220 (find_pc_sect_psymbol, fixup_psymbol_section)
4221 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
4222 (print_partial_symbols, recursively_search_psymtabs)
4223 (compare_psymbols, psymbol_hash, psymbol_compare)
4224 (add_psymbol_to_bcache, maintenance_check_psymtabs)
4225 (psymbol_name_matches, psym_fill_psymbol_map): Update.
4226
4227 2018-07-26 Tom Tromey <tromey@redhat.com>
4228
4229 * dbxread.c (end_psymtab): Remove dead code.
4230
4231 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
4232
4233 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
4234 DWARF unwinders are disabled.
4235 * dwarf2-frame.c: Add dwarf2read.h include.
4236 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
4237 disabled.
4238 (dwarf2_frame_unwinders_enabled_p): Define.
4239 (show_dwarf_unwinders_enabled_p): New function.
4240 (_initialize_dwarf2_frame): Register switch to control DWARF
4241 unwinder use.
4242 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
4243 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
4244 (show_dwarf_cmdlist): Remove static keyword.
4245 * dwarf2read.h (set_dwarf_cmdlist): Declare.
4246 (show_dwarf_cmdlist): Declare.
4247 * NEWS: Document new feature.
4248
4249 2018-07-26 Tom de Vries <tdevries@suse.de>
4250
4251 PR breakpoints/23366
4252 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
4253
4254 2018-07-26 Tom de Vries <tdevries@suse.de>
4255
4256 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
4257 DW_AT_count can't be translated to a dynamic prop.
4258
4259 2018-07-25 Tom de Vries <tdevries@suse.de>
4260
4261 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
4262 try/catch.
4263
4264 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
4265
4266 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
4267
4268 2018-07-25 Joel Brobecker <brobecker@adacore.com>
4269
4270 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
4271
4272 2018-07-24 Keith Seitz <keiths@redhat.comt
4273
4274 PR symtab/23010
4275 * dwarf2read.c (dw2_add_symbol_to_list): New function.
4276 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
4277 instead of add_symbol_to_list.
4278 (read_file_scope): Call prepare_one_comp_unit before reading
4279 any other DIEs.
4280
4281 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
4282
4283 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
4284
4285 2018-07-24 Tom Tromey <tom@tromey.com>
4286
4287 * utils.c (malloc, realloc, free): Don't declare.
4288 * configure, config.in: Rebuild.
4289 * configure.ac: Don't check for declarations of free, malloc, or
4290 realloc.
4291
4292 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4293
4294 * aarch64-linux-nat.c
4295 (aarch64_linux_nat_target::stopped_data_address): Remove unused
4296 variable.
4297 * arm-linux-nat.c (fetch_regs): Likewise.
4298 (store_regs): Likewise.
4299 (fetch_vfp_regs): Likewise.
4300 (store_vfp_regs): Likewise.
4301 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
4302 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
4303 (arm_linux_nat_target::insert_watchpoint): Likewise.
4304 (arm_linux_nat_target::remove_watchpoint): Likewise.
4305 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
4306 Likewise.
4307 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
4308 Likewise.
4309 * ppc-linux-nat.c (fetch_register): Likewise.
4310 (fetch_all_gp_regs): Likewise.
4311 (fetch_ppc_registers): Likewise.
4312 (store_all_gp_regs): Likewise.
4313 (store_ppc_registers): Likewise.
4314 (hwdebug_insert_point): Likewise.
4315 (can_use_watchpoint_cond_accel): Likewise.
4316 * remote-sim.c (gdb_os_write_stdout): Likewise.
4317
4318 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4319 Tom Tromey <tom@tromey.com>
4320
4321 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
4322 test for it.
4323 * configure: Rebuild.
4324
4325 2018-07-22 Tom Tromey <tom@tromey.com>
4326
4327 * regformats/regdat.sh: Define xmltarget_${name} inside
4328 #ifndef IN_PROCESS_AGENT.
4329
4330 2018-07-22 Tom Tromey <tom@tromey.com>
4331
4332 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
4333
4334 2018-07-22 Tom Tromey <tom@tromey.com>
4335
4336 * symfile.c (reread_symbols): Notify iter, not objfile.
4337
4338 2018-07-22 Tom Tromey <tom@tromey.com>
4339
4340 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
4341 Use arch_ops.
4342 (ravenscar_thread_target::prepare_to_store): Likewise.
4343
4344 2018-07-22 Tom Tromey <tom@tromey.com>
4345
4346 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
4347 unused variable. Call value_fetch_lazy when needed.
4348 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
4349 Remove unused variable. Call value_fetch_lazy when needed.
4350
4351 2018-07-22 Tom Tromey <tom@tromey.com>
4352
4353 * m32c-tdep.c (mark_dma): Return void.
4354 (make_regs): Remove unused declarations.
4355
4356 2018-07-22 Tom Tromey <tom@tromey.com>
4357
4358 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
4359 cmdscm_get_valid_command_smob_arg_unsafe for effect.
4360 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
4361 bkscm_get_valid_block_smob_arg_unsafe for effect.
4362
4363 2018-07-22 Tom Tromey <tom@tromey.com>
4364
4365 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
4366 value_type.
4367
4368 2018-07-22 Tom Tromey <tom@tromey.com>
4369
4370 * windows-nat.c (saved_context): Conditionally define.
4371 * remote.c (remote_target::remote_btrace_maybe_reopen):
4372 Conditionally declare "warned".
4373 * inflow.c (sigquit_ours): Conditionally define.
4374 (new_tty): Move "tty" declaration inside #if.
4375 * guile/guile.c (guile_datadir): Conditionally define.
4376 * charset.c (set_be_le_names): Move some declarations inside #if.
4377 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
4378 #if.
4379 (parse_xml_btrace_conf): Likewise.
4380
4381 2018-07-22 Tom Tromey <tom@tromey.com>
4382
4383 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
4384
4385 2018-07-22 Tom Tromey <tom@tromey.com>
4386
4387 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
4388 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
4389 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
4390 * buildsym-legacy.c (get_macro_table): Remove unused variable.
4391 * stack.c (frame_apply_level_command): Remove unused variable.
4392 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
4393 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
4394 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
4395 unused variable.
4396 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
4397 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
4398 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
4399 variable.
4400 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
4401 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
4402 variable.
4403 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
4404 Remove unused variable.
4405 * cli/cli-script.c (recurse_read_control_structure): Remove unused
4406 variable.
4407 * common/tdesc.c (print_xml_feature::visit): Remove unused
4408 variable.
4409 * compile/compile-object-load.c (store_regs): Remove unused
4410 variables.
4411 * complaints.c (clear_complaints): Remove unused variable.
4412 * corelow.c (core_target_open): Remove unused variable.
4413 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
4414 variable.
4415 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
4416 variable.
4417 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
4418 variable.
4419 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
4420 variable.
4421 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
4422 variable.
4423 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
4424 variable.
4425 * ia64-tdep.c (examine_prologue): Remove unused variable.
4426 * infcall.c (run_inferior_call): Remove unused variable.
4427 * inferior.c (exit_inferior): Remove unused variable.
4428 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
4429 * linespec.c (decode_line_2): Remove unused variable.
4430 * linux-nat.c (super_close): Remove.
4431 * linux-tdep.c (linux_info_proc): Remove unused variable.
4432 * mi/mi-main.c (mi_execute_command): Remove unused variable.
4433 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
4434 Remove unused variable.
4435 * parse.c (find_minsym_type_and_address): Remove unused variable.
4436 * printcmd.c (info_symbol_command, printf_floating): Remove unused
4437 variable.
4438 * python/py-breakpoint.c (bppy_set_commands): Remove unused
4439 variable.
4440 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
4441 variables.
4442 * record-btrace.c (record_btrace_target::store_registers): Remove
4443 unused variable.
4444 (cmd_show_record_btrace_cpu): Remove unused variable.
4445 * riscv-tdep.c (riscv_register_reggroup_p)
4446 (riscv_push_dummy_call, riscv_return_value): Remove unused
4447 variable.
4448 * rust-exp.y (literal): Remove unused variable.
4449 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
4450 unused variable.
4451 <STRUCTOP_ANONYMOUS>: Likewise.
4452 * s390-linux-tdep.c (s390_linux_init_abi_31)
4453 (s390_linux_init_abi_64): Remove unused variable.
4454 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
4455 (file_select_thread, net_windows_open, _initialize_ser_windows):
4456 Remove unused variables.
4457 * symtab.c (find_pc_sect_line): Remove unused variable.
4458 * target-memory.c (compute_garbled_blocks): Remove unused
4459 variable.
4460 (target_write_memory_blocks): Remove unused variable.
4461 * target.c (target_stack::unpush): Remove unused variables.
4462 * tracepoint.c (start_tracing, all_tracepoint_actions)
4463 (merge_uploaded_trace_state_variables)
4464 (print_one_static_tracepoint_marker): Remove unused variable.
4465 * unittests/basic_string_view/element_access/char/1.cc (test01):
4466 Remove unused variable.
4467 * windows-nat.c (windows_continue, windows_add_all_dlls)
4468 (do_initial_windows_stuff, windows_nat_target::create_inferior):
4469 Remove unused variables.
4470
4471 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4472
4473 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
4474 attr_profile in HAVE_ELF.
4475 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4476 HAVE_ELF.
4477
4478 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
4479
4480 * frame.c (frame_register_unwind): Change parameter name.
4481 (frame_unwind_register): Likewise.
4482 (frame_unwind_register_value): Likewise.
4483 (frame_unwind_register_signed): Likewise.
4484 (frame_unwind_register_unsigned): Likewise.
4485 * frame.h (frame_register_unwind): Likewise.
4486 (frame_unwind_register): Likewise.
4487 (frame_unwind_register_value): Likewise.
4488 (frame_unwind_register_signed): Likewise.
4489 (frame_unwind_register_unsigned): Likewise.
4490 (frame_unwind_arch): Likewise.
4491
4492 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4493
4494 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4495 ISA maintenance.
4496
4497 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4498
4499 * mips-linux-nat.c (mips_linux_nat_target::read_description):
4500 Call `get_ptrace_pid' rather than extracting the ptrace PID by
4501 hand.
4502
4503 2018-07-20 Keith Seitz <keiths@redhat.com>
4504
4505 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4506 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4507 m_compunit_symtab, m_language>: Add "m_" prefix.
4508 Update all uses.
4509 * buildsym.c: Update all uses.
4510
4511 2018-07-20 Tom Tromey <tom@tromey.com>
4512
4513 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4514 * buildsym.h (record_line_ftype): Remove typedef.
4515
4516 2018-07-20 Tom Tromey <tom@tromey.com>
4517
4518 * buildsym-legacy.h (augment_type_symtab): Don't declare.
4519 (end_expandable_symtab): Likewise.
4520 (end_symtab_get_static_block): Likewise.
4521 (end_symtab_from_static_block): Likewise.
4522 * buildsym-legacy.c (augment_type_symtab): Remove.
4523 (end_expandable_symtab): Remove.
4524 (end_symtab_get_static_block): Remove.
4525 (end_symtab_from_static_block): Remove.
4526
4527 2018-07-20 Tom Tromey <tom@tromey.com>
4528
4529 * dwarf2read.c: Include buildsym.h.
4530 (struct dwarf2_cu) <builder>: New method.
4531 (fixup_go_packaging): Update.
4532 (process_full_comp_unit, process_full_type_unit): Update. Don't
4533 use scoped_free_pendings.
4534 (using_directives): Add "cu" parameter, remove "language".
4535 (read_import_statement, setup_type_unit_groups, )
4536 (read_func_scope, read_lexical_block_scope)
4537 (dwarf2_record_block_ranges, read_namespace): Update.
4538 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4539 (lnp_state_machine::handle_end_sequence): Update.
4540 (class lnp_state_machine) <m_cu>: New member.
4541 <m_record_line_callback>: Remove.
4542 <m_currently_recording_lines>: New member.
4543 (lnp_state_machine::handle_set_file): Update.
4544 (noop_record_line): Remove.
4545 (dwarf_record_line_p): Add cu parameter.
4546 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4547 (lnp_state_machine::record_line)
4548 (lnp_state_machine::lnp_state_machine)
4549 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4550 (dwarf_decode_lines): Update.
4551 (dwarf2_start_subfile): Add cu parameter.
4552 (dwarf2_start_symtab, new_symbol): Update.
4553 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4554 Remove dwarf2_per_objfile parameter.
4555 (dwarf_decode_macros): Update.
4556
4557 2018-07-20 Tom Tromey <tom@tromey.com>
4558
4559 * stabsread.c (define_symbol): Update.
4560 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4561 * dwarf2read.c (new_symbol): Update.
4562 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4563 * cp-namespace.c: Include buildsym.h.
4564 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4565 * buildsym-legacy.c (get_buildsym_compunit): New function.
4566
4567 2018-07-20 Tom Tromey <tom@tromey.com>
4568
4569 * xcoffread.c: Include buildsym-legacy.h.
4570 * windows-nat.c: Include buildsym-legacy.h.
4571 * stabsread.c: Include buildsym-legacy.h.
4572 * mdebugread.c: Include buildsym-legacy.h.
4573 * buildsym-legacy.h: New file.
4574 * buildsym-legacy.c: New file, from buildsym.c.
4575 * go32-nat.c: Include buildsym-legacy.h.
4576 * dwarf2read.c: Include buildsym-legacy.h.
4577 * dbxread.c: Include buildsym-legacy.h.
4578 * cp-namespace.c: Include buildsym-legacy.h.
4579 * coffread.c: Include buildsym-legacy.h.
4580 * buildsym.h: Move some contents to buildsym-legacy.h.
4581 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4582 buildsym-legacy.c.
4583 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4584
4585 2018-07-20 Tom Tromey <tom@tromey.com>
4586
4587 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4588 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4589 (buildsym_compunit::buildsym_compunit)
4590 (buildsym_compunit::~buildsym_compunit)
4591 (buildsym_compunit::get_macro_table): Define.
4592
4593 2018-07-20 Tom Tromey <tom@tromey.com>
4594
4595 * buildsym.c (reset_symtab_globals): Remove.
4596 (buildsym_compunit::end_symtab_from_static_block): Update.
4597 (buildsym_compunit::augment_type_symtab): Update.
4598 (end_symtab_from_static_block): Call free_buildsym_compunit.
4599 (augment_type_symtab, end_symtab, end_expandable_symtab):
4600 Likewise.
4601
4602 2018-07-20 Tom Tromey <tom@tromey.com>
4603
4604 * arch-utils.c: Do not include buildsym.h.
4605 * mipsread.c: Do not include buildsym.h.
4606 * machoread.c: Do not include buildsym.h.
4607 * elfread.c: Do not include buildsym.h.
4608
4609 2018-07-20 Tom Tromey <tom@tromey.com>
4610
4611 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4612 initialization.
4613 (buildsym_compunit): Add new constructor.
4614 (struct buildsym_compunit) <get_last_source_file, finish_block,
4615 record_block_range, start_subfile, patch_subfile_names,
4616 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4617 set_last_source_start_addr, get_last_source_start_addr,
4618 get_local_using_directives, set_local_using_directives,
4619 get_global_using_directives, outermost_context_p,
4620 get_current_context_stack, get_context_stack_depth,
4621 get_current_subfile, get_local_symbols, get_file_symbols,
4622 get_global_symbols, record_debugformat, record_producer,
4623 push_context, pop_context, end_symtab_get_static_block,
4624 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4625 New public methods.
4626 <record_pending_block, finish_block_internal, make_blockvector,
4627 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4628 private methods.
4629 Update all users.
4630
4631 2018-05-22 Tom Tromey <tom@tromey.com>
4632
4633 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4634 parameter.
4635 (finish_block_internal): Update.
4636
4637 2018-07-20 Tom Tromey <tom@tromey.com>
4638
4639 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4640 parameter.
4641 (finish_block_internal): Update.
4642
4643 2018-07-20 Tom Tromey <tom@tromey.com>
4644
4645 * buildsym.h (EXTERN): Don't define or undef.
4646 * buildsym.c (EXTERN): Don't define.
4647
4648 2018-07-20 Tom Tromey <tom@tromey.com>
4649
4650 * buildsym.c: Remove TODO comment.
4651
4652 2018-07-20 Tom Tromey <tom@tromey.com>
4653
4654 * coffread.c (coff_symtab_read): Update.
4655 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4656 (xcoff_new_init): Update.
4657 * mipsread.c (mipscoff_new_init): Update.
4658 * mdebugread.c (mdebug_build_psymtabs): Update.
4659 * elfread.c (elf_new_init): Update.
4660 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4661 Update.
4662 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4663 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4664 (stabsect_build_psymtabs): Update.
4665 * buildsym.h (buildsym_init): Don't declare.
4666 * buildsym.c: Update comment.
4667 (prepare_for_building): Remove.
4668 (start_symtab, restart_symtab): Update.
4669 (reset_symtab_globals): Update comment.
4670 (buildsym_init): Remove.
4671
4672 2018-07-20 Tom Tromey <tom@tromey.com>
4673
4674 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4675 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4676 (read_enum_type, common_block_start, common_block_end)
4677 (cleanup_undefined_types_1, finish_global_stabs): Update.
4678 * mdebugread.c (psymtab_to_symtab_1): Update.
4679 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4680 (read_lexical_block_scope, new_symbol): Update.
4681 * dbxread.c (process_one_symbol): Update.
4682 * coffread.c (coff_symtab_read, process_coff_symbol)
4683 (coff_read_enum_type): Update.
4684 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4685 declare.
4686 (get_local_symbols, get_file_symbols, get_global_symbols): New
4687 functions.
4688 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4689 m_global_symbols.
4690 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4691 (~scoped_free_pendings): Update.
4692 (finish_block, prepare_for_building, reset_symtab_globals)
4693 (end_symtab_get_static_block, end_symtab_with_blockvector)
4694 (augment_type_symtab, push_context): Update.
4695 (get_local_symbols, get_file_symbols, get_global_symbols): New
4696 functions.
4697 (buildsym_init): Update.
4698
4699 2018-07-20 Tom Tromey <tom@tromey.com>
4700
4701 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4702 (process_full_type_unit): Likewise.
4703 (dwarf2_start_symtab): Set list_in_scope.
4704
4705 2018-07-20 Tom Tromey <tom@tromey.com>
4706
4707 * dwarf2read.c (process_psymtab_comp_unit_reader)
4708 (build_type_psymtabs_reader): Do not set list_in_scope.
4709
4710 2018-07-20 Tom Tromey <tom@tromey.com>
4711
4712 * buildsym.c (free_pendings): Remove.
4713 (add_symbol_to_list, scoped_free_pendings)
4714 (finish_block_internal, buildsym_init): Update.
4715
4716 2018-07-20 Tom Tromey <tom@tromey.com>
4717
4718 * xcoffread.c (read_xcoff_symtab): Update.
4719 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4720 Update.
4721 * dbxread.c (process_one_symbol): Update.
4722 * coffread.c (coff_symtab_read): Update.
4723 * buildsym.h (finish_block): Update.
4724 * buildsym.c (finish_block): Remove "listhead" argument.
4725 (end_symtab_get_static_block): Update.
4726
4727 2018-07-20 Tom Tromey <tom@tromey.com>
4728
4729 * buildsym.h (class scoped_free_pendings): Remove constructor.
4730 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4731 method.
4732 <m_pending_block_obstack, m_pending_blocks>: New members.
4733 (pending_block_obstack, pending_blocks): Remove.
4734 (scoped_free_pendings::scoped_free_pendings): Default.
4735 (~scoped_free_pendings): Update.
4736 (free_pending_blocks): Remove.
4737 (finish_block_internal, record_pending_block, make_blockvector)
4738 (end_symtab_get_static_block, augment_type_symtab, push_context)
4739 (buildsym_init): Update.
4740
4741 2018-07-20 Tom Tromey <tom@tromey.com>
4742
4743 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4744 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4745 members.
4746 (pending_addrmap, pending_addrmap_obstack)
4747 (pending_addrmap_interesting): Remove.
4748 (scoped_free_pendings, record_block_range, make_blockvector)
4749 (prepare_for_building, reset_symtab_globals, buildsym_init):
4750 Update.
4751
4752 2018-07-20 Tom Tromey <tom@tromey.com>
4753
4754 * xcoffread.c (process_linenos): Update.
4755 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4756 * mdebugread.c (psymtab_to_symtab_1): Update.
4757 * dwarf2read.c (setup_type_unit_groups)
4758 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4759 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4760 * dbxread.c (process_one_symbol): Update.
4761 * coffread.c (coff_symtab_read, enter_linenos)
4762 (process_coff_symbol): Update.
4763 * buildsym.h (current_subfile): Don't declare.
4764 (get_current_subfile): Declare.
4765 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4766 member.
4767 (start_subfile, free_buildsym_compunit, push_subfile)
4768 (prepare_for_building, start_symtab): Update.
4769 (get_current_subfile): New function.
4770
4771 2018-07-20 Tom Tromey <tom@tromey.com>
4772
4773 * coffread.c (coff_symtab_read): Update.
4774 * xcoffread.c (read_xcoff_symtab): Update.
4775 * dwarf2read.c (new_symbol): Update.
4776 (read_func_scope, read_lexical_block_scope): Update.
4777 * dbxread.c (process_one_symbol): Update.
4778 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4779 (outermost_context_p): Remove macro.
4780 (outermost_context_p, get_current_context_stack)
4781 (get_context_stack_depth): Declare.
4782 (pop_context): Return struct context_stack.
4783 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4784 member.
4785 (context_stack_size): Remove.
4786 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4787 (prepare_for_building, end_symtab_get_static_block)
4788 (augment_type_symtab, push_context): Update.
4789 (pop_context): Return struct context_stack.
4790 (outermost_context_p, get_current_context_stack)
4791 (get_context_stack_depth): New functions.
4792 (buildsym_init): Update.
4793
4794 2018-07-20 Tom Tromey <tom@tromey.com>
4795
4796 * rust-exp.y: Now a pure parser. Update all rules.
4797 (%union): Move earlier.
4798 (current_parser, work_obstack): Remove globals.
4799 (rust_parser, ~rust_parser): Update.
4800 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4801 lex_character, lex_number, lex_string, lex_identifier,
4802 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4803 convert_name, convert_params_to_expression,
4804 convert_ast_to_expression, ast_basic_type, ast_operation,
4805 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4806 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4807 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4808 ast_array_type, ast_slice_type, ast_reference_type,
4809 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4810 (rust_parse): Update.
4811 (rustyyerror, rustyylex): Add parser parameter.
4812 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4813 (rust_lex_stringish_test, rust_lex_test_sequence)
4814 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4815 (rust_lex_test_push_back, rust_lex_tests): Update.
4816
4817 2018-07-19 Pedro Alves <palves@redhat.com>
4818
4819 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4820 gdb::unique_xmalloc_ptr.
4821 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4822 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4823 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4824 copy-initialization.
4825 * guile/scm-pretty-print.c (ppscm_print_children): Use
4826 gdb::unique_xmalloc_ptr instead of cleanups.
4827 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4828 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4829 gdb::unique_xmalloc_ptr.
4830 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4831 Adjust to use gdb::unique_xmalloc_ptr.
4832 * guile/scm-utils.c (extract_arg): Adjust.
4833 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4834 gdb::unique_xmalloc_ptr instead of a cleanup.
4835
4836 2018-07-19 Tom Tromey <tom@tromey.com>
4837
4838 * utils.c (do_value_free_to_mark)
4839 (make_cleanup_value_free_to_mark): Remove.
4840 * utils.h (make_cleanup_value_free_to_mark): Remove.
4841
4842 2018-07-19 Pedro Alves <palves@redhat.com>
4843
4844 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4845 forwarding reference.
4846
4847 2018-07-18 Pedro Alves <palves@redhat.com>
4848
4849 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4850 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4851 cleanup.
4852
4853 2018-07-18 Pedro Alves <palves@redhat.com>
4854
4855 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4856 exceptions.
4857 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4858 (gdbscm_wrap): New.
4859 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4860 directly instead of a cleanup.
4861 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4862 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4863 (vlscm_binop_gdbthrow): New, factored out from ...
4864 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4865 (vlscm_rich_compare): Use gdbscm_wrap.
4866 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4867 instead of a cleanup.
4868 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4869 cleanup.
4870 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4871 Use xfree directly instead of a cleanup.
4872 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4873 Adjust to use gdbscm_wrap and scoped_value_mark.
4874 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4875 (gdbscm_value_address, gdbscm_value_dereference)
4876 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4877 scoped_value_mark.
4878 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4879 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4880 scoped_value_mark.
4881 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4882 gdbscm_wrap and scoped_value_mark.
4883 (gdbscm_value_to_string): Use xfree directly instead of a
4884 cleanup. Move 'buffer' unique_ptr to TRY scope.
4885 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4886 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4887 scoped_value_mark.
4888 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4889 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4890 scoped_value_mark.
4891 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4892 gdbscm_wrap.
4893
4894 2018-07-18 Tom de Vries <tdevries@suse.de>
4895
4896 * findvar.c (default_read_var_value): Also resolve dynamic type for
4897 LOC_OPTIMIZED_OUT vars.
4898
4899 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4900
4901 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4902 decoding.
4903
4904 2018-07-17 Tom Tromey <tom@tromey.com>
4905
4906 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4907 (compute_enum_list, pascm_set_param_value_x)
4908 (gdbscm_parameter_value): Update.
4909 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4910 (gdbscm_scm_to_host_string): Update.
4911 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4912 Update.
4913 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4914 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4915 * guile/scm-string.c (gdbscm_scm_to_string): Return
4916 unique_xmalloc_ptr.
4917 (gdbscm_scm_to_host_string): Likewise.
4918
4919 2018-07-17 Tom Tromey <tom@tromey.com>
4920
4921 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4922 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4923 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4924 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4925 unique_xmalloc_ptr.
4926
4927 2018-07-17 Tom Tromey <tom@tromey.com>
4928
4929 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4930 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4931 Update.
4932 * guile/scm-cmd.c (cmdscm_function): Update.
4933 * guile/scm-pretty-print.c
4934 (ppscm_print_exception_unless_memory_error): Update.
4935 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4936 Return unique_xmalloc_ptr.
4937
4938 2018-07-17 Tom Tromey <tom@tromey.com>
4939
4940 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4941 Use string_printf.
4942
4943 2018-07-17 Jim Wilson <jimw@sifive.com>
4944
4945 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4946 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4947 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4948 unecessary braces after EF_RISCV_RVC test. Delete call to
4949 set_gdbarch_decr_pc_after_break.
4950
4951 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4952 RISCV_LAST_FP_REGNUM + 1.
4953 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4954
4955 2018-07-17 Tom Tromey <tom@tromey.com>
4956
4957 * configure.ac: Remove --disable-gdbcli.
4958 * configure: Rebuild.
4959 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4960 (SUBDIR_CLI_CFLAGS): Remove.
4961 (SFILES): Use SUBDIR_CLI_SRCS.
4962 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4963
4964 2018-07-17 Tom Tromey <tom@tromey.com>
4965
4966 PR gdb/18624:
4967 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4968
4969 2018-07-16 Jim Wilson <jimw@sifive.com>
4970
4971 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4972
4973 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4974
4975 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4976 variable.
4977 (libunwind_frame_sniffer): Likewise.
4978 (libunwind_frame_prev_register): Likewise.
4979 (libunwind_sigtramp_frame_sniffer): Likewise.
4980 * ia64-tdep.c (ia64_access_reg): Likewise.
4981 (ia64_access_rse_reg): Likewise.
4982 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4983 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4984
4985 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4986
4987 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4988
4989 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4990
4991 * remote-sim.c (gdbsim_target::close,
4992 gdbsim_target::mourn_inferior): Remove unused variables.
4993
4994 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4995
4996 * ia64-tdep.c (ktab_buf): New global.
4997 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4998 (get_kernel_table): Adjust.
4999
5000 2018-07-16 Tom Tromey <tom@tromey.com>
5001
5002 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5003 * dwarf2read.c (using_directives, new_symbol): Use
5004 outermost_context_p.
5005 * dbxread.c (process_one_symbol): Use outermost_context_p.
5006 * coffread.c (coff_symtab_read): Use outermost_context_p.
5007
5008 2018-07-16 Tom Tromey <tom@tromey.com>
5009
5010 * dwarf2read.c (using_directives, read_func_scope)
5011 (read_lexical_block_scope): Update.
5012 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5013 * buildsym.h (local_using_directives, global_using_directives):
5014 Don't declare.
5015 (get_local_using_directives, set_local_using_directives)
5016 (get_global_using_directives): Declare.
5017 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5018 m_global_using_directives>: New members.
5019 (finish_block_internal, prepare_for_building)
5020 (reset_symtab_globals, end_symtab_get_static_block)
5021 (push_context): Update.
5022 (get_local_using_directives, set_local_using_directives)
5023 (get_global_using_directives): New functions.
5024 (buildsym_init): Update.
5025
5026 2018-07-16 Tom Tromey <tom@tromey.com>
5027
5028 * xcoffread.c (xcoff_initial_scan): Don't call
5029 free_pending_blocks.
5030 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5031 * buildsym.h (class scoped_free_pendings): Add constructor.
5032 (free_pending_blocks): Don't declare.
5033 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5034 (free_pending_blocks): Now static.
5035
5036 2018-07-16 Tom Tromey <tom@tromey.com>
5037
5038 * buildsym.h (push_subfile, pop_subfile): Update declarations.
5039 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5040 member.
5041 (struct subfile_stack): Remove.
5042 (subfile_stack): Remove.
5043 (push_subfile, pop_subfile, buildsym_init): Update.
5044
5045 2018-07-16 Tom Tromey <tom@tromey.com>
5046
5047 * buildsym.c (push_subfile): Use gdb_assert.
5048 (pop_subfile): Use gdb_assert.
5049
5050 2018-07-16 Tom Tromey <tom@tromey.com>
5051
5052 * buildsym.h (merge_symbol_lists): Remove.
5053 * buildsym.c (merge_symbol_lists): Remove.
5054
5055 2018-07-16 Tom Tromey <tom@tromey.com>
5056
5057 * stabsread.c (scan_file_globals): Update comment.
5058 * stabsread.h (scan_file_globals): Move from buildsym.h.
5059 * buildsym.h (scan_file_globals): Move to stabsread.h.
5060
5061 2018-07-16 Tom Tromey <tom@tromey.com>
5062
5063 * xcoffread.c (xcoff_new_init): Update.
5064 * mipsread.c (mipscoff_new_init): Update.
5065 * mdebugread.c (mdebug_build_psymtabs): Update.
5066 * elfread.c (elf_new_init): Update.
5067 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5068 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5069 * buildsym.h (buildsym_new_init): Don't declare.
5070 * buildsym.c (buildsym_new_init): Remove.
5071
5072 2018-07-16 Tom Tromey <tom@tromey.com>
5073
5074 * stabsread.h (within_function): Move from buildsym.h.
5075 * stabsread.c (start_stabs): Clear within_function.
5076 * coffread.c (coff_start_symtab): Clear within_function.
5077 * buildsym.h (within_function): Move to stabsread.h.
5078 * buildsym.c (prepare_for_building): Update.
5079
5080 2018-07-16 Tom Tromey <tom@tromey.com>
5081
5082 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5083 * dwarf2read.c (dwarf2_start_symtab): Don't set
5084 processing_gcc_compilation.
5085 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5086
5087 2018-07-16 Tom Tromey <tom@tromey.com>
5088
5089 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5090 (next_symbol_text_func): Move from buildsym.h.
5091 * stabsread.c (hashname): Move from buildsym.c.
5092 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5093 (next_symbol_text_func, hashname): Move to stabsread.h.
5094 * buildsym.c: Don't include bcache.h
5095 (hashname): Move to stasbread.c.
5096
5097 2018-07-16 Tom Tromey <tom@tromey.com>
5098
5099 * buildsym.h (context_stack_size): Don't declare.
5100 * buildsym.c (context_stack_size): New global.
5101
5102 2018-07-16 Tom Tromey <tom@tromey.com>
5103
5104 * dbxread.c (processing_acc_compilation): New global.
5105 * buildsym.h (processing_acc_compilation): Don't declare.
5106
5107 2018-07-16 Tom Tromey <tom@tromey.com>
5108
5109 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5110 * dbxread.c (read_ofile_symtab): Update.
5111 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5112 * buildsym.h (last_source_start_addr): Remove.
5113 (set_last_source_start_addr, get_last_source_start_addr):
5114 Declare.
5115 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5116 parameter.
5117 (struct buildsym_compunit) <m_last_source_start_addr>: New
5118 member.
5119 (prepare_for_building): Remove start_addr parameter.
5120 (start_symtab, restart_symtab, end_symtab_get_static_block)
5121 (end_symtab_with_blockvector): Update.
5122 (set_last_source_start_addr, get_last_source_start_addr): New
5123 functions.
5124
5125 2018-07-16 Tom Tromey <tom@tromey.com>
5126
5127 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
5128 member.
5129 (have_line_numbers): Remove.
5130 (record_line, prepare_for_building, end_symtab_get_static_block)
5131 (augment_type_symtab): Update.
5132
5133 2018-07-16 Tom Tromey <tom@tromey.com>
5134
5135 * buildsym.c (~buildsym_compunit): Free the macro table.
5136 (struct buildsym_compunit) <get_macro_table, release_macros>: New
5137 methods.
5138 <m_pending_macros>: New member.
5139 (pending_macros): Remove.
5140 (~scoped_free_pendings, get_macro_table, prepare_for_building)
5141 (reset_symtab_globals, end_symtab_get_static_block)
5142 (end_symtab_with_blockvector, augment_type_symtab)
5143 (buildsym_init): Update.
5144
5145 2018-07-16 Tom Tromey <tom@tromey.com>
5146
5147 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
5148 parameter.
5149 (buildsym_compunit::set_last_source_file): New method.
5150 <m_last_source_file>: New member.
5151 (prepare_for_building): Remove "name" parameter.
5152 (start_symtab, restart_symtab, reset_symtab_globals): Update.
5153 (last_source_file): Remove.
5154 (set_last_source_file, get_last_source_file): Update.
5155
5156 2018-07-16 Tom Tromey <tom@tromey.com>
5157
5158 * buildsym.c (prepare_for_building): Add assert.
5159
5160 2018-07-16 Tom Tromey <tom@tromey.com>
5161
5162 * buildsym.c (~buildsym_compunit): Update.
5163 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
5164 (start_subfile, patch_subfile_names)
5165 (end_symtab_with_blockvector): Update.
5166
5167 2018-07-16 Tom Tromey <tom@tromey.com>
5168
5169 * buildsym.c (struct buildsym_compunit): Add constructor,
5170 destructor, initializers.
5171 (start_buildsym_compunit): Remove.
5172 (free_buildsym_compunit): Use "delete".
5173 (start_symtab, restart_symtab): Use "new".
5174
5175 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
5176
5177 * symfile.c (set_objfile_default_section_offset): Remove struct
5178 keyword.
5179
5180 2018-07-14 Stafford Horne <shorne@gmail.com>
5181
5182 * (Responsible Maintainers): Add myself as or1k maintainer.
5183
5184 2018-07-13 Tom Tromey <tom@tromey.com>
5185
5186 * symfile.c (set_objfile_default_section_offset): Use extra braces
5187 around initializer.
5188
5189 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5190
5191 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
5192 non-branching basr.
5193
5194 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5195
5196 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5197 unittests/cli-utils-selftests.c
5198 * unittests/cli-utils-selftests.c: New file.
5199
5200 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5201
5202 * NEWS: Mention new commands. Mention change to 'thread apply'.
5203
5204 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5205
5206 * thread.c (thr_try_catch_cmd): New function.
5207 (thread_apply_all_command): Handle qcs flags.
5208 (thread_apply_command): Handle qcs flags.
5209 (taas_command): New function.
5210 (tfaas_command): New function.
5211 (_initialize_thread): Update to setup the new commands 'taas
5212 and 'tfaas'. Change doc string for 'thread apply'.
5213
5214 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5215
5216 * stack.c: (trailing_outermost_frame): New function, mostly
5217 extracted from backtrace_command_1.
5218 (leading_innermost_frame): New function.
5219 (backtrace_command_1): Update to call trailing_outermost_frame.
5220 (frame_apply_command_count): New function.
5221 (frame_apply_level_command): New function.
5222 (frame_apply_all_command): New function.
5223 (frame_apply_command): New function.
5224 (faas_command): New function.
5225 (frame_cmd_list): New variable.
5226 (_initialize_stack): Update to setup the new commands 'frame apply'
5227 and 'faas'.
5228
5229 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5230
5231 * cli-utils.c (number_or_range_parser::get_number): Only handle
5232 numbers or convenience var as numbers.
5233 (parse_flags): New function.
5234 (parse_flags_qcs): New function.
5235 (number_or_range_parser::finished): Ensure parsing end is detected
5236 before end of string.
5237 * cli-utils.h (parse_flags): New function.
5238 (parse_flags_qcs): New function.
5239 (number_or_range_parser): Remove m_finished bool.
5240 (number_or_range_parser::skip_range): Set m_in_range to false.
5241
5242 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
5243
5244 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
5245 on Windows.
5246
5247 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5248 Jan Kratochvil <jan.kratochvil@redhat.com>
5249 Paul Fertser <fercerpav@gmail.com>
5250 Tsutomu Seki <sekiriki@gmail.com>
5251 Pedro Alves <palves@redhat.com>
5252
5253 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5254 'unittests/parse-connection-spec-selftests.c'.
5255 (COMMON_SFILES): Add 'common/netstuff.c'.
5256 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
5257 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
5258 * common/netstuff.c: New file.
5259 * common/netstuff.h: New file.
5260 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
5261 (wait_for_connect): Update comment. New parameter
5262 'gdb::optional<int> sock' instead of 'struct serial *scb'.
5263 Use 'sock' directly instead of 'scb->fd'.
5264 (try_connect): New function, with code from 'net_open'.
5265 (net_open): Rewrite main loop to deal with multiple
5266 sockets/addresses. Handle IPv6-style hostnames; implement
5267 support for IPv6 connections.
5268 * unittests/parse-connection-spec-selftests.c: New file.
5269
5270 2018-07-11 Pedro Alves <palves@redhat.com>
5271
5272 PR gdb/23377
5273 * remote.c (remote_target::remote_detach_pid): Call
5274 set_current_process.
5275
5276 2018-07-11 Pedro Alves <palves@redhat.com>
5277
5278 * h8300-tdep.c (h8300_gdbarch_init): Remove
5279 set_gdbarch_ecoff_reg_to_regnum calls.
5280
5281 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5282
5283 PR c++/23373
5284 * c-typeprint.c (c_type_print_base_struct_union): Don't print
5285 offsets/sizes for static members of a class/struct.
5286
5287 2018-07-11 Alan Hayward <alan.hayward@arm.com>
5288
5289 * target-descriptions.c (tdesc_register_bitsize): Rename.
5290 * target-descriptions.h (tdesc_register_bitsize): Likewise.
5291 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
5292 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
5293
5294 2018-07-10 Tom Tromey <tom@tromey.com>
5295
5296 * breakpoint.c (moribund_locations): Now static and a
5297 std::vector.
5298 (breakpoint_init_inferior, moribund_breakpoint_here_p)
5299 (build_bpstat_chain, update_global_location_list)
5300 (breakpoint_retire_moribund): Update.
5301 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
5302 VEC.
5303
5304 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5305
5306 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
5307 (riscv_register_reggroup_p): Use new function, remove unneeded
5308 parenthesis.
5309 (riscv_push_dummy_call): Extend assert to compare against xlen or
5310 flen based on register type.
5311
5312 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5313
5314 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
5315
5316 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5317
5318 * remote.c (show_hardware_watchpoint_limit): New function.
5319 (show_hardware_watchpoint_length_limit): New function.
5320 (show_hardware_breakpoint_limit): New function.
5321 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
5322 where appropriate, update help text.
5323
5324 2018-07-09 Tom Tromey <tom@tromey.com>
5325
5326 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
5327 (CLIBS): Don't mention NAT_CLIBS.
5328
5329 2018-07-09 Tom Tromey <tom@tromey.com>
5330
5331 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
5332 (LIBGDB_OBS, clean mostlyclean): Update.
5333 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
5334
5335 2018-07-09 Tom Tromey <tom@tromey.com>
5336
5337 * Makefile.in (%.c: %.y): Use ECHO_YACC.
5338 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
5339 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
5340
5341 2018-07-09 Tom Tromey <tom@tromey.com>
5342
5343 * Makefile.in (ALLDEPFILES): Remove exec.c.
5344 (COMMON_OBS): Remove exec.o.
5345 (COMMON_SFILES): Add exec.c.
5346
5347 2018-07-09 Tom Tromey <tom@tromey.com>
5348
5349 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
5350
5351 2018-07-09 Tom Tromey <tom@tromey.com>
5352
5353 * Makefile.in (clean mostlyclean): Remove stamp-version.
5354 (version.c): Depend on stamp-version.
5355 (stamp-version): New rule, from version.c rule.
5356
5357 2018-07-09 Tom Tromey <tom@tromey.com>
5358
5359 * Makefile.in (init.c): Depend on stamp-init.
5360 (stamp-init): New rule, from init.c rule.
5361 (clean mostlyclean): Remove stamp-init.
5362
5363 2018-07-09 Tom Tromey <tom@tromey.com>
5364
5365 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
5366 SUBDIR_GCC_COMPILE_SRCS.
5367
5368 2018-07-09 Tom Tromey <tom@tromey.com>
5369
5370 * Makefile.in (init.c): Remove some unused sed rules.
5371
5372 2018-07-09 Tom Tromey <tom@tromey.com>
5373
5374 * Makefile.in (TSOBS): Remove.
5375 (INIT_FILES): Update.
5376 (LIBGDB_OBS): Update.
5377 (COMMON_SFILES): Add inflow.c.
5378 (SFILES): Remove inflow.c.
5379
5380 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5381
5382 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
5383
5384 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
5385
5386 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
5387 get_saveloc_name, is_signal_frame_name, step_name,
5388 init_remote_name, create_addr_space_name,
5389 destroy_addr_space_name, search_unwind_table_name,
5390 find_dyn_list_name): Constify.
5391
5392 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
5393
5394 * darwin-nat.c (darwin_pthread_kill): New function.
5395 (darwin_resume_thread): Use darwin_pthread_kill.
5396
5397 2018-07-05 Tom de Vries <tdevries@suse.de>
5398
5399 * macroexp.c (macro_buffer) <operator=>: New member function.
5400
5401 2018-07-04 Tom Tromey <tom@tromey.com>
5402
5403 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
5404
5405 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
5406
5407 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
5408 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
5409 * maint.c: Likewise.
5410 * top.c: Likewise.
5411
5412 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5413
5414 * NEWS: Create a new section for the next release branch.
5415 Rename the section of the current branch, now that it has
5416 been cut.
5417
5418 2018-07-04 Joel Brobecker <brobecker@adacore.com>
5419
5420 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
5421 * version.in: Bump version to 8.2.50.DATE-git.
5422
5423 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5424 Pedro Alves <palves@redhat.com>
5425
5426 * linux-nat.c (linux_init_ptrace): Rename to ...
5427 (linux_init_ptrace_procfs): ... this. Call
5428 linux_proc_init_warnings.
5429 (linux_nat_target::post_attach)
5430 (linux_nat_target::post_startup_inferior): Adjust.
5431 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
5432 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
5433
5434 2018-07-04 Tom de Vries <tdevries@suse.de>
5435
5436 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
5437 check ...
5438 (read_comp_unit_head): ... here.
5439
5440 2018-07-03 Tom Tromey <tom@tromey.com>
5441
5442 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
5443 (stop_tracing, tstatus_command)
5444 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
5445 (print_one_static_tracepoint_marker): Update.
5446 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
5447 std::vector.
5448 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
5449 VEC.
5450 (all_tracepoints, static_tracepoints_here): Return std::vector.
5451
5452 2018-07-03 Tom Tromey <tom@tromey.com>
5453
5454 * common/ptid.c (ptid_equal): Remove.
5455 * common/ptid.h (ptid_equal): Don't declare.
5456 * ada-tasks.c: Update.
5457 * breakpoint.c: Update.
5458 * common/agent.c: Update.
5459 * corelow.c: Update.
5460 * darwin-nat-info.c: Update.
5461 * darwin-nat.c: Update.
5462 * dcache.c: Update.
5463 * dtrace-probe.c: Update.
5464 * dummy-frame.c: Update.
5465 * fbsd-nat.c: Update.
5466 * frame.c: Update.
5467 * gdbthread.h: Update.
5468 * gnu-nat.c: Update.
5469 * go32-nat.c: Update.
5470 * inf-loop.c: Update.
5471 * inf-ptrace.c: Update.
5472 * infcall.c: Update.
5473 * infcmd.c: Update.
5474 * inflow.c: Update.
5475 * infrun.c: Update.
5476 * linux-fork.c: Update.
5477 * linux-nat.c: Update.
5478 * linux-thread-db.c: Update.
5479 * mi/mi-cmd-var.c: Update.
5480 * mi/mi-interp.c: Update.
5481 * mi/mi-main.c: Update.
5482 * nto-procfs.c: Update.
5483 * ppc-linux-tdep.c: Update.
5484 * procfs.c: Update.
5485 * python/py-inferior.c: Update.
5486 * python/py-record-btrace.c: Update.
5487 * python/py-record.c: Update.
5488 * ravenscar-thread.c: Update.
5489 * regcache.c: Update.
5490 * remote-sim.c: Update.
5491 * remote.c: Update.
5492 * sol-thread.c: Update.
5493 * solib.c: Update.
5494 * target.c: Update.
5495 * tui/tui-stack.c: Update.
5496 * varobj.c: Update.
5497 * windows-nat.c: Update.
5498 * windows-tdep.c: Update.
5499
5500 2018-07-03 Tom Tromey <tom@tromey.com>
5501
5502 * common/ptid.c (ptid_match): Remove.
5503 * common/ptid.h (ptid_match): Don't declare.
5504 * fbsd-nat.c: Update.
5505 * infcmd.c: Update.
5506 * infrun.c: Update.
5507 * linux-nat.c: Update.
5508 * record-btrace.c: Update.
5509 * regcache.c: Update.
5510 * remote.c: Update.
5511
5512 2018-07-03 Tom Tromey <tom@tromey.com>
5513
5514 * common/ptid.c (ptid_tid_p): Remove.
5515 * common/ptid.h (ptid_tid_p): Don't declare.
5516 * sol-thread.c: Update.
5517
5518 2018-07-03 Tom Tromey <tom@tromey.com>
5519
5520 * common/ptid.c (ptid_lwp_p): Remove.
5521 * common/ptid.h (ptid_lwp_p): Don't declare.
5522 * fbsd-nat.c: Update.
5523 * linux-nat.c: Update.
5524 * nat/linux-procfs.c: Update.
5525 * nat/x86-linux-dregs.c: Update.
5526 * sol-thread.c: Update.
5527
5528 2018-07-03 Tom Tromey <tom@tromey.com>
5529
5530 * common/ptid.c (ptid_is_pid): Remove.
5531 * common/ptid.h (ptid_is_pid): Don't declare.
5532 * infrun.c: Update.
5533 * linux-nat.c: Update.
5534 * mi/mi-interp.c: Update.
5535 * remote.c: Update.
5536 * thread.c: Update.
5537
5538 2018-07-03 Tom Tromey <tom@tromey.com>
5539
5540 * common/ptid.c (ptid_get_tid): Remove.
5541 * common/ptid.h (ptid_get_tid): Don't declare.
5542 * ada-tasks.c: Update.
5543 * aix-thread.c: Update.
5544 * bsd-uthread.c: Update.
5545 * darwin-nat.c: Update.
5546 * fbsd-nat.c: Update.
5547 * i386-darwin-nat.c: Update.
5548 * infrun.c: Update.
5549 * linux-tdep.c: Update.
5550 * nto-procfs.c: Update.
5551 * ppc-ravenscar-thread.c: Update.
5552 * python/py-infthread.c: Update.
5553 * ravenscar-thread.c: Update.
5554 * sol-thread.c: Update.
5555 * sparc-ravenscar-thread.c: Update.
5556 * windows-nat.c: Update.
5557
5558 2018-07-03 Tom Tromey <tom@tromey.com>
5559
5560 * common/ptid.c (ptid_get_lwp): Remove.
5561 * common/ptid.h (ptid_get_lwp): Don't declare.
5562 * aarch64-linux-nat.c: Update.
5563 * ada-tasks.c: Update.
5564 * aix-thread.c: Update.
5565 * amd64-linux-nat.c: Update.
5566 * arm-linux-nat.c: Update.
5567 * corelow.c: Update.
5568 * fbsd-nat.c: Update.
5569 * fbsd-tdep.c: Update.
5570 * gnu-nat.c: Update.
5571 * i386-cygwin-tdep.c: Update.
5572 * i386-gnu-nat.c: Update.
5573 * i386-linux-nat.c: Update.
5574 * ia64-linux-nat.c: Update.
5575 * inf-ptrace.c: Update.
5576 * infrun.c: Update.
5577 * linux-fork.c: Update.
5578 * linux-nat.c: Update.
5579 * linux-tdep.c: Update.
5580 * linux-thread-db.c: Update.
5581 * mips-linux-nat.c: Update.
5582 * nat/aarch64-linux-hw-point.c: Update.
5583 * nat/aarch64-linux.c: Update.
5584 * nat/linux-btrace.c: Update.
5585 * nat/linux-osdata.c: Update.
5586 * nat/linux-procfs.c: Update.
5587 * nat/x86-linux-dregs.c: Update.
5588 * obsd-nat.c: Update.
5589 * ppc-fbsd-nat.c: Update.
5590 * ppc-linux-nat.c: Update.
5591 * procfs.c: Update.
5592 * python/py-infthread.c: Update.
5593 * ravenscar-thread.c: Update.
5594 * remote.c: Update.
5595 * s390-linux-nat.c: Update.
5596 * sol-thread.c: Update.
5597 * sol2-tdep.c: Update.
5598 * spu-linux-nat.c: Update.
5599 * x86-linux-nat.c: Update.
5600 * xtensa-linux-nat.c: Update.
5601
5602 2018-07-03 Tom Tromey <tom@tromey.com>
5603
5604 * common/ptid.c (ptid_get_pid): Remove.
5605 * common/ptid.h (ptid_get_pid): Don't declare.
5606 * aarch64-linux-nat.c: Update.
5607 * ada-lang.c: Update.
5608 * aix-thread.c: Update.
5609 * alpha-bsd-nat.c: Update.
5610 * amd64-fbsd-nat.c: Update.
5611 * amd64-linux-nat.c: Update.
5612 * arm-linux-nat.c: Update.
5613 * arm-nbsd-nat.c: Update.
5614 * auxv.c: Update.
5615 * break-catch-syscall.c: Update.
5616 * breakpoint.c: Update.
5617 * bsd-uthread.c: Update.
5618 * corelow.c: Update.
5619 * ctf.c: Update.
5620 * darwin-nat.c: Update.
5621 * fbsd-nat.c: Update.
5622 * fbsd-tdep.c: Update.
5623 * gcore.c: Update.
5624 * gnu-nat.c: Update.
5625 * hppa-nbsd-nat.c: Update.
5626 * hppa-obsd-nat.c: Update.
5627 * i386-fbsd-nat.c: Update.
5628 * ia64-linux-nat.c: Update.
5629 * inf-ptrace.c: Update.
5630 * infcmd.c: Update.
5631 * inferior.c: Update.
5632 * inferior.h: Update.
5633 * inflow.c: Update.
5634 * infrun.c: Update.
5635 * linux-fork.c: Update.
5636 * linux-nat.c: Update.
5637 * linux-tdep.c: Update.
5638 * linux-thread-db.c: Update.
5639 * m68k-bsd-nat.c: Update.
5640 * mi/mi-interp.c: Update.
5641 * mi/mi-main.c: Update.
5642 * mips-linux-nat.c: Update.
5643 * mips-nbsd-nat.c: Update.
5644 * mips64-obsd-nat.c: Update.
5645 * nat/aarch64-linux-hw-point.c: Update.
5646 * nat/aarch64-linux.c: Update.
5647 * nat/linux-btrace.c: Update.
5648 * nat/linux-osdata.c: Update.
5649 * nat/linux-procfs.c: Update.
5650 * nat/x86-linux-dregs.c: Update.
5651 * nto-procfs.c: Update.
5652 * obsd-nat.c: Update.
5653 * ppc-linux-nat.c: Update.
5654 * ppc-nbsd-nat.c: Update.
5655 * ppc-obsd-nat.c: Update.
5656 * proc-service.c: Update.
5657 * procfs.c: Update.
5658 * python/py-inferior.c: Update.
5659 * python/py-infthread.c: Update.
5660 * ravenscar-thread.c: Update.
5661 * record.c: Update.
5662 * remote-sim.c: Update.
5663 * remote.c: Update.
5664 * rs6000-nat.c: Update.
5665 * s390-linux-nat.c: Update.
5666 * sh-nbsd-nat.c: Update.
5667 * sol-thread.c: Update.
5668 * sparc-nat.c: Update.
5669 * sparc64-tdep.c: Update.
5670 * spu-linux-nat.c: Update.
5671 * spu-tdep.c: Update.
5672 * target-debug.h: Update.
5673 * target.c: Update.
5674 * thread.c: Update.
5675 * tid-parse.c: Update.
5676 * tracefile-tfile.c: Update.
5677 * vax-bsd-nat.c: Update.
5678 * windows-nat.c: Update.
5679 * x86-linux-nat.c: Update.
5680 * x86-nat.c: Update.
5681
5682 2018-07-03 Tom Tromey <tom@tromey.com>
5683
5684 * common/ptid.c (pid_to_ptid): Remove.
5685 * common/ptid.h (pid_to_ptid): Don't declare.
5686 * aix-thread.c: Update.
5687 * arm-linux-nat.c: Update.
5688 * common/ptid.c: Update.
5689 * common/ptid.h: Update.
5690 * corelow.c: Update.
5691 * ctf.c: Update.
5692 * darwin-nat.c: Update.
5693 * fbsd-nat.c: Update.
5694 * fork-child.c: Update.
5695 * gnu-nat.c: Update.
5696 * go32-nat.c: Update.
5697 * inf-ptrace.c: Update.
5698 * infcmd.c: Update.
5699 * inferior.c: Update.
5700 * infrun.c: Update.
5701 * linux-fork.c: Update.
5702 * linux-nat.c: Update.
5703 * nat/aarch64-linux-hw-point.c: Update.
5704 * nat/fork-inferior.c: Update.
5705 * nat/x86-linux-dregs.c: Update.
5706 * nto-procfs.c: Update.
5707 * obsd-nat.c: Update.
5708 * procfs.c: Update.
5709 * progspace.c: Update.
5710 * remote.c: Update.
5711 * rs6000-nat.c: Update.
5712 * s390-linux-nat.c: Update.
5713 * sol-thread.c: Update.
5714 * spu-linux-nat.c: Update.
5715 * target.c: Update.
5716 * top.c: Update.
5717 * tracefile-tfile.c: Update.
5718 * windows-nat.c: Update.
5719
5720 2018-07-03 Tom Tromey <tom@tromey.com>
5721
5722 * common/ptid.h (ptid_build): Don't declare.
5723 * common/ptid.c (ptid_build): Remove.
5724 * aix-thread.c: Update.
5725 * bsd-kvm.c: Update.
5726 * bsd-uthread.c: Update.
5727 * common/agent.c: Update.
5728 * common/ptid.c: Update.
5729 * common/ptid.h: Update.
5730 * corelow.c: Update.
5731 * darwin-nat.c: Update.
5732 * fbsd-nat.c: Update.
5733 * gnu-nat.c: Update.
5734 * linux-fork.c: Update.
5735 * linux-nat.c: Update.
5736 * linux-thread-db.c: Update.
5737 * nat/linux-osdata.c: Update.
5738 * nat/linux-procfs.c: Update.
5739 * nto-procfs.c: Update.
5740 * obsd-nat.c: Update.
5741 * proc-service.c: Update.
5742 * procfs.c: Update.
5743 * ravenscar-thread.c: Update.
5744 * remote-sim.c: Update.
5745 * remote.c: Update.
5746 * sol-thread.c: Update.
5747 * target.c: Update.
5748 * windows-nat.c: Update.
5749
5750 2018-07-03 Tom Tromey <tom@tromey.com>
5751
5752 * infrun.c (follow_exec): Use exit_inferior_silent.
5753 * inferior.c (exit_inferior_num_silent): Remove.
5754 * inferior.h (exit_inferior_num_silent): Don't declare.
5755
5756 2018-07-03 Tom Tromey <tom@tromey.com>
5757
5758 PR cli/23340:
5759 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5760 inferior_ptid on error.
5761
5762 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5763 Simon Marchi <simon.marchi@polymtl.ca>
5764
5765 PR tdep/8282
5766 * disasm.h (gdb_disassembler): Add
5767 `m_disassembler_options_holder'. member
5768 * disasm.c (get_all_disassembler_options): New function.
5769 (gdb_disassembler::gdb_disassembler): Use it.
5770 (gdb_buffered_insn_length_init_dis): Likewise.
5771 (gdb_buffered_insn_length): Adjust accordingly.
5772 (set_disassembler_options): Handle options with arguments.
5773 (show_disassembler_options_sfunc): Likewise. Add a leading new
5774 line if showing options with descriptions.
5775 (disassembler_options_completer): Adapt to using the
5776 `disasm_options_and_args_t' structure.
5777 * mips-tdep.c (mips_disassembler_options): New variable.
5778 (mips_disassembler_options_o32): Likewise.
5779 (mips_disassembler_options_n32): Likewise.
5780 (mips_disassembler_options_n64): Likewise.
5781 (gdb_print_insn_mips): Don't set `disassembler_options'.
5782 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5783 functions.
5784 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5785 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5786 `gdbarch_disassembler_options_implicit' and
5787 `gdbarch_valid_disassembler_options'.
5788 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5789 `disasm_options_and_args_t' structure.
5790 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5791 method.
5792 (valid_disassembler_options): Switch from `disasm_options_t' to
5793 the `disasm_options_and_args_t' structure.
5794 * NEWS: Document `set disassembler-options' support for the MIPS
5795 target.
5796 * gdbarch.h: Regenerate.
5797 * gdbarch.c: Regenerate.
5798
5799 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5800
5801 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5802
5803 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5804
5805 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5806 parameter in call to amd64_target_description.
5807 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5808 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5809 (amd64fbsd_init_abi): Likewise.
5810 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5811 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5812 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5813 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5814
5815 2018-06-29 Pedro Alves <palves@redhat.com>
5816
5817 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5818 "segments" parameter.
5819 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5820 (_initialize_amd64_tdep): Update call to
5821 amd64_create_target_description.
5822 (amd64_target_description): Add "segments" parameter. Adjust
5823 the implementation to use it.
5824 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5825 call to amd64_create_target_description.
5826 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5827 * gdb/arch/amd64.h (amd64_create_target_description): Add
5828 "segments" register.
5829 * gdb/arch/amd64.c (amd64_create_target_description): Add
5830 "segments" parameter. Call create_feature_i386_64bit_segments
5831 only if SEGMENTS is true.
5832 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5833 call to amd64_create_target_description.
5834
5835 2018-06-29 Pedro Alves <palves@redhat.com>
5836
5837 * thread.c (thread_target_id_str): New, factored out from ...
5838 (print_thread_info_1): ... here. Use it to compute the max
5839 "Target Id" column width.
5840
5841 2018-06-29 Pedro Alves <palves@redhat.com>
5842
5843 * remote.c (remote_target::extra_thread_info): Delete
5844 'display_buf' and 'n' locals. from the cache, regardless of
5845 packet mechanims is in use. Use cache for qThreadExtra and qP
5846 methods too.
5847
5848 2018-06-29 Pedro Alves <palves@redhat.com>
5849
5850 * blockframe.c (find_pc_sect_containing_function): New function.
5851 * breakpoint.c (print_breakpoint_location): Don't call
5852 find_pc_sect_function.
5853 * linespec.c (create_sals_line_offset): Record the location's
5854 symbol in the sal.
5855 * linespec.c (convert_address_location_to_sals): Fill in sal's
5856 symbol with find_pc_sect_containing_function.
5857 * symtab.c (find_function_start_sal): Rename to ...
5858 (find_function_start_sal_1): ... this.
5859 (find_function_start_sal): Reimplement as wrapper around
5860 find_function_start_sal_1, and use
5861 find_pc_sect_containing_function to fill in the sal's symbol.
5862 (find_function_start_sal(symbol*, bool)): Adjust.
5863 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5864 comments.
5865 (find_pc_sect_containing_function): Declare.
5866
5867 2018-06-29 Pedro Alves <palves@redhat.com>
5868
5869 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5870 true if the the location has no symbol.
5871
5872 2018-06-28 Tom Tromey <tom@tromey.com>
5873
5874 * NEWS: Mention --enable-codesign.
5875 * silent-rules.mk (ECHO_SIGN): New variable.
5876 * configure.ac: Add --enable-codesign.
5877 * configure: Rebuild.
5878 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5879 (gdb$(EXEEXT)): Optionally invoke codesign.
5880
5881 2018-06-28 Pedro Alves <palves@redhat.com>
5882
5883 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5884 comments.
5885 (switch_to_thread_no_regs): Adjust comment.
5886 * infcmd.c (stop_pc): Delete.
5887 (post_create_inferior, info_program_command): Replace references
5888 to stop_pc with references to thread_info->suspend.stop_pc.
5889 * inferior.h (stop_pc): Delete declaration.
5890 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5891 (handle_inferior_event_1, handle_signal_stop)
5892 (process_event_stop_test, keep_going_stepped_thread)
5893 (handle_step_into_function, handle_step_into_function_backward)
5894 (print_stop_location): Replace references to stop_pc with
5895 references to thread_info->suspend.stop_pc.
5896 (struct infcall_suspend_state) <stop_pc>: Delete field.
5897 (save_infcall_suspend_state, restore_infcall_suspend_state):
5898 Remove references to inf_stat->stop_pc.
5899 * linux-fork.c (fork_load_infrun_state): Likewise.
5900 * record-btrace.c (record_btrace_set_replay): Likewise.
5901 * record-full.c (record_full_goto_entry): Likewise.
5902 * remote.c (print_one_stopped_thread): Likewise.
5903 * target.c (target_resume): Extend comment.
5904 * thread.c (set_executing_thread): New.
5905 (set_executing): Use it.
5906 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5907 Remove references to stop_pc.
5908
5909 2018-06-28 Pedro Alves <palves@redhat.com>
5910
5911 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5912 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5913
5914 2018-06-28 Tom Tromey <tom@tromey.com>
5915
5916 * coffread.c (coff_symfile_finish): Update.
5917 * xcoffread.c (xcoff_symfile_finish): Update.
5918 * elfread.c (elf_symfile_finish): Update.
5919 * symfile.h (dwarf2_free_objfile): Don't declare.
5920 * dwarf2read.c (_initialize_dwarf2_read): Use
5921 register_objfile_data_with_cleanup.
5922 (dwarf2_free_objfile): Now static. Change signature.
5923
5924 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5925
5926 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5927 option "-o" to add-symbol-file-load to add an offset to each
5928 section's load address.
5929 * symfile.c (set_objfile_default_section_offset): New function.
5930
5931 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5932
5933 * symfile.c (add_symbol_file_command): Make sure that sections
5934 with the same name are sorted in the same order.
5935
5936 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5937
5938 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5939 require the second argument. If omitted, load sections at the
5940 addresses specified in the file.
5941
5942 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5943
5944 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5945 (_initialize_symfile): Add option "-o" to symbol-file to add an
5946 offset to each section of the symbol file.
5947
5948 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5949
5950 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5951
5952 2018-06-27 Tom Tromey <tom@tromey.com>
5953
5954 * stack.c (_initialize_stack): Update "func" help text.
5955
5956 2018-06-27 Tom Tromey <tom@tromey.com>
5957
5958 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5959 std::vector.
5960 (unwind_infopy_str, pyuw_create_unwind_info)
5961 (unwind_infopy_add_saved_register, pyuw_sniffer)
5962 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5963 Update.
5964 (struct saved_reg): Add constructor.
5965 <value>: Now a gdbpy_ref<>.
5966
5967 2018-06-27 Tom Tromey <tom@tromey.com>
5968
5969 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5970
5971 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5972
5973 * gdb-gdb.py.in: Format using autopep8.
5974
5975 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5976
5977 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5978 (type_lookup_function): Recognize CORE_ADDR values.
5979
5980 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5981
5982 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5983 print tag_name.
5984
5985 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5986
5987 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5988 <__lt__>: Add.
5989
5990 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5991
5992 * gdb-gdb.py: Move to...
5993 * gdb-gdb.py.in: ... here.
5994 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5995 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5996 dependencies.
5997 (distclean): Remove gdb-gdb.py when cleaning.
5998 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5999 * configure: Re-generate.
6000
6001 2018-06-27 Pedro Alves <palves@redhat.com>
6002
6003 * proc-service.c (get_ps_regcache): New.
6004 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6005 (ps_lsetfpregs): Use it.
6006
6007 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
6008
6009 PR gdb/21695
6010 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
6011 (dwarf_decode_lines_1): Adjust.
6012
6013 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6014
6015 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6016 override.
6017 <info_proc>: Likewise.
6018
6019 2018-06-26 Joel Brobecker <brobecker@adacore.com>
6020
6021 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6022 to windows_fetch_one_register, and only handle the case of
6023 fetching one register. Move the code that reloads the context
6024 and iterates over all registers if R is negative to...
6025 (windows_nat_target::fetch_registers): ... here.
6026 (do_windows_store_inferior_registers): Rename to
6027 windows_store_one_register, and only handle the case of storing
6028 one register. Move the code that handles the case where r is
6029 negative to...
6030 (windows_nat_target::store_registers) ... here.
6031
6032 2018-06-26 Tom Tromey <tom@tromey.com>
6033
6034 PR rust/22574:
6035 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6036 * rust-lang.c (rust_print_struct_def): Add podata parameter.
6037 Update.
6038 (rust_internal_print_type): Add podata parameter.
6039 (rust_print_type): Update.
6040
6041 2018-06-26 Tom Tromey <tom@tromey.com>
6042
6043 * typeprint.h (struct print_offset_data) <update, finish,
6044 maybe_print_hole>: New methods.
6045 <indentation>: New constant.
6046 * typeprint.c (print_offset_data::indentation): Define.
6047 (print_offset_data::maybe_print_hole, print_offset_data::update)
6048 (print_offset_data::finish): Move from c-typeprint.c and rename.
6049 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6050 (print_spaces_filtered_with_print_options): Update.
6051 (c_print_type_union_field_offset, maybe_print_hole)
6052 (c_print_type_struct_field_offset): Move to typeprint.c and
6053 rename.
6054 (c_type_print_base_struct_union): Update.
6055
6056 2018-06-25 Pedro Alves <palves@redhat.com>
6057
6058 * gdbthread.h (thread_info_ref, delete_thread)
6059 (delete_thread_silent, first_thread_of_inferior)
6060 (any_thread_of_inferior, switch_to_thread)
6061 (enable_thread_stack_temporaries)
6062 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6063 (get_last_thread_stack_temporary)
6064 (value_in_thread_stack_temporaries, can_access_registers_thread):
6065 Spell out "struct thread_info" instead of just "thread_info".
6066 * inferior.h (notice_new_inferior): Likewise.
6067
6068 2018-06-25 Pedro Alves <palves@redhat.com>
6069
6070 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6071 pass thread_info pointer to delete_thread.
6072 (windows_nat_target::detach): Pass inferior pointer to
6073 detach_inferior.
6074 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6075 delete_thread.
6076 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6077 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6078 and pass a thread_info pointer to delete_thread.
6079 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6080 pass thread_info pointer to delete_thread.
6081 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6082 delete_thread_silent call.
6083 * procfs.c (procfs_target::detach): Pass inferior pointer to
6084 detach_inferior.
6085 (procfs_target::wait): Pass thread_info pointer to delete_thread.
6086 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6087 delete_thread_silent call.
6088 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6089 pass thread_info pointer to delete_thread.
6090 (windows_nat_target::detach): Pass inferior pointer to
6091 delete_inferior.
6092
6093 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6094
6095 * regcache.c (readable_regcache::read_part): Fix asserts.
6096 (reg_buffer::raw_collect_part): New function.
6097 (regcache::write_part): Fix asserts.
6098 (reg_buffer::raw_supply_part): New function.
6099 (regcache::transfer_regset_register): New helper function.
6100 (regcache::transfer_regset): Call new functions.
6101 (regcache_supply_regset): Use gdb_byte*.
6102 (regcache::supply_regset): Likewise.
6103 (regcache_collect_regset): Likewise.
6104 (regcache::collect_regset): Likewise.
6105 * regcache.h (reg_buffer::raw_collect_part): New declaration.
6106 (reg_buffer::raw_supply_part): Likewise.
6107 (regcache::transfer_regset_register): Likewise.
6108 (regcache::transfer_regset): Use gdb_byte*.
6109
6110 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6111
6112 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6113
6114 2018-06-21 Pedro Alves <palves@redhat.com>
6115
6116 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6117 instead of a ptid_t. All callers adjusted.
6118 * ada-tasks.c (ada_get_task_number): Likewise. All callers
6119 adjusted.
6120 (print_ada_task_info, display_current_task_id, task_command_1):
6121 Adjust.
6122 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
6123 inferior_thread.
6124 (breakpoint_kind): Adjust.
6125 (remove_breakpoints_pid): Rename to ...
6126 (remove_breakpoints_inf): ... this. Adjust to take an inferior
6127 pointer. All callers adjusted.
6128 (bpstat_clear_actions): Use inferior_thread.
6129 (get_bpstat_thread): New.
6130 (bpstat_do_actions): Use it.
6131 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
6132 to take a thread_info pointer. All callers adjusted.
6133 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
6134 (breakpoint_re_set_thread): Use inferior_thread.
6135 * breakpoint.h (struct inferior): Forward declare.
6136 (bpstat_stop_status): Update.
6137 (remove_breakpoints_pid): Delete.
6138 (remove_breakpoints_inf): New.
6139 * bsd-uthread.c (bsd_uthread_target::wait)
6140 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
6141 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
6142 (maint_btrace_packet_history_cmd)
6143 (maint_btrace_clear_packet_history_cmd): Adjust.
6144 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
6145 inferior_thread.
6146 * cli/cli-interp.c: Include "inferior.h".
6147 * common/refcounted-object.h (struct
6148 refcounted_object_ref_policy): New.
6149 * compile/compile-object-load.c: Include gdbthread.h.
6150 (store_regs): Use inferior_thread.
6151 * corelow.c (core_target::close): Use current_inferior.
6152 (core_target_open): Adjust to use first_thread_of_inferior and use
6153 the current inferior.
6154 * ctf.c (ctf_target::close): Adjust to use current_inferior.
6155 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
6156 <thread>: ... this new field. All references adjusted.
6157 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
6158 Take a thread_info pointer instead of a ptid_t.
6159 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
6160 (dummy_frame_discard, register_dummy_frame_dtor): Take a
6161 thread_info pointer instead of a ptid_t.
6162 * elfread.c: Include "inferior.h".
6163 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
6164 Use inferior_thread.
6165 * eval.c (evaluate_subexp): Likewise.
6166 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
6167 inferior_thread.
6168 * gdb_proc_service.h (struct thread_info): Forward declare.
6169 (struct ps_prochandle) <ptid>: Delete, replaced by ...
6170 <thread>: ... this new field. All references adjusted.
6171 * gdbarch.h, gdbarch.c: Regenerate.
6172 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
6173 'thread' parameter. All implementations and callers adjusted.
6174 * gdbthread.h (thread_info) <set_running>: New method.
6175 (delete_thread, delete_thread_silent): Take a thread_info pointer
6176 instead of a ptid.
6177 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
6178 (first_thread_of_process): Delete, replaced by ...
6179 (first_thread_of_inferior): ... this new function. All callers
6180 adjusted.
6181 (any_live_thread_of_process): Delete, replaced by ...
6182 (any_live_thread_of_inferior): ... this new function. All callers
6183 adjusted.
6184 (switch_to_thread, switch_to_no_thread): Declare.
6185 (is_executing): Delete.
6186 (enable_thread_stack_temporaries): Update comment.
6187 <enable_thread_stack_temporaries>: Take a thread_info pointer
6188 instead of a ptid_t. Incref the thread.
6189 <~enable_thread_stack_temporaries>: Decref the thread.
6190 <m_ptid>: Delete
6191 <m_thr>: New.
6192 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6193 (get_last_thread_stack_temporary)
6194 (value_in_thread_stack_temporaries, can_access_registers_thread):
6195 Take a thread_info pointer instead of a ptid_t. All callers
6196 adjusted.
6197 * infcall.c (get_call_return_value): Use inferior_thread.
6198 (run_inferior_call): Work with thread pointers instead of ptid_t.
6199 (call_function_by_hand_dummy): Work with thread pointers instead
6200 of ptid_t. Use thread_info_ref.
6201 * infcmd.c (proceed_thread_callback): Access thread's state
6202 directly.
6203 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
6204 access thread's state directly.
6205 (continue_command): Use inferior_thread.
6206 (info_program_command): Use find_thread_ptid and access thread
6207 state directly.
6208 (proceed_after_attach_callback): Use thread state directly.
6209 (notice_new_inferior): Take a thread_info pointer instead of a
6210 ptid_t. All callers adjusted.
6211 (exit_inferior): Take an inferior pointer instead of a pid. All
6212 callers adjusted.
6213 (exit_inferior_silent): New.
6214 (detach_inferior): Delete.
6215 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
6216 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
6217 (detach_inferior_command, kill_inferior_command): Use
6218 find_inferior_id instead of valid_gdb_inferior_id and
6219 gdb_inferior_id_to_pid.
6220 (inferior_command): Use inferior and thread pointers.
6221 * inferior.h (struct thread_info): Forward declare.
6222 (notice_new_inferior): Take a thread_info pointer instead of a
6223 ptid_t. All callers adjusted.
6224 (detach_inferior): Delete declaration.
6225 (exit_inferior, exit_inferior_silent): Take an inferior pointer
6226 instead of a pid. All callers adjusted.
6227 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
6228 (valid_gdb_inferior_id): Delete.
6229 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
6230 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
6231 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
6232 ...
6233 <inf>: ... this new field.
6234 <step_ptid>: Delete, replaced by ...
6235 <step_thread>: ... this new field.
6236 (get_displaced_stepping_state): Take an inferior pointer instead
6237 of a pid. All callers adjusted.
6238 (displaced_step_in_progress_any_inferior): Adjust.
6239 (displaced_step_in_progress_thread): Take a thread pointer instead
6240 of a ptid_t. All callers adjusted.
6241 (displaced_step_in_progress, add_displaced_stepping_state): Take
6242 an inferior pointer instead of a pid. All callers adjusted.
6243 (get_displaced_step_closure_by_addr): Adjust.
6244 (remove_displaced_stepping_state): Take an inferior pointer
6245 instead of a pid. All callers adjusted.
6246 (displaced_step_prepare_throw, displaced_step_prepare)
6247 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
6248 All callers adjusted.
6249 (start_step_over): Adjust.
6250 (infrun_thread_ptid_changed): Remove bit updating ptids in the
6251 displaced step queue.
6252 (do_target_resume): Adjust.
6253 (fetch_inferior_event): Use inferior_thread.
6254 (context_switch, get_inferior_stop_soon): Take an
6255 execution_control_state pointer instead of a ptid_t. All callers
6256 adjusted.
6257 (switch_to_thread_cleanup): Delete.
6258 (stop_all_threads): Use scoped_restore_current_thread.
6259 * inline-frame.c: Include "gdbthread.h".
6260 (inline_state) <inline_state>: Take a thread pointer instead of a
6261 ptid_t. All callers adjusted.
6262 <ptid>: Delete, replaced by ...
6263 <thread>: ... this new field.
6264 (find_inline_frame_state): Take a thread pointer instead of a
6265 ptid_t. All callers adjusted.
6266 (skip_inline_frames, step_into_inline_frame)
6267 (inline_skipped_frames, inline_skipped_symbol): Take a thread
6268 pointer instead of a ptid_t. All callers adjusted.
6269 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
6270 (inline_skipped_frames, inline_skipped_symbol): Likewise.
6271 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
6272 pointers directly.
6273 * linux-nat.c (get_detach_signal): Likewise.
6274 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
6275 (thread_db_notice_clone): Adjust.
6276 (thread_db_find_new_threads_silently)
6277 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
6278 a thread pointer instead of a ptid_t. All callers adjusted.
6279 * mi/mi-cmd-var.c: Include "inferior.h".
6280 (mi_cmd_var_update_iter): Update to use thread pointers.
6281 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
6282 inferior directly.
6283 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
6284 out to ...
6285 (mi_output_running): ... this new function.
6286 (mi_on_resume_1): Adjust to use it.
6287 (mi_user_selected_context_changed): Adjust to use inferior_thread.
6288 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
6289 directly.
6290 (interrupt_thread_callback): : Adjust to use thread and inferior
6291 pointers.
6292 * proc-service.c: Include "gdbthread.h".
6293 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
6294 * progspace-and-thread.c: Include "inferior.h".
6295 * progspace.c: Include "inferior.h".
6296 * python/py-exitedevent.c (create_exited_event_object): Adjust to
6297 hold a reference to an inferior_object.
6298 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
6299 inferior_thread.
6300 * python/py-inferior.c (struct inferior_object): Give the type a
6301 tag name instead of a typedef.
6302 (python_on_normal_stop): No need to check if the current thread is
6303 listed.
6304 (inferior_to_inferior_object): Change return type to
6305 inferior_object. All callers adjusted.
6306 (find_thread_object): Delete, bits factored out to ...
6307 (thread_to_thread_object): ... this new function.
6308 * python/py-infthread.c (create_thread_object): Use
6309 inferior_to_inferior_object.
6310 (thpy_is_stopped): Use thread pointer directly.
6311 (gdbpy_selected_thread): Use inferior_thread.
6312 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
6313 field, replaced with ...
6314 <thread>: ... this new field. All users adjusted.
6315 (btpy_insn_or_gap_new): Drop const.
6316 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
6317 callers adjusted.
6318 * python/py-record.c: Include "gdbthread.h".
6319 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6320 a ptid_t. All callers adjusted.
6321 (gdbpy_current_recording): Use inferior_thread.
6322 * python/py-record.h (recpy_record_object) <ptid>: Delete
6323 field, replaced with ...
6324 <thread>: ... this new field. All users adjusted.
6325 (recpy_element_object) <ptid>: Delete
6326 field, replaced with ...
6327 <thread>: ... this new field. All users adjusted.
6328 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
6329 a ptid_t. All callers adjusted.
6330 * python/py-threadevent.c: Include "gdbthread.h".
6331 (get_event_thread): Use thread_to_thread_object.
6332 * python/python-internal.h (struct inferior_object): Forward
6333 declare.
6334 (find_thread_object, find_inferior_object): Delete declarations.
6335 (thread_to_thread_object, inferior_to_inferior_object): New
6336 declarations.
6337 * record-btrace.c: Include "inferior.h".
6338 (require_btrace_thread): Use inferior_thread.
6339 (record_btrace_frame_sniffer)
6340 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
6341 (get_thread_current_frame): Use scoped_restore_current_thread and
6342 switch_to_thread.
6343 (get_thread_current_frame): Use thread pointer directly.
6344 (record_btrace_replay_at_breakpoint): Use thread's inferior
6345 pointer directly.
6346 * record-full.c: Include "inferior.h".
6347 * regcache.c: Include "gdbthread.h".
6348 (get_thread_arch_regcache): Use the inferior's address space
6349 directly.
6350 (get_thread_regcache, registers_changed_thread): New.
6351 * regcache.h (get_thread_regcache(thread_info *thread)): New
6352 overload.
6353 (registers_changed_thread): New.
6354 (remote_target) <remote_detach_1>: Swap order of parameters.
6355 (remote_add_thread): <remote_add_thread>: Return the new thread.
6356 (get_remote_thread_info(ptid_t)): New overload.
6357 (remote_target::remote_notice_new_inferior): Use thread pointers
6358 directly.
6359 (remote_target::process_initial_stop_replies): Use
6360 thread_info::set_running.
6361 (remote_target::remote_detach_1, remote_target::detach)
6362 (extended_remote_target::detach): Adjust.
6363 * stack.c (frame_show_address): Use inferior_thread.
6364 * target-debug.h (target_debug_print_thread_info_pp): New.
6365 * target-delegates.c: Regenerate.
6366 * target.c (default_thread_address_space): Delete.
6367 (memory_xfer_partial_1): Use current_inferior.
6368 (target_detach): Use current_inferior.
6369 (target_thread_address_space): Delete.
6370 (generic_mourn_inferior): Use current_inferior.
6371 * target.h (struct target_ops) <thread_address_space>: Delete.
6372 (target_thread_address_space): Delete.
6373 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
6374 pointers directly.
6375 (delete_thread_1, delete_thread, delete_thread_silent): Take a
6376 thread pointer instead of a ptid_t. Adjust all callers.
6377 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
6378 (first_thread_of_process): Delete, replaced by ...
6379 (first_thread_of_inferior): ... this new function. All callers
6380 adjusted.
6381 (any_thread_of_process): Rename to ...
6382 (any_thread_of_inferior): ... this, and take an inferior pointer.
6383 (any_live_thread_of_process): Rename to ...
6384 (any_live_thread_of_inferior): ... this, and take an inferior
6385 pointer.
6386 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6387 (value_in_thread_stack_temporaries)
6388 (get_last_thread_stack_temporary): Take a thread pointer instead
6389 of a ptid_t. Adjust all callers.
6390 (thread_info::set_running): New.
6391 (validate_registers_access): Use inferior_thread.
6392 (can_access_registers_ptid): Rename to ...
6393 (can_access_registers_thread): ... this, and take a thread
6394 pointer.
6395 (print_thread_info_1): Adjust to compare thread pointers instead
6396 of ptids.
6397 (switch_to_no_thread, switch_to_thread): Make extern.
6398 (scoped_restore_current_thread::~scoped_restore_current_thread):
6399 Use m_thread pointer directly.
6400 (scoped_restore_current_thread::scoped_restore_current_thread):
6401 Use inferior_thread.
6402 (thread_command): Use thread pointer directly.
6403 (thread_num_make_value_helper): Use inferior_thread.
6404 * top.c (execute_command): Use inferior_thread.
6405 * tui/tui-interp.c: Include "inferior.h".
6406 * varobj.c (varobj_create): Use inferior_thread.
6407 (value_of_root_1): Use find_thread_global_id instead of
6408 global_thread_id_to_ptid.
6409
6410 2018-06-21 Alan Hayward <alan.hayward@arm.com>
6411
6412 * regcache.c (readable_regcache::read_part): Avoid memcpy when
6413 possible.
6414 (regcache::write_part): Likewise.
6415 (readable_regcache::cooked_read_part): Update comment.
6416 (readable_regcache::cooked_write_part): Likewise.
6417 * regcache.h: (readable_regcache::read_part): Likewise.
6418 (regcache::write_part): Likewise.
6419
6420 2018-06-21 Richard Bunt <richard.bunt@arm.com>
6421 Dirk Schubert <dirk.schubert@arm.com>
6422
6423 * aarch64-linux-nat.c (post_attach): New.
6424 (aarch64_linux_nat_target::post_attach): Override post_attach to
6425 record the number of hardware debug registers.
6426
6427 2018-06-20 Tom Tromey <tom@tromey.com>
6428
6429 * python/py-param.c (add_setshow_generic): Make parameters const.
6430 (parmpy_init): Update.
6431
6432 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6433
6434 * regcache.h (regcache_cooked_read_ftype): Rename to...
6435 (register_read_ftype): ...this, change type to function_view.
6436 (class reg_buffer) <save>: Remove src parameter.
6437 (readonly_detached_regcache) <readonly_detached_regcache>: Make
6438 parameter non-const in first overload. Remove src parameter in
6439 second overload.
6440 * regcache.c (do_cooked_read): Remove.
6441 (readonly_detached_regcache::readonly_detached_regcache): Make
6442 parameter non-const, adjust call to other constructor.
6443 (reg_buffer::save): Remove src parameter.
6444 * frame.c (do_frame_register_read): Remove.
6445 (frame_save_as_regcache): Use lambda function.
6446 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
6447 parameter to ppu2spu_data *.
6448 (ppu2spu_sniffer): Use lambda function.
6449
6450 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
6451
6452 * record-full.c (record_full_target::insert_breakpoint): Remove
6453 "struct" keyword, add const.
6454
6455 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
6456
6457 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
6458 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
6459 * configure.ac: Remove AC_PREREQ, add missing quoting.
6460 * gnulib/configure.ac: Modernize usage of
6461 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
6462 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
6463 (AUTOMAKE_VERSION): Bump to 1.15.1.
6464 * configure: Re-generate.
6465 * config.in: Re-generate.
6466 * aclocal.m4: Re-generate.
6467 * gnulib/aclocal.m4: Re-generate.
6468 * gnulib/config.in: Re-generate.
6469 * gnulib/configure: Re-generate.
6470 * gnulib/import/Makefile.in: Re-generate.
6471
6472 2018-06-19 Pedro Alves <palves@redhat.com>
6473
6474 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
6475 (lookup_minimal_symbol_by_pc_section): ... here with
6476 gdb_assert_not_reached added.
6477
6478 2018-06-19 Pedro Alves <palves@redhat.com>
6479
6480 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6481 parameter with a block parameter. Compare location's block symbol
6482 with the frame's block instead of addresses.
6483 (skip_inline_frames): Pass the current block instead of the
6484 frame's address. Break out as soon as we determine the frame
6485 should not be skipped.
6486
6487 2018-06-18 Tom Tromey <tom@tromey.com>
6488
6489 * solib-aix.c (solib_aix_get_section_offsets): Return
6490 unique_xmalloc_ptr.
6491 (solib_aix_solib_create_inferior_hook): Update.
6492
6493 2018-06-18 Tom Tromey <tom@tromey.com>
6494
6495 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6496
6497 2018-06-18 Tom Tromey <tom@tromey.com>
6498
6499 * solib-frv.c (frv_relocate_main_executable): Use
6500 unique_xmalloc_ptr.
6501 * solib-dsbt.c (dsbt_relocate_main_executable): Use
6502 unique_xmalloc_ptr.
6503
6504 2018-06-18 Tom Tromey <tom@tromey.com>
6505
6506 * objfiles.h (inhibit_section_map_updates): Update.
6507 (resume_section_map_updates, resume_section_map_updates_cleanup):
6508 Remove.
6509 * solib-svr4.c (svr4_handle_solib_event): Update.
6510 * objfiles.c (inhibit_section_map_updates): Return
6511 scoped_restore_tmpl<int>.
6512 (resume_section_map_updates, resume_section_map_updates_cleanup):
6513 Remove.
6514
6515 2018-06-18 Tom Tromey <tom@tromey.com>
6516
6517 * valprint.h (read_string): Update.
6518 * valprint.c (read_string): Change type of "buffer".
6519 (val_print_string): Update.
6520 * python/py-value.c (valpy_string): Update.
6521 * language.h (struct language_defn) <la_get_string>: Change
6522 type of "buffer".
6523 (default_get_string, c_get_string): Update.
6524 * language.c (default_get_string): Change type of "buffer".
6525 * guile/scm-value.c (gdbscm_value_to_string): Update.
6526 * c-lang.c (c_get_string): Change type of "buffer".
6527
6528 2018-06-18 Tom Tromey <tom@tromey.com>
6529
6530 * ser-mingw.c (struct pipe_state_destroyer): New.
6531 (pipe_state_up): New typedef.
6532 (cleanup_pipe_state): Remove.
6533 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6534
6535 2018-06-18 Tom Tromey <tom@tromey.com>
6536
6537 * rust-lang.h (rust_yyerror): Don't declare.
6538 * rust-lang.c (rust_language_defn): Update.
6539 * rust-exp.y (yyerror): Now static.
6540 * parse.c (parse_exp_in_context_1): Update.
6541 * p-lang.h (p_yyerror): Don't declare.
6542 * p-lang.c (p_language_defn): Update.
6543 * p-exp.y (yyerror): Now static.
6544 * opencl-lang.c (opencl_language_defn): Update.
6545 * objc-lang.c (objc_language_defn): Update.
6546 * m2-lang.h (m2_yyerror): Don't declare.
6547 * m2-lang.c (m2_language_defn): Update.
6548 * m2-exp.y (yyerror): Now static.
6549 * language.h (struct language_defn) <la_error>: Remove.
6550 * language.c (unk_lang_error): Remove.
6551 (unknown_language_defn, auto_language_defn): Remove.
6552 * go-lang.h (go_yyerror): Don't declare.
6553 * go-lang.c (go_language_defn): Update.
6554 * go-exp.y (yyerror): Now static.
6555 * f-lang.h (f_yyerror): Don't declare.
6556 * f-lang.c (f_language_defn): Update.
6557 * f-exp.y (yyerror): Now static.
6558 * d-lang.h (d_yyerror): Don't declare.
6559 * d-lang.c (d_language_defn): Update.
6560 * d-exp.y (yyerror): Now static.
6561 * c-lang.h (c_yyerror): Don't declare.
6562 * c-lang.c (c_language_defn, cplus_language_defn)
6563 (asm_language_defn, minimal_language_defn): Update.
6564 * c-exp.y (yyerror): Now static.
6565 * ada-lang.h (ada_yyerror): Don't declare.
6566 * ada-lang.c (ada_language_defn): Update.
6567 * ada-exp.y (yyerror): Now static.
6568
6569 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6570
6571 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6572 (store_sveregs_to_thread): Likewise.
6573 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6574 (aarch64_linux_store_inferior_registers): Likewise.
6575 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6576 function.
6577 (aarch64_sve_regs_copy_to_regcache): Likewise.
6578 (aarch64_sve_regs_copy_from_regcache): Likewise.
6579 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6580 declaration.
6581 (aarch64_sve_regs_copy_to_regcache): Likewise.
6582 (aarch64_sve_regs_copy_from_regcache): Likewise.
6583 (sve_context): Structure from Linux headers.
6584 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6585 (SVE_SIG_ZREG_SIZE): Likewise.
6586 (SVE_SIG_PREG_SIZE): Likewise.
6587 (SVE_SIG_FFR_SIZE): Likewise.
6588 (SVE_SIG_REGS_OFFSET): Likewise.
6589 (SVE_SIG_ZREGS_OFFSET): Likewise.
6590 (SVE_SIG_ZREG_OFFSET): Likewise.
6591 (SVE_SIG_ZREGS_SIZE): Likewise.
6592 (SVE_SIG_PREGS_OFFSET): Likewise.
6593 (SVE_SIG_PREG_OFFSET): Likewise.
6594 (SVE_SIG_PREGS_SIZE): Likewise.
6595 (SVE_SIG_FFR_OFFSET): Likewise.
6596 (SVE_SIG_REGS_SIZE): Likewise.
6597 (SVE_SIG_CONTEXT_SIZE): Likewise.
6598 (SVE_PT_REGS_MASK): Likewise.
6599 (SVE_PT_REGS_FPSIMD): Likewise.
6600 (SVE_PT_REGS_SVE): Likewise.
6601 (SVE_PT_VL_INHERIT): Likewise.
6602 (SVE_PT_VL_ONEXEC): Likewise.
6603 (SVE_PT_REGS_OFFSET): Likewise.
6604 (SVE_PT_FPSIMD_OFFSET): Likewise.
6605 (SVE_PT_FPSIMD_SIZE): Likewise.
6606 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6607 (SVE_PT_SVE_PREG_SIZE): Likewise.
6608 (SVE_PT_SVE_FFR_SIZE): Likewise.
6609 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6610 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6611 (__SVE_SIG_TO_PT): Likewise.
6612 (SVE_PT_SVE_OFFSET): Likewise.
6613 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6614 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6615 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6616 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6617 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6618 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6619 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6620 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6621 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6622 (SVE_PT_SVE_SIZE): Likewise.
6623 (SVE_PT_SIZE): Likewise.
6624 (HAS_SVE_STATE): New define.
6625
6626 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6627
6628 * nat/aarch64-sve-linux-sigcontext.h: New file.
6629 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6630 new files.
6631 (SVE_VQ_MIN): Likewise.
6632 (SVE_VQ_MAX): Likewise.
6633 (SVE_VL_MIN): Likewise.
6634 (SVE_VL_MAX): Likewise.
6635 (SVE_NUM_ZREGS): Likewise.
6636 (SVE_NUM_PREGS): Likewise.
6637 (sve_vl_valid): Likewise.
6638 (struct user_sve_header): Likewise.
6639
6640 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6641 Richard Bunt <Richard.Bunt@arm.com>
6642
6643 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6644 was requested by GDB.
6645
6646 2018-06-15 Tom de Vries <tdevries@suse.de>
6647
6648 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6649
6650 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6651
6652 * gnulib/update-gnulib.sh: Print expected versions of
6653 autoconf/aclocal.
6654
6655 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6656
6657 * arch-utils.c (default_type_align): Use type_length_units.
6658 * gdbtypes.c (type_align): Use type_length_units.
6659
6660 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6661
6662 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6663 of 'define' command.
6664
6665 2018-06-14 Tom de Vries <tdevries@suse.de>
6666
6667 PR cli/22573
6668 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6669 get_no_prettyformat_print_options.
6670
6671 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6672
6673 * sparc-nat.h: Include target.h.
6674 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6675 <fetch_registers>: Remove this argument in function call.
6676 <store_registers>: Remove this argument in function call, remove
6677 extra semicolon.
6678 <low_forget_process>: Call sparc64_forget_process instead of
6679 sparc_forget_process.
6680
6681 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6682
6683 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6684 (procfs_target::make_corefile_notes): Adjust to new
6685 target_read_alloc return type.
6686
6687 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6688 Stephen Roberts <stephen.roberts@arm.com>
6689
6690 PR gdb/22882
6691 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6692 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6693 Move should_notify_stop local into more inner scope.
6694
6695 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6696 Stephen Roberts <stephen.roberts@arm.com>
6697
6698 PR gdb/22882
6699 * infrun.c (resume_1): Add call to mark_async_event_handler.
6700
6701 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6702
6703 * infrun.c (do_target_wait): Change old version of $pc printed.
6704
6705 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6706
6707 * dwarf2read.c (read_index_from_section): Rename to...
6708 (read_gdb_index_from_section): ... this, update all callers.
6709 (dwarf2_read_index): Rename to...
6710 (dwarf2_read_gdb_index): ... this, update all callers.
6711
6712 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6713
6714 * gdb/hppa-linux-nat.c
6715 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6716 hppa_linux_nat_target::fetch_registers.
6717
6718 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6719
6720 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6721 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6722 (AARCH64_DWARF_SVE_FFR): Likewise.
6723 (AARCH64_DWARF_SVE_P0): Likewise.
6724 (AARCH64_DWARF_SVE_Z0): Likewise.
6725
6726 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6727
6728 * common/common-regcache.h (raw_compare): New function.
6729 * regcache.c (regcache::raw_compare): Likewise.
6730 * regcache.h (regcache::raw_compare): New declaration.
6731
6732 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6733
6734 * common/common-regcache.h (reg_buffer_common): New structure.
6735 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6736 (reg_buffer::raw_supply): Likewise.
6737 (reg_buffer::raw_supply_integer): Likewise.
6738 (reg_buffer::raw_supply_zeroed): Likewise.
6739 (reg_buffer::raw_collect): Likewise.
6740 (reg_buffer::raw_collect_integer): Likewise.
6741 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6742 (reg_buffer::raw_supply): Likewise.
6743 (reg_buffer::raw_supply_integer): Likewise.
6744 (reg_buffer::raw_supply_zeroed): Likewise.
6745 (reg_buffer::raw_collect): Likewise.
6746 (reg_buffer::raw_collect_integer): Likewise.
6747
6748 2018-06-10 Tom Tromey <tom@tromey.com>
6749
6750 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6751 (class remote_state) <stop_reply_queue>: Now std::vector.
6752 (remote_state::~remote_state)
6753 (remote_target::stop_reply_queue_length): Update.
6754 (struct queue_iter_param, remove_child_of_pending_fork)
6755 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6756 (check_pending_event_prevents_wildcard_vcont_callback)
6757 (remove_stop_reply_for_inferior)
6758 (remove_stop_reply_of_remote_state)
6759 (remote_notif_remove_once_on_match)
6760 (stop_reply_match_ptid_and_ws)
6761 (remote_kill_child_of_pending_fork): Remove.
6762 (remote_target::remove_new_fork_children)
6763 (remote_target::check_pending_events_prevent_wildcard_vcont)
6764 (remote_target::discard_pending_stop_replies)
6765 (remote_target::discard_pending_stop_replies_in_queue)
6766 (remote_target::remote_notif_remove_queued_reply)
6767 (remote_target::queued_stop_reply)
6768 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6769 (remote_target::wait, remote_target::kill_new_fork_children)
6770 (remote_target::async): Update.
6771
6772 2018-06-10 Tom Tromey <tom@tromey.com>
6773
6774 * record-full.c (record_full_arch_list_cleanups): Remove.
6775 (record_full_message): Use try/catch.
6776 (record_full_wait_cleanups): Remove.
6777 (record_full_wait_1): Use try/catch.
6778 (record_full_restore): Likewise.
6779
6780 2018-06-10 Tom Tromey <tom@tromey.com>
6781
6782 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6783 declare VEC. Add constructor.
6784 <in_target_beneath>: Now bool.
6785 (record_full_breakpoints): Now a std::vector, static.
6786 (record_full_sync_record_breakpoints)
6787 (record_full_init_record_breakpoints)
6788 (record_full_target::insert_breakpoint)
6789 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6790
6791 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6792
6793 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6794 * serial.c (serial_interface_lookup): Remove struct keyword.
6795
6796 2018-06-10 Tom Tromey <tom@tromey.com>
6797
6798 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6799 method.
6800 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6801 a method.
6802 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6803 method.
6804 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6805 "beneath" as a method.
6806 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6807 Use "beneath" as a method.
6808
6809 2018-06-10 Tom Tromey <tom@tromey.com>
6810
6811 * tracefile.c (struct trace_file_writer_deleter): New.
6812 <operator()>: Rename from trace_file_writer_xfree.
6813 (trace_file_writer_up): New typedef.
6814 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6815
6816 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6817
6818 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6819 <m_registers, m_register_status>: Change type to
6820 std::unique_ptr.
6821 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6822 XCNEWVEC.
6823
6824 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6825
6826 * common/common-regcache.h (enum register_status): Add
6827 underlying type "signed char".
6828 * regcache.h (reg_buffer) <m_register_status>: Change type to
6829 register_status *.
6830 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6831 register_status instead of signed char.
6832 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6833 (reg_buffer::get_register_status): Remove cast.
6834 (readable_regcache::raw_read): Remove cast.
6835 (readable_regcache::cooked_read): Remove cast.
6836
6837 2018-06-09 Tom Tromey <tom@tromey.com>
6838
6839 * source.c (reverse_search_command, forward_search_command): Use
6840 scoped_fd.
6841
6842 2018-06-09 Tom Tromey <tom@tromey.com>
6843
6844 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6845 (serial_ops_list): Now static, std::vector.
6846 (serial_interface_lookup, serial_add_interface): Update.
6847
6848 2018-06-09 Tom Tromey <tom@tromey.com>
6849
6850 * dwarf2read.c (process_cu_includes): Update.
6851 (process_full_comp_unit): Update.
6852 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6853 std::vector.
6854
6855 2018-06-08 Paul Koning <paul_koning@dell.com>
6856
6857 PR gdb/23252
6858
6859 * python/python.c (do_start_initialization):
6860 Avoid call to internal Python API.
6861 (init__gdb_module): New function.
6862
6863 2018-06-08 Gary Benson <gbenson@redhat.com>
6864
6865 * linux-thread-db.c (valprint.h): New include.
6866 (struct check_thread_db_info): New structure.
6867 (check_thread_db_on_load, tdb_testinfo): New static globals.
6868 (check_thread_db, check_thread_db_callback): New functions.
6869 (try_thread_db_load_1): Run integrity checks if requested.
6870 (maintenance_check_libthread_db): New function.
6871 (_initialize_thread_db): Register "maint check libthread-db"
6872 and "maint set/show check-libthread-db".
6873 * NEWS: Mention the above new commands.
6874
6875 2018-06-08 Tom Tromey <tom@tromey.com>
6876
6877 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6878 now a method.
6879
6880 2018-06-08 Tom Tromey <tom@tromey.com>
6881
6882 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6883
6884 2018-06-08 Tom Tromey <tom@tromey.com>
6885
6886 * common/btrace-common.h (struct btrace_data): Add constructor,
6887 destructor, move assignment operator.
6888 <empty, clear, fini>: New methods.
6889 <format>: Initialize.
6890 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6891 (btrace_data_empty): Don't declare.
6892 * common/btrace-common.c (btrace_data_init): Remove.
6893 (btrace_data::fini): Rename from btrace_data_fini.
6894 (btrace_data::empty): Rename from btrace_data_empty.
6895 (btrace_data::clear): Rename from btrace_data_clear. Return
6896 bool.
6897 * btrace.h (make_cleanup_btrace_data): Don't declare.
6898 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6899 (parse_xml_btrace): Update.
6900 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6901 (maint_btrace_clear_packet_history_cmd): Update.
6902
6903 2018-06-07 Pedro Alves <palves@redhat.com>
6904
6905 * target.h (target_ops) <beneath>: Now a method. All references
6906 updated.
6907 (class target_stack): New.
6908 * target.c (g_target_stack): New.
6909 (g_current_top_target): Delete.
6910 (current_top_target): Get the top target out of g_target_stack.
6911 (target_stack::push, target_stack::unpush): New.
6912 (push_target, unpush_target): Reimplement.
6913 (target_is_pushed): Reimplement in terms of g_target_stack.
6914 (target_ops::beneath, target_stack::find_beneath): New.
6915
6916 2018-06-07 Pedro Alves <palves@redhat.com>
6917
6918 * target.h (find_target_beneath): Delete declaration.
6919 * target.c (find_target_beneath): Delete definition.
6920 * aix-thread.c: All callers of find_target_beneath adjusted to
6921 call target_ops::beneath instead.
6922 * bsd-uthread.c: Likewise.
6923 * linux-thread-db.c: Likewise.
6924 * ravenscar-thread.c: Likewise.
6925 * sol-thread.c: Likewise.
6926 * spu-multiarch.c: Likewise.
6927
6928 2018-06-07 Pedro Alves <palves@redhat.com>
6929
6930 * target.h (target_ops) <beneath>: Now a method. All references
6931 updated.
6932 (target_ops) <m_beneath>: New.
6933 * target.c (target_ops::beneath): New.
6934 * corelow.c: Adjust all references to target_ops::beneath.
6935 * linux-thread-db.c: Likewise.
6936 * make-target-delegates: Likewise.
6937 * record-btrace.c: Likewise.
6938 * record-full.c: Likewise.
6939 * remote.c: Likewise.
6940 * target.c: Likewise.
6941 * target-delegates.c: Regenerate.
6942
6943 2018-06-07 Pedro Alves <palves@redhat.com>
6944
6945 * target.h (target_stack): Delete.
6946 (current_top_target): Declare function.
6947 * target.c (target_stack): Delete.
6948 (g_current_top_target): New.
6949 (current_top_target): New function.
6950 * auxv.c: Use current_top_target instead of target_stack
6951 throughout.
6952 * avr-tdep.c: Likewise.
6953 * breakpoint.c: Likewise.
6954 * corefile.c: Likewise.
6955 * elfread.c: Likewise.
6956 * eval.c: Likewise.
6957 * exceptions.c: Likewise.
6958 * frame.c: Likewise.
6959 * gdbarch-selftests.c: Likewise.
6960 * gnu-v3-abi.c: Likewise.
6961 * ia64-tdep.c: Likewise.
6962 * ia64-vms-tdep.c: Likewise.
6963 * infcall.c: Likewise.
6964 * infcmd.c: Likewise.
6965 * infrun.c: Likewise.
6966 * linespec.c: Likewise.
6967 * linux-tdep.c: Likewise.
6968 * minsyms.c: Likewise.
6969 * ppc-linux-nat.c: Likewise.
6970 * ppc-linux-tdep.c: Likewise.
6971 * procfs.c: Likewise.
6972 * regcache.c: Likewise.
6973 * remote.c: Likewise.
6974 * rs6000-tdep.c: Likewise.
6975 * s390-linux-nat.c: Likewise.
6976 * s390-tdep.c: Likewise.
6977 * solib-aix.c: Likewise.
6978 * solib-darwin.c: Likewise.
6979 * solib-dsbt.c: Likewise.
6980 * solib-spu.c: Likewise.
6981 * solib-svr4.c: Likewise.
6982 * solib-target.c: Likewise.
6983 * sparc-tdep.c: Likewise.
6984 * sparc64-tdep.c: Likewise.
6985 * spu-tdep.c: Likewise.
6986 * symfile.c: Likewise.
6987 * symtab.c: Likewise.
6988 * target-descriptions.c: Likewise.
6989 * target-memory.c: Likewise.
6990 * target.c: Likewise.
6991 * target.h: Likewise.
6992 * tracefile-tfile.c: Likewise.
6993 * tracepoint.c: Likewise.
6994 * valops.c: Likewise.
6995 * valprint.c: Likewise.
6996 * value.c: Likewise.
6997 * windows-tdep.c: Likewise.
6998 * mi/mi-main.c: Likewise.
6999
7000 2018-06-07 Tom Tromey <tom@tromey.com>
7001
7002 * valprint.h (build_address_symbolic): Declare.
7003 * printcmd.c (print_address_symbolic): Update.
7004 (build_address_symbolic): Change "name" and "filename" to
7005 std::string.
7006 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7007 Update.
7008 * defs.h (build_address_symbolic): Remove declaration.
7009
7010 2018-06-07 Alan Hayward <alan.hayward@arm.com>
7011
7012 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7013 (aarch64_vnv_type): Add function.
7014 (aarch64_pseudo_register_name): Add V regs for SVE.
7015 (aarch64_pseudo_register_type): Likewise.
7016 (aarch64_pseudo_register_reggroup_p): Likewise.
7017 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7018 (aarch64_pseudo_read_value): Add V regs for SVE.
7019 (aarch64_pseudo_write_2): Use V0 offset for SVE
7020 (aarch64_pseudo_write): Add V regs for SVE.
7021 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7022
7023 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
7024
7025 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7026 (sve_vl_from_vq): Likewise.
7027
7028 2018-06-05 Tom Tromey <tom@tromey.com>
7029
7030 * cli/cli-cmds.c (show_version): Update.
7031 * top.c (print_gdb_version): Add "interactive" parameter.
7032 Update.
7033 * main.c (captured_main_1): Update.
7034 * top.h (print_gdb_version): Add "interactive" parameter and a
7035 comment.
7036
7037 2018-06-05 David Malcolm <dmalcolm@redhat.com>
7038
7039 * common/enum-flags.h: Add trailing semicolon to example in
7040 comment.
7041
7042 2018-06-05 Tom Tromey <tom@tromey.com>
7043
7044 PR cli/12326:
7045 * NEWS: Add entry about pager.
7046 * utils.c (pagination_disabled_for_command): New global.
7047 (prompt_for_continue): Allow "c" response to prompt.
7048 (reinitialize_more_filter): Clear
7049 pagination_disabled_for_command.
7050 (fputs_maybe_filtered): Check pagination_disabled_for_command.
7051
7052 2018-06-04 Tom Tromey <tom@tromey.com>
7053
7054 * ada-lang.h (ada_lookup_symbol_list): Update.
7055 * ada-lang.c (resolve_subexp): Update.
7056 (symbols_are_identical_enums): Change type of syms. Remove nsyms
7057 parameter.
7058 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7059 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7060 results parameter to std::vector.
7061 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7062 Update.
7063 * ada-exp.y (block_lookup): Update.
7064 (select_possible_type_sym): Change type of syms. Remove nsyms
7065 parameter.
7066 (write_var_or_type, write_name_assoc): Update.
7067
7068 2018-06-04 Joel Brobecker <brobecker@adacore.com>
7069
7070 * windows-nat.c (windows_nat_target::xfer_partial): Return
7071 TARGET_XFER_E_IO if we need to delegate to the target beneath
7072 but BENEATH is NULL.
7073
7074 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
7075
7076 * Makefile.in (config.status): Add configure.nat as a
7077 dependency.
7078
7079 2018-06-04 Tom Tromey <tom@tromey.com>
7080
7081 * cp-name-parser.y (cpname_state): Add method declarations.
7082 (HANDLE_QUAL): Update.
7083 (cpname_state::d_grab, cpname_state::fill_comp)
7084 (cpname_state::make_operator, cpname_state::make_dtor)
7085 (cpname_state::make_builtin_type, cpname_state::make_name)
7086 (cpname_state::d_qualify, cpname_state::d_int_type)
7087 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7088 (%union): Move earlier.
7089
7090 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7091
7092 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7093
7094 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7095
7096 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7097 (aarch64_pseudo_write_1): Likewise.
7098 (aarch64_pseudo_read_value): Use helper.
7099 (aarch64_pseudo_write): Likewise.
7100
7101 2018-06-04 Pedro Alves <palves@redhat.com>
7102
7103 * darwin-nat.c (darwin_ops): Delete.
7104 (darwin_attach_pid): Use get_native_target.
7105
7106 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7107
7108 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7109 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7110
7111 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7112
7113 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7114 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7115 (aarch64_gdbarch_init): Check for SVE.
7116 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7117
7118 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7119
7120 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
7121 * aarch64-tdep.h (aarch64_read_description): Likewise.
7122 * arch/aarch64.c (aarch64_create_target_description): Likewise.
7123 * arch/aarch64.h (aarch64_create_target_description): Likewise.
7124 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
7125 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
7126 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
7127
7128 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
7129
7130 * value.c (value_fetch_lazy_bitfield): New.
7131 (value_fetch_lazy_memory): New.
7132 (value_fetch_lazy_register): New.
7133 (value_fetch_lazy): Factor out to smaller functions.
7134
7135 2018-06-01 Tom Tromey <tom@tromey.com>
7136
7137 * cp-name-parser.y (backslashable, represented): Now const.
7138
7139 2018-06-01 Tom Tromey <tom@tromey.com>
7140
7141 * cp-name-parser.y: Include parser-defs.h.
7142 (parser_fprintf): Remove declaration.
7143
7144 2018-06-01 Tom Tromey <tom@tromey.com>
7145
7146 * cp-name-parser.y: Use %pure-parser, %lex-param, and
7147 %parse-param.
7148 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
7149 (global_result): Remove globals.
7150 (struct cpname_state): New.
7151 (yyparse): Don't declare.
7152 (yylex, yyerror): Move declarations after %union.
7153 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
7154 (make_name): Add state parameter.
7155 Update all callers.
7156 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
7157 parameter.
7158 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
7159 Update.
7160 (yylex): Add lvalp, state parameters.
7161 (yyerror): Add state parameter.
7162 (cp_demangled_name_to_comp): Update.
7163
7164 2018-06-01 Tom Tromey <tom@tromey.com>
7165
7166 * cp-name-parser.y (parser_fprintf): Declare.
7167 (GDB_YY_REMAP_PREFIX): Define.
7168 Include yy-remap.h. Don't redefine yy* identifiers.
7169
7170 2018-06-01 Tom Tromey <tom@tromey.com>
7171
7172 * python/py-type.c (typy_legacy_template_argument): Update.
7173 * cp-support.h (cp_demangled_name_to_comp): Update.
7174 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
7175 parameter to be a "std::string *".
7176 (main): Update.
7177
7178 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
7179
7180 * ada-lex.l: Include "diagnostics.h" instead of
7181 "common/diagnostics.h".
7182 * unittests/environ-selftests.c: Likewise.
7183 * common/diagnostics.h: Moved to ../include.
7184
7185 2018-06-01 Joel Brobecker <brobecker@adacore.com>
7186
7187 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
7188 to language_mode_manual while calling breakpoint_re_set_one.
7189
7190 2018-06-01 Tom Tromey <tom@tromey.com>
7191
7192 * valops.c (value_cast_structs, destructor_name_p): Update.
7193 * symtab.c (gdb_mangle_name): Update.
7194 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
7195 Update.
7196 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
7197 (pascal_object_print_value_fields, pascal_object_print_value):
7198 Update.
7199 * p-typeprint.c (pascal_type_print_derivation_info): Update.
7200 * linespec.c (find_methods): Update.
7201 * gdbtypes.h (type_name_no_tag): Remove.
7202 (type_name_or_error): Rename from type_name_no_tag_or_error.
7203 * gdbtypes.c (type_name_no_tag): Remove.
7204 (type_name_or_error): Rename from type_name_no_tag_or_error.
7205 (lookup_struct_elt_type, check_typedef): Update.
7206 * expprint.c (print_subexp_standard): Update.
7207 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
7208 * d-namespace.c (d_lookup_nested_symbol): Update.
7209 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
7210 (cp_print_class_member): Update.
7211 * cp-namespace.c (cp_lookup_nested_symbol): Update.
7212 * completer.c (add_struct_fields): Update.
7213 * c-typeprint.c (cp_type_print_derivation_info)
7214 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
7215 Update.
7216 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
7217 (ada_prefer_type, ada_is_exception_sym): Update.
7218
7219 2018-06-01 Tom Tromey <tom@tromey.com>
7220
7221 * valops.c (enum_constant_from_type, value_namespace_elt)
7222 (value_maybe_namespace_elt): Update.
7223 * valarith.c (find_size_for_pointer_math): Update.
7224 * target-descriptions.c (make_gdb_type): Update.
7225 * symmisc.c (print_symbol): Update.
7226 * stabsread.c (define_symbol, read_type)
7227 (complain_about_struct_wipeout, add_undefined_type)
7228 (cleanup_undefined_types_1): Update.
7229 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
7230 (rust_range_type_p, val_print_struct, rust_print_struct_def)
7231 (rust_internal_print_type, rust_composite_type)
7232 (rust_evaluate_funcall, rust_evaluate_subexp)
7233 (rust_inclusive_range_type_p): Update.
7234 * python/py-type.c (typy_get_tag): Update.
7235 * p-typeprint.c (pascal_type_print_base): Update.
7236 * mdebugread.c (parse_symbol, parse_type): Update.
7237 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
7238 Update.
7239 * guile/scm-type.c (gdbscm_type_tag): Update.
7240 * go-lang.c (sixg_string_p): Update.
7241 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
7242 Update.
7243 * gdbtypes.h (struct main_type) <tag_name>: Remove.
7244 (TYPE_TAG_NAME): Remove.
7245 * gdbtypes.c (type_name_no_tag): Simplify.
7246 (check_typedef, check_types_equal, recursive_dump_type)
7247 (copy_type_recursive, arch_composite_type): Update.
7248 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
7249 in summary mode when needed.
7250 * eval.c (evaluate_funcall): Update.
7251 * dwarf2read.c (fixup_go_packaging, read_structure_type)
7252 (process_structure_scope, read_enumeration_type)
7253 (read_namespace_type, read_module_type, determine_prefix): Update.
7254 * cp-support.c (inspect_type): Update.
7255 * coffread.c (process_coff_symbol, decode_base_type): Update.
7256 * c-varobj.c (c_is_path_expr_parent): Update.
7257 * c-typeprint.c (c_type_print_base_struct_union): Update.
7258 (c_type_print_base_1): Update. Print struct/class/union/enum in
7259 summary when using C language.
7260 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
7261 (gen_maybe_namespace_elt): Update.
7262 * ada-lang.c (ada_type_name): Simplify.
7263 (empty_record, ada_template_to_fixed_record_type_1)
7264 (template_to_static_fixed_type)
7265 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
7266
7267 2018-06-01 Tom Tromey <tom@tromey.com>
7268
7269 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
7270 c_print_type.
7271 * c-typeprint.c (c_print_type_1): Add "language" parameter.
7272 (c_print_type): Update.
7273 (c_print_type): New overload.
7274 (c_type_print_varspec_prefix, c_type_print_args)
7275 (c_type_print_varspec_suffix, c_print_type_no_offsets)
7276 (c_type_print_base_struct_union, c_type_print_base_1)
7277 (cp_type_print_method_args): Add "language" parameter.
7278 (c_type_print_base): Update.
7279 * c-lang.h (c_print_type): Add new overload.
7280
7281 2018-06-01 Tom Tromey <tom@tromey.com>
7282
7283 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
7284 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
7285
7286 2018-06-01 Alan Hayward <alan.hayward@arm.com>
7287
7288 * aarch64-tdep.c (aarch64_sve_register_names): New const
7289 var.
7290 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
7291 (AARCH64_SVE_Z_REGS_NUM): New define.
7292 (AARCH64_SVE_P_REGS_NUM): Likewise.
7293 (AARCH64_SVE_NUM_REGS): Likewise.
7294
7295 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
7296
7297 * nat/linux-ptrace.h [__alpha__]
7298 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
7299 definitions.
7300
7301 2018-05-31 Maciej W. Rozycki <macro@mips.com>
7302
7303 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
7304 the endianness selected.
7305 * NEWS: Document `set endian auto' mode operation update.
7306
7307 2018-05-31 Alan Hayward <alan.hayward@arm.com>
7308
7309 * Makefile.in: Add new header.
7310 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
7311 (sve_vl_from_vg): Likewise.
7312 (sve_vq_from_vl): Likewise.
7313 (sve_vl_from_vq): Likewise.
7314 (sve_vq_from_vg): Likewise.
7315 (sve_vg_from_vq): Likewise.
7316 * configure.nat: Add new c file.
7317 * nat/aarch64-sve-linux-ptrace.c: New file.
7318 * nat/aarch64-sve-linux-ptrace.h: New file.
7319
7320 2018-05-31 Alan Hayward <alan.hayward@arm.com>
7321
7322 * aarch64-linux-nat.c (aarch64_linux_read_description):
7323 Add parmeter zero.
7324 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
7325 Likewise.
7326 * aarch64-tdep.c (tdesc_aarch64_list): Add.
7327 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
7328 (aarch64_gdbarch_init): Add parmeter zero.
7329 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
7330 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
7331 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
7332 parmeter.
7333 * doc/gdb.texinfo: Describe SVE feature
7334 * features/aarch64-sve.c: New file.
7335
7336 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
7337
7338 PR gdb/23210
7339 * gdbarch.sh (significant_addr_bit): Default to zero when
7340 not set by target architecture.
7341 * gdbarch.c: Re-generated.
7342 * utils.c (address_significant): Update.
7343
7344 2018-05-30 Joel Brobecker <brobecker@adacore.com>
7345
7346 * stack.c (func_command): Remove trailing newline in call to error.
7347
7348 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7349
7350 * regcache.h (regcache_raw_collect): Remove, update callers to
7351 use regcache::raw_collect.
7352 * regcache.c (regcache_raw_collect): Remove.
7353
7354 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7355
7356 * regcache.h (regcache_raw_supply): Remove, update callers to
7357 use detached_regcache::raw_supply.
7358 * regcache.c (regcache_raw_supply): Remove.
7359
7360 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7361
7362 * regcache.h (regcache_cooked_write_part): Remove, update
7363 callers to use regcache::cooked_write_part.
7364 * regcache.c (regcache_cooked_write_part): Remove.
7365
7366 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7367
7368 * regcache.h (regcache_cooked_read_part): Remove, update callers
7369 to use readable_regcache::cooked_read_part.
7370 * regcache.c (regcache_cooked_read_part): Remove.
7371
7372 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7373
7374 * regcache.h (regcache_cooked_read_value): Remove, update
7375 callers to use readable_regcache::cooked_read_value.
7376 * regcache.c (regcache_cooked_read_value): Remove.
7377
7378 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7379
7380 * regcache.h (regcache_cooked_write): Remove, update callers to
7381 use regcache::cooked_write.
7382 * regcache.c (regcache_cooked_write): Remove.
7383
7384 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7385
7386 * regcache.h (regcache_invalidate): Remove, update callers to
7387 use detached_regcache::invalidate instead.
7388 * regcache.c (regcache_invalidate): Remove.
7389
7390 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7391
7392 * regcache.h (regcache_raw_write_part): Remove, update callers
7393 to use regcache::raw_write_part instead.
7394 * regcache.c (regcache_raw_write_part): Remove.
7395
7396 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7397
7398 * regcache.h (regcache_raw_read_part): Remove, update callers to
7399 use readable_regcache::raw_read_part instead.
7400 * regcache.c (regcache_raw_read_part): Remove.
7401
7402 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7403
7404 * regcache.h (regcache_cooked_read): Remove, update callers to
7405 use readable_regcache::cooked_read instead.
7406 * regcache.c (regcache_cooked_read): Remove.
7407
7408 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7409
7410 * regcache.h (regcache_raw_write): Remove, update callers to use
7411 regcache::raw_write instead.
7412 * regcache.c (regcache_raw_write): Remove.
7413
7414 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7415
7416 * regcache.h (regcache_raw_read): Remove, update callers to use
7417 readable_regcache::raw_read instead.
7418 * regcache.c (regcache_raw_read): Remove.
7419
7420 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7421
7422 * regcache.h (regcache_raw_update): Remove, update callers to
7423 use readable_regcache::raw_update instead.
7424 * regcache.c (regcache_raw_update): Remove.
7425
7426 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7427
7428 * regcache.h (regcache_register_status): Remove, update callers
7429 to use reg_buffer::get_register_status directly instead.
7430 * regcache.c (regcache_register_status): Remove.
7431
7432 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7433
7434 * regcache.h (regcache_get_ptid): Remove, update all callers to
7435 call regcache::ptid instead.
7436 * regcache.c (regcache_get_ptid): Remove.
7437
7438 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
7439
7440 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
7441
7442 2018-05-30 Pedro Alves <palves@redhat.com>
7443
7444 * common/common-exceptions.h (exception_rethrow): Use
7445 ATTRIBUTE_NORETURN.
7446
7447 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
7448
7449 * breakpoint.c (print_solib_event, check_status_catch_solib):
7450 Remove struct keyword in range-based for loops.
7451 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
7452 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
7453 Likewise.
7454 * linespec.c (find_superclass_methods, search_minsyms_for_name):
7455 Likewise.
7456 * symfile.c (addr_info_make_relative): Likewise.
7457 * thread.c (value_in_thread_stack_temporaries): Likewise.
7458
7459 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
7460
7461 PR gdb/16841
7462 * valops.c (value_struct_elt_for_reference): Call check_typedef on
7463 aggregate type to get its real type before accessing it.
7464
7465 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
7466
7467 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
7468 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
7469 * coff-pe-read.c (add_pe_forwarded_sym): Replace
7470 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
7471 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
7472 * jit.c (jit_breakpoint_re_set_internal): Likewise.
7473 * printcmd.c (info_address_command): Likewise.
7474
7475 2018-05-29 Tom Tromey <tom@tromey.com>
7476
7477 * windows-nat.c (handle_exception): Update fall-through comment.
7478
7479 2018-05-29 Tom Tromey <tom@tromey.com>
7480
7481 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
7482 (struct program_space) <added_solibs>: Now a std::vector.
7483 * breakpoint.c (print_solib_event): Update.
7484 (check_status_catch_solib): Update.
7485 * progspace.c (clear_program_space_solib_cache): Update.
7486 * solib.c (update_solib_list): Update.
7487
7488 2018-05-29 Tom Tromey <tom@tromey.com>
7489
7490 * python/py-type.c (typy_richcompare): Update.
7491 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7492 * gdbtypes.h (types_deeply_equal): Return bool.
7493 (types_equal): Likewise.
7494 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
7495 declare VEC.
7496 (check_types_equal): Change worklist to std::vector. Return
7497 bool.
7498 (struct type_equality_entry): Add constructor.
7499 (compare_maybe_null_strings): Return bool.
7500 (check_types_worklist): Return bool. Change worklist to
7501 std::vector.
7502 (types_deeply_equal): Use std::vector.
7503 (types_equal): Return bool.
7504 (compare_maybe_null_strings): Simplify.
7505
7506 2018-05-29 Tom Tromey <tom@tromey.com>
7507
7508 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
7509
7510 2018-05-29 Tom Tromey <tom@tromey.com>
7511
7512 * objc-lang.h: Don't include cp-support.h.
7513 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
7514 declare VEC.
7515
7516 2018-05-27 Tom Tromey <tom@tromey.com>
7517
7518 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7519
7520 2018-05-25 Tom Tromey <tom@tromey.com>
7521
7522 * value.c (value::location): Initialize.
7523
7524 2018-05-25 Tom Tromey <tom@tromey.com>
7525
7526 * dbxread.c (init_bincl_list): Remove.
7527 (bincl_list): Now a std::vector.
7528 (bincls_allocated, next_bincl): Remove.
7529 (free_bincl_list, do_free_bincl_list_cleanup)
7530 (make_cleanup_free_bincl_list): Remove.
7531 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7532 unique_xmalloc_ptr.
7533 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7534 (struct header_file_location): Add constructor.
7535 (add_bincl_to_list): Remove.
7536
7537 2018-05-25 Tom Tromey <tom@tromey.com>
7538
7539 * tui/tui.c (tui_enable): Update.
7540 * mi/mi-interp.c (mi_interp::init): Update.
7541 * interps.h (class interp) <name>: New method.
7542 <m_name>: Rename from name.
7543 (~scoped_restore_interp): Update.
7544 * interps.c (interp::interp): Update.
7545 (interp_add, interp_set, interp_lookup_existing)
7546 (current_interp_named_p): Update.
7547
7548 2018-05-25 Tom Tromey <tom@tromey.com>
7549
7550 * interps.c (interp_name): Remove.
7551 * mi/mi-interp.c (mi_interp::init): Update.
7552 * interps.h (interp_name): Remove.
7553 (~scoped_restore_interp): Update.
7554 * tui/tui.c (tui_enable): Update.
7555
7556 2018-05-25 Tom Tromey <tom@tromey.com>
7557
7558 * utils.c (fputs_maybe_filtered): Update.
7559 * linespec.c (decode_line_full): Update.
7560 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7561 (mi_print_breakpoint_for_event, mi_solib_loaded)
7562 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7563 (mi_user_selected_context_changed): Update.
7564 * mi/mi-main.c (mi_execute_command): Update.
7565 * cli/cli-script.c (execute_control_command): Update.
7566 * python/python.c (execute_gdb_command): Update.
7567 * solib.c (info_sharedlibrary_command): Update.
7568 * interps.c (interp_ui_out): Remove.
7569 * interps.h (interp_ui_out): Remove.
7570
7571 2018-05-25 Tom Tromey <tom@tromey.com>
7572
7573 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7574 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7575 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7576
7577 2018-05-25 Tom Tromey <tom@tromey.com>
7578
7579 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7580 * interps.c (interp_exec): Use scoped_restore.
7581
7582 2018-05-25 Tom Tromey <tom@tromey.com>
7583
7584 * remote.c (remote_target::remote_file_get): Use
7585 gdb::byte_vector.
7586 (remote_target::remote_file_put): Likewise.
7587
7588 2018-05-25 Tom Tromey <tom@tromey.com>
7589
7590 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7591 a std::string.
7592 (get_pe_section_index, add_pe_exported_sym): Update.
7593 (read_pe_exported_syms): Use gdb::def_vector.
7594
7595 2018-05-25 Tom Tromey <tom@tromey.com>
7596
7597 * frame.c (remove_prev_frame): Remove.
7598 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7599
7600 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7601
7602 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7603 Remove prototypes.
7604 * mips-linux-nat.c (supply_fpregset): Always call
7605 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7606 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7607 `mips_fill_fpregset'.
7608 * mips-linux-tdep.c (mips_supply_fpregset)
7609 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7610 (mips_fill_fpregset_wrapper): Remove functions.
7611 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7612 (mips_linux_fpregset): Remove variable.
7613 (mips_linux_iterate_over_regset_sections): Use
7614 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7615 (mips_linux_o32_sigframe_init): Remove comment.
7616
7617 2018-05-25 Pedro Alves <palves@redhat.com>
7618
7619 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7620 (struct readahead_cache, struct packet_reg, struct
7621 remote_arch_state, class remote_state): Move higher up in the
7622 file.
7623 (remote_target::m_remote_state): Now an object instead of a pointer.
7624 (remote_target::get_remote_state): Adjust.
7625
7626 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7627
7628 * stack.c (select_and_print_frame): Delete.
7629 (struct function_bounds): Move struct within function.
7630 (func_command): Most content moved into new function
7631 find_frame_for_function, use new function, print result, add
7632 function comment.
7633 (find_frame_for_function): New function, now returns a result.
7634
7635 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7636
7637 * stack.c (iterate_over_block_arg_vars): Fix comment.
7638 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7639
7640 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7641
7642 PR gdb/23203
7643 * frame.c
7644 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7645 Define.
7646 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7647 Define.
7648 * frame.h (class scoped_restore_selected_frame): New class.
7649 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7650 of any exception, use scoped_restore_selected_frame to restore the
7651 frame instead.
7652
7653 2018-05-24 Pedro Alves <palves@redhat.com>
7654
7655 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7656 override.
7657
7658 2018-05-23 Tom Tromey <tom@tromey.com>
7659
7660 * complaints.c (struct complaints): Remove.
7661 (symfile_complaint_book): Remove.
7662 (series): New global.
7663 (complaint_internal): Update.
7664 (clear_complaints): Update.
7665
7666 2018-05-23 Tom Tromey <tom@tromey.com>
7667
7668 * complaints.c (counters): New global.
7669 (struct complain): Remove.
7670 (struct complaints) <root>: Remove.
7671 (complaint_sentinel): Remove.
7672 (symfile_complaint_book): Update.
7673 (find_complaint) Remove.
7674 (complaint_internal, clear_complaints): Update.
7675
7676 2018-05-23 Tom Tromey <tom@tromey.com>
7677
7678 * complaints.c (struct complain) <file, line>: Remove.
7679 (find_complaint): Remove file, line parameters.
7680 (complaint_internal): Update.
7681
7682 2018-05-23 Tom Tromey <tom@tromey.com>
7683
7684 * complaints.c (vcomplaint): Remove.
7685 (complaint_internal) Merge in contents of vcomplaint.
7686
7687 2018-05-23 Tom Tromey <tom@tromey.com>
7688
7689 * complaints.c (struct complaints) <explanation>: Remove.
7690 (symfile_explanations): Remove.
7691 (symfile_complaint_book): Update.
7692 (vcomplaint): Update.
7693 (struct explanation): Remove.
7694
7695 2018-05-23 Tom Tromey <tom@tromey.com>
7696
7697 * complaints.c (symfile_complaints): Remove.
7698 (complaint_internal): Remove "complaints" parameter.
7699 (clear_complaints, vcomplaint): Remove "c" parameter.
7700 (get_complaints): Remove.
7701 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7702 (dwarf2_debug_line_missing_file_complaint)
7703 (dwarf2_debug_line_missing_end_sequence_complaint)
7704 (dwarf2_complex_location_expr_complaint)
7705 (dwarf2_const_value_length_mismatch_complaint)
7706 (dwarf2_section_buffer_overflow_complaint)
7707 (dwarf2_macro_malformed_definition_complaint)
7708 (dwarf2_invalid_attrib_class_complaint)
7709 (create_addrmap_from_index, dw2_symtab_iter_next)
7710 (dw2_expand_marked_cus)
7711 (dw2_debug_names_iterator::find_vec_in_debug_names)
7712 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7713 (create_debug_type_hash_table, init_cutu_and_read_dies)
7714 (partial_die_parent_scope, add_partial_enumeration)
7715 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7716 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7717 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7718 (create_cus_hash_table, create_dwp_hash_table)
7719 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7720 (dwarf2_rnglists_process, dwarf2_ranges_process)
7721 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7722 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7723 (handle_struct_member_die, process_structure_scope)
7724 (read_array_type, read_common_block, read_module_type)
7725 (read_tag_pointer_type, read_typedef, read_base_type)
7726 (read_subrange_type, load_partial_dies, partial_die_info::read)
7727 (partial_die_info::read, partial_die_info::read)
7728 (partial_die_info::read, read_checked_initial_length_and_offset)
7729 (dwarf2_string_attr, read_formatted_entries)
7730 (dwarf_decode_line_header)
7731 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7732 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7733 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7734 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7735 (get_signatured_type, get_DW_AT_signature_type)
7736 (decode_locdesc, file_file_name, consume_improper_spaces)
7737 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7738 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7739 (dwarf2_symbol_mark_computed, set_die_type)
7740 (read_attribute_value): Update.
7741 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7742 Update.
7743 * dbxread.c (unknown_symtype_complaint)
7744 (lbrac_mismatch_complaint, repeated_header_complaint)
7745 (set_namestring, function_outside_compilation_unit_complaint)
7746 (read_dbx_symtab, process_one_symbol): Update.
7747 * gdbtypes.c (stub_noname_complaint): Update.
7748 * windows-nat.c (handle_unload_dll): Update.
7749 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7750 (decode_base_type): Update.
7751 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7752 (eb_complaint, record_include_begin, record_include_end)
7753 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7754 (process_xcoff_symbol, read_symbol)
7755 (function_outside_compilation_unit_complaint)
7756 (scan_xcoff_symtab): Update.
7757 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7758 * buildsym.c (finish_block_internal, make_blockvector)
7759 (end_symtab_get_static_block, augment_type_symtab): Update.
7760 * dtrace-probe.c (dtrace_process_dof)
7761 (dtrace_static_probe_ops::get_probes): Update.
7762 * complaints.h (struct complaint): Don't declare.
7763 (symfile_complaints): Remove.
7764 (complaint_internal): Remove "complaints" parameter.
7765 (complaint): Likewise.
7766 (clear_complaints): Likewise.
7767 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7768 (reread_symbols): Update.
7769 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7770 (dwarf2_frame_cache, decode_frame_entry): Update.
7771 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7772 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7773 (info_selectors_command): Update.
7774 * macrotab.c (macro_include, check_for_redefinition)
7775 (macro_undef): Update.
7776 * objfiles.c (filter_overlapping_sections): Update.
7777 * stabsread.c (invalid_cpp_abbrev_complaint)
7778 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7779 (define_symbol, error_type, read_type, rs6000_builtin_type)
7780 (stabs_method_name_from_physname, read_member_functions)
7781 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7782 (attach_fields_to_type, complain_about_struct_wipeout)
7783 (read_range_type, read_args, common_block_start)
7784 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7785 Update.
7786 * mdebugread.c (index_complaint, unknown_ext_complaint)
7787 (basic_type_complaint, bad_tag_guess_complaint)
7788 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7789 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7790 (parse_procedure, parse_lines)
7791 (function_outside_compilation_unit_complaint)
7792 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7793 (bad_tag_guess_complaint, reg_value_complaint): Update.
7794 * cp-support.c (demangled_name_complaint): Update.
7795 * macroscope.c (sal_macro_scope): Update.
7796 * dwarf-index-write.c (class debug_names): Update.
7797
7798 2018-05-23 Tom Tromey <tom@tromey.com>
7799
7800 * complaints.c (clear_complaints): Remove "noisy" parameter.
7801 * complaints.h (clear_complaints): Update.
7802 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7803 (reread_symbols): Update.
7804
7805 2018-05-23 Tom Tromey <tom@tromey.com>
7806
7807 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7808 SUBSEQUENT_MESSAGE.
7809 (vcomplaint, clear_complaints): Update.
7810 (symfile_explanations): Remove some messages.
7811
7812 2018-05-23 Tom Tromey <tom@tromey.com>
7813
7814 * complaints.c (internal_complaint): Remove.
7815 * complaints.h (internal_complaint): Remove.
7816
7817 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7818
7819 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7820
7821 2018-05-22 Pedro Alves <palves@redhat.com>
7822
7823 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7824 (remote_fileio_badfd, remote_fileio_return_errno)
7825 (remote_fileio_return_success, remote_fileio_func_open)
7826 (remote_fileio_func_open, remote_fileio_func_close)
7827 (remote_fileio_func_read, remote_fileio_func_write)
7828 (remote_fileio_func_lseek, remote_fileio_func_rename)
7829 (remote_fileio_func_unlink, remote_fileio_func_stat)
7830 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7831 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7832 remote_target parameter.
7833 (remote_fio_func_map) <func>: Add remote_target parameter.
7834 (do_remote_fileio_request, remote_fileio_request):
7835 * remote-fileio.h (remote_fileio_request):
7836 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7837 remote_target parameter.
7838 (remote_notif_process, handle_notification): Adjust to pass down
7839 the remote.
7840 (remote_notif_state_allocate): Add remote_target parameter. Save
7841 it.
7842 * remote-notif.h (struct remote_target): Forward declare.
7843 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7844 remote_target parameter.
7845 (struct remote_notif_state) <remote>: New field.
7846 (remote_notif_ack, remote_notif_parse): Add remote_target
7847 parameter.
7848 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7849 remote_target parameter.
7850 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7851 (threads_listing_context, rmt_thread_action, protocol_feature)
7852 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7853 (packet_result, struct threads_listing_context, remote_state):
7854 Move definitions and declarations higher up.
7855 (remote_target) <~remote_target>: Declare.
7856 (remote_download_command_source, remote_file_put, remote_file_get)
7857 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7858 (remote_hostio_pread_vFile, remote_hostio_send_command)
7859 (remote_hostio_set_filesystem, remote_hostio_open)
7860 (remote_hostio_close, remote_hostio_unlink, remote_state)
7861 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7862 (get_memory_write_packet_size, get_memory_read_packet_size)
7863 (append_pending_thread_resumptions, remote_detach_1)
7864 (append_resumption, remote_resume_with_vcont)
7865 (add_current_inferior_and_thread, wait_ns, wait_as)
7866 (process_stop_reply, remote_notice_new_inferior)
7867 (process_initial_stop_replies, remote_add_thread)
7868 (btrace_sync_conf, remote_btrace_maybe_reopen)
7869 (remove_new_fork_children, kill_new_fork_children)
7870 (discard_pending_stop_replies, stop_reply_queue_length)
7871 (check_pending_events_prevent_wildcard_vcont)
7872 (discard_pending_stop_replies_in_queue, stop_reply)
7873 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7874 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7875 (remote_interrupt_as, remote_interrupt_ns)
7876 (remote_get_noisy_reply, remote_query_attached)
7877 (remote_add_inferior, remote_current_thread, get_current_thread)
7878 (set_thread, set_general_thread, set_continue_thread)
7879 (set_general_process, write_ptid)
7880 (remote_unpack_thread_info_response, remote_get_threadinfo)
7881 (parse_threadlist_response, remote_get_threadlist)
7882 (remote_threadlist_iterator, remote_get_threads_with_ql)
7883 (remote_get_threads_with_qxfer)
7884 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7885 (get_offsets, remote_check_symbols, remote_supported_packet)
7886 (remote_query_supported, remote_packet_size)
7887 (remote_serial_quit_handler, remote_detach_pid)
7888 (remote_vcont_probe, remote_resume_with_hc)
7889 (send_interrupt_sequence, interrupt_query)
7890 (remote_notif_get_pending_events, fetch_register_using_p)
7891 (send_g_packet, process_g_packet, fetch_registers_using_g)
7892 (store_register_using_P, store_registers_using_G)
7893 (set_remote_traceframe, check_binary_download)
7894 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7895 (remote_xfer_live_readonly_partial, remote_read_bytes)
7896 (remote_send_printf, remote_flash_write, readchar)
7897 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7898 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7899 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7900 (extended_remote_disable_randomization, extended_remote_run)
7901 (send_environment_packet, extended_remote_environment_support)
7902 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7903 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7904 (packet_command): Now methods of ...
7905 (remote_target): ... this class.
7906 (m_remote_state) <remote_target>: New field.
7907 (struct remote_state) <stop_reply_queue,
7908 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7909 fields.
7910 (remote_state::remote_state): Allocate stop_reply_queue.
7911 (remote_state): Delete global.
7912 (get_remote_state_raw): Delete.
7913 (remote_target::get_remote_state): Allocate m_remote_state on
7914 demand.
7915 (get_current_remote_target): New.
7916 (remote_ops, extended_remote_ops): Delete.
7917 (wait_forever_enabled_p, remote_async_inferior_event_token):
7918 Delete, moved to struct remote_state.
7919 (remote_target::close): Delete self. Destruction bits split to
7920 ...
7921 (remote_target::~remote_target): ... this.
7922 (show_memory_packet_size): Adjust to use
7923 get_current_remote_target.
7924 (struct protocol_feature) <func>: Add remote_target parameter.
7925 All callers adjusted.
7926 (curr_quit_handler_target): New.
7927 (remote_serial_quit_handler): Reimplement.
7928 (remote_target::open_1): Adjust to use get_current_remote_target.
7929 Heap-allocate remote_target/extended_remote_target instances.
7930 (vcont_builder::vcont_builder): Add remote_target parameter, and
7931 save it in m_remote. All callers adjusted.
7932 (vcont_builder::m_remote): New field.
7933 (vcont_builder::restart, vcont_builder::flush)
7934 (vcont_builder::push_action): Use it.
7935 (remote_target::commit_resume): Use it.
7936 (struct queue_iter_param) <remote>: New field.
7937 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7938 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7939 (check_pending_event_prevents_wildcard_vcont_callback)
7940 (remote_target::check_pending_events_prevent_wildcard_vcont)
7941 (remote_target::discard_pending_stop_replies)
7942 (remote_target::discard_pending_stop_replies_in_queue)
7943 (remote_target::remote_notif_remove_queued_reply): Fill in
7944 'remote' field.
7945 (remote_notif_get_pending_events): New.
7946 (remote_target::readchar, remote_target::remote_serial_write):
7947 Save/restore curr_quit_handler_target.
7948 (putpkt): New.
7949 (kill_new_fork_children): Fill in 'remote' field.
7950 (packet_command): Use get_current_remote_target, defer to
7951 remote_target method of same name.
7952 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7953 parameter, and save it in m_remote. All callers adjusted.
7954 (scoped_remote_fd::release): Use m_remote.
7955 (scoped_remote_fd::m_remote): New field.
7956 (remote_file_put, remote_file_get, remote_file_delete): Use
7957 get_current_remote_target, defer to remote_target method of same
7958 name.
7959 (remote_btrace_reset): Add remote_state paremeter. Update all
7960 callers.
7961 (remote_async_inferior_event_handler). Pass down 'data'.
7962 (remote_new_objfile): Use get_current_remote_target.
7963 (remote_target::vcont_r_supported): New.
7964 (set_range_stepping): Use get_current_remote_target and
7965 remote_target::vcont_r_supported.
7966 (_initialize_remote): Don't allocate 'remote_state' and
7967 'stop_reply_queue' globals.
7968 * remote.h (struct remote_target): Forward declare.
7969 (getpkt, putpkt, remote_notif_get_pending_events): Add
7970 'remote_target' parameter.
7971
7972 2018-05-22 Pedro Alves <palves@redhat.com>
7973
7974 * remote.c (vcont_builder): Now a class. Make all data members
7975 private.
7976 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7977 Declare methods.
7978 (vcont_builder_restart): Rename to ...
7979 (vcont_builder::restart): ... this.
7980 (vcont_builder_flush): Rename to ...
7981 (vcont_builder::flush): ... this.
7982 (vcont_builder_push_action): Rename to ...
7983 (vcont_builder::push_action): ... this.
7984 (remote_target::commit_resume): Adjust.
7985
7986 2018-05-22 Pedro Alves <palves@redhat.com>
7987
7988 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7989 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7990 (get_fixed_memory_packet_size): New.
7991 (get_memory_packet_size): Use it.
7992 (set_memory_packet_size): Don't override the config size with
7993 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7994 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7995 Don't refer to get_memory_packet_size if not connected to a remote
7996 target. Show "(default)" if configured size is 0.
7997
7998 2018-05-22 Pedro Alves <palves@redhat.com>
7999
8000 * remote.c (remote_target::mourn_inferior): Move
8001 discard_pending_stop_replies call here from ...
8002 (_initialize_remote): ... here.
8003
8004 2018-05-22 Pedro Alves <palves@redhat.com>
8005
8006 * remote.c (compare_section_command): Remove set_general_process
8007 call.
8008
8009 2018-05-22 Pedro Alves <palves@redhat.com>
8010
8011 * remote.c (struct packet_reg, struct remote_arch_state):
8012 Move higher up in the file.
8013 (remote_state) <m_arch_states>: Store remote_arch_state values
8014 instead of remote_arch_state pointers.
8015 (remote_state::get_remote_arch_state): Adjust.
8016
8017 2018-05-22 Pedro Alves <palves@redhat.com>
8018
8019 * remote.c: Include <unordered_map>.
8020 (remote_state): Now a class.
8021 (remote_state) <get_remote_arch_state>: Declare method.
8022 <get_remote_arch_state>: New field.
8023 (remote_arch_state) <remote_arch_state>: Declare ctor.
8024 <regs>: Now a unique_ptr.
8025 (remote_gdbarch_data_handle): Delete.
8026 (get_remote_arch_state): Delete.
8027 (remote_state::get_remote_arch_state): New.
8028 (get_remote_state): Adjust to call remote_state's
8029 get_remote_arch_state method.
8030 (init_remote_state): Delete, bits factored out to ...
8031 (remote_arch_state::remote_arch_state): ... this new method.
8032 (get_remote_packet_size, get_memory_packet_size)
8033 (process_g_packet, remote_target::fetch_registers)
8034 (remote_target::prepare_to_store, store_registers_using_G)
8035 (remote_target::store_registers, remote_target::get_trace_status):
8036 Adjust to call remote_state's method.
8037 (_initialize_remote): Remove reference to
8038 remote_gdbarch_data_handle.
8039
8040 2018-05-22 Pedro Alves <palves@redhat.com>
8041
8042 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8043 pread>: New method declarations.
8044 (remote_target::open_1): Adjust.
8045 (readahead_cache_invalidate): Rename to ...
8046 (readahead_cache::invalidate): ... this, and adjust to be a class
8047 method.
8048 (readahead_cache_invalidate_fd): Rename to ...
8049 (readahead_cache::invalidate_fd): ... this, and adjust to be a
8050 class method.
8051 (remote_hostio_pwrite): Adjust.
8052 (remote_hostio_pread_from_cache): Rename to ...
8053 (readahead_cache::pread): ... this, and adjust to be a class
8054 method.
8055 (remote_hostio_close): Adjust.
8056
8057 2018-05-22 Pedro Alves <palves@redhat.com>
8058
8059 * remote.c (remote_hostio_close_cleanup): Delete.
8060 (class scoped_remote_fd): New.
8061 (remote_file_put, remote_file_get): Use it.
8062
8063 2018-05-22 Pedro Alves <palves@redhat.com>
8064
8065 (struct vCont_action_support): Use bool and initialize all fields.
8066 (struct readahead_cache): Initialize all fields.
8067 (remote_state): Use bool and initialize all fields.
8068 (remote_state::remote_state, remote_state::~remote_state): New.
8069 (new_remote_state): Delete.
8070 (_initialize_remote): Use new to allocate remote_state.
8071
8072 2018-05-22 Pedro Alves <palves@redhat.com>
8073 張俊芝 <zjz@zjz.name>
8074
8075 PR gdb/22973
8076 * c-exp.y: Include "c-support.h".
8077 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8078 of tolower. Use c_ident_is_alpha to scan names.
8079 * c-lang.c: Include "c-support.h".
8080 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8081 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8082 * c-support.h: New file, with bits factored out from ...
8083 * cp-name-parser.y: ... this file.
8084 Include "c-support.h".
8085 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8086 c-support.h and renamed.
8087 (symbol_end, yylex): Adjust.
8088
8089 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8090
8091 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8092 parameter type to CORE_ADDR.
8093 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8094 parameter type in declaration to CORE_ADDR.
8095 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8096 target_auxv_search to get AT_HWCAP and use the result to get the
8097 target description.
8098 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8099 to CORE_ADDR. Remove the cast of the return value to unsigned
8100 long. Fix error predicate of target_auxv_search.
8101 (ppc_linux_nat_target::read_description): Change the type of the
8102 hwcap variable to CORE_ADDR.
8103
8104 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8105
8106 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8107 if the size of fpscr is larger than 32 bits.
8108
8109 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8110
8111 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8112 (ppc32_linux_vsxregmap): New global.
8113 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8114 regcache_supply_regset, and regcache_collect_regset.
8115 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8116 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8117 (fetch_vsx_register, store_vsx_register): Remove.
8118 (fetch_vsx_registers): Add regno parameter. Get regset using
8119 ppc_linux_vsxregset. Use regset to supply registers.
8120 (store_vsx_registers): Add regno parameter. Get regset using
8121 ppc_linux_vsxregset. Use regset to collect registers.
8122 (fetch_register): Call fetch_vsx_registers instead of
8123 fetch_vsx_register.
8124 (store_register): Call store_vsx_registers instead of
8125 store_vsx_register.
8126 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
8127 new regno parameter.
8128 (store_ppc_registers): Call store_vsx_registers with -1 for the
8129 new regno parameter.
8130 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
8131 (ppc_collect_vsxregset): Remove.
8132
8133 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8134
8135 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
8136 offset fields.
8137 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
8138 for vector register offset fields.
8139 (ppc64_fbsd_reg_offsets): Likewise.
8140 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8141 to vector register offset fields.
8142 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
8143 to vector register offset fields.
8144 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
8145 vector register offset fields.
8146 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
8147 initializers for vector register offset fields.
8148 (rs6000_aix64_reg_offsets): Likewise.
8149 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
8150 (ppc_supply_vrregset): Remove.
8151 (ppc_collect_vrregset): Remove.
8152 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
8153 (ppc_linux_vrregset) : New function.
8154 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
8155 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
8156 (ppc32_linux_vrregset): Remove.
8157 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
8158 and use result instead of ppc32_linux_vrregset.
8159 (ppc32_linux_reg_offsets): Remove initializers for vector register
8160 offset fields.
8161 (ppc64_linux_reg_offsets): Likewise.
8162 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
8163 * ppc-linux-nat.c: Include regset.h.
8164 (gdb_vrregset_t): Adjust comment to account for little-endian
8165 mode.
8166 (supply_vrregset, fill_vrregset): Remove.
8167 (fetch_altivec_register, store_altivec_register): Remove.
8168 (fetch_altivec_registers): Add regno parameter. Get regset using
8169 ppc_linux_vrregset. Use regset to supply registers.
8170 (store_altivec_registers): Add regno parameter. Get regset using
8171 ppc_linux_vrregset. Use regset to collect registers.
8172 (fetch_register): Call fetch_altivec_registers instead of
8173 fetch_altivec_register.
8174 (store_register): Call store_altivec_registers instead of
8175 store_altivec_register.
8176 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
8177 the new regno parameter.
8178 (store_ppc_registers): Call store_altivec_registers with -1 for
8179 the new regno parameter.
8180
8181 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8182
8183 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
8184 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
8185 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
8186 (gdb_vrregset_t): Change array type size to
8187 PPC_LINUX_SIZEOF_VRREGSET.
8188 (gdb_vsxregset_t): Change array type size to
8189 PPC_LINUX_SIZEOF_VSXREGSET.
8190 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
8191 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
8192 PPC_LINUX_SIZEOF_VSXREGSET.
8193
8194 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8195
8196 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
8197 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
8198 nat/ppc-linux.c.
8199 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
8200 ppc_linux_target_wordsize with tid.
8201 (ppc_linux_nat_target::read_description): Call ppc_linux_target
8202 wordsize with tid.
8203 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
8204 (ppc64_64bit_inferior_p): Add static and inline specifiers.
8205 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
8206 tid parameter. Remove static specifier.
8207 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
8208 (ppc_linux_target_wordsize): New declaration.
8209
8210 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8211
8212 * arch/ppc-linux-common.c: New file.
8213 * arch/ppc-linux-common.h: New file.
8214 * arch/ppc-linux-tdesc.h: New file.
8215 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
8216 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
8217 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
8218 arch/ppc-linux-tdesc.h.
8219 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
8220 arch/ppc-linux-tdesc.h.
8221 (ppc_linux_nat_target::read_description): Remove target
8222 description matching code. Fill a ppc_linux_features struct and
8223 call ppc_linux_match_description with it. Move comment about ISA
8224 2.05 to ppc-linux-common.c.
8225 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
8226 arch/ppc-linux-tdesc.h.
8227 (ppc_linux_core_read_description): Remove target description
8228 matching code. Fill a ppc_linux_features struct and call
8229 ppc_linux_match_description with it.
8230 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
8231 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
8232 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
8233 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
8234 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
8235 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
8236 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
8237 (tdesc_powerpc_e500l): Remove.
8238
8239 2018-05-22 Joel Brobecker <brobecker@adacore.com>
8240
8241 * ada-lang.c (catch_assert_command): Pass empty string instead
8242 of NULL for excep_string argument.
8243
8244 2018-05-22 Maciej W. Rozycki <macro@mips.com>
8245
8246 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
8247 the width of the requested register exceeds the width of the
8248 `ptrace' data type.
8249
8250 2018-05-21 Tom Tromey <tom@tromey.com>
8251
8252 * printcmd.c (output_command): Remove.
8253 (output_command_const): Rename to output_command.
8254 * valprint.h (output_command): Rename from output_command_const.
8255 * tracepoint.c (trace_dump_actions): Call output_command.
8256
8257 2018-05-21 Tom Tromey <tom@tromey.com>
8258
8259 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
8260 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
8261 * ada-lang.h (create_ada_exception_catchpoint): Update.
8262 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
8263 std::string.
8264 (create_excep_cond_exprs, ~ada_catchpoint)
8265 (should_stop_exception, print_one_exception)
8266 (print_mention_exception, print_recreate_exception): Update.
8267 (ada_get_next_arg): Remove.
8268 (catch_ada_exception_command_split): Use std::string. Change type
8269 of "excep_string", "cond_string".
8270 (catch_ada_exception_command): Update.
8271 (create_ada_exception_catchpoint): Change type of excep_string.
8272 (ada_exception_sal): Remove excep_string parameter.
8273 (~ada_catchpoint): Remove.
8274
8275 2018-05-21 Tom Tromey <tom@tromey.com>
8276
8277 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
8278 cleanup.
8279
8280 2018-05-21 Tom Tromey <tom@tromey.com>
8281
8282 * ada-lang.c (ada_exception_message_1, ada_exception_message):
8283 Return unique_xmalloc_ptr.
8284 (print_it_exception): Update.
8285
8286 2018-05-21 Tom Tromey <tom@tromey.com>
8287
8288 * tracepoint.c (trace_dump_actions): Use std::string.
8289
8290 2018-05-21 Tom Tromey <tom@tromey.com>
8291
8292 * symfile.c (reread_symbols): Use std::string for original_name.
8293
8294 2018-05-21 Tom Tromey <tom@tromey.com>
8295
8296 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
8297 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
8298 constructor.
8299
8300 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
8301
8302 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
8303 instance to...
8304 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
8305 * objfiles.c (get_objfile_bfd_data): Allocate
8306 objfile_per_bfd_storage with obstack_new when allocating on
8307 obstack.
8308
8309 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
8310
8311 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
8312 OBSTACK_ZALLOC.
8313 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
8314 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
8315 * mdebugread.c (mdebug_build_psymtabs): Likewise.
8316 (add_pending): Likewise.
8317 (parse_symbol): Likewise.
8318 (parse_partial_symbols): Likewise.
8319 (psymtab_to_symtab_1): Likewise.
8320 (new_psymtab): Likewise.
8321 (elfmdebug_build_psymtabs): Likewise.
8322 * minsyms.c (terminate_minimal_symbol_table): Likewise.
8323 * objfiles.c (get_objfile_bfd_data): Likewise.
8324 (objfile_register_static_link): Likewise.
8325 * psymtab.c (allocate_psymtab): Likewise.
8326 * stabsread.c (read_member_functions): Likewise.
8327 * xcoffread.c (xcoff_end_psymtab): Likewise.
8328
8329 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
8330
8331 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
8332 compiler supports std::is_trivially_constructible.
8333 * common/poison.h: Include obstack.h.
8334 (IsMallocable): Define to is_trivially_constructible if the
8335 compiler supports it, define to true_type otherwise.
8336 (xobnew): New.
8337 (XOBNEW): Redefine.
8338 (xobnewvec): New.
8339 (XOBNEWVEC): Redefine.
8340 * gdb_obstack.h (obstack_zalloc): New.
8341 (OBSTACK_ZALLOC): Redefine.
8342 (obstack_calloc): New.
8343 (OBSTACK_CALLOC): Redefine.
8344 (obstack_new): New.
8345 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
8346 (gdbarch_obstack): New declaration in gdbarch.h, definition in
8347 gdbarch.c.
8348 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
8349 obstack_calloc/obstack_zalloc.
8350 (gdbarch_obstack_zalloc): Remove.
8351 * target-descriptions.c (tdesc_data_init): Use obstack_new.
8352
8353 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8354
8355 * stack.c (backtrace_command_1): Remove useless variable int i.
8356
8357 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8358
8359 * stack.c (print_frame_info): Fix comment.
8360
8361 2018-05-18 Tom Tromey <tom@tromey.com>
8362
8363 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
8364 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
8365 (~dwarf2_per_objfile): Update
8366 (dwarf2_get_dwz_file): Use new.
8367 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
8368 unique_ptr.
8369
8370 2018-05-18 Tom Tromey <tom@tromey.com>
8371
8372 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
8373 unique_ptr.
8374 * dwarf2read.c (struct dwp_file): Add constructor and
8375 initializers.
8376 (open_and_init_dwp_file): Return a unique_ptr.
8377 (dwarf2_per_objfile, create_dwp_hash_table)
8378 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
8379 (lookup_dwo_unit_in_dwp): Update.
8380 (open_and_init_dwp_file, get_dwp_file): Update.
8381
8382 2018-05-18 Tom Tromey <tom@tromey.com>
8383
8384 * dwarf2read.c (dwarf2_per_objfile): Update.
8385 (struct mapped_index): Add initializers.
8386 (dwarf2_read_index): Use new.
8387 (dw2_symtab_iter_init): Update.
8388 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
8389 unique_ptr.
8390
8391 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8392
8393 * dwarf2read.c (mapped_index) <total_size>: Remove.
8394
8395 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
8396
8397 * unittests/format_pieces-selftests.c (test_format_specifier):
8398 Add ARI comments.
8399
8400 2018-05-18 Tom Tromey <tom@tromey.com>
8401
8402 * c-typeprint.c (maybe_print_hole): New function.
8403 (c_print_type_struct_field_offset): Update.
8404 (c_type_print_base_struct_union): Call maybe_print_hole.
8405
8406 2018-05-17 Keith Seitz <keiths@redhat.com>
8407
8408 * breakpoint.c (build_bpstat_chain): New function, moved from
8409 bpstat_stop_status.
8410 (bpstat_stop_status): Add optional parameter, `stop_chain'.
8411 If no stop chain is passed, call build_bpstat_chain to build it.
8412 * breakpoint.h (build_bpstat_chain): Declare.
8413 (bpstat_stop_status): Move documentation here from breakpoint.c.
8414 * infrun.c (handle_signal_stop): Before eliding inlined frames,
8415 build the stop chain and pass it to skip_inline_frames.
8416 Pass this stop chain to bpstat_stop_status.
8417 * inline-frame.c: Include breakpoint.h.
8418 (stopped_by_user_bp_inline_frame): New function.
8419 (skip_inline_frames): Add parameter `stop_chain'.
8420 Move documention to inline-frame.h.
8421 If non-NULL, use stopped_by_user_bp_inline_frame to determine
8422 whether the frame should be elided.
8423 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
8424 Add moved documentation and update for new parameter.
8425
8426 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8427
8428 PR cli/14975
8429 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8430 unittests/format_pieces-selftests.c.
8431 * common/format.h (format_piece) <operator==>: New.
8432 (format_pieces) <operator[]>: Remove.
8433 * common/format.c (format_pieces::format_pieces): Handle \e.
8434 * unittests/format_pieces-selftests.c: New.
8435
8436 2018-05-17 Tom Tromey <tom@tromey.com>
8437
8438 PR symtab/23010:
8439 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
8440 (dw2_instantiate_symtab): Add skip_partial parameter.
8441 (dw2_find_last_source_symtab, dw2_map_expand_apply)
8442 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
8443 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
8444 (dw2_expand_symtabs_matching_one)
8445 (dw2_find_pc_sect_compunit_symtab)
8446 (dw2_debug_names_lookup_symbol)
8447 (dw2_debug_names_expand_symtabs_for_function): Update.
8448 (init_cutu_and_read_dies): Add skip_partial parameter.
8449 (process_psymtab_comp_unit, build_type_psymtabs_1)
8450 (process_skeletonless_type_unit, load_partial_comp_unit)
8451 (psymtab_to_symtab_1): Update.
8452 (load_full_comp_unit): Add skip_partial parameter.
8453 (process_imported_unit_die, dwarf2_read_addr_index)
8454 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
8455 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
8456 (read_signatured_type): Update.
8457
8458 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
8459
8460 * value.c (release_value): Remove unused variable.
8461 (record_latest_value): Likewise.
8462 (access_value_history): Likewise.
8463 (preserve_values): Likewise.
8464
8465 2018-05-17 Tom Tromey <tom@tromey.com>
8466
8467 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
8468 Initialize.
8469
8470 2018-05-16 Maciej W. Rozycki <macro@mips.com>
8471
8472 PR gdb/22286
8473 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
8474 Also handle registers whose width is not a multiple of
8475 PTRACE_TYPE_RET.
8476 (linux_nat_trad_target::store_register): Likewise.
8477
8478 2018-05-16 Tom Tromey <tom@tromey.com>
8479
8480 * gdbcore.h (core_bfd): Redefine.
8481 * corelow.c (core_target::close): Update.
8482 (core_target_open): Update.
8483 * progspace.h (struct program_space) <cbfd>: Now a
8484 gdb_bfd_ref_ptr.
8485
8486 2018-05-16 Tom Tromey <tom@tromey.com>
8487
8488 PR cli/19551:
8489 * symfile-add-flags.h (enum symfile_add_flags)
8490 <SYMFILE_NOT_FILENAME>: New constant.
8491 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
8492 objfile name from BFD.
8493 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8494 * minidebug.c (find_separate_debug_file_in_section): Put
8495 ".gnu_debugdata" into BFD's file name.
8496
8497 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
8498
8499 * regcache.c (regcache_read_ftype, regcache_write_ftype):
8500 Remove.
8501
8502 2018-05-15 Tamar Christina <tamar.christina@arm.com>
8503
8504 PR binutils/21446
8505 * aarch64-tdep.c (aarch64_analyze_prologue,
8506 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8507 Indicate not interested in errors.
8508
8509 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8510
8511 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8512 Supply the MIPS_ZERO_REGNUM register.
8513
8514 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8515
8516 * mips-tdep.c (mask_address_var): Make variable static.
8517
8518 2018-05-14 Tom Tromey <tom@tromey.com>
8519
8520 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8521
8522 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8523
8524 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8525 FXSAVE_ADDR for the mxcsr register.
8526
8527 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8528
8529 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8530
8531 2018-05-11 Pedro Alves <palves@redhat.com>
8532
8533 * corelow.c (core_target) <core_target>: No longer inline.
8534 Initialize m_core_gdbarch, m_core_vec and build the section table
8535 here.
8536 <~core_target>: New.
8537 <core_gdbarch, get_core_register_section>: New methods.
8538 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8539 factored out from ...
8540 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8541 (core_ops): Delete.
8542 (sniff_core_bfd): Add gdbarch parameter.
8543 (core_close): Delete, merged into ...
8544 (core_target::close): ... here. Delete self.
8545 (core_close_cleanup): Delete.
8546 (core_target_open): Allocate a core_target on the heap. Use a
8547 unique_ptr instead of a cleanup. Bits moved into the core_target
8548 ctor. Adjust to use core_target methods instead of globals.
8549 (get_core_register_section): Rename to ...
8550 (core_target::get_core_register_section): ... this and adjust.
8551 (struct get_core_registers_cb_data): New.
8552 (get_core_registers_cb): Use it. Use bool.
8553 (core_target::fetch_registers, core_target::files_info)
8554 (core_target::xfer_partial, core_target::read_description)
8555 (core_target::pid_to, core_target::thread_name): Adjust to
8556 reference class fields instead of globals.
8557 * target.h (struct target_ops_deleter, target_ops_up): New.
8558
8559 2018-05-11 Pedro Alves <palves@redhat.com>
8560
8561 * corefile.c (core_file_command): Move to corelow.c.
8562 * corelow.c (the_core_target): Delete.
8563 (core_file_command): Moved from corefile.c. Check exec_bfd
8564 instead of the_core_target. Use target_detach instead of calling
8565 into the_core_target directly.
8566 (maybe_say_no_core_file_now): New.
8567 (core_target::detach): Use it.
8568 (_initialize_corelow): Remove references to the_core_target.
8569 * gdbcore.h (the_core_target): Delete.
8570
8571 2018-05-11 Tom Tromey <tromey@redhat.com>
8572 Pedro Alves <palves@redhat.com>
8573
8574 * corefile.c (core_bfd): Remove.
8575 * gdbcore.h (core_bfd): Now a macro.
8576 * progspace.h (struct program_space) <cbfd>: New field.
8577
8578 2018-05-11 Tom Tromey <tom@tromey.com>
8579
8580 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8581 gdb::def_vector.
8582
8583 2018-05-10 Tom Tromey <tom@tromey.com>
8584
8585 * configure: Rebuild.
8586 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8587
8588 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8589
8590 PR server/23158:
8591 * regformats/regdat.sh: Adjust script, following the addition
8592 of the new expedite_regs parameter to init_target_desc.
8593
8594 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8595
8596 PR gdb/23127
8597 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8598 set_gdbarch_significant_addr_bit.
8599 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8600 set_gdbarch_significant_addr_bit.
8601 * utils.c (address_significant): Update to sign extend addr.
8602
8603 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8604
8605 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8606 (xtensa_linux_init_abi): Limit tdep->num_regs by
8607 tdep->num_nopriv_regs.
8608 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8609 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8610 not initialized.
8611
8612 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8613
8614 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8615
8616 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8617
8618 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8619 (I387_MXCSR_INIT_VAL): New constant.
8620 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8621 buffer if it was supplied by the inferior.
8622 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8623 (i387_xsave_get_clear_bv): New function.
8624 (i387_supply_xsave): Only read x87 control registers from the
8625 xsave buffer if the feature is enabled, and the state will have
8626 been written, otherwise, provide a suitable default.
8627 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8628 including x87 control registers. Update control registers if they
8629 have changed from the default value, and mark features as enabled
8630 as required.
8631 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8632
8633 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8634
8635 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8636
8637 2018-05-07 Tom Tromey <tom@tromey.com>
8638
8639 * configure: Rebuild.
8640 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8641
8642 2018-05-07 Tom Tromey <tom@tromey.com>
8643
8644 PR tdep/20362:
8645 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8646 bit. Use correct value for VDIV.
8647
8648 2018-05-04 Tom Tromey <tom@tromey.com>
8649
8650 * configure: Rebuild.
8651 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8652
8653 2018-05-04 Tom Tromey <tom@tromey.com>
8654
8655 * linux-record.c (record_linux_system_call) <case
8656 RECORD_SYS_RECVFROM>: Add "break".
8657
8658 2018-05-04 Tom Tromey <tom@tromey.com>
8659
8660 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8661 Add missing "break".
8662 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8663 Add missing "break".
8664
8665 2018-05-04 Tom Tromey <tom@tromey.com>
8666
8667 * rs6000-tdep.c (ppc_process_record_op4)
8668 (ppc_process_record_op63): Add fall-through comment.
8669
8670 2018-05-04 Tom Tromey <tom@tromey.com>
8671
8672 * i386-tdep.c (i386_process_record): Add fall-through comment.
8673
8674 2018-05-04 Tom Tromey <tom@tromey.com>
8675
8676 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8677 comment.
8678
8679 2018-05-04 Tom Tromey <tom@tromey.com>
8680
8681 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8682 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8683 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8684 comment.
8685 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8686 comment.
8687 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8688 comment.
8689
8690 2018-05-04 Tom Tromey <tom@tromey.com>
8691
8692 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8693
8694 2018-05-04 Tom Tromey <tom@tromey.com>
8695
8696 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8697 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8698 * symfile.c (section_is_mapped): Fix fall-through comment.
8699 * stabsread.c (define_symbol, read_member_functions): Fix
8700 fall-through comment.
8701 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8702 comment.
8703 * remote.c (remote_wait_as): Fix fall-through comment.
8704 * p-exp.y (yylex): Fix fall-through comment.
8705 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8706 comment.
8707 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8708 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8709 * jv-exp.y (yylex): Fix fall-through comment.
8710 * go-exp.y (lex_one_token): Fix fall-through comment.
8711 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8712 fall-through comment.
8713 * f-exp.y (yylex): Fix fall-through comment.
8714 * dwarf2read.c (process_die): Fix fall-through comments.
8715 * dbxread.c (process_one_symbol): Fix fall-through comment.
8716 * d-exp.y (lex_one_token): Fix fall-through comment.
8717 * cp-name-parser.y (yylex): Fix fall-through comment.
8718 * coffread.c (coff_symtab_read): Fix fall-through comment.
8719 * c-exp.y (lex_one_token): Fix fall-through comment.
8720 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8721 comment.
8722 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8723 comment.
8724
8725 2018-05-04 Tom Tromey <tom@tromey.com>
8726
8727 PR python/22730:
8728 * NEWS: Mention gdb.execute change.
8729 * gdbcmd.h (execute_control_command): Don't declare.
8730 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8731 execute_control_commands, execute_control_commands_to_string.
8732 * cli/cli-script.h (execute_control_commands)
8733 (execute_control_commands_to_string): Declare.
8734 (execute_control_command): Add from_tty parameter.
8735 * cli/cli-script.c (execute_control_commands)
8736 (execute_control_commands_to_string): New functions.
8737 (execute_user_command): Use execute_control_commands.
8738 (execute_control_command_1): Add "from_tty" parameter. Update.
8739 (execute_control_command): Likewise.
8740
8741 2018-05-04 Tom Tromey <tom@tromey.com>
8742
8743 PR python/22731:
8744 * NEWS: Mention that breakpoint commands are writable.
8745 * python/py-breakpoint.c (bppy_set_commands): New function.
8746 (breakpoint_object_getset) <"commands">: Use it.
8747
8748 2018-05-04 Tom Tromey <tom@tromey.com>
8749
8750 * tracepoint.c (actions_command): Update.
8751 * mi/mi-cmd-break.c (mi_command_line_array)
8752 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8753 (mi_read_next_line): Remove.
8754 (mi_cmd_break_commands): Update.
8755 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8756 function_view.
8757 * cli/cli-script.c (get_command_line): Update.
8758 (process_next_line): Use function_view. Constify.
8759 (recurse_read_control_structure, read_command_lines)
8760 (read_command_lines_1): Change argument types to function_view.
8761 (do_define_command, document_command): Update.
8762 * breakpoint.h (check_tracepoint_command): Don't declare.
8763 * breakpoint.c (check_tracepoint_command): Remove.
8764 (commands_command_1, create_tracepoint_from_upload): Update.
8765
8766 2018-05-04 Tom Tromey <tom@tromey.com>
8767
8768 PR gdb/11750:
8769 * cli/cli-script.h (enum command_control_type) <define_control>:
8770 New constant.
8771 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8772 (build_command_line, execute_control_command_1)
8773 (process_next_line): Likewise.
8774 (do_define_command): New function, extracted from define_command.
8775 (define_command): Use it.
8776
8777 2018-05-04 Tom Tromey <tom@tromey.com>
8778
8779 * tracepoint.c (actions_command): Update.
8780 * cli/cli-script.h (read_command_lines): Update.
8781 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8782 (MAX_TMPBUF): Remove define.
8783 (define_command): Use string_printf.
8784 (document_command): Likewise.
8785 * breakpoint.c (commands_command_1): Update.
8786
8787 2018-05-04 Tom Tromey <tom@tromey.com>
8788
8789 * top.c (execute_command): Update.
8790 * cli/cli-script.h (print_command_lines): Now varargs.
8791 * cli/cli-script.c (print_command_lines): Now varargs.
8792 (execute_control_command_1) <case while_control, case if_control>:
8793 Update.
8794
8795 2018-05-04 Tom Tromey <tom@tromey.com>
8796
8797 * tracepoint.c (all_tracepoint_actions): Rename from
8798 all_tracepoint_actions_and_cleanup. Change return type.
8799 (actions_command, encode_actions_1, encode_actions)
8800 (trace_dump_actions, tdump_command): Update.
8801 * remote.c (remote_download_command_source): Update.
8802 * python/python.c (gdbpy_eval_from_control_command)
8803 (python_command, python_interactive_command): Update.
8804 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8805 * guile/guile.c (guile_command)
8806 (gdbscm_eval_from_control_command, guile_command): Update.
8807 * compile/compile.c (compile_code_command)
8808 (compile_print_command, compile_to_object): Update.
8809 * cli/cli-script.h (struct command_lines_deleter): New.
8810 (counted_command_line): New typedef.
8811 (struct command_line): Add constructor, destructor.
8812 <body_list>: Remove.
8813 <body_list_0, body_list_1>: New members.
8814 (command_line_up): Remove typedef.
8815 (read_command_lines, read_command_lines_1, get_command_line):
8816 Update.
8817 (copy_command_lines): Don't declare.
8818 * cli/cli-script.c (build_command_line): Use "new".
8819 (get_command_line): Return counted_command_line.
8820 (print_command_lines, execute_user_command)
8821 (execute_control_command_1, while_command, if_command): Update.
8822 (realloc_body_list): Remove.
8823 (process_next_line, recurse_read_control_structure): Update.
8824 (read_command_lines, read_command_lines_1): Return counted_command_line.
8825 (free_command_lines): Use "delete".
8826 (copy_command_lines): Remove.
8827 (define_command, document_command, show_user_1): Update.
8828 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8829 a counted_command_line.
8830 * breakpoint.h (counted_command_line): Remove typedef.
8831 (breakpoint_set_commands): Update.
8832 * breakpoint.c (check_no_tracepoint_commands)
8833 (validate_commands_for_breakpoint): Update.
8834 (breakpoint_set_commands): Change commands to be a
8835 counted_command_line.
8836 (commands_command_1, update_dprintf_command_list)
8837 (create_tracepoint_from_upload): Update.
8838
8839 2018-05-04 Tom Tromey <tom@tromey.com>
8840
8841 * cli/cli-decode.h (cmd_list_element): New constructor.
8842 (~cmd_list_element): New destructor.
8843 (struct cmd_list_element): Add initializers.
8844 * cli/cli-decode.c (do_add_cmd): Use "new".
8845 (delete_cmd): Use "delete".
8846
8847 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8848 Pedro Alves <palves@redhat.com>
8849
8850 PR breakpoints/19806 and support for PR external/20207.
8851 * NEWS: Mention Aarch64 watchpoint improvements.
8852 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8853 watchpoints and PR external/20207 watchpoints.
8854 * nat/aarch64-linux-hw-point.c
8855 (kernel_supports_any_contiguous_range): New.
8856 (aarch64_watchpoint_offset): New.
8857 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8858 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8859 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8860 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8861 next_addr_orig_p. Support PR external/20207 watchpoints.
8862 (aarch64_downgrade_regs): New.
8863 (aarch64_dr_state_insert_one_point): New parameters offset and
8864 addr_orig.
8865 (aarch64_dr_state_remove_one_point): Likewise.
8866 (aarch64_handle_breakpoint): Update caller.
8867 (aarch64_handle_aligned_watchpoint): Likewise.
8868 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8869 aligned_offset.
8870 (aarch64_linux_set_debug_regs): Remove const from state. Call
8871 aarch64_downgrade_regs.
8872 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8873 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8874 (DR_CONTROL_MASK): ... this.
8875 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8876 (unsigned int aarch64_watchpoint_offset): New prototype.
8877 (aarch64_linux_set_debug_regs): Remove const from state.
8878 * utils.c (align_up, align_down): Move to ...
8879 * common/common-utils.c (align_up, align_down): ... here.
8880 * utils.h (align_up, align_down): Move to ...
8881 * common/common-utils.h (align_up, align_down): ... here.
8882
8883 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8884
8885 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8886 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8887 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8888 Re-implement to match the ABI as summarized in GCC's
8889 gcc/config/sparc/sparc.c. All callers updated.
8890 (sparc32_store_arguments): Remove assertion.
8891
8892 2018-05-04 Tom Tromey <tom@tromey.com>
8893
8894 * printcmd.c: Don't include tui.h.
8895 (decode_format): Use skip_spaces.
8896
8897 2018-05-04 Tom Tromey <tom@tromey.com>
8898
8899 PR gdb/22619:
8900 * printcmd.c (last_count): New global.
8901 (x_command): Use saved count when repeating.
8902
8903 2018-05-04 Tom Tromey <tom@tromey.com>
8904
8905 * nto-procfs.c (do_closedir_cleanup): Remove.
8906 (procfs_pidlist): Use gdb_dir_up.
8907 * procfs.c (do_closedir_cleanup): Remove.
8908 (proc_update_threads): Use gdb_dir_up.
8909 * common/filestuff.h (struct gdb_dir_deleter): New.
8910 (gdb_dir_up): New typedef.
8911
8912 2018-05-04 Tom Tromey <tom@tromey.com>
8913
8914 * ada-lang.c (print_mention_exception): Use std::string.
8915
8916 2018-05-04 Tom Tromey <tom@tromey.com>
8917
8918 * ada-lang.c (create_excep_cond_exprs): Update.
8919 (ada_exception_catchpoint_cond_string): Use std::string.
8920
8921 2018-05-04 Tom Tromey <tom@tromey.com>
8922
8923 * ada-lang.c (xget_renaming_scope): Return std::string.
8924 (old_renaming_is_invisible): Update.
8925
8926 2018-05-04 Tom Tromey <tom@tromey.com>
8927
8928 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8929 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8930
8931 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8932
8933 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8934
8935 2018-05-04 Tom Tromey <tom@tromey.com>
8936
8937 * remote.c (remote_query_supported_append): Change type.
8938 (remote_check_symbols): Update.
8939
8940 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8941
8942 PR gdb/11420
8943 * configure.ac: Prepend libpython.
8944 * python/python-config.py: Likewise.
8945 * configure: Regenerate.
8946
8947 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8948
8949 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8950
8951 2018-05-03 Pedro Alves <palves@redhat.com>
8952
8953 * s390-linux-nat.c
8954 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8955 override. Write 'true' instead of '1'.
8956 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8957 declaration.
8958
8959 2018-05-02 Pedro Alves <palves@redhat.com>
8960
8961 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8962 add_inf_child_target.
8963 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8964 add_inf_child_target.
8965 * aix-thread.c (aix_thread_target_info): New.
8966 (aix_thread_target) <shortname, longname, doc>: Delete.
8967 <info>: New.
8968 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8969 add_inf_child_target.
8970 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8971 add_inf_child_target.
8972 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8973 add_inf_child_target.
8974 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8975 add_inf_child_target.
8976 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8977 add_inf_child_target.
8978 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8979 add_inf_child_target.
8980 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8981 add_inf_child_target.
8982 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8983 add_inf_child_target.
8984 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8985 add_inf_child_target.
8986 * bfd-target.c (target_bfd_target_info): New.
8987 (target_bfd) <shortname, longname, doc>: Delete.
8988 <info>: New.
8989 * bsd-kvm.c (bsd_kvm_target_info): New.
8990 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8991 <info>: New.
8992 (bsd_kvm_target::open): Rename to ...
8993 (bsd_kvm_target_open): ... this. Adjust.
8994 * bsd-uthread.c (bsd_uthread_target_info): New.
8995 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8996 <info>: New.
8997 * corefile.c (core_file_command): Adjust.
8998 * corelow.c (core_target_info): New.
8999 (core_target) <shortname, longname, doc>: Delete.
9000 <info>: New.
9001 (core_target::open): Rename to ...
9002 (core_target_open): ... this. Adjust.
9003 * ctf.c (ctf_target_info): New.
9004 (ctf_target) <shortname, longname, doc>: Delete.
9005 <info>: New.
9006 (ctf_target::open): Rename to ...
9007 (ctf_target_open): ... this.
9008 (_initialize_ctf): Adjust.
9009 * exec.c (exec_target_info): New.
9010 (exec_target) <shortname, longname, doc>: Delete.
9011 <info>: New.
9012 (exec_target::open): Rename to ...
9013 (exec_target_open): ... this.
9014 * gdbcore.h (core_target_open): Declare.
9015 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9016 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9017 add_inf_child_target.
9018 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9019 add_inf_child_target.
9020 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9021 add_inf_child_target.
9022 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9023 add_inf_child_target.
9024 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9025 add_inf_child_target.
9026 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9027 add_inf_child_target.
9028 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9029 add_inf_child_target.
9030 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9031 add_inf_child_target.
9032 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9033 add_inf_child_target.
9034 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9035 add_inf_child_target.
9036 * inf-child.c (inf_child_target_info): New.
9037 (inf_child_target::info): New.
9038 (inf_child_open_target): Remove 'target' parameter. Use
9039 get_native_target instead.
9040 (inf_child_target::open): Delete.
9041 (add_inf_child_target): New.
9042 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9043 Delete.
9044 <info>: New.
9045 (add_inf_child_target): Declare.
9046 (inf_child_open_target): Declare.
9047 * linux-thread-db.c (thread_db_target_info): New.
9048 (thread_db_target) <shortname, longname, doc>: Delete.
9049 <info>: New.
9050 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9051 add_inf_child_target.
9052 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9053 add_inf_child_target.
9054 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9055 add_inf_child_target.
9056 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9057 add_inf_child_target.
9058 * make-target-delegates (print_class): Adjust.
9059 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9060 add_inf_child_target.
9061 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9062 add_inf_child_target.
9063 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9064 add_inf_child_target.
9065 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9066 add_inf_child_target.
9067 * nto-procfs.c (nto_native_target_info): New.
9068 (nto_procfs_target_native) <shortname, longname, doc>:
9069 Delete.
9070 <info>: New.
9071 (nto_procfs_target_info): New.
9072 (nto_procfs_target_procfs) <shortname, longname, doc>:
9073 Delete.
9074 <info>: New.
9075 (init_procfs_targets): Adjust.
9076 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9077 add_inf_child_target.
9078 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9079 add_inf_child_target.
9080 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9081 add_inf_child_target.
9082 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9083 add_inf_child_target.
9084 * ravenscar-thread.c (ravenscar_target_info): New.
9085 (ravenscar_thread_target) <shortname, longname, doc>:
9086 Delete.
9087 <info>: New.
9088 * record-btrace.c (record_btrace_target_info):
9089 (record_btrace_target) <shortname, longname, doc>: Delete.
9090 <info>: New.
9091 (record_btrace_target::open): Rename to ...
9092 (record_btrace_target_open): ... this. Adjust.
9093 * record-full.c (record_longname, record_doc): New.
9094 (record_full_base_target) <shortname, longname, doc>: Delete.
9095 <info>: New.
9096 (record_full_target_info): New.
9097 (record_full_target): <shortname>: Delete.
9098 <info>: New.
9099 (record_full_core_open_1, record_full_open_1): Update comments.
9100 (record_full_base_target::open): Rename to ...
9101 (record_full_open): ... this.
9102 (cmd_record_full_restore): Update.
9103 (_initialize_record_full): Update.
9104 * remote-sim.c (remote_sim_target_info): New.
9105 (gdbsim_target) <shortname, longname, doc>: Delete.
9106 <info>: New.
9107 (gdbsim_target::open): Rename to ...
9108 (gdbsim_target_open): ... this.
9109 (_initialize_remote_sim): Adjust.
9110 * remote.c (remote_doc): New.
9111 (remote_target_info): New.
9112 (remote_target) <shortname, longname, doc>: Delete.
9113 <info>: New.
9114 (extended_remote_target_info): New.
9115 (extended_remote_target) <shortname, longname, doc>: Delete.
9116 <info>: New.
9117 (remote_target::open_1): Make static. Adjust.
9118 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
9119 * s390-linux-nat.c (_initialize_s390_nat): Use
9120 add_inf_child_target.
9121 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
9122 add_inf_child_target.
9123 * sol-thread.c (thread_db_target_info): New.
9124 (sol_thread_target) <shortname, longname, doc>: Delete.
9125 <info>: New.
9126 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
9127 add_inf_child_target.
9128 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
9129 add_inf_child_target.
9130 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
9131 add_inf_child_target.
9132 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
9133 add_inf_child_target.
9134 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
9135 add_inf_child_target.
9136 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
9137 add_inf_child_target.
9138 * spu-linux-nat.c (_initialize_spu_nat): Use
9139 add_inf_child_target.
9140 * spu-multiarch.c (spu_multiarch_target_info): New.
9141 (spu_multiarch_target) <shortname, longname, doc>: Delete.
9142 <info>: New.
9143 * target-delegates.c: Regenerate.
9144 * target.c: Include <unordered_map>.
9145 (target_ops_p): Delete.
9146 (DEF_VEC_P(target_ops_p)): Delete.
9147 (target_factories): New.
9148 (test_target_info): New.
9149 (test_target_ops::info): New.
9150 (open_target): Adjust to use target_factories.
9151 (add_target_with_completer): Rename to ...
9152 (add_target): ... this. Change prototype. Register target_info
9153 and open callback in target_factories. Register target_info in
9154 command context instead of target_ops.
9155 (add_target): Delete old implementation.
9156 (add_deprecated_target_alias): Change prototype. Adjust.
9157 (the_native_target): New.
9158 (set_native_target, get_native_target): New.
9159 (find_default_run_target): Use the_native_target.
9160 (find_attach_target, find_run_target): Simplify.
9161 (target_ops::open): Delete.
9162 (dummy_target_info): New.
9163 (dummy_target::shortname, dummy_target::longname)
9164 (dummy_target::doc): Delete.
9165 (dummy_target::info): New.
9166 (debug_target::shortname, debug_target::longname)
9167 (debug_target::doc): Delete.
9168 (debug_target::info): New.
9169 * target.h (struct target_info): New.
9170 (target_ops::~target_ops): Add comment.
9171 (target_ops::info): New.
9172 (target_ops::shortname, target_ops::longname, target_ops::doc): No
9173 longer virtual. Implement in terms of target_info.
9174 (set_native_target, get_native_target): Declare.
9175 (target_open_ftype): New.
9176 (add_target, add_target_with_completer)
9177 (add_deprecated_target_alias): Change prototype.
9178 (test_target) <shortname, longname, doc>: Delete.
9179 <info>: New.
9180 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
9181 add_inf_child_target.
9182 * tracefile-tfile.c (tfile_target_info): New.
9183 (tfile_target) <shortname, longname, doc>: Delete.
9184 <info>: New.
9185 (tfile_target::open): Rename to ...
9186 (tfile_target_open): ... this.
9187 (_initialize_tracefile_tfile): Adjust.
9188 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
9189 add_inf_child_target.
9190 * windows-nat.c (_initialize_windows_nat): Use
9191 add_inf_child_target.
9192 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
9193 add_inf_child_target.
9194
9195 2018-05-02 Pedro Alves <palves@redhat.com>
9196
9197 * linux-nat.h (linux_nat_target) <low_new_thread,
9198 low_delete_thread, low_new_fork, low_forget_process,
9199 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
9200 New virtual methods.
9201 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9202 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
9203 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
9204 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9205 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
9206 Delete.
9207 * linux-fork.c (delete_fork): Adjust to call low method.
9208 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
9209 (linux_nat_new_fork, linux_nat_forget_process_hook)
9210 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
9211 (linux_nat_status_is_event):
9212 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
9213 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
9214 to call low method.
9215 (sigtrap_is_event): Rename to ...
9216 (linux_nat_target::low_status_is_event): ... this.
9217 (linux_nat_set_status_is_event): Delete.
9218 (save_stop_reason, linux_nat_wait_1)
9219 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
9220 low methods.
9221 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
9222 (linux_nat_set_new_fork, linux_nat_set_forget_process)
9223 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
9224 (linux_nat_set_prepare_to_resume): Delete.
9225 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
9226 low virtual methods.
9227 * amd64-linux-nat.c: Likewise.
9228 * arm-linux-nat.c: Likewise.
9229 * i386-linux-nat.c: Likewise.
9230 * ia64-linux-nat.c: Likewise.
9231 * mips-linux-nat.c: Likewise.
9232 * ppc-linux-nat.c: Likewise.
9233 * s390-linux-nat.c: Likewise.
9234 * sparc64-linux-nat.c: Likewise.
9235 * x86-linux-nat.c: Likewise.
9236 * x86-linux-nat.h: Include "nat/x86-linux.h".
9237 (x86_linux_nat_target) <low_new_fork, low_forget_process,
9238 low_prepare_to_resume, low_new_thread, low_delete_thread>:
9239 Override methods.
9240
9241 2018-05-02 Pedro Alves <palves@redhat.com>
9242
9243 * target.h (target_ops)
9244 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9245 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
9246 stopped_by_watchpoint, have_continuable_watchpoint,
9247 stopped_data_address, watchpoint_addr_within_range,
9248 can_accel_watchpoint_condition, can_run, thread_alive,
9249 has_all_memory, has_memory, has_stack, has_registers,
9250 has_execution, can_async_p, is_async_p, supports_non_stop,
9251 always_non_stop_p, can_execute_reverse, supports_multi_process,
9252 supports_enable_disable_tracepoint,
9253 supports_disable_randomization, supports_string_tracing,
9254 supports_evaluation_of_breakpoint_conditions,
9255 can_run_breakpoint_commands, filesystem_is_local,
9256 can_download_tracepoint, get_trace_state_variable_value,
9257 set_trace_notes, get_tib_address, use_agent, can_use_agent,
9258 record_is_replaying, record_will_replay,
9259 augmented_libraries_svr4_read>: Adjust to return bool.
9260 * aarch64-linux-nat.c: All implementations adjusted.
9261 * aix-thread.c: All implementations adjusted.
9262 * arm-linux-nat.c: All implementations adjusted.
9263 * breakpoint.c: All implementations adjusted.
9264 * bsd-kvm.c: All implementations adjusted.
9265 * bsd-uthread.c: All implementations adjusted.
9266 * corelow.c: All implementations adjusted.
9267 * ctf.c: All implementations adjusted.
9268 * darwin-nat.c: All implementations adjusted.
9269 * darwin-nat.h: All implementations adjusted.
9270 * exec.c: All implementations adjusted.
9271 * fbsd-nat.c: All implementations adjusted.
9272 * fbsd-nat.h: All implementations adjusted.
9273 * gnu-nat.c: All implementations adjusted.
9274 * gnu-nat.h: All implementations adjusted.
9275 * go32-nat.c: All implementations adjusted.
9276 * ia64-linux-nat.c: All implementations adjusted.
9277 * inf-child.c: All implementations adjusted.
9278 * inf-child.h: All implementations adjusted.
9279 * inf-ptrace.c: All implementations adjusted.
9280 * inf-ptrace.h: All implementations adjusted.
9281 * linux-nat.c: All implementations adjusted.
9282 * linux-nat.h: All implementations adjusted.
9283 * mips-linux-nat.c: All implementations adjusted.
9284 * nto-procfs.c: All implementations adjusted.
9285 * ppc-linux-nat.c: All implementations adjusted.
9286 * procfs.c: All implementations adjusted.
9287 * ravenscar-thread.c: All implementations adjusted.
9288 * record-btrace.c: All implementations adjusted.
9289 * record-full.c: All implementations adjusted.
9290 * remote-sim.c: All implementations adjusted.
9291 * remote.c: All implementations adjusted.
9292 * s390-linux-nat.c: All implementations adjusted.
9293 * sol-thread.c: All implementations adjusted.
9294 * spu-multiarch.c: All implementations adjusted.
9295 * target-delegates.c: All implementations adjusted.
9296 * target.c: All implementations adjusted.
9297 * target.h: All implementations adjusted.
9298 * tracefile-tfile.c: All implementations adjusted.
9299 * tracefile.c: All implementations adjusted.
9300 * tracefile.h: All implementations adjusted.
9301 * windows-nat.c: All implementations adjusted.
9302 * x86-linux-nat.h: All implementations adjusted.
9303 * x86-nat.h: All implementations adjusted.
9304
9305 2018-05-02 Pedro Alves <palves@redhat.com>
9306
9307 * make-target-delegates (scan_target_h): Don't trim lines here.
9308 Replace sequences of tabs and/or whitespace with a single
9309 whitespace.
9310 (top level, parsing methods): Trim each line before processing it
9311 here.
9312
9313 2018-05-02 Pedro Alves <palves@redhat.com>
9314 John Baldwin <jhb@freebsd.org>
9315
9316 * target.h (enum strata) <debug_stratum>: New.
9317 (struct target_ops) <all delegation methods>: Replace by C++
9318 virtual methods, and drop "to_" prefix. All references updated
9319 throughout.
9320 <to_shortname, to_longname, to_doc, to_data,
9321 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
9322 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
9323 virtual methods. All references updated throughout.
9324 <can_attach, supports_terminal_ours, can_create_inferior,
9325 get_thread_control_capabilities, attach_no_wait>: New
9326 virtual methods.
9327 <insert_breakpoint, remove_breakpoint>: Now
9328 TARGET_DEFAULT_NORETURN methods.
9329 <info_proc>: Now returns bool.
9330 <to_magic>: Delete.
9331 (OPS_MAGIC): Delete.
9332 (current_target): Delete. All references replaced by references
9333 to ...
9334 (target_stack): ... this. New.
9335 (target_shortname, target_longname): Adjust.
9336 (target_can_run): Now a function declaration.
9337 (default_child_has_all_memory, default_child_has_memory)
9338 (default_child_has_stack, default_child_has_registers)
9339 (default_child_has_execution): Remove target_ops parameter.
9340 (complete_target_initialization): Delete.
9341 (memory_breakpoint_target): New template class.
9342 (test_target_ops): Refactor as a C++ class with virtual methods.
9343 * make-target-delegates (NAME_PART): Tighten.
9344 (POINTER_PART, CP_SYMBOL): New.
9345 (SIMPLE_RETURN_PART): Reimplement.
9346 (VEC_RETURN_PART): Expect less.
9347 (RETURN_PART, VIRTUAL_PART): New.
9348 (METHOD): Adjust to C++ virtual methods.
9349 (scan_target_h): Remove reference to C99.
9350 (dname): Output "target_ops::" prefix.
9351 (write_function_header): Adjust to output a C++ class method.
9352 (write_declaration): New.
9353 (write_delegator): Adjust to output a C++ class method.
9354 (tdname): Output "dummy_target::" prefix.
9355 (write_tdefault, write_debugmethod): Adjust to output a C++ class
9356 method.
9357 (tdefault_names, debug_names): Delete.
9358 (return_types, tdefaults, styles, argtypes_array): New.
9359 (top level): All methods are delegators.
9360 (print_class): New.
9361 (top level): Print dummy_target and debug_target classes.
9362 * target-delegates.c: Regenerate.
9363 * target-debug.h (target_debug_print_enum_info_proc_what)
9364 (target_debug_print_thread_control_capabilities)
9365 (target_debug_print_thread_info_p): New.
9366 * target.c (dummy_target): Delete.
9367 (the_dummy_target, the_debug_target): New.
9368 (target_stack): Now extern.
9369 (set_targetdebug): Push/unpush debug target.
9370 (default_child_has_all_memory, default_child_has_memory)
9371 (default_child_has_stack, default_child_has_registers)
9372 (default_child_has_execution): Remove target_ops parameter.
9373 (complete_target_initialization): Delete.
9374 (add_target_with_completer): No longer call
9375 complete_target_initialization.
9376 (target_supports_terminal_ours): Use regular delegation.
9377 (update_current_target): Delete.
9378 (push_target): No longer check magic number. Don't call
9379 update_current_target.
9380 (unpush_target): Don't call update_current_target.
9381 (target_is_pushed): No longer check magic number.
9382 (target_require_runnable): Skip for all stratums over
9383 process_stratum.
9384 (target_ops::info_proc): New.
9385 (target_info_proc): Use find_target_at and
9386 find_default_run_target.
9387 (target_supports_disable_randomization): Use regular delegation.
9388 (target_get_osdata): Use find_target_at.
9389 (target_ops::open, target_ops::close, target_ops::can_attach)
9390 (target_ops::attach, target_ops::can_create_inferior)
9391 (target_ops::create_inferior, target_ops::can_run)
9392 (target_can_run): New.
9393 (default_fileio_target): Use regular delegation.
9394 (target_ops::fileio_open, target_ops::fileio_pwrite)
9395 (target_ops::fileio_pread, target_ops::fileio_fstat)
9396 (target_ops::fileio_close, target_ops::fileio_unlink)
9397 (target_ops::fileio_readlink): New.
9398 (target_fileio_open_1, target_fileio_unlink)
9399 (target_fileio_readlink): Always call the target method. Handle
9400 FILEIO_ENOSYS.
9401 (return_zero, return_zero_has_execution): Delete.
9402 (init_dummy_target): Delete.
9403 (dummy_target::dummy_target, dummy_target::shortname)
9404 (dummy_target::longname, dummy_target::doc)
9405 (debug_target::debug_target, debug_target::shortname)
9406 (debug_target::longname, debug_target::doc): New.
9407 (target_supports_delete_record): Use regular delegation.
9408 (setup_target_debug): Delete.
9409 (maintenance_print_target_stack): Skip debug_stratum.
9410 (initialize_targets): Instantiate the_dummy_target and
9411 the_debug_target.
9412 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
9413 use target_stack.
9414 (target_auxv_search, fprint_target_auxv): Adjust.
9415 (info_auxv_command): Adjust to use target_stack.
9416 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
9417 * exceptions.c (print_flush): Handle a NULL target_stack.
9418 * regcache.c (target_ops_no_register): Refactor as class with
9419 virtual methods.
9420
9421 * exec.c (exec_target): New class.
9422 (exec_ops): Now an exec_target.
9423 (exec_open, exec_close_1, exec_get_section_table)
9424 (exec_xfer_partial, exec_files_info, exec_has_memory)
9425 (exec_make_note_section): Refactor as exec_target methods.
9426 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
9427 Delete.
9428 (exec_target::find_memory_regions): New.
9429 (_initialize_exec): Don't call init_exec_ops.
9430 * gdbcore.h (exec_file_clear): Delete.
9431
9432 * corefile.c (core_target): Delete.
9433 (core_file_command): Adjust.
9434 * corelow.c (core_target): New class.
9435 (the_core_target): New.
9436 (core_close): Remove target_ops parameter.
9437 (core_close_cleanup): Adjust.
9438 (core_target::close): New.
9439 (core_open, core_detach, get_core_registers, core_files_info)
9440 (core_xfer_partial, core_thread_alive, core_read_description)
9441 (core_pid_to_str, core_thread_name, core_has_memory)
9442 (core_has_stack, core_has_registers, core_info_proc): Rework as
9443 core_target methods.
9444 (ignore, core_remove_breakpoint, init_core_ops): Delete.
9445 (_initialize_corelow): Initialize the_core_target.
9446 * gdbcore.h (core_target): Delete.
9447 (the_core_target): New.
9448
9449 * ctf.c: (ctf_target): New class.
9450 (ctf_ops): Now a ctf_target.
9451 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
9452 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
9453 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
9454 methods.
9455 (init_ctf_ops): Delete.
9456 (_initialize_ctf): Don't call it.
9457 * tracefile-tfile.c (tfile_target): New class.
9458 (tfile_ops): Now a tfile_target.
9459 (tfile_open, tfile_close, tfile_files_info)
9460 (tfile_get_tracepoint_status, tfile_trace_find)
9461 (tfile_fetch_registers, tfile_xfer_partial)
9462 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
9463 Refactor as tfile_target methods.
9464 (tfile_xfer_partial_features): Remove target_ops parameter.
9465 (init_tfile_ops): Delete.
9466 (_initialize_tracefile_tfile): Don't call it.
9467 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
9468 (tracefile_has_stack, tracefile_has_registers)
9469 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
9470 tracefile_target methods.
9471 (init_tracefile_ops): Delete.
9472 (tracefile_target::tracefile_target): New.
9473 * tracefile.h: Include "target.h".
9474 (tracefile_target): New class.
9475 (init_tracefile_ops): Delete.
9476
9477 * spu-multiarch.c (spu_multiarch_target): New class.
9478 (spu_ops): Now a spu_multiarch_target.
9479 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9480 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9481 (spu_search_memory, spu_mourn_inferior): Refactor as
9482 spu_multiarch_target methods.
9483 (init_spu_ops): Delete.
9484 (_initialize_spu_multiarch): Remove references to init_spu_ops,
9485 complete_target_initialization.
9486
9487 * ravenscar-thread.c (ravenscar_thread_target): New class.
9488 (ravenscar_ops): Now a ravenscar_thread_target.
9489 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9490 (ravenscar_thread_alive, ravenscar_pid_to_str)
9491 (ravenscar_fetch_registers, ravenscar_store_registers)
9492 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9493 (ravenscar_stopped_by_hw_breakpoint)
9494 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9495 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9496 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9497 methods.
9498 (init_ravenscar_thread_ops): Delete.
9499 (_initialize_ravenscar): Remove references to
9500 init_ravenscar_thread_ops and complete_target_initialization.
9501
9502 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9503 (bsd_uthread_target): New class.
9504 (bsd_uthread_ops): Now a bsd_uthread_target.
9505 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9506 (bsd_uthread_close, bsd_uthread_mourn_inferior)
9507 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9508 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9509 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9510 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9511 (bsd_uthread_target): Delete function.
9512 (_initialize_bsd_uthread): Remove reference to
9513 complete_target_initialization.
9514
9515 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
9516 (target_bfd): ... this new class.
9517 (target_bfd_xfer_partial, target_bfd_get_section_table)
9518 (target_bfd_close): Refactor as target_bfd methods.
9519 (target_bfd::~target_bfd): New.
9520 (target_bfd_reopen): Adjust.
9521 (target_bfd::close): New.
9522
9523 * record-btrace.c (record_btrace_target): New class.
9524 (record_btrace_ops): Now a record_btrace_target.
9525 (record_btrace_open, record_btrace_stop_recording)
9526 (record_btrace_disconnect, record_btrace_close)
9527 (record_btrace_async, record_btrace_info)
9528 (record_btrace_insn_history, record_btrace_insn_history_range)
9529 (record_btrace_insn_history_from, record_btrace_call_history)
9530 (record_btrace_call_history_range)
9531 (record_btrace_call_history_from, record_btrace_record_method)
9532 (record_btrace_is_replaying, record_btrace_will_replay)
9533 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9534 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9535 (record_btrace_store_registers, record_btrace_prepare_to_store)
9536 (record_btrace_to_get_unwinder)
9537 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9538 (record_btrace_commit_resume, record_btrace_wait)
9539 (record_btrace_stop, record_btrace_can_execute_reverse)
9540 (record_btrace_stopped_by_sw_breakpoint)
9541 (record_btrace_supports_stopped_by_sw_breakpoint)
9542 (record_btrace_stopped_by_hw_breakpoint)
9543 (record_btrace_supports_stopped_by_hw_breakpoint)
9544 (record_btrace_update_thread_list, record_btrace_thread_alive)
9545 (record_btrace_goto_begin, record_btrace_goto_end)
9546 (record_btrace_goto, record_btrace_stop_replaying_all)
9547 (record_btrace_execution_direction)
9548 (record_btrace_prepare_to_generate_core)
9549 (record_btrace_done_generating_core): Refactor as
9550 record_btrace_target methods.
9551 (init_record_btrace_ops): Delete.
9552 (_initialize_record_btrace): Remove reference to
9553 init_record_btrace_ops.
9554 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9555 the execution_direction global.
9556 (record_full_base_target, record_full_target)
9557 (record_full_core_target): New classes.
9558 (record_full_ops): Now a record_full_target.
9559 (record_full_core_ops): Now a record_full_core_target.
9560 (record_full_target::detach, record_full_target::disconnect)
9561 (record_full_core_target::disconnect)
9562 (record_full_target::mourn_inferior, record_full_target::kill):
9563 New.
9564 (record_full_open, record_full_close, record_full_async): Refactor
9565 as methods of the record_full_base_target class.
9566 (record_full_resume, record_full_commit_resume): Refactor
9567 as methods of the record_full_target class.
9568 (record_full_wait, record_full_stopped_by_watchpoint)
9569 (record_full_stopped_data_address)
9570 (record_full_stopped_by_sw_breakpoint)
9571 (record_full_supports_stopped_by_sw_breakpoint)
9572 (record_full_stopped_by_hw_breakpoint)
9573 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9574 methods of the record_full_base_target class.
9575 (record_full_store_registers, record_full_xfer_partial)
9576 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9577 Refactor as methods of the record_full_target class.
9578 (record_full_can_execute_reverse, record_full_get_bookmark)
9579 (record_full_goto_bookmark, record_full_execution_direction)
9580 (record_full_record_method, record_full_info, record_full_delete)
9581 (record_full_is_replaying, record_full_will_replay)
9582 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9583 (record_full_stop_replaying): Refactor as methods of the
9584 record_full_base_target class.
9585 (record_full_core_resume, record_full_core_kill)
9586 (record_full_core_fetch_registers)
9587 (record_full_core_prepare_to_store)
9588 (record_full_core_store_registers, record_full_core_xfer_partial)
9589 (record_full_core_insert_breakpoint)
9590 (record_full_core_remove_breakpoint)
9591 (record_full_core_has_execution): Refactor
9592 as methods of the record_full_core_target class.
9593 (record_full_base_target::supports_delete_record): New.
9594 (init_record_full_ops): Delete.
9595 (init_record_full_core_ops): Delete.
9596 (record_full_save): Refactor as method of the
9597 record_full_base_target class.
9598 (_initialize_record_full): Remove references to
9599 init_record_full_ops and init_record_full_core_ops.
9600
9601 * remote.c (remote_target, extended_remote_target): New classes.
9602 (remote_ops): Now a remote_target.
9603 (extended_remote_ops): Now an extended_remote_target.
9604 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9605 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9606 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9607 (remote_pass_signals, remote_set_syscall_catchpoint)
9608 (remote_program_signals, )
9609 (remote_thread_always_alive): Remove target_ops parameter.
9610 (remote_thread_alive, remote_thread_name)
9611 (remote_update_thread_list, remote_threads_extra_info)
9612 (remote_static_tracepoint_marker_at)
9613 (remote_static_tracepoint_markers_by_strid)
9614 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9615 (remote_open): Refactor as methods of remote_target.
9616 (extended_remote_open, extended_remote_detach)
9617 (extended_remote_attach, extended_remote_post_attach):
9618 (extended_remote_supports_disable_randomization)
9619 (extended_remote_create_inferior): : Refactor as method of
9620 extended_remote_target.
9621 (remote_set_permissions, remote_open_1, remote_detach)
9622 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9623 (remote_resume, remote_commit_resume, remote_stop)
9624 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9625 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9626 (remote_prepare_to_store, remote_store_registers)
9627 (remote_flash_erase, remote_flash_done, remote_files_info)
9628 (remote_kill, remote_mourn, remote_insert_breakpoint)
9629 (remote_remove_breakpoint, remote_insert_watchpoint)
9630 (remote_watchpoint_addr_within_range)
9631 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9632 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9633 (remote_supports_stopped_by_sw_breakpoint)
9634 (remote_stopped_by_hw_breakpoint)
9635 (remote_supports_stopped_by_hw_breakpoint)
9636 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9637 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9638 (remote_verify_memory): Refactor as methods of remote_target.
9639 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9640 parameter.
9641 (remote_xfer_partial, remote_get_memory_xfer_limit)
9642 (remote_search_memory, remote_rcmd, remote_memory_map)
9643 (remote_pid_to_str, remote_get_thread_local_address)
9644 (remote_get_tib_address, remote_read_description): Refactor as
9645 methods of remote_target.
9646 (remote_target::fileio_open, remote_target::fileio_pwrite)
9647 (remote_target::fileio_pread, remote_target::fileio_close): New.
9648 (remote_hostio_readlink, remote_hostio_fstat)
9649 (remote_filesystem_is_local, remote_can_execute_reverse)
9650 (remote_supports_non_stop, remote_supports_disable_randomization)
9651 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9652 (remote_supports_enable_disable_tracepoint)
9653 (remote_supports_string_tracing)
9654 (remote_can_run_breakpoint_commands, remote_trace_init)
9655 (remote_download_tracepoint, remote_can_download_tracepoint)
9656 (remote_download_trace_state_variable, remote_enable_tracepoint)
9657 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9658 (remote_trace_start, remote_get_trace_status)
9659 (remote_get_tracepoint_status, remote_trace_stop)
9660 (remote_trace_find, remote_get_trace_state_variable_value)
9661 (remote_save_trace_data, remote_get_raw_trace_data)
9662 (remote_set_disconnected_tracing, remote_core_of_thread)
9663 (remote_set_circular_trace_buffer, remote_traceframe_info)
9664 (remote_get_min_fast_tracepoint_insn_len)
9665 (remote_set_trace_buffer_size, remote_set_trace_notes)
9666 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9667 (remote_disable_btrace, remote_teardown_btrace)
9668 (remote_read_btrace, remote_btrace_conf)
9669 (remote_augmented_libraries_svr4_read, remote_load)
9670 (remote_pid_to_exec_file, remote_can_do_single_step)
9671 (remote_execution_direction, remote_thread_handle_to_thread_info):
9672 Refactor as methods of remote_target.
9673 (init_remote_ops, init_extended_remote_ops): Delete.
9674 (remote_can_async_p, remote_is_async_p, remote_async)
9675 (remote_thread_events, remote_upload_tracepoints)
9676 (remote_upload_trace_state_variables): Refactor as methods of
9677 remote_target.
9678 (_initialize_remote): Remove references to init_remote_ops and
9679 init_extended_remote_ops.
9680
9681 * remote-sim.c (gdbsim_target): New class.
9682 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9683 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9684 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9685 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9686 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9687 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9688 Refactor as methods of gdbsim_target.
9689 (gdbsim_ops): Now a gdbsim_target.
9690 (init_gdbsim_ops): Delete.
9691 (gdbsim_cntrl_c): Adjust.
9692 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9693
9694 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9695 (the_amd64_linux_nat_target): New.
9696 (amd64_linux_fetch_inferior_registers)
9697 (amd64_linux_store_inferior_registers): Refactor as methods of
9698 amd64_linux_nat_target.
9699 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9700 * i386-linux-nat.c: Don't include "linux-nat.h".
9701 (i386_linux_nat_target): New class.
9702 (the_i386_linux_nat_target): New.
9703 (i386_linux_fetch_inferior_registers)
9704 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9705 as methods of i386_linux_nat_target.
9706 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9707 * inf-child.c (inf_child_ops): Delete.
9708 (inf_child_fetch_inferior_registers)
9709 (inf_child_store_inferior_registers): Delete.
9710 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9711 methods of inf_child_target.
9712 (inf_child_target::supports_terminal_ours)
9713 (inf_child_target::terminal_init)
9714 (inf_child_target::terminal_inferior)
9715 (inf_child_target::terminal_ours_for_output)
9716 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9717 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9718 New.
9719 (inf_child_open, inf_child_disconnect, inf_child_close)
9720 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9721 (inf_child_post_startup_inferior, inf_child_can_run)
9722 (inf_child_pid_to_exec_file): Refactor as methods of
9723 inf_child_target.
9724 (inf_child_follow_fork): Delete.
9725 (inf_child_target::can_create_inferior)
9726 (inf_child_target::can_attach): New.
9727 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9728 (inf_child_target::has_stack, inf_child_target::has_registers)
9729 (inf_child_target::has_execution): New.
9730 (inf_child_fileio_open, inf_child_fileio_pwrite)
9731 (inf_child_fileio_pread, inf_child_fileio_fstat)
9732 (inf_child_fileio_close, inf_child_fileio_unlink)
9733 (inf_child_fileio_readlink, inf_child_use_agent)
9734 (inf_child_can_use_agent): Refactor as methods of
9735 inf_child_target.
9736 (return_zero, inf_child_target): Delete.
9737 (inf_child_target::inf_child_target): New.
9738 * inf-child.h: Include "target.h".
9739 (inf_child_target): Delete function prototype.
9740 (inf_child_target): New class.
9741 (inf_child_open_target, inf_child_mourn_inferior)
9742 (inf_child_maybe_unpush_target): Delete.
9743 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9744 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9745 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9746 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9747 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9748 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9749 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9750 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9751 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9752 methods of inf_ptrace_target.
9753 (inf_ptrace_target): Delete function.
9754 * inf-ptrace.h: Include "inf-child.h".
9755 (inf_ptrace_target): Delete function declaration.
9756 (inf_ptrace_target): New class.
9757 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9758 * linux-nat.c (linux_target): New.
9759 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9760 (linux_nat_target::~linux_nat_target): New.
9761 (linux_child_post_attach, linux_child_post_startup_inferior)
9762 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9763 (linux_child_remove_fork_catchpoint)
9764 (linux_child_insert_vfork_catchpoint)
9765 (linux_child_remove_vfork_catchpoint)
9766 (linux_child_insert_exec_catchpoint)
9767 (linux_child_remove_exec_catchpoint)
9768 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9769 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9770 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9771 (linux_nat_stopped_data_address)
9772 (linux_nat_stopped_by_sw_breakpoint)
9773 (linux_nat_supports_stopped_by_sw_breakpoint)
9774 (linux_nat_stopped_by_hw_breakpoint)
9775 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9776 (linux_nat_kill, linux_nat_mourn_inferior)
9777 (linux_nat_xfer_partial, linux_nat_thread_alive)
9778 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9779 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9780 (linux_child_static_tracepoint_markers_by_strid)
9781 (linux_nat_is_async_p, linux_nat_can_async_p)
9782 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9783 (linux_nat_supports_multi_process)
9784 (linux_nat_supports_disable_randomization, linux_nat_async)
9785 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9786 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9787 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9788 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9789 methods of linux_nat_target.
9790 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9791 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9792 parameter.
9793 (check_stopped_by_watchpoint): Adjust.
9794 (linux_xfer_partial): Delete.
9795 (linux_target_install_ops, linux_target, linux_nat_add_target):
9796 Delete.
9797 (linux_nat_target::linux_nat_target): New.
9798 * linux-nat.h: Include "inf-ptrace.h".
9799 (linux_nat_target): New.
9800 (linux_target, linux_target_install_ops, linux_nat_add_target):
9801 Delete function declarations.
9802 (linux_target): Declare global.
9803 * linux-thread-db.c (thread_db_target): New.
9804 (thread_db_target::thread_db_target): New.
9805 (thread_db_ops): Delete.
9806 (the_thread_db_target): New.
9807 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9808 (thread_db_update_thread_list, thread_db_pid_to_str)
9809 (thread_db_extra_thread_info)
9810 (thread_db_thread_handle_to_thread_info)
9811 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9812 (thread_db_resume): Refactor as methods of thread_db_target.
9813 (init_thread_db_ops): Delete.
9814 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9815 * x86-linux-nat.c: Don't include "linux-nat.h".
9816 (super_post_startup_inferior): Delete.
9817 (x86_linux_nat_target::~x86_linux_nat_target): New.
9818 (x86_linux_child_post_startup_inferior)
9819 (x86_linux_read_description, x86_linux_enable_btrace)
9820 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9821 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9822 methods of x86_linux_nat_target.
9823 (x86_linux_create_target): Delete. Bits folded ...
9824 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9825 pointer.
9826 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9827 (x86_linux_nat_target): New class.
9828 (x86_linux_create_target): Delete.
9829 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9830 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9831 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9832 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9833 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9834 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9835 make extern.
9836 (x86_use_watchpoints): Delete.
9837 * x86-nat.h: Include "breakpoint.h" and "target.h".
9838 (x86_use_watchpoints): Delete.
9839 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9840 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9841 (x86_insert_watchpoint, x86_remove_watchpoint)
9842 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9843 (x86_stopped_by_hw_breakpoint): New declarations.
9844 (x86_nat_target): New template class.
9845
9846 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9847 (the_ppc_linux_nat_target): New.
9848 (ppc_linux_fetch_inferior_registers)
9849 (ppc_linux_can_use_hw_breakpoint)
9850 (ppc_linux_region_ok_for_hw_watchpoint)
9851 (ppc_linux_ranged_break_num_registers)
9852 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9853 (ppc_linux_insert_mask_watchpoint)
9854 (ppc_linux_remove_mask_watchpoint)
9855 (ppc_linux_can_accel_watchpoint_condition)
9856 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9857 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9858 (ppc_linux_watchpoint_addr_within_range)
9859 (ppc_linux_masked_watch_num_registers)
9860 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9861 (ppc_linux_read_description): Refactor as methods of
9862 ppc_linux_nat_target.
9863 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9864
9865 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9866 (procfs_target): New class.
9867 (the_procfs_target): New.
9868 (procfs_target): Delete function.
9869 (procfs_auxv_parse, procfs_attach, procfs_detach)
9870 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9871 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9872 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9873 (procfs_create_inferior, procfs_update_thread_list)
9874 (procfs_thread_alive, procfs_pid_to_str)
9875 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9876 (procfs_stopped_data_address, procfs_insert_watchpoint)
9877 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9878 (proc_find_memory_regions, procfs_info_proc)
9879 (procfs_make_note_section): Refactor as methods of procfs_target.
9880 (_initialize_procfs): Adjust.
9881 * sol-thread.c (sol_thread_target): New class.
9882 (sol_thread_ops): Now a sol_thread_target.
9883 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9884 (sol_thread_fetch_registers, sol_thread_store_registers)
9885 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9886 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9887 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9888 (init_sol_thread_ops): Delete.
9889 (_initialize_sol_thread): Adjust. Remove references to
9890 init_sol_thread_ops and complete_target_initialization.
9891
9892 * windows-nat.c (windows_nat_target): New class.
9893 (windows_fetch_inferior_registers)
9894 (windows_store_inferior_registers, windows_resume, windows_wait)
9895 (windows_attach, windows_detach, windows_pid_to_exec_file)
9896 (windows_files_info, windows_create_inferior)
9897 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9898 (windows_close, windows_pid_to_str, windows_xfer_partial)
9899 (windows_get_tib_address, windows_get_ada_task_ptid)
9900 (windows_thread_name, windows_thread_alive): Refactor as
9901 windows_nat_target methods.
9902 (do_initial_windows_stuff): Adjust.
9903 (windows_target): Delete function.
9904 (_initialize_windows_nat): Adjust.
9905
9906 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9907 (darwin_mourn_inferior, darwin_kill_inferior)
9908 (darwin_create_inferior, darwin_attach, darwin_detach)
9909 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9910 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9911 (darwin_supports_multi_process): Refactor as darwin_nat_target
9912 methods.
9913 (darwin_resume_to, darwin_files_info): Delete.
9914 (_initialize_darwin_inferior): Rename to ...
9915 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9916 * darwin-nat.h: Include "inf-child.h".
9917 (darwin_nat_target): New class.
9918 (darwin_complete_target): Delete.
9919 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9920 (darwin_target): New.
9921 (i386_darwin_fetch_inferior_registers)
9922 (i386_darwin_store_inferior_registers): Refactor as methods of
9923 darwin_nat_target.
9924 (darwin_complete_target): Delete, with ...
9925 (_initialize_i386_darwin_nat): ... bits factored out here.
9926
9927 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9928 (the_alpha_linux_nat_target): New.
9929 (alpha_linux_register_u_offset): Refactor as
9930 alpha_linux_nat_target method.
9931 (_initialize_alpha_linux_nat): Adjust.
9932 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9933 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9934 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9935 methods of linux_nat_trad_target.
9936 (linux_trad_target): Delete.
9937 * linux-nat-trad.h (linux_trad_target): Delete function.
9938 (linux_nat_trad_target): New class.
9939 * mips-linux-nat.c (mips_linux_nat_target): New class.
9940 (super_fetch_registers, super_store_registers, super_close):
9941 Delete.
9942 (the_mips_linux_nat_target): New.
9943 (mips64_linux_regsets_fetch_registers)
9944 (mips64_linux_regsets_store_registers)
9945 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9946 (mips_linux_register_u_offset, mips_linux_read_description)
9947 (mips_linux_can_use_hw_breakpoint)
9948 (mips_linux_stopped_by_watchpoint)
9949 (mips_linux_stopped_data_address)
9950 (mips_linux_region_ok_for_hw_watchpoint)
9951 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9952 (mips_linux_close): Refactor as methods of mips_linux_nat.
9953 (_initialize_mips_linux_nat): Adjust to C++ification.
9954
9955 * aix-thread.c (aix_thread_target): New class.
9956 (aix_thread_ops): Now an aix_thread_target.
9957 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9958 (aix_thread_fetch_registers, aix_thread_store_registers)
9959 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9960 (aix_thread_thread_alive, aix_thread_pid_to_str)
9961 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9962 Refactor as methods of aix_thread_target.
9963 (init_aix_thread_ops): Delete.
9964 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9965 and complete_target_initialization.
9966 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9967 (rs6000_nat_target): New class.
9968 (the_rs6000_nat_target): New.
9969 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9970 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9971 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9972 (super_create_inferior): Delete.
9973 (_initialize_rs6000_nat): Adjust to C++ification.
9974
9975 * arm-linux-nat.c (arm_linux_nat_target): New class.
9976 (the_arm_linux_nat_target): New.
9977 (arm_linux_fetch_inferior_registers)
9978 (arm_linux_store_inferior_registers, arm_linux_read_description)
9979 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9980 (arm_linux_remove_hw_breakpoint)
9981 (arm_linux_region_ok_for_hw_watchpoint)
9982 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9983 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9984 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9985 arm_linux_nat_target.
9986 (_initialize_arm_linux_nat): Adjust to C++ification.
9987
9988 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9989 (the_aarch64_linux_nat_target): New.
9990 (aarch64_linux_fetch_inferior_registers)
9991 (aarch64_linux_store_inferior_registers)
9992 (aarch64_linux_child_post_startup_inferior)
9993 (aarch64_linux_read_description)
9994 (aarch64_linux_can_use_hw_breakpoint)
9995 (aarch64_linux_insert_hw_breakpoint)
9996 (aarch64_linux_remove_hw_breakpoint)
9997 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9998 (aarch64_linux_region_ok_for_hw_watchpoint)
9999 (aarch64_linux_stopped_data_address)
10000 (aarch64_linux_stopped_by_watchpoint)
10001 (aarch64_linux_watchpoint_addr_within_range)
10002 (aarch64_linux_can_do_single_step): Refactor as methods of
10003 aarch64_linux_nat_target.
10004 (super_post_startup_inferior): Delete.
10005 (_initialize_aarch64_linux_nat): Adjust to C++ification.
10006
10007 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10008 (the_hppa_linux_nat_target): New.
10009 (hppa_linux_fetch_inferior_registers)
10010 (hppa_linux_store_inferior_registers): Refactor as methods of
10011 hppa_linux_nat_target.
10012 (_initialize_hppa_linux_nat): Adjust to C++ification.
10013
10014 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10015 (the_ia64_linux_nat_target): New.
10016 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10017 (ia64_linux_stopped_data_address)
10018 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10019 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10020 ia64_linux_nat_target methods.
10021 (super_xfer_partial): Delete.
10022 (_initialize_ia64_linux_nat): Adjust to C++ification.
10023
10024 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10025 (the_m32r_linux_nat_target): New.
10026 (m32r_linux_fetch_inferior_registers)
10027 (m32r_linux_store_inferior_registers): Refactor as
10028 m32r_linux_nat_target methods.
10029 (_initialize_m32r_linux_nat): Adjust to C++ification.
10030
10031 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10032 (the_m68k_linux_nat_target): New.
10033 (m68k_linux_fetch_inferior_registers)
10034 (m68k_linux_store_inferior_registers): Refactor as
10035 m68k_linux_nat_target methods.
10036 (_initialize_m68k_linux_nat): Adjust to C++ification.
10037
10038 * s390-linux-nat.c (s390_linux_nat_target): New class.
10039 (the_s390_linux_nat_target): New.
10040 (s390_linux_fetch_inferior_registers)
10041 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10042 (s390_insert_watchpoint, s390_remove_watchpoint)
10043 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10044 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10045 (s390_auxv_parse, s390_read_description): Refactor as methods of
10046 s390_linux_nat_target.
10047 (_initialize_s390_nat): Adjust to C++ification.
10048
10049 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10050 (the_sparc_linux_nat_target): New.
10051 (_initialize_sparc_linux_nat): Adjust to C++ification.
10052 * sparc-nat.c (sparc_fetch_inferior_registers)
10053 (sparc_store_inferior_registers): Remove target_ops parameter.
10054 * sparc-nat.h (sparc_fetch_inferior_registers)
10055 (sparc_store_inferior_registers): Remove target_ops parameter.
10056 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10057 (the_sparc64_linux_nat_target): New.
10058 (_initialize_sparc64_linux_nat): Adjust to C++ification.
10059
10060 * spu-linux-nat.c (spu_linux_nat_target): New class.
10061 (the_spu_linux_nat_target): New.
10062 (spu_child_post_startup_inferior, spu_child_post_attach)
10063 (spu_child_wait, spu_fetch_inferior_registers)
10064 (spu_store_inferior_registers, spu_xfer_partial)
10065 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10066 methods.
10067 (_initialize_spu_nat): Adjust to C++ification.
10068
10069 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10070 (the_tilegx_linux_nat_target): New.
10071 (fetch_inferior_registers, store_inferior_registers):
10072 Refactor as methods.
10073 (_initialize_tile_linux_nat): Adjust to C++ification.
10074
10075 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10076 (the_xtensa_linux_nat_target): New.
10077 (xtensa_linux_fetch_inferior_registers)
10078 (xtensa_linux_store_inferior_registers): Refactor as
10079 xtensa_linux_nat_target methods.
10080 (_initialize_xtensa_linux_nat): Adjust to C++ification.
10081
10082 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10083 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10084 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10085 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10086 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10087 (fbsd_stopped_by_sw_breakpoint)
10088 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10089 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10090 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10091 (fbsd_post_startup_inferior, fbsd_post_attach)
10092 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10093 (fbsd_set_syscall_catchpoint)
10094 (super_xfer_partial, super_resume, super_wait)
10095 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10096 (fbsd_handle_debug_trap): Remove target_ops parameter.
10097 (fbsd_nat_add_target): Delete.
10098 * fbsd-nat.h: Include "inf-ptrace.h".
10099 (fbsd_nat_add_target): Delete.
10100 (USE_SIGTRAP_SIGINFO): Define.
10101 (fbsd_nat_target): New class.
10102
10103 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10104 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10105 (amd64bsd_target): Delete.
10106 * amd64-bsd-nat.h: New file.
10107 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10108 "x86-bsd-nat.h".
10109 (amd64_fbsd_nat_target): New class.
10110 (the_amd64_fbsd_nat_target): New.
10111 (amd64fbsd_read_description): Refactor as method of
10112 amd64_fbsd_nat_target.
10113 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10114 (_initialize_amd64fbsd_nat): Adjust to C++ification.
10115 * amd64-nat.h (amd64bsd_target): Delete function declaration.
10116 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10117 (i386bsd_store_inferior_registers): Remove target_ops parameter.
10118 (i386bsd_target): Delete.
10119 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
10120 (i386bsd_fetch_inferior_registers)
10121 (i386bsd_store_inferior_registers): Declare.
10122 (i386_bsd_nat_target): New class.
10123 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
10124 (the_i386_fbsd_nat_target): New.
10125 (i386fbsd_resume, i386fbsd_read_description): Refactor as
10126 i386_fbsd_nat_target methods.
10127 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10128 (_initialize_i386fbsd_nat): Adjust to C++ification.
10129 * x86-bsd-nat.c (super_mourn_inferior): Delete.
10130 (x86bsd_mourn_inferior, x86bsd_target): Delete.
10131 (_initialize_x86_bsd_nat): Adjust to C++ification.
10132 * x86-bsd-nat.h: Include "x86-nat.h".
10133 (x86bsd_target): Delete declaration.
10134 (x86bsd_nat_target): New class.
10135
10136 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
10137 (the_aarch64_fbsd_nat_target): New.
10138 (aarch64_fbsd_fetch_inferior_registers)
10139 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
10140 aarch64_fbsd_nat_target.
10141 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
10142 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
10143 (the_alpha_bsd_nat_target): New.
10144 (alphabsd_fetch_inferior_registers)
10145 (alphabsd_store_inferior_registers): Refactor as
10146 alpha_bsd_nat_target methods.
10147 (_initialize_alphabsd_nat): Refactor as methods of
10148 alpha_bsd_nat_target.
10149 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
10150 (the_amd64_nbsd_nat_target): New.
10151 (_initialize_amd64nbsd_nat): Adjust to C++ification.
10152 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
10153 (the_amd64_obsd_nat_target): New.
10154 (_initialize_amd64obsd_nat): Adjust to C++ification.
10155 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
10156 (the_arm_fbsd_nat_target): New.
10157 (arm_fbsd_fetch_inferior_registers)
10158 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
10159 (_initialize_arm_fbsd_nat): Refactor as methods of
10160 arm_fbsd_nat_target.
10161 (_initialize_arm_fbsd_nat): Adjust to C++ification.
10162 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
10163 (the_arm_netbsd_nat_target): New.
10164 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
10165 arm_netbsd_nat_target.
10166 (_initialize_arm_netbsd_nat): Adjust to C++ification.
10167 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
10168 (the_hppa_nbsd_nat_target): New.
10169 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
10170 hppa_nbsd_nat_target methods.
10171 (_initialize_hppanbsd_nat): Adjust to C++ification.
10172 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
10173 (the_hppa_obsd_nat_target): New.
10174 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
10175 methods of hppa_obsd_nat_target.
10176 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
10177 add_target.
10178 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
10179 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
10180 add_target.
10181 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
10182 (_initialize_i386obsd_nat): Use add_target.
10183 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
10184 (the_m68k_bsd_nat_target): New.
10185 (m68kbsd_fetch_inferior_registers)
10186 (m68kbsd_store_inferior_registers): Refactor as methods of
10187 m68k_bsd_nat_target.
10188 (_initialize_m68kbsd_nat): Adjust to C++ification.
10189 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
10190 (the_mips_fbsd_nat_target): New.
10191 (mips_fbsd_fetch_inferior_registers)
10192 (mips_fbsd_store_inferior_registers): Refactor as methods of
10193 mips_fbsd_nat_target.
10194 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
10195 add_target.
10196 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
10197 (the_mips_nbsd_nat_target): New.
10198 (mipsnbsd_fetch_inferior_registers)
10199 (mipsnbsd_store_inferior_registers): Refactor as methods of
10200 mips_nbsd_nat_target.
10201 (_initialize_mipsnbsd_nat): Adjust to C++ification.
10202 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
10203 (the_mips64_obsd_nat_target): New.
10204 (mips64obsd_fetch_inferior_registers)
10205 (mips64obsd_store_inferior_registers): Refactor as methods of
10206 mips64_obsd_nat_target.
10207 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
10208 add_target.
10209 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
10210 nbsd_nat_target.
10211 * nbsd-nat.h: Include "inf-ptrace.h".
10212 (nbsd_nat_target): New class.
10213 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
10214 (obsd_wait): Refactor as methods of obsd_nat_target.
10215 (obsd_add_target): Delete.
10216 * obsd-nat.h: Include "inf-ptrace.h".
10217 (obsd_nat_target): New class.
10218 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
10219 (the_ppc_fbsd_nat_target): New.
10220 (ppcfbsd_fetch_inferior_registers)
10221 (ppcfbsd_store_inferior_registers): Refactor as methods of
10222 ppc_fbsd_nat_target.
10223 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
10224 add_target.
10225 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
10226 (the_ppc_nbsd_nat_target): New.
10227 (ppcnbsd_fetch_inferior_registers)
10228 (ppcnbsd_store_inferior_registers): Refactor as methods of
10229 ppc_nbsd_nat_target.
10230 (_initialize_ppcnbsd_nat): Adjust to C++ification.
10231 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
10232 (the_ppc_obsd_nat_target): New.
10233 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
10234 methods of ppc_obsd_nat_target.
10235 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
10236 add_target.
10237 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
10238 (the_sh_nbsd_nat_target): New.
10239 (shnbsd_fetch_inferior_registers)
10240 (shnbsd_store_inferior_registers): Refactor as methods of
10241 sh_nbsd_nat_target.
10242 (_initialize_shnbsd_nat): Adjust to C++ification.
10243 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
10244 (inf_ptrace_xfer_partial): Delete.
10245 (sparc_xfer_partial, sparc_target): Delete.
10246 * sparc-nat.h (sparc_fetch_inferior_registers)
10247 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
10248 (sparc_target): Delete function declaration.
10249 (sparc_target): New template class.
10250 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
10251 (_initialize_sparcnbsd_nat): Adjust to C++ification.
10252 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
10253 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
10254 add_target.
10255 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
10256 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
10257 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
10258 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
10259 add_target.
10260 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
10261 (the_vax_bsd_nat_target): New.
10262 (vaxbsd_fetch_inferior_registers)
10263 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
10264 methods.
10265 (_initialize_vaxbsd_nat): Adjust to C++ification.
10266
10267 * bsd-kvm.c (bsd_kvm_target): New class.
10268 (bsd_kvm_ops): Now a bsd_kvm_target.
10269 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
10270 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
10271 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
10272 bsd_kvm_target.
10273 (bsd_kvm_return_one): Delete.
10274 (bsd_kvm_add_target): Adjust to C++ification.
10275
10276 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
10277 (nto_procfs_target_procfs): New classes.
10278 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
10279 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
10280 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
10281 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
10282 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
10283 (procfs_remove_hw_breakpoint, procfs_resume)
10284 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
10285 (procfs_kill_inferior, procfs_store_registers)
10286 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
10287 as methods of nto_procfs_target.
10288 (nto_procfs_ops): Now an nto_procfs_target_procfs.
10289 (nto_native_ops): Delete.
10290 (procfs_open, procfs_native_open): Delete.
10291 (nto_native_ops): Now an nto_procfs_target_native.
10292 (init_procfs_targets): Adjust to C++ification.
10293 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
10294 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
10295 Refactor as methods of nto_procfs_target.
10296
10297 * go32-nat.c (go32_nat_target): New class.
10298 (the_go32_nat_target): New.
10299 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
10300 (go32_store_registers, go32_xfer_partial, go32_files_info)
10301 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
10302 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
10303 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
10304 (go32_pid_to_str): Refactor as methods of go32_nat_target.
10305 (go32_target): Delete.
10306 (_initialize_go32_nat): Adjust to C++ification.
10307
10308 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
10309 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
10310 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
10311 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
10312 gnu_nat_target.
10313 (gnu_target): Delete.
10314 * gnu-nat.h (gnu_target): Delete.
10315 (gnu_nat_target): New class.
10316 * i386-gnu-nat.c (gnu_base_target): New.
10317 (i386_gnu_nat_target): New class.
10318 (the_i386_gnu_nat_target): New.
10319 (_initialize_i386gnu_nat): Adjust to C++ification.
10320
10321 2018-05-02 Pedro Alves <palves@redhat.com>
10322
10323 * bfd-target.c (target_bfd_xclose): Rename to ...
10324 (target_bfd_close): ... this.
10325 (target_bfd_reopen): Adjust.
10326 * target.c (target_close): Remove references to to_xclose.
10327 * target.h (target_ops::to_xclose): Delete.
10328 (target_ops::to_close): Update comments.
10329
10330 2018-05-02 Pedro Alves <palves@redhat.com>
10331
10332 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
10333 "linux-nat.h".
10334 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
10335 * inf-ptrace.c (inf_ptrace_register_u_offset)
10336 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10337 (inf_ptrace_store_register, inf_ptrace_store_registers)
10338 (inf_ptrace_trad_target): Move to ...
10339 * linux-nat-trad.c: ... this new file.
10340 * linux-nat-trad.h: New file.
10341 * linux-nat.c (linux_target_install_ops): Make extern.
10342 (linux_trad_target): Delete.
10343 * linux-nat.h (linux_trad_target): Delete declaration.
10344 (linux_target_install_ops): Declare.
10345 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
10346 "linux-nat.h".
10347
10348 2018-05-02 Pedro Alves <palves@redhat.com>
10349
10350 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10351 procfs_target/add_target here.
10352 * procfs.c (procfs_target): Make static.
10353 (_initialize_procfs): Call add_target here.
10354 * procfs.h (struct target_ops): Remove forward declaration.
10355 (procfs_target): Remove declaration.
10356 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
10357
10358 2018-05-02 Pedro Alves <palves@redhat.com>
10359
10360 * procfs.c (procfs_stopped_by_watchpoint)
10361 (procfs_insert_watchpoint, procfs_remove_watchpoint)
10362 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
10363 Forward declare.
10364 (procfs_use_watchpoints): Delete, move contents...
10365 (procfs_target): ... here.
10366 * procfs.h (procfs_use_watchpoints): Delete declaration.
10367 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
10368 procfs_use_watchpoints.
10369 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
10370 procfs_use_watchpoints.
10371
10372 2018-05-02 Tom Tromey <tom@tromey.com>
10373
10374 PR python/20084:
10375 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
10376 and var_zuinteger_unlimited.
10377 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
10378 and PARAM_ZUINTEGER_UNLIMITED.
10379 (set_parameter_value): Handle var_zuinteger and
10380 var_zuinteger_unlimited.
10381 (add_setshow_generic): Likewise.
10382 (parmpy_init): Likewise.
10383
10384 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
10385
10386 PR rust/23124
10387 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
10388 pointer is not null before dereferencing it.
10389
10390 2018-04-30 Tom Tromey <tom@tromey.com>
10391
10392 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
10393 is_mi_like_p.
10394
10395 2018-04-30 Tom Tromey <tom@tromey.com>
10396
10397 * breakpoint.c (mention): Remove use of is_mi_like_p.
10398 (print_mention_ranged_breakpoint): Likewise.
10399 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
10400 of is_mi_like_p.
10401
10402 2018-04-30 Tom Tromey <tom@tromey.com>
10403
10404 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
10405
10406 2018-04-30 Tom Tromey <tom@tromey.com>
10407
10408 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
10409 (info_spu_event_command): Remove some uses of is_mi_like_p.
10410
10411 2018-04-30 Tom Tromey <tom@tromey.com>
10412
10413 * python/py-framefilter.c (py_print_single_arg)
10414 (enumerate_locals, py_print_args, py_print_frame): Remove some
10415 uses of is_mi_like_p.
10416
10417 2018-04-30 Tom Tromey <tom@tromey.com>
10418
10419 * ui-out.c: Update.
10420 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
10421 * ui-out.h (ui_out::is_mi_like_p): Now const.
10422 (ui_out::do_is_mi_like_p): Now const.
10423 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
10424
10425 2018-04-30 Tom Tromey <tom@tromey.com>
10426
10427 * varobj.c (varobj_set_visualizer): Use new_reference.
10428 * python/python.c (gdbpy_decode_line): Use new_reference.
10429 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
10430 new_reference.
10431
10432 2018-04-30 Tom Tromey <tom@tromey.com>
10433
10434 * varobj.c (install_new_value): Use new_reference.
10435 * value.h (value_incref): Return void. Swap intro comment with
10436 value_decref.
10437 * value.c (set_value_parent): Use new_reference.
10438 (value_incref): Return void. Update intro comment.
10439 (release_value): Use new_reference.
10440 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
10441
10442 2018-04-30 Tom Tromey <tom@tromey.com>
10443
10444 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
10445 * gdb_bfd.h (new_bfd_ref): Remove.
10446 (gdb_bfd_open): Update comment.
10447 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
10448 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
10449 (gdb_bfd_fdopenr): Use new_reference.
10450 * exec.c (exec_file_attach): Use new_reference.
10451
10452 2018-04-30 Tom Tromey <tom@tromey.com>
10453
10454 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
10455 method.
10456
10457 2018-04-30 Tom Tromey <tom@tromey.com>
10458
10459 * jit.c (jit_read_code_entry): Use type_align.
10460 * i386-tdep.c (i386_gdbarch_init): Don't call
10461 set_gdbarch_long_long_align_bit.
10462 * gdbarch.sh: Remove long_long_align_bit.
10463 * gdbarch.c, gdbarch.h: Rebuild.
10464 * arc-tdep.c (arc_type_align): New function.
10465 (arc_gdbarch_init): Use arc_type_align. Don't call
10466 set_gdbarch_long_long_align_bit.
10467
10468 2018-04-30 Tom Tromey <tom@tromey.com>
10469
10470 * rust-lang.c (rust_type_alignment): Remove.
10471 (rust_composite_type): Use type_align.
10472
10473 2018-04-30 Tom Tromey <tom@tromey.com>
10474
10475 * NEWS: Mention Type.align.
10476 * python/py-type.c (typy_get_alignof): New function.
10477 (type_object_getset): Add "alignof".
10478
10479 2018-04-30 Tom Tromey <tom@tromey.com>
10480
10481 PR exp/17095:
10482 * NEWS: Update.
10483 * std-operator.def (UNOP_ALIGNOF): New operator.
10484 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10485 New.
10486 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10487 * c-lang.c (c_op_print_tab): Add alignof.
10488 * c-exp.y (ALIGNOF): New token.
10489 (exp): Add "ALIGNOF" production.
10490 (ident_tokens): Add _Alignof and alignof.
10491
10492 2018-04-30 Tom Tromey <tom@tromey.com>
10493
10494 * i386-tdep.c (i386_type_align): New function.
10495 (i386_gdbarch_init): Update.
10496 * gdbarch.sh (type_align): New method.
10497 * gdbarch.c, gdbarch.h: Rebuild.
10498 * arch-utils.h (default_type_align): Declare.
10499 * arch-utils.c (default_type_align): New function.
10500 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10501 (struct type) <align_log2>: New field.
10502 <instance_flags>: Now a bitfield.
10503 (TYPE_RAW_ALIGN): New macro.
10504 (type_align, type_raw_align, set_type_align): Declare.
10505 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10506 functions.
10507 * dwarf2read.c (quirk_rust_enum): Set type alignment.
10508 (get_alignment, maybe_set_alignment): New functions.
10509 (read_structure_type, read_enumeration_type, read_array_type)
10510 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10511 (read_subrange_type, read_base_type): Set type alignment.
10512
10513 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
10514
10515 * dwarf2read.c (read_index_from_section): Use bool.
10516
10517 2018-04-29 Fabian Groffen <grobian@gentoo.org>
10518
10519 PR gdb/22950
10520 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10521 with #ifdef.
10522
10523 2018-04-29 John Reiser <jreiser@BitWagon.com>
10524
10525 PR build/22873
10526 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10527 last step, and do it atomically.
10528
10529 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
10530
10531 * compile/compile-c-types.c (convert_int, convert_float):
10532 Update for C FE v1.
10533
10534 2018-04-27 Tom Tromey <tom@tromey.com>
10535
10536 PR rust/22545:
10537 * rust-lang.c (rust_inclusive_range_type_p): New function.
10538 (rust_range): Handle inclusive ranges.
10539 (rust_compute_range): Likewise.
10540 * rust-exp.y (struct rust_op) <inclusive>: New field.
10541 (DOTDOTEQ): New constant.
10542 (range_expr): Add "..=" productions.
10543 (operator_tokens): Add "..=" token.
10544 (ast_range): Add "inclusive" parameter.
10545 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10546 ranges.
10547 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10548 bounds values.
10549 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10550 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10551 Update comments.
10552 * expprint.c (print_subexp_standard): Handle new bounds values.
10553 (dump_subexp_body_standard): Likewise.
10554
10555 2018-04-27 Tom Tromey <tom@tromey.com>
10556
10557 * configure: Rebuild.
10558 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10559 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10560 "OVERRIDE".
10561 (class symbol_needs_eval_context): Likewise.
10562 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10563 (mock_mapped_index::symbol_name_at): Use "override". Remove
10564 "virtual".
10565 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10566 "override".
10567 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10568 * aarch64-tdep.c (instruction_reader::read): Use "override".
10569 (instruction_reader_test::read): Likewise.
10570 * arm-tdep.c (instruction_reader::read): Use "override".
10571 (instruction_reader_thumb::read): Likewise.
10572
10573 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10574
10575 PR remote/9665
10576 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10577 instead of remote_send.
10578 (remote_send): Remove.
10579
10580 2018-04-26 Pedro Alves <palves@redhat.com>
10581
10582 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10583 find_function_start_sal instead of find_pc_line.
10584
10585 2018-04-26 Pedro Alves <palves@redhat.com>
10586
10587 * breakpoint.c (set_breakpoint_location_function): Handle
10588 mst_data_gnu_ifunc.
10589 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10590 * elfread.c (elf_symtab_read): Give data symbols with
10591 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10592 (elf_rel_plt_read): Update comment.
10593 * linespec.c (convert_linespec_to_sals): Handle
10594 mst_data_gnu_ifunc.
10595 (minsym_found): Handle mst_data_gnu_ifunc.
10596 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10597 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10598 * parse.c (find_minsym_type_and_address): Handle
10599 mst_data_gnu_ifunc.
10600 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10601 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10602 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10603 comment.
10604 <mst_data_gnu_ifunc>: New enumerator.
10605
10606 2018-04-26 Pedro Alves <palves@redhat.com>
10607
10608 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10609 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10610 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10611 Handle it.
10612 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10613 (lookup_minimal_symbol_by_pc): Adjust.
10614 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10615 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10616 * minsyms.h (lookup_msym_prefer): New enum.
10617 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10618 parameter by a lookup_msym_prefer parameter.
10619
10620 2018-04-26 Pedro Alves <palves@redhat.com>
10621
10622 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10623 ends in "@plt" instead of looking at the symbol's section.
10624
10625 2018-04-26 Pedro Alves <palves@redhat.com>
10626
10627 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10628 all references.
10629 (find_pc_partial_function_gnu_ifunc): Rename to ...
10630 (find_pc_partial_function): ... this, and remove references to
10631 'is_gnu_ifunc_p'.
10632 (find_pc_partial_function): Delete old implementation.
10633 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10634
10635 2018-04-26 Pedro Alves <palves@redhat.com>
10636
10637 * linespec.c (struct bound_minimal_symbol_search_key): New.
10638 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10639 skip first line if we found a GNU ifunc minimal symbol by name.
10640 (compare_msymbols): Change parameters to work with a destructured
10641 lhs minsym.
10642 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10643 functions.
10644
10645 2018-04-26 Pedro Alves <palves@redhat.com>
10646
10647 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10648 ifunc targets here. Instead, if we have an ifunc minsym, use its
10649 address/name.
10650 (add_location_to_breakpoint): Store the minsym and the objfile in
10651 the breakpoint location.
10652 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10653 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10654 Record the minsym in the sal.
10655 * symtab.h (symtab_and_line) <msymbol>: New field.
10656
10657 2018-04-26 Pedro Alves <palves@redhat.com>
10658
10659 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10660 unless we actually resolved the ifunc.
10661
10662 2018-04-26 Pedro Alves <palves@redhat.com>
10663
10664 * c-exp.y (variable production): Prefer ifunc minsyms over
10665 regular function symbols.
10666 * symtab.c (find_gnu_ifunc): New function.
10667 * minsyms.h (lookup_msym_prefer): New enum.
10668 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10669 parameter by a lookup_msym_prefer parameter.
10670 * symtab.h (find_gnu_ifunc): New declaration.
10671
10672 2018-04-26 Pedro Alves <palves@redhat.com>
10673
10674 * blockframe.c (find_gnu_ifunc_target_type): New function.
10675 (find_function_type): New.
10676 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10677 return a value with a memory address.
10678 (eval_call): For calls to GNU ifunc functions, try to find the
10679 type of the target function from the type that the resolver
10680 returns.
10681 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10682 symbols.
10683 * infcall.c (find_function_return_type): Delete.
10684 (find_function_addr): Add 'function_type' parameter. For calls to
10685 GNU ifunc functions, try to find the type of the target function
10686 from the type that the resolver returns, and return it via
10687 FUNCTION_TYPE.
10688 (call_function_by_hand_dummy): Adjust to use the function type
10689 returned by find_function_addr.
10690 (find_function_addr): Add 'function_type' parameter and move
10691 description here.
10692 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10693 declarations.
10694
10695 2018-04-26 Pedro Alves <palves@redhat.com>
10696
10697 * c-exp.y (variable production): Skip finding an alias for ifunc
10698 symbols.
10699
10700 2018-04-26 Pedro Alves <palves@redhat.com>
10701
10702 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10703
10704 2018-04-25 Pedro Alves <palves@redhat.com>
10705
10706 * infcmd.c (kill_command): Print the pid as string, not the whole
10707 thread's ptid. Add comment. s/has been killed/killed/ in output
10708 message.
10709 * remote.c (remote_detach_1): Print the pid as string, not the
10710 whole thread's ptid.
10711
10712 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10713 Sergio Durigan Junior <sergiodj@redhat.com>
10714 Pedro Alves <palves@redhat.com>
10715
10716 * infcmd.c (kill_command): Print message when inferior has
10717 been killed.
10718 * inferior.c (print_inferior_events): Remove 'static'. Set as
10719 '1'.
10720 (add_inferior): Improve message printed when
10721 'print_inferior_events' is on.
10722 (exit_inferior): Remove message printed when
10723 'print_inferior_events' is on.
10724 (detach_inferior): Improve message printed when
10725 'print_inferior_events' is on.
10726 (initialize_inferiors): Use 'add_inferior_silent' to set
10727 'current_inferior_'.
10728 * inferior.h (print_inferior_events): Declare here as
10729 'extern'.
10730 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10731 '[Detaching...]' messages when 'print_inferior_events' is on.
10732 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10733 as prefix/suffix for messages. Remove periods. Fix erroneous
10734 'Detaching after fork from child...', replace it by '... from
10735 parent...'.
10736 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10737 prefix/suffix when printing 'Detaching...' messages. Print
10738 them when 'print_inferior_events' is on.
10739 * remote.c (remote_detach_1): Print message when detaching
10740 from inferior and '!is_fork_parent'.
10741
10742 2018-04-24 Tom Tromey <tom@tromey.com>
10743
10744 * cli-out.h: Reindent.
10745
10746 2018-04-24 Tom Tromey <tom@tromey.com>
10747
10748 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10749 (cli_ui_out::do_field_string): Use fputs_filtered.
10750 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10751
10752 2018-04-23 Tom Tromey <tom@tromey.com>
10753
10754 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10755 gdb::unique_xmalloc_ptr.
10756
10757 2018-04-23 Tom Tromey <tom@tromey.com>
10758
10759 * configure: Rebuild.
10760
10761 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10762
10763 PR gdb/23095
10764 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10765 prepare_for_testing. Set normal_bp to r_debug_state if target
10766 is bsd.
10767
10768 2018-04-21 Pedro Alves <palves@redhat.com>
10769 Rajendra SY <rajendra.sy@gmail.com>
10770
10771 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10772 * remote.c (extended_remote_attach): In all-stop mode, mark the
10773 thread as executing.
10774
10775 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10776
10777 * thread.c (thread_apply_all_command): Fix comment.
10778 (thread_command): Fix comment.
10779
10780 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10781
10782 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10783 parameter.
10784 * features/aarch64-core.c (create_feature_aarch64_core):
10785 Regenerate.
10786 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10787 Likewise.
10788 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10789 Likewise.
10790 * features/i386/32bit-avx512.c
10791 (create_feature_i386_32bit_avx512): Likewise.
10792 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10793 Likewise.
10794 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10795 Likewise.
10796 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10797 Likewise.
10798 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10799 Likewise.
10800 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10801 Likewise.
10802 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10803 Likewise.
10804 * features/i386/64bit-avx512.c
10805 (create_feature_i386_64bit_avx512): Likewise.
10806 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10807 Likewise.
10808 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10809 Likewise.
10810 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10811 Likewise.
10812 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10813 Likewise.
10814 * features/i386/64bit-segments.c
10815 (create_feature_i386_64bit_segments): Likewise.
10816 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10817 Likewise.
10818 * features/i386/x32-core.c
10819 (create_feature_i386_x32_core): Likewise.
10820 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10821 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10822 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10823 * target-descriptions.c: In generated code, don't pass xml
10824 filename.
10825
10826 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10827
10828 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10829 (print_xml_feature::visit_post): Likewise.
10830 (print_xml_feature::visit): Likewise.
10831 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10832 (print_xml_feature): Add new class.
10833 * regformats/regdat.sh: Null xmltarget on feature targets.
10834 * target-descriptions.c (struct target_desc): Add xmltarget.
10835 (maintenance_check_tdesc_xml_convert): Add unittest function.
10836 (tdesc_get_features_xml): Add function to get xml.
10837 (maintenance_check_xml_descriptions): Test xml generation.
10838 * xml-tdesc.c (string_read_description_xml): Add function.
10839 * xml-tdesc.h (string_read_description_xml): Add declaration.
10840
10841 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10842
10843 * features/Makefile: Add feature marker to targets with new style
10844 target descriptions.
10845 * regformats/aarch64.dat: Regenerate.
10846 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10847 * regformats/i386/amd64-avx-linux.dat: Likewise.
10848 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10849 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10850 * regformats/i386/amd64-linux.dat: Likewise.
10851 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10852 * regformats/i386/amd64.dat: Likewise.
10853 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10854 * regformats/i386/i386-avx-linux.dat: Likewise.
10855 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10856 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10857 * regformats/i386/i386-linux.dat: Likewise.
10858 * regformats/i386/i386-mmx-linux.dat: Likewise.
10859 * regformats/i386/i386-mpx-linux.dat: Likewise.
10860 * regformats/i386/i386.dat: Likewise.
10861 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10862 * regformats/i386/x32-avx-linux.dat: Likewise.
10863 * regformats/i386/x32-linux.dat: Likewise.
10864 * regformats/tic6x-c62x-linux.dat: Likewise.
10865 * regformats/tic6x-c64x-linux.dat: Likewise.
10866 * regformats/tic6x-c64xp-linux.dat: Likewise.
10867 * regformats/regdat.sh: Parse feature marker.
10868
10869 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10870
10871 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10872 (tdesc_osabi_name): Likewise.
10873 * target-descriptions.c (tdesc_architecture_name): Add new
10874 function.
10875 (tdesc_osabi_name): Likewise.
10876
10877 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10878
10879 * common/tdesc.c (tdesc_predefined_type): Move to here.
10880 (tdesc_named_type): Likewise.
10881 (tdesc_create_vector): Likewise.
10882 (tdesc_create_struct): Likewise.
10883 (tdesc_set_struct_size): Likewise.
10884 (tdesc_create_union): Likewise.
10885 (tdesc_create_flags): Likewise.
10886 (tdesc_create_enum): Likewise.
10887 (tdesc_add_field): Likewise.
10888 (tdesc_add_typed_bitfield): Likewise.
10889 (tdesc_add_bitfield): Likewise.
10890 (tdesc_add_flag): Likewise.
10891 (tdesc_add_enum_value): Likewise.
10892 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10893 (struct tdesc_type_vector): Likewise.
10894 (struct tdesc_type_field): Likewise.
10895 (struct tdesc_type_with_fields): Likewise.
10896 (tdesc_create_enum): Add declaration.
10897 (tdesc_add_typed_bitfield): Likewise.
10898 (tdesc_add_enum_value): Likewise.
10899 * target-descriptions.c (tdesc_type_field): Move from here.
10900 (tdesc_type_builtin): Likewise.
10901 (tdesc_type_vector): Likewise.
10902 (tdesc_type_with_fields): Likewise.
10903 (tdesc_predefined_types): Likewise.
10904 (tdesc_named_type): Likewise.
10905 (tdesc_create_vector): Likewise.
10906 (tdesc_create_struct): Likewise.
10907 (tdesc_set_struct_size): Likewise.
10908 (tdesc_create_union): Likewise.
10909 (tdesc_create_flags): Likewise.
10910 (tdesc_create_enum): Likewise.
10911 (tdesc_add_field): Likewise.
10912 (tdesc_add_typed_bitfield): Likewise.
10913 (tdesc_add_bitfield): Likewise.
10914 (tdesc_add_flag): Likewise.
10915 (tdesc_add_enum_value): Likewise.
10916 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10917 (tdesc_add_typed_bitfield): Likewise.
10918 (tdesc_add_enum_value): Likewise.
10919
10920 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10921
10922 * common/tdesc.c (tdesc_feature::accept): Move to here.
10923 (tdesc_feature::operator==): Likewise.
10924 (tdesc_create_reg): Likewise.
10925 * common/tdesc.h (tdesc_type_kind): Likewise.
10926 (struct tdesc_type): Likewise.
10927 (struct tdesc_feature): Likewise.
10928 * regformats/regdat.sh: Create a feature.
10929 * target-descriptions.c (tdesc_type_kind): Move from here.
10930 (tdesc_type): Likewise.
10931 (tdesc_type_up): Likewise.
10932 (tdesc_feature): Likewise.
10933 (tdesc_create_reg): Likewise.
10934
10935 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10936
10937 * Makefile.in: Add arch/tdesc.c
10938 * common/tdesc.c: New file.
10939 * common/tdesc.h (tdesc_element_visitor): Move to here.
10940 (tdesc_element): Likewise.
10941 (tdesc_reg): Likewise.
10942 (tdesc_reg_up): Likewise.
10943 * regformats/regdef.h (reg): Add offset to constructors.
10944 * target-descriptions.c (tdesc_element_visitor): Move from here.
10945 (tdesc_element): Likewise.
10946 (tdesc_reg): Likewise.
10947 (tdesc_reg_up): Likewise.
10948
10949 2018-04-17 Tom Tromey <tom@tromey.com>
10950
10951 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10952 discriminant field.
10953
10954 2018-04-17 Tom Tromey <tom@tromey.com>
10955
10956 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10957
10958 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10959
10960 * symtab.c (print_symbol_info): Skip printing filename and line
10961 number when `last' is NULL.
10962 (symtab_symbol_info): Use empty string instead of NULL for first
10963 invocation of print_symbol_info.
10964 (rbreak_command): Pass NULL to `last' parameter of
10965 print_symbol_info.
10966
10967 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10968
10969 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10970 instead of nullptr.
10971
10972 2018-04-16 Pedro Alves <palves@redhat.com>
10973
10974 * MAINTAINERS (sh): Remove.
10975 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10976 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10977 (ALLDEPFILES): Remove sh64-tdep.c.
10978 * NEWS: Mentions that support for SH-5/SH64 is removed.
10979 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10980 (sh*-*-openbsd*): Ditto.
10981 (sh64-*-elf*): Remove.
10982 (sh*): Remove.
10983 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10984 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10985 * sh-tdep.c: No longer include "sh64-tdep.h".
10986 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10987 * sh64-tdep.c, sh64-tdep.h: Remove files.
10988
10989 2018-04-16 Pedro Alves <palves@redhat.com>
10990
10991 * MAINTAINERS: Remove m88k.
10992 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10993 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10994 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10995 * NEWS: Mention that support for m88k was removed.
10996 * configure.host (m88*-*-*): Remove support.
10997 * configure.nat (m88k-*-*): Remove support.
10998 * configure.tgt (m88*-*-openbsd*): Remove.
10999 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11000
11001 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
11002
11003 * configure.tgt (x86_tobjs): New variable.
11004 (amd64_tobjs, i386_tobjs): Use it.
11005
11006 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11007
11008 * symtab.c (print_symbol_info): Precede the symbol definition by
11009 the line number when available.
11010 * NEWS: Advertise this enhancement.
11011
11012 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11013
11014 * NEWS (New options): announce set/show record btrace cpu.
11015 * btrace.c: Include record-btrace.h.
11016 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11017 the vendor is unknown.
11018 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
11019 Maybe overwrite the btrace configuration's cpu.
11020 (btrace_compute_ftrace): Add cpu parameter. Update callers.
11021 (btrace_fetch): Add cpu parameter. Update callers.
11022 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11023 Maybe overwrite the btrace configuration's cpu. Skip enabling
11024 errata workarounds if the vendor is unknown.
11025 * python/py-record-btrace.c: Include record-btrace.h.
11026 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11027 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11028 * record-btrace.c (record_btrace_cpu_state_kind): New.
11029 (record_btrace_cpu): New.
11030 (set_record_btrace_cpu_cmdlist): New.
11031 (record_btrace_get_cpu): New.
11032 (require_btrace_thread, record_btrace_info)
11033 (record_btrace_resume_thread): Call record_btrace_get_cpu.
11034 (cmd_set_record_btrace_cpu_none): New.
11035 (cmd_set_record_btrace_cpu_auto): New.
11036 (cmd_set_record_btrace_cpu): New.
11037 (cmd_show_record_btrace_cpu): New.
11038 (_initialize_record_btrace): Initialize set/show record btrace cpu
11039 commands.
11040 * record-btrace.h (record_btrace_get_cpu): New.
11041
11042 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11043
11044 * record.c (set_record_command): Fix typo in message.
11045
11046 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11047
11048 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11049
11050 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11051
11052 * infrun.c (process_event_stop_test): Call
11053 gdbarch_in_indirect_branch_thunk.
11054 * gdbarch.sh (in_indirect_branch_thunk): New.
11055 * gdbarch.c: Regenerated.
11056 * gdbarch.h: Regenerated.
11057 * x86-tdep.h: New.
11058 * x86-tdep.c: New.
11059 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11060 (HFILES_NO_SRCDIR): Add x86-tdep.h.
11061 (ALLDEPFILES): Add x86-tdep.c.
11062 * arch-utils.h (default_in_indirect_branch_thunk): New.
11063 * arch-utils.c (default_in_indirect_branch_thunk): New.
11064 * i386-tdep: Include x86-tdep.h.
11065 (i386_in_indirect_branch_thunk): New.
11066 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11067 function.
11068 * amd64-tdep: Include x86-tdep.h.
11069 (amd64_in_indirect_branch_thunk): New.
11070 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11071
11072 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11073
11074 PR gdb/23053
11075 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11076 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11077 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11078 regression.
11079
11080 2018-04-12 Tom Tromey <tom@tromey.com>
11081
11082 * rust-lang.c (rust_print_struct_def): Remove univariant code.
11083 (rust_evaluate_subexp): Likewise.
11084
11085 2018-04-12 Pedro Alves <palves@redhat.com>
11086
11087 * procfs.c (procfs_detach): Make forward declaration's prototype
11088 match definition's protototype.
11089 (proc_get_LDT_entry): Remove stale do_cleanups call.
11090
11091 2018-04-12 Pedro Alves <palves@redhat.com>
11092
11093 * target.h (target_ops::to_has_exited): Delete.
11094 (target_has_exited): Delete.
11095 * target-delegates.c: Regenerate.
11096
11097 2018-04-11 Pedro Alves <palves@redhat.com>
11098
11099 * target.c (fileio_fh_t::t): Add comment.
11100 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11101 (target_fileio_close): Handle a NULL target.
11102 (invalidate_fileio_fh): New.
11103 (target_close): Call it.
11104 * remote.c (remote_hostio_send_command): No longer check whether
11105 remote_desc is open.
11106
11107 2018-04-11 Pedro Alves <palves@redhat.com>
11108
11109 * target.c (fileio_fh_t): Make it a named struct instead of a
11110 typedef.
11111 (fileio_fh_t::is_closed): New method.
11112 (DEF_VEC_O (fileio_fh_t)): Remove.
11113 (fileio_fhandles): Now a std::vector.
11114 (is_closed_fileio_fh): Delete.
11115 (acquire_fileio_fd): Adjust. Rename parameters.
11116 (release_fileio_fd): Adjust.
11117 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
11118 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11119 (target_fileio_close): Adjust.
11120
11121 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
11122
11123 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
11124 index.
11125
11126 2018-04-10 Pedro Alves <palves@redhat.com>
11127
11128 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
11129 (scoped_finish_thread_state): New class.
11130 * infcmd.c (run_command_1): Use it instead of finish_thread_state
11131 cleanup.
11132 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
11133 (fetch_inferior_event, normal_stop): Likewise.
11134 * thread.c (finish_thread_state_cleanup): Delete.
11135
11136 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11137 Pedro Alves <palves@redhat.com>
11138
11139 * value.c: Include "selftest.h" and "common/array-view.h".
11140 (struct range) <operator ==>: New.
11141 (test_ranges_contain): New.
11142 (check_ranges_vector): New.
11143 (test_insert_into_bit_range_vector): New.
11144 (_initialize_values): Register selftests.
11145 * common/array-view.h (operator==, operator!=): New.
11146
11147 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11148
11149 * common/gdb_vecs.h (unordered_remove): Add overload that takes
11150 an iterator.
11151 * inline-frame.c: Include <algorithm>.
11152 (struct inline_state): Add constructor.
11153 (inline_state_s): Remove.
11154 (DEF_VEC_O(inline_state_s)): Remove.
11155 (inline_states): Change type to std::vector.
11156 (find_inline_frame_state): Adjust to std::vector.
11157 (allocate_inline_frame_state): Remove.
11158 (clear_inline_frame_state): Adjust to std::vector.
11159 (skip_inline_frames): Adjust to std::vector.
11160
11161 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11162
11163 * tracepoint.h (struct trace_state_variable): Add constructor.
11164 <name>: Change type to std::string.
11165 * tracepoint.c (tsv_s): Remove.
11166 (DEF_VEC_O(tsv_s)): Remove.
11167 (tvariables): Change to std::vector.
11168 (create_trace_state_variable): Adjust to std::vector.
11169 (find_trace_state_variable): Likewise.
11170 (find_trace_state_variable_by_number): Likewise.
11171 (delete_trace_state_variable): Likewise.
11172 (trace_variable_command): Adjust to std::string.
11173 (delete_trace_variable_command): Likewise.
11174 (tvariables_info_1): Adjust to std::vector.
11175 (save_trace_state_variables): Likewise.
11176 (start_tracing): Likewise.
11177 (merge_uploaded_trace_state_variables): Adjust to std::vector
11178 and std::string.
11179 * target.h (struct target_ops)
11180 <to_download_trace_state_variable>: Pass reference to
11181 trace_state_variable.
11182 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
11183 * target-delegates.c: Re-generate.
11184 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
11185 (mi_tsv_deleted): Likewise.
11186 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
11187 * remote.c (remote_download_trace_state_variable): Change
11188 pointer to reference and adjust.
11189 * make-target-delegates (parse_argtypes): Handle references.
11190 (write_function_header): Likewise.
11191 (munge_type): Likewise.
11192
11193 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11194
11195 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11196 string_view-selftests.c.
11197 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
11198 testsuite.
11199 * unittests/basic_string_view/cons/char/1.cc: Likewise.
11200 * unittests/basic_string_view/cons/char/2.cc: Likewise.
11201 * unittests/basic_string_view/cons/char/3.cc: Likewise.
11202 * unittests/basic_string_view/element_access/char/1.cc:
11203 Likewise.
11204 * unittests/basic_string_view/element_access/char/empty.cc:
11205 Likewise.
11206 * unittests/basic_string_view/element_access/char/front_back.cc:
11207 Likewise.
11208 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
11209 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
11210 Likewise.
11211 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
11212 Likewise.
11213 * unittests/basic_string_view/modifiers/swap/char/1.cc:
11214 Likewise.
11215 * unittests/basic_string_view/operations/compare/char/1.cc:
11216 Likewise.
11217 * unittests/basic_string_view/operations/compare/char/13650.cc:
11218 Likewise.
11219 * unittests/basic_string_view/operations/copy/char/1.cc:
11220 Likewise.
11221 * unittests/basic_string_view/operations/data/char/1.cc:
11222 Likewise.
11223 * unittests/basic_string_view/operations/find/char/1.cc:
11224 Likewise.
11225 * unittests/basic_string_view/operations/find/char/2.cc:
11226 Likewise.
11227 * unittests/basic_string_view/operations/find/char/3.cc:
11228 Likewise.
11229 * unittests/basic_string_view/operations/find/char/4.cc:
11230 Likewise.
11231 * unittests/basic_string_view/operations/rfind/char/1.cc:
11232 Likewise.
11233 * unittests/basic_string_view/operations/rfind/char/2.cc:
11234 Likewise.
11235 * unittests/basic_string_view/operations/rfind/char/3.cc:
11236 Likewise.
11237 * unittests/basic_string_view/operations/substr/char/1.cc:
11238 Likewise.
11239 * unittests/basic_string_view/operators/char/2.cc: Likewise.
11240 * unittests/string_view-selftests.c: New file.
11241
11242 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11243
11244 * unittests/basic_string_view/capacity/1.cc: New file.
11245 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
11246 * unittests/basic_string_view/cons/char/1.cc: New file.
11247 * unittests/basic_string_view/cons/char/2.cc: New file.
11248 * unittests/basic_string_view/cons/char/3.cc: New file.
11249 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
11250 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
11251 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
11252 * unittests/basic_string_view/element_access/char/1.cc: New file.
11253 * unittests/basic_string_view/element_access/char/2.cc: New file.
11254 * unittests/basic_string_view/element_access/char/empty.cc: New file.
11255 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
11256 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
11257 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
11258 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
11259 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
11260 * unittests/basic_string_view/include.cc: New file.
11261 * unittests/basic_string_view/inserters/char/1.cc: New file.
11262 * unittests/basic_string_view/inserters/char/2.cc: New file.
11263 * unittests/basic_string_view/inserters/char/3.cc: New file.
11264 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
11265 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
11266 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
11267 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
11268 * unittests/basic_string_view/literals/types.cc: New file.
11269 * unittests/basic_string_view/literals/values.cc: New file.
11270 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
11271 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
11272 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
11273 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
11274 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
11275 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
11276 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
11277 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
11278 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
11279 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
11280 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
11281 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
11282 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
11283 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
11284 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
11285 * unittests/basic_string_view/operations/data/char/1.cc: New file.
11286 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
11287 * unittests/basic_string_view/operations/find/char/1.cc: New file.
11288 * unittests/basic_string_view/operations/find/char/2.cc: New file.
11289 * unittests/basic_string_view/operations/find/char/3.cc: New file.
11290 * unittests/basic_string_view/operations/find/char/4.cc: New file.
11291 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
11292 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
11293 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
11294 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
11295 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
11296 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
11297 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
11298 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
11299 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
11300 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
11301 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
11302 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
11303 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
11304 * unittests/basic_string_view/operators/char/2.cc: New file.
11305 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
11306 * unittests/basic_string_view/range_access/char/1.cc: New file.
11307 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
11308 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
11309 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
11310 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
11311 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
11312 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
11313 * unittests/basic_string_view/requirements/typedefs.cc: New file.
11314 * unittests/basic_string_view/typedefs.cc: New file.
11315 * unittests/basic_string_view/types/1.cc: New file.
11316
11317 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11318
11319 * common/gdb_string_view.h: Remove libstdc++ implementation
11320 details, adjust to gdb reality.
11321 * common/gdb_string_view.tcc: Likewise.
11322 * cli/cli-script.c (struct string_view): Remove.
11323 (user_args) <m_args>: Change element type to gdb::string_view.
11324 (user_args::insert_args): Adjust.
11325
11326 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11327
11328 * common/gdb_string_view.h: New file.
11329 * common/gdb_string_view.tcc: New file.
11330
11331 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11332
11333 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
11334 * configure: Re-generate.
11335
11336 2018-04-09 Pedro Alves <palves@redhat.com>
11337
11338 * gdbarch.sh: Include "observable.h" instead of "observer.h".
11339 (set_target_gdbarch): Call
11340 gdb::observers::architecture_changed.notify instead of
11341 observer_notify_architecture_changed.
11342
11343 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11344
11345 * tracepoint.c (struct current_traceframe_cleanup): Remove.
11346 (do_restore_current_traceframe_cleanup): Remove.
11347 (restore_current_traceframe_cleanup_dtor): Remove.
11348 (make_cleanup_restore_current_traceframe): Remove.
11349 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
11350 New.
11351 * tracepoint.h (struct scoped_restore_current_traceframe): New.
11352 * infrun.c (fetch_inferior_event): Use
11353 scoped_restore_current_traceframe.
11354
11355 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11356
11357 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
11358 Remove.
11359 <n_allocated_type_units>: Remove.
11360 <all_type_units>: Change to std::vector.
11361 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11362 to std::vector change.
11363 (dwarf2_per_objfile::get_cutu): Likewise.
11364 (dwarf2_per_objfile::get_tu): Likewise.
11365 (create_signatured_type_table_from_index): Likewise.
11366 (create_signatured_type_table_from_debug_names): Likewise.
11367 (dw2_symtab_iter_next): Likewise.
11368 (dw2_print_stats): Likewise.
11369 (dw2_expand_all_symtabs): Likewise.
11370 (dw2_expand_marked_cus): Likewise.
11371 (dw2_debug_names_iterator::next): Likewise.
11372 (dwarf2_initialize_objfile): Likewise.
11373 (add_signatured_type_cu_to_table): Likewise.
11374 (create_all_type_units): Likewise.
11375 (add_type_unit): Likewise.
11376 (struct tu_abbrev_offset): Add constructor.
11377 (build_type_psymtabs_1): Adjust to std::vector change.
11378 (print_tu_stats): Likewise.
11379 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11380 (write_debug_names): Likewise.
11381
11382 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11383
11384 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
11385 Make an std::vector.
11386 <n_comp_units>: Remove.
11387 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
11388 to std::vector change.
11389 (dwarf2_per_objfile::get_cutu): Likewise.
11390 (dwarf2_per_objfile::get_cu): Likewise.
11391 (create_cus_from_index): Likewise.
11392 (create_addrmap_from_index): Likewise.
11393 (create_addrmap_from_aranges): Likewise.
11394 (dwarf2_read_index): Likewise.
11395 (dw2_find_last_source_symtab): Likewise.
11396 (dw2_map_symtabs_matching_filename): Likewise.
11397 (dw2_symtab_iter_next): Likewise.
11398 (dw2_print_stats): Likewise.
11399 (dw2_expand_all_symtabs): Likewise.
11400 (dw2_expand_symtabs_with_fullname): Likewise.
11401 (dw2_expand_marked_cus): Likewise.
11402 (dw2_map_symbol_filenames): Likewise.
11403 (create_cus_from_debug_names): Likewise.
11404 (dwarf2_read_debug_names): Likewise.
11405 (dw2_debug_names_iterator::next): Likewise.
11406 (dwarf2_initialize_objfile): Likewise.
11407 (set_partial_user): Likewise.
11408 (dwarf2_build_psymtabs_hard): Likewise.
11409 (read_comp_units_from_section): Remove arguments, adjust to
11410 std::vector change.
11411 (create_all_comp_units): Adjust to std::vector and
11412 read_comp_units_from_section changes.
11413 (dwarf2_find_containing_comp_unit): Adjust to std::vector
11414 change.
11415 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
11416 (psyms_seen_size): Likewise.
11417 (write_gdbindex): Likewise.
11418 (write_debug_names): Likewise.
11419
11420 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11421
11422 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
11423 with dwarf2_per_objfile.
11424 (create_cus_from_index): Likewise.
11425 (create_signatured_type_table_from_index): Likewise.
11426 (dwarf2_read_index): Likewise.
11427 (dwarf2_initialize_objfile): Likewise.
11428 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
11429 per_cu rather than get_dwarf2_per_objfile.
11430
11431 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11432
11433 * dwarf2read.h (struct signatured_type): Forward declare.
11434 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
11435 New methods.
11436 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
11437 (dw2_get_cutu): ...this.
11438 (dwarf2_per_objfile::get_cu): Rename from...
11439 (dw2_get_cu): ...this.
11440 (dwarf2_per_objfile::get_tu): New.
11441 (create_addrmap_from_index): Adjust.
11442 (create_addrmap_from_aranges): Adjust.
11443 (dw2_find_last_source_symtab): Adjust.
11444 (dw2_map_symtabs_matching_filename): Adjust.
11445 (dw2_symtab_iter_next): Adjust.
11446 (dw2_print_stats): Adjust.
11447 (dw2_expand_all_symtabs): Adjust.
11448 (dw2_expand_symtabs_with_fullname): Adjust.
11449 (dw2_expand_marked_cus): Adjust.
11450 (dw_expand_symtabs_matching_file_matcher): Adjust.
11451 (dw2_map_symbol_filenames): Adjust.
11452 (dw2_debug_names_iterator::next): Adjust.
11453 (dwarf2_initialize_objfile): Adjust.
11454 (set_partial_user): Adjust.
11455 (dwarf2_build_psymtabs_hard): Adjust.
11456
11457 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11458
11459 * dwarf2read.c (create_signatured_type_table_from_debug_names):
11460 Remove unused variables.
11461 (dw2_map_symtabs_matching_filename): Likewise.
11462 (dwarf2_record_block_ranges): Likewise.
11463 (dwarf2_read_addr_index): Likewise.
11464 (follow_die_offset): Likewise.
11465
11466 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11467
11468 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
11469 to symbol_file_add_main.
11470
11471 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11472
11473 PR mi/22299
11474 * mi/mi-console.c (do_fputc_async_safe): New.
11475 (mi_console_file::write_async_safe): New.
11476 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11477 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11478 New.
11479 * ui-file.c (ui_file::putstrn): Adjust call to
11480 fputstrn_unfiltered.
11481 * utils.c (printchar): Replace do_fputs and do_fprintf
11482 parameters by do_fputc.
11483 (fputstr_filtered): Adjust call to printchar.
11484 (fputstr_unfiltered): Likewise.
11485 (fputstrn_filtered): Likewise.
11486 (fputstrn_unfiltered): Add do_fputc parameter, pass to
11487 printchar.
11488 * utils.h (do_fputc_ftype): New typedef.
11489 (fputstrn_unfiltered): Add do_fputc parameter.
11490
11491 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11492
11493 * regformats/i386/i386-avx.dat: Remove.
11494
11495 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11496
11497 PR gdb/22979
11498 * amd64-tdep.c (amd64_none_init_abi): New function.
11499 (amd64_x32_none_init_abi): New function.
11500 (_initialize_amd64_tdep): Register handlers for x86-64 and
11501 x64_32 with GDB_OSABI_NONE.
11502 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11503 GDB_OSABI_NONE osabi.
11504
11505 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11506
11507 PR gdb/22980
11508 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11509 GDB_OSABI_NONE.
11510 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11511 * osabi.c (gdb_osabi_names): Add "unknown" entry.
11512
11513 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11514
11515 * common/byte-vector.h (char_vector): New type.
11516 * target.h (target_read_alloc): Return
11517 gdb::optional<byte_vector>.
11518 (target_read_stralloc): Return gdb::optional<char_vector>.
11519 (target_get_osdata): Return gdb::optional<char_vector>.
11520 * target.c (target_read_alloc_1): Templatize. Replacement
11521 manual memory management with vector.
11522 (target_read_alloc): Change return type, adjust.
11523 (target_read_stralloc): Change return type, adjust.
11524 (target_get_osdata): Change return type, adjust.
11525 * auxv.c (struct auxv_info) <length>: Remove.
11526 <data>: Change type to gdb::optional<byte_vector>.
11527 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11528 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11529 (target_auxv_search): Adjust.
11530 (fprint_target_auxv): Adjust.
11531 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11532 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11533 (linux_make_corefile_notes): Adjust.
11534 * osdata.c (get_osdata): Adjust.
11535 * remote.c (remote_get_threads_with_qxfer): Adjust.
11536 (remote_memory_map): Adjust.
11537 (remote_traceframe_info): Adjust.
11538 (btrace_read_config): Adjust.
11539 (remote_read_btrace): Adjust.
11540 (remote_pid_to_exec_file): Adjust.
11541 * solib-aix.c (solib_aix_get_library_list): Adjust.
11542 * solib-dsbt.c (decode_loadmap): Don't free buf.
11543 (dsbt_get_initial_loadmaps): Adjust.
11544 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11545 * solib-target.c (solib_target_current_sos): Adjust.
11546 * tracepoint.c (sdata_make_value): Adjust.
11547 * xml-support.c (xinclude_start_include): Adjust.
11548 (xml_fetch_content_from_file): Adjust.
11549 * xml-support.h (xml_fetch_another): Change return type.
11550 (xml_fetch_content_from_file): Change return type.
11551 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11552 * xml-tdesc.c (file_read_description_xml): Adjust.
11553 (fetch_available_features_from_target): Change return type.
11554 (target_fetch_description_xml): Adjust.
11555 (target_read_description_xml): Adjust.
11556
11557 2018-04-06 Tom Tromey <tom@tromey.com>
11558
11559 * value.c (~value): Update.
11560 (struct value) <contents>: Now unique_xmalloc_ptr.
11561 (value_contents_bits_eq, allocate_value_contents)
11562 (value_contents_raw, value_contents_all_raw)
11563 (value_contents_for_printing, value_contents_for_printing_const)
11564 (set_value_enclosing_type): Update.
11565
11566 2018-04-06 Tom Tromey <tom@tromey.com>
11567
11568 * value.c (range_s): Remove typedef, VEC.
11569 (struct range): Add operator<.
11570 (range_lessthan): Remove.
11571 (ranges_contain): Change type.
11572 (~value): Update.
11573 (struct value) <unavailable, optimized_out>: Now std::vector.
11574 (value_entirely_available)
11575 (value_entirely_covered_by_range_vector)
11576 (value_entirely_unavailable, value_entirely_optimized_out):
11577 Update.
11578 (insert_into_bit_range_vector): Change argument type.
11579 (find_first_range_overlap): Likewise.
11580 (struct ranges_and_idx, value_contents_bits_eq)
11581 (require_not_optimized_out, require_available): Update.
11582 (ranges_copy_adjusted): Change argument types.
11583 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11584
11585 2018-04-06 Tom Tromey <tom@tromey.com>
11586
11587 * value.c (~value): Update.
11588 (struct value) <parent>: Now a value_ref_ptr.
11589 (value_parent, set_value_parent, value_address, value_copy):
11590 Update.
11591
11592 2018-04-06 Tom Tromey <tom@tromey.com>
11593
11594 * value.c (struct value): Add constructor, destructor, and member
11595 initializers.
11596 (allocate_value_lazy, value_decref): Update.
11597
11598 2018-04-06 Tom Tromey <tom@tromey.com>
11599
11600 * value.c (struct value) <released, next>: Remove.
11601 (all_values): Now a std::vector.
11602 (allocate_value_lazy): Update.
11603 (value_next): Remove.
11604 (value_mark, value_free_to_mark, release_value)
11605 (value_release_to_mark): Update.
11606
11607 2018-04-06 Tom Tromey <tom@tromey.com>
11608
11609 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11610 (free_value_chain): Remove.
11611 * value.c (free_value_chain): Remove.
11612 (value_release_to_mark): Return a std::vector.
11613 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11614 std::vector.
11615 (check_condition): Update.
11616 * eval.c (fetch_subexp_value): Change "val_chain" to a
11617 std::vector.
11618 * breakpoint.c (update_watchpoint): Update.
11619 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11620
11621 2018-04-06 Tom Tromey <tom@tromey.com>
11622
11623 * value.h (free_all_values): Remove.
11624 * value.c (free_all_values): Remove.
11625
11626 2018-04-06 Tom Tromey <tom@tromey.com>
11627
11628 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11629 (value_history_chain, value_history_count): Remove.
11630 (value_history): New global.
11631 (record_latest_value, access_value_history, show_values)
11632 (preserve_values): Update.
11633
11634 2018-04-06 Tom Tromey <tom@tromey.com>
11635
11636 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11637 * varobj.c (varobj_set_display_format, varobj_set_value)
11638 (install_default_visualizer, construct_visualizer)
11639 (install_new_value, ~varobj, varobj_get_value_type)
11640 (my_value_of_variable, varobj_editable_p): Update.
11641 * c-varobj.c (c_describe_child, c_value_of_variable)
11642 (cplus_number_of_children, cplus_describe_child): Update.
11643 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11644 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11645 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11646
11647 2018-04-06 Tom Tromey <tom@tromey.com>
11648
11649 * printcmd.c (last_examine_address): Change type to
11650 value_ref_ptr.
11651 (do_examine, x_command): Update.
11652
11653 2018-04-06 Tom Tromey <tom@tromey.com>
11654
11655 * value.c (release_value): Update.
11656 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11657 (struct bpstats) <val>: Now a value_ref_ptr.
11658 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11659 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11660 (~watchpoint, print_it_watchpoint, watch_command_1)
11661 (invalidate_bp_value_on_memory_change): Update.
11662
11663 2018-04-06 Tom Tromey <tom@tromey.com>
11664
11665 * varobj.c (varobj_clear_saved_item)
11666 (update_dynamic_varobj_children, install_new_value, ~varobj):
11667 Update.
11668 * value.h (value_incref): Move declaration earlier.
11669 (value_decref): Rename from value_free.
11670 (struct value_ref_policy): New.
11671 (value_ref_ptr): New typedef.
11672 (struct value_deleter): Remove.
11673 (gdb_value_up): Remove typedef.
11674 (release_value): Change return type.
11675 (release_value_or_incref): Remove.
11676 * value.c (set_value_parent): Update.
11677 (value_incref): Change return type.
11678 (value_decref): Rename from value_free.
11679 (value_free_to_mark, free_all_values, free_value_chain): Update.
11680 (release_value): Return value_ref_ptr.
11681 (release_value_or_incref): Remove.
11682 (record_latest_value, set_internalvar, clear_internalvar):
11683 Update.
11684 * stack.c (info_frame_command): Don't call value_free.
11685 * python/py-value.c (valpy_dealloc, valpy_new)
11686 (value_to_value_object): Update.
11687 * printcmd.c (do_examine): Update.
11688 * opencl-lang.c (lval_func_free_closure): Update.
11689 * mi/mi-main.c (register_changed_p): Don't call value_free.
11690 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11691 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11692 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11693 value_free.
11694 * guile/scm-value.c (vlscm_free_value_smob)
11695 (vlscm_scm_from_value): Update.
11696 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11697 (frame_unwind_register_unsigned, get_frame_register_bytes)
11698 (put_frame_register_bytes): Don't call value_free.
11699 * findvar.c (address_from_register): Don't call value_free.
11700 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11701 * dwarf2loc.c (entry_data_value_free_closure)
11702 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11703 (dwarf2_evaluate_loc_desc_full): Update.
11704 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11705 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11706 (~watchpoint, watch_command_1)
11707 (invalidate_bp_value_on_memory_change): Update.
11708 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11709
11710 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11711
11712 PR gdb/23022
11713 * warning.m4: Add -Wno-error=deprecated-register.
11714 * configure: Re-generate.
11715
11716 2018-04-05 Tom Tromey <tom@tromey.com>
11717
11718 * linespec.h: Remove include of "vec.h".
11719
11720 2018-04-05 Tom Tromey <tom@tromey.com>
11721
11722 * linespec.c (typep): Remove typedef.
11723 (find_methods, find_superclass_methods): Take a std::vector.
11724 (find_method): Use std::vector.
11725
11726 2018-04-05 Tom Tromey <tom@tromey.com>
11727
11728 * utils.c (compare_strings): Remove.
11729 * utils.h (compare_strings): Remove.
11730 * objc-lang.h (find_imps): Update.
11731 * objc-lang.c (find_methods): Take a std::vector.
11732 (uniquify_strings, find_imps): Likewise.
11733 * linespec.c (find_methods): Take a std::vector.
11734 (decode_objc): Use std::vector.
11735 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11736 a std::vector.
11737 (find_method, find_function_symbols): Use std::vector.
11738
11739 2018-04-05 Tom Tromey <tom@tromey.com>
11740
11741 * completer.c (completion_tracker::completion_tracker): Remove
11742 cast.
11743 (completion_tracker::discard_completions): Likewise.
11744 * breakpoint.c (ambiguous_names_p): Remove cast.
11745 * ada-lang.c (_initialize_ada_language): Remove cast.
11746 * utils.h (streq): Update.
11747 (streq_hash): Add new declaration.
11748 * utils.c (streq): Return bool.
11749 (streq_hash): New function.
11750
11751 2018-04-05 Tom Tromey <tom@tromey.com>
11752
11753 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11754 Remove a string copy.
11755
11756 2018-04-05 Tom Tromey <tom@tromey.com>
11757
11758 * linespec.c (filter_results): Use std::vector.
11759 (decode_line_2, decode_line_full): Update.
11760
11761 2018-04-05 Tom Tromey <tom@tromey.com>
11762
11763 * linespec.c (canonical_to_fullform): Return std::string.
11764 (filter_results): Update.
11765 (struct decode_line_2_item): Add constructor.
11766 <fullform, displayform>: Now std::string.
11767 (decode_line_2_compare_items): Now a std::sort comparator.
11768 (decode_line_2): Update.
11769
11770 2018-04-05 Tom Tromey <tom@tromey.com>
11771
11772 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11773 (unexpected_linespec_error): Update.
11774 (linespec_parse_basic, parse_linespec): Update.
11775
11776 2018-04-05 Tom Tromey <tom@tromey.com>
11777
11778 * linespec.c (linespec_parse_basic): Reindent.
11779
11780 2018-04-05 Tom Tromey <tom@tromey.com>
11781
11782 * minsyms.h (iterate_over_minimal_symbols): Update.
11783 * minsyms.c (iterate_over_minimal_symbols): Take a
11784 gdb::function_view.
11785 * linespec.c (struct collect_minsyms): Remove.
11786 (compare_msyms): Now a std::sort comparator.
11787 (add_minsym): Add parameters.
11788 (search_minsyms_for_name): Update. Use std::vector.
11789
11790 2018-04-03 Tom Tromey <tom@tromey.com>
11791
11792 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11793 gdb::byte_vector.
11794
11795 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11796
11797 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11798
11799 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11800
11801 PR gdb/16959
11802 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11803 printing static type.
11804
11805 2018-04-01 Tom Tromey <tom@tromey.com>
11806
11807 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11808 (rs6000_xfer_shared_libraries): Update.
11809
11810 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11811
11812 * common/gdb_vecs.h (char_ptr): Remove.
11813 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11814
11815 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11816
11817 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11818 with std::vector.
11819 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11820
11821 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11822
11823 * tracepoint.h (struct uploaded_tp): Initialize fields.
11824 <actions, step_actions, cmd_strings>: Change type to
11825 std::vector<char *>.
11826 * tracepoint.c (get_uploaded_tp): Allocate with new.
11827 (free_uploaded_tps): Free with delete.
11828 (parse_tracepoint_definition): Adjust to std::vector change.
11829 * breakpoint.c (read_uploaded_action): Likewise.
11830 (create_tracepoint_from_upload): Likewise.
11831 * ctf.c (ctf_write_uploaded_tp): Likewise.
11832 (SET_ARRAY_FIELD): Likewise.
11833 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11834
11835 2018-03-30 Tom Tromey <tom@tromey.com>
11836
11837 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11838 std::unique_ptr.
11839 (svr4_keep_data_in_core): Update.
11840 (svr4_read_so_list): Update.
11841
11842 2018-03-30 Tom Tromey <tom@tromey.com>
11843
11844 * windows-nat.c (handle_output_debug_string, handle_exception):
11845 Update.
11846 * target.h (target_read_string): Update.
11847 * target.c (target_read_string): Change "string" to
11848 unique_xmalloc_ptr.
11849 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11850 Update.
11851 * solib-frv.c (frv_current_sos): Update.
11852 * solib-dsbt.c (dsbt_current_sos): Update.
11853 * solib-darwin.c (darwin_current_sos): Update.
11854 * linux-thread-db.c (inferior_has_bug): Update.
11855 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11856 Update. Remove alloca.
11857 * ada-lang.c (ada_main_name): Update.
11858
11859 2018-03-30 Tom Tromey <tom@tromey.com>
11860
11861 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11862 (struct dwo_file_deleter): New.
11863 (dwo_file_up): New typedef.
11864 (open_and_init_dwo_file): Use dwo_file_up.
11865 (free_dwo_file_cleanup): Remove.
11866
11867 2018-03-30 Tom Tromey <tom@tromey.com>
11868
11869 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11870 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11871
11872 2018-03-30 Tom Tromey <tom@tromey.com>
11873
11874 * dwarf2read.c (class free_cached_comp_units): New class.
11875 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11876 (free_cached_comp_units): Remove function.
11877
11878 2018-03-30 Tom Tromey <tom@tromey.com>
11879
11880 * utils.h (make_cleanup_unpush_target): Remove.
11881 * inf-ptrace.c (struct target_unpusher): New.
11882 (target_unpush_up) New typedef.
11883 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11884 target_unpush_up.
11885 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11886
11887 2018-03-27 Tom Tromey <tom@tromey.com>
11888
11889 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11890
11891 2018-03-27 Pedro Alves <palves@redhat.com>
11892 Tom Tromey <tom@tromey.com>
11893
11894 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11895 destructor. Now a class.
11896 (gdb_readline_wrapper_cleanup): Remove function.
11897 (gdb_readline_wrapper): Remove cleanups.
11898
11899 2018-03-27 Tom Tromey <tom@tromey.com>
11900
11901 * typeprint.h (struct type_print_options) <local_typedefs,
11902 global_typedefs>: Remove "struct" keyword.
11903 (class typedef_hash_table): New class.
11904 (recursively_update_typedef_hash, add_template_parameters)
11905 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11906 (find_typedef_in_hash): Don't declare.
11907 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11908 (typedef_hash_table::recursively_update): Rename from
11909 recursively_update_typedef_hash. Now a member.
11910 (typedef_hash_table::add_template_parameters): Rename from
11911 add_template_parameters. Now a member.
11912 (typedef_hash_table::typedef_hash_table): Now a constructor;
11913 rename from create_typedef_hash.
11914 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11915 rename from free_typedef_hash.
11916 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11917 (do_free_global_table): Remove.
11918 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11919 from copy_type_recursive.
11920 (create_global_typedef_table): Remove.
11921 (typedef_hash_table::find_global_typedef): Now a member of
11922 typedef_hash_table.
11923 (typedef_hash_table::find_typedef): Rename from
11924 find_typedef_in_hash; now a member.
11925 (whatis_exp): Update.
11926 * extension.h (struct ext_lang_type_printers): Add constructor and
11927 destructor.
11928 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11929 declare.
11930 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11931 Now a constructor; rename from start_ext_lang_type_printers.
11932 (ext_lang_type_printers): Now a destructor; rename from
11933 free_ext_lang_type_printers.
11934 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11935 Update.
11936 (c_type_print_base_struct_union): Update. Remove cleanups.
11937
11938 2018-03-27 Tom Tromey <tom@tromey.com>
11939
11940 * dwarf-index-write.c: Include <cmath>.
11941
11942 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11943
11944 * NEWS: Add entry describing new "set|show varsize-limit" command.
11945 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11946 command.
11947 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11948 "set variable".
11949
11950 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11951
11952 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11953 dwarf-index-write.c
11954 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11955 * dwarf-index-common.c: New file.
11956 * dwarf-index-common.h: New file.
11957 * dwarf-index-write.c: New file.
11958 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11959 (struct dwarf2_section_info): Move from here.
11960 (dwarf2_section_info_def): Likewise.
11961 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11962 (offset_type): Likewise.
11963 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11964 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11965 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11966 (byte_swap): Likewise.
11967 (MAYBE_SWAP): Likewise.
11968 (dwarf2_per_cu_ptr): Likewise.
11969 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11970 (struct tu_stats): Likewise.
11971 (struct dwarf2_per_objfile): Likewise.
11972 (struct dwarf2_per_cu_data): Likewise.
11973 (struct signatured_type): Likewise.
11974 (sig_type_ptr): Likewise.
11975 (DEF_VEC_P (sig_type_ptr)): Likewise.
11976 (INDEX4_SUFFIX): Likewise.
11977 (INDEX5_SUFFIX): Likewise.
11978 (DEBUG_STR_SUFFIX): Likewise.
11979 (dwarf2_read_section): Make non-static.
11980 (mapped_index_string_hash): Move from here.
11981 (dwarf5_djb_hash): Likewise.
11982 (file_write): Likewise.
11983 (class data_buf): Likewise.
11984 (struct symtab_index_entry): Likewise.
11985 (struct mapped_symtab): Likewise.
11986 (find_slot): Likewise.
11987 (hash_expand): Likewise.
11988 (add_index_entry): Likewise.
11989 (uniquify_cu_indices): Likewise.
11990 (class c_str_view): Likewise.
11991 (class c_str_view_hasher): Likewise.
11992 (class vector_hasher): Likewise.
11993 (write_hash_table): Likewise.
11994 (psym_index_map): Likewise.
11995 (struct addrmap_index_data): Likewise.
11996 (add_address_entry): Likewise.
11997 (add_address_entry_worker): Likewise.
11998 (write_address_map): Likewise.
11999 (symbol_kind): Likewise.
12000 (write_psymbols): Likewise.
12001 (struct signatured_type_index_data): Likewise.
12002 (write_one_signatured_type): Likewise.
12003 (recursively_count_psymbols): Likewise.
12004 (recursively_write_psymbols): Likewise.
12005 (class debug_names): Likewise.
12006 (check_dwarf64_offsets): Likewise.
12007 (psyms_seen_size): Likewise.
12008 (write_gdbindex): Likewise.
12009 (write_debug_names): Likewise.
12010 (assert_file_size): Likewise.
12011 (write_psymtabs_to_index): Likewise.
12012 (save_gdb_index_command): Likewise.
12013 (_initialize_dwarf2_read): Don't register the "save gdb-index"
12014 command.
12015 * dwarf2read.h: New file.
12016
12017 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12018
12019 PR gdb/22670
12020 * dwarf2read.c (dwarf2_physname): Do not return the demangled
12021 symbol name if the CU's language stores symbol names in linkage
12022 format.
12023 * language.h (struct language_defn)
12024 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
12025 all instances of this struct.
12026
12027 2018-03-26 Tom Tromey <tom@tromey.com>
12028
12029 * stack.c (backtrace_command_1): Remove verbose code.
12030
12031 2018-03-26 Tom Tromey <tom@tromey.com>
12032
12033 * python/py-framefilter.c (py_print_type): Don't catch
12034 exceptions. Return void.
12035 (py_print_value): Likewise.
12036 (py_print_single_arg): Likewise.
12037 (enumerate_args): Don't catch exceptions.
12038 (py_print_args): Likewise.
12039 (py_print_frame): Likewise.
12040 (gdbpy_apply_frame_filter): Catch exceptions here.
12041
12042 2018-03-26 Tom Tromey <tom@tromey.com>
12043
12044 * stack.c (_initialize_stack): Remove trailing newlines from help
12045 text. Add "Usage" line to "backtrace" help.
12046
12047 2018-03-26 Tom Tromey <tom@tromey.com>
12048
12049 PR python/16486:
12050 * python/py-framefilter.c (py_print_args): Call wrap_hint.
12051
12052 2018-03-26 Tom Tromey <tom@tromey.com>
12053
12054 * python/py-framefilter.c (py_print_single_arg): Return
12055 EXT_LANG_BT_ERROR from catch.
12056
12057 2018-03-26 Tom Tromey <tom@tromey.com>
12058
12059 PR backtrace/15584:
12060 * stack.c (backtrace_command_1): Move some code into no-filters
12061 "if".
12062
12063 2018-03-26 Tom Tromey <tom@tromey.com>
12064
12065 * python/py-framefilter.c (throw_quit_or_print_exception): New
12066 function.
12067 (gdbpy_apply_frame_filter): Use it.
12068
12069 2018-03-26 Tom Tromey <tom@tromey.com>
12070
12071 PR cli/17716:
12072 * python/py-framefilter.c (py_print_type, py_print_value)
12073 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12074 RETURN_MASK_ERROR.
12075
12076 2018-03-26 Tom Tromey <tom@tromey.com>
12077
12078 * python/py-framefilter.c (enumerate_args): Use
12079 gdb::unique_xmalloc_ptr.
12080
12081 2018-03-26 Tom Tromey <tom@tromey.com>
12082
12083 * python/py-framefilter.c (py_print_frame): Return
12084 EXT_LANG_BT_OK.
12085 (gdbpy_apply_frame_filter): Update comment.
12086 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12087 Remove.
12088 <EXT_LANG_BT_NO_FILTERS>: Change value.
12089
12090 2018-03-26 Tom Tromey <tom@tromey.com>
12091
12092 PR backtrace/15582:
12093 * stack.c (backtrace_command): Parse "hide" argument.
12094 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12095 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12096 constant.
12097
12098 2018-03-26 Tom Tromey <tom@tromey.com>
12099
12100 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12101 add "flags".
12102 (backtrace_command): Remove "fulltrace", add "flags".
12103
12104 2018-03-26 Tom Tromey <tom@tromey.com>
12105
12106 * stack.c (backtrace_command): Rewrite command line parsing.
12107
12108 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12109
12110 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12111
12112 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12113
12114 * filename-seen-cache.h: Add include guard.
12115
12116 2018-03-26 Keith Seitz <keiths@redhat.com>
12117
12118 * symfile.c (place_section): Remove "struct" from section_addr_info
12119 in comment.
12120 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
12121 "struct" keyword from section_addr_info.
12122
12123 2018-03-26 Alan Hayward <alan.hayward@arm.com>
12124
12125 * regformats/regdef.h (reg): Add constructors.
12126
12127 2018-03-25 Pedro Alves <palves@redhat.com>
12128
12129 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
12130 if then/else bodies in var_func_name extraction.
12131
12132 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
12133
12134 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
12135 lookup_minimal_symbol() to find symbol entry.
12136 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
12137
12138 2018-03-23 Keith Seitz <keiths@redhat.com>
12139
12140 PR c++/22968
12141 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
12142 nested type definitions for C++, too.
12143
12144 2018-03-23 Tom Tromey <tom@tromey.com>
12145
12146 * machoread.c (struct oso_el): Add a constructor. Don't define as
12147 a typedef.
12148 (macho_register_oso): Remove.
12149 (macho_symtab_read): Take a std::vector.
12150 (oso_el_compare_name): Now a std::sort comparator.
12151 (macho_symfile_read_all_oso): Take a std::vector.
12152 (macho_symfile_read): Use std::vector. Remove cleanups.
12153
12154 2018-03-22 Tom Tromey <tom@tromey.com>
12155
12156 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
12157 (record_full_goto_bookmark): Use std::string.
12158
12159 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12160
12161 PR tdep/18295
12162 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
12163 a single mask.
12164
12165 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12166
12167 * rs6000-tdep.c (store_insn_p): New function.
12168 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
12169 and cr_reg to their unshifted values. Use store_insn_p to
12170 match LR saves using either R1 or fdata->alloca_reg. Use
12171 store_insn_p to match CR saves. Set alloca_reg_offset
12172 when alloca_reg and framep are set. Remove lr_reg shift
12173 when assigning to fdata->lr_register.
12174
12175 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
12176
12177 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
12178 command line args instead of emitting a warning.
12179
12180 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12181
12182 * tracepoint.h (struct static_tracepoint_marker): Initialize
12183 fields, define default constructor, move constructor and move
12184 assignment, disable the rest.
12185 <str_id, extra>: Make std::string.
12186 (release_static_tracepoint_marker): Remove.
12187 (free_current_marker): Remove.
12188 * tracepoint.c (free_current_marker): Remove.
12189 (parse_static_tracepoint_marker_definition): Adjust to
12190 std::string, use new hex2str overload.
12191 (release_static_tracepoint_marker): Remove.
12192 (print_one_static_tracepoint_marker): Get marker by reference
12193 and adjust to std::string.
12194 (info_static_tracepoint_markers_command): Adjust to std::vector
12195 changes
12196 * target.h (static_tracepoint_marker_p): Remove typedef.
12197 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
12198 (struct target_ops) <to_static_tracepoint_marker_at>: Return
12199 bool.
12200 <to_static_tracepoint_markers_by_strid>: Return std::vector.
12201 * target-debug.h
12202 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
12203 (target_debug_print_std_vector_static_tracepoint_marker): New.
12204 (target_debug_print_struct_static_tracepoint_marker_p): Rename
12205 to...
12206 (target_debug_print_static_tracepoint_marker_p): ... this.
12207 * target-delegates.c: Re-generate.
12208 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
12209 Make std::string.
12210 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
12211 (decode_static_tracepoint_spec): Adjust to std::vector.
12212 (tracepoint_print_one_detail): Adjust to std::string.
12213 (strace_marker_decode_location): Adjust to std::string.
12214 (update_static_tracepoint): Adjust to std::string, remove call
12215 to release_static_tracepoint_marker.
12216 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
12217 Adjust to std::vector.
12218 * remote.c (remote_static_tracepoint_marker_at): Return bool.
12219 (remote_static_tracepoint_markers_by_strid): Adjust to
12220 std::vector.
12221 * common/rsp-low.h (hex2str): New overload with explicit count
12222 of bytes.
12223 * common/rsp-low.c (hex2str): New overload with explicit count
12224 of bytes.
12225 * unittests/rsp-low-selftests.c (test_hex2str): New function.
12226 (_initialize_rsp_low_selftests): Add test_hex2str test.
12227 * unittests/tracepoint-selftests.c
12228 (test_parse_static_tracepoint_marker_definition): Adjust to
12229 std::string.
12230
12231 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
12232
12233 * tracepoint.c (parse_static_tracepoint_marker_definition):
12234 Consider case where the definition is followed by more
12235 definitions.
12236 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12237 tracepoint-selftests.c.
12238 * unittests/tracepoint-selftests.c: New.
12239
12240 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
12241
12242 * MAINTAINERS (Write After Approval): Add Pedro Franco de
12243 Carvalho.
12244
12245 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
12246
12247 * symtab.c (find_pc_sect_line): fixed indentation.
12248
12249 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
12250
12251 * symtab.c (find_pc_sect_line): now uses binary search.
12252
12253 2018-03-19 Tom Tromey <tom@tromey.com>
12254
12255 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
12256 "IDENT" production.
12257
12258 2018-03-19 Pedro Alves <palves@redhat.com>
12259 Tom Tromey <tom@tromey.com>
12260
12261 * unittests/observable-selftests.c: New file.
12262 * common/observable.h: New file.
12263 * observable.h: New file.
12264 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
12265 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
12266 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
12267 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
12268 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
12269 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
12270 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
12271 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
12272 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
12273 python/py-breakpoint.c, python/py-finishbreakpoint.c,
12274 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
12275 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
12276 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
12277 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
12278 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
12279 tui/tui-interp.c, valops.c: Update all users.
12280 * tui/tui-hooks.c (tui_bp_created_observer)
12281 (tui_bp_deleted_observer, tui_bp_modified_observer)
12282 (tui_inferior_exit_observer, tui_before_prompt_observer)
12283 (tui_normal_stop_observer, tui_register_changed_observer):
12284 Remove.
12285 (tui_observers_token): New global.
12286 (attach_or_detach, tui_attach_detach_observers): New functions.
12287 (tui_install_hooks, tui_remove_hooks): Use
12288 tui_attach_detach_observers.
12289 * record-btrace.c (record_btrace_thread_observer): Remove.
12290 (record_btrace_thread_observer_token): New global.
12291 * observer.sh: Remove.
12292 * observer.c: Rename to observable.c.
12293 * observable.c (namespace gdb_observers): Define new objects.
12294 (observer_debug): Move into gdb_observers namespace.
12295 (struct observer, struct observer_list, xalloc_observer_list_node)
12296 (xfree_observer_list_node, generic_observer_attach)
12297 (generic_observer_detach, generic_observer_notify): Remove.
12298 (_initialize_observer): Update.
12299 Don't include observer.inc.
12300 * Makefile.in (generated_files): Remove observer.h, observer.inc.
12301 (clean mostlyclean): Likewise.
12302 (observer.h, observer.inc): Remove targets.
12303 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
12304 (COMMON_SFILES): Use observable.c, not observer.c.
12305 * .gitignore: Remove observer.h.
12306
12307 2018-03-18 Tom Tromey <tom@tromey.com>
12308
12309 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
12310 gdb::def_vector.
12311 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
12312
12313 2018-03-17 Tom Tromey <tom@tromey.com>
12314
12315 * auto-load.c (auto_load_objfile_script_1): Use std::string.
12316
12317 2018-03-17 Tom Tromey <tom@tromey.com>
12318
12319 * target.c (class scoped_target_fd): New.
12320 (target_fileio_close_cleanup): Remove.
12321 (target_fileio_read_alloc_1): Use scoped_target_fd.
12322
12323 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
12324
12325 * silent-rules.mk: New.
12326 * Makefile.in: Include silent-rules.mk
12327 (srcdir, VPATH, top_srcdir): Move up.
12328 (COMPILE): Add ECHO_CXX.
12329 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
12330 (init.c): Add ECHO_INIT_C.
12331 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
12332 (version.c): Add ECHO_GEN.
12333 (printcmd.o): Add ECHO_CXX.
12334 (target-float.o): Add ECHO_CXX.
12335 (ada-exp.o): Add ECHO_CXX.
12336 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
12337 (insight$(EXEEXT)): Add ECHO_CXXLD.
12338 * gnulib/configure.ac: Add AM_SILENT_RULES.
12339 * gnulib/aclocal.m4: Re-generate.
12340 * gnulib/configure: Re-generate.
12341 * gnulib/import/Makefile.in: Re-generate.
12342
12343 2018-03-16 Tom Tromey <tom@tromey.com>
12344
12345 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
12346 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
12347 * utils.c (do_free_section_addr_info)
12348 (make_cleanup_free_section_addr_info): Remove.
12349 * symfile.h (struct other_sections): Add constructor.
12350 (struct section_addr_info): Remove.
12351 (section_addr_info): New typedef.
12352 (struct sym_fns) <sym_offsets>: Change type of parameter.
12353 (build_section_addr_info_from_objfile)
12354 (relative_addr_info_to_section_offsets, addr_info_make_relative)
12355 (default_symfile_offsets, symbol_file_add)
12356 (symbol_file_add_from_bfd)
12357 (build_section_addr_info_from_section_table): Update.
12358 (alloc_section_addr_info, free_section_addr_info): Don't declare.
12359 * symfile.c (alloc_section_addr_info): Remove.
12360 (build_section_addr_info_from_section_table): Change return type.
12361 Update.
12362 (build_section_addr_info_from_bfd)
12363 (build_section_addr_info_from_objfile): Likewise.
12364 (free_section_addr_info): Remove.
12365 (relative_addr_info_to_section_offsets): Change type of "addrs".
12366 (addrs_section_compar): Now a std::sort comparator.
12367 (addrs_section_sort): Change return type.
12368 (addr_info_make_relative): Change type of "addrs". Update.
12369 (default_symfile_offsets, syms_from_objfile_1)
12370 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
12371 (symbol_file_add_separate): Update.
12372 (symbol_file_add): Change type of "addrs". Update.
12373 (add_symbol_file_command): Update. Remove cleanups.
12374 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
12375 cleanups.
12376 * symfile-debug.c (debug_sym_offsets): Change type of "info".
12377 * solib.c (solib_read_symbols): Update.
12378 * objfiles.c (objfile_relocate): Update. Remove cleanups.
12379 * machoread.c (macho_symfile_offsets): Update.
12380 * jit.c (jit_bfd_try_read_symtab): Update.
12381
12382 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
12383
12384 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12385 unittests/utils-selftests.c.
12386 * unittests/utils-selftests.c: New file.
12387
12388 2018-03-14 Tom Tromey <tom@tromey.com>
12389
12390 PR cli/14977:
12391 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
12392 for NULL.
12393
12394 2018-03-14 Tom Tromey <tom@tromey.com>
12395
12396 PR cli/19918:
12397 * printcmd.c (printf_pointer): Allow "-" in format.
12398
12399 2018-03-14 Tom Tromey <tom@tromey.com>
12400
12401 * printcmd.c (_initialize_printcmd): Add usage to printf.
12402
12403 2018-03-14 Yao Qi <qiyao@sourceware.org>
12404
12405 * MAINTAINERS: Update my email address.
12406
12407 2018-03-13 Tom Tromey <tom@tromey.com>
12408
12409 * machoread.c (macho_check_dsym): Change filenamep to a
12410 std::string*.
12411 (macho_symfile_read): Update.
12412 * symfile.c (load_command): Use std::string.
12413
12414 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
12415
12416 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
12417 to error message string.
12418 (riscv_register_name): Use xsnprintf instead of sprintf.
12419 (riscv_insn::fetch_instruction): Use gdb_assert instead of
12420 internal_error.
12421 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
12422 error.
12423 (riscv_push_dummy_call): Likewise.
12424
12425 2018-03-12 Tom Tromey <tom@tromey.com>
12426
12427 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
12428 Use gdb::byte_vector.
12429 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
12430
12431 2018-03-12 Yao Qi <yao.qi@linaro.org>
12432
12433 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
12434 parameter type to readable_regcache.
12435 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
12436 the declaration.
12437
12438 2018-03-11 Tom Tromey <tom@tromey.com>
12439
12440 * dwarf2read.c (struct nextfield): Add initializers.
12441 (struct nextfnfield): Remove.
12442 (struct fnfieldlist): Add initializers. Remove "length" and
12443 "head", use std::vector.
12444 (struct decl_field_list): Remove.
12445 (struct field_info): Add initializers.
12446 <fields, baseclasses>: Now std::vector.
12447 <nbaseclasses, nfnfields, typedef_field_list_count,
12448 nested_types_list_count>: Remove.
12449 (dwarf2_add_field, dwarf2_add_type_defn)
12450 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
12451 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
12452 (process_structure_scope): Update.
12453
12454 2018-03-11 Tom Tromey <tom@tromey.com>
12455
12456 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
12457 for use by std::sort.
12458 (build_type_psymtabs_1): Use std::vector.
12459
12460 2018-03-09 Eli Zaretskii <eliz@gnu.org>
12461
12462 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
12463 and LIBMPFR in the printed configuration.
12464
12465 2018-03-08 Tom Tromey <tom@tromey.com>
12466
12467 * source.c (get_filename_and_charpos): Use scoped_fd.
12468 * nto-procfs.c (procfs_open_1): Use scoped_fd.
12469 (procfs_pidlist): Likewise.
12470 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
12471 (iterate_over_mappings): Likewise.
12472
12473 2018-03-08 Tom Tromey <tom@tromey.com>
12474
12475 * infcall.c (struct call_return_meta_info)
12476 <stack_temporaries_enabled>: Remove.
12477 (get_call_return_value, call_function_by_hand_dummy): Update.
12478 * thread.c (disable_thread_stack_temporaries): Remove.
12479 (enable_thread_stack_temporaries): Remove.
12480 (thread_stack_temporaries_enabled_p): Return bool.
12481 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12482 (get_last_thread_stack_temporary): Update.
12483 * eval.c (evaluate_subexp): Update.
12484 * gdbthread.h (class enable_thread_stack_temporaries): Now a
12485 class, not a function.
12486 (value_ptr, value_vec): Remove typedefs.
12487 (class thread_info) <stack_temporaries_enabled>: Now bool.
12488 <stack_temporaries>: Now a std::vector.
12489 (thread_stack_temporaries_enabled_p)
12490 (value_in_thread_stack_temporaries): Return bool.
12491
12492 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
12493
12494 * remote.c (putpkt_binary): Fix omitted bytes reporting.
12495 (getpkt_or_notif_sane_1): Likewise.
12496
12497 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12498
12499 * build-id.c (build_id_to_debug_bfd): Use std::string.
12500
12501 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12502
12503 * build-id.c (find_separate_debug_file_by_buildid): Return
12504 std::string.
12505 * build-id.h (find_separate_debug_file_by_buildid): Return
12506 std::string.
12507 * coffread.c (coff_symfile_read): Adjust to std::string.
12508 * elfread.c (elf_symfile_read): Adjust to std::string.
12509 * symfile.c (separate_debug_file_exists): Change parameter to
12510 std::string.
12511 (find_separate_debug_file): Return std::string.
12512 (find_separate_debug_file_by_debuglink): Return std::string.
12513 * symfile.h (find_separate_debug_file_by_debuglink): Return
12514 std::string.
12515
12516 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12517
12518 * common/xml-utils.c (xml_escape_text): Move code to...
12519 (xml_escape_text_append): ... this new function.
12520 * common/xml-utils.h (xml_escape_text_append): New declaration.
12521 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12522 New function.
12523 (_initialize_xml_utils): register test_xml_escape_text_append as
12524 a selftest.
12525
12526 2018-03-07 Alan Hayward <alan.hayward@arm.com>
12527
12528 * defs.h: Remove MAX_REGISTER_SIZE.
12529 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12530 asserts.
12531 * python/py-unwind.c (pyuw_sniffer): Likewise.
12532
12533 2018-03-07 Tom Tromey <tom@tromey.com>
12534
12535 * linux-tdep.c (linux_info_proc): Update.
12536 * target.h (struct target_ops) <to_fileio_readlink>: Return
12537 optional<string>.
12538 (target_fileio_readlink): Return optional<string>.
12539 * remote.c (remote_hostio_readlink): Return optional<string>.
12540 * inf-child.c (inf_child_fileio_readlink): Return
12541 optional<string>.
12542 * target.c (target_fileio_readlink): Return optional<string>.
12543
12544 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12545
12546 * regcache.c (cooked_read_test): Add riscv to the list of
12547 architectures that have a save_reggroup.
12548
12549 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12550
12551 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12552 value is not a dynamic class object.
12553
12554 2018-03-06 Tom Tromey <tom@tromey.com>
12555
12556 * rust-exp.y: Formatting fixes.
12557
12558 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12559
12560 * riscv-tdep.c (riscv_register_name): Remove target description
12561 support.
12562 (riscv_gdbarch_init): Remove target description check.
12563
12564 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12565
12566 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12567 comment.
12568 * riscv-tdep.h: Likewise.
12569
12570 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12571
12572 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12573 (riscv_pseudo_register_write): Delete.
12574 (riscv_gdbarch_init): Remove all use of pseudo registers.
12575
12576 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12577
12578 * record-btrace.c (btrace_print_lines): Replace cleanup
12579 parameter with RAII equivalents.
12580 (btrace_insn_history): Replace cleanup with RAII equivalents.
12581 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12582 make_cleanup_ui_out_tuple_begin_end): Remove.
12583 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12584 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12585 make_cleanup_ui_out_list_begin_end): Remove.
12586
12587 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12588
12589 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12590 parameter types to std::vector. Use bool.
12591 (record_btrace_wait): Replace VEC(tp_t) with
12592 std::vector<thread_info *>.
12593 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12594
12595 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12596
12597 * record-btrace.c (record_btrace_disable_callback): Remove.
12598 (struct scoped_btrace_disable): New.
12599 (record_btrace_open): Use scoped_btrace_disable.
12600
12601 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12602
12603 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12604 reading values from registers.
12605
12606 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12607
12608 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12609 where appropriate.
12610
12611 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12612
12613 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12614 change parameter type. Use GDB's print functions, and use
12615 core_addr_to_string where appropriate.
12616 (riscv_push_dummy_call): Use core_addr_to_string where
12617 appropriate, update call to riscv_print_arg_location, and reindent
12618 a few lines.
12619 (riscv_return_value): Update call to riscv_print_arg_location.
12620
12621 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12622 Tim Newsome <tim@sifive.com>
12623 Albert Ou <a0u@eecs.berkeley.edu>
12624 Darius Rad <darius@bluespec.com>
12625
12626 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12627 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12628 (ALLDEPFILES): Add riscv-tdep.c
12629 * configure.tgt: Add riscv support.
12630 * riscv-tdep.c: New file.
12631 * riscv-tdep.h: New file.
12632 * NEWS: Mention new target.
12633 * MAINTAINERS: Add entry for riscv.
12634
12635 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12636
12637 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12638 fields within aggregates.
12639
12640 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12641
12642 * record-btrace.c (btrace_print_lines): Change type of flags to
12643 gdb_disassembly_flags.
12644
12645 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12646
12647 * fbsd-nat.c: Include "inf-ptrace.h".
12648 (USE_SIGTRAP_SIGINFO): Conditionally define.
12649 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12650 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12651 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12652 function.
12653 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12654 Likewise.
12655 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12656 Likewise.
12657 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12658 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12659 "supports_stopped_by_hw_breakpoint" target methods.
12660
12661 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12662
12663 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12664 * fbsd-nat.c (debug_fbsd_nat): New variable.
12665 (show_fbsd_nat_debug): New function.
12666 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12667 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12668
12669 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12670
12671 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12672 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12673 prototype.
12674 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12675 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12676 method.
12677
12678 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12679
12680 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12681 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12682
12683 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12684
12685 * charset.c (struct charset_vector): New.
12686 (charsets): Change type to charset_vector.
12687 (find_charset_names): Adjust.
12688 (add_one): Adjust.
12689 (_initialize_charset): Adjust.
12690
12691 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12692
12693 * progspace.h (struct program_space) <deleted_solibs>: Change
12694 type to std::vector<std::string>.
12695 * progspace.c (clear_program_space_solib_cache): Adjust.
12696 * breakpoint.c (print_solib_event): Adjust.
12697 (check_status_catch_solib): Adjust.
12698 * solib.c (update_solib_list): Adjust.
12699 * ui-out.h (class ui_out) <field_string>: New overload.
12700 * ui-out.c (ui_out::field_string): New overload.
12701
12702 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12703
12704 * progspace.h (struct program_space): Add constructor and
12705 destructor, initialize fields.
12706 (add_program_space): Remove.
12707 * progspace.c (add_program_space): Rename to...
12708 (program_space::program_space): ... this.
12709 (release_program_space): Rename to...
12710 (program_space::~program_space): ... this.
12711 (delete_program_space): Use delete to delete program_space.
12712 (initialize_progspace): Use new to allocate program_space.
12713 * inferior.c (add_inferior_with_spaces): Likewise.
12714 (clone_inferior_command): Likewise.
12715 * infrun.c (follow_fork_inferior): Likewise.
12716 (handle_vfork_child_exec_or_exit): Likewise.
12717
12718 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12719
12720 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12721 (delim_string_to_char_ptr_vec): Return std::vector of
12722 gdb::unique_xmalloc_ptr.
12723 (dirnames_to_char_ptr_vec_append): Take std::vector of
12724 gdb::unique_xmalloc_ptr.
12725 (dirnames_to_char_ptr_vec): Return std::vector of
12726 gdb::unique_xmalloc_ptr.
12727 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12728 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12729 (delim_string_to_char_ptr_vec): Return an std::vector of
12730 gdb::unique_xmalloc_ptr, adjust the code.
12731 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12732 gdb::unique_xmalloc_ptr, adjust the code.
12733 (dirnames_to_char_ptr_vec): Return an std::vector of
12734 gdb::unique_xmalloc_ptr, adjust the code.
12735 * auto-load.c (auto_load_safe_path_vec): Change type to
12736 std::vector of gdb::unique_xmalloc_ptr.
12737 (auto_load_expand_dir_vars): Return an std::vector of
12738 gdb::unique_xmalloc_ptr, adjust the code.
12739 (auto_load_safe_path_vec_update): Adjust.
12740 (filename_is_in_auto_load_safe_path_vec): Adjust.
12741 (auto_load_objfile_script_1): Adjust.
12742 * build-id.c (build_id_to_debug_bfd): Adjust.
12743 * linux-thread-db.c (thread_db_load_search): Adjust.
12744 * source.c (add_path): Adjust.
12745 (openp): Adjust.
12746 * symfile.c (find_separate_debug_file): Adjust.
12747 * utils.c (do_free_char_ptr_vec): Remove.
12748 (make_cleanup_free_char_ptr_vec): Remove.
12749
12750 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12751
12752 PR gdb/22907
12753 * common/pathstuff.c: Conditionally include "<windows.h>".
12754
12755 2018-03-01 Georg Sauthoff <mail@georg.so>
12756
12757 PR gdb/22888
12758 * gcore.in: Quote variables and switch interpreter to bash.
12759
12760 2018-03-01 Tom Tromey <tom@tromey.com>
12761
12762 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12763 assertion. Add assertion for discriminant_index.
12764 (quirk_rust_enum): Use correct base type name in univariant case.
12765
12766 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12767
12768 * record.c (get_call_history_modifiers): Return a
12769 record_print_flags.
12770 (cmd_record_call_history): Adjust.
12771 * record-btrace.c (record_btrace_call_history): Adjust.
12772 (record_btrace_call_history_range): Adjust.
12773 (record_btrace_call_history_from): Adjust.
12774 * target-debug.h (target_debug_print_record_print_flags): New.
12775 * target-delegates.c: Re-generate.
12776 * target.c (target_call_history): Change flags type.
12777 (target_call_history_from): Likewise.
12778 (target_call_history_range): Likewise.
12779 * target.h (struct target_ops) <target_call_history>: Likewise.
12780 (target_call_history_from): Likewise.
12781 (target_call_history_range): Likewise.
12782
12783 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12784 Simon Marchi <simon.marchi@polymtl.ca>
12785
12786 * common/common-utils.c: Include "sys/stat.h".
12787 (is_regular_file): Move here from "source.c"; change return
12788 type to "bool".
12789 * common/common-utils.h (is_regular_file): New prototype.
12790 * common/pathstuff.c (contains_dir_separator): New function.
12791 * common/pathstuff.h (contains_dir_separator): New prototype.
12792 * source.c: Don't include "sys/stat.h".
12793 (is_regular_file): Move to "common/common-utils.c".
12794
12795 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12796
12797 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12798 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12799 * auto-load.c: Include "common/pathstuff.h".
12800 * common/common-def.h (current_directory): Move here.
12801 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12802 function.
12803 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12804 prototype.
12805 * common/pathstuff.c: New file.
12806 * common/pathstuff.h: New file.
12807 * compile/compile.c: Include "common/pathstuff.h".
12808 * defs.h (current_directory): Move to "common/common-defs.h".
12809 * dwarf2read.c: Include "common/pathstuff.h".
12810 * exec.c: Likewise.
12811 * guile/scm-safe-call.c: Likewise.
12812 * linux-thread-db.c: Likewise.
12813 * main.c: Likewise.
12814 * nto-tdep.c: Likewise.
12815 * objfiles.c: Likewise.
12816 * source.c: Likewise.
12817 * symtab.c: Likewise.
12818 * utils.c: Include "common/pathstuff.h".
12819 (gdb_realpath): Move to "common/pathstuff.c".
12820 (gdb_realpath_keepfile): Likewise.
12821 (gdb_abspath): Likewise.
12822 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12823 (gdb_realpath_keepfile): Likewise.
12824 (gdb_abspath): Likewise.
12825
12826 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12827
12828 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12829 wildcard process pid for super_resume for kernels with a
12830 specific bug.
12831
12832 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12833
12834 * compile/compile.c (get_args): Add additional comments
12835 explaining function.
12836
12837 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12838 Tom Tromey <tom@tromey.com>
12839
12840 * target.h (memory_write_request_s): Remove typedef. Don't define
12841 VEC.
12842 (target_write_memory_blocks): Change argument to std::vector.
12843 (struct memory_write_request): Add constructor.
12844 * target-memory.c (compare_block_starting_address): Return bool.
12845 Change argument types.
12846 (claim_memory): Change arguments to use std::vector.
12847 (split_regular_and_flash_blocks, blocks_to_erase)
12848 (compute_garbled_blocks): Likewise.
12849 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12850 (target_write_memory_blocks): Change argument to std::vector.
12851 * symfile.c (struct load_section_data): Add constructor and
12852 destructor. Use std::vector for "requests".
12853 (struct load_progress_data): Add initializers.
12854 (load_section_callback): Update. Use "new".
12855 (clear_memory_write_data): Remove.
12856 (generic_load): Update.
12857
12858 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12859
12860 * arch/aarch64.h: Use common/tdesc.h.
12861
12862 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12863
12864 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12865 architecture with a 64-bit ABI.
12866
12867 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12868
12869 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12870 ahead of target description loading.
12871
12872 2018-02-26 Tom Tromey <tom@tromey.com>
12873
12874 * stack.c (backtrace_command_1): Update.
12875 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12876 of "flags".
12877 * python/py-framefilter.c (py_print_frame)
12878 (gdbpy_apply_frame_filter): Change type of "flags".
12879 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12880 of "flags".
12881 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12882 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12883 * extension.h (enum frame_filter_flag): Rename from
12884 frame_filter_flags.
12885 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12886 (apply_ext_lang_frame_filter): Change type of "flags".
12887 * extension.c (apply_ext_lang_frame_filter): Change type of
12888 "flags".
12889 * extension-priv.h (struct extension_language_ops)
12890 <apply_frame_filter>: Change type of "flags".
12891
12892 2018-02-26 Tom Tromey <tom@tromey.com>
12893
12894 PR python/16497:
12895 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12896 off-by-one in py_end computation.
12897 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12898 PRINT_MORE_FRAMES.
12899 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12900 constant.
12901
12902 2018-02-26 Tom Tromey <tom@tromey.com>
12903
12904 * dwarf2read.c (struct variant_field): New.
12905 (struct nextfield) <variant>: New field.
12906 (dwarf2_add_field): Handle DW_TAG_variant_part.
12907 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12908 discriminated union.
12909 (read_structure_type): Handle DW_TAG_variant_part.
12910 (handle_struct_member_die): New function, extracted from
12911 process_structure_scope. Handle DW_TAG_variant.
12912 (process_structure_scope): Handle discriminated unions. Call
12913 handle_struct_member_die.
12914
12915 2018-02-26 Tom Tromey <tom@tromey.com>
12916
12917 * rust-lang.h (rust_last_path_segment): Declare.
12918 * rust-lang.c (rust_last_path_segment): Now public. Change
12919 contract.
12920 (struct disr_info): Remove.
12921 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12922 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12923 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12924 (rust_enum_p, rust_enum_variant): New function.
12925 (rust_underscore_fields): Remove "offset" parameter.
12926 (rust_print_enum): New function.
12927 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12928 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12929 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12930 enums.
12931 (rust_internal_print_type): New function, from rust_print_type.
12932 Remove enum code.
12933 (rust_print_type): Call rust_internal_print_type.
12934 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12935 Update enum handling.
12936 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12937 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12938 (rust_union_quirks): New functions.
12939 (process_full_comp_unit, process_full_type_unit): Call
12940 rust_union_quirks.
12941 (process_structure_scope): Update rust_unions if necessary.
12942
12943 2018-02-26 Tom Tromey <tom@tromey.com>
12944
12945 * value.h (value_union_variant): Declare.
12946 * valops.c (value_union_variant): New function.
12947 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12948 (struct discriminant_info): New.
12949 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12950 enumerator.
12951 (struct main_type) <flag_discriminated_union>: New field.
12952
12953 2018-02-26 Tom Tromey <tom@tromey.com>
12954
12955 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12956 unittests/unpack-selftests.c.
12957 * unittests/unpack-selftests.c: New file.
12958 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12959
12960 2018-02-26 Yao Qi <yao.qi@linaro.org>
12961
12962 * dwarf2read.c (struct partial_die_info) <read>: New method.
12963 (read_partial_die): Remove the declaration.
12964 (load_partial_dies): Update.
12965 (partial_die_info::partial_die_info):
12966 (read_partial_die): Change it to partial_die_info::read.
12967
12968 2018-02-26 Yao Qi <yao.qi@linaro.org>
12969
12970 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12971 (fixup_partial_die): Remove declaration.
12972 (scan_partial_symbols): Update.
12973 (partial_die_parent_scope): Likewise.
12974 (partial_die_full_name): Likewise.
12975 (fixup_partial_die): Change it to partial_die_info::fixup.
12976
12977 2018-02-26 Yao Qi <yao.qi@linaro.org>
12978
12979 * dwarf2read.c (read_partial_die): Update the declaration.
12980 (load_partial_dies): Caller update.
12981 (read_partial_die): Remove one argument abbrev_len.
12982
12983 2018-02-26 Yao Qi <yao.qi@linaro.org>
12984
12985 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12986 assignment operator.
12987 (load_partial_dies): Use ctor and copy ctor.
12988 (read_partial_die): Update.
12989 (dwarf2_cu::find_partial_die): Use ctor.
12990
12991 2018-02-26 Yao Qi <yao.qi@linaro.org>
12992
12993 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12994 (find_partial_die_in_comp_unit): Change it to
12995 dwarf2_cu::find_partial_die.
12996 (find_partial_die): Update.
12997
12998 2018-02-26 Yao Qi <yao.qi@linaro.org>
12999
13000 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13001 is NULL.
13002
13003 2018-02-26 Yao Qi <yao.qi@linaro.org>
13004
13005 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13006
13007 2018-02-26 Alan Hayward <alan.hayward@arm.com>
13008
13009 * arch/amd64.h: Use common/tdesc.h.
13010 * arch/i386.c: Likewise.
13011 * arch/i386.h: Likewise.
13012 * arch/tic6x.c: Likewise.
13013 * arch/tdesc.h: Move file from here...
13014 * common/tdesc.h: ...to here.
13015 * features/aarch64-core.c: Regenerate.
13016 * features/aarch64-fpu.c: Regenerate.
13017 * features/i386/32bit-avx.c: Regenerate.
13018 * features/i386/32bit-avx512.c: Regenerate.
13019 * features/i386/32bit-core.c: Regenerate.
13020 * features/i386/32bit-linux.c: Regenerate.
13021 * features/i386/32bit-mpx.c: Regenerate.
13022 * features/i386/32bit-pkeys.c: Regenerate.
13023 * features/i386/32bit-sse.c: Regenerate.
13024 * features/i386/64bit-avx.c: Regenerate.
13025 * features/i386/64bit-avx512.c: Regenerate.
13026 * features/i386/64bit-core.c: Regenerate.
13027 * features/i386/64bit-linux.c: Regenerate.
13028 * features/i386/64bit-mpx.c: Regenerate.
13029 * features/i386/64bit-pkeys.c: Regenerate.
13030 * features/i386/64bit-segments.c: Regenerate.
13031 * features/i386/64bit-sse.c: Regenerate.
13032 * features/i386/x32-core.c: Regenerate.
13033 * features/tic6x-c6xp.c: Regenerate.
13034 * features/tic6x-core.c: Regenerate.
13035 * features/tic6x-gp.c: Regenerate.
13036 * target-descriptions.c: Use common/tdesc.h.
13037 * target-descriptions.h: Likewise.
13038
13039 2018-02-24 Tom Tromey <tom@tromey.com>
13040
13041 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13042 (try_thread_db_load_from_dir, thread_db_load_search): Use
13043 std::string.
13044 (info_auto_load_libthread_db_compare): Return bool. Change
13045 argument types.
13046 (info_auto_load_libthread_db): Use std::vector, std::string.
13047 Remove cleanups.
13048
13049 2018-02-24 Tom Tromey <tom@tromey.com>
13050
13051 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13052 std::string.
13053 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13054 std::string*.
13055 * gdbarch.c: Rebuild.
13056 * gdbarch.h: Rebuild.
13057 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13058 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13059 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13060 std::string*.
13061
13062 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
13063
13064 * gdbtypes.h (sect_offset): Change type to uint64_t.
13065 (sect_offset_str): New function.
13066 * dwarf2read.c (create_addrmap_from_aranges): Use
13067 sect_offset_str.
13068 (error_check_comp_unit_head): Likewise.
13069 (create_debug_type_hash_table): Likewise.
13070 (read_cutu_die_from_dwo): Likewise.
13071 (init_cutu_and_read_dies): Likewise.
13072 (init_cutu_and_read_dies_no_follow): Likewise.
13073 (process_psymtab_comp_unit_reader): Likewise.
13074 (partial_die_parent_scope): Likewise.
13075 (peek_die_abbrev): Likewise.
13076 (process_queue): Likewise.
13077 (dwarf2_physname): Likewise.
13078 (read_namespace_alias): Likewise.
13079 (read_import_statement): Likewise.
13080 (create_dwo_cu_reader): Likewise.
13081 (create_cus_hash_table): Likewise.
13082 (lookup_dwo_cutu): Likewise.
13083 (inherit_abstract_dies): Likewise.
13084 (read_func_scope): Likewise.
13085 (read_call_site_scope): Likewise.
13086 (dwarf2_add_member_fn): Likewise.
13087 (read_common_block): Likewise.
13088 (read_module_type): Likewise.
13089 (read_typedef): Likewise.
13090 (read_subrange_type): Likewise.
13091 (load_partial_dies): Likewise.
13092 (read_partial_die): Likewise.
13093 (find_partial_die): Likewise.
13094 (read_str_index): Likewise.
13095 (dwarf2_string_attr): Likewise.
13096 (build_error_marker_type): Likewise.
13097 (lookup_die_type): Likewise.
13098 (dump_die_shallow): Likewise.
13099 (follow_die_ref): Likewise.
13100 (dwarf2_fetch_die_loc_sect_off): Likewise.
13101 (dwarf2_fetch_constant_bytes): Likewise.
13102 (follow_die_sig): Likewise.
13103 (get_signatured_type): Likewise.
13104 (get_DW_AT_signature_type): Likewise.
13105 (dwarf2_find_containing_comp_unit): Likewise.
13106 (set_die_type): Likewise.
13107
13108 2018-02-21 John Baldwin <jhb@FreeBSD.org>
13109
13110 * arch/aarch64.c: Include "common-defs.h".
13111 * arch/amd64.c: Likewise.
13112 * arch/i386.c: Likewise.
13113
13114 2018-02-21 Tom Tromey <tom@tromey.com>
13115
13116 * value.h: (extract_field_op): Update.
13117 * eval.c (extract_field_op): Return a const char *.
13118 * expression.h (parse_expression_for_completion): Update.
13119 * completer.c (complete_expression): Update.
13120 (add_struct_fields): Make fieldname const.
13121 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
13122 (mark_completion_tag, parse_exp_in_context_1): Update.
13123 (parse_expression_for_completion): Change "name" to
13124 unique_xmalloc_ptr*.
13125
13126 2018-02-21 Tom Tromey <tom@tromey.com>
13127
13128 * infcall.c (call_function_by_hand_dummy): Use std::vector.
13129
13130 2018-02-21 Yao Qi <yao.qi@linaro.org>
13131
13132 * avr-tdep.c (avr_read_pc): Change parameter type to
13133 readable_regcache.
13134 * gdbarch.sh (read_pc): Likewise.
13135 * gdbarch.c: Re-generated.
13136 * gdbarch.h: Re-generated.
13137 * hppa-tdep.c (hppa_read_pc): Change parameter type to
13138 readable_regcache.
13139 * ia64-tdep.c (ia64_read_pc): Likewise.
13140 * mips-tdep.c (mips_read_pc): Likewise.
13141 * spu-tdep.c (spu_read_pc): Likewise.
13142
13143 2018-02-21 Yao Qi <yao.qi@linaro.org>
13144
13145 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
13146 * regcache-dump.c: New file.
13147 * regcache.c: Move register_dump to regcache-dump.c.
13148 (maintenance_print_registers): Likewise.
13149 (maintenance_print_raw_registers): Likewise.
13150 (maintenance_print_cooked_registers): Likewise.
13151 (maintenance_print_register_groups): Likewise.
13152 (maintenance_print_remote_registers): Likewise.
13153 (_initialize_regcache): Likewise.
13154 * regcache.h (register_dump): Moved from regcache.c.
13155
13156 2018-02-21 Yao Qi <yao.qi@linaro.org>
13157
13158 * regcache.c (regcache::regcache): Update.
13159 (regcache::invalidate): Move it to detached_regcache::invalidate.
13160 (get_thread_arch_aspace_regcache): Update.
13161 (regcache::raw_update): Update.
13162 (regcache::cooked_read): Remove some code.
13163 (regcache::cooked_read_value): Likewise.
13164 (regcache::raw_write): Remove assert on m_readonly_p.
13165 (regcache::raw_supply_integer): Move it to
13166 detached_regcache::raw_supply_integer.
13167 (regcache::raw_supply_zeroed): Likewise.
13168 * regcache.h (detached_regcache) <raw_supply_integer>: New
13169 declaration.
13170 <raw_supply_zeroed, invalidate>: Likewise.
13171 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
13172 <invalidate>: Likewise.
13173 <m_readonly_p>: Removed.
13174
13175 2018-02-21 Yao Qi <yao.qi@linaro.org>
13176
13177 * infcmd.c (get_return_value): Let stop_regs point to
13178 get_current_regcache.
13179 * regcache.c (regcache::regcache): Remove.
13180 (register_dump_reg_buffer): New class.
13181 (regcache_print): Adjust.
13182 * regcache.h (regcache): Remove constructors.
13183
13184 2018-02-21 Yao Qi <yao.qi@linaro.org>
13185
13186 * regcache.c (class register_dump): New class.
13187 (register_dump_regcache, register_dump_none): New class.
13188 (register_dump_remote, register_dump_groups): New class.
13189 (regcache_print): Update.
13190 * regcache.h (regcache_dump_what): Move it to regcache.c.
13191 (regcache) <dump>: Remove.
13192
13193 2018-02-21 Yao Qi <yao.qi@linaro.org>
13194
13195 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
13196 reg_buffer_rw *.
13197 (jit_unwind_reg_set_impl): Call raw_supply.
13198 (jit_frame_sniffer): Use reg_buffer_rw.
13199 * record-full.c (record_full_core_regbuf): Change its type.
13200 (record_full_core_open_1): Use reg_buffer_rw.
13201 (record_full_close): Likewise.
13202 (record_full_core_fetch_registers): Use regcache->raw_supply.
13203 (record_full_core_store_registers): Likewise.
13204 * regcache.c (regcache::get_register_status): Move it to
13205 reg_buffer.
13206 (regcache_raw_set_cached_value): Remove.
13207 (regcache::raw_set_cached_value): Remove.
13208 (regcache::raw_write): Call raw_supply.
13209 (regcache::raw_supply): Move it to reg_buffer_rw.
13210 * regcache.h (regcache_raw_set_cached_value): Remove.
13211 (reg_buffer_rw): New class.
13212
13213 2018-02-21 Yao Qi <yao.qi@linaro.org>
13214
13215 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
13216 readonly_detached_regcache.
13217 (dummy_frame_prev_register): Use regcache->cooked_read.
13218 * frame.c (frame_save_as_regcache): Change return type.
13219 (frame_pop): Update.
13220 * frame.h (frame_save_as_regcache): Update declaration.
13221 * inferior.h (get_infcall_suspend_state_regcache): Update
13222 declaration.
13223 * infrun.c (infcall_suspend_state) <registers>: use
13224 readonly_detached_regcache.
13225 (save_infcall_suspend_state): Don't use regcache_dup.
13226 (get_infcall_suspend_state_regcache): Change return type.
13227 * linux-fork.c (struct fork_info) <savedregs>: Change to
13228 readonly_detached_regcache.
13229 <pc>: New field.
13230 (fork_save_infrun_state): Don't use regcache_dup.
13231 (info_checkpoints_command): Adjust.
13232 * mi/mi-main.c (register_changed_p): Update declaration.
13233 (mi_cmd_data_list_changed_registers): Use
13234 readonly_detached_regcache.
13235 (register_changed_p): Change parameter type to
13236 readonly_detached_regcache.
13237 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
13238 readonly_detached_regcache.
13239 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
13240 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
13241 New.
13242 (regcache::save): Move it to reg_buffer.
13243 (regcache::restore): Change parameter type.
13244 (regcache_dup): Remove.
13245 * regcache.h (reg_buffer) <save>: New method.
13246 (readonly_detached_regcache): New class.
13247 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
13248 readonly_detached_regcache.
13249 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
13250
13251 2018-02-21 Yao Qi <yao.qi@linaro.org>
13252
13253 * frame.c (frame_save_as_regcache): Use regcache method save.
13254 (frame_pop): Use regcache method restore.
13255 * infrun.c (restore_infcall_suspend_state): Likewise.
13256 * linux-fork.c (fork_load_infrun_state): Likewise.
13257 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
13258 save.
13259 * regcache.c (regcache_save): Remove.
13260 (regcache::restore): More asserts.
13261 (regcache_cpy): Remove.
13262 * regcache.h (regcache_save): Remove the declaration.
13263 (regcache::restore): Move from private to public.
13264 Remove the friend declaration of regcache_cpy.
13265 (regcache_cpy): Remove declaration.
13266
13267 2018-02-21 Yao Qi <yao.qi@linaro.org>
13268
13269 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
13270 parameter type to 'readable_regcache *'.
13271 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13272 * arm-tdep.c (arm_neon_quad_read): Likewise.
13273 (arm_pseudo_read): Likewise.
13274 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13275 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13276 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13277 * gdbarch.c: Re-generated.
13278 * gdbarch.h: Re-generated.
13279 * gdbarch.sh (pseudo_register_read): Change parameter type to
13280 'readable_regcache *'.
13281 (pseudo_register_read_value): Likewise.
13282 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
13283 (h8300_pseudo_register_read): Likewise.
13284 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
13285 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13286 (i386_pseudo_register_read_into_value): Likewise.
13287 (i386_pseudo_register_read_value): Likewise.
13288 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
13289 declaration.
13290 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
13291 * m32c-tdep.c (m32c_raw_read): Likewise.
13292 (m32c_read_flg): Likewise.
13293 (m32c_banked_register): Likewise.
13294 (m32c_banked_read): Likewise.
13295 (m32c_sb_read): Likewise.
13296 (m32c_part_read): Likewise.
13297 (m32c_cat_read): Likewise.
13298 (m32c_r3r2r1r0_read): Likewise.
13299 (m32c_pseudo_register_read): Likewise.
13300 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13301 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13302 (mep_pseudo_cr64_read): Likewise.
13303 (mep_pseudo_register_read): Likewise.
13304 * mips-tdep.c (mips_pseudo_register_read): Likewise.
13305 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13306 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13307 * regcache.c (regcache::raw_read): Move it to readable_regcache.
13308 (regcache::cooked_read): Likewise.
13309 (regcache::cooked_read_value): Likewise.
13310 (regcache_cooked_read_signed):
13311 (regcache::cooked_read): Likewise.
13312 * regcache.h (readable_regcache): New class.
13313 (regcache): Inherit readable_regcache. Move some methods to
13314 readable_regcache.
13315 * rl78-tdep.c (rl78_pseudo_register_read): Change
13316 parameter type to 'readable_regcache *'.
13317 * rs6000-tdep.c (do_regcache_raw_read): Remove.
13318 (e500_pseudo_register_read): Change parameter type to
13319 'readable_regcache *'.
13320 (dfp_pseudo_register_read): Likewise.
13321 (vsx_pseudo_register_read): Likewise.
13322 (efpr_pseudo_register_read): Likewise.
13323 * s390-tdep.c (s390_pseudo_register_read): Likewise.
13324 * sh-tdep.c (sh_pseudo_register_read): Likewise.
13325 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
13326 (sh64_pseudo_register_read): Likewise.
13327 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13328 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13329 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13330 (spu_pseudo_register_read): Likewise.
13331 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13332 (xtensa_pseudo_register_read): Likewise.
13333
13334 2018-02-21 Yao Qi <yao.qi@linaro.org>
13335
13336 * regcache.c (regcache::regcache): Call reg_buffer ctor.
13337 (regcache::arch): Move it to reg_buffer::arch.
13338 (regcache::register_buffer): Likewise.
13339 (regcache::assert_regnum): Likewise.
13340 (regcache::num_raw_registers): Likewise.
13341 * regcache.h (reg_buffer): New class.
13342 (regcache): Inherit reg_buffer.
13343
13344 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
13345
13346 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
13347 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
13348
13349 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
13350
13351 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
13352
13353 2018-02-19 Alan Hayward <alan.hayward@arm.com>
13354
13355 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
13356 (SFILES): Remove common/*.c files.
13357 (COMMON_OBS): Remove some *.o files built from common/*.c files.
13358 * common/common.host: Add common reference.
13359 * configure.ac: Likewise.
13360 * configure: Regenerate.
13361
13362 2018-02-16 Yao Qi <yao.qi@linaro.org>
13363
13364 * block.c (block_namespace_info): Inherit allocate_on_obstack.
13365 (block_initialize_namespace): Use new.
13366 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
13367 (dwarf2_free_objfile): Use delete.
13368 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
13369 (copy_type_recursive): Use new.
13370 * gdb_obstack.h (allocate_on_obstack): New.
13371
13372 2018-02-15 Yao Qi <yao.qi@linaro.org>
13373
13374 PR gdb/22849
13375 * inferior.c (exit_inferior_1): Reset inf->control.
13376
13377 2018-02-15 Joel Brobecker <brobecker@adacore.com>
13378
13379 * ada-lang.c (ada_to_fixed_value_create): Delete advance
13380 declaration.
13381
13382 2018-02-14 Pedro Alves <palves@redhat.com>
13383
13384 * frame-unwind.c (frame_unwind_try_unwinder): Always call
13385 frame_cleanup_after_sniffer on exception.
13386
13387 2018-02-14 Tom Tromey <tom@tromey.com>
13388
13389 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
13390 const.
13391 (solib_bfd_open): Make pathname const.
13392 * solib.c (solib_bfd_open): Make pathname const.
13393 * solib-spu.c (spu_bfd_fopen): Make name const.
13394 (spu_bfd_open): Make pathname const.
13395 * solib-darwin.c (darwin_bfd_open): Make pathname const.
13396 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
13397
13398 2018-02-14 Tom Tromey <tom@tromey.com>
13399
13400 * symfile.c (symfile_bfd_open): Update.
13401 * source.h (openp, source_full_path_of, find_and_open_source):
13402 Change argument type to unique_xmalloc_ptr.
13403 * source.c (openp): Take a unique_xmalloc_ptr.
13404 (source_full_path_of, find_and_open_source): Likewise.
13405 (open_source_file, symtab_to_fullname): Update.
13406 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
13407 unique_xmalloc_ptr.
13408 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
13409 (exec_file_find): Update.
13410 * psymtab.c (psymtab_to_fullname): Update.
13411 * nto-tdep.h (nto_find_and_open_solib): Update.
13412 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
13413 unique_xmalloc_ptr.
13414 * exec.c (exec_file_attach): Update.
13415 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
13416 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
13417
13418 2018-02-14 Tom Tromey <tom@tromey.com>
13419
13420 * solib.c: Include source.h.
13421 * nto-tdep.c: Include source.h.
13422 * mi/mi-cmd-env.c: Include source.h.
13423 * infcmd.c: Include source.h.
13424 * exec.c: Include source.h.
13425 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
13426 (add_path, directory_switch, source_path, init_source_path): Move
13427 declarations...
13428 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
13429 (add_path, directory_switch, source_path, init_source_path):
13430 ...here.
13431
13432 2018-02-14 Tom Tromey <tom@tromey.com>
13433
13434 * solist.h (exec_file_find, solib_find): Return
13435 unique_xmalloc_ptr.
13436 (solib_bfd_fopen): Take a const char *.
13437 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
13438 (exec_file_find, solib_find): Likewise.
13439 (solib_bfd_fopen): Do not take ownership of "pathname".
13440 (solib_bfd_open): Use unique_xmalloc_ptr.
13441 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
13442 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
13443 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
13444 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
13445
13446 2018-02-14 Joel Brobecker <brobecker@adacore.com>
13447
13448 * ada-lang.c (name_match_type_from_name): Remove reference to
13449 ada_name_for_lookup in function's documentation.
13450 * ada-lang.h (ada_name_for_lookup): Delete declaration.
13451
13452 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13453
13454 * defs.h (enum openp_flags): New enum.
13455 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
13456 Move to enum openp_flags.
13457 (openp_flags): New enum flags.
13458 (openp): Change parameter type to openp_flags.
13459 * source.c (openp): Change parameter type to openp_flags.
13460 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
13461 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
13462
13463 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
13464
13465 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
13466 per-command.
13467
13468 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
13469
13470 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
13471 into...
13472 (class dwarf2_queue_guard): ...the destructor of this new class.
13473 (dw2_do_instantiate_symtab): Create instance of the new class
13474 dwarf2_queue_guard, remove cleanup.
13475
13476 2018-02-09 Tom Tromey <tom@tromey.com>
13477
13478 * source.c (find_source_lines): Don't reference past the end of
13479 the vector.
13480
13481 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13482
13483 * remote.c (remote_btrace_maybe_reopen): Change error message.
13484 * btrace.c (btrace_enable): Likewise.
13485 (parse_xml_btrace): Likewise.
13486 (parse_xml_btrace_conf): Likewise.
13487
13488 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13489
13490 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13491 (linux_enable_pt, linux_enable_bts): Call
13492 diagnose_perf_event_open_fail.
13493
13494 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13495
13496 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13497 Remove parameter and change return type. Update callers. Move it.
13498 (linux_enable_bts, linux_enable_pt): Improve error message.
13499 (linux_enable_pt): Remove zero buffer size check.
13500 (linux_enable_btrace): Improve error messages. Remove NULL return
13501 check.
13502
13503 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13504
13505 * btrace.c (btrace_enable): Remove target_supports_btrace call.
13506 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13507 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13508 (linux_supports_pt, linux_supports_btrace): Remove.
13509 (linux_enable_bts): Call cpu_supports_bts.
13510 * nat/linux-btrace.h (linux_supports_btrace): Remove.
13511 * remote.c (remote_supports_btrace): Remove.
13512 (init_remote_ops): Remove remote_supports_btrace.
13513 * target-delegates.c: Regenerated.
13514 * target.c (target_supports_btrace): Remove.
13515 * target.h (target_ops) <to_supports_btrace>: Remove
13516 (target_supports_btrace): Remove.
13517 * x86-linux-nat.c (x86_linux_create_target): Remove
13518 linux_supports_btrace.
13519
13520 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13521
13522 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13523 btrace failed.
13524 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13525 exception and use message in own exception.
13526
13527 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13528
13529 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13530 (perf_event_pt_event_type): Use gdb_file_up.
13531 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13532 scoped_fd, and scoped_mmap.
13533
13534 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13535
13536 * common/scoped_mmap.h: New.
13537 * unittests/scoped_mmap-selftest.c: New.
13538 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13539 unittests/scoped_mmap-selftest.c.
13540
13541 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13542
13543 * common/scoped_fd.h: New.
13544 * unittests/scoped_fd-selftest.c: New.
13545 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13546 unittests/scoped_fd-selftest.c.
13547
13548 2018-02-09 Tom Tromey <tom@tromey.com>
13549
13550 * auto-load.c (auto_load_section_scripts): Use
13551 gdb::unique_xmalloc_ptr.
13552
13553 2018-02-09 Tom Tromey <tom@tromey.com>
13554
13555 * auto-load.c (execute_script_contents): Use std::string.
13556
13557 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13558
13559 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13560 Python function, rather than a new command.
13561
13562 2018-02-08 Tom Tromey <tom@tromey.com>
13563
13564 * solib.c (solib_find_1): Use std::string.
13565 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13566
13567 2018-02-08 Tom Tromey <tom@tromey.com>
13568
13569 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13570
13571 2018-02-08 Tom Tromey <tom@tromey.com>
13572
13573 * source.c (find_source_lines): Use gdb::def_vector.
13574
13575 2018-02-08 Tom Tromey <tom@tromey.com>
13576
13577 * macrocmd.c (struct temporary_macro_definition): New.
13578 (macro_define_command): Use temporary_macro_definition. Remove
13579 cleanups.
13580 (free_macro_definition_ptr): Remove.
13581
13582 2018-02-08 Tom Tromey <tom@tromey.com>
13583
13584 * macroexp.c (maybe_expand): Use std::string.
13585
13586 2018-02-08 Tom Tromey <tom@tromey.com>
13587
13588 * macroexp.c (struct macro_buffer): Add initializers for some
13589 members.
13590 (init_buffer, init_shared_buffer, free_buffer)
13591 (free_buffer_return_text): Remove.
13592 (macro_buffer): New constructors.
13593 (~macro_buffer): New destructor.
13594 (macro_buffer::set_shared): New method.
13595 (macro_buffer::resize_buffer, macro_buffer::appendc)
13596 (macro_buffer::appendmem): Now methods, not free functions.
13597 (set_token, append_tokens_without_splicing, stringify)
13598 (macro_stringify): Update.
13599 (gather_arguments): Change return type. Remove argc_p argument,
13600 add args_ptr argument. Use std::vector.
13601 (substitute_args): Remove argc argument. Accept std::vector.
13602 (expand): Update. Use std::vector.
13603 (scan, macro_expand, macro_expand_next): Update.
13604
13605 2018-02-08 Tom Tromey <tom@tromey.com>
13606
13607 * symtab.c (default_collect_symbol_completion_matches_break_on):
13608 Use unique_xmalloc_ptr.
13609 * macroscope.h: (sal_macro_scope, user_macro_scope)
13610 (default_macro_scope): Return unique_xmalloc_ptr.
13611 * macroscope.c (sal_macro_scope, user_macro_scope)
13612 (default_macro_scope): Return unique_xmalloc_ptr.
13613 * macroexp.h (macro_expand, macro_expand_once): Return
13614 unique_xmalloc_ptr.
13615 * macroexp.c (macro_expand, macro_expand_once): Return
13616 unique_xmalloc_ptr.
13617 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13618 (info_macro_command, info_macros_command): Use
13619 unique_xmalloc_ptr.
13620 * compile/compile-c-support.c (write_macro_definitions): Use
13621 unique_xmalloc_ptr.
13622 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13623
13624 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13625
13626 * value.c (value_static_field): Assign field type instead of
13627 containing type when returning an optimized out value.
13628
13629 2018-02-06 Yao Qi <yao.qi@linaro.org>
13630
13631 * ft32-tdep.c (ft32_read_pc): Remove.
13632 (ft32_write_pc): Remove.
13633 (ft32_gdbarch_init): Update.
13634 * m32r-tdep.c (m32r_read_pc): Remove.
13635 (m32r_gdbarch_init): Update.
13636 * mep-tdep.c (mep_read_pc): Remove.
13637 (mep_gdbarch_init): Update.
13638 * microblaze-tdep.c (microblaze_write_pc): Remove.
13639 (microblaze_gdbarch_init): Update.
13640 * mn10300-tdep.c (mn10300_read_pc): Remove.
13641 (mn10300_write_pc): Remove.
13642 (mn10300_gdbarch_init): Update.
13643 * moxie-tdep.c (moxie_read_pc): Remove.
13644 (moxie_write_pc): Remove.
13645 (moxie_gdbarch_init): Update.
13646
13647 2018-02-06 Yao Qi <yao.qi@linaro.org>
13648
13649 * expprint.c (print_subexp_standard): Handle
13650 OP_F77_UNDETERMINED_ARGLIST.
13651 (dump_subexp_body_standard): Likewise.
13652
13653 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13654
13655 * target-descriptions.c (tdesc_element_visitor) Add empty
13656 implementations.
13657 (tdesc_type): Move make_gdb_type from here.
13658 (tdesc_type_builtin): Likewise.
13659 (tdesc_type_vector): Likewise.
13660 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13661 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13662 (make_gdb_type_union): Likewise.
13663 (make_gdb_type_flags): Likewise.
13664 (make_gdb_type_enum): Likewise.
13665 (make_gdb_type): New function.
13666 (tdesc_register_type): Use static make_gdb_type.
13667
13668 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13669
13670 * infcmd.c (default_print_one_register_info): Align natural-format
13671 column values consistently one under another.
13672 (pad_to_column): New function.
13673
13674 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13675
13676 * dwarf2read.c (dwarf2_physname): Move commment.
13677
13678 2018-02-01 Leszek Swirski <leszeks@google.com>
13679
13680 * varobj.c (varobj_formatted_print_options): Allow recursive
13681 pretty printing if pretty printing is enabled.
13682
13683 2018-02-01 Leszek Swirski <leszeks@google.com>
13684
13685 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13686 names after a structop as a filename.
13687
13688 2018-02-01 Yao Qi <yao.qi@linaro.org>
13689
13690 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13691 (arm_record_coproc_data_proc): Likewise.
13692
13693 2018-02-01 Yao Qi <yao.qi@linaro.org>
13694
13695 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13696
13697 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13698
13699 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13700 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13701
13702 2018-01-31 Pedro Alves <palves@redhat.com>
13703
13704 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13705 * inflow.c (child_terminal_save_inferior): Wrap reference to
13706 tcgetpgrp in HAVE_TERMIOS_H.
13707 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13708 _WIN32.
13709 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13710 always iterate over all inferiors.
13711 (gdbsim_cntrl_c): Adjust.
13712 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13713
13714 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13715
13716 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13717 index type is objfile-owned if the element type is as well.
13718
13719 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13720
13721 GDB 8.1 released.
13722
13723 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13724
13725 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13726 "features/s390x-linux64.c".
13727 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13728 s390_linux32 and s390x_linux64.
13729 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13730 default tdesc.
13731 * s390-tdep.c: Include "features/s390-linux32.c" and
13732 "features/s390x-linux64.c".
13733 (s390_tdesc_valid): Add check for tdesc_has_registers.
13734 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13735 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13736 tdesc_s390x_linux64.
13737 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13738 tdesc_s390x_linux64 to...
13739 * s390-tdep.h: ...here.
13740
13741 2018-01-30 Pedro Alves <palves@redhat.com>
13742
13743 PR gdb/13211
13744 * config.in, configure: Regenerate.
13745 * configure.ac: Check for getpgid.
13746 * go32-nat.c (go32_pass_ctrlc): New.
13747 (go32_target): Install it.
13748 * inf-child.c (inf_child_target): Install
13749 child_terminal_save_inferior, child_pass_ctrlc and
13750 child_interrupt.
13751 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13752 (inf_ptrace_target): No longer install it.
13753 * infcmd.c (interrupt_target_1): Adjust.
13754 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13755 (child_interrupt): Declare.
13756 (inferior::terminal_state): New.
13757 * inflow.c (struct terminal_info): Update comments.
13758 (inferior_process_group): Delete.
13759 (terminal_is_ours): Delete.
13760 (gdb_tty_state): New.
13761 (child_terminal_init): Adjust.
13762 (is_gdb_terminal, sharing_input_terminal_1)
13763 (sharing_input_terminal): New functions.
13764 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13765 Set the process's actual process group in the foreground if
13766 possible. Handle is_ours_for_output/is_ours distinction. Don't
13767 mark terminal as the inferior's if not sharing GDB's terminal.
13768 Don't check attach_flag.
13769 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13770 pass down a target_terminal_state.
13771 (child_terminal_save_inferior): New, factored out from ...
13772 (child_terminal_ours_1): ... this. Handle
13773 target_terminal_state::is_ours_for_output.
13774 (child_interrupt, child_pass_ctrlc): New.
13775 (inflow_inferior_exit): Clear the inferior's terminal_state.
13776 (copy_terminal_info): Copy the inferior's terminal state.
13777 (_initialize_inflow): Remove reference to terminal_is_ours.
13778 * inflow.h (inferior_process_group): Delete.
13779 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13780 * procfs.c (procfs_target): Don't install procfs_interrupt.
13781 (procfs_interrupt): Delete.
13782 * remote.c (remote_serial_quit_handler): Adjust.
13783 (remote_interrupt): Remove ptid parameter. Adjust.
13784 * target-delegates.c: Regenerate.
13785 * target.c: Include "terminal.h".
13786 (target_terminal::terminal_state): Rename to ...
13787 (target_terminal::m_terminal_state): ... this.
13788 (target_terminal::init): Adjust.
13789 (target_terminal::inferior): Adjust to per-inferior
13790 terminal_state.
13791 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13792 (target_terminal::ours, target_terminal::ours_for_output): Use
13793 target_terminal_is_ours_kind.
13794 (target_interrupt): Remove ptid parameter. Adjust.
13795 (default_target_pass_ctrlc): Adjust.
13796 * target.h (target_ops::to_terminal_save_inferior): New field.
13797 (target_ops::to_interrupt): Remove ptid_t parameter.
13798 (target_interrupt): Remove ptid_t parameter. Update comment.
13799 (target_pass_ctrlc): Update comment.
13800 * target/target.h (target_terminal_state): New scoped enum,
13801 factored out of ...
13802 (target_terminal::terminal_state): ... here.
13803 (target_terminal::inferior): Update comments.
13804 (target_terminal::restore_inferior): New.
13805 (target_terminal::is_inferior, target_terminal::is_ours)
13806 (target_terminal::is_ours_for_output): Adjust.
13807 (target_terminal::scoped_restore_terminal_state): Adjust to
13808 rename, and call restore_inferior() instead of inferior().
13809 (target_terminal::scoped_restore_terminal_state::m_state): Change
13810 type.
13811 (target_terminal::terminal_state): Rename to ...
13812 (target_terminal::m_terminal_state): ... this and change type.
13813
13814 2018-01-30 Pedro Alves <palves@redhat.com>
13815
13816 * linux-nat.c (wait_for_signal): New function.
13817 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13818 directly.
13819 (async_terminal_is_ours)
13820 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13821 (linux_nat_add_target): Don't override
13822 to_terminal_inferior/to_terminal_ours.
13823
13824 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13825
13826 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13827
13828 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13829
13830 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13831 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13832 dwarf2_per_objfile_free here.
13833 (dwarf2_per_objfile_free): Remove.
13834 (_initialize_dwarf2_read): Don't register
13835 dwarf2_per_objfile_free as a registry cleanup.
13836
13837 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13838
13839 Avoid compilation errors in MinGW native builds
13840
13841 The error is triggered by including python-internal.h, and the
13842 error message is:
13843
13844 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13845 from build-gnulib/import/math.h:27,
13846 from d:/usr/Python26/include/pyport.h:235,
13847 from d:/usr/Python26/include/Python.h:58,
13848 from python/python-internal.h:94,
13849 from python/py-arch.c:24:
13850 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13851 using ::hypot;
13852 ^~~~~
13853
13854 This happens because Python headers define 'hypot' to expand t
13855 '_hypot' in the Windows builds.
13856 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13857 'hypoth'. This avoids a compilation error.
13858
13859 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13860
13861 * MAINTAINERS (Write After Approval): Fix ordering.
13862
13863 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13864
13865 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13866
13867 2018-01-26 Alan Modra <amodra@gmail.com>
13868
13869 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13870 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13871 Remove nop. Make const. Comment.
13872 (powerpc32_plt_stub_so_2): New.
13873 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13874 Correct count. Update uses.
13875 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13876 Move common code reading PLT entry word. Correct
13877 powerpc32_plt_stub PLT address calculation.
13878 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13879 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13880 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13881 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13882 (ppc64_standard_linkage8): Likewise.
13883 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13884 Correct insns description.
13885 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13886
13887 2018-01-24 Pedro Alves <palves@redhat.com>
13888
13889 GCC PR libstdc++/83906
13890 * gdbtypes.c (operator==(const dynamic_prop &,
13891 const dynamic_prop &)): New.
13892 (operator==(const range_bounds &, const range_bounds &)): New.
13893 (check_types_equal): Use them instead of memcmp.
13894 * gdbtypes.h (operator==(const dynamic_prop &,
13895 const dynamic_prop &)): Declare.
13896 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13897 (operator==(const range_bounds &, const range_bounds &)): Declare.
13898 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13899
13900 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13901
13902 * s390-linux-tdep.c (s390_record_address_mask)
13903 (s390_record_calc_disp_common, s390_record_calc_disp)
13904 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13905 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13906 (s390_process_record): Move to s390-tdep.c.
13907 (s390_linux_init_abi_any): Adjust.
13908 * s390-tdep.c (s390_record_address_mask)
13909 (s390_record_calc_disp_common, s390_record_calc_disp)
13910 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13911 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13912 (s390_process_record): Moved from s390-linux-tdep.c
13913 (s390_gdbarch_init): Adjust.
13914
13915 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13916
13917 * s390-linux-nat.c (s390-tdep.h): New include.
13918 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13919 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13920 (ALLDEPFILES): Add s390-tdep.c.
13921 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13922 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13923 * s390-tdep.h: ...this. New file.
13924 * s390-linux-tdep.c (s390-tdep.h): New include.
13925 (_initialize_s390_tdep): Rename to...
13926 (_initialize_s390_linux_tdep): ...this and adjust.
13927 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13928 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13929 s390-tdep.h.
13930 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13931 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13932 (s390_is_partial_instruction, s390_software_single_step)
13933 (is_non_branch_ril, s390_displaced_step_copy_insn)
13934 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13935 (s390_prologue_data, s390_addr, s390_store, s390_load)
13936 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13937 (s390_register_call_saved, s390_guess_tracepoint_registers)
13938 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13939 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13940 (s390_pseudo_register_name, s390_pseudo_register_type)
13941 (s390_pseudo_register_read, s390_pseudo_register_write)
13942 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13943 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13944 (s390_addr_bits_remove, s390_address_class_type_flags)
13945 (s390_address_class_type_flags_to_name)
13946 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13947 (s390_function_arg_float, s390_function_arg_vector)
13948 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13949 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13950 (s390_frame_align, s390_register_return_value, s390_return_value)
13951 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13952 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13953 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13954 (s390_trad_frame_prev_register, s390_unwind_cache)
13955 (s390_prologue_frame_unwind_cache)
13956 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13957 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13958 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13959 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13960 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13961 (s390_frame_base_address, s390_local_base_address)
13962 (s390_frame_base, s390_gcc_target_options)
13963 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13964 (s390_validate_reg_range, s390_tdesc_valid)
13965 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13966 * s390-tdep.c: ...this. New file.
13967
13968 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13969
13970 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13971 (s390_process_record, s390_gdbarch_tdep_alloc)
13972 (s390_linux_init_abi_any): Use/set new hook.
13973
13974 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13975
13976 * s390-linux-tdep.c (osabi.h): New include.
13977 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13978 (s390_linux_init_abi_any): New functions.
13979 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13980
13981 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13982
13983 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13984 tdesc_has_registers check
13985
13986 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13987
13988 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13989 (s390_validate_reg_range): New macro.
13990 (s390_gdbarch_init): Adjust.
13991
13992 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13993
13994 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13995 (s390_gdbarch_tdep_alloc): Adjust.
13996 (s390_gdbarch_init): Adjust.
13997
13998 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13999
14000 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14001 <have_tdb>: Change type to bool.
14002 (s390_gdbarch_tdep_alloc): Adjust.
14003 (s390_gdbarch_init): Adjust.
14004
14005 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14006
14007 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14008 (gdbarch_tdep) <have_upper, have_vx>: New fields.
14009 (s390_gdbarch_tdep_alloc): New function.
14010 (s390_gdbarch_init): Allocate tdep at start and use its fields
14011 instead of separate variables.
14012
14013 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14014
14015 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14016 when looking for cached gdbarch and add comment for remaining.
14017
14018 2018-01-22 Pedro Alves <palves@redhat.com>
14019 Sergio Durigan Junior <sergiodj@redhat.com>
14020
14021 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14022 case.
14023
14024 2018-01-22 Maciej W. Rozycki <macro@mips.com>
14025
14026 * MAINTAINERS: Update my company e-mail address.
14027
14028 2018-01-22 Yao Qi <yao.qi@linaro.org>
14029
14030 * regcache.c (cooked_write_test): New function.
14031 (_initialize_regcache): Register the test.
14032
14033 2018-01-22 Yao Qi <yao.qi@linaro.org>
14034
14035 * ia64-tdep.c (ia64_pseudo_register_read): Call
14036 regcache->cooked_read instead of regcache_cooked_read_unsigned.
14037 * m32c-tdep.c (m32c_cat_read): Likewise.
14038 (m32c_r3r2r1r0_read): Likewise.
14039 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14040 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14041
14042 2018-01-22 Yao Qi <yao.qi@linaro.org>
14043
14044 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14045 method raw_read instead of regcache_raw_read.
14046 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14047 * arm-tdep.c (arm_neon_quad_read): Likewise.
14048 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14049 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14050 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14051 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14052 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14053 (i386_pseudo_register_read_into_value): Likewise.
14054 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14055 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14056 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14057 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14058 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14059 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14060 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14061 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14062 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14063
14064 2018-01-22 Yao Qi <yao.qi@linaro.org>
14065
14066 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14067 * configure.tgt: Remove target mt.
14068 * mt-tdep.c: Remove.
14069 * regcache.c (cooked_read_test): Remove the check for mt.
14070
14071 2018-01-22 Yao Qi <yao.qi@linaro.org>
14072
14073 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14074 instead of gdbarch_pseudo_register_read_value.
14075
14076 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14077
14078 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14079 language is Ada.
14080
14081 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14082
14083 * linespec.c (create_sals_line_offset): Remove code that preserved
14084 the symtab_and_line's line number.
14085
14086 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14087
14088 * varobj.c (varobj_create): Don't set valid_block when creating a
14089 floating varobj.
14090
14091 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14092
14093 * varobj.c (varobj_create): Remove out of date comment.
14094
14095 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14096
14097 PR mi/20395
14098 * ada-exp.y (write_var_from_sym): Pass extra parameter when
14099 updating innermost block.
14100 * parse.c (innermost_block_tracker::update): Take extra type
14101 parameter, and check types match before updating innermost block.
14102 (write_dollar_variable): Update innermost block for registers.
14103 * parser-defs.h (enum innermost_block_tracker_type): New enum.
14104 (innermost_block_tracker::innermost_block_tracker): Initialise
14105 m_types member.
14106 (innermost_block_tracker::reset): Take type parameter.
14107 (innermost_block_tracker::update): Take type parameter, and pass
14108 type through as needed.
14109 (innermost_block_tracker::m_types): New member.
14110 * varobj.c (varobj_create): Pass type when reseting innermost
14111 block.
14112
14113 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14114
14115 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14116 * ada-lang.c (resolve_subexp): Likewise.
14117 * breakpoint.c (set_breakpoint_condition) Likewise.
14118 (watch_command_1) Likewise.
14119 * c-exp.y (variable): Likewise.
14120 * d-exp.y (PrimaryExpression): Likewise.
14121 * f-exp.y (variable): Likewise.
14122 * go-exp.y (variable): Likewise.
14123 * m2-exp.y (variable): Likewise.
14124 * objfiles.c (objfile::~objfile): Likewise.
14125 * p-exp.y (variable): Likewise.
14126 * parse.c (innermost_block): Change type.
14127 * parser-defs.h (class innermost_block_tracker): New.
14128 (innermost_block): Change to innermost_block_tracker.
14129 * printcmd.c (display_command): Switch to innermost_block API.
14130 (do_one_display): Likewise.
14131 * rust-exp.y (do_one_display): Likewise.
14132 * symfile.c (clear_symtab_users): Likewise.
14133 * varobj.c (varobj_create): Switch to innermost_block API, replace
14134 use of innermost_block with block stored on varobj object.
14135
14136 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14137
14138 * expression.h (innermost_block): Remove declaration.
14139 * varobj.c: Add 'parser-defs.h' include.
14140
14141 2018-01-19 Tom Tromey <tom@tromey.com>
14142
14143 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
14144 symbols in the static and global blocks.
14145
14146 2018-01-19 James Clarke <jrtc27@jrtc27.com>
14147
14148 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
14149 gdb_ptrace.h, and move including gdb_wait.h ...
14150 * nat/linux-ptrace.h: ... to here.
14151
14152 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14153
14154 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
14155 inf_ptrace_detach_success.
14156 (inf_ptrace_detach_success): Add inferior parameter, use it
14157 instead of inferior_ptid, pass it to detach_inferior.
14158 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
14159 parameter.
14160 * inferior.c (detach_inferior): Add overload that takes an
14161 inferior object.
14162 * inferior.h (detach_inferior): Likewise.
14163 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
14164 use inferior_ptid, adjust call to inf_ptrace_detach_success.
14165 * linux-thread-db.c (thread_db_detach): Use inf parameter.
14166
14167 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14168
14169 * target.h (struct target_ops) <to_detach>: Add inferior
14170 parameter.
14171 (target_detach): Likewise.
14172 * target.c (dispose_inferior): Pass inferior down.
14173 (target_detach): Pass inferior down. Assert that it is equal to
14174 the current inferior.
14175 * aix-thread.c (aix_thread_detach): Pass inferior down.
14176 * corefile.c (core_file_command): Pass current_inferior() down.
14177 * corelow.c (core_detach): Add inferior parameter.
14178 * darwin-nat.c (darwin_detach): Likewise.
14179 * gnu-nat.c (gnu_detach): Likewise.
14180 * inf-ptrace.c (inf_ptrace_detach): Likewise.
14181 * infcmd.c (detach_command): Pass current_inferior() down to
14182 target_detach.
14183 * infrun.c (follow_fork_inferior): Pass parent_inf to
14184 target_detach.
14185 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
14186 target_detach.
14187 * linux-nat.c (linux_nat_detach): Add inferior parameter.
14188 * linux-thread-db.c (thread_db_detach): Likewise.
14189 * nto-procfs.c (procfs_detach): Likewise.
14190 * procfs.c (procfs_detach): Likewise.
14191 * record.c (record_detach): Likewise.
14192 * record.h (struct inferior): Forward-declare.
14193 (record_detach): Add inferior parameter.
14194 * remote-sim.c (gdbsim_detach): Likewise.
14195 * remote.c (remote_detach_1): Likewise.
14196 (remote_detach): Likewise.
14197 (extended_remote_detach): Likewise.
14198 * sol-thread.c (sol_thread_detach): Likewise.
14199 * target-debug.h (target_debug_print_inferior_p): New macro.
14200 * target-delegates.c: Re-generate.
14201 * top.c (kill_or_detach): Pass inferior down to target_detach.
14202 * windows-nat.c (windows_detach): Add inferior parameter.
14203
14204 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
14205
14206 * target.h (struct target_ops) <to_detach>: Remove args
14207 parameter.
14208 (target_detach): Likewise.
14209 * target.c (dispose_inferior): Adjust.
14210 (target_detach): Remove args parameter, adjust.
14211 * aix-thread.c (aix_thread_detach): Adjust.
14212 * corefile.c (core_file_command): Adjust.
14213 * corelow.c (core_detach): Adjust.
14214 * darwin-nat.c (darwin_detach): Adjust.
14215 * gnu-nat.c (gnu_detach): Adjust.
14216 * inf-ptrace.c (inf_ptrace_detach): Adjust.
14217 * infcmd.c (detach_command): Adjust
14218 * infrun.c (follow_fork_inferior): Adjust.
14219 (handle_vfork_child_exec_or_exit): Adjust.
14220 * linux-fork.c (linux_fork_detach): Remove args parameter.
14221 * linux-fork.h (linux_fork_detach): Likewise.
14222 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
14223 * linux-thread-db.c (thread_db_detach): Likewise.
14224 * nto-procfs.c (procfs_detach): Likewise.
14225 * procfs.c (procfs_detach): Likewise.
14226 (do_detach): Remove signo parameter.
14227 * record.c (record_detach): Remove args parameter.
14228 * record.h (record_detach): Likewise.
14229 * remote-sim.c (gdbsim_detach): Likewise.
14230 * remote.c (remote_detach_1): Likewise.
14231 (remote_detach): Likewise.
14232 (extended_remote_detach): Likewise.
14233 * sol-thread.c (sol_thread_detach): Likewise.
14234 * target-delegates.c: Re-generate.
14235 * top.c (struct qt_args) <args>: Remove field.
14236 (kill_or_detach): Don't pass args.
14237 (quit_force): Don't set args.
14238 * windows-nat.c (windows_detach): Remove args parameter.
14239
14240 2018-01-19 Yao Qi <yao.qi@linaro.org>
14241
14242 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
14243 (arm_linux_init_abi): Install it.
14244
14245 2018-01-19 Yao Qi <yao.qi@linaro.org>
14246
14247 * osabi.c (gdb_osabi_names): Extend the regexp for
14248 arm-linux-gnueabihf.
14249
14250 2018-01-18 Yao Qi <yao.qi@linaro.org>
14251
14252 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
14253 m_abbrevs.
14254 (abbrev_table::add_abbrev): Update.
14255 (abbrev_table::lookup_abbrev): Update.
14256
14257 2018-01-18 Yao Qi <yao.qi@linaro.org>
14258
14259 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
14260
14261 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14262
14263 * compile/compile.c (compile_to_object): Convert "triplet_rx"
14264 to "std::string".
14265
14266 2018-01-17 Tom Tromey <tom@tromey.com>
14267
14268 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
14269
14270 2018-01-17 Tom Tromey <tom@tromey.com>
14271
14272 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
14273 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
14274 (create_array_type_with_stride): Update.
14275 * dwarf2read.c (set_die_type): Update.
14276
14277 2018-01-17 Tom Tromey <tom@tromey.com>
14278
14279 * dwarf2read.c (delayed_method_info): Remove typedef.
14280 (dwarf2_cu::method_info): Now a std::vector.
14281 (add_to_method_list): Update.
14282 (free_delayed_list): Remove.
14283 (compute_delayed_physnames): Update.
14284 (process_full_comp_unit, process_full_type_unit): Clear the method
14285 list. Remove cleanups.
14286 (psymtab_include_file_name): Add name_holder parameter. Use
14287 unique_xmalloc_ptr.
14288 (dwarf_decode_lines): Update.
14289
14290 2018-01-17 Tom Tromey <tom@tromey.com>
14291 Simon Marchi <simon.marchi@ericsson.com>
14292
14293 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
14294 (dwarf2_per_objfile::free_cached_comp_units)
14295 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14296 (init_cutu_and_read_dies_no_follow): Update.
14297 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
14298 (dwarf2_cu::~dwarf2_cu): New.
14299 (free_heap_comp_unit, free_stack_comp_unit): Remove.
14300 (age_cached_comp_units, free_one_cached_comp_unit): Update.
14301
14302 2018-01-17 Tom Tromey <tom@tromey.com>
14303 Simon Marchi <simon.marchi@ericsson.com>
14304
14305 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
14306 (struct die_reader_specs) <abbrev_table>: New member.
14307 (struct abbrev_table): Add constructor.
14308 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
14309 <abbrev_obstack>: Now an auto_obstack.
14310 (abbrev_table_up): New typedef.
14311 (init_cu_die_reader): Add abbrev_table parameter.
14312 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
14313 Add result_dwo_abbrev_table.
14314 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
14315 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
14316 Update.
14317 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
14318 parameter.
14319 (skip_children): Update.
14320 (abbrev_table::alloc_abbrev): Rename from
14321 abbrev_table_alloc_abbrev.
14322 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
14323 (abbrev_table::lookup_abbrev): Rename from
14324 abbrev_table_lookup_abbrev.
14325 (abbrev_table_read_table): Return abbrev_table_up.
14326 (abbrev_table_free, abbrev_table_free_cleanup)
14327 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
14328 (load_partial_dies): Update.
14329
14330 2018-01-17 Tom Tromey <tom@tromey.com>
14331
14332 * dwarf2read.c (dwarf2_compute_name): Update comment.
14333 (read_func_scope, read_variable): Update.
14334 (new_symbol): Remove.
14335 (new_symbol_full): Rename to new_symbol.
14336
14337 2018-01-17 Mike Gulick <mgulick@mathworks.com>
14338
14339 PR gdb/16577
14340 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
14341 a warning instead of throwing an error, set section size to 0 and return
14342 NULL.
14343 * gdb_bfd.h (gdb_bfd_map_section): Update description.
14344
14345 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
14346
14347 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
14348 std::string.
14349 (linux_ptrace_attach_fail_reason_string): Likewise.
14350 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
14351 Likewise.
14352 (linux_ptrace_attach_fail_reason_string): Likewise.
14353 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
14354
14355 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
14356
14357 * linux-nat.c (linux_nat_attach): Remove xstrdup.
14358
14359 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
14360
14361 PR gdb/21559
14362 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
14363 checking for fs_base/gs_base fields in struct user_regs_struct.
14364 * configure: Regenerate.
14365
14366 2018-01-17 Yao Qi <yao.qi@linaro.org>
14367
14368 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
14369 function.
14370 (aarch64_linux_init_abi): Install it to gdbarch hook
14371 gcc_target_options.
14372
14373 2018-01-15 Pedro Alves <palves@redhat.com>
14374
14375 * common/signals-state-save-restore.c
14376 (save_original_signals_state): Fix typos.
14377
14378 2017-01-12 Tom Tromey <tom@tromey.com>
14379 Sergio Durigan Junior <sergiodj@redhat.com>
14380
14381 * Makefile.in (install-only): Install gdb-add-index.
14382
14383 2018-01-12 John Baldwin <jhb@FreeBSD.org>
14384
14385 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
14386
14387 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
14388
14389 * infrun.c (keep_going_pass_signal): Clear step-over info when
14390 insert_breakpoints fails.
14391
14392 2018-01-11 Pedro Alves <palves@redhat.com>
14393
14394 PR gdb/22583
14395 * infrun.c (resume): Rename to ...
14396 (resume_1): ... this.
14397 (resume): Reimplement as wrapper around resume_1.
14398
14399 2018-01-11 Pedro Alves <palves@redhat.com>
14400
14401 PR remote/22597
14402 * remote.c (remote_parse_stop_reply): Default to the last-set
14403 general thread instead of to 'magic_null_ptid'.
14404
14405 2018-01-10 Pedro Alves <palves@redhat.com>
14406
14407 * language.h (language_get_symbol_name_matcher): Rename ...
14408 (get_symbol_name_matcher): ... this.
14409 * language.c (language_get_symbol_name_matcher): Ditto.
14410 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
14411 callers adjusted.
14412
14413 2018-01-10 Pedro Alves <palves@redhat.com>
14414
14415 PR gdb/22670
14416 * dwarf2read.c
14417 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
14418 Adjust to use language_get_symbol_name_matcher instead of
14419 language_defn::la_get_symbol_name_matcher.
14420 * language.c (language_get_symbol_name_matcher): If in Ada mode
14421 and the lookup name is a verbatim match, return Ada's matcher.
14422 * language.h (language_get_symbol_name_matcher): Adjust comment.
14423 (ada_lookup_name_info::verbatim_p):: New method.
14424
14425 2018-01-10 Pedro Alves <palves@redhat.com>
14426
14427 PR gdb/22670
14428 * ada-lang.c (ada_collect_symbol_completion_matches): If the
14429 minsym's language is language_auto or language_cplus, pass down
14430 language_ada instead.
14431 * symtab.c (compare_symbol_name): Don't frob symbol language here.
14432
14433 2018-01-10 Pedro Alves <palves@redhat.com>
14434
14435 PR gdb/22670
14436 * minsyms.c (linkage_name_str): New function.
14437 (iterate_over_minimal_symbols): Use it.
14438
14439 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14440
14441 * NEWS: Document that 'info proc' now works on FreeBSD.
14442
14443 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14444
14445 * configure.ac: Check for kinfo_getfile in libutil.
14446 * configure: Regenerate.
14447 * config.in: Regenerate.
14448 * fbsd-nat.c: Include "fbsd-tdep.h".
14449 (fbsd_fetch_cmdline): New.
14450 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
14451 rather than calling error.
14452 (fbsd_info_proc): New.
14453 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
14454 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
14455 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
14456
14457 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14458
14459 * fbsd-nat.c (struct free_deleter): Remove.
14460 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
14461
14462 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14463
14464 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
14465 NULL for an empty pathname.
14466
14467 2018-01-09 John Baldwin <jhb@FreeBSD.org>
14468
14469 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
14470 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
14471 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
14472 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
14473 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
14474 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
14475 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
14476 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14477 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14478 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14479 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14480 (fbsd_core_fetch_timeval, fbsd_print_sigset)
14481 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14482 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
14483 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14484
14485 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14486
14487 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14488 (gnu_xfer_auxv): New function.
14489 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14490 TARGET_OBJECT_AUXV.
14491
14492 2018-01-08 Yao Qi <yao.qi@linaro.org>
14493 Simon Marchi <simon.marchi@ericsson.com>
14494
14495 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14496 common/selftest.c.
14497 (COMMON_OBS): Remove selftest.o.
14498 * configure.ac: Append selftest-arch.c and common/selftest.c to
14499 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
14500 * configure: Re-generated.
14501 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14502 GDB_SELF_TEST.
14503 (maintenance_info_selftests): Likewise.
14504
14505 2018-01-08 Xavier Roirand <roirand@adacore.com>
14506
14507 * ada-valprint.c (val_print_packed_array_elements): Use
14508 proper number of elements when printing an array indexed
14509 by an enumeration type.
14510
14511 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14512
14513 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14514 (dw2_get_file_names_reader): Adjust.
14515 (lookup_dwo_signatured_type): Adjust.
14516 (lookup_dwp_signatured_type): Adjust.
14517 (lookup_signatured_type): Adjust.
14518 (create_type_unit_group): Adjust.
14519 (get_type_unit_group): Adjust.
14520 (process_psymtab_comp_unit_reader): Adjust.
14521 (build_type_psymtabs_reader): Adjust.
14522 (scan_partial_symbols): Adjust.
14523 (add_partial_symbol): Adjust.
14524 (add_partial_subprogram): Adjust.
14525 (peek_die_abbrev): Adjust.
14526 (fixup_go_packaging): Adjust.
14527 (process_imported_unit_die): Adjust.
14528 (dwarf2_compute_name): Adjust.
14529 (dwarf2_physname): Adjust.
14530 (read_import_statement): Adjust.
14531 (handle_DW_AT_stmt_list): Adjust.
14532 (read_file_scope): Adjust.
14533 (read_func_scope): Adjust.
14534 (read_lexical_block_scope): Adjust.
14535 (read_call_site_scope): Adjust.
14536 (read_variable): Adjust.
14537 (dwarf2_rnglists_process): Adjust.
14538 (dwarf2_ranges_process): Adjust.
14539 (dwarf2_ranges_read): Adjust.
14540 (dwarf2_get_pc_bounds): Adjust.
14541 (dwarf2_record_block_ranges): Adjust.
14542 (dwarf2_add_field): Adjust.
14543 (dwarf2_add_member_fn): Adjust.
14544 (read_structure_type): Adjust.
14545 (process_structure_scope): Adjust.
14546 (read_enumeration_type): Adjust.
14547 (read_array_type): Adjust.
14548 (mark_common_block_symbol_computed): Adjust.
14549 (read_common_block): Adjust.
14550 (read_namespace_type): Adjust.
14551 (read_namespace): Adjust.
14552 (read_module_type): Adjust.
14553 (read_tag_pointer_type): Adjust.
14554 (read_tag_ptr_to_member_type): Adjust.
14555 (read_tag_string_type): Adjust.
14556 (read_subroutine_type): Adjust.
14557 (read_typedef): Adjust.
14558 (read_base_type): Adjust.
14559 (attr_to_dynamic_prop): Adjust.
14560 (read_subrange_type): Adjust.
14561 (read_unspecified_type): Adjust.
14562 (dwarf2_read_abbrevs): Adjust.
14563 (load_partial_dies): Adjust.
14564 (read_partial_die): Adjust.
14565 (find_partial_die): Adjust.
14566 (guess_partial_die_structure_name): Adjust.
14567 (fixup_partial_die): Adjust.
14568 (read_attribute_value): Adjust.
14569 (read_addr_index): Adjust.
14570 (read_addr_index_from_leb128): Adjust.
14571 (read_str_index): Adjust.
14572 (dwarf2_string_attr): Adjust.
14573 (get_debug_line_section): Adjust.
14574 (dwarf_decode_line_header): Adjust.
14575 (lnp_state_machine::check_line_address): Adjust.
14576 (dwarf_decode_lines_1): Adjust.
14577 (dwarf_decode_lines): Adjust.
14578 (dwarf2_start_symtab): Adjust.
14579 (var_decode_location): Adjust.
14580 (new_symbol_full): Adjust.
14581 (dwarf2_const_value_data): Adjust.
14582 (dwarf2_const_value_attr): Adjust.
14583 (dwarf2_const_value): Adjust.
14584 (die_type): Adjust.
14585 (die_containing_type): Adjust.
14586 (build_error_marker_type): Adjust.
14587 (lookup_die_type): Adjust.
14588 (guess_full_die_structure_name): Adjust.
14589 (anonymous_struct_prefix): Adjust.
14590 (determine_prefix): Adjust.
14591 (dwarf2_name): Adjust.
14592 (follow_die_ref_or_sig): Adjust.
14593 (follow_die_offset): Adjust.
14594 (follow_die_ref): Adjust.
14595 (follow_die_sig_1): Adjust.
14596 (follow_die_sig): Adjust.
14597 (get_signatured_type): Adjust.
14598 (get_DW_AT_signature_type): Adjust.
14599 (decode_locdesc): Adjust.
14600 (dwarf_decode_macros): Adjust.
14601 (cu_debug_loc_section): Adjust.
14602 (fill_in_loclist_baton): Adjust.
14603 (dwarf2_symbol_mark_computed): Adjust.
14604 (init_one_comp_unit): Don't assign
14605 dwarf2_cu::dwarf2_per_objfile.
14606 (set_die_type): Adjust.
14607
14608 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14609
14610 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14611 <dwarf2_per_objfile>: New field.
14612 (dwarf2_per_objfile): Remove global.
14613 (get_dwarf2_per_objfile): New function.
14614 (set_dwarf2_per_objfile): New function.
14615 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14616 dwarf2_per_objfile.
14617 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14618 (read_abbrev_offset): Likewise.
14619 (read_indirect_string): Likewise.
14620 (read_indirect_line_string): Likewise.
14621 (read_indirect_string_at_offset): Likewise.
14622 (read_indirect_string_from_dwz): Likewise.
14623 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14624 dwarf2_per_objfile.
14625 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14626 (create_all_comp_units): Change objfile parameter to
14627 dwarf2_per_objfile.
14628 (create_all_type_units): Likewise.
14629 (process_queue): Add dwarf2_per_objfile parameter.
14630 (read_and_check_comp_unit_head): Likewise.
14631 (lookup_dwo_unit_in_dwp): Likewise.
14632 (get_dwp_file): Likewise.
14633 (process_cu_includes): Likewise.
14634 (struct free_dwo_file_cleanup_data): New struct.
14635 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14636 set_dwarf2_per_objfile.
14637 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14638 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14639 context, adjust calls.
14640 (dw2_instantiate_symtab): Likewise.
14641 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14642 (dw2_get_cu): Likewise.
14643 (create_cu_from_index_list): Change objfile parameter to
14644 dwarf2_per_objfile.
14645 (create_cus_from_index_list): Get dwarf2_per_objfile from
14646 context, adjust calls.
14647 (create_cus_from_index): Likewise.
14648 (create_signatured_type_table_from_index): Change objfile
14649 parameter to dwarf2_per_objfile.
14650 (create_signatured_type_table_from_debug_names): Change objfile
14651 parameter to dwarf2_per_objfile.
14652 (create_addrmap_from_index): Likewise.
14653 (create_addrmap_from_aranges): Likewise.
14654 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14655 (dw2_setup): Remove.
14656 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14657 context.
14658 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14659 get_dwarf2_per_objfile.
14660 (dw2_forget_cached_source_info): Likewise.
14661 (dw2_map_symtabs_matching_filename): Likewise.
14662 (struct dw2_symtab_iterator) <index>: Remove.
14663 <dwarf2_per_objfile>: New field.
14664 (dw2_symtab_iter_init): Replace index parameter with
14665 dwarf2_per_objfile.
14666 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14667 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14668 (dw2_print_stats): Likewise.
14669 (dw2_dump): Likewise.
14670 (dw2_expand_symtabs_for_function): Likewise.
14671 (dw2_expand_all_symtabs): Likewise.
14672 (dw2_expand_symtabs_with_fullname): Likewise.
14673 (dw2_expand_marked_cus): Replace index and objfile parameters
14674 with dwarf2_per_objfile.
14675 (dw_expand_symtabs_matching_file_matcher): Add
14676 dwarf2_per_objfile parameter and adjust calls.
14677 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14678 adjust calls.
14679 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14680 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14681 adjust calls.
14682 (create_cus_from_debug_names_list): Replace objfile parameter
14683 with dwarf2_per_objfile and adjust calls.
14684 (create_cus_from_debug_names): Likewise.
14685 (dwarf2_read_debug_names): Likewise.
14686 (mapped_debug_names::namei_to_name): Adjust call.
14687 (dw2_debug_names_iterator::next): Likewise.
14688 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14689 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14690 (dw2_debug_names_dump): Likewise.
14691 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14692 (dw2_debug_names_expand_symtabs_matching): Likewise.
14693 (dwarf2_initialize_objfile): Likewise.
14694 (dwarf2_build_psymtabs): Likewise.
14695 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14696 this_cu.
14697 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14698 (read_and_check_comp_unit_head): Likewise.
14699 (read_abbrev_offset): Likewise.
14700 (create_debug_type_hash_table): Likewise.
14701 (create_debug_types_hash_table): Likewise.
14702 (create_all_type_units): Replace objfile parameter with
14703 dwarf2_per_objfile.
14704 (add_type_unit): Add dwarf2_per_objfile parameter.
14705 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14706 with dwarf2_per_objfile.
14707 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14708 (lookup_dwp_signatured_type): Likewise.
14709 (lookup_signatured_type): Likewise.
14710 (read_cutu_die_from_dwo): Likewise.
14711 (init_tu_and_read_dwo_dies): Likewise.
14712 (init_cutu_and_read_dies): Likewise.
14713 (init_cutu_and_read_dies_no_follow): Likewise.
14714 (allocate_type_unit_groups_table): Add objfile parameter.
14715 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14716 (get_type_unit_group): Likewise.
14717 (process_psymtab_comp_unit): Update call.
14718 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14719 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14720 (print_tu_stats): Likewise.
14721 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14722 in void* parameter.
14723 (build_type_psymtabs): Change objfile parameter to
14724 dwarf2_per_objfile.
14725 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14726 passed in void* parameter.
14727 (process_skeletonless_type_units): Change objfile parameter to
14728 dwarf2_per_objfile.
14729 (set_partial_user): Likewise.
14730 (dwarf2_build_psymtabs_hard): Likewise.
14731 (read_comp_units_from_section): Likewise.
14732 (create_all_comp_units): Likewise.
14733 (scan_partial_symbols): Update calls.
14734 (add_partial_symbol): Likewise.
14735 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14736 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14737 (process_queue): Add dwarf2_per_objfile parameter.
14738 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14739 (compute_compunit_symtab_includes): Likewise.
14740 (process_cu_includes): Add dwarf2_per_objfile parameter.
14741 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14742 (process_full_type_unit): Likewise.
14743 (process_imported_unit_die): Update call.
14744 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14745 (read_file_scope): Likewise.
14746 (allocate_dwo_file_hash_table): Add objfile parameter.
14747 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14748 (create_cus_hash_table): Likewise.
14749 (create_dwp_hash_table): Likewise.
14750 (create_dwo_unit_in_dwp_v1): Likewise.
14751 (create_dwp_v2_section): Likewise.
14752 (create_dwo_unit_in_dwp_v2): Likewise.
14753 (lookup_dwo_unit_in_dwp): Likewise.
14754 (try_open_dwop_file): Likewise.
14755 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14756 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14757 cleanup to include a reference to dwarf2_per_objfile.
14758 (open_dwp_file): Add dwarf2_per_objfile parameter.
14759 (open_and_init_dwp_file): Likewise.
14760 (get_dwp_file): Likewise.
14761 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14762 (queue_and_load_all_dwo_tus): Update call.
14763 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14764 data.
14765 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14766 (dwarf2_ranges_process): Likewise.
14767 (dwarf2_get_pc_bounds): Likewise.
14768 (mark_common_block_symbol_computed): Likewise.
14769 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14770 (dwarf2_read_abbrevs): Update call.
14771 (read_partial_die): Use dwarf2_per_objfile from cu.
14772 (find_partial_die): Likewise.
14773 (fixup_partial_die): Likewise.
14774 (read_attribute_value): Likewise.
14775 (read_indirect_string_at_offset_from): Add objfile parameter.
14776 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14777 parameter.
14778 (read_indirect_string_from_dwz): Add objfile parameter.
14779 (read_indirect_string): Add objfile parameter.
14780 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14781 (read_addr_index): Use dwarf2_per_objfile from cu.
14782 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14783 call dw2_setup.
14784 (read_str_index): Use dwarf2_per_objfile from cu.
14785 (get_debug_line_section): Likewise.
14786 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14787 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14788 (new_symbol_full): Use dwarf2_per_objfile from cu.
14789 (build_error_marker_type): Likewise.
14790 (lookup_die_type): Likewise.
14791 (determine_prefix): Likewise.
14792 (follow_die_offset): Likewise.
14793 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14794 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14795 (dwarf2_fetch_die_type_sect_off): Likewise.
14796 (dwarf2_get_die_type): Likewise.
14797 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14798 (get_signatured_type): Likewise.
14799 (get_DW_AT_signature_type): Likewise.
14800 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14801 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14802 (cu_debug_loc_section): Likewise.
14803 (fill_in_loclist_baton): Likewise.
14804 (dwarf2_symbol_mark_computed): Likewise.
14805 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14806 dwarf2_per_objfile.
14807 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14808 parameter.
14809 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14810 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14811 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14812 (set_die_type): Use dwarf2_free_objfile from cu.
14813 (get_die_type_at_offset): Likewise.
14814 (dwarf2_per_objfile_free): Don't assign global variable.
14815 (debug_names) <constructor>: Add dwarf2_per_objfile
14816 parameter, update m_debugstrlookup construction.
14817 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14818 parameter.
14819 <m_dwarf2_per_objfile>: New field.
14820 <lookup>: Use m_dwarf2_per_objfile.
14821 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14822 (psyms_seen_size): Likewise.
14823 (write_gdbindex): Replace objfile parameter with
14824 dwarf2_per_objfile.
14825 (write_debug_names): Likewise.
14826 (write_psymtabs_to_index): Likewise.
14827 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14828 calls.
14829
14830 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14831
14832 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14833 <dwarf2_per_objfile>: New field.
14834 (struct dwarf2_per_cu_data) <objfile>: Remove.
14835 <dwarf2_per_objfile>: New field.
14836 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14837 of objfile.
14838 (create_signatured_type_table_from_index): Likewise.
14839 (create_debug_type_hash_table): Likewise.
14840 (fill_in_sig_entry_from_dwo_entry): Likewise.
14841 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14842 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14843 objfile.
14844 (create_partial_symtab): Access objfile through
14845 dwarf2_per_objfile.
14846 (process_psymtab_comp_unit_reader): Likewise.
14847 (read_comp_units_from_section): Likewise.
14848 (scan_partial_symbols): Likewise.
14849 (add_partial_symbol): Likewise.
14850 (add_partial_subprogram): Likewise.
14851 (peek_die_abbrev): Likewise.
14852 (fixup_go_packaging): Likewise.
14853 (process_full_comp_unit): Likewise.
14854 (process_full_type_unit): Likewise.
14855 (process_imported_unit_die): Likewise.
14856 (dwarf2_compute_name): Likewise.
14857 (dwarf2_physname): Likewise.
14858 (read_import_statement): Likewise.
14859 (create_cus_hash_table): Assign dwarf2_physname instead of
14860 objfile.
14861 (read_func_scope): Access objfile through dwarf2_per_objfile.
14862 (read_lexical_block_scope): Likewise.
14863 (read_call_site_scope): Likewise.
14864 (read_variable): Likewise.
14865 (dwarf2_rnglists_process): Likewise.
14866 (dwarf2_ranges_process): Likewise.
14867 (dwarf2_ranges_read): Likewise.
14868 (dwarf2_record_block_ranges): Likewise.
14869 (dwarf2_add_field): Likewise.
14870 (dwarf2_add_member_fn): Likewise.
14871 (read_structure_type): Likewise.
14872 (process_structure_scope): Likewise.
14873 (read_enumeration_type): Likewise.
14874 (read_array_type): Likewise.
14875 (read_common_block): Likewise.
14876 (read_namespace_type): Likewise.
14877 (read_namespace): Likewise.
14878 (read_module_type): Likewise.
14879 (read_tag_pointer_type): Likewise.
14880 (read_tag_ptr_to_member_type): Likewise.
14881 (read_tag_string_type): Likewise.
14882 (read_subroutine_type): Likewise.
14883 (read_typedef): Likewise.
14884 (read_base_type): Likewise.
14885 (attr_to_dynamic_prop): Likewise.
14886 (read_subrange_type): Likewise.
14887 (read_unspecified_type): Likewise.
14888 (load_partial_dies): Likewise.
14889 (read_partial_die): Likewise.
14890 (find_partial_die): Likewise.
14891 (guess_partial_die_structure_name): Likewise.
14892 (fixup_partial_die): Likewise.
14893 (read_attribute_value): Likewise.
14894 (read_addr_index_from_leb128): Likewise.
14895 (dwarf2_read_addr_index): Likewise.
14896 (dwarf2_string_attr): Likewise.
14897 (lnp_state_machine::check_line_address): Likewise.
14898 (dwarf_decode_lines_1): Likewise.
14899 (dwarf_decode_lines): Likewise.
14900 (dwarf2_start_symtab): Likewise.
14901 (var_decode_location): Likewise.
14902 (new_symbol_full): Likewise.
14903 (dwarf2_const_value_data): Likewise.
14904 (dwarf2_const_value_attr): Likewise.
14905 (dwarf2_const_value): Likewise.
14906 (die_type): Likewise.
14907 (die_containing_type): Likewise.
14908 (lookup_die_type): Likewise.
14909 (guess_full_die_structure_name): Likewise.
14910 (anonymous_struct_prefix): Likewise.
14911 (dwarf2_name): Likewise.
14912 (follow_die_ref_or_sig): Likewise.
14913 (follow_die_offset): Likewise.
14914 (follow_die_ref): Likewise.
14915 (dwarf2_fetch_die_loc_sect_off): Likewise.
14916 (dwarf2_fetch_constant_bytes): Likewise.
14917 (dwarf2_fetch_die_type_sect_off): Likewise.
14918 (dwarf2_get_die_type): Likewise.
14919 (follow_die_sig): Likewise.
14920 (decode_locdesc): Likewise.
14921 (dwarf2_per_cu_objfile): Likewise.
14922 (dwarf2_per_cu_text_offset): Likewise.
14923 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14924 objfile.
14925 (set_die_type): Access objfile through
14926 dwarf2_per_objfile.
14927
14928 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14929
14930 * valprint.c (converted_character_d): Remove typedef.
14931 (DEF_VEC_O (converted_character_d)): Remove.
14932 (count_next_character): Use std::vector.
14933 (print_converted_chars_to_obstack): Likewise.
14934 (generic_printstr): Likewise.
14935
14936 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14937
14938 * xml-support.h (struct gdb_xml_value): Add constructor.
14939 <value>: Change type to unique_xmalloc_ptr.
14940 (gdb_xml_value_s): Remove typedef.
14941 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14942 (gdb_xml_element_start_handler): Change parameter type to
14943 std::vector.
14944 (xml_find_attribute): Likewise.
14945 * xml-support.c (xml_find_attribute): Change parameter type to
14946 std::vector and adjust.
14947 (gdb_xml_values_cleanup): Remove.
14948 (gdb_xml_parser::start_element): Adjust to std::vector.
14949 (xinclude_start_include): Change paraeter type to std::vector
14950 and adjust.
14951 * btrace.c (check_xml_btrace_version): Likewise.
14952 (parse_xml_btrace_block): Likewise.
14953 (parse_xml_btrace_pt_config_cpu): Likewise.
14954 (parse_xml_btrace_pt): Likewise.
14955 (parse_xml_btrace_conf_bts): Likewise.
14956 (parse_xml_btrace_conf_pt): Likewise.
14957 * memory-map.c (memory_map_start_memory): Likewise.
14958 (memory_map_start_property): Likewise.
14959 * osdata.c (osdata_start_osdata): Likewise.
14960 (osdata_start_item): Likewise.
14961 (osdata_start_column): Likewise.
14962 * remote.c (start_thread): Likewise.
14963 * solib-aix.c (library_list_start_library): Likewise.
14964 (library_list_start_list): Likewise.
14965 * solib-svr4.c (library_list_start_library): Likewise.
14966 (svr4_library_list_start_list): Likewise.
14967 * solib-target.c (library_list_start_segment): Likewise.
14968 (library_list_start_section): Likewise.
14969 (library_list_start_library): Likewise.
14970 (library_list_start_list): Likewise.
14971 * tracepoint.c (traceframe_info_start_memory): Likewise.
14972 (traceframe_info_start_tvar): Likewise.
14973 * xml-syscall.c (syscall_start_syscall): Likewise.
14974 * xml-tdesc.c (tdesc_start_target): Likewise.
14975 (tdesc_start_feature): Likewise.
14976 (tdesc_start_reg): Likewise.
14977 (tdesc_start_union): Likewise.
14978 (tdesc_start_struct): Likewise.
14979 (tdesc_start_flags): Likewise.
14980 (tdesc_start_enum): Likewise.
14981 (tdesc_start_field): Likewise.
14982 (tdesc_start_enum_value): Likewise.
14983 (tdesc_start_vector): Likewise.
14984
14985 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14986
14987 * extension.h (struct xmethod_worker) <clone>: Remove.
14988 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14989 Remove.
14990 (python_xmethod_worker::clone): Remove.
14991 * valops.c (find_overload_match): Use std::move instead of
14992 clone.
14993
14994 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14995
14996 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14997 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14998 <free_xmethod_worker_data>: Remove.
14999 <get_matching_xmethod_workers>: Chance VEC to std::vector.
15000 <get_xmethod_arg_types>: Remove.
15001 <get_xmethod_result_type>: Remove.
15002 <invoke_xmethod>: Remove.
15003 * extension.c (new_xmethod_worker): Remove.
15004 (clone_xmethod_worker): Remove.
15005 (get_matching_xmethod_workers): Return void, pass std::vector by
15006 pointer.
15007 (get_xmethod_arg_types): Rename to...
15008 (xmethod_worker::get_arg_types): ... this, and adjust.
15009 (get_xmethod_result_type): Rename to...
15010 (xmethod_worker::get_result_type): ... this, and adjust.
15011 (invoke_xmethod): Remove.
15012 (free_xmethod_worker): Remove.
15013 (free_xmethod_worker_vec): Remove.
15014 * extension.h (enum ext_lang_rc): Move here from
15015 extension-priv.h.
15016 (struct xmethod_worker): Add constructor and destructor.
15017 <data>: Remove.
15018 <value>: Remove.
15019 <invoke, clone, do_get_result_type, do_get_arg_types>: New
15020 virtual pure methods.
15021 <get_arg_types, get_result_type>: New methods.
15022 (xmethod_worker_ptr): Remove typedef.
15023 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15024 (xmethod_worker_vec): Remove typedef.
15025 (xmethod_worker_up): New typedef.
15026 (invoke_xmethod): Remove.
15027 (clone_xmethod_worker): Remove.
15028 (free_xmethod_worker): Remove.
15029 (free_xmethod_worker_vec): Remove.
15030 (get_xmethod_arg_types): Remove.
15031 (get_xmethod_result_type): Remove.
15032 * valops.c (find_method_list): Use std::vector, don't use
15033 intermediate vector.
15034 (value_find_oload_method_list): Use std::vector.
15035 (find_overload_match): Use std::vector.
15036 (find_oload_champ): Use std::vector.
15037 * value.c (value_free): Use operator delete.
15038 (value_of_xmethod): Rename to...
15039 (value_from_xmethod): ... this. Don't assign
15040 xmethod_worker::value, take rvalue-reference.
15041 (result_type_of_xmethod): Adjust.
15042 (call_xmethod): Adjust.
15043 * value.h: Include extension.h.
15044 (struct xmethod_worker): Don't forward-declare.
15045 (value_of_xmethod): Rename to...
15046 (value_from_xmethod): ... this, take rvalue-reference.
15047 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15048 (struct python_xmethod_worker): ... this, add constructor and
15049 destructor.
15050 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15051 (gdbpy_free_xmethod_worker_data): Rename to...
15052 (python_xmethod_worker::~python_xmethod_worker): ... this and
15053 adjust.
15054 (gdbpy_clone_xmethod_worker_data): Rename to...
15055 (python_xmethod_worker::clone): ... this and adjust.
15056 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15057 temporary vector.
15058 (gdbpy_get_xmethod_arg_types): Rename to...
15059 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15060 (gdbpy_get_xmethod_result_type): Rename to...
15061 (python_xmethod_worker::do_get_result_type): ... this and
15062 adjust.
15063 (gdbpy_invoke_xmethod): Rename to...
15064 (python_xmethod_worker::invoke): ... this and adjust.
15065 (new_python_xmethod_worker): Rename to...
15066 (python_xmethod_worker::python_xmethod_worker): ... this and
15067 adjust.
15068 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15069 Remove.
15070 (gdbpy_free_xmethod_worker_data): Remove.
15071 (gdbpy_get_matching_xmethod_workers): Use std::vector.
15072 (gdbpy_get_xmethod_arg_types): Remove.
15073 (gdbpy_get_xmethod_result_type): Remove.
15074 (gdbpy_invoke_xmethod): Remove.
15075 * python/python.c (python_extension_ops): Remove obsolete
15076 callbacks.
15077
15078 2018-01-05 Pedro Alves <palves@redhat.com>
15079
15080 PR gdb/18653
15081 * common/signals-state-save-restore.c
15082 (save_original_signals_state): New parameter 'quiet'. Warn if we
15083 find a custom handler preinstalled, instead of internal erroring.
15084 But only warn if !quiet.
15085 * common/signals-state-save-restore.h
15086 (save_original_signals_state): New parameter 'quiet'.
15087 * main.c (captured_main_1): Move save_original_signals_state call
15088 after option handling, and pass QUIET.
15089
15090 2018-01-05 Pedro Alves <palves@redhat.com>
15091
15092 * spu-tdep.c (spu_catch_start): Pass
15093 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15094
15095 2018-01-05 Pedro Alves <palves@redhat.com>
15096
15097 PR gdb/22670
15098 * ada-lang.c (literal_symbol_name_matcher): New function.
15099 (ada_get_symbol_name_matcher): Use it for
15100 symbol_name_match_type::SEARCH_NAME.
15101 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
15102 it down instead of assuming symbol_name_match_type::FULL.
15103 * block.h (block_lookup_symbol): New parameter 'match_type'.
15104 * c-valprint.c (print_unpacked_pointer): Use
15105 lookup_symbol_search_name instead of lookup_symbol.
15106 * compile/compile-object-load.c (get_out_value_type): Pass down
15107 symbol_name_match_type::SEARCH_NAME.
15108 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15109 symbol_name_match_type::FULL.
15110 * cp-support.c (cp_get_symbol_name_matcher): Handle
15111 symbol_name_match_type::SEARCH_NAME.
15112 * infrun.c (insert_exception_resume_breakpoint): Use
15113 lookup_symbol_search_name.
15114 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15115 * psymtab.c (maintenance_check_psymtabs): Use
15116 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15117 * stack.c (print_frame_args): Use lookup_symbol_search_name and
15118 SYMBOL_SEARCH_NAME.
15119 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
15120 if symbol_name_match_type::SEARCH_NAME.
15121 (lookup_symbol_in_language): Pass down
15122 symbol_name_match_type::FULL.
15123 (lookup_symbol_search_name): New.
15124 (lookup_language_this): Pass down
15125 symbol_name_match_type::SEARCH_NAME.
15126 (lookup_symbol_aux, lookup_local_symbol): New parameter
15127 'match_type'. Pass it down.
15128 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
15129 (lookup_symbol_search_name): New declaration.
15130 (lookup_symbol_in_block): New 'match_type' parameter.
15131
15132 2018-01-05 Pedro Alves <palves@redhat.com>
15133
15134 PR gdb/22670
15135 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
15136 ada_lookup_symbol.
15137 (ada_lookup_symbol): Reimplement in terms of
15138 ada_lookup_symbol_list, bits factored out from
15139 ada_lookup_encoded_symbol.
15140
15141 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15142
15143 * ada-exp.y (write_object_renaming): When subscripting an array
15144 using a symbol as the index, pass the block in call to
15145 ada_lookup_encoded_symbol when looking that symbol up.
15146
15147 2018-01-05 Jerome Guitton <guitton@adacore.com>
15148
15149 * ada-lang.c (ada_array_length): Use ada_index_type instead of
15150 TYPE_INDEX_TYPE.
15151
15152 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15153
15154 * ada-lang.c (ada_to_fixed_value_create): Add handling of
15155 the case where VALUE_LVAL (val0) is not lval_memory.
15156
15157 2018-01-05 Xavier Roirand <roirand@adacore.com>
15158
15159 * ada-valprint.c (print_optional_low_bound): Handle
15160 character-indexed array printing like boolean-indexed array
15161 printing.
15162
15163 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15164
15165 * NEWS: Create a new section for the next release branch.
15166 Rename the section of the current branch, now that it has
15167 been cut.
15168
15169 2018-01-05 Joel Brobecker <brobecker@adacore.com>
15170
15171 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
15172 * version.in: Bump version to 8.1.50.DATE-git.
15173
15174 2018-01-03 Xavier Roirand <roirand@adacore.com>
15175
15176 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
15177 Add field.
15178 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
15179 Add field.
15180 (default_exception_support_info) <catch_handlers_sym>: Add field.
15181 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
15182 (ada_exception_name_addr_1): Add "catch handlers" handling.
15183 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
15184 Update all callers.
15185 (create_excep_cond_exprs) <ex>: Add parameter.
15186 (re_set_exception): Update create_excep_cond_exprs call.
15187 (print_it_exception, print_one_exception, print_mention_exception)
15188 (print_recreate_exception): Add "catch handler" handling.
15189 (allocate_location_catch_handlers, re_set_catch_handlers)
15190 (check_status_catch_handlers, print_it_catch_handlers)
15191 (print_one_catch_handlers, print_mention_catch_handlers)
15192 (print_recreate_catch_handlers): New function.
15193 (catch_handlers_breakpoint_ops): New variable.
15194 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
15195 Add parameter. Add "catch handler" handling.
15196 (ada_exception_sym_name, ada_exception_breakpoint_ops):
15197 Add "catch handler" handling.
15198 (ada_exception_catchpoint_cond_string): Add "catch handler"
15199 handling.
15200 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
15201 call.
15202 (catch_ada_handlers_command): New function.
15203 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
15204 operations structure.
15205 (_initialize_ada_language): Add "catch handlers" command entry.
15206 * NEWS: Document "catch handlers" feature.
15207
15208 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15209
15210 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
15211 account when creating the array type of the slice.
15212 (ada_value_slice): Likewise.
15213
15214 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15215
15216 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
15217 New enum value.
15218 (create_array_type_with_stride): Add byte_stride_prop parameter.
15219 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
15220 New parameter. Update all callers in this file.
15221 (array_type_has_dynamic_stride): New function.
15222 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
15223 of arrays with dynamic byte strides.
15224 * dwarf2read.c (read_array_type): Add support for dynamic
15225 DW_AT_byte_stride attributes.
15226
15227 2018-01-02 Joel Brobecker <brobecker@adacore.com>
15228
15229 * dwarf2read.c (read_unspecified_type): Treat
15230 DW_TAG_enumeration_type DIEs from Ada units as stubs.
15231
15232 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15233
15234 Update copyright year range in all GDB files.
15235
15236 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
15237
15238 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
15239 and gdb/testsuite/gdb.base/step-line.c.
15240
15241 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15242
15243 * copyright.py (main): Dump the contents of
15244 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
15245 even if BY_HAND is empty.
15246
15247 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15248
15249 * top.c (print_gdb_version): Update Copyright year in version
15250 message.
15251
15252 2018-01-01 Joel Brobecker <brobecker@adacore.com>
15253
15254 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
15255
15256 For older changes see ChangeLog-2017.
15257 \f
15258 Local Variables:
15259 mode: change-log
15260 left-margin: 8
15261 fill-column: 74
15262 version-control: never
15263 coding: utf-8
15264 End:
This page took 0.366903 seconds and 5 git commands to generate.