]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Fix decoding of multi-dimensional constrained packed arrays
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-04 Tom Tromey <tromey@adacore.com>
2
3 * ada-lang.c (recursively_update_array_bitsize): New function.
4 (decode_constrained_packed_array_type): Call it.
5
6 2020-11-04 Tom Tromey <tromey@adacore.com>
7
8 * ada-lang.c (to_fixed_array_type): Error if
9 decode_constrained_packed_array_type returns NULL.
10
11 2020-11-04 Tom Tromey <tromey@adacore.com>
12
13 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
14
15 2020-11-02 Tom Tromey <tromey@adacore.com>
16
17 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
18 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
19 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
20 * amd64-ravenscar-thread.c: New file.
21 * amd64-ravenscar-thread.h: New file.
22 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
23 * configure.tgt (amd64_tobjs): Add ravenscar objects.
24
25 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
26
27 * main.c (execute_cmdargs): New function.
28 (captured_main_1): Make use of execute_cmdargs.
29
30 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * NEWS: Mention changes to config file search path.
33 * main.c
34
35 2020-11-02 Tom Tromey <tromey@adacore.com>
36
37 * python/python.c: Consolidate two HAVE_PYTHON blocks.
38 (python_GdbModuleDef): Move earlier. Now static.
39 (do_start_initialization): Consolidate some IS_PY3K blocks.
40
41 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
42
43 * aarch64-linux-tdep.c: Fix indentation.
44 * aarch64-ravenscar-thread.c: Fix indentation.
45 * aarch64-tdep.c: Fix indentation.
46 * aarch64-tdep.h: Fix indentation.
47 * ada-lang.c: Fix indentation.
48 * ada-lang.h: Fix indentation.
49 * ada-tasks.c: Fix indentation.
50 * ada-typeprint.c: Fix indentation.
51 * ada-valprint.c: Fix indentation.
52 * ada-varobj.c: Fix indentation.
53 * addrmap.c: Fix indentation.
54 * addrmap.h: Fix indentation.
55 * agent.c: Fix indentation.
56 * aix-thread.c: Fix indentation.
57 * alpha-bsd-nat.c: Fix indentation.
58 * alpha-linux-tdep.c: Fix indentation.
59 * alpha-mdebug-tdep.c: Fix indentation.
60 * alpha-nbsd-tdep.c: Fix indentation.
61 * alpha-obsd-tdep.c: Fix indentation.
62 * alpha-tdep.c: Fix indentation.
63 * amd64-bsd-nat.c: Fix indentation.
64 * amd64-darwin-tdep.c: Fix indentation.
65 * amd64-linux-nat.c: Fix indentation.
66 * amd64-linux-tdep.c: Fix indentation.
67 * amd64-nat.c: Fix indentation.
68 * amd64-obsd-tdep.c: Fix indentation.
69 * amd64-tdep.c: Fix indentation.
70 * amd64-windows-tdep.c: Fix indentation.
71 * annotate.c: Fix indentation.
72 * arc-tdep.c: Fix indentation.
73 * arch-utils.c: Fix indentation.
74 * arch/arm-get-next-pcs.c: Fix indentation.
75 * arch/arm.c: Fix indentation.
76 * arm-linux-nat.c: Fix indentation.
77 * arm-linux-tdep.c: Fix indentation.
78 * arm-nbsd-tdep.c: Fix indentation.
79 * arm-pikeos-tdep.c: Fix indentation.
80 * arm-tdep.c: Fix indentation.
81 * arm-tdep.h: Fix indentation.
82 * arm-wince-tdep.c: Fix indentation.
83 * auto-load.c: Fix indentation.
84 * auxv.c: Fix indentation.
85 * avr-tdep.c: Fix indentation.
86 * ax-gdb.c: Fix indentation.
87 * ax-general.c: Fix indentation.
88 * bfin-linux-tdep.c: Fix indentation.
89 * block.c: Fix indentation.
90 * block.h: Fix indentation.
91 * blockframe.c: Fix indentation.
92 * bpf-tdep.c: Fix indentation.
93 * break-catch-sig.c: Fix indentation.
94 * break-catch-syscall.c: Fix indentation.
95 * break-catch-throw.c: Fix indentation.
96 * breakpoint.c: Fix indentation.
97 * breakpoint.h: Fix indentation.
98 * bsd-uthread.c: Fix indentation.
99 * btrace.c: Fix indentation.
100 * build-id.c: Fix indentation.
101 * buildsym-legacy.h: Fix indentation.
102 * buildsym.c: Fix indentation.
103 * c-typeprint.c: Fix indentation.
104 * c-valprint.c: Fix indentation.
105 * c-varobj.c: Fix indentation.
106 * charset.c: Fix indentation.
107 * cli/cli-cmds.c: Fix indentation.
108 * cli/cli-decode.c: Fix indentation.
109 * cli/cli-decode.h: Fix indentation.
110 * cli/cli-script.c: Fix indentation.
111 * cli/cli-setshow.c: Fix indentation.
112 * coff-pe-read.c: Fix indentation.
113 * coffread.c: Fix indentation.
114 * compile/compile-cplus-types.c: Fix indentation.
115 * compile/compile-object-load.c: Fix indentation.
116 * compile/compile-object-run.c: Fix indentation.
117 * completer.c: Fix indentation.
118 * corefile.c: Fix indentation.
119 * corelow.c: Fix indentation.
120 * cp-abi.h: Fix indentation.
121 * cp-namespace.c: Fix indentation.
122 * cp-support.c: Fix indentation.
123 * cp-valprint.c: Fix indentation.
124 * cris-linux-tdep.c: Fix indentation.
125 * cris-tdep.c: Fix indentation.
126 * darwin-nat-info.c: Fix indentation.
127 * darwin-nat.c: Fix indentation.
128 * darwin-nat.h: Fix indentation.
129 * dbxread.c: Fix indentation.
130 * dcache.c: Fix indentation.
131 * disasm.c: Fix indentation.
132 * dtrace-probe.c: Fix indentation.
133 * dwarf2/abbrev.c: Fix indentation.
134 * dwarf2/attribute.c: Fix indentation.
135 * dwarf2/expr.c: Fix indentation.
136 * dwarf2/frame.c: Fix indentation.
137 * dwarf2/index-cache.c: Fix indentation.
138 * dwarf2/index-write.c: Fix indentation.
139 * dwarf2/line-header.c: Fix indentation.
140 * dwarf2/loc.c: Fix indentation.
141 * dwarf2/macro.c: Fix indentation.
142 * dwarf2/read.c: Fix indentation.
143 * dwarf2/read.h: Fix indentation.
144 * elfread.c: Fix indentation.
145 * eval.c: Fix indentation.
146 * event-top.c: Fix indentation.
147 * exec.c: Fix indentation.
148 * exec.h: Fix indentation.
149 * expprint.c: Fix indentation.
150 * f-lang.c: Fix indentation.
151 * f-typeprint.c: Fix indentation.
152 * f-valprint.c: Fix indentation.
153 * fbsd-nat.c: Fix indentation.
154 * fbsd-tdep.c: Fix indentation.
155 * findvar.c: Fix indentation.
156 * fork-child.c: Fix indentation.
157 * frame-unwind.c: Fix indentation.
158 * frame-unwind.h: Fix indentation.
159 * frame.c: Fix indentation.
160 * frv-linux-tdep.c: Fix indentation.
161 * frv-tdep.c: Fix indentation.
162 * frv-tdep.h: Fix indentation.
163 * ft32-tdep.c: Fix indentation.
164 * gcore.c: Fix indentation.
165 * gdb_bfd.c: Fix indentation.
166 * gdbarch.sh: Fix indentation.
167 * gdbarch.c: Re-generate
168 * gdbarch.h: Re-generate.
169 * gdbcore.h: Fix indentation.
170 * gdbthread.h: Fix indentation.
171 * gdbtypes.c: Fix indentation.
172 * gdbtypes.h: Fix indentation.
173 * glibc-tdep.c: Fix indentation.
174 * gnu-nat.c: Fix indentation.
175 * gnu-nat.h: Fix indentation.
176 * gnu-v2-abi.c: Fix indentation.
177 * gnu-v3-abi.c: Fix indentation.
178 * go32-nat.c: Fix indentation.
179 * guile/guile-internal.h: Fix indentation.
180 * guile/scm-cmd.c: Fix indentation.
181 * guile/scm-frame.c: Fix indentation.
182 * guile/scm-iterator.c: Fix indentation.
183 * guile/scm-math.c: Fix indentation.
184 * guile/scm-ports.c: Fix indentation.
185 * guile/scm-pretty-print.c: Fix indentation.
186 * guile/scm-value.c: Fix indentation.
187 * h8300-tdep.c: Fix indentation.
188 * hppa-linux-nat.c: Fix indentation.
189 * hppa-linux-tdep.c: Fix indentation.
190 * hppa-nbsd-nat.c: Fix indentation.
191 * hppa-nbsd-tdep.c: Fix indentation.
192 * hppa-obsd-nat.c: Fix indentation.
193 * hppa-tdep.c: Fix indentation.
194 * hppa-tdep.h: Fix indentation.
195 * i386-bsd-nat.c: Fix indentation.
196 * i386-darwin-nat.c: Fix indentation.
197 * i386-darwin-tdep.c: Fix indentation.
198 * i386-dicos-tdep.c: Fix indentation.
199 * i386-gnu-nat.c: Fix indentation.
200 * i386-linux-nat.c: Fix indentation.
201 * i386-linux-tdep.c: Fix indentation.
202 * i386-nto-tdep.c: Fix indentation.
203 * i386-obsd-tdep.c: Fix indentation.
204 * i386-sol2-nat.c: Fix indentation.
205 * i386-tdep.c: Fix indentation.
206 * i386-tdep.h: Fix indentation.
207 * i386-windows-tdep.c: Fix indentation.
208 * i387-tdep.c: Fix indentation.
209 * i387-tdep.h: Fix indentation.
210 * ia64-libunwind-tdep.c: Fix indentation.
211 * ia64-libunwind-tdep.h: Fix indentation.
212 * ia64-linux-nat.c: Fix indentation.
213 * ia64-linux-tdep.c: Fix indentation.
214 * ia64-tdep.c: Fix indentation.
215 * ia64-tdep.h: Fix indentation.
216 * ia64-vms-tdep.c: Fix indentation.
217 * infcall.c: Fix indentation.
218 * infcmd.c: Fix indentation.
219 * inferior.c: Fix indentation.
220 * infrun.c: Fix indentation.
221 * iq2000-tdep.c: Fix indentation.
222 * language.c: Fix indentation.
223 * linespec.c: Fix indentation.
224 * linux-fork.c: Fix indentation.
225 * linux-nat.c: Fix indentation.
226 * linux-tdep.c: Fix indentation.
227 * linux-thread-db.c: Fix indentation.
228 * lm32-tdep.c: Fix indentation.
229 * m2-lang.c: Fix indentation.
230 * m2-typeprint.c: Fix indentation.
231 * m2-valprint.c: Fix indentation.
232 * m32c-tdep.c: Fix indentation.
233 * m32r-linux-tdep.c: Fix indentation.
234 * m32r-tdep.c: Fix indentation.
235 * m68hc11-tdep.c: Fix indentation.
236 * m68k-bsd-nat.c: Fix indentation.
237 * m68k-linux-nat.c: Fix indentation.
238 * m68k-linux-tdep.c: Fix indentation.
239 * m68k-tdep.c: Fix indentation.
240 * machoread.c: Fix indentation.
241 * macrocmd.c: Fix indentation.
242 * macroexp.c: Fix indentation.
243 * macroscope.c: Fix indentation.
244 * macrotab.c: Fix indentation.
245 * macrotab.h: Fix indentation.
246 * main.c: Fix indentation.
247 * mdebugread.c: Fix indentation.
248 * mep-tdep.c: Fix indentation.
249 * mi/mi-cmd-catch.c: Fix indentation.
250 * mi/mi-cmd-disas.c: Fix indentation.
251 * mi/mi-cmd-env.c: Fix indentation.
252 * mi/mi-cmd-stack.c: Fix indentation.
253 * mi/mi-cmd-var.c: Fix indentation.
254 * mi/mi-cmds.c: Fix indentation.
255 * mi/mi-main.c: Fix indentation.
256 * mi/mi-parse.c: Fix indentation.
257 * microblaze-tdep.c: Fix indentation.
258 * minidebug.c: Fix indentation.
259 * minsyms.c: Fix indentation.
260 * mips-linux-nat.c: Fix indentation.
261 * mips-linux-tdep.c: Fix indentation.
262 * mips-nbsd-tdep.c: Fix indentation.
263 * mips-tdep.c: Fix indentation.
264 * mn10300-linux-tdep.c: Fix indentation.
265 * mn10300-tdep.c: Fix indentation.
266 * moxie-tdep.c: Fix indentation.
267 * msp430-tdep.c: Fix indentation.
268 * namespace.h: Fix indentation.
269 * nat/fork-inferior.c: Fix indentation.
270 * nat/gdb_ptrace.h: Fix indentation.
271 * nat/linux-namespaces.c: Fix indentation.
272 * nat/linux-osdata.c: Fix indentation.
273 * nat/netbsd-nat.c: Fix indentation.
274 * nat/x86-dregs.c: Fix indentation.
275 * nbsd-nat.c: Fix indentation.
276 * nbsd-tdep.c: Fix indentation.
277 * nios2-linux-tdep.c: Fix indentation.
278 * nios2-tdep.c: Fix indentation.
279 * nto-procfs.c: Fix indentation.
280 * nto-tdep.c: Fix indentation.
281 * objfiles.c: Fix indentation.
282 * objfiles.h: Fix indentation.
283 * opencl-lang.c: Fix indentation.
284 * or1k-tdep.c: Fix indentation.
285 * osabi.c: Fix indentation.
286 * osabi.h: Fix indentation.
287 * osdata.c: Fix indentation.
288 * p-lang.c: Fix indentation.
289 * p-typeprint.c: Fix indentation.
290 * p-valprint.c: Fix indentation.
291 * parse.c: Fix indentation.
292 * ppc-linux-nat.c: Fix indentation.
293 * ppc-linux-tdep.c: Fix indentation.
294 * ppc-nbsd-nat.c: Fix indentation.
295 * ppc-nbsd-tdep.c: Fix indentation.
296 * ppc-obsd-nat.c: Fix indentation.
297 * ppc-ravenscar-thread.c: Fix indentation.
298 * ppc-sysv-tdep.c: Fix indentation.
299 * ppc64-tdep.c: Fix indentation.
300 * printcmd.c: Fix indentation.
301 * proc-api.c: Fix indentation.
302 * producer.c: Fix indentation.
303 * producer.h: Fix indentation.
304 * prologue-value.c: Fix indentation.
305 * prologue-value.h: Fix indentation.
306 * psymtab.c: Fix indentation.
307 * python/py-arch.c: Fix indentation.
308 * python/py-bpevent.c: Fix indentation.
309 * python/py-event.c: Fix indentation.
310 * python/py-event.h: Fix indentation.
311 * python/py-finishbreakpoint.c: Fix indentation.
312 * python/py-frame.c: Fix indentation.
313 * python/py-framefilter.c: Fix indentation.
314 * python/py-inferior.c: Fix indentation.
315 * python/py-infthread.c: Fix indentation.
316 * python/py-objfile.c: Fix indentation.
317 * python/py-prettyprint.c: Fix indentation.
318 * python/py-registers.c: Fix indentation.
319 * python/py-signalevent.c: Fix indentation.
320 * python/py-stopevent.c: Fix indentation.
321 * python/py-stopevent.h: Fix indentation.
322 * python/py-threadevent.c: Fix indentation.
323 * python/py-tui.c: Fix indentation.
324 * python/py-unwind.c: Fix indentation.
325 * python/py-value.c: Fix indentation.
326 * python/py-xmethods.c: Fix indentation.
327 * python/python-internal.h: Fix indentation.
328 * python/python.c: Fix indentation.
329 * ravenscar-thread.c: Fix indentation.
330 * record-btrace.c: Fix indentation.
331 * record-full.c: Fix indentation.
332 * record.c: Fix indentation.
333 * reggroups.c: Fix indentation.
334 * regset.h: Fix indentation.
335 * remote-fileio.c: Fix indentation.
336 * remote.c: Fix indentation.
337 * reverse.c: Fix indentation.
338 * riscv-linux-tdep.c: Fix indentation.
339 * riscv-ravenscar-thread.c: Fix indentation.
340 * riscv-tdep.c: Fix indentation.
341 * rl78-tdep.c: Fix indentation.
342 * rs6000-aix-tdep.c: Fix indentation.
343 * rs6000-lynx178-tdep.c: Fix indentation.
344 * rs6000-nat.c: Fix indentation.
345 * rs6000-tdep.c: Fix indentation.
346 * rust-lang.c: Fix indentation.
347 * rx-tdep.c: Fix indentation.
348 * s12z-tdep.c: Fix indentation.
349 * s390-linux-tdep.c: Fix indentation.
350 * score-tdep.c: Fix indentation.
351 * ser-base.c: Fix indentation.
352 * ser-mingw.c: Fix indentation.
353 * ser-uds.c: Fix indentation.
354 * ser-unix.c: Fix indentation.
355 * serial.c: Fix indentation.
356 * sh-linux-tdep.c: Fix indentation.
357 * sh-nbsd-tdep.c: Fix indentation.
358 * sh-tdep.c: Fix indentation.
359 * skip.c: Fix indentation.
360 * sol-thread.c: Fix indentation.
361 * solib-aix.c: Fix indentation.
362 * solib-darwin.c: Fix indentation.
363 * solib-frv.c: Fix indentation.
364 * solib-svr4.c: Fix indentation.
365 * solib.c: Fix indentation.
366 * source.c: Fix indentation.
367 * sparc-linux-tdep.c: Fix indentation.
368 * sparc-nbsd-tdep.c: Fix indentation.
369 * sparc-obsd-tdep.c: Fix indentation.
370 * sparc-ravenscar-thread.c: Fix indentation.
371 * sparc-tdep.c: Fix indentation.
372 * sparc64-linux-tdep.c: Fix indentation.
373 * sparc64-nbsd-tdep.c: Fix indentation.
374 * sparc64-obsd-tdep.c: Fix indentation.
375 * sparc64-tdep.c: Fix indentation.
376 * stabsread.c: Fix indentation.
377 * stack.c: Fix indentation.
378 * stap-probe.c: Fix indentation.
379 * stubs/ia64vms-stub.c: Fix indentation.
380 * stubs/m32r-stub.c: Fix indentation.
381 * stubs/m68k-stub.c: Fix indentation.
382 * stubs/sh-stub.c: Fix indentation.
383 * stubs/sparc-stub.c: Fix indentation.
384 * symfile-mem.c: Fix indentation.
385 * symfile.c: Fix indentation.
386 * symfile.h: Fix indentation.
387 * symmisc.c: Fix indentation.
388 * symtab.c: Fix indentation.
389 * symtab.h: Fix indentation.
390 * target-float.c: Fix indentation.
391 * target.c: Fix indentation.
392 * target.h: Fix indentation.
393 * tic6x-tdep.c: Fix indentation.
394 * tilegx-linux-tdep.c: Fix indentation.
395 * tilegx-tdep.c: Fix indentation.
396 * top.c: Fix indentation.
397 * tracefile-tfile.c: Fix indentation.
398 * tracepoint.c: Fix indentation.
399 * tui/tui-disasm.c: Fix indentation.
400 * tui/tui-io.c: Fix indentation.
401 * tui/tui-regs.c: Fix indentation.
402 * tui/tui-stack.c: Fix indentation.
403 * tui/tui-win.c: Fix indentation.
404 * tui/tui-winsource.c: Fix indentation.
405 * tui/tui.c: Fix indentation.
406 * typeprint.c: Fix indentation.
407 * ui-out.h: Fix indentation.
408 * unittests/copy_bitwise-selftests.c: Fix indentation.
409 * unittests/memory-map-selftests.c: Fix indentation.
410 * utils.c: Fix indentation.
411 * v850-tdep.c: Fix indentation.
412 * valarith.c: Fix indentation.
413 * valops.c: Fix indentation.
414 * valprint.c: Fix indentation.
415 * valprint.h: Fix indentation.
416 * value.c: Fix indentation.
417 * value.h: Fix indentation.
418 * varobj.c: Fix indentation.
419 * vax-tdep.c: Fix indentation.
420 * windows-nat.c: Fix indentation.
421 * windows-tdep.c: Fix indentation.
422 * xcoffread.c: Fix indentation.
423 * xml-syscall.c: Fix indentation.
424 * xml-tdesc.c: Fix indentation.
425 * xstormy16-tdep.c: Fix indentation.
426 * xtensa-config.c: Fix indentation.
427 * xtensa-linux-nat.c: Fix indentation.
428 * xtensa-linux-tdep.c: Fix indentation.
429 * xtensa-tdep.c: Fix indentation.
430
431 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
432 Craig Blackmore <craig.blackmore@embecosm.com>
433
434 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
435 as an unsigned value.
436
437 2020-11-01 Tom Tromey <tom@tromey.com>
438
439 * dbxread.c (dbx_end_psymtab): Update.
440 * dwarf2/read.c (process_psymtab_comp_unit_reader)
441 (build_type_psymtabs_reader): Update.
442 * xcoffread.c (xcoff_end_psymtab): Update.
443 * ctfread.c (scan_partial_symbols): Update.
444 * psymtab.c (sort_pst_symbols): Remove.
445 (partial_symtab::end): Rename from end_psymtab_common. Inline
446 sort_pst_symbols.
447 * psympriv.h (struct partial_symtab) <end>: New method.
448 (end_psymtab_common): Don't declare.
449
450 2020-11-01 Tom Tromey <tom@tromey.com>
451
452 * symmisc.c (count_psyms): New function.
453 (print_objfile_statistics): Use it.
454 * psymtab.c (append_psymbol_to_list): Remove.
455 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
456 * objfiles.h (struct objstats) <n_psyms>: Remove.
457
458 2020-11-01 Tom Tromey <tom@tromey.com>
459
460 * dbxread.c (dbx_end_psymtab): Update.
461 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
462 (build_type_psymtabs_reader): Update.
463 * xcoffread.c (xcoff_end_psymtab): Update.
464 * ctfread.c (scan_partial_symbols): Update.
465 * psympriv.h (end_psymtab_common): Update.
466 * psymtab.c (end_psymtab_common): Remove objfile parameter.
467 (sort_pst_symbols): Likewise.
468
469 2020-11-01 Tom Tromey <tom@tromey.com>
470
471 * dbxread.c (dbx_symfile_read): Update.
472 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
473 * xcoffread.c (xcoff_initial_scan): Update.
474 * psympriv.h (init_psymbol_list): Don't declare.
475 * psymtab.c (init_psymbol_list): Remove.
476
477 2020-11-01 Joel Brobecker <brobecker@adacore.com>
478
479 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
480 gnat_encoded_fixed_type_info. Update all callers.
481
482 2020-11-01 Joel Brobecker <brobecker@adacore.com>
483
484 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
485 line too long.
486
487 2020-11-01 Joel Brobecker <brobecker@adacore.com>
488
489 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
490 cast_from_fixed. Update all callers.
491 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
492 Update all callers.
493 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
494 Update all callers.
495 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
496 ada_scaling_factor.
497 * ada-typeprint.c: Replace call to ada_scaling_factor by call
498 to print_gnat_encoded_fixed_point_type.
499 * ada-valprint.c: Likewise.
500
501 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
502
503 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
504 (debug_prefixed_printf): Add check of debug_displaced flag.
505 * linux-nat.c (linux_nat_debug_printf): Add check of
506 debug_linux_nat flag.
507
508 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * infrun.c (infrun_debug_printf_1): Remove.
511 (displaced_debug_printf_1): Remove.
512 (stop_all_threads): Use debug_prefixed_printf.
513 * infrun.h (infrun_debug_printf_1): Remove.
514 (infrun_debug_printf): Use debug_prefixed_printf.
515 (displaced_debug_printf_1): Remove.
516 (displaced_debug_printf): Use debug_prefixed_printf.
517 * linux-nat.c (linux_nat_debug_printf_1): Remove.
518 (linux_nat_debug_printf): Use debug_prefixed_printf.
519
520 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
521
522 * configure: Re-generate.
523 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
524 AC_LANG_PROGRAM.
525
526 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
527
528 * configure: Re-generate.
529
530 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
531
532 * configure: Re-generate.
533
534 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
535
536 * configure: Re-generate.
537
538 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
539
540 * configure: Re-generate.
541
542 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
543
544 * acinclude.m4: Modernize.
545 * configure: Re-generate.
546
547 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * configure.ac: Modernize.
550 * configure: Re-generate.
551
552 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
553
554 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
555 * configure: Re-generate.
556 * configure.ac: Remove AM_PROG_CC_STDC.
557
558 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
559
560 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
561 AC_CANONICAL_SYSTEM.
562 * configure: Re-generate.
563
564 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
565
566 * infrun.h (displaced_debug_printf): New macro. Replace
567 displaced debug prints throughout to use it.
568 (displaced_debug_printf_1): New declaration.
569 (displaced_step_dump_bytes): Return string, remove ui_file
570 parameter, update all callers.
571 * infrun.c (displaced_debug_printf_1): New function.
572 (displaced_step_dump_bytes): Return string, remove ui_file
573 parameter
574
575 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
576
577 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
578
579 2020-10-30 Tom Tromey <tromey@adacore.com>
580
581 * Makefile.in (stamp-init): Depend on config.status.
582
583 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
584
585 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
586
587 2020-10-30 Pedro Alves <pedro@palves.net>
588
589 * thread.c (lookup_selected_frame): Move ...
590 * frame.c (lookup_selected_frame): ... here.
591
592 2020-10-30 Pedro Alves <pedro@palves.net>
593
594 * blockframe.c (block_innermost_frame): Use get_selected_frame.
595 * frame.c
596 (scoped_restore_selected_frame::scoped_restore_selected_frame):
597 Use save_selected_frame. Save language as well.
598 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
599 Use restore_selected_frame, and restore language as well.
600 (selected_frame_id, selected_frame_level): New.
601 (selected_frame): Update comments.
602 (save_selected_frame, restore_selected_frame): New.
603 (get_selected_frame): Use lookup_selected_frame.
604 (get_selected_frame_if_set): Delete.
605 (select_frame): Record selected_frame_level and selected_frame_id.
606 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
607 fields.
608 (get_selected_frame): Make 'message' parameter optional.
609 (get_selected_frame_if_set): Delete declaration.
610 (select_frame): Update comments.
611 (save_selected_frame, restore_selected_frame)
612 (lookup_selected_frame): Declare.
613 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
614 * infrun.c (struct infcall_control_state) <selected_frame_level>:
615 New field.
616 (save_infcall_control_state): Use save_selected_frame.
617 (restore_selected_frame): Delete.
618 (restore_infcall_control_state): Use restore_selected_frame.
619 * stack.c (select_frame_command_core, frame_command_core): Use
620 get_selected_frame.
621 * thread.c (restore_selected_frame): Rename to ...
622 (lookup_selected_frame): ... this and make extern. Select the
623 current frame if the frame level is -1.
624 (scoped_restore_current_thread::restore): Also restore the
625 language.
626 (scoped_restore_current_thread::~scoped_restore_current_thread):
627 Don't try/catch.
628 (scoped_restore_current_thread::scoped_restore_current_thread):
629 Save the language as well. Use save_selected_frame.
630
631 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
632
633 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
634 documentation.
635 * gdbarch.h: Re-generate.
636
637 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
638
639 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
640 parameter.
641 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
642 Likewise.
643 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
644 Likewise.
645 * arch-utils.c (default_displaced_step_hw_singlestep):
646 Likewise.
647 * arch-utils.h (default_displaced_step_hw_singlestep):
648 Likewise.
649 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
650 Likewise.
651 * s390-tdep.c (s390_displaced_step_hw_singlestep):
652 Likewise.
653 * gdbarch.c: Re-generate.
654 * gdbarch.h: Re-generate.
655 * infrun.c (resume_1): Adjust.
656
657 2020-10-29 Tom Tromey <tom@tromey.com>
658
659 * progspace.c (program_space::~program_space): Don't call
660 exec_close.
661
662 2020-10-29 Tom Tromey <tom@tromey.com>
663
664 * exec.c (exec_target::close): Don't change current program
665 space.
666
667 2020-10-29 Tom Tromey <tom@tromey.com>
668
669 * symfile.c (add_symbol_file_command): Update.
670 * exec.c (program_space::add_target_sections): Rename.
671 * symfile-mem.c (symbol_file_add_from_memory): Update.
672 * progspace.h (struct program_space) <add_target_sections>:
673 Declare new overload.
674 * exec.h (add_target_sections_of_objfile): Don't declare.
675
676 2020-10-29 Tom Tromey <tom@tromey.com>
677
678 * solib.c (solib_map_sections): Update.
679 * exec.c (program_space::add_target_sections): Now a method.
680 (exec_file_attach): Update.
681 * exec.h (add_target_sections): Don't declare.
682 * progspace.h (struct program_space) <add_target_sections>:
683 Declare.
684
685 2020-10-29 Tom Tromey <tom@tromey.com>
686
687 * progspace.h (struct program_space) <remove_target_sections>:
688 Declare.
689 * exec.c (program_space::remove_target_sections): Now a method.
690 * exec.h (remove_target_sections): Don't declare.
691
692 2020-10-29 Tom Tromey <tom@tromey.com>
693
694 * inferior.c (delete_inferior): Update.
695 * progspace.c (program_space::empty): Rename from
696 program_space_empty_p. Return bool.
697 * progspace.h (struct program_space) <empty>: New method.
698 (program_space_empty_p): Don't declare.
699
700 2020-10-29 Tom Tromey <tom@tromey.com>
701
702 * progspace.c (program_space::~program_space): Don't call
703 clear_program_space_solib_cache.
704 (program_space::clear_solib_cache): Rename from
705 clear_solib_cache.
706 * solib.c (handle_solib_event): Update.
707 * progspace.h (struct program_space) <clear_solib_cache>: New
708 method.
709 (clear_program_space_solib_cache): Don't declare.
710
711 2020-10-29 Tom Tromey <tom@tromey.com>
712
713 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
714 * target.c (info_target_command): Update.
715 * symfile.c (syms_from_objfile_1, finish_new_objfile)
716 (symbol_file_clear, reread_symbols): Update.
717 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
718 * stabsread.c (scan_file_globals): Update.
719 * solib.c (update_solib_list): Update.
720 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
721 (svr4_fetch_objfile_link_map, enable_break)
722 (svr4_relocate_main_executable)
723 (svr4_iterate_over_objfiles_in_search_order): Update.
724 * solib-frv.c (lm_base, enable_break)
725 (frv_relocate_main_executable): Update.
726 (main_got, frv_fdpic_find_canonical_descriptor): Update.
727 (frv_fetch_objfile_link_map): Update.
728 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
729 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
730 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
731 * remote.c (remote_target::get_offsets): Update.
732 (remote_target::start_remote)
733 (extended_remote_target::post_attach): Update.
734 * objfiles.c (entry_point_address_query): Update.
735 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
736 * minsyms.c (get_symbol_leading_char): Update.
737 * frame.c (inside_main_func): Update.
738 * progspace.h (symfile_objfile): Remove macro.
739
740 2020-10-29 Tom Tromey <tom@tromey.com>
741
742 * exec.c (exec_file_attach): Update.
743 * progspace.c (program_space::exec_close): Update.
744 * progspace.h (struct program_space) <ebfd>: Now a
745 gdb_bfd_ref_ptr.
746 <set_exec_bfd>: Change argument type.
747 <exec_bfd>: Update.
748
749 2020-10-29 Tom Tromey <tom@tromey.com>
750
751 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
752 * symfile.c (reread_symbols): Update.
753 * symfile-mem.c (add_symbol_file_from_memory_command)
754 (add_vsyscall_page): Update.
755 * source-cache.c (source_cache::get_plain_source_lines): Update.
756 * solib-svr4.c (find_program_interpreter, elf_locate_base)
757 (svr4_current_sos_direct, svr4_exec_displacement)
758 (svr4_relocate_main_executable): Update.
759 (svr4_iterate_over_objfiles_in_search_order): Update.
760 * solib-frv.c (enable_break2, enable_break): Update.
761 * solib-dsbt.c (lm_base, enable_break): Update.
762 * solib-darwin.c (find_program_interpreter)
763 (darwin_solib_create_inferior_hook): Update.
764 * sol-thread.c (rw_common, ps_pdmodel): Update.
765 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
766 * remote.c (compare_sections_command)
767 (remote_target::trace_set_readonly_regions): Update.
768 * remote-sim.c (get_sim_inferior_data)
769 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
770 (gdbsim_target_open, gdbsim_target::files_info): Update.
771 * exec.h (exec_bfd): Remove macro.
772 * progspace.c (initialize_progspace): Update.
773 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
774 Update.
775 * nto-procfs.c (nto_procfs_target::post_attach)
776 (nto_procfs_target::create_inferior): Update.
777 * maint.c (maintenance_info_sections): Update.
778 * linux-thread-db.c (thread_db_target::get_thread_local_address):
779 Update.
780 * infcmd.c (post_create_inferior): Update.
781 * gcore.c (default_gcore_arch, default_gcore_target): Update.
782 (objfile_find_memory_regions): Update.
783 * exec.c (validate_exec_file, exec_file_attach)
784 (exec_read_partial_read_only, print_section_info): Update.
785 * corelow.c (core_target_open): Update.
786 * corefile.c (reopen_exec_file, validate_files): Update.
787 * arm-tdep.c (gdb_print_insn_arm): Update.
788 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
789 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
790 methods.
791
792 2020-10-29 Tom Tromey <tom@tromey.com>
793
794 * progspace.h (current_target_sections): Remove macro.
795 * solib-svr4.c (scan_dyntag): Update.
796 * solib-dsbt.c (scan_dyntag): Update.
797 * exec.c (exec_target::close): Update.
798 (add_target_sections, add_target_sections_of_objfile)
799 (remove_target_sections, exec_target::get_section_table)
800 (exec_target::files_info, set_section_command)
801 (exec_set_section_address, exec_target::has_memory)
802 (exec_target::has_memory): Update.
803
804 2020-10-29 Tom Tromey <tom@tromey.com>
805
806 * source-cache.c (source_cache::get_plain_source_lines): Use
807 current_program_space.
808 * corefile.c (reopen_exec_file): Use current_program_space.
809 * exec.c (exec_file_attach): Use current_program_space.
810 * exec.h (exec_bfd_mtime): Remove.
811
812 2020-10-29 Tom Tromey <tom@tromey.com>
813
814 * gcore.c (default_gcore_mach): Remove.
815 (create_gcore_bfd): Update.
816
817 2020-10-29 Tom Tromey <tom@tromey.com>
818
819 * progspace.c (program_space::exec_close): New method, from
820 exec_close in exec.c.
821 * exec.c (exec_close): Move to progspace.c.
822 (exec_target::close, exec_file_attach): Update.
823 * progspace.h (struct program_space) <exec_close>: Declare
824 method.
825
826 2020-10-29 Tom Tromey <tom@tromey.com>
827
828 * progspace.h (struct program_space) <exec_filename>: Rename from
829 pspace_exec_filename. Now a unique_xmalloc_ptr.
830 * inferior.c (print_selected_inferior): Update.
831 (print_inferior): Update.
832 * mi/mi-main.c (print_one_inferior): Update.
833 * exec.h (exec_filename): Remove macro.
834 * corefile.c (get_exec_file): Update.
835 * exec.c (exec_close): Update.
836 (exec_file_attach): Update.
837 * progspace.c (clone_program_space): Update.
838 (print_program_space): Update.
839
840 2020-10-29 Tom Tromey <tom@tromey.com>
841
842 * target-section.h (struct target_section): Add constructor.
843 * exec.c (build_section_table, add_target_sections_of_objfile):
844 Update.
845 * corelow.c (core_target::build_file_mappings): Update.
846
847 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
848
849 PR gdb/19318
850 * inferior.c (detach_inferior_command): Restore the current thread.
851 (kill_inferior_command): Ditto.
852
853 2020-10-28 Tom de Vries <tdevries@suse.de>
854
855 PR symtab/26772
856 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
857 map, check it in the "best match" loop.
858
859 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
860
861 * m32c-tdep.c: Remove unused includes.
862
863 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
864
865 * xtensa-tdep.c: Remove includes.
866
867 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
868
869 * breakpoint.c (struct condition_command_opts): New struct.
870 (condition_command_option_defs): New static global.
871 (make_condition_command_options_def_group): New function.
872 (condition_completer): Update to consider the '-force' flag.
873 (condition_command): Use gdb::option for the '-force' flag.
874
875 2020-10-27 Tom de Vries <tdevries@suse.de>
876
877 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
878 symbols in section check.
879
880 2020-10-27 Tom de Vries <tdevries@suse.de>
881
882 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
883
884 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
885
886 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
887 * breakpoint.c: Update the help text of the 'condition' and 'break'
888 commands.
889 (set_breakpoint_condition): Take a new bool parameter
890 to control whether condition definition should be forced even when
891 the condition expression is invalid in all of the current locations.
892 (condition_command): Update the call to 'set_breakpoint_condition'.
893 (find_condition_and_thread): Take the "-force-condition" flag into
894 account.
895 * linespec.c (linespec_keywords): Add "-force-condition" as an
896 element.
897 (FORCE_KEYWORD_INDEX): New #define.
898 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
899 as a keyword.
900 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
901 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
902 * python/py-breakpoint.c (bppy_set_condition): Ditto.
903 * NEWS: Mention the changes to the 'break' and 'condition' commands.
904
905 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
906
907 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
908 * breakpoint.c (set_breakpoint_location_condition): New function.
909 (set_breakpoint_condition): Disable a breakpoint location if parsing
910 the condition string gives an error.
911 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
912 (build_target_condition_list): Ditto.
913 (build_target_command_list): Ditto.
914 (build_bpstat_chain): Ditto.
915 (print_one_breakpoint_location): Ditto.
916 (print_one_breakpoint): Ditto.
917 (breakpoint_1): Ditto.
918 (bp_location::bp_location): Ditto.
919 (locations_are_equal): Ditto.
920 (update_breakpoint_locations): Ditto.
921 (enable_disable_bp_num_loc): Ditto.
922 (init_breakpoint_sal): Use set_breakpoint_location_condition.
923 (find_condition_and_thread_for_sals): New static function.
924 (create_breakpoint): Call find_condition_and_thread_for_sals.
925 (location_to_sals): Call find_condition_and_thread_for_sals instead
926 of find_condition_and_thread.
927
928 2020-10-26 Tom de Vries <tdevries@suse.de>
929
930 * dwarf2/read.c (process_full_comp_unit): Call
931 dwarf2_find_base_address.
932
933 2020-10-26 Tom Tromey <tromey@adacore.com>
934
935 * gdbtypes.c (create_range_type): Revert previous patch. Add
936 comment.
937
938 2020-10-26 Pedro Alves <pedro@palves.net>
939
940 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
941 (my_waitpid): Use gdb::handle_eintr.
942
943 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
944
945 * acinclude.m4: Update ptrace.m4 path.
946 * ptrace.m4: Moved to gdbsupport.
947
948 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
949
950 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
951 instead of target_gdbarch.
952
953 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
954
955 * jit.c (jit_reader_load_command): Pass current inferior.
956 (jit_inferior_init): Change parameter type to inferior, use it.
957 (jit_inferior_created): Remove.
958 (jit_inferior_created_hook): Pass inferior parameter down.
959 (_initialize_jit): Use jit_inferior_created_hook instead of
960 jit_inferior_created.
961 * jit.h (jit_inferior_created_hook): Add inferior parameter.
962 * infrun.c (follow_exec): Pass inferior to
963 jit_inferior_created_hook.
964
965 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
966
967 * linux-thread-db.c (check_pid_namespace_match): Add inferior
968 parameter and use it.
969 (thread_db_inferior_created): Pass inferior argument.
970
971 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
972
973 * aix-thread.c (aix_thread_inferior_created): Add inferior
974 parameter.
975 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
976 * dummy-frame.c (cleanup_dummy_frames): Likewise.
977 * jit.c (jit_inferior_created): Likewise.
978 * linux-thread-db.c (thread_db_inferior_created): Likewise.
979 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
980 * observable.h (inferior_created): Likewise.
981 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
982 * symfile-mem.c (add_vsyscall_page): Likewise.
983 * infcmd.c (post_create_inferior): Pass inferior argument.
984
985 2020-10-24 Joel Brobecker <brobecker@adacore.com>
986
987 GDB 10.1 released.
988
989 2020-10-23 Joel Brobecker <brobecker@adacore.com>
990
991 * ada-typeprint.c (ada_print_type): Remove superfluous second call
992 to ada_check_typedef.
993
994 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
995
996 * f-exp.y (f_parse): Rename to...
997 (f_language::parser): ...this.
998 * f-lang.c (f_get_encoding): Rename to...
999 (f_language::get_encoding): ...this.
1000 (f_op_print_tab): Rename to...
1001 (f_language::op_print_tab): ...this.
1002 (exp_descriptor_f): Rename to...
1003 (f_language::exp_descriptor_tab): ...this.
1004 (class f_language): Moved to f-lang.h.
1005 (f_language::language_arch_info): New function, moved out of class
1006 declaration.
1007 (f_language::search_name_hash): Likewise.
1008 (f_language::lookup_symbol_nonlocal): Likewise.
1009 (f_language::get_symbol_name_matcher_inner): Likewise.
1010 * f-lang.h: Add 'valprint.h' include.
1011 (class f_language): Moved here from f-lang.c.
1012 * f-typeprint.c (f_type_print_args): Delete commented out
1013 declaration.
1014 (f_print_typedef): Rename to...
1015 (f_language::print_typedef): ...this.
1016 (f_print_type): Rename to...
1017 (f_language::print_type): ...this.
1018 (f_type_print_varspec_prefix): Delete declaration and rename to...
1019 (f_language::f_type_print_varspec_prefix): ...this.
1020 (f_type_print_varspec_suffix): Delete declaration and rename to...
1021 (f_language::f_type_print_varspec_suffix): ...this.
1022 (f_type_print_base): Delete declaration and rename to...
1023 (f_language::f_type_print_base): ...this.
1024 * f-valprint.c (f_value_print_inner): Rename to...
1025 (f_language::value_print_inner): ...this.
1026 * parse.c: Delete 'f-lang.h' include.
1027
1028 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1029
1030 * language.h (language_defn::print_type): Add variable names in
1031 declaration, and update header comment.
1032
1033 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * ada-lang.c (ada_language::demangle): Rename to...
1036 (ada_language::demangle_symbol): ...this.
1037 * c-lang.c (cplus_language::demangle): Rename to...
1038 (cplus_language::demangle_symbol): ...this.
1039 * d-lang.c (d_language::demangle): Rename to...
1040 (d_language::demangle_symbol): ...this.
1041 * f-lang.c (f_language::demangle): Rename to...
1042 (f_language::demangle_symbol): ...this.
1043 * go-lang.c (go_language::demangle): Rename to...
1044 (go_language::demangle_symbol): ...this.
1045 * language.c (language_demangle): Update call to demangle_symbol.
1046 (auto_or_unknown_language::demangle): Rename to...
1047 (auto_or_unknown_language::demangle_symbol): ...this.
1048 * language.h (language_defn::demangle): Rename to...
1049 (language_defn::demangle_symbol): ...this.
1050 * objc-lang.c (objc_language::demangle): Rename to...
1051 (objc_language::demangle_symbol): ...this.
1052 * rust-lang.c (rust_language::demangle): Rename to...
1053 (rust_language::demangle_symbol): ...this.
1054
1055 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1056
1057 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1058 (iterate_over_file_blocks): Replace use of macro with the macros
1059 definition.
1060
1061 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1062
1063 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1064 * valprint.c (maybe_print_array_index): Replace use of macro with
1065 the macros definition.
1066
1067 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * ada-lang.c (ada_language::print_array_index): Call value_print
1070 directly.
1071 * language.c (language_defn::print_array_index): Likewise.
1072 * language.h (LA_VALUE_PRINT): Delete.
1073 * valprint.c (value_print): Call value_print on the
1074 current_language directly.
1075
1076 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * language.h (LA_PRINT_TYPEDEF): Delete.
1079 * typeprint.c (typedef_print): Call print_typedef directly on the
1080 current_language object.
1081
1082 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1083
1084 * m2-exp.y (m2_parse): Rename to...
1085 (m2_language::parser): ...this. Update function signature.
1086 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1087 (m2_op_print): Rename to...
1088 (m2_language::op_print_tab): ...this, and make const.
1089 (exp_descriptor_modula2): Rename to...
1090 (m2_language::exp_descriptor_modula2): ...this.
1091 (class m2_language): Move to m2-lang.h.
1092 (m2_language::language_arch_info): New function, moved out of
1093 class declaration.
1094 (m2_language::printchar): New function, body from m2_printchar.
1095 (m2_language::printstr): New function, moved out of class
1096 declaration.
1097 (m2_language::emitchar): Likewise.
1098 * m2-lang.h (m2_parse): Delete declaration.
1099 (m2_print_typedef): Delete declaration.
1100 (m2_value_print_inner): Delete declaration.
1101 (class m2_language): Class declaration moved from m2-lang.c,
1102 larger functions are left in m2-lang.c.
1103 * m2-typeprint.c (m2_print_typedef): Rename to...
1104 (m2_language::print_typedef): ...this, and update function
1105 signature.
1106 * m2-valprint.c (m2_value_print_inner): Rename to...
1107 (m2_language::value_print_inner): ...this, replace use of
1108 LA_PRINT_STRING with a direct call to printstr member function,
1109 and update recursive call.
1110
1111 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1112
1113 * language.c (default_is_string_type_p): Delete, implementation
1114 moved into auto_or_unknown_language::is_string_type_p.
1115 (unk_op_print_tab): Moved into
1116 auto_or_unknown_language::opcode_print_table.
1117 (unknown_language_arch_info): Delete, implementation moved into
1118 auto_or_unknown_language::language_arch_info.
1119 (class auto_or_unknown_language): New class, member functions
1120 copied from unknown_language class, with some updates.
1121 (class unknown_language): Most member functions moved into
1122 auto_or_unknown_language class. Inherit from
1123 auto_or_unknown_language class.
1124 (class auto_language): Inherit from auto_or_unknown_language.
1125 Delete most member functions.
1126
1127 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1128
1129 * stabsread.c (read_member_functions): Remove gdb_assert.
1130
1131 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1132
1133 * gdbtypes.c (init_complex_type): Check target type name.
1134
1135 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * target-debug.h (target_debug_print_struct_target_ops_p):
1138 Remove.
1139 (target_debug_print_async_callback_ftype_p): Remove.
1140 (target_debug_print_struct_trace_state_variable_p): Remove.
1141 (target_debug_print_struct_traceframe_info_p): Remove.
1142 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1143 (target_debug_print_enum_btrace_format): Remove.
1144 (target_debug_print_enum_info_proc_what): Remove.
1145 (target_debug_print_thread_info_pp): Remove.
1146
1147 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1148
1149 * target.h (struct target_ops) <make_corefile_notes>:
1150 Change return type to unique pointer.
1151 * target.c (dummy_make_corefile_notes): Likewise.
1152 * exec.c (struct exec_target) <make_corefile_notes>:
1153 Likewise.
1154 (exec_target::make_corefile_notes): Likewise.
1155 * procfs.c (class procfs_target) <make_corefile_notes>:
1156 Likewise.
1157 (procfs_do_thread_registers): Adjust to unique pointer.
1158 (struct procfs_corefile_thread_data): Add constructor.
1159 <note_data>: Change type to unique pointer.
1160 (procfs_corefile_thread_callback): Adjust to unique pointer.
1161 (procfs_target::make_corefile_notes): Change return type to
1162 unique pointer.
1163 * target-delegates.c: Re-generate.
1164 * gcore.c (write_gcore_file_1): Adjust.
1165 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1166 New.
1167
1168 2020-10-22 Tom de Vries <tdevries@suse.de>
1169
1170 * block.c (find_block_in_blockvector): Make sure the returned block
1171 contains pc.
1172
1173 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1174
1175 PR gdb/26693
1176 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1177 parameter.
1178 (load_cu): Pass existing CU.
1179 (process_imported_unit_die): Likewise.
1180 (follow_die_offset): Likewise.
1181
1182 2020-10-22 Luis Machado <luis.machado@linaro.org>
1183
1184 * corelow.c (core_target::xfer_partial): Also check for an empty
1185 m_core_unavailable_mappings vector.
1186
1187 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1190 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1191 * f-exp.y (arglist): Allow for a series of subranges.
1192 (subrange): Add cases for subranges with strides.
1193 * f-lang.c (value_f90_subarray): Catch use of array strides and
1194 throw an error.
1195 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1196
1197 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1198
1199 * expprint.c (print_subexp_standard): Change enum range_type to
1200 range_flag and rename variables to match.
1201 (dump_subexp_body_standard): Likewise.
1202 * expression.h (enum range_type): Rename to...
1203 (enum range_flag): ...this.
1204 (range_types): Rename to...
1205 (range_flags): ...this.
1206 * f-lang.c (value_f90_subarray): Change enum range_type to
1207 range_flag and rename variables to match.
1208 * parse.c (operator_length_standard): Likewise.
1209 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1210 range_type to range_flag.
1211 * rust-lang.c (rust_evaluate_funcall): Likewise.
1212 (rust_range): Likewise.
1213 (rust_compute_range): Likewise.
1214 (rust_subscript): Likewise.
1215
1216 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * expprint.c (print_subexp_standard): Update to reflect changes to
1219 enum range_type.
1220 (dump_subexp_body_standard): Likewise.
1221 * expression.h (enum range_type): Convert to a bit field enum, and
1222 make the enum unsigned.
1223 * f-exp.y (subrange): Update to reflect changes to enum
1224 range_type.
1225 * f-lang.c (value_f90_subarray): Likewise.
1226 * parse.c (operator_length_standard): Likewise.
1227 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1228 * rust-lang.c (rust_range): Likewise.
1229 (rust_compute_range): Likewise.
1230 (rust_subscript): Likewise.
1231
1232 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1233
1234 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1235 (displaced_step_in_progress): Fix comment.
1236
1237 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1238
1239 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1240 * gdbarch.c: Re-generate.
1241 * gdbarch.h: Re-generate.
1242 * gcore.c (write_gcore_file_1): Adjust.
1243 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1244 constructor.
1245 <note_data>: Change type to unique pointer.
1246 <abort_iteration>: Change type to bool.
1247 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1248 (fbsd_collect_thread_registers): Return void, adjust.
1249 (struct fbsd_corefile_thread_data): Add construtor.
1250 <note_data>: Change type to unique pointer.
1251 (fbsd_corefile_thread): Adjust.
1252 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1253 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1254 to unique pointer, adjust.
1255 (struct linux_collect_regset_section_cb_data): Add constructor.
1256 <note_data>: Change type to unique pointer.
1257 <abort_iteration>: Change type to bool.
1258 (linux_collect_thread_registers): Return void, adjust.
1259 (struct linux_corefile_thread_data): Add constructor.
1260 <note_data>: Change type to unique pointer.
1261 (linux_corefile_thread): Adjust.
1262 (linux_make_corefile_notes): Return unique pointer, adjust.
1263
1264 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1265
1266 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1267 * gdbarch.c: Re-generate.
1268 * gdbarch.h: Re-generate.
1269 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1270 bool.
1271 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1272 Likewise.
1273 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1274 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1275 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1276 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1277
1278 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1279
1280 * gdbarch.sh: Make generated predicates return bool.
1281 * gdbarch.c: Re-generate.
1282 * gdbarch.h: Re-generate.
1283
1284 2020-10-20 Tom Tromey <tom@tromey.com>
1285
1286 * varobj-iter.h (struct varobj_item): Remove typedef.
1287
1288 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1289
1290 * infrun.c (currently_stepping): Change int to bool
1291 (maybe_software_singlestep): Likewise.
1292 (show_stop_on_solib_events): Likewise.
1293 (stepping_past_nonsteppable_watchpoint): Likewise.
1294 (displaced_step_in_progress_any_inferior): Likewise.
1295 (displaced_step_in_progress_thread): Likewise.
1296 (keep_going_stepped_thread): Likewise.
1297 (thread_still_needs_step_over): Likewise.
1298 (start_step_over): Likewise.
1299 (do_target_resume): Likewise.
1300 (resume_1): Likewise.
1301 (clear_proceed_status): Likewise.
1302 (thread_still_needs_step_over_bp): Likewise.
1303 (proceed): Likewise.
1304 (switch_back_to_stepped_thread): Likewise.
1305 (adjust_pc_after_break): Likewise.
1306 (stepped_in_from): Likewise.
1307 (handle_stop_requested): Likewise.
1308 (handle_syscall_event): Likewise.
1309 (handle_no_resumed): Likewise.
1310 (handle_inferior_event): Likewise.
1311 (finish_step_over): Likewise.
1312 (handle_signal_stop): Likewise.
1313 (process_event_stop_test): Likewise.
1314
1315 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1316
1317 * infrun.c (get_displaced_stepping_state): Fix comment.
1318
1319 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1320
1321 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1322
1323 2020-10-19 Tom Tromey <tromey@adacore.com>
1324
1325 PR tui/26719
1326 * tui/tui-winsource.h (struct tui_source_window_base)
1327 <refresh_window>: Rename from refresh_pad.
1328 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1329 Rename from refresh_pad.
1330 (tui_source_window_base::show_source_content)
1331 (tui_source_window_base::do_scroll_horizontal): Update.
1332
1333 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1334
1335 * thread.c (_initialize_thread): Fine-tune the help text of
1336 'info threads'.
1337
1338 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1339
1340 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1341
1342 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1343
1344 * breakpoint.c (handle_jit_event): Add an argument, change how
1345 `jit_event_handler` is called.
1346
1347 2020-10-17 Tom Tromey <tom@tromey.com>
1348
1349 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1350 (scan_xcoff_symtab): Update.
1351 * psymtab.h (class psymtab_storage) <global_psymbols,
1352 static_psymbols, current_global_psymbols,
1353 current_static_psymbols>: Remove.
1354 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1355 (match_partial_symbol, lookup_partial_symbol): Update.
1356 (print_partial_symbols): Change parameters.
1357 (dump_psymtab, recursively_search_psymtabs)
1358 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1359 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1360 (concat): Remove.
1361 (end_psymtab_common): Simplify.
1362 (append_psymbol_to_list): Change parameters.
1363 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1364 (init_psymbol_list): Simplify.
1365 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1366 * psympriv.h (struct partial_symtab) <empty>: New method.
1367 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1368 Remove.
1369 <global_psymbols, static_psymbols>: New members.
1370 <add_psymbol>: New methods.
1371 (add_psymbol_to_list): Don't declare.
1372 (psymbol_placement): Move earlier.
1373 * mdebugread.c (parse_partial_symbols): Update.
1374 (handle_psymbol_enumerators): Change parameters.
1375 (mdebug_expand_psymtab): Update.
1376 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1377 (add_partial_symbol): Update.
1378 * dwarf2/index-write.c (write_psymbols): Change parameters.
1379 (write_one_signatured_type): Update.
1380 (recursively_count_psymbols): Update.
1381 (recursively_write_psymbols): Update.
1382 (class debug_names) <recursively_write_psymbols>: Update.
1383 <write_psymbols>: Change parameters.
1384 <write_one_signatured_type>: Update.
1385 * dbxread.c (read_dbx_symtab): Update.
1386 (dbx_end_psymtab): Use partial_symtab::empty.
1387 * ctfread.c (struct ctf_context) <pst>: New member.
1388 (create_partial_symtab): Set it.
1389 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1390 (scan_partial_symbols): Use the psymtab's context. Update.
1391
1392 2020-10-17 Tom Tromey <tom@tromey.com>
1393
1394 * valprint.c (generic_value_print): Remove comment.
1395 * m2-valprint.c (m2_value_print_inner): Remove comment.
1396 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1397 type.
1398
1399 2020-10-17 Tom de Vries <tdevries@suse.de>
1400
1401 PR symtab/26317
1402 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1403 symbol main.
1404
1405 2020-10-14 Tom de Vries <tdevries@suse.de>
1406
1407 PR gdb/26733
1408 * solib.c (solib_contains_address_p): Handle
1409 'solib->sections == nullptr'.
1410
1411 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1412
1413 PR gdb/26642
1414 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1415 target can't do async.
1416 * target.c (target_wait): Assert that we don't pass
1417 TARGET_WNOHANG to a target that can't async.
1418
1419 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1420
1421 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1422 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1423 * alpha-bsd-nat.c: Adjust include.
1424 * alpha-bsd-tdep.h: Adjust comment.
1425 * alpha-nbsd-tdep.c: Rename to ...
1426 * alpha-netbsd-tdep.c: ... this, adjust include.
1427 * amd64-nbsd-nat.c: Rename to ...
1428 * amd64-netbsd-nat.c: ... this, adjust include.
1429 * amd64-nbsd-tdep.c: Rename to ...
1430 * amd64-netbsd-tdep.c: ... this, adjust include.
1431 * amd64-tdep.h: Adjust include.
1432 * arm-nbsd-nat.c: Rename to ...
1433 * arm-netbsd-nat.c: ... this, adjust include.
1434 * arm-nbsd-tdep.c: Rename to ...
1435 * arm-netbsd-tdep.c: ... this, adjust include.
1436 * arm-nbsd-tdep.h: Rename to ...
1437 * arm-netbsd-tdep.h: ... this, adjust include.
1438 * configure.nat: Adjust file lists.
1439 * configure.tgt: Likewise.
1440 * hppa-nbsd-nat.c: Rename to ...
1441 * hppa-netbsd-nat.c: ... this, adjust include.
1442 * hppa-nbsd-tdep.c: Rename to ...
1443 * hppa-netbsd-tdep.c: ... this, adjust include.
1444 * i386-nbsd-nat.c: Rename to ...
1445 * i386-netbsd-nat.c: ... this, adjust include.
1446 * i386-nbsd-tdep.c: Rename to ...
1447 * i386-netbsd-tdep.c: ... this, adjust include.
1448 * m68k-bsd-nat.c: Adjust include.
1449 * mips-nbsd-nat.c: Rename to ...
1450 * mips-netbsd-nat.c: ... this, adjust include.
1451 * mips-nbsd-tdep.c: Rename to ...
1452 * mips-netbsd-tdep.c: ... this, adjust include.
1453 * mips-nbsd-tdep.h: Rename to ...
1454 * mips-netbsd-tdep.h: ... this.
1455 * nbsd-nat.c: Rename to ...
1456 * netbsd-nat.c: ... this, adjust include.
1457 * nbsd-nat.h: Rename to ...
1458 * netbsd-nat.h: ... this, adjust include.
1459 * nbsd-tdep.c: Rename to ...
1460 * netbsd-tdep.c: ... this, adjust include.
1461 * nbsd-tdep.h: Rename to ...
1462 * netbsd-tdep.h: ... this.
1463 * ppc-nbsd-nat.c: Rename to ...
1464 * ppc-netbsd-nat.c: ... this, adjust include.
1465 * ppc-nbsd-tdep.c: Rename to ...
1466 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1467 * ppc-nbsd-tdep.h: Rename to ...
1468 * ppc-netbsd-tdep.h: ... this.
1469 * sh-nbsd-nat.c: Rename to ...
1470 * sh-netbsd-nat.c: ... this, adjust include.
1471 * sh-nbsd-tdep.c: Rename to ...
1472 * sh-netbsd-tdep.c: ... this, adjust include.
1473 * sparc-nbsd-nat.c: Rename to ...
1474 * sparc-netbsd-nat.c: ... this.
1475 * sparc-nbsd-tdep.c: Rename to ...
1476 * sparc-netbsd-tdep.c: ... this, adjust include.
1477 * sparc64-nbsd-nat.c: Rename to ...
1478 * sparc64-netbsd-nat.c: ... this.
1479 * sparc64-nbsd-tdep.c: Rename to ...
1480 * sparc64-netbsd-tdep.c: ... this, adjust include.
1481 * sparc64-tdep.h: Adjust comment.
1482 * vax-bsd-nat.c: Adjust include.
1483 * vax-nbsd-tdep.c: Rename to ...
1484 * vax-netbsd-tdep.c: ... this, adjust include.
1485
1486 2020-10-12 Tom Tromey <tom@tromey.com>
1487
1488 * target.h (struct target_ops) <get_section_table>: Update.
1489 (target_get_section_table): Update.
1490 * target.c (target_get_section_table, target_section_by_addr)
1491 (memory_xfer_partial_1): Update.
1492 * target-section.h (target_section_table): Now an alias.
1493 * target-delegates.c: Rebuild.
1494 * target-debug.h (target_debug_print_target_section_table_p):
1495 Rename from target_debug_print_struct_target_section_table_p.
1496 * symfile.c (build_section_addr_info_from_section_table): Update.
1497 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1498 * solib-svr4.c (scan_dyntag): Update.
1499 * solib-dsbt.c (scan_dyntag): Update.
1500 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1501 Update.
1502 * record-full.c (record_full_core_target::xfer_partial): Update.
1503 * progspace.h (struct program_space) <target_sections>: Update.
1504 * exec.h (print_section_info): Update.
1505 * exec.c (exec_target::close, build_section_table)
1506 (add_target_sections, add_target_sections_of_objfile)
1507 (remove_target_sections, exec_on_vfork)
1508 (section_table_available_memory)
1509 (section_table_xfer_memory_partial)
1510 (exec_target::get_section_table, exec_target::xfer_partial)
1511 (print_section_info, set_section_command)
1512 (exec_set_section_address, exec_target::has_memory): Update.
1513 * corelow.c (core_target::build_file_mappings)
1514 (core_target::xfer_partial, core_target::info_proc_mappings)
1515 (core_target::info_proc_mappings): Update.
1516 * bfd-target.c (class target_bfd): Update
1517
1518 2020-10-12 Tom Tromey <tom@tromey.com>
1519
1520 * progspace.c (program_space::~program_space): Don't call
1521 clear_section_table.
1522 * exec.h (clear_section_table): Don't declare.
1523 * exec.c (exec_target::close): Update.
1524 (clear_section_table): Remove.
1525
1526 2020-10-12 Tom Tromey <tom@tromey.com>
1527
1528 * exec.c (add_target_sections_of_objfile): Simplify.
1529
1530 2020-10-12 Tom Tromey <tom@tromey.com>
1531
1532 * solib.c (solib_map_sections): Update.
1533 * record-full.c (record_full_core_open_1): Update.
1534 * exec.h (build_section_table): Return a target_section_table.
1535 * exec.c (exec_file_attach): Update.
1536 (build_section_table): Return a target_section_table.
1537 * corelow.c (core_target::core_target): Update.
1538 * bfd-target.c (target_bfd::target_bfd): Update.
1539
1540 2020-10-12 Tom Tromey <tom@tromey.com>
1541
1542 * target.c (target_section_by_addr, memory_xfer_partial_1):
1543 Update.
1544 * target-section.h (struct target_section_table): Use
1545 std::vector.
1546 * symfile.h (build_section_addr_info_from_section_table): Take a
1547 target_section_table.
1548 * symfile.c (build_section_addr_info_from_section_table): Take a
1549 target_section_table.
1550 * solist.h (struct so_list) <sections>: Change type.
1551 <sections_end>: Remove.
1552 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1553 (solib_contains_address_p): Update.
1554 * solib-svr4.c (scan_dyntag): Update.
1555 * solib-dsbt.c (scan_dyntag): Update.
1556 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1557 Update.
1558 * record-full.c (record_full_core_start, record_full_core_end):
1559 Remove.
1560 (record_full_core_sections): New global.
1561 (record_full_core_open_1, record_full_core_target::xfer_partial):
1562 Update.
1563 * exec.h (build_section_table, section_table_xfer_memory_partial)
1564 (add_target_sections): Take a target_section_table.
1565 * exec.c (exec_file_attach, clear_section_table): Update.
1566 (resize_section_table): Remove.
1567 (build_section_table, add_target_sections): Take a
1568 target_section_table.
1569 (add_target_sections_of_objfile, remove_target_sections)
1570 (exec_on_vfork): Update.
1571 (section_table_available_memory): Take a target_section_table.
1572 (section_table_read_available_memory): Update.
1573 (section_table_xfer_memory_partial): Take a target_section_table.
1574 (print_section_info, set_section_command)
1575 (exec_set_section_address, exec_target::has_memory): Update.
1576 * corelow.c (class core_target) <m_core_section_table,
1577 m_core_file_mappings>: Remove braces.
1578 <~core_target>: Remove.
1579 (core_target::core_target): Update.
1580 (core_target::~core_target): Remove.
1581 (core_target::build_file_mappings)
1582 (core_target::xfer_memory_via_mappings)
1583 (core_target::xfer_partial, core_target::info_proc_mappings):
1584 Update.
1585 * bfd-target.c (target_bfd::xfer_partial): Update.
1586 (target_bfd::target_bfd): Update.
1587 (target_bfd::~target_bfd): Remove.
1588
1589 2020-10-12 Tom Tromey <tom@tromey.com>
1590
1591 * target.h (struct target_section, struct target_section_table):
1592 Move to target-section.h.
1593 * target-section.h: New file.
1594
1595 2020-10-12 Pedro Alves <pedro@palves.net>
1596
1597 PR exp/26602
1598 * valops.c (struct struct_field_searcher): New.
1599 (update_search_result): Rename to ...
1600 (struct_field_searcher::update_result): ... this. Simplify
1601 prototype. Record all found fields.
1602 (do_search_struct_field): Rename to ...
1603 (struct_field_searcher::search): ... this. Simplify prototype.
1604 Maintain stack of visited baseclass path. Call update_result for
1605 fields too. Keep searching fields in baseclasses instead of
1606 stopping at the first found field.
1607 (search_struct_field): Use struct_field_searcher. When looking
1608 for fields, report ambiguous access attempts.
1609
1610 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1611
1612 * frame.c (inside_main_func): Check full symbols as well as
1613 minimal symbols.
1614
1615 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1616
1617 * ada-lang.c (advance_wild_match): Rewrite the function's
1618 description. Change the type of target0, t0 and t1 to char.
1619
1620 2020-10-09 Tom Tromey <tromey@adacore.com>
1621
1622 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1623
1624 2020-10-09 Tom Tromey <tromey@adacore.com>
1625
1626 * ada-lang.h (ada_encode): Return std::string.
1627 * ada-lang.c (ada_encode_1): Return std::string.
1628 (ada_encode): Likewise.
1629 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1630 Update.
1631 * ada-exp.y (block_lookup, write_var_or_type): Update.
1632
1633 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1634
1635 PR exp/26714
1636 * printcmd.c (print_formatted): Handle void results as
1637 unformatted prints.
1638
1639 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1640
1641 * arch/aarch32.c (aarch32_create_target_description): Release the
1642 target_desc_up as late as possible.
1643 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1644 * arch/amd64.c (amd64_create_target_description): Likewise.
1645 * arch/arc.c (arc_create_target_description): Return a
1646 target_desc_up, don't release it.
1647 * arch/arc.h (arc_create_target_description): Update declaration.
1648 (arc_lookup_target_description): Move target_desc_up into the
1649 cache, and return a borrowed pointer.
1650 * arch/arm.c (arm_create_target_description): Release the
1651 target_desc_up as late as possible.
1652 * arch/i386.c (i386_create_target_description): Likewise.
1653 * arch/riscv.h (riscv_create_target_description): Update
1654 declaration to match definition.
1655 * arch/tic6x.c (tic6x_create_target_description): Release the
1656 target_desc_up as late as possible.
1657
1658 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1659
1660 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1661 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1662
1663 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1664
1665 * source.c (directory_command): Notify observers that "directories"
1666 parameter has changed.
1667
1668 2020-10-08 Tom Tromey <tom@tromey.com>
1669
1670 * cli/cli-cmds.c (print_disassembly): Style function name and
1671 addresses. Add _() wrappers.
1672
1673 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1674
1675 * NEWS: Mention ARC support in GDBserver.
1676
1677 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * arch/aarch32.c (aarch32_create_target_description): Release
1680 unique_ptr returned from allocate_target_description.
1681 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1682 * arch/amd64.c (amd64_create_target_description): Likewise.
1683 * arch/arc.c (arc_create_target_description): Likewise.
1684 * arch/arm.c (arm_create_target_description): Likewise.
1685 * arch/i386.c (i386_create_target_description): Likewise.
1686 * arch/riscv.c (riscv_create_target_description): Update return
1687 type. Handle allocate_target_description returning a unique_ptr.
1688 (riscv_lookup_target_description): Update to handle unique_ptr.
1689 * arch/tic6x.c (tic6x_create_target_description): Release
1690 unique_ptr returned from allocate_target_description.
1691 * features/microblaze-with-stack-protect.c: Regenerate.
1692 * features/microblaze.c: Regenerate.
1693 * features/mips-dsp-linux.c: Regenerate.
1694 * features/mips-linux.c: Regenerate.
1695 * features/mips64-dsp-linux.c: Regenerate.
1696 * features/mips64-linux.c: Regenerate.
1697 * features/nds32.c: Regenerate.
1698 * features/nios2.c: Regenerate.
1699 * features/or1k.c: Regenerate.
1700 * features/rs6000/powerpc-32.c: Regenerate.
1701 * features/rs6000/powerpc-32l.c: Regenerate.
1702 * features/rs6000/powerpc-403.c: Regenerate.
1703 * features/rs6000/powerpc-403gc.c: Regenerate.
1704 * features/rs6000/powerpc-405.c: Regenerate.
1705 * features/rs6000/powerpc-505.c: Regenerate.
1706 * features/rs6000/powerpc-601.c: Regenerate.
1707 * features/rs6000/powerpc-602.c: Regenerate.
1708 * features/rs6000/powerpc-603.c: Regenerate.
1709 * features/rs6000/powerpc-604.c: Regenerate.
1710 * features/rs6000/powerpc-64.c: Regenerate.
1711 * features/rs6000/powerpc-64l.c: Regenerate.
1712 * features/rs6000/powerpc-7400.c: Regenerate.
1713 * features/rs6000/powerpc-750.c: Regenerate.
1714 * features/rs6000/powerpc-860.c: Regenerate.
1715 * features/rs6000/powerpc-altivec32.c: Regenerate.
1716 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1717 * features/rs6000/powerpc-altivec64.c: Regenerate.
1718 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1719 * features/rs6000/powerpc-e500.c: Regenerate.
1720 * features/rs6000/powerpc-e500l.c: Regenerate.
1721 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1722 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1723 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1724 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1725 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1726 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1727 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1728 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1729 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1730 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1731 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1732 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1733 * features/rs6000/powerpc-vsx32.c: Regenerate.
1734 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1735 * features/rs6000/powerpc-vsx64.c: Regenerate.
1736 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1737 * features/rs6000/rs6000.c: Regenerate.
1738 * features/rx.c: Regenerate.
1739 * features/s390-gs-linux64.c: Regenerate.
1740 * features/s390-linux32.c: Regenerate.
1741 * features/s390-linux32v1.c: Regenerate.
1742 * features/s390-linux32v2.c: Regenerate.
1743 * features/s390-linux64.c: Regenerate.
1744 * features/s390-linux64v1.c: Regenerate.
1745 * features/s390-linux64v2.c: Regenerate.
1746 * features/s390-te-linux64.c: Regenerate.
1747 * features/s390-tevx-linux64.c: Regenerate.
1748 * features/s390-vx-linux64.c: Regenerate.
1749 * features/s390x-gs-linux64.c: Regenerate.
1750 * features/s390x-linux64.c: Regenerate.
1751 * features/s390x-linux64v1.c: Regenerate.
1752 * features/s390x-linux64v2.c: Regenerate.
1753 * features/s390x-te-linux64.c: Regenerate.
1754 * features/s390x-tevx-linux64.c: Regenerate.
1755 * features/s390x-vx-linux64.c: Regenerate.
1756 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1757 from allocate_target_description.
1758 * target-descriptions.c (allocate_target_description): Update
1759 return type.
1760 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1761 allocate_target_description.
1762
1763 2020-10-07 Tom Tromey <tromey@adacore.com>
1764
1765 * unittests/search-memory-selftests.c: New file.
1766 * Makefile.in (SELFTESTS_SRCS): Add
1767 unittests/search-memory-selftests.c.
1768
1769 2020-10-07 Tom Tromey <tromey@adacore.com>
1770
1771 PR gdb/16930:
1772 * findcmd.c (_initialize_mem_search): Mention that the range is
1773 inclusive.
1774
1775 2020-10-07 Tom Tromey <tromey@adacore.com>
1776
1777 * target.h (simple_search_memory): Don't declare.
1778 * target.c (simple_search_memory): Move to gdbsupport.
1779 (default_search_memory): Update.
1780 * remote.c (remote_target::search_memory): Update.
1781
1782 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1783
1784 * Makefile.in (COMPILE): Add CXXFLAGS.
1785 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1786 (check-headers): Add CXXFLAGS.
1787
1788 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1789
1790 * arc-linux-tdep.h: New file.
1791 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1792 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1793 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1794 arc_linux_gregset, arc_linux_v2_regset,
1795 arc_linux_iterate_over_regset_sections,
1796 arc_linux_core_read_description): Implement.
1797 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1798 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1799 (arc_gdbarch_features_create): Add.
1800 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1801
1802 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1803
1804 * arch/arc.h: Rename "arc_gdbarch_features" to
1805 "arc_arch_features".
1806 * arc-tdep.h: Likewise.
1807 * arc-tdep.c: Likewise.
1808
1809 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1810
1811 * infcmd.c (attach_command): Remove the redundant call to
1812 `clear_proceed_status`.
1813
1814 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1815
1816 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1817
1818 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1819
1820 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1821 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1822 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1823
1824 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1825
1826 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1827 (_initialize_break_catch_sig): Don't allocate array.
1828
1829 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1830
1831 * symtab.c (find_pc_line): Return unmapped addresses when the
1832 requested address is also unmapped.
1833
1834 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1835
1836 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1837 tui/tui-out.h.
1838
1839 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1840
1841 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1842 type::is_vector instead of TYPE_VECTOR.
1843
1844 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1845
1846 * auto-load.c (auto_load_objfile_script_1): Don't use
1847 debugfile_holder as temporary variable when stripping drive
1848 letter.
1849
1850 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1851
1852 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1853 Add TYPE_CODE_COMPLEX.
1854 (amd64_windows_return_value): Fix types returned via XMM0.
1855
1856 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1857
1858 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1859 AArch64/ARM maintainers.
1860
1861 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1862
1863 * NEWS: Mention set/show debug event-loop.
1864
1865 2020-10-02 Tom Tromey <tromey@adacore.com>
1866
1867 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1868 REG_EXTENDED.
1869
1870 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1871
1872 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1873 * procfs.c (procfs_inferior_created): Remove.
1874 (_initialize_procfs): Don't register procfs_inferior_created.
1875
1876 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1877
1878 * async-event.c (invoke_async_signal_handlers): Add debug
1879 print.
1880 (check_async_event_handlers): Likewise.
1881 * event-top.c (show_debug_event_loop): New function.
1882 (_initialize_event_top): Register "set debug event-loop"
1883 setting.
1884
1885 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1886
1887 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1888 * debug.h: Remove.
1889 * infrun.c: Include gdbsupport/common-debug.h.
1890 * linux-nat.c: Likewise.
1891
1892 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1893
1894 * async-event.h (create_async_signal_handler): Add name
1895 parameter.
1896 (create_async_event_handler): Likewise.
1897 * async-event.c (struct async_signal_handler) <name>: New field.
1898 (struct async_event_handler) <name>: New field.
1899 (create_async_signal_handler): Assign name.
1900 (create_async_event_handler): Assign name.
1901 * event-top.c (async_init_signals): Pass name when creating
1902 handler.
1903 * infrun.c (_initialize_infrun): Likewise.
1904 * record-btrace.c (record_btrace_push_target): Likewise.
1905 * record-full.c (record_full_open): Likewise.
1906 * remote-notif.c (remote_notif_state_allocate): Likewise.
1907 * remote.c (remote_target::open_1): Likewise.
1908 * tui/tui-win.c (tui_initialize_win): Likewise.
1909
1910 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1911
1912 * async-event.c (initialize_async_signal_handlers): Pass name to
1913 add_file_handler
1914 * event-top.c (ui_register_input_event_handler): Likewise.
1915 * linux-nat.c (linux_nat_target::async): Likewise.
1916 * run-on-main-thread.c (_initialize_run_on_main_thread):
1917 Likewise
1918 * ser-base.c (reschedule): Likewise.
1919 (ser_base_async): Likewise.
1920 * tui/tui-io.c: Likewise.
1921 * top.h (struct ui) <num>: New field.
1922 * top.c (highest_ui_num): New variable.
1923 (ui::ui): Initialize num.
1924
1925 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1926
1927 * observable.h <inferior_created>: Remove parameters. Update all
1928 listeners.
1929 * inferior.h (post_create_inferior): Remove target parameter.
1930 Update all callers.
1931
1932 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1933
1934 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1935 and DW_MACRO_undef_strx.
1936 (dwarf_decode_macros): Likewise
1937 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1938 which is the value of DW_AT_str_offsets_base.
1939 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1940 str_offsets_base.
1941
1942 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1943
1944 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1945
1946 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1947
1948 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1949 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1950
1951 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1952
1953 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1954
1955 2020-09-30 Tom de Vries <tdevries@suse.de>
1956
1957 PR symtab/26683
1958 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1959
1960 2020-09-30 Tom Tromey <tromey@adacore.com>
1961
1962 * dwarf2/read.c (handle_variant): Use constant_value.
1963
1964 2020-09-29 Tom Tromey <tom@tromey.com>
1965
1966 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1967 (read_file_scope, dwarf2_get_pc_bounds)
1968 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1969 (read_structure_type, handle_struct_member_die)
1970 (read_enumeration_type, read_array_type, read_set_type)
1971 (read_tag_pointer_type, read_tag_reference_type)
1972 (read_subroutine_type, read_base_type, read_subrange_type)
1973 (read_full_die_1, partial_die_info::read)
1974 (partial_die_info::read, by, new_symbol)
1975 (dwarf2_const_value_data, dwarf2_const_value_attr)
1976 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1977 (prepare_one_comp_unit): Update.
1978 * dwarf2/attribute.h (DW_UNSND): Remove.
1979
1980 2020-09-29 Tom Tromey <tom@tromey.com>
1981
1982 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1983 (read_subroutine_type, partial_die_info::read)
1984 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1985 (dwarf2_add_member_fn): Update.
1986 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1987 * dwarf2/attribute.c (attribute::as_boolean): New method.
1988
1989 2020-09-29 Tom Tromey <tom@tromey.com>
1990
1991 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1992 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1993 method.
1994 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1995
1996 2020-09-29 Tom Tromey <tom@tromey.com>
1997
1998 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1999 the attribute's form.
2000
2001 2020-09-29 Tom Tromey <tom@tromey.com>
2002
2003 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2004 (dwarf2_add_member_fn): Update.
2005 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2006 * dwarf2/attribute.c (attribute::defaulted): New method, from
2007 is_valid_DW_AT_defaulted.
2008
2009 2020-09-29 Tom Tromey <tom@tromey.com>
2010
2011 * dwarf2/read.c (dw2_get_file_names_reader)
2012 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2013 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2014 (dwarf2_symbol_mark_computed): Use as_unsigned.
2015 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2016 method.
2017 <form_is_section_offset>: Update comment.
2018
2019 2020-09-29 Tom Tromey <tom@tromey.com>
2020
2021 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2022 dwarf2_default_access_attribute. Look up attribute.
2023 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2024 Update.
2025
2026 2020-09-29 Tom Tromey <tom@tromey.com>
2027
2028 * dwarf2/read.c (skip_one_die): Update.
2029 (read_full_die_1): Change how reprocessing is done.
2030 (partial_die_info::read): Update.
2031 (read_attribute_value): Remove need_reprocess parameter.
2032 (read_attribute): Likewise.
2033 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2034 New method.
2035
2036 2020-09-29 Tom Tromey <tom@tromey.com>
2037
2038 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2039 (dwarf2_const_value_attr, dump_die_shallow)
2040 (dwarf2_fetch_constant_bytes): Update.
2041 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2042 comment.
2043 <set_address>: New method.
2044 (DW_ADDR): Remove.
2045 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2046 (attribute::as_string, attribute::as_address): Add assert.
2047
2048 2020-09-29 Tom Tromey <tom@tromey.com>
2049
2050 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2051 (read_attribute_reprocess, read_attribute_value): Update.
2052 (read_attribute): Clear requires_reprocessing.
2053 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2054 form_requires_reprocessing>: New methods.
2055 <string_init>: Clear requires_reprocessing.
2056 <set_unsigned_reprocess>: New method.
2057 <name>: Shrink by one bit.
2058 <requires_reprocessing>: New member.
2059 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2060 method.
2061
2062 2020-09-29 Tom Tromey <tom@tromey.com>
2063
2064 * dwarf2/read.c (read_attribute_value): Update.
2065 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2066 set_unsigned>: New methods.
2067 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2068
2069 2020-09-29 Tom Tromey <tom@tromey.com>
2070
2071 * dwarf2/read.c (get_alignment, read_array_order)
2072 (read_attribute_value, dwarf2_const_value_attr)
2073 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2074 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2075 New methods.
2076 (DW_SND): Remove.
2077
2078 2020-09-29 Tom Tromey <tom@tromey.com>
2079
2080 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2081 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2082 Update.
2083 * dwarf2/attribute.h (struct attribute) <as_signature,
2084 set_signature>: New methods.
2085 (DW_SIGNATURE): Remove.
2086
2087 2020-09-29 Tom Tromey <tom@tromey.com>
2088
2089 * dwarf2/read.c (read_call_site_scope)
2090 (handle_data_member_location, dwarf2_add_member_fn)
2091 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2092 (partial_die_info::read, read_attribute_value)
2093 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2094 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2095 (dwarf2_symbol_mark_computed): Update.
2096 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2097 methods.
2098 (DW_BLOCK): Remove.
2099 * dwarf2/attribute.c (attribute::form_is_block): Add
2100 DW_FORM_data16.
2101
2102 2020-09-29 Tom Tromey <tom@tromey.com>
2103
2104 * dwarf2/read.c (read_cutu_die_from_dwo)
2105 (read_attribute_reprocess, read_attribute_value, read_attribute)
2106 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2107 (dwarf2_fetch_constant_bytes): Update.
2108 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2109 <set_string_noncanonical, set_string_canonical>: New methods.
2110 <string_is_canonical>: Update comment.
2111 <canonical_string_p>: Add assert.
2112 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2113 * dwarf2/attribute.c (attribute::form_is_string): New method.
2114 (attribute::string): Use it.
2115
2116 2020-09-29 Tom Tromey <tom@tromey.com>
2117
2118 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2119 (dump_die_shallow): Use canonical_string_p.
2120 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2121 method.
2122
2123 2020-09-29 Tom Tromey <tom@tromey.com>
2124
2125 * dwarf2/read.c (partial_die_info::read)
2126 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2127 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2128 attribute::as_string.
2129
2130 2020-09-29 Tom Tromey <tom@tromey.com>
2131
2132 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2133 DW_ADDR.
2134 (attribute::string): Don't use DW_STRING.
2135 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2136 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2137
2138 2020-09-29 Tom Tromey <tom@tromey.com>
2139
2140 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2141 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2142 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2143 * dwarf2/attribute.h (struct attribute): Rename methods.
2144 * dwarf2/attribute.c (attribute::as_address): Rename from
2145 value_as_address.
2146 (attribute::as_string): Rename from value_as_string.
2147
2148 2020-09-29 Tom Tromey <tom@tromey.com>
2149
2150 * dwarf2/read.c (partial_die_info::read) <case
2151 DW_AT_linkage_name>: Use value_as_string.
2152 (dwarf2_string_attr): Use value_as_string.
2153 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2154 method.
2155 * dwarf2/attribute.c (attribute::value_as_string): New method.
2156
2157 2020-09-29 Pedro Alves <pedro@palves.net>
2158
2159 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2160 defined before using '#pragma GCC diagnostic' instead of checking
2161 __clang__.
2162
2163 2020-09-28 Tom Tromey <tom@tromey.com>
2164
2165 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2166 (handle_signal_stop): Update.
2167 * procfs.c (procfs_target::insert_watchpoint): Update.
2168 * target.h (target_have_steppable_watchpoint): Now a function.
2169
2170 2020-09-28 Tom Tromey <tom@tromey.com>
2171
2172 * infrun.c (set_schedlock_func): Update.
2173 * target.h (target_can_lock_scheduler): Now a function.
2174
2175 2020-09-28 Tom Tromey <tom@tromey.com>
2176
2177 * inferior.h (class inferior) <has_execution>: Update.
2178 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2179 * valops.c (find_function_in_inferior)
2180 (value_allocate_space_in_inferior): Update.
2181 * top.c (kill_or_detach): Update.
2182 * target.c (target_preopen, set_target_permissions): Update.
2183 (target_has_execution_current): Remove.
2184 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2185 Update.
2186 * solib.c (update_solib_list, reload_shared_libraries): Update.
2187 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2188 * solib-dsbt.c (enable_break): Update.
2189 * score-tdep.c (score7_fetch_inst): Update.
2190 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2191 Update.
2192 * remote.c (remote_target::start_remote)
2193 (remote_target::remote_check_symbols, remote_target::open_1)
2194 (remote_target::remote_detach_1, remote_target::verify_memory)
2195 (remote_target::xfer_partial, remote_target::read_description)
2196 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2197 * record-full.c (record_full_open_1): Update.
2198 * record-btrace.c (record_btrace_target_open): Update.
2199 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2200 (value_nsstring): Update.
2201 * linux-thread-db.c (add_thread_db_info)
2202 (thread_db_find_new_threads_silently, check_thread_db_callback)
2203 (try_thread_db_load_1, record_thread): Update.
2204 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2205 Update.
2206 * linux-fork.c (checkpoint_command): Update.
2207 * infrun.c (set_non_stop, set_observer_mode)
2208 (check_multi_target_resumption, for_each_just_stopped_thread)
2209 (maybe_remove_breakpoints, normal_stop)
2210 (class infcall_suspend_state): Update.
2211 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2212 (info_program_command, attach_command): Update.
2213 * infcall.c (call_function_by_hand_dummy): Update.
2214 * inf-loop.c (inferior_event_handler): Update.
2215 * gcore.c (gcore_command, derive_heap_segment): Update.
2216 * exec.c (exec_file_command): Update.
2217 * eval.c (evaluate_subexp): Update.
2218 * compile/compile.c (compile_to_object): Update.
2219 * cli/cli-dump.c (restore_command): Update.
2220 * breakpoint.c (update_watchpoint)
2221 (update_inserted_breakpoint_locations)
2222 (insert_breakpoint_locations, get_bpstat_thread): Update.
2223 * target.h (target_has_execution): Remove macro.
2224 (target_has_execution_current): Don't declare.
2225 (target_has_execution): Rename from target_has_execution_1. Add
2226 argument default.
2227
2228 2020-09-28 Tom Tromey <tom@tromey.com>
2229
2230 * mi/mi-main.c (exec_reverse_continue)
2231 (mi_cmd_list_target_features): Update.
2232 * infrun.c (set_exec_direction_func): Update.
2233 * target.c (default_execution_direction): Update.
2234 * reverse.c (exec_reverse_once): Update.
2235 * target.h (target_can_execute_reverse): Now a function.
2236
2237 2020-09-28 Tom Tromey <tom@tromey.com>
2238
2239 * tui/tui-regs.c (tui_get_register)
2240 (tui_data_window::show_registers): Update.
2241 * thread.c (scoped_restore_current_thread::restore)
2242 (scoped_restore_current_thread::scoped_restore_current_thread):
2243 Update.
2244 * regcache-dump.c (regcache_print): Update.
2245 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2246 Update.
2247 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2248 * mep-tdep.c (current_me_module, current_options): Update.
2249 * linux-thread-db.c (thread_db_load): Update.
2250 * infcmd.c (registers_info, info_vector_command)
2251 (info_float_command): Update.
2252 * ia64-tdep.c (ia64_frame_prev_register)
2253 (ia64_sigtramp_frame_prev_register): Update.
2254 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2255 * gcore.c (derive_stack_segment): Update.
2256 * frame.c (get_current_frame, has_stack_frames): Update.
2257 * findvar.c (language_defn::read_var_value): Update.
2258 * arm-tdep.c (arm_pc_is_thumb): Update.
2259 * target.c (target_has_registers): Rename from
2260 target_has_registers_1.
2261 * target.h (target_has_registers): Remove macro.
2262 (target_has_registers): Rename from target_has_registers_1.
2263
2264 2020-09-28 Tom Tromey <tom@tromey.com>
2265
2266 * windows-tdep.c (tlb_make_value): Update.
2267 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2268 * thread.c (scoped_restore_current_thread::restore)
2269 (scoped_restore_current_thread::scoped_restore_current_thread)
2270 (thread_command): Update.
2271 * stack.c (backtrace_command_1, frame_apply_level_command)
2272 (frame_apply_all_command, frame_apply_command): Update.
2273 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2274 Update.
2275 * gcore.c (derive_stack_segment): Update.
2276 * frame.c (get_current_frame, has_stack_frames): Update.
2277 * auxv.c (info_auxv_command): Update.
2278 * ada-tasks.c (ada_build_task_list): Update.
2279 * target.c (target_has_stack): Rename from target_has_stack_1.
2280 * target.h (target_has_stack): Remove macro.
2281 (target_has_stack): Rename from target_has_stack_1.
2282
2283 2020-09-28 Tom Tromey <tom@tromey.com>
2284
2285 * target.c (target_has_memory): Rename from target_has_memory_1.
2286 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2287 * thread.c (scoped_restore_current_thread::restore)
2288 (scoped_restore_current_thread::scoped_restore_current_thread):
2289 Update.
2290 * frame.c (get_current_frame, has_stack_frames): Update.
2291 * target.h (target_has_memory): Remove macro.
2292 (target_has_memory): Rename from target_has_memory_1.
2293
2294 2020-09-28 Tom Tromey <tom@tromey.com>
2295
2296 * target.c (target_has_all_memory_1): Remove.
2297 * target.h (target_has_all_memory): Remove define.
2298 (target_has_all_memory_1): Don't declare.
2299
2300 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2301
2302 * ser-base.c: Adjust comments formatting.
2303
2304 2020-09-27 Tom Tromey <tom@tromey.com>
2305
2306 PR tui/25342:
2307 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2308
2309 2020-09-27 Tom Tromey <tom@tromey.com>
2310
2311 PR tui/25342:
2312 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2313
2314 2020-09-27 Tom Tromey <tom@tromey.com>
2315
2316 * unittests/tui-selftests.c: Update.
2317 * tui/tui-winsource.h (struct tui_source_window_base)
2318 <extra_margin, show_line_number, refresh_pad>: New methods.
2319 <m_max_length, m_pad>: New members.
2320 (tui_copy_source_line): Update.
2321 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2322 first_col, line_width, ndigits parameters. Add length.
2323 (tui_source_window_base::show_source_line): Write to pad. Line
2324 number now 0-based.
2325 (tui_source_window_base::refresh_pad): New method.
2326 (tui_source_window_base::show_source_content): Write to pad. Call
2327 refresh_pad.
2328 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2329 not refill.
2330 (tui_source_window_base::update_exec_info): Call
2331 show_line_number.
2332 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2333 method.
2334 <m_digits>: New member.
2335 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2336 and m_max_length.
2337 (tui_source_window::show_line_number): New method.
2338 * tui/tui-io.h (tui_puts): Fix comment.
2339 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2340 m_max_length.
2341
2342 2020-09-27 Tom Tromey <tom@tromey.com>
2343
2344 * tui/tui-winsource.c
2345 (tui_source_window_base::set_is_exec_point_at): Don't call
2346 show_source_line.
2347
2348 2020-09-27 Tom Tromey <tom@tromey.com>
2349
2350 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2351 method.
2352 <erase>: Update.
2353 <cursor_x, cursor_y>: Remove.
2354 <m_inner_window>: New member.
2355 (tui_py_window::rerender): Create inner window.
2356 (tui_py_window::output): Write to inner window.
2357
2358 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2359
2360 PR python/26586
2361 * cli/cli-script.c (execute_control_commands): don't set
2362 instream to nullptr here as this breaks the from_tty argument
2363 to gdb.execute in Python.
2364 (execute_user_command): set instream to nullptr here instead.
2365
2366 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2367
2368 * infrun.h (infrun_debug_printf): Fix formatting.
2369 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2370
2371 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2372
2373 * compile/compile-object-load.h (struct munmap_list): Add
2374 explicitly-defined move constructor.
2375
2376 2020-09-24 Tom Tromey <tromey@adacore.com>
2377
2378 PR tui/26638:
2379 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2380 method.
2381 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2382 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2383 (tui_prev_win): Rewrite.
2384
2385 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2386
2387 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2388 in WOW64 processes as SIGINT.
2389 * nat/windows-nat.h: Make wow64_process a shared variable.
2390 * windows-nat.c: Remove static wow64_process variable.
2391
2392 2020-09-23 Tom Tromey <tom@tromey.com>
2393
2394 PR symtab/25470:
2395 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2396 offset and bit size.
2397 * printcmd.c (print_scalar_formatted): Handle zero-length
2398 integer.
2399 (print_scalar_formatted): Use bit_size_differs_p.
2400 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2401 constant.
2402 (union type_specific): <int_stuff>: New member.
2403 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2404 methods.
2405 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2406 TYPE_SPECIFIC_FIELD.
2407 (recursive_dump_type, copy_type_recursive): Update.
2408 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2409 DW_AT_data_bit_offset.
2410
2411 2020-09-23 Tom Tromey <tom@tromey.com>
2412
2413 * utils.h (class gdb_argv): Add move operators.
2414 <append>: New methods.
2415 * compile/compile.c (build_argc_argv): Remove.
2416 (compile_args_argc): Remove.
2417 (compile_args_argv): Change type.
2418 (set_compile_args): Simplify.
2419 (append_args): Remove.
2420 (filter_args): Remove argcp parameter.
2421 (get_args): Return gdb_argv. Simplify.
2422 (compile_to_object): Update.
2423
2424 2020-09-23 Tom Tromey <tom@tromey.com>
2425
2426 * compile/compile-object-run.c (do_module_cleanup)
2427 <~do_module_cleanup> :Remove.
2428 (do_module_cleanup): Update.
2429 * compile/compile-object-load.h (struct munmap_list): Add move
2430 assignment operator.
2431 <source_file>: Now a std::string.
2432 <munmap_list>: Rename. No longer a pointer.
2433 * compile/compile-object-load.c (struct setup_sections_data): Add
2434 constructor.
2435 <setup_one_section>: Declare.
2436 <munmap_list>: Move earlier.
2437 <m_bfd>: New member.
2438 <m_last_size, m_last_section_first, m_last_prot,
2439 m_last_max_alignment>: Rename, add initializers where needed.
2440 (setup_sections_data::setup_one_section): Rename from
2441 setup_sections. Update.
2442 (compile_object_load): Update. Don't use bfd_map_over_sections.
2443
2444 2020-09-23 Tom Tromey <tom@tromey.com>
2445
2446 * compile/compile-object-run.c (struct do_module_cleanup): Add
2447 parameters to constructor. Update destructor.
2448 <source_file, scope, scope_data, out_value_type, out_value_addr,
2449 munmap_list_head, objfile_name_string>: Remove.
2450 <module>: New member.
2451 (do_module_cleanup): Update.
2452 (compile_object_run): Update.
2453
2454 2020-09-23 Tom Tromey <tom@tromey.com>
2455
2456 * compile/compile.c (eval_compile_command): Update.
2457 * compile/compile-object-run.h (compile_object_run): Take a
2458 compile_module_up.
2459 * compile/compile-object-run.c (compile_object_run): Take a
2460 compile_module_up.
2461 * compile/compile-object-load.h (struct compile_module): Add
2462 constructor, destructor.
2463 (compile_module_up): New typedef.
2464 (compile_object_load): Return compile_object_up.
2465 * compile/compile-object-load.c (compile_object_load): Return
2466 compile_module_up.
2467
2468 2020-09-23 Tom Tromey <tom@tromey.com>
2469
2470 * compile/compile-object-run.c (struct do_module_cleanup): Add
2471 constructor, destructor.
2472 <objfile_name_string>: Don't use struct hack.
2473 (do_module_cleanup): Use delete.
2474 (compile_object_run): Use new.
2475
2476 2020-09-23 Tom Tromey <tom@tromey.com>
2477
2478 * compile/compile-cplus-types.c
2479 (compile_cplus_convert_struct_or_union): Use std::vector.
2480 (compile_cplus_convert_func): Likewise.
2481 * compile/compile-c-types.c (convert_func): Use std::vector.
2482
2483 2020-09-21 Tom Tromey <tromey@adacore.com>
2484
2485 * sparc-tdep.c (sparc32_skip_prologue): Use
2486 skip_prologue_using_sal.
2487
2488 2020-09-19 Tom Tromey <tom@tromey.com>
2489
2490 * symfile.c (add_section_size_callback): Remove.
2491 (load_one_section): Rename from load_section_callback. Change
2492 parameters.
2493 (generic_load): Use foreach.
2494
2495 2020-09-19 Tom Tromey <tom@tromey.com>
2496
2497 * exec.c (add_to_section_table): Remove.
2498 (build_section_table): Use foreach.
2499
2500 2020-09-19 Tom Tromey <tom@tromey.com>
2501
2502 * elfread.c (elf_locate_sections): Change parameters.
2503 (elf_symfile_read): Use foreach.
2504
2505 2020-09-19 Tom Tromey <tom@tromey.com>
2506
2507 * cli/cli-dump.c (struct callback_data): Remove.
2508 (restore_one_section): Rename from restore_section_callback.
2509 Change parameters.
2510 (restore_binary_file): Change parameters.
2511 (restore_command): Use foreach.
2512
2513 2020-09-19 Tom Tromey <tom@tromey.com>
2514
2515 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2516 (gcore_copy_callback): Likewise.
2517 (gcore_memory_sections): Use foreach.
2518
2519 2020-09-19 Tom Tromey <tom@tromey.com>
2520
2521 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2522 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2523 parameters.
2524 (generic_elf_osabi_sniffer): Use foreach.
2525 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2526 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2527
2528 2020-09-19 Tom Tromey <tom@tromey.com>
2529
2530 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2531 (dwarf2_get_dwz_file): Use foreach.
2532 (dwarf2_locate_dwo_sections): Change parameters.
2533 (open_and_init_dwo_file): Use foreach.
2534 (dwarf2_locate_common_dwp_sections): Change parameters.
2535 (open_and_init_dwp_file): Use foreach.
2536
2537 2020-09-19 Tom Tromey <tom@tromey.com>
2538
2539 * symfile.h: (find_lowest_section): Don't declare.
2540 * symfile.c (find_lowest_section): Now static. Change
2541 parameters.
2542 (struct place_section_arg): Remove.
2543 (place_section): Change parameters.
2544 (addr_info_make_relative): Use foreach.
2545 (symfile_dummy_outputs): Remove.
2546 (default_symfile_relocate): Use foreach.
2547
2548 2020-09-19 Tom Tromey <tom@tromey.com>
2549
2550 * objfiles.c (add_to_objfile_sections): Rename from
2551 add_to_objfile_sections_full.
2552 (add_to_objfile_sections): Remove.
2553 (build_objfile_section_table): Use foreach.
2554
2555 2020-09-19 Tom Tromey <tom@tromey.com>
2556
2557 * stap-probe.c (get_stap_base_address_1): Remove.
2558 (get_stap_base_address): Use foreach.
2559
2560 2020-09-19 Tom Tromey <tom@tromey.com>
2561
2562 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2563 parameters.
2564 (gdb_bfd_close_or_warn): Use foreach.
2565
2566 2020-09-19 Tom Tromey <tom@tromey.com>
2567
2568 * corelow.c (add_to_thread_list): Change parameters.
2569 (core_target_open): Use foreach.
2570
2571 2020-09-19 Tom Tromey <tom@tromey.com>
2572
2573 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2574 existing function.
2575
2576 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2577
2578 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2579 for arrays.
2580
2581 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * eval.c: Remove 'f-lang.h' include.
2584 (value_f90_subarray): Moved to f-lang.c.
2585 (eval_call): Renamed to...
2586 (evaluate_subexp_do_call): ...this, is no longer static, header
2587 comment moved into header file.
2588 (evaluate_funcall): Update call to eval_call.
2589 (skip_undetermined_arglist): Moved to f-lang.c.
2590 (fortran_value_subarray): Likewise.
2591 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2592 moved to evaluate_subexp_f.
2593 (calc_f77_array_dims): Moved to f-lang.c
2594 * expprint.c (print_subexp_funcall): New function.
2595 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2596 moved to print_subexp_f, OP_FUNCALL uses new function.
2597 (dump_subexp_body_funcall): New function.
2598 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2599 moved to dump_subexp_f, OP_FUNCALL uses new function.
2600 * expression.h (evaluate_subexp_do_call): Declare.
2601 * f-lang.c (value_f90_subarray): Moved from eval.c.
2602 (skip_undetermined_arglist): Likewise.
2603 (calc_f77_array_dims): Likewise.
2604 (fortran_value_subarray): Likewise.
2605 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2606 (operator_length_f): Likewise.
2607 (print_subexp_f): Likewise.
2608 (dump_subexp_body_f): Likewise.
2609 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2610 declaration of this operation to here.
2611 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2612 support moved to operator_length_f.
2613 * parser-defs.h (dump_subexp_body_funcall): Declare.
2614 (print_subexp_funcall): Declare.
2615 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2616 fortran-operator.def.
2617
2618 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * eval.c (fortran_value_subarray): New function, content is taken
2621 from...
2622 (evaluate_subexp_standard): ...here, in two places. Now arrays
2623 and strings both call the new function.
2624 (calc_f77_array_dims): Add header comment, handle strings.
2625
2626 2020-09-18 Victor Collod <vcollod@nvidia.com>
2627
2628 PR gdb/26635
2629 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2630 (i386_analyze_prologue): Call i386_skip_endbr.
2631
2632 2020-09-18 Tom Tromey <tromey@adacore.com>
2633
2634 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2635 (windows_nat_target::wait): Update.
2636 * target/wait.h (enum target_wait_flag): New. Use
2637 DEF_ENUM_FLAGS_TYPE.
2638 * target/target.h (target_wait): Change type of options.
2639 * target.h (target_options_to_string, default_target_wait):
2640 Update.
2641 (struct target_ops) <wait>: Change type of options.
2642 * target.c (target_wait, default_target_wait, do_option): Change
2643 type of "options".
2644 (target_options_to_string): Likewise.
2645 * target-delegates.c: Rebuild.
2646 * target-debug.h (target_debug_print_target_wait_flags): Rename
2647 from target_debug_print_options.
2648 * sol-thread.c (class sol_thread_target) <wait>: Update.
2649 (sol_thread_target::wait): Update.
2650 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2651 (rs6000_nat_target::wait): Update.
2652 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2653 Update.
2654 (remote_target::wait_ns, remote_target::wait_as): Change type of
2655 "options".
2656 (remote_target::wait): Update.
2657 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2658 (gdbsim_target::wait): Update.
2659 * record-full.c (class record_full_base_target) <wait>: Update.
2660 (record_full_wait_1): Change type of "options".
2661 (record_full_base_target::wait): Update.
2662 * record-btrace.c (class record_btrace_target) <wait>: Update.
2663 (record_btrace_target::wait): Update.
2664 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2665 Update.
2666 (ravenscar_thread_target::wait): Update.
2667 * procfs.c (class procfs_target) <wait>: Update.
2668 (procfs_target::wait): Update.
2669 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2670 * obsd-nat.c (obsd_nat_target::wait): Update.
2671 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2672 (nto_procfs_target::wait): Update.
2673 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2674 * nbsd-nat.c (nbsd_wait): Change type of "options".
2675 (nbsd_nat_target::wait): Update.
2676 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2677 (thread_db_target::wait): Update.
2678 * linux-nat.h (class linux_nat_target) <wait>: Update.
2679 * linux-nat.c (linux_nat_target::wait): Update.
2680 (linux_nat_wait_1): Update.
2681 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2682 "options".
2683 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2684 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2685 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2686 (go32_nat_target::wait): Update.
2687 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2688 * gnu-nat.c (gnu_nat_target::wait): Update.
2689 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2690 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2691 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2692 * darwin-nat.c (darwin_nat_target::wait): Update.
2693 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2694 (bsd_uthread_target::wait): Update.
2695 * aix-thread.c (class aix_thread_target) <wait>: Update.
2696 (aix_thread_target::wait): Update.
2697
2698 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2699
2700 * compile/compile-object-run.c (create_copied_type_recursive): New
2701 function.
2702 (compile_object_run): Use new function.
2703
2704 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2705
2706 * NEWS: Mention x86_64 Cygwin core file support.
2707
2708 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2709
2710 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2711 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2712
2713 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2714
2715 * windows-tdep.h: Add prototypes.
2716 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2717 (i386_windows_core_pid_to_str): Move and rename ...
2718 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2719 (windows_core_pid_to_str): ... and here.
2720 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2721
2722 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2723 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2724 (amd64_windows_init_abi_common): ... and register.
2725
2726 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2727
2728 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2729 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2730
2731 2020-09-18 Pedro Alves <pedro@palves.net>
2732
2733 PR gdb/26631
2734 * thread.c (thread_find_command): Switch inferior before calling
2735 target methods.
2736
2737 2020-09-17 Tom Tromey <tromey@adacore.com>
2738
2739 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2740 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2741 (tdesc_arch_data_up): New typedef.
2742 (tdesc_use_registers, tdesc_data_alloc): Update.
2743 (tdesc_data_cleanup): Don't declare.
2744 * target-descriptions.c (tdesc_data_alloc): Return a
2745 tdesc_arch_data_up.
2746 (tdesc_arch_data_deleter::operator()): Rename from
2747 tdesc_data_cleanup. Change argument type.
2748 (tdesc_use_registers): Change early_data to an rvalue reference.
2749 (tdesc_use_registers): Don't use delete.
2750 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2751 * s390-tdep.c (s390_gdbarch_init): Update.
2752 * rx-tdep.c (rx_gdbarch_init): Update.
2753 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2754 * riscv-tdep.c (riscv_gdbarch_init): Update.
2755 * or1k-tdep.c (or1k_gdbarch_init): Update.
2756 * nios2-tdep.c (nios2_gdbarch_init): Update.
2757 * nds32-tdep.c (nds32_gdbarch_init): Update.
2758 * mips-tdep.c (mips_gdbarch_init): Update.
2759 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2760 * m68k-tdep.c (m68k_gdbarch_init): Update.
2761 * i386-tdep.c (i386_gdbarch_init): Update.
2762 * arm-tdep.c (arm_gdbarch_init): Update.
2763 * arc-tdep.c (arc_tdesc_init): Update.
2764 (arc_gdbarch_init): Update.
2765 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2766
2767 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2768
2769 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2770 for WOW64 processes.
2771
2772 2020-09-17 Tom Tromey <tom@tromey.com>
2773
2774 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2775
2776 2020-09-17 Tom Tromey <tom@tromey.com>
2777
2778 * value.c (preserve_values): Update.
2779 * python/py-type.c (save_objfile_types): Update.
2780 * guile/scm-type.c (save_objfile_types): Update.
2781 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2782 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2783 * compile/compile-object-run.c (compile_object_run): Update.
2784
2785 2020-09-17 Tom Tromey <tom@tromey.com>
2786
2787 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2788 Remove.
2789 <m_table>: Now htab_up.
2790 * typeprint.c (typedef_hash_table::recursively_update)
2791 (typedef_hash_table::add_template_parameters)
2792 (typedef_hash_table::typedef_hash_table): Update.
2793 (typedef_hash_table::~typedef_hash_table): Remove.
2794 (typedef_hash_table::typedef_hash_table)
2795 (typedef_hash_table::find_global_typedef)
2796 (typedef_hash_table::find_typedef): Update.
2797
2798 2020-09-17 Tom Tromey <tom@tromey.com>
2799
2800 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2801
2802 2020-09-17 Tom Tromey <tom@tromey.com>
2803
2804 * linespec.c (class decode_compound_collector)
2805 <~decode_compound_collector>: Remove.
2806 <m_unique_syms>: Now htab_up.
2807 (decode_compound_collector::operator ()): Update.
2808 (class symtab_collector) <~symtab_collector>: Remove.
2809 <m_symtab_table>: Now htab_up.
2810 (symtab_collector::operator ()): Update.
2811
2812 2020-09-17 Tom Tromey <tom@tromey.com>
2813
2814 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2815 (filename_seen_cache::clear): Update.
2816 (~filename_seen_cache): Remove.
2817 (filename_seen_cache::seen): Update.
2818 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2819 htab_up.
2820 <~filename_seen_cache>: Remove.
2821 <traverse>: Update.
2822
2823 2020-09-17 Tom Tromey <tom@tromey.com>
2824
2825 * completer.c (completion_tracker::discard_completions)
2826 (completion_tracker::~completion_tracker)
2827 (completion_tracker::maybe_add_completion)
2828 (completion_tracker::remove_completion)
2829 (completion_tracker::recompute_lowest_common_denominator)
2830 (completion_tracker::build_completion_result): Update.
2831 * completer.h (class completion_tracker) <have_completions>:
2832 Update.
2833 <m_entries_hash>: Now htab_up.
2834
2835 2020-09-17 Tom Tromey <tom@tromey.com>
2836
2837 * breakpoint.c (ambiguous_names_p): Use htab_up.
2838
2839 2020-09-17 Tom Tromey <tom@tromey.com>
2840
2841 * auto-load.c (struct auto_load_pspace_info)
2842 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2843 <loaded_script_files, loaded_script_texts>: Change type to
2844 htab_up.
2845 (~auto_load_pspace_info) Remove.
2846 (init_loaded_scripts_info, maybe_add_script_file)
2847 (maybe_add_script_text, auto_load_info_scripts): Update.
2848
2849 2020-09-17 Tom Tromey <tromey@adacore.com>
2850
2851 * c-exp.y (name_obstack): Now static.
2852
2853 2020-09-17 Chungyi Chi <demonic@csie.io>
2854
2855 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2856
2857 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2858
2859 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2860 (add_solib_catchpoint): Likewise.
2861 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2862 to bool.
2863 (add_solib_catchpoint): Change int parameter/variable to bool.
2864 (catch_load_or_unload): Likewise.
2865 (init_catchpoint): Likewise.
2866 (create_fork_vfork_event_catchpoint): Likewise.
2867 (catch_fork_command_1): Likewise.
2868 (catch_exec_command_1): Likewise.
2869
2870 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2871
2872 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2873 Change instance_flags to m_instance_flags.
2874
2875 2020-09-16 Tom Tromey <tromey@adacore.com>
2876
2877 PR gdb/26598:
2878 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2879
2880 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2881
2882 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2883 PL_FLAG_EXEC.
2884 (fbsd_nat_target::insert_exec_catchpoint)
2885 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2886 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2887 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2888
2889 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2890
2891 * configure.ac: Remove check for kinfo_getvmmap().
2892 * configure, config.in: Regenerate.
2893 * fbsd-nat.c (fbsd_read_mapping): Remove
2894 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2895 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2896 kinfo_get_vmmap() are always present.
2897
2898 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2899
2900 * fbsd-nat.c: Always include support for
2901 TARGET_OBJECT_SIGNAL_INFO.
2902
2903 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2904
2905 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2906 sysctl and remove procfs fallback.
2907
2908 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2909
2910 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2911 * fbsd-nat.h: Likewise.
2912
2913 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2914
2915 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2916 argument.
2917
2918 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2919
2920 * ada-lang.c (ada_language_data): Delete.
2921 (ada_language): Remove references to ada_language_data.
2922 * c-lang.c (c_language_data): Delete.
2923 (c_language): Remove references to c_language_data.
2924 (cplus_language_data): Delete.
2925 (cplus_language): Remove references to cplus_language_data.
2926 (asm_language_data): Delete.
2927 (asm_language): Remove references to asm_language_data.
2928 (minimal_language_data): Delete.
2929 (minimal_language): Remove references to minimal_language_data.
2930 * d-lang.c (d_language_data): Delete.
2931 (d_language): Remove references to d_language_data.
2932 * f-lang.c (f_language_data): Delete.
2933 (f_language): Remove references to f_language_data.
2934 * go-lang.c (go_language_data): Delete.
2935 (go_language): Remove references to go_language_data.
2936 * language.c (unknown_language_data): Delete.
2937 (unknown_language): Remove references to unknown_language_data.
2938 (auto_language_data): Delete.
2939 (auto_language): Remove references to auto_language_data.
2940 * language.h (language_data): Delete struct.
2941 (language_defn): No longer inherit from language_data.
2942 * m2-lang.c (m2_language_data): Delete.
2943 (m2_language): Remove references to m2_language_data.
2944 * objc-lang.c (objc_language_data): Delete.
2945 (objc_language): Remove references to objc_language_data.
2946 * opencl-lang.c (opencl_language_data): Delete.
2947 (opencl_language): Remove references to opencl_language_data.
2948 * p-lang.c (pascal_language_data): Delete.
2949 (pascal_language): Remove references to pascal_language_data.
2950 * rust-lang.c (rust_language_data): Delete.
2951 (rust_language): Remove references to rust_language_data.
2952
2953 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2954
2955 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2956 initializer.
2957 (ada_language::opcode_print_table): New member function.
2958 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2959 (c_language::opcode_print_table): New member function.
2960 (cplus_language_data): Remove la_op_print_tab initializer.
2961 (cplus_language::opcode_print_table): New member function.
2962 (asm_language_data): Remove la_op_print_tab initializer.
2963 (asm_language::opcode_print_table): New member function.
2964 (minimal_language_data): Remove la_op_print_tab initializer.
2965 (minimal_language::opcode_print_table): New member function.
2966 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2967 (d_language::opcode_print_table): New member function.
2968 * expprint.c (print_subexp_standard): Update call to
2969 opcode_print_table.
2970 (op_string): Likewise.
2971 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2972 (f_language::opcode_print_table): New member function.
2973 * go-lang.c (go_language_data): Remove la_op_print_tab
2974 initializer.
2975 (go_language::opcode_print_table): New member function.
2976 * language.c (unknown_language_data): Remove la_op_print_tab
2977 initializer.
2978 (unknown_language::opcode_print_table): New member function.
2979 (auto_language_data): Remove la_op_print_tab initializer.
2980 (auto_language::opcode_print_table): New member function.
2981 * language.h (language_data): Remove la_op_print_tab field.
2982 (language_defn::opcode_print_table): Declare new member function.
2983 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2984 initializer.
2985 (m2_language::opcode_print_table): New member function.
2986 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2987 initializer.
2988 (objc_language::opcode_print_table): New member function.
2989 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2990 initializer.
2991 (opencl_language::opcode_print_table): New member function.
2992 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2993 initializer.
2994 (pascal_language::opcode_print_table): New member function.
2995 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2996 initializer.
2997 (rust_language::opcode_print_table): New member function.
2998
2999 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3002 (ada_language::expression_ops): New member function.
3003 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3004 (c_language::expression_ops): New member function.
3005 (cplus_language_data): Remove la_exp_desc initializer.
3006 (cplus_language::expression_ops): New member function.
3007 (asm_language_data): Remove la_exp_desc initializer.
3008 (asm_language::expression_ops): New member function.
3009 (minimal_language_data): Remove la_exp_desc initializer.
3010 (minimal_language::expression_ops): New member function.
3011 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3012 (d_language::expression_ops): New member function.
3013 * eval.c (evaluate_subexp): Update call to expression_ops.
3014 * expprint.c (print_subexp): Likewise.
3015 (op_name): Likewise.
3016 (dump_subexp_body): Likewise.
3017 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3018 (f_language::expression_ops): New member function.
3019 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3020 (go_language::expression_ops): New member function.
3021 * language.c (language_defn::expression_ops): New function.
3022 (unknown_language_data): Remove la_exp_desc initializer.
3023 (auto_language_data): Likewise.
3024 * language.h (language_data): Remove la_exp_desc field.
3025 (language_defn::expression_ops): Declare new member function.
3026 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3027 (m2_language::expression_ops): New member function.
3028 * objc-lang.c (objc_language_data): Remove la_exp_desc
3029 initializer.
3030 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3031 initializer.
3032 (opencl_language::expression_ops): New member function.
3033 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3034 * parse.c (operator_length): Update call to expression_ops.
3035 (exp_iterate): Likewise.
3036 * rust-lang.c (rust_language_data): Remove la_exp_desc
3037 initializer.
3038 (ruse_language::expression_ops): New member function.
3039
3040 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3041
3042 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3043 initializer.
3044 (ada_language::varobj_ops): New member function.
3045 * c-lang.c (c_language_data): Remove la_varobj_ops
3046 initializer.
3047 (cplus_language_data): Likewise.
3048 (cplus_language::varobj_ops): New member function.
3049 (asm_language_data): Remove la_varobj_ops initializer.
3050 (minimal_language_data): Likewise.
3051 * d-lang.c (d_language_data): Likewise.
3052 * f-lang.c (f_language_data): Likewise.
3053 * go-lang.c (go_language_data): Likewise.
3054 * language.c (language_defn::varobj_ops): New function.
3055 (unknown_language_data): Remove la_varobj_ops
3056 initializer.
3057 (auto_language_data): Likewise.
3058 * language.h (language_data): Remove la_varobj_ops field.
3059 (language_defn::varobj_ops): Declare new member function.
3060 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3061 * objc-lang.c (objc_language_data): Likewise.
3062 * opencl-lang.c (opencl_language_data): Likewise.
3063 * p-lang.c (pascal_language_data): Likewise.
3064 * rust-lang.c (rust_language_data): Likewise.
3065 * varobj.c (varobj_create): Update call to varobj_ops.
3066 * varobj.h (default_varobj_ops): Delete define.
3067
3068 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3069
3070 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3071 initializer.
3072 * c-lang.c (c_language_data): Likewise.
3073 (c_language::macro_expansion): New member function.
3074 (cplus_language_data): Likewise.
3075 (cplus_language::macro_expansion): New member function.
3076 (asm_language_data): Likewise.
3077 (asm_language::macro_expansion): New member function.
3078 (minimal_language_data): Likewise.
3079 (minimal_language::macro_expansion): New member function.
3080 * d-lang.c (d_language_data): Remove la_macro_expansion
3081 initializer.
3082 * f-lang.c (f_language_data): Likewise.
3083 * go-lang.c (go_language_data): Likewise.
3084 * language.c (unknown_language_data): Likewise.
3085 (auto_language_data): Likewise.
3086 * language.h (language_data): Remove la_macro_expansion field.
3087 (language_defn::macro_expansion): New member function.
3088 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3089 initializer.
3090 * objc-lang.c (objc_language_data): Likewise.
3091 (objc_language::macro_expansion): New member function.
3092 * opencl-lang.c (opencl_language_data): Likewise.
3093 (opencl_language::macro_expansion): New member function.
3094 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3095 initializer.
3096 * rust-lang.c (rust_language_data): Likewise.
3097 * symtab.c (default_collect_symbol_completion_matches_break_on):
3098 Update call to macro_expansion.
3099
3100 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3101
3102 * ada-lang.c (ada_language_data): Remove la_array_ordering
3103 initializer.
3104 * c-lang.c (c_language_data): Likewise.
3105 (cplus_language_data): Likewise.
3106 (asm_language_data): Likewise.
3107 (minimal_language_data): Likewise.
3108 * d-lang.c (d_language_data): Likewise.
3109 * dwarf2/read.c (read_array_order): Update for call to
3110 array_ordering.
3111 * f-lang.c (f_language_data): Remove la_array_ordering
3112 initializer.
3113 (f_language::array_ordering): New member function.
3114 * go-lang.c (go_language_data): Remove la_array_ordering
3115 initializer.
3116 * language.c (unknown_language_data): Likewise.
3117 (auto_language_data): Likewise.
3118 * language.h (language_data): Delete la_array_ordering field.
3119 (language_defn::array_ordering): New member function.
3120 * m2-lang.c (m2_language_data): Remove la_array_ordering
3121 initializer.
3122 * objc-lang.c (objc_language_data): Likewise.
3123 * opencl-lang.c (opencl_language_data): Likewise.
3124 * p-lang.c (pascal_language_data): Likewise.
3125 * rust-lang.c (rust_language_data): Likewise.
3126
3127 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3128
3129 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3130 initializer.
3131 * c-lang.c (c_language_data): Likewise.
3132 (cplus_language_data): Likewise.
3133 (asm_language_data): Likewise.
3134 (minimal_language_data): Likewise.
3135 * d-lang.c (d_language_data): Likewise.
3136 * f-lang.c (f_language_data): Likewise.
3137 (f_language::case_sensitivity): New member function.
3138 * go-lang.c (go_language_data): Remove la_case_sensitivity
3139 initializer.
3140 * language.c (enum case_mode): Moved here from language.h.
3141 (case_mode): Make static.
3142 (show_case_command): Update for case_sensitivity being a method.
3143 (set_case_command): Likewise.
3144 (set_range_case): Likewise.
3145 (unknown_language_data): Remove la_case_sensitivity initializer.
3146 (auto_language_data): Likewise.
3147 * language.h (case_mode): Delete, move enum declaration to
3148 language.c.
3149 (language_data): Delete la_case_sensitivity field.
3150 (language_defn::case_sensitivity): New member function.
3151 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3152 initializer.
3153 * objc-lang.c (objc_language_data): Likewise.
3154 * opencl-lang.c (opencl_language_data): Likewise.
3155 * p-lang.c (pascal_language_data): Likewise.
3156 * rust-lang.c (rust_language_data): Likewise.
3157
3158 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3159
3160 * ada-lang.c (ada_language_data): Remove la_range_check
3161 initializer.
3162 * c-lang.c (c_language_data): Likewise.
3163 (cplus_language_data): Likewise.
3164 (asm_language_data): Likewise.
3165 (minimal_language_data): Likewise.
3166 * d-lang.c (d_language_data): Likewise.
3167 * f-lang.c (f_language_data): Likewise.
3168 (f_language::range_checking_on_by_default): New member function.
3169 * go-lang.c (go_language_data): Remove la_range_check initializer.
3170 * language.c (enum range_mode): Moved here from language.h.
3171 (range_mode): Made static.
3172 (show_range_command): Update to use
3173 range_checking_on_by_default.
3174 (set_range_command): Likewise.
3175 (set_range_case): Likewise.
3176 (unknown_language_data): Remove la_range_check initializer.
3177 (auto_language_data): Likewise.
3178 * language.h (range_mode): Delete. Enum definition moved to
3179 language.c.
3180 (language_data): Remove la_range_check field.
3181 (language_defn::range_checking_on_by_default): New member
3182 function.
3183 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3184 (m2_language::range_checking_on_by_default): New member function.
3185 * objc-lang.c (objc_language_data): Remove la_range_check
3186 initializer.
3187 * opencl-lang.c (opencl_language_data): Likewise.
3188 * p-lang.c (pascal_language_data): Likewise.
3189 (pascal_language::range_checking_on_by_default): New member
3190 function.
3191 * rust-lang.c (rust_language_data): Remove la_range_check
3192 initializer.
3193 (rust_language::range_checking_on_by_default): New member
3194 function.
3195
3196 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3197
3198 * dwarf2/read.c (dwarf2_physname): Remove special case for
3199 language_go.
3200 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3201 member function.
3202
3203 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3204
3205 * ada-lang.c (ada_language_data): Remove
3206 la_store_sym_names_in_linkage_form_p initializer.
3207 (ada_language::store_sym_names_in_linkage_form_p): New member
3208 function.
3209 * c-lang.c (c_language_data): Remove
3210 la_store_sym_names_in_linkage_form_p initializer.
3211 (c_language::store_sym_names_in_linkage_form_p): New member
3212 function.
3213 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3214 initializer.
3215 (asm_language_data): Likewise.
3216 (asm_language::store_sym_names_in_linkage_form_p): New member
3217 function.
3218 (minimal_language_data): Remove
3219 la_store_sym_names_in_linkage_form_p initializer.
3220 (minimal_language::store_sym_names_in_linkage_form_p): New member
3221 function.
3222 * d-lang.c (d_language_data): Remove
3223 la_store_sym_names_in_linkage_form_p initializer.
3224 * dwarf2/read.c (dwarf2_physname): Update call to
3225 store_sym_names_in_linkage_form_p.
3226 * f-lang.c (f_language_data): Remove
3227 la_store_sym_names_in_linkage_form_p initializer.
3228 * go-lang.c (go_language_data): Remove
3229 la_store_sym_names_in_linkage_form_p initializer.
3230 * language.c (unknown_language_data): Remove
3231 la_store_sym_names_in_linkage_form_p initializer.
3232 (unknown_language::store_sym_names_in_linkage_form_p): New member
3233 function.
3234 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3235 initializer.
3236 (auto_language::store_sym_names_in_linkage_form_p): New member
3237 function.
3238 * language.h (language_data): Remove
3239 la_store_sym_names_in_linkage_form_p member variable.
3240 (language_defn::store_sym_names_in_linkage_form_p): New member
3241 function.
3242 * m2-lang.c (m2_language_data): Remove
3243 la_store_sym_names_in_linkage_form_p initializer.
3244 * objc-lang.c (objc_language_data): Likewise.
3245 * opencl-lang.c (opencl_language_data): Likewise.
3246 * p-lang.c (pascal_language_data): Likewise.
3247 * rust-lang.c (rust_language_data): Likewise.
3248
3249 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3250
3251 * ada-lang.c (ada_language_data): Remove string_lower_bound
3252 initializer.
3253 * c-lang.c (c_language_data): Likewise.
3254 (cplus_language_data): Likewise.
3255 (asm_language_data): Likewise.
3256 (minimal_language_data): Likewise.
3257 * d-lang.c (d_language_data): Likewise.
3258 * f-lang.c (f_language_data): Likewise.
3259 * go-lang.c (go_language_data): Likewise.
3260 * language.c (unknown_language_data): Likewise.
3261 (auto_language_data): Likewise.
3262 * language.h (language_data): Remove string_lower_bound field.
3263 (language_defn::string_lower_bound): New member function.
3264 * m2-lang.c (m2_language_data): Remove string_lower_bound
3265 initializer.
3266 (m2_language::string_lower_bound): New member function.
3267 * objc-lang.c (objc_language_data): Remove string_lower_bound
3268 initializer.
3269 * opencl-lang.c (opencl_language_data): Likewise.
3270 * p-lang.c (pascal_language_data): Likewise.
3271 * rust-lang.c (rust_language_data): Likewise.
3272 * valops.c (value_cstring): Update call to string_lower_bound.
3273 (value_string): Likewise.
3274 * value.c (allocate_repeated_value): Likewise.
3275
3276 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3277
3278 * valops.c (value_repeat): Fix incorrect argument name in comment.
3279
3280 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * ada-lang.c (ada_language_data): Remove c_style_arrays
3283 initializer.
3284 (ada_language::c_style_arrays_p): New member fuction.
3285 * c-lang.c (c_language_data): Remove c_style_arrays
3286 initializer.
3287 (cplus_language_data): Likewise.
3288 (asm_language_data): Likewise.
3289 (minimal_language_data): Likewise.
3290 * d-lang.c (d_language_data): Likewise.
3291 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3292 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3293 (f_language::c_style_arrays_p): New member function.
3294 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3295 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3296 * language.c (unknown_language_data): Remove c_style_arrays
3297 initializer.
3298 (auto_language_data): Likewise.
3299 * language.h (language_data): Remove c_style_arrays field.
3300 (language_defn::c_style_arrays_p): New member function.
3301 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3302 (m2_language::c_style_arrays_p): New member function.
3303 * objc-lang.c (objc_language_data): Remove c_style_arrays
3304 initializer.
3305 * opencl-lang.c (opencl_language_data): Likewise.
3306 * p-lang.c (pascal_language_data): Likewise.
3307 * rust-lang.c (rust_language_data): Likewise.
3308 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3309 and update local variable to a bool.
3310 * valops.c (value_cast): Update call to c_style_arrays_p.
3311 (value_array): Likewise.
3312 * value.c (coerce_array): Likewise.
3313
3314 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3315
3316 * ada-lang.c (ada_language_data): Remove la_language initializer.
3317 * c-lang.c (c_language_data): Likewise.
3318 (cplus_language_data): Likewise.
3319 (asm_language_data): Likewise.
3320 (minimal_language_data): Likewise.
3321 * d-lang.c (d_language_data): Likewise.
3322 * f-lang.c (f_language_data): Likewise.
3323 * go-lang.c (go_language_data): Likewise.
3324 * language.c (unknown_language_data): Likewise.
3325 (auto_language_data): Likewise.
3326 * language.h (language_data): Remove la_language field.
3327 (language_defn::language_defn): Initialise la_language field.
3328 (language_defn::la_language): New member variable.
3329 * m2-lang.c (m2_language_data): Remove la_language field.
3330 * objc-lang.c (objc_language_data): Likewise.
3331 * opencl-lang.c (opencl_language_data): Likewise.
3332 * p-lang.c (pascal_language_data): Likewise.
3333 * rust-lang.c (rust_language_data): Likewise.
3334
3335 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3336
3337 * ada-lang.c (ada_extensions): Delete, moved into
3338 ada_language::filename_extensions.
3339 (ada_language_data): Remove la_filename_extensions initializer.
3340 (ada_language::filename_extensions): New member function.
3341 * c-lang.c (c_extensions): Delete, moved into
3342 c_language::filename_extensions.
3343 (c_language_data): Remove la_filename_extensions initializer.
3344 (c_language::filename_extensions): New member function.
3345 (cplus_extensions): Delete, moved into
3346 cplus_language::filename_extensions.
3347 (cplus_language_data): Remove la_filename_extensions initializer.
3348 (cplus_language::filename_extensions): New member function.
3349 (asm_extensions): Delete, moved into
3350 asm_language::filename_extensions.
3351 (asm_language_data): Remove la_filename_extensions initializer.
3352 (asm_language::filename_extensions): New member function.
3353 (minimal_language_data): Remove la_filename_extensions
3354 initializer.
3355 * d-lang.c (d_extensions): Delete, moved into
3356 d_language::filename_extensions.
3357 (d_language_data): Remove la_filename_extensions initializer.
3358 (d_language::filename_extensions): New member function.
3359 * f-lang.c (f_extensions): Delete, moved into
3360 f_language::filename_extensions.
3361 (f_language_data): Remove la_filename_extensions initializer.
3362 (f_language::filename_extensions): New member function.
3363 * go-lang.c (go_language_data): Remove la_filename_extensions
3364 initializer.
3365 * language.c (add_set_language_command): Update now that
3366 filename_extensions returns a vector.
3367 (unknown_language_data): Remove la_filename_extensions
3368 initializer.
3369 (auto_language_data): Likewise.
3370 * language.h (language_data): Remove la_filename_extensions field.
3371 (language_defn::filename_extensions): New member function.
3372 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3373 initializer.
3374 * objc-lang.c (objc_extensions): Delete, moved into
3375 objc_language::filename_extensions.
3376 (objc_language_data): Remove la_filename_extensions initializer.
3377 (objc_language::filename_extensions): New member function.
3378 * opencl-lang.c (opencl_language_data): Remove
3379 la_filename_extensions initializer.
3380 * p-lang.c (pascal_extensions): Delete, moved into
3381 pascal_language::filename_extensions.
3382 (pascal_language_data): Remove la_filename_extensions initializer.
3383 (pascal_language::filename_extensions): New member function.
3384 * rust-lang.c (rust_extensions): Delete, moved into
3385 rust_language::filename_extensions.
3386 (rust_language_data): Remove la_filename_extensions initializer.
3387 (rust_language::filename_extensions): New member function.
3388 * symfile.c (add_filename_language): Add new assert.
3389
3390 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3391
3392 * ada-lang.c (ada_language_data): Remove la_name and
3393 la_natural_name initializers.
3394 (ada_language::name): New member function.
3395 (ada_language::natural_name): New member function.
3396 * c-lang.c (c_language_data): Remove la_name and
3397 la_natural_name initializers.
3398 (c_language::name): New member function.
3399 (c_language::natural_name): New member function.
3400 (cplus_language_data): Remove la_name and
3401 la_natural_name initializers.
3402 (cplus_language::name): New member function.
3403 (cplus_language::natural_name): New member function.
3404 (asm_language_data): Remove la_name and
3405 la_natural_name initializers.
3406 (asm_language::name): New member function.
3407 (asm_language::natural_name): New member function.
3408 (minimal_language_data): Remove la_name and
3409 la_natural_name initializers.
3410 (minimal_language::name): New member function.
3411 (minimal_language::natural_name): New member function.
3412 * compile/compile.c (compile_to_object): Update call to
3413 lanugage_defn::name.
3414 * d-lang.c (d_language_data): Remove la_name and
3415 la_natural_name initializers.
3416 (d_language::name): New member function.
3417 (d_language::natural_name): New member function.
3418 * expprint.c (print_subexp_standard): Update call to
3419 language_defn::name.
3420 (dump_raw_expression): Likewise
3421 (dump_prefix_expression): Likewise.
3422 * f-lang.c (f_language_data): Remove la_name and
3423 la_natural_name initializers.
3424 (f_language::name): New member function.
3425 (f_language::natural_name): New member function.
3426 * go-lang.c (go_language_data): Remove la_name and
3427 la_natural_name initializers.
3428 (go_language::name): New member function.
3429 (go_language::natural_name): New member function.
3430 * language.c (show_language_command): Update call to
3431 language_defn::name.
3432 (set_language_command): Likewise.
3433 (language_enum): Likewise.
3434 (language_str): Likewise.
3435 (add_set_language_command): Likewise, use
3436 language_defn::natural_name in the doc string.
3437 (unknown_language_data): Remove la_name and
3438 la_natural_name initializers.
3439 (unknown_language::name): New member function.
3440 (unknown_language::natural_name): New member function.
3441 (auto_language_data): Remove la_name and
3442 la_natural_name initializers.
3443 (auto_language::name): New member function.
3444 (auto_language::natural_name): New member function.
3445 (language_lookup_primitive_type_as_symbol): Update call to
3446 language_defn::name.
3447 * language.h (language_data): Remove la_name and la_natural_name
3448 member variables.
3449 (language_defn::name): New member function.
3450 (language_defn::natural_name): New member function.
3451 * m2-lang.c (m2_language_data): Remove la_name and
3452 la_natural_name initializers.
3453 (m2_language::name): New member function.
3454 (m2_language::natural_name): New member function.
3455 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3456 language_defn::natural_name.
3457 * objc-lang.c (objc_language_data): Remove la_name and
3458 la_natural_name initializers.
3459 (objc_language::name): New member function.
3460 (objc_language::natural_name): New member function.
3461 * opencl-lang.c (opencl_language_data): Remove la_name and
3462 la_natural_name initializers.
3463 (opencl_language::name): New member function.
3464 (opencl_language::natural_name): New member function.
3465 * p-lang.c (pascal_language_data): Remove la_name and
3466 la_natural_name initializers.
3467 (pascal_language::name): New member function.
3468 (pascal_language::natural_name): New member function.
3469 * rust-lang.c (rust_language_data): Remove la_name and
3470 la_natural_name initializers.
3471 (rust_language::name): New member function.
3472 (rust_language::natural_name): New member function.
3473 * symtab.c (lookup_language_this): Update call to
3474 language_defn::name.
3475
3476 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3477
3478 * ada-lang.c (ada_language_data): Remove la_name_of_this
3479 initializer.
3480 * ax-gdb.c (gen_expr): Update call to name_of_this.
3481 * c-exp.y (classify_name): Likewise.
3482 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3483 (cplus_language_data): Likewise.
3484 (cplus_language::name_of_this): New member function.
3485 (asm_language_data): Remove la_name_of_this initializer.
3486 (minimal_language_data): Likewise.
3487 * d-lang.c (d_language_data): Likewise.
3488 (d_language::name_of_this): New member function.
3489 * expprint.c (print_subexp_standard): Update call to name_of_this.
3490 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3491 * go-lang.c (go_language_data): Likewise.
3492 * language.c (unknown_language_data): Likewise.
3493 (unknown_language::name_of_this): New member function.
3494 (auto_language_data): Remove la_name_of_this initializer.
3495 (auto_language::name_of_this): New member function.
3496 * language.h (language_data): Delete la_name_of_this member
3497 variable.
3498 (language_defn::name_of_this): New member function.
3499 * m2-lang.c (m2_language_data): Remove la_name_of_this
3500 initializer.
3501 * objc-lang.c (objc_language_data): Likewise.
3502 (objc_language::name_of_this): New member function.
3503 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3504 initializer.
3505 * p-lang.c (pascal_language_data): Likewise.
3506 (pascal_language::name_of_this): New member function.
3507 * rust-lang.c (rust_language_data): Remove la_name_of_this
3508 initializer.
3509 * symtab.c (lookup_language_this): Update call to name_of_this.
3510 (lookup_symbol_aux): Likewise.
3511 * valops.c (value_of_this): Likewise.
3512
3513 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3514
3515 * ada-lang.c (ada_language_data): Remove
3516 la_struct_too_deep_ellipsis initializer.
3517 (ada_language::struct_too_deep_ellipsis): New member function.
3518 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3519 initializer.
3520 (cplus_language_data): Likewise.
3521 (asm_language_data): Likewise.
3522 (minimal_language_data): Likewise.
3523 * cp-valprint.c (cp_print_value): Update call to
3524 struct_too_deep_ellipsis.
3525 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3526 initializer.
3527 * f-lang.c (f_language_data): Likewise.
3528 (f_language::struct_too_deep_ellipsis): New member function.
3529 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3530 initializer.
3531 * language.c (unknown_language_data): Likewise.
3532 (auto_language_data): Likewise.
3533 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3534 member variable.
3535 (language_defn::struct_too_deep_ellipsis): New member function.
3536 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3537 initializer.Q
3538 * objc-lang.c (objc_language_data): Likewise.
3539 * opencl-lang.c (opencl_language_data): Likewise.
3540 * p-lang.c (pascal_language_data): Likewise.
3541 * rust-lang.c (rust_language_data): Likewise.
3542 * valprint.c (val_print_check_max_depth): Update call to
3543 struct_too_deep_ellipsis.
3544
3545 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3546
3547 * MAINTAINERS (Write After Approval): Add myself.
3548
3549 2020-09-15 Tom Tromey <tom@tromey.com>
3550
3551 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3552 Remove.
3553
3554 2020-09-15 Tom Tromey <tom@tromey.com>
3555
3556 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3557 and TYPE_CODE_METHODPTR cases.
3558 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3559 (c_value_print_inner): Update.
3560 * valprint.c (generic_value_print_memberptr): New function, from
3561 c_value_print_memberptr.
3562 (generic_value_print): Use it. Call cplus_print_method_ptr.
3563
3564 2020-09-15 Tom Tromey <tromey@adacore.com>
3565
3566 * python/python-internal.h (PyInt_FromLong): Remove define.
3567 * python/py-value.c (convert_value_from_python): Use
3568 gdb_py_object_from_longest.
3569 * python/py-type.c (typy_get_code): Use
3570 gdb_py_object_from_longest.
3571 * python/py-symtab.c (salpy_get_line): Use
3572 gdb_py_object_from_longest.
3573 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3574 gdb_py_object_from_longest.
3575 * python/py-record.c (recpy_gap_reason_code): Use
3576 gdb_py_object_from_longest.
3577 * python/py-record-btrace.c (recpy_bt_insn_size)
3578 (recpy_bt_func_level, btpy_list_count): Use
3579 gdb_py_object_from_longest.
3580 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3581 gdb_py_object_from_longest. Fix error handling.
3582 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3583 gdb_py_object_from_longest.
3584 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3585 gdb_py_object_from_longest.
3586 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3587 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3588 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3589
3590 2020-09-15 Tom Tromey <tromey@adacore.com>
3591
3592 * python/python.c (gdbpy_parameter_value): Use
3593 gdb_py_object_from_ulongest.
3594
3595 2020-09-15 Tom Tromey <tromey@adacore.com>
3596
3597 * python/py-infevents.c (create_register_changed_event_object):
3598 Use gdb_py_object_from_longest.
3599 * python/py-exitedevent.c (create_exited_event_object): Use
3600 gdb_py_object_from_longest.
3601
3602 2020-09-15 Tom Tromey <tromey@adacore.com>
3603
3604 * python/python.c (gdbpy_parameter_value): Use
3605 gdb_py_object_from_longest.
3606 * python/py-type.c (convert_field, typy_range): Use
3607 gdb_py_object_from_longest.
3608 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3609 gdb_py_object_from_longest.
3610 * python/py-lazy-string.c (stpy_get_length): Use
3611 gdb_py_object_from_longest.
3612 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3613 gdb_py_object_from_longest.
3614 * python/py-infevents.c (create_memory_changed_event_object): Use
3615 gdb_py_object_from_longest.
3616 * python/py-inferior.c (infpy_get_num): Use
3617 gdb_py_object_from_longest.
3618 (infpy_get_pid): Likewise.
3619
3620 2020-09-15 Tom Tromey <tromey@adacore.com>
3621
3622 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3623 defines.
3624 * python/py-value.c (valpy_long): Use
3625 gdb_py_object_from_ulongest.
3626 * python/py-symtab.c (salpy_get_pc): Use
3627 gdb_py_object_from_ulongest.
3628 (salpy_get_last): Likewise.
3629 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3630 gdb_py_object_from_ulongest.
3631 * python/py-lazy-string.c (stpy_get_address): Use
3632 gdb_py_object_from_ulongest.
3633 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3634 * python/py-arch.c (archpy_disassemble): Use
3635 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3636 error handling.
3637
3638 2020-09-15 Tom Tromey <tromey@adacore.com>
3639
3640 * python/python-internal.h (gdb_py_long_from_longest): Remove
3641 defines.
3642 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3643 * python/py-type.c (convert_field, typy_get_sizeof): Use
3644 gdb_py_object_from_longest.
3645 * python/py-record-btrace.c (btpy_list_index): Use
3646 gdb_py_object_from_longest.
3647
3648 2020-09-15 Tom Tromey <tromey@adacore.com>
3649
3650 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3651 * python/py-record.c (recpy_element_number): Use
3652 gdb_py_object_from_longest.
3653 (recpy_gap_number): Likewise.
3654
3655 2020-09-15 Tom Tromey <tromey@adacore.com>
3656
3657 * top.c (ui::ui): Update.
3658 (highest_ui_num): Remove.
3659 * top.h (struct ui) <num>: Remove.
3660
3661 2020-09-15 Tom Tromey <tromey@adacore.com>
3662
3663 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3664 * ui-style.c (ansi_regex_text): Now array.
3665 * rust-exp.y (number_regex_text): Now array.
3666 * linespec.c (linespec_quote_characters): Now array.
3667 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3668 Now arrays.
3669
3670 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3671
3672 * debuginfod-support.c (debuginfod_client_deleter): New.
3673 (debuginfod_client_up): New.
3674 (debuginfod_init): Return debuginfod_client_up.
3675 (debuginfod_source_query): Adjust.
3676 (debuginfod_debuginfo_query): Adjust.
3677
3678 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3679
3680 * debuginfod-support.c (debuginfod_source_query): Use
3681 make_unique_xstrdup.
3682
3683 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3684
3685 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3686 with `type::instance_flags`.
3687
3688 2020-09-14 Michael Mullin <masmullin@gmail.com>
3689
3690 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3691 Remove baton parameter.
3692
3693 2020-09-14 Pedro Alves <pedro@palves.net>
3694
3695 * Makefile.in (SELFTESTS_SRCS): Add
3696 unittests/enum-flags-selftests.c.
3697 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3698 btrace_function_flags instead of enum btrace_function_flag.
3699 * compile/compile-c-types.c (convert_qualified): Use
3700 enum_flags::raw.
3701 * compile/compile-cplus-symbols.c (convert_one_symbol)
3702 (convert_symbol_bmsym):
3703 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3704 (compile_cplus_convert_struct_or_union_methods)
3705 (compile_cplus_instance::convert_qualified_base):
3706 * go-exp.y (parse_string_or_char): Add cast to int.
3707 * unittests/enum-flags-selftests.c: New file.
3708 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3709 type to btrace_thread_flags from btrace_thread_flag.
3710 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3711 local's type to btrace_thread_flags from btrace_thread_flag. Add
3712 cast in DEBUG call.
3713
3714 2020-09-14 Pedro Alves <pedro@palves.net>
3715
3716 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3717 * gdbtypes.c (address_space_name_to_int): Rename to ...
3718 (address_space_name_to_type_instance_flags): ... this.
3719 (address_space_int_to_name): Rename to ...
3720 (address_space_type_instance_flags_to_name): ... this.
3721 * gdbtypes.h (address_space_name_to_int): Rename to ...
3722 (address_space_name_to_type_instance_flags): ... this.
3723 (address_space_int_to_name): Rename to ...
3724 (address_space_type_instance_flags_to_name): ... this.
3725 * type-stack.c (type_stack::insert): Adjust to rename.
3726 * type-stack.h (type_stack::insert): Likewise.
3727
3728 2020-09-14 Pedro Alves <pedro@palves.net>
3729 Andrew Burgess <andrew.burgess@embecosm.com>
3730
3731 * avr-tdep.c (avr_address_class_type_flags): Return
3732 type_instance_flags.
3733 (avr_address_class_type_flags_to_name): Take a
3734 type_instance_flags.
3735 (avr_address_class_name_to_type_flags): Return bool and take a
3736 type_instance_flags.
3737 * d-lang.c (build_d_types): Use type::set_instance_flags.
3738 * ft32-tdep.c (ft32_address_class_type_flags): Return
3739 type_instance_flags.
3740 (ft32_address_class_type_flags_to_name): Take a
3741 type_instance_flags.
3742 (ft32_address_class_name_to_type_flags): Return bool and take a
3743 type_instance_flags.
3744 (ft32_gdbarch_init): Use type::set_instance_flags.
3745 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3746 * gdbarch.h, gdbarch.c: Regenerate.
3747 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3748 (address_class_name_to_type_flags): Use type_instance_flags and
3749 bool.
3750 * gdbtypes.c (address_space_name_to_int)
3751 (address_space_int_to_name, make_qualified_type): Use
3752 type_instance_flags.
3753 (make_qualified_type): Use type_instance_flags and
3754 type::set_instance_flags.
3755 (make_type_with_address_space, make_cv_type, make_vector_type)
3756 (check_typedef): Use type_instance_flags.
3757 (recursive_dump_type): Cast type_instance_flags to unsigned for
3758 printing.
3759 (copy_type_recursive): Use type::set_instance_flags.
3760 (gdbtypes_post_init): Use type::set_instance_flags.
3761 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3762 <m_instance_flags>: ... this.
3763 <instance_flags, set_instance_flags>: New methods.
3764 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3765 (SET_TYPE_INSTANCE_FLAGS): New.
3766 (address_space_name_to_int, address_space_int_to_name)
3767 (make_type_with_address_space): Pass flags using
3768 type_instance_flags instead of int.
3769 * stabsread.c (cleanup_undefined_types_noname): Use
3770 type::set_instance_flags.
3771 * s390-tdep.c (s390_address_class_type_flags): Return
3772 type_instance_flags.
3773 (s390_address_class_type_flags_to_name): Take a
3774 type_instance_flags.
3775 (s390_address_class_name_to_type_flags): Return bool and take a
3776 type_instance_flags.
3777 * type-stack.c (type_stack::follow_types): Use
3778 type_instance_flags.
3779 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3780
3781 2020-09-14 Tom Tromey <tromey@adacore.com>
3782
3783 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3784 * x86-tdep.c (x86_is_thunk_register_name)
3785 (x86_in_indirect_branch_thunk): Update.
3786 * sparc64-tdep.c (sparc64_fpu_register_names)
3787 (sparc64_cp0_register_names, sparc64_register_names)
3788 (sparc64_pseudo_register_names): Now const.
3789 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3790 cp0_registers_num>: Now const.
3791 * sparc-tdep.c (sparc_core_register_names)
3792 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3793 (sparc32_pseudo_register_names): Now const.
3794 (validate_tdesc_registers): Update.
3795 * rust-lang.c (rust_extensions): Now const.
3796 * p-lang.c (p_extensions): Now const.
3797 * objc-lang.c (objc_extensions): Now const.
3798 * nto-tdep.c (nto_thread_state_str): Now const.
3799 * moxie-tdep.c (moxie_register_names): Now const.
3800 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3801 Now const.
3802 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3803 (mips_linux_reg_names): Now const.
3804 (mips_gdbarch_init): Update.
3805 * microblaze-tdep.c (microblaze_register_names): Now const.
3806 * m68k-tdep.c (m68k_register_names): Now const.
3807 * m32r-tdep.c (m32r_register_names): Now const.
3808 * ia64-tdep.c (ia64_register_names): Now const.
3809 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3810 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3811 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3812 ymm_avx512_register_names, pkeys_register_names>: Now const.
3813 * i386-tdep.c (i386_register_names, i386_zmm_names)
3814 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3815 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3816 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3817 * f-lang.c (f_extensions): Now const.
3818 * d-lang.c (d_extensions): Now const.
3819 * csky-tdep.c (csky_register_names): Now const.
3820 * charset.c (default_charset_names, charset_enum): Now const.
3821 (_initialize_charset): Update.
3822 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3823 const.
3824 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3825 (bsd_uthread_solib_loaded): Update.
3826 (bsd_uthread_state): Now const.
3827 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3828 (amd64_ymm_avx512_names, amd64_ymmh_names)
3829 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3830 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3831 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3832 (amd64_dword_names): Now const.
3833 * agent.c (can_use_agent_enum): Now const.
3834 * ada-tasks.c (task_states, long_task_states): Now const.
3835 * ada-lang.c (known_runtime_file_name_patterns)
3836 (known_auxiliary_function_name_patterns, attribute_names)
3837 (standard_exc, ada_extensions): Now const.
3838
3839 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3840
3841 * bcache.h (struct bcache) <bcache>: Remove constructor.
3842 <m_hash_function, m_compare_function>: Remove.
3843 <~bcache>: Make virtual.
3844 <compare>: Remove static method, introduce virtual method.
3845 <default_hash>: Remove.
3846 <hash>: New virtual method.
3847 * bcache.c (bcache::expand_hash_table): Update.
3848 (bcache::insert): Update.
3849 (bcache::hash): New.
3850 (bcache::compare): Update comment and parameter names.
3851 * gdbtypes.c (types_deeply_equal): Update.
3852 * psymtab.h (struct psymbol_bcache): New struct.
3853 (class psymtab_storage) <psymtab_storage>: Make default.
3854 <psymbol_cache>: Change type to psymbol_bcache.
3855 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3856 (psymbol_hash): Change to...
3857 (psymbol_bcache::hash): ... this.
3858 (psymbol_compare): Change to...
3859 (psymbol_bcache::compare): ... this.
3860
3861 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3862
3863 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3864 checking for initial lwp.
3865
3866 2020-09-14 Tom Tromey <tromey@adacore.com>
3867
3868 * m68k-tdep.c (m68k_extract_return_value): Use
3869 pointer_result_regnum.
3870 (m68k_store_return_value): Likewise.
3871 (m68k_reg_struct_return_p): Handle vectors and arrays.
3872 (m68k_return_value): Handle arrays.
3873 (m68k_svr4_return_value): Fix single-element aggregate handling.
3874 Handle long double. Adjust for embedded ABI.
3875 (m68k_svr4_init_abi): Set pointer_result_regnum.
3876 (m68k_embedded_init_abi): New function.
3877 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3878 (m68k_osabi_sniffer): New function.
3879 (_initialize_m68k_tdep): Register osabi sniffer.
3880 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3881 member.
3882
3883 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3884
3885 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3886 with gdb::unique_xmalloc_ptr<char>.
3887
3888 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3889
3890 * xml-support.h (xml_fetch_another): Change type to be a
3891 function_view.
3892 (xml_process_xincludes): Remove baton parameter.
3893 (xml_fetch_content_from_file): Change baton parameter to
3894 dirname.
3895 * xml-support.c (struct xinclude_parsing_data)
3896 <xinclude_parsing_data>: Remove baton parameter.
3897 <fetcher_baton>: Remove.
3898 (xinclude_start_include): Adjust.
3899 (xml_process_xincludes): Adjust.
3900 (xml_fetch_content_from_file): Replace baton parameter with
3901 dirname.
3902 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3903 (xml_init_syscalls_info): Use a lambda.
3904 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3905 (file_read_description_xml): Use a lambda.
3906 (fetch_available_features_from_target): Change baton parameter
3907 to target_ops.
3908 (target_read_description_xml): Use a lambda.
3909 (target_fetch_description_xml): Use a lambda.
3910 (string_read_description_xml): Update.
3911
3912 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3913
3914 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3915 uses with type::endianity_is_not_default.
3916
3917 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3918
3919 * gdbtypes.h (struct type) <endianity_is_not_default,
3920 set_endianity_is_not_default>: New methods.
3921 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3922 type::endianity_is_not_default, change all write call sites to
3923 use type::set_endianity_is_not_default.
3924
3925 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3928 uses with type::is_fixed_instance.
3929
3930 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3931
3932 * gdbtypes.h (struct type) <is_fixed_instance,
3933 set_is_fixed_instance>: New methods.
3934 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3935 write call sites to use type::set_is_fixed_instance.
3936
3937 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3938
3939 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3940 uses with type::is_gnu_ifunc.
3941
3942 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3943
3944 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3945 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3946 use type::set_is_gnu_ifunc.
3947
3948 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3949
3950 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3951 uses with type::stub_is_supported.
3952
3953 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3954
3955 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3956 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3957 use type::set_stub_is_supported.
3958
3959 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3962 uses with type::is_vector.
3963
3964 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3965
3966 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3967 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3968 use type::set_is_vector.
3969
3970 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3971
3972 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3973 uses with type::has_varargs.
3974
3975 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3976
3977 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3978 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3979 use type::set_has_varargs.
3980
3981 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3982
3983 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3984 uses with type::is_prototyped.
3985
3986 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3987
3988 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3989 New methods.
3990 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3991 call sites to use type::set_is_prototyped.
3992
3993 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3994
3995 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3996 uses with type::target_is_stub.
3997
3998 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3999
4000 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4001 New methods.
4002 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4003 sites to use type::set_target_is_stub.
4004
4005 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4006
4007 * gdbtypes.h (TYPE_STUB): Remove, replace all
4008 uses with type::is_stub.
4009
4010 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4011
4012 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4013 (TYPE_STUB): Use type::is_stub, change all write call sites to
4014 use type::set_is_stub.
4015
4016 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4019 type::has_no_signedness.
4020
4021 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4022
4023 * gdbtypes.h (struct type) <has_no_signedness,
4024 set_has_no_signedness>: New methods.
4025 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4026 call sites to use type::set_has_no_signedness.
4027
4028 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4031 type::is_unsigned.
4032
4033 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4036 methods.
4037 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4038 sites to use type::set_is_unsigned.
4039
4040 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4041 Adam Renquinha <arenquinha@cimeq.qc.ca>
4042
4043 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4044 pointer and stack frame offset when unwinding.
4045
4046 2020-09-13 Pedro Alves <pedro@palves.net>
4047
4048 * NEWS: Document "-break-insert --qualified".
4049 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4050
4051 2020-09-13 Pedro Alves <pedro@palves.net>
4052
4053 * linespec.c (classify_mtype, compare_msyms): Delete.
4054 (search_minsyms_for_name): Remove classification logic. Instead
4055 filter out trampoline symbols if we also found an external
4056 function of the same name.
4057
4058 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4059
4060 * NEWS: Create a new section for the next release branch.
4061 Rename the section of the current branch, now that it has
4062 been cut.
4063
4064 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4065
4066 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4067 * version.in: Bump version to 11.0.50.DATE-git.
4068
4069 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4070
4071 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4072
4073 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4074 Felix Willgerodt <Felix.Willgerodt@intel.com>
4075
4076 * gdbarch.sh: Added bfloat16 type.
4077 * gdbarch.c: Regenerated.
4078 * gdbarch.h: Regenerated.
4079 * gdbtypes.c (floatformats_bfloat16): New struct.
4080 (gdbtypes_post_init): Add builtin_bfloat16.
4081 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4082 (floatformats_bfloat16): New struct.
4083 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4084 (i386_ymm_type): Add field "v16_bfloat16"
4085 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4086 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4087 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4088 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4089 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4090 * features/i386/64bit-avx512.c: Regenerated.
4091 * features/i386/64bit-sse.xml: Add bfloat16 type.
4092 * features/i386/64bit-sse.c: Regenerated.
4093
4094 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4095
4096 * i386-tdep.c (i386_zmm_type): Fix field names.
4097 (i386_ymm_type): Fix field names.
4098
4099 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4100
4101 * breakpoint.c: Fix typo in the help message of the
4102 "set breakpoint condition-evaluation" command.
4103
4104 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4105
4106 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4107 * (nbsd_nat_target::pid_to_exec_file)
4108 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4109 (nbsd_nat_target::post_startup_inferior)
4110 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4111 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4112 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4113 * (nbsd_thread_lister): Remove.
4114
4115 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4116
4117 * fork-inferior.c (startup_inferior): Avoid double free.
4118
4119 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4120
4121 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4122 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4123
4124 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4125
4126 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4127 * netbsd-nat.c: Include <sys/ptrace.h>.
4128 * (netbsd_nat::enable_proc_events): Add.
4129
4130 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4131
4132 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4133 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4134 (netbsd_nat::for_each_thread): Add.
4135 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4136 "gdbsupport/common-debug.h".
4137 * (netbsd_nat::netbsd_thread_lister)
4138 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4139 (netbsd_nat::for_each_thread): Add.
4140
4141 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4142
4143 * netbsd-nat.h: Include <unistd.h>.
4144 * (netbsd_nat::pid_to_exec_file): Add.
4145 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4146 * (netbsd_nat::pid_to_exec_file) Add.
4147
4148 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4149
4150 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4151
4152 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4153
4154 * netbsd-nat.h: New file.
4155 * netbsd-nat.c: Likewise.
4156
4157 2020-09-09 Tom Tromey <tromey@adacore.com>
4158
4159 * ada-lang.c (remove_extra_symbols): Do not increment when
4160 removing an element
4161
4162 2020-09-08 Tom Tromey <tromey@adacore.com>
4163
4164 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4165
4166 2020-09-08 Tom Tromey <tromey@adacore.com>
4167
4168 PR win32/25302:
4169 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4170 (gdb_bfd_init_data): New function.
4171 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4172
4173 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4174
4175 * infrun.c (fetch_inferior_event): Use
4176 `switch_to_target_no_thread` to switch the target.
4177
4178 2020-09-06 Tom Tromey <tom@tromey.com>
4179
4180 * symfile.h (dwarf2_free_objfile): Don't declare.
4181
4182 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4183
4184 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4185 to match 16 byte real/complex type generated by Flang compiler.
4186
4187 2020-09-03 Tom de Vries <tdevries@suse.de>
4188
4189 PR breakpoint/26546
4190 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4191 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4192
4193 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4194
4195 * maint.c (index_digits): New function.
4196 (struct maint_print_section_data): Remove.
4197 (print_bfd_section_info): Remove print_data parameter, add arg
4198 and index_digits.
4199 (print_objfile_section_info): Likewise.
4200 (print_bfd_section_info_maybe_relocated): Likewise (plus
4201 objfile).
4202 (maintenance_info_sections): Adjust calls.
4203
4204 2020-09-02 Tom Tromey <tromey@adacore.com>
4205
4206 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4207 for null pointers.
4208 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4209
4210 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4211
4212 * bcache.h (struct bcache) <insert>: Change type of `added` to
4213 pointer to bool.
4214 * bcache.c (bcache::insert): Likewise.
4215 * gdbtypes.c (check_types_worklist): Adjust.
4216 * psymtab.c (add_psymbol_to_bcache): Adjust.
4217
4218 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4219
4220 * corelow.c (unordered_set): Include.
4221 (class core_target): Add field 'm_core_unavailable_mappings'.
4222 (core_target::build_file_mappings): Print only one warning
4223 per inaccessible file. Add unavailable/broken mappings
4224 to m_core_unavailable_mappings.
4225 (core_target::xfer_partial): Call...
4226 (core_target::xfer_memory_via_mappings): New method.
4227
4228 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4229
4230 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4231 type to bool.
4232
4233 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4234
4235 * dwarf2/read.c (struct field_info): Fix indentation.
4236
4237 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4238
4239 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4240 ordering in comment.
4241 * frame.c (frame_id_eq): Fix indentation.
4242
4243 2020-08-31 Scott Linder <scott@scottlinder.com>
4244 Simon Marchi <simon.marchi@efficios.com>
4245
4246 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4247 inline frame ids in outer frame.
4248
4249 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4250
4251 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4252 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4253 (outer_frame_id): Use FID_STACK_OUTER instead of
4254 FID_STACK_INVALID.
4255 (frame_id_p): Don't check for outer_frame_id.
4256
4257 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4258
4259 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4260 regnum/frame in value. Call allocate_value_lazy.
4261 * frame.c (frame_unwind_register_value): Use
4262 val_print_not_saved.
4263
4264 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4265
4266 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4267
4268 2020-08-29 Pedro Alves <pedro@palves.net>
4269
4270 * progspace.c (print_program_space): Use all_inferiors. Switch to
4271 the inferior before calling target_pid_to_str.
4272
4273 2020-08-28 Tom Tromey <tom@tromey.com>
4274
4275 * xcoffread.c (xcoff_end_psymtab): Update comment.
4276 * dbxread.c (dbx_end_psymtab): Update comment.
4277
4278 2020-08-28 Tom de Vries <tdevries@suse.de>
4279
4280 PR breakpoint/26544
4281 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4282 event_location.
4283 (create_breakpoint): Same.
4284 (base_breakpoint_decode_location): Same.
4285 (bkpt_create_sals_from_location): Same.
4286 (bkpt_decode_location): Same.
4287 (bkpt_probe_create_sals_from_location): Same.
4288 (bkpt_probe_decode_location): Same.
4289 (tracepoint_create_sals_from_location): Same.
4290 (tracepoint_decode_location): Same.
4291 (tracepoint_probe_decode_location): Same.
4292 (strace_marker_create_sals_from_location): Same.
4293 (strace_marker_decode_location): Same.
4294 (create_sals_from_location_default): Same.
4295 (decode_location_default): Same.
4296 * breakpoint.h (struct breakpoint_ops): Same.
4297 (create_breakpoint): Same.
4298 * linespec.h (decode_line_full): Same.
4299 * linespec.c (decode_line_full): Same. Throw error if
4300 result.size () == 0.
4301
4302 2020-08-27 Pedro Alves <pedro@palves.net>
4303
4304 PR gdb/26524
4305 * breakpoint.c (until_break_fsm) <location_breakpoint,
4306 caller_breakpoint>: Delete fields.
4307 <breakpoints>: New field.
4308 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4309 two individual breakpoints.
4310 (until_break_fsm::should_stop): Loop over breakpoints in the
4311 breakpoint vector.
4312 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4313 vector.
4314 (until_break_command): Handle location expanding into multiple
4315 sals.
4316
4317 2020-08-27 Pedro Alves <pedro@palves.net>
4318
4319 PR gdb/26523
4320 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4321 bp_until breakpoints user-specified locations. Update intro
4322 comment.
4323
4324 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4325
4326 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4327 gdb_bfd_sections): New.
4328 * maint.c (print_bfd_section_info): Change param type to
4329 maint_print_section_data.
4330 (print_objfile_section_info): Likewise.
4331 (print_bfd_section_info_maybe_relocated): Likewise.
4332 (maintenance_info_sections): Use gdb_bfd_sections.
4333
4334 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4335
4336 * MAINTAINERS: Add ARC target and maintainer.
4337
4338 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4339
4340 * configure.tgt: ARC support for GNU/Linux.
4341 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4342 * arc-linux-tdep.c: New file.
4343 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4344 * arc-tdep.c (arc_write_pc): Use it.
4345
4346 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4347
4348 * arc-tdep.c (arc_check_for_hardware_loop): New.
4349 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4350
4351 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4352
4353 * arc-tdep.h: Include "gdbarch.h".
4354
4355 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4356
4357 * arch/arc.h
4358 (arc_gdbarch_features): New class to stir the selection of target XML.
4359 (arc_create_target_description): Use FEATURES to choose XML target.
4360 (arc_lookup_target_description): Use arc_create_target_description
4361 to create _new_ target descriptions or return the already created
4362 ones if the FEATURES is the same.
4363 * arch/arc.c: Implementation of prototypes described above.
4364 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4365 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4366 * arc-tdep.c (*_feature_name): Make feature names consistent.
4367 (arc_register_feature): A new struct to hold information about
4368 registers of a particular target/feature.
4369 (arc_check_tdesc_feature): Check if XML provides registers in
4370 compliance with ARC_REGISTER_FEATURE structs.
4371 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4372 (determine_*_reg_feature_set): Which feature name to look for.
4373 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4374 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4375 to expected ISA enums to be used in arc_gdbarch_features structs.
4376 * features/Makefile (FEATURE_XMLFILES): Add new files.
4377 * gdb/features/arc/v1-aux.c: New file.
4378 * gdb/features/arc/v1-aux.xml: Likewise.
4379 * gdb/features/arc/v1-core.c: Likewise.
4380 * gdb/features/arc/v1-core.xml: Likewise.
4381 * gdb/features/arc/v2-aux.c: Likewise.
4382 * gdb/features/arc/v2-aux.xml: Likewise.
4383 * gdb/features/arc/v2-core.c: Likewise.
4384 * gdb/features/arc/v2-core.xml: Likewise.
4385 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4386
4387 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4388 Andrew Burgess <andrew.burgess@embecosm.com>
4389
4390 PR m2/26372
4391 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4392 an assert. Remove single element array indexing pattern as the
4393 MULTI_SUBSCRIPT support will handle this case too.
4394
4395 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4396
4397 * value.h (valprint_check_validity): Move declaration from
4398 here...
4399 * valprint.h (valprint_check_validity): ... to here.
4400
4401 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * debug.h: New file.
4404 * debug.c (debug_prefixed_vprintf): New function.
4405 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4406 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4407
4408 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4409
4410 * infrun.h (infrun_debug_printf_1): New function declaration.
4411 (infrun_debug_printf): New macro.
4412 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4413 throughout.
4414 (infrun_debug_printf): New function.
4415 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4416 (handle_jit_event): Likewise.
4417
4418 2020-08-21 Mark Wielaard <mark@klomp.org>
4419
4420 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4421
4422 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * frame.c (enum class frame_id_status): New.
4425 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4426 (fprintf_frame): Update.
4427 (compute_frame_id): Set frame id status to "computing" on entry.
4428 Set it back to "not_computed" on failure and to "computed" on
4429 success.
4430 (get_frame_id): Assert the frame id is not being computed.
4431 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4432 (create_new_frame): Likewise.
4433 (frame_cleanup_after_sniffer): Update assert.
4434
4435 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4436
4437 * regcache.c (pid_ptid_regcache_map): New type.
4438 (target_ptid_regcache_map): Remove.
4439 (target_pid_ptid_regcache_map): New type.
4440 (regcaches): Change type to target_pid_ptid_regcache_map.
4441 (get_thread_arch_aspace_regcache): Update.
4442 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4443 case.
4444 (regcaches_size): Update.
4445 (regcache_count): Update.
4446 (registers_changed_ptid_target_pid_test): New.
4447 (_initialize_regcache): Register new test.
4448
4449 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4450
4451 * regcache.c (regcache_count): New.
4452 (struct regcache_test_data): New.
4453 (regcache_test_data_up): New.
4454 (populate_regcaches_for_test): New.
4455 (regcaches_test): Remove.
4456 (get_thread_arch_aspace_regcache_test): New.
4457 (registers_changed_ptid_all_test): New.
4458 (registers_changed_ptid_target_test): New.
4459 (registers_changed_ptid_target_ptid_test): New.
4460 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4461 (_initialize_regcache): Register new tests.
4462
4463 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4464
4465 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4466 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4467 gdbarch and aspace parameter. Use current inferior's aspace.
4468 Validate regcache's arch value.
4469 (regcaches_test): Update.
4470
4471 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4472
4473 * regcache.c (regcaches_test): Call registers_changed.
4474
4475 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4476
4477 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4478
4479 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4480
4481 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4482 to find the end of prologue for flang compiled binaries.
4483 * arm-tdep.c (arm_skip_prologue): Likewise.
4484 * i386-tdep.c (i386_skip_prologue): Likewise.
4485 * producer.c (producer_is_llvm): New function.
4486 (producer_parsing_tests): Added new tests for clang/flang.
4487 * producer.h (producer_is_llvm): New declaration.
4488
4489 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4490
4491 * linux-nat.c (linux_nat_debug_printf): New function.
4492 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4493
4494 2020-08-18 Aaron Merey <amerey@redhat.com>
4495
4496 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4497 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4498 (CLIBS): Add DEBUGINFOD_LIBS.
4499
4500 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4501
4502 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4503 'gdbarch_num_regs'.
4504
4505 2020-08-17 Tom Tromey <tromey@adacore.com>
4506
4507 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4508 ada_get_decoded_value returns NULL.
4509
4510 2020-08-17 Tom Tromey <tromey@adacore.com>
4511
4512 * python/py-inferior.c (infpy_search_memory): Use
4513 gdb_py_object_from_ulongest.
4514 * python/py-infevents.c (create_inferior_call_event_object)
4515 (create_memory_changed_event_object): Use
4516 gdb_py_object_from_ulongest.
4517 * python/py-linetable.c (ltpy_entry_get_pc): Use
4518 gdb_py_object_from_ulongest.
4519
4520 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4521
4522 * loc.c (class symbol_needs_eval_context): Fix indentation.
4523
4524 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4525
4526 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4527 bool.
4528
4529 2020-08-17 Tom de Vries <tdevries@suse.de>
4530
4531 PR gdb/26393
4532 * gdbtypes.c (dump_dynamic_prop): New function.
4533 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4534
4535 2020-08-15 Tom de Vries <tdevries@suse.de>
4536
4537 PR backtrace/26390
4538 * stack.c (print_frame_args): Temporarily set the selected
4539 frame to FRAME while printing the frame's arguments.
4540
4541 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4542
4543 PR breakpoints/26385
4544 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4545 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4546
4547 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4548
4549 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4550 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4551 and >= to check return value instead of == -1 and != -1.
4552
4553 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4554
4555 * utils.h (class gdb_argv) <as_array_view>: New method.
4556 * utils.c (gdb_argv_as_array_view_test): New.
4557 (_initialize_utils): Register selftest.
4558 * maint.c (maintenance_selftest): Use the new method.
4559
4560 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4561
4562 * target.h (supports_dumpcore, dumpcore): New
4563 function declarations.
4564 * target.c (supports_dumpcore, dumpcore): New
4565 functions.
4566 * target-delegates.c: Rebuild.
4567 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4568 and target_dumpcore ().
4569
4570 2020-08-13 Aaron Merey <amerey@redhat.com>
4571
4572 * debuginfod-support.c: Replace global variables with user_data.
4573
4574 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4575
4576 * maint.c (maintenance_selftest): Split args and pass array_view
4577 to run_tests.
4578
4579 2020-08-12 Luis Machado <luis.machado@linaro.org>
4580
4581 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4582 type's length.
4583 Use %s and pulongest to print the length.
4584
4585 2020-08-12 Pedro Alves <palves@redhat.com>
4586
4587 * NEWS: Move "Multi-target debugging support" item to the
4588 "Changes since GDB 9" section.
4589
4590 2020-08-12 Pedro Alves <palves@redhat.com>
4591
4592 PR gdb/26336
4593 * progspace.c (program_space::remove_objfile): Invalidate the
4594 frame cache.
4595
4596 2020-08-11 Tom de Vries <tdevries@suse.de>
4597
4598 * MAINTAINERS: Mark ms1 as deleted.
4599
4600 2020-08-10 Luis Machado <luis.machado@linaro.org>
4601
4602 PR gdb/26310
4603
4604 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4605 act accordingly.
4606 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4607 movz/str/stur/stp skipping behavior.
4608
4609 2020-08-10 Luis Machado <luis.machado@linaro.org>
4610
4611 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4612 struct user_sve_header instead of struct sve_context.
4613
4614 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4615
4616 * read.h (dwarf2_fetch_die_loc_sect_off,
4617 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4618 `void *` parameter with function_view.
4619 * read.c (dwarf2_fetch_die_loc_sect_off,
4620 dwarf2_fetch_die_loc_cu_off): Likewise.
4621 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4622 (per_cu_dwarf_call): Adjust.
4623 (get_frame_address_in_block_wrapper): Remove.
4624 (indirect_synthetic_pointer): Adjust.
4625 (get_ax_pc): Remove.
4626 (dwarf2_compile_expr_to_ax): Adjust.
4627
4628 2020-08-08 Tom de Vries <tdevries@suse.de>
4629
4630 PR build/26344
4631 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4632 constructor.
4633 * regcache.c (get_thread_arch_aspace_regcache): Same.
4634
4635 2020-08-07 Tom Tromey <tromey@adacore.com>
4636
4637 * ravenscar-thread.c
4638 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4639 New method.
4640 (ravenscar_thread_target::wait): Check
4641 runtime_initialized.
4642 (ravenscar_thread_target::prepare_to_store)
4643 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4644 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4645 (ravenscar_thread_target::stopped_by_watchpoint)
4646 (ravenscar_thread_target::stopped_data_address)
4647 (ravenscar_thread_target::core_of_thread): Use
4648 scoped_restore_current_thread and
4649 set_base_thread_from_ravenscar_task.
4650
4651 2020-08-07 Tom Tromey <tromey@adacore.com>
4652
4653 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4654
4655 2020-08-07 Tom Tromey <tromey@adacore.com>
4656
4657 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4658 update_inferior_ptid before update_thread_list.
4659 (temporarily_change_regcache_ptid): New class.
4660 (ravenscar_thread_target::fetch_registers)
4661 (ravenscar_thread_target::store_registers)
4662 (ravenscar_thread_target::prepare_to_store): Use base thread when
4663 forwarding operation.
4664
4665 2020-08-07 Tom Tromey <tromey@adacore.com>
4666
4667 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4668 "is_pid" case.
4669
4670 2020-08-07 Tom Tromey <tromey@adacore.com>
4671
4672 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4673 New methods.
4674 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4675 first.
4676 (ravenscar_thread_target::add_thread): Rename from
4677 ravenscar_add_thread.
4678 (ravenscar_thread_target::update_thread_list): Use a lambda.
4679 (ravenscar_thread_target::xfer_partial): New method.
4680
4681 2020-08-07 Tom Tromey <tromey@adacore.com>
4682
4683 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4684 gdb::function_view.
4685 (iterate_over_live_ada_tasks): Change type of argument.
4686 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4687 of argument.
4688
4689 2020-08-07 Tom Tromey <tromey@adacore.com>
4690
4691 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4692 Remove.
4693 (ravenscar_thread_target::extra_thread_info): Remove.
4694 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4695 defer to target beneath for non-Ravenscar threads.
4696
4697 2020-08-07 Tom Tromey <tromey@adacore.com>
4698
4699 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4700 get_base_thread_from_ravenscar_task>: Now methods.
4701 <m_cpu_map>: New member.
4702 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4703 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4704 (ravenscar_thread_target::task_is_currently_active): Update.
4705 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4706 Now a method.
4707 (ravenscar_thread_target::add_active_thread): Put initial thread
4708 into the m_cpu_map.
4709
4710 2020-08-07 Tom Tromey <tromey@adacore.com>
4711
4712 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4713 event_ptid.
4714
4715 2020-08-07 Tom Tromey <tromey@adacore.com>
4716
4717 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4718 runtime_initialized.
4719
4720 2020-08-07 Tom Tromey <tromey@adacore.com>
4721
4722 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4723 add_active_thread.
4724 (ravenscar_thread_target::add_active_thread): Now public.
4725 (ravenscar_inferior_created): Call add_active_thread after pushing
4726 the target.
4727
4728 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4729
4730 * regcache.c (ptid_regcache_map): New type.
4731 (target_ptid_regcache_map): New type.
4732 (regcaches): Change type to target_ptid_regcache_map.
4733 (get_thread_arch_aspace_regcache): Update to regcaches' new
4734 type.
4735 (regcache_thread_ptid_changed): Likewise.
4736 (registers_changed_ptid): Likewise.
4737 (regcaches_size): Likewise.
4738 (regcaches_test): Update.
4739 (regcache_thread_ptid_changed): Update.
4740 * regcache.h (regcache_up): New type.
4741 * gdbsupport/ptid.h (hash_ptid): New struct.
4742
4743 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4744
4745 * observable.h (thread_ptid_changed): Add parameter
4746 `process_stratum_target *`.
4747 * infrun.c (infrun_thread_ptid_changed): Add parameter
4748 `process_stratum_target *` and use it.
4749 (selftests): New namespace.
4750 (infrun_thread_ptid_changed): New function.
4751 (_initialize_infrun): Register selftest.
4752 * regcache.c (regcache_thread_ptid_changed): Add parameter
4753 `process_stratum_target *` and use it.
4754 (regcache_thread_ptid_changed): New function.
4755 (_initialize_regcache): Register selftest.
4756 * thread.c (thread_change_ptid): Pass target to
4757 thread_ptid_changed observable.
4758
4759 2020-08-06 Caroline Tice <cmtice@google.com>
4760
4761 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4762 (struct dwp_sections): Update field comments. Add loclists and
4763 rnglists fields.
4764 (struct virtual_v2_dwo_sections): Rename struct to
4765 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4766 size & offset fields for loclists and rnglists.
4767 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4768 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4769 skipping dummy type units.
4770 (create_dwp_hash_table): Update the large comment above the function to
4771 discuss Version 5 DWP files as well, with references. Update all the
4772 version checks in the function to check for version 5 as well. Add new
4773 section at the end to create dwp hash table for version 5.
4774 (create_dwp_v2_section): Rename function to
4775 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4776 Add V5 to error message text.
4777 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4778 into calls to create_dwp_v2_or_v5_section.
4779 (create_dwo_unit_in_dwp_v5): New function.
4780 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4781 check for version2; add else clause to handle version 5.
4782 (open_and_init_dwo_file): Add code to check dwarf version & only call
4783 create_debug_types_hash_table (with sections.types) if version is not 5;
4784 else call create_debug_type_hash_table, with sections.info.
4785 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4786 version 5.
4787 (dwarf2_locate_v5_dwp_sections): New function.
4788 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4789 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4790
4791 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * regcache.h (class regcache): Remove friend
4794 registers_changed_ptid.
4795 <regcache_thread_ptid_changed>: Remove.
4796 <regcaches>: Remove.
4797 * regcache.c (regcache::regcaches): Rename to...
4798 (regcaches): ... this. Make static.
4799 (get_thread_arch_aspace_regcache): Update.
4800 (regcache::regcache_thread_ptid_changed): Rename to...
4801 (regcache_thread_ptid_changed): ... this. Update.
4802 (class regcache_access): Remove.
4803 (regcaches_test): Update.
4804 (_initialize_regcache): Update.
4805 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4806 <forward_list>.
4807
4808 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4809
4810 * regcache.h (class regcache) <current_regcache>: Rename to...
4811 <regcaches>: ... this. Move doc here.
4812 * regcache.c (regcache::current_regcache) Rename to...
4813 (regcache::regcaches): ... this. Move doc to header.
4814 (get_thread_arch_aspace_regcache): Update.
4815 (regcache::regcache_thread_ptid_changed): Update.
4816 (registers_changed_ptid): Update.
4817 (class regcache_access) <current_regcache_size>: Rename to...
4818 <regcaches_size>: ... this.
4819 (current_regcache_test): Rename to...
4820 (regcaches_test): ... this.
4821 (_initialize_regcache): Update.
4822
4823 2020-08-06 Victor Collod <vcollod@nvidia.com>
4824
4825 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4826
4827 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4828
4829 * corelow.c (core_target::build_file_mappings): Don't output
4830 null pathname in warning.
4831
4832 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4833
4834 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4835 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4836 gdb.dwarf2/dw2-single-line-discriminators.exp,
4837 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4838
4839 2020-08-05 Tom Tromey <tromey@adacore.com>
4840
4841 PR rust/26197:
4842 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4843 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4844 Fix off-by-one and type size errors in ordinary case.
4845
4846 2020-08-05 Tom de Vries <tdevries@suse.de>
4847
4848 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4849 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4850
4851 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4852
4853 * frame.h (frame_id_p): Return bool.
4854 (frame_id_artificial_p): Return bool.
4855 (frame_id_eq): Return bool.
4856 (has_stack_frames): Return bool.
4857 (get_selected_frame): Fix typo in comment.
4858 (get_frame_pc_if_available): Return bool.
4859 (get_frame_address_in_block_if_available): Return bool.
4860 (get_frame_func_if_available): Return bool.
4861 (read_frame_register_unsigned): Return bool.
4862 (get_frame_register_bytes): Return bool.
4863 (safe_frame_unwind_memory): Return bool.
4864 (deprecated_frame_register_read): Return bool.
4865 (frame_unwinder_is): Return bool.
4866 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4867 bool.
4868 <this_id::p>: Likewise.
4869 <prev_p>: Likewise.
4870 (frame_stash_add): Return bool.
4871 (get_frame_id): Use bool.
4872 (frame_id_build_special) Use bool.
4873 (frame_id_build_unavailable_stack): Use bool.
4874 (frame_id_build): Use bool.
4875 (frame_id_p): Return bool, use true/false instead of 1/0.
4876 (frame_id_artificial_p): Likewise.
4877 (frame_id_eq): Likewise.
4878 (frame_id_inner): Likewise.
4879 (get_frame_func_if_available): Likewise.
4880 (read_frame_register_unsigned): Likewise.
4881 (deprecated_frame_register_read): Likewise.
4882 (get_frame_register_bytes): Likewise.
4883 (has_stack_frames): Likewise.
4884 (inside_main_func): Likewise.
4885 (inside_entry_func): Likewise.
4886 (get_frame_pc_if_available): Likewise.
4887 (get_frame_address_in_block_if_available): Likewise.
4888 (frame_unwinder_is): Likewise.
4889 (safe_frame_unwind_memory): Likewise.
4890 (frame_unwind_arch): Likewise.
4891
4892 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4893
4894 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4895 type to cached_copy_status.
4896 (fprintf_frame): Adjust.
4897 (get_frame_func_if_available): Adjust.
4898 (frame_cleanup_after_sniffer): Adjust.
4899
4900 2020-08-04 Mark Wielaard <mark@klomp.org>
4901
4902 * MAINTAINERS (Write After Approval): Update email address.
4903
4904 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4905
4906 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4907 dynamic_prop::const_val.
4908
4909 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4910
4911 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4912 dynamic_prop::kind.
4913
4914 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4915
4916 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4917
4918 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4919
4920 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4921
4922 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4923 Jose E. Marchesi <jose.marchesi@oracle.com>
4924
4925 * configure.tgt: Add entry for bpf-*-*.
4926 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4927 (ALLDEPFILES): Add bpf-tdep.c.
4928 * bpf-tdep.c: New file.
4929 * MAINTAINERS: Add bpf target and maintainer.
4930 * NEWS: Mention the support for the new target.
4931
4932 2020-08-04 Tom de Vries <tdevries@suse.de>
4933
4934 PR symtab/23270
4935 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4936 Error.
4937
4938 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4939
4940 * syscalls/freebsd.xml: Regenerate.
4941
4942 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4943
4944 * syscalls/update-freebsd.sh: Fix usage and year range.
4945
4946 2020-08-03 Tom de Vries <tdevries@suse.de>
4947
4948 PR symtab/26333
4949 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4950 DW_LNE_lo_user/DW_LNE_hi_user range.
4951
4952 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4953
4954 PR ada/26318
4955 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4956 kind.
4957
4958 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4959
4960 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4961
4962 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4963
4964 * breakpoint.c (set_breakpoint_condition): Update the condition
4965 expressions after checking that the input condition string parses
4966 successfully and does not contain junk at the end.
4967
4968 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4969
4970 * breakpoint.c (set_breakpoint_condition): Update the
4971 condition string after parsing the new condition successfully.
4972
4973 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4974
4975 * proc-api.c (_STRUCTURED_PROC): Don't define.
4976 * proc-events.c: Likewise.
4977 * proc-flags.c: Likewise.
4978 * proc-why.c: Likewise.
4979 * procfs.c: Likewise.
4980
4981 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4982 * configure, config.in: Regenerate.
4983
4984 2020-07-30 Tom de Vries <tdevries@suse.de>
4985
4986 PR build/26320
4987 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4988 m_red/m_green/m_blue in a union.
4989
4990 2020-07-29 Tom de Vries <tdevries@suse.de>
4991
4992 PR tdep/26280
4993 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4994
4995 2020-07-28 Tom Tromey <tromey@adacore.com>
4996
4997 PR symtab/26270:
4998 * symtab.h (find_pc_partial_function_sym): Declare.
4999 * cli/cli-cmds.c (disassemble_command): Use
5000 find_pc_partial_function_sym. Check asm_demangle.
5001 * blockframe.c (cache_pc_function_sym): New global.
5002 (cache_pc_function_name): Remove.
5003 (clear_pc_function_cache): Update.
5004 (find_pc_partial_function_sym): New function, from
5005 find_pc_partial_function.
5006 (find_pc_partial_function): Rewrite using
5007 find_pc_partial_function_sym.
5008
5009 2020-07-28 Tom Tromey <tromey@adacore.com>
5010
5011 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5012 help. Add usage.
5013
5014 2020-07-28 Tom Tromey <tromey@adacore.com>
5015
5016 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5017 <DW_OP_GNU_variable_value>: Cast to address type.
5018
5019 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5020
5021 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5022 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5023 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5024 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5025 (nbsd_get_siginfo_type): New.
5026 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5027 (_initialize_nbsd_tdep): New.
5028
5029 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5030
5031 PR binutils/26301
5032 * configure: Regenerated.
5033
5034 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5035
5036 PR binutils/26301
5037 * configure: Regenerated.
5038
5039 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5040
5041 * python/py-frame.c: Remove 'user-regs.h' include.
5042 (frapy_read_register): Rewrite to make use of
5043 gdbpy_parse_register_id.
5044 * python/py-registers.c (gdbpy_parse_register_id): New function,
5045 moved here from python/py-unwind.c. Updated the return type, and
5046 also accepts register descriptor objects.
5047 * python/py-unwind.c: Remove 'user-regs.h' include.
5048 (pyuw_parse_register_id): Moved to python/py-registers.c.
5049 (unwind_infopy_add_saved_register): Update to use
5050 gdbpy_parse_register_id.
5051 (pending_framepy_read_register): Likewise.
5052 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5053
5054 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5055
5056 * python/py-registers.c: Add 'user-regs.h' include.
5057 (register_descriptor_iter_find): New function.
5058 (register_descriptor_iterator_object_methods): New static global
5059 methods array.
5060 (register_descriptor_iterator_object_type): Add pointer to methods
5061 array.
5062
5063 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5064
5065 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5066 for all architectures on FreeBSD 11.3 and later.
5067
5068 2020-07-27 Tom Tromey <tromey@adacore.com>
5069
5070 * gcore.h (load_corefile): Don't declare.
5071
5072 2020-07-27 Tom de Vries <tdevries@suse.de>
5073
5074 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5075 * config.in: Regenerate.
5076 * configure: Regenerate.
5077
5078 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5079
5080 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5081 ws2tcpip.h. When checking whether socklen_t type is defined, use
5082 ws2tcpip.h if it is available and sys/socket.h isn't.
5083 * configure: Regenerate.
5084 * config.in: Regenerate.
5085
5086 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5087
5088 PR fortran/23051
5089 PR fortran/26139
5090 * valops.c (value_ind): Pass address to
5091 readjust_indirect_value_type.
5092 * value.c (readjust_indirect_value_type): Make parameter
5093 non-const, and add extra address parameter. Resolve original type
5094 before using it.
5095 * value.h (readjust_indirect_value_type): Update function
5096 signature and comment.
5097
5098 2020-07-25 Tom de Vries <tdevries@suse.de>
5099
5100 PR symtab/26243
5101 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5102 entries.
5103
5104 2020-07-24 Aaron Merey <amerey@redhat.com>
5105
5106 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5107 * configure: Rebuild.
5108
5109 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5110
5111 PR corefiles/26294
5112 * corelow.c (_initialize_corelow): Add period to help text
5113 for "maintenance print core-file-backed-mappings".
5114
5115 2020-07-23 Pedro Alves <pedro@palves.net>
5116
5117 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5118 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5119 meanwhile.
5120 * frame.c (frame_cache_generation, get_frame_cache_generation):
5121 New.
5122 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5123 (get_prev_frame_if_no_cycle): On exception, don't touch
5124 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5125 * frame.h (get_frame_cache_generation): Declare.
5126
5127 2020-07-23 Tom de Vries <tdevries@suse.de>
5128
5129 PR tui/26282
5130 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5131 New default constructor.
5132
5133 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5134
5135 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5136 exclude non-statement entries.
5137
5138 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5139
5140 * NEWS (New commands): Mention new command
5141 "maintenance print core-file-backed-mappings".
5142
5143 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5144
5145 * corelow.c (gdbcmd.h): Include.
5146 (core_target::info_proc_mappings): New method.
5147 (get_current_core_target): New function.
5148 (maintenance_print_core_file_backed_mappings): New function.
5149 (_initialize_corelow): Add core-file-backed-mappings to
5150 "maint print" commands.
5151
5152 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5153
5154 * linux-tdep.c (dump_note_entry_p): New function.
5155 (linux_dump_mapping_p_ftype): New typedef.
5156 (linux_find_memory_regions_full): Add new parameter,
5157 should_dump_mapping_p.
5158 (linux_find_memory_regions): Adjust call to
5159 linux_find_memory_regions_full.
5160 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5161 call to linux_find_memory_regions_full.
5162
5163 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5164
5165 * corelow.c (solist.h, unordered_map): Include.
5166 (class core_target): Add field m_core_file_mappings and
5167 method build_file_mappings.
5168 (core_target::core_target): Call build_file_mappings.
5169 (core_target::~core_target): Free memory associated with
5170 m_core_file_mappings.
5171 (core_target::build_file_mappings): New method.
5172 (core_target::xfer_partial): Use m_core_file_mappings
5173 for memory transfers.
5174 * linux-tdep.c (linux_read_core_file_mappings): New
5175 function.
5176 (linux_core_info_proc_mappings): Rewrite to use
5177 linux_read_core_file_mappings.
5178 (linux_init_abi): Register linux_read_core_file_mappings.
5179
5180 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5181
5182 * arch-utils.c (default_read_core_file_mappings): New function.
5183 * arch-utils.c (default_read_core_file_mappings): Declare.
5184 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5185 * gdbarch.h, gdbarch.c: Regenerate.
5186
5187 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5188
5189 PR corefiles/25631
5190 * corelow.c (core_target:xfer_partial): Revise
5191 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5192 case after first checking the stratum beneath the core
5193 target.
5194 (has_all_memory): Return true.
5195 * target.c (raw_memory_xfer_partial): Revise comment
5196 regarding use of has_all_memory.
5197
5198 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5199
5200 * exec.h (section_table_xfer_memory): Revise declaration,
5201 replacing section name parameter with an optional callback
5202 predicate.
5203 * exec.c (section_table_xfer_memory): Likewise.
5204 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5205 of section_table_xfer_memory.
5206
5207 2020-07-22 Tom Tromey <tromey@adacore.com>
5208
5209 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5210 lookup_symbol_search_name.
5211
5212 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5213
5214 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5215 redundant local variable.
5216 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5217 reference, not pointer, update code accordingly.
5218
5219 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5220 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5221
5222 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5223 * jit.c (jit_breakpoint_re_set_internal): Use the
5224 `skip_jit_symbol_lookup` field.
5225
5226 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5227 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5228
5229 * jit.c (jit_read_descriptor): Define the descriptor address once,
5230 use twice.
5231 (jit_breakpoint_deleted): Move the declaration of the loop variable
5232 `iter` into the loop header.
5233 (jit_breakpoint_re_set_internal): Move the declaration of the local
5234 variable `objf_data` to the first point of definition.
5235 (jit_event_handler): Move the declaration of local variables
5236 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5237 Rename `objf` to `jited`.
5238
5239 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5240
5241 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5242 Remove.
5243 * jit.c (get_jiter_objfile_data): Update.
5244
5245 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5246 Simon Marchi <simon.marchi@polymtl.ca>
5247
5248 * jit.c (struct jit_program_space_data): Remove.
5249 (jit_program_space_key): Remove.
5250 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5251 stuff.
5252 (get_jit_program_space_data): Remove.
5253 (jit_breakpoint_deleted): Iterate on all of the program space's
5254 objfiles.
5255 (jit_inferior_init): Likewise.
5256 (jit_breakpoint_re_set_internal): Likewise. Also change return
5257 type to void.
5258 (jit_breakpoint_re_set): Pass current_program_space to
5259 jit_breakpoint_re_set_internal.
5260
5261 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5262
5263 * jit.h (struct jiter_objfile_data) <cached_code_address,
5264 jit_breakpoint>: Move to here from ...
5265 * jit.c (jit_program_space_data): ... here.
5266 (jiter_objfile_data::~jiter_objfile_data): Update.
5267 (jit_breakpoint_deleted): Update.
5268 (jit_breakpoint_re_set_internal): Update.
5269
5270 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5271
5272 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5273 checks.
5274 (jit_read_descriptor): Remove NULL check.
5275 (jit_event_handler): Add an assertion.
5276
5277 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5278
5279 * jit.h (struct jit_objfile_data): Split into...
5280 (struct jiter_objfile_data): ... this ...
5281 (struct jited_objfile_data): ... and this.
5282 * objfiles.h (struct objfile) <jit_data>: Remove.
5283 <jiter_data, jited_data>: New fields.
5284 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5285 (jiter_objfile_data::~jiter_objfile_data): ... this.
5286 (get_jit_objfile_data): Rename to ...
5287 (get_jiter_objfile_data): ... this.
5288 (add_objfile_entry): Update.
5289 (jit_read_descriptor): Use get_jiter_objfile_data.
5290 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5291 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5292 (jit_inferior_exit_hook): Use objfile's jited_data field.
5293
5294 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5295
5296 * jit.h: Forward-declare `struct minimal_symbol`.
5297 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5298 constructor, destructor, and an objfile* field.
5299 * jit.c (jit_objfile_data): Remove.
5300 (struct jit_objfile_data): Migrate from here to jit.h.
5301 (jit_objfile_data::~jit_objfile_data): New destructor
5302 implementation with code moved from free_objfile_data.
5303 (free_objfile_data): Delete.
5304 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5305 (jit_find_objf_with_entry_addr): Ditto.
5306 (jit_inferior_exit_hook): Ditto.
5307 (_initialize_jit): Remove the call to
5308 register_objfile_data_with_cleanup.
5309 * objfiles.h (struct objfile) <jit_data>: New field.
5310
5311 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5312
5313 * jit.h: Forward-declare `struct objfile`.
5314 (jit_event_handler): Add a second parameter, the JITer objfile.
5315 * jit.c (jit_read_descriptor): Change the signature to take the
5316 JITer objfile as an argument instead of the jit_program_space_data.
5317 (jit_inferior_init): Update the call to jit_read_descriptor.
5318 (jit_event_handler): Use the new JITer objfile argument when calling
5319 jit_read_descriptor.
5320 * breakpoint.c (handle_jit_event): Update the call to
5321 jit_event_handler to pass the JITer objfile.
5322
5323 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5324
5325 * gdbarch.c: Regenerate.
5326 * gdbarch.h: Regenerate.
5327 * gdbarch.sh (handle_segmentation_fault): Remove method.
5328 * infrun.c (handle_segmentation_fault): Remove.
5329 (print_signal_received_reason): Remove call to
5330 handle_segmentation_fault.
5331
5332 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5333
5334 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5335 Rename to sparc64_linux_report_signal_info and add siggnal
5336 argument.
5337 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5338 instead of sparc64_linux_handle_segmentation_fault.
5339
5340 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5341
5342 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5343 i386_linux_report_signal_info instead of
5344 i386_linux_handle_segmentation_fault.
5345 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5346 to i386_linux_report_signal_info and add siggnal argument.
5347 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5348 of i386_linux_handle_segmentation_fault.
5349 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5350 to i386_linux_report_signal_info and add siggnal argument.
5351
5352 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5353
5354 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5355 hook if present.
5356
5357 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5358
5359 * gdbarch.c: Regenerate.
5360 * gdbarch.h: Regenerate.
5361 * gdbarch.sh (report_signal_info): New method.
5362 * infrun.c (print_signal_received_reason): Invoke gdbarch
5363 report_signal_info hook if present.
5364
5365 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5366
5367 * python/py-registers.c : Add 'unordered_map' include.
5368 (gdbpy_new_reggroup): Renamed to...
5369 (gdbpy_get_reggroup): ...this. Update to only create register
5370 group descriptors when needed.
5371 (gdbpy_reggroup_iter_next): Update.
5372
5373 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5374
5375 * python/py-registers.c (gdbpy_register_object_data): New static
5376 global.
5377 (gdbpy_register_object_data_init): New function.
5378 (gdbpy_new_register_descriptor): Renamed to...
5379 (gdbpy_get_register_descriptor): ...this, and update to reuse
5380 existing register descriptors where possible.
5381 (gdbpy_register_descriptor_iter_next): Update.
5382 (gdbpy_initialize_registers): Register new gdbarch data.
5383
5384 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5385
5386 * linux-nat.c (stopped_pids): Make static.
5387
5388 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5389
5390 PR ada/26235
5391 * gdbtypes.c (ada_discrete_type_low_bound,
5392 ada_discrete_type_high_bound): Handle undefined bounds.
5393
5394 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5395
5396 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5397 declaration.
5398 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5399 function.
5400
5401 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5402
5403 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5404 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5405 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5406 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5407 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5408 method.
5409
5410 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5411
5412 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5413 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5414 which are deprecated in Guile 3.0.
5415 * configure.ac (try_guile_versions): Add "guile-3.0".
5416 * configure (try_guile_versions): Regenerate.
5417 * NEWS: Update entry.
5418
5419 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5420 Doug Evans <dje@google.com>
5421
5422 PR gdb/21104
5423 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5424 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5425 USING_GUILE_BEFORE_2_2.
5426 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5427 Change type to 'scm_t_port_type *'.
5428 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5429 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5430 parameter and honor it. Update callers.
5431 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5432 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5433 functions.
5434 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5435 USING_GUILE_BEFORE_2_2.
5436 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5437 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5438 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5439 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5440 and 'SCM_PORT_TYPE'.
5441 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5442 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5443 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5444 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5445 [!USING_GUILE_BEFORE_2_2]: New functions.
5446 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5447 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5448 'gdbscm_memory_port_read'.
5449 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5450 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5451 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5452 function.
5453 (ioscm_init_memory_port): Remove.
5454 (ioscm_init_memory_port_stream): New function
5455 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5456 function.
5457 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5458 Return scm_from_uint (0).
5459 (gdbscm_set_memory_port_read_buffer_size_x)
5460 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5461 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5462 Return scm_from_uint (0).
5463 (gdbscm_set_memory_port_write_buffer_size_x)
5464 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5465 * configure.ac (try_guile_versions): Add "guile-2.2".
5466 * configure: Regenerate.
5467 * NEWS: Add entry.
5468
5469 2020-07-18 Tom Tromey <tom@tromey.com>
5470
5471 * linux-nat.c (linux_multi_process): Remove.
5472 (linux_nat_target::supports_multi_process): Return true.
5473
5474 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5475
5476 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5477 (riscv_lookup_target_description): Return pointer out of
5478 unique_ptr.
5479 * target-descriptions.c (allocate_target_description): Add
5480 comment.
5481 (target_desc_deleter::operator()): Likewise.
5482 * target-descriptions.h (struct target_desc_deleter): Moved to
5483 gdbsupport/tdesc.h.
5484 (target_desc_up): Likewise.
5485
5486 2020-07-17 Tom Tromey <tromey@adacore.com>
5487
5488 * linux-nat.c (linux_nat_target::supports_non_stop)
5489 (linux_nat_target::always_non_stop_p): Use "true".
5490 (linux_nat_target::supports_disable_randomization): Use "true" and
5491 "false".
5492
5493 2020-07-16 Caroline Tice <cmtice@google.com>
5494
5495 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5496 (RNGLIST_HEADER_SIZE64): New constant definition.
5497 (struct dwop_section_names): Add rnglists_dwo.
5498 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5499 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5500 (struct dwo_sections): Add rnglists field.
5501 (read_attribut_reprocess): Add tag parameter.
5502 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5503 (cu_debug_rnglists_section): New function (decl & definition).
5504 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5505 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5506 die whose range is being checked; get rnglist section from
5507 cu_debug_rnglists_section, to get from either objfile or dwo file as
5508 appropriate. Add cases for DW_RLE_base_addressx,
5509 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5510 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5511 test inside if-condition and updating complaint message.
5512 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5513 dwarf2_rnglists_process.
5514 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5515 dwarf2_ranges_process.
5516 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5517 need_ranges_base and update comment appropriately. Also pass die tag
5518 to dwarf2_ranges_read.
5519 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5520 need_ranges_base and update comment appropriately. Also pass die tag
5521 to dwarf2_ranges_process.
5522 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5523 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5524 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5525 need_ranges_base and update comment appropriately. Also pass die tag
5526 to read_attribute_reprocess and dwarf2_ranges_read.
5527 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5528 and update function comment appropriately.
5529 (read_loclist_index): Call read_loclists_rnglists_header instead of
5530 read_loclist_header.
5531 (read_rnglist_index): New function.
5532 (read_attribute_reprocess): Add tag parameter. Add code for
5533 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5534 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5535
5536 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5537
5538 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5539 being resolved.
5540
5541 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5542
5543 * arch-utils.c (show_architecture): Update formatting of messages.
5544
5545 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5546
5547 * gdbtypes.h (struct type) <bounds>: Handle array and string
5548 types.
5549 * ada-lang.c (assign_aggregate): Use type::bounds on
5550 array/string type.
5551 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5552 * c-varobj.c (c_number_of_children): Likewise.
5553 (c_describe_child): Likewise.
5554 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5555 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5556 (f_type_print_base): Likewise.
5557 * f-valprint.c (f77_array_offset_tbl): Likewise.
5558 (f77_get_upperbound): Likewise.
5559 (f77_print_array_1): Likewise.
5560 * guile/scm-type.c (gdbscm_type_range): Likewise.
5561 * m2-typeprint.c (m2_array): Likewise.
5562 (m2_is_long_set_of_type): Likewise.
5563 * m2-valprint.c (get_long_set_bounds): Likewise.
5564 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5565 * python/py-type.c (typy_range): Likewise.
5566 * rust-lang.c (rust_internal_print_type): Likewise.
5567 * type-stack.c (type_stack::follow_types): Likewise.
5568 * valarith.c (value_subscripted_rvalue): Likewise.
5569 * valops.c (value_cast): Likewise.
5570
5571 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5572
5573 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5574 callers to use the equivalent accessor methods.
5575
5576 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5577
5578 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5579 (struct type) <bit_stride>: New method.
5580 (TYPE_BIT_STRIDE): Remove.
5581 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5582
5583 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5584
5585 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5586 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5587 callers to use the equivalent accessor methods instead.
5588
5589 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5592 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5593 callers to use the equivalent accessor methods instead.
5594
5595 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5598 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5599 to use dynamic_prop::kind.
5600
5601 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5602
5603 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5604 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5605 to get the bound property's kind and check against
5606 PROP_UNDEFINED.
5607
5608 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5609
5610 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5611 all callers to use type::range_bounds followed by
5612 dynamic_prop::{low,high}.
5613
5614 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5615
5616 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5617 const_val, set_const_val, baton, set_locexpr, set_loclist,
5618 set_addr_offset, variant_parts, set_variant_parts,
5619 original_type, set_original_type>: New methods.
5620 <kind>: Rename to...
5621 <m_kind>: ... this. Update all users to use the new methods
5622 instead.
5623 <data>: Rename to...
5624 <m_data>: ... this. Update all users to use the new methods
5625 instead.
5626
5627 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * gdbtypes.c (get_discrete_bounds): Return failure if
5630 the range type's bounds are not both defined and constant
5631 values.
5632 (get_array_bounds): Update comment. Remove undefined bound check.
5633
5634 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5635
5636 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5637 the type::bounds method directly.
5638
5639 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5640
5641 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5642 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5643 are used to set the range type's bounds to use set_bounds.
5644
5645 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5646
5647 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5648
5649 2020-07-10 Pedro Alves <pedro@palves.net>
5650
5651 * gdbthread.h (inferior_ref): Define.
5652 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5653 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5654 * thread.c
5655 (scoped_restore_current_thread::restore):
5656 Adjust to gdb::ref_ptr.
5657 (scoped_restore_current_thread::~scoped_restore_current_thread):
5658 Remove manual decref handling.
5659 (scoped_restore_current_thread::scoped_restore_current_thread):
5660 Adjust to use
5661 inferior_ref::new_reference/thread_info_ref::new_reference.
5662 Incref the thread before calling get_frame_id instead of after.
5663 Let TARGET_CLOSE_ERROR propagate.
5664
5665 2020-07-10 Pedro Alves <pedro@palves.net>
5666
5667 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5668 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5669 NOT_AVAILABLE_ERROR.
5670 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5671 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5672
5673 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5674 Pedro Alves <pedro@palves.net>
5675
5676 PR gdb/26199
5677 * infrun.c (threads_are_resumed_pending_p): Delete.
5678 (do_target_wait): Remove threads_are_executing and
5679 threads_are_resumed_pending_p checks from the inferior_matches
5680 lambda. Update comments.
5681
5682 2020-07-10 Pedro Alves <pedro@palves.net>
5683
5684 PR gdb/26199
5685 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5686 executing threads.
5687
5688 2020-07-10 Pedro Alves <pedro@palves.net>
5689
5690 PR gdb/26199
5691 * infrun.c (handle_no_resumed): Handle multiple targets.
5692
5693 2020-07-10 Pedro Alves <pedro@palves.net>
5694
5695 PR gdb/26199
5696 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5697 target_is_async_p.
5698
5699 2020-07-10 Pedro Alves <pedro@palves.net>
5700
5701 PR gdb/26199
5702 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5703 threads, not all threads.
5704
5705 2020-07-10 Pedro Alves <pedro@palves.net>
5706
5707 PR gdb/26199
5708 * remote.c (remote_target::open_1): Pass remote target pointer as
5709 data to create_async_event_handler.
5710 (remote_async_inferior_event_handler): Mark async event handler
5711 before returning if the remote target still has either pending
5712 events or unacknowledged notifications.
5713
5714 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5715
5716 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5717 declaration.
5718 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5719 function.
5720
5721 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5722
5723 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5724 inferior_ptid.
5725
5726 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5727
5728 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5729 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5730 AT_FREEBSD_PS_STRINGS.
5731
5732 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5733
5734 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5735 of debugfile path on Windows.
5736
5737 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5738
5739 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5740 argument to 'data'.
5741
5742 2020-07-08 Tom Tromey <tromey@adacore.com>
5743
5744 * ada-lang.c (ada_exception_message_1): Use read_memory.
5745
5746 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5747
5748 PR python/22748
5749 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5750 special handling for inline frames.
5751 * findvar.c (value_of_register_lazy): Skip inline frames when
5752 creating lazy register values.
5753 * frame.c (frame_id_computed_p): Delete definition.
5754 * frame.h (frame_id_computed_p): Delete declaration.
5755
5756 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5757
5758 * NEWS: Mention additions to Python API.
5759 * python/py-arch.c (archpy_register_groups): New function.
5760 (arch_object_methods): Add 'register_groups' method.
5761 * python/py-registers.c (reggroup_iterator_object): New struct.
5762 (reggroup_object): New struct.
5763 (gdbpy_new_reggroup): New function.
5764 (gdbpy_reggroup_to_string): New function.
5765 (gdbpy_reggroup_name): New function.
5766 (gdbpy_reggroup_iter): New function.
5767 (gdbpy_reggroup_iter_next): New function.
5768 (gdbpy_new_reggroup_iterator): New function
5769 (gdbpy_initialize_registers): Register new types.
5770 (reggroup_iterator_object_type): Define new Python type.
5771 (gdbpy_reggroup_getset): New static global.
5772 (reggroup_object_type): Define new Python type.
5773 * python/python-internal.h
5774
5775 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5776
5777 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5778 * python/py-arch.c (archpy_registers): New function.
5779 (arch_object_methods): Add 'registers' method.
5780 * python/py-registers.c: New file.
5781 * python/python-internal.h
5782 (gdbpy_new_register_descriptor_iterator): Declare.
5783 (gdbpy_initialize_registers): Declare.
5784 * python/python.c (do_start_initialization): Call
5785 gdbpy_initialize_registers.
5786 * NEWS: Mention additions to the Python API.
5787
5788 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5789
5790 * NEWS: Mention new Python API method.
5791 * python/py-unwind.c (pending_framepy_architecture): New function.
5792 (pending_frame_object_methods): Add architecture method.
5793
5794 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5795
5796 * gdbarch.c: Regenerate.
5797 * gdbarch.h: Regenerate.
5798 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5799 (gdbarch_data): Use internal_error for the case where
5800 deprecated_set_gdbarch_data was originally needed.
5801 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5802 and use passed in obstack.
5803 (libunwind_frame_set_descr): Should no longer get back NULL from
5804 gdbarch_data.
5805 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5806 type.
5807 * user-regs.c (user_regs_init): Update parameters, and use passed
5808 in obstack.
5809 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5810 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5811
5812 2020-07-06 Tom de Vries <tdevries@suse.de>
5813
5814 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5815 End-Of-Sequence in lte_is_less_than.
5816 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5817 "gdb: Don't reorder line table entries too much when sorting".
5818
5819 2020-07-06 Tom de Vries <tdevries@suse.de>
5820
5821 PR tui/26205
5822 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5823
5824 2020-07-05 Tom de Vries <tdevries@suse.de>
5825
5826 PR build/26187
5827 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5828 std::uncaught_exceptions instead of deprecated
5829 std::uncaught_exception.
5830
5831 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5832
5833 * macroexp.h (macro_stringify): Return
5834 gdb::unique_xmalloc_ptr<char>.
5835 * macroexp.c (macro_stringify): Likewise.
5836 * macrotab.c (fixup_definition): Update.
5837
5838 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5839
5840 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5841 (lex_one_token): Update.
5842 * macroexp.c (struct macro_buffer) <release>: Return
5843 gdb::unique_xmalloc_ptr<char>.
5844 (macro_stringify): Update.
5845 (macro_expand): Update.
5846 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5847 * macroexp.h (macro_expand_next): Likewise.
5848
5849 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * macroexp.h (macro_lookup_ftype): Remove.
5852 (macro_expand, macro_expand_once, macro_expand_next): Remove
5853 lookup function parameters, add scope parameter.
5854 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5855 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5856 * macroscope.h (standard_macro_lookup): Change parameter type
5857 to macro_scope.
5858 * macroscope.c (standard_macro_lookup): Likewise.
5859 * c-exp.y (lex_one_token): Update.
5860 * macrocmd.c (macro_expand_command): Likewise.
5861 (macro_expand_once_command): Likewise.
5862
5863 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * inf-loop.c (inferior_event_handler): Remove client_data param.
5866 * inf-loop.h (inferior_event_handler): Likewise.
5867 * infcmd.c (step_1): Adjust.
5868 * infrun.c (proceed): Adjust.
5869 (fetch_inferior_event): Remove client_data param.
5870 (infrun_async_inferior_event_handler): Adjust.
5871 * infrun.h (fetch_inferior_event): Remove `void *` param.
5872 * linux-nat.c (handle_target_event): Adjust.
5873 * record-btrace.c (record_btrace_handle_async_inferior_event):
5874 Adjust.
5875 * record-full.c (record_full_async_inferior_event_handler):
5876 Adjust.
5877 * remote.c (remote_async_inferior_event_handler): Adjust.
5878
5879 2020-07-01 Tom Tromey <tom@tromey.com>
5880
5881 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5882 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5883
5884 2020-07-01 Tom Tromey <tom@tromey.com>
5885
5886 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5887 tui_gen_win_info.
5888 (tui_win_info::make_window): Merge with
5889 tui_gen_win_info::make_window.
5890 (tui_win_info::make_visible): Move from tui_gen_win_info.
5891 * tui/tui-win.c (tui_win_info::max_width): Move from
5892 tui_gen_win_info.
5893 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5894 type.
5895 <window_factory>: Likewise.
5896 * tui/tui-layout.c (tui_win_info::resize): Move from
5897 tui_gen_win_info.
5898 (make_standard_window): Change return type.
5899 (get_locator_window, tui_get_window_by_name): Likewise.
5900 (tui_layout_window::apply): Remove a cast.
5901 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5902 (struct tui_win_info): Merge with tui_gen_win_info.
5903 (struct tui_gen_win_info): Remove.
5904
5905 2020-07-01 Tom Tromey <tom@tromey.com>
5906
5907 * tui/tui-stack.h (struct tui_locator_window): Derive from
5908 tui_win_info.
5909 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5910 <can_box>: New method.
5911
5912 2020-07-01 Tom Tromey <tom@tromey.com>
5913
5914 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5915
5916 2020-07-01 Tom Tromey <tom@tromey.com>
5917
5918 * tui/tui-regs.c (tui_data_window::display_registers_from)
5919 (tui_data_window::display_registers_from)
5920 (tui_data_window::first_data_item_displayed)
5921 (tui_data_window::delete_data_content_windows): Update.
5922 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5923 Remove.
5924 (tui_data_window::check_register_values): Update.
5925 (tui_data_item_window::rerender): Add parameters. Update.
5926 (tui_data_item_window::refresh_window): Remove.
5927 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5928 virtual.
5929 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5930 tui_gen_win_info.
5931 <refresh_window, max_height, min_height>: Remove.
5932 <rerender>: Add parameters.
5933 <x, y, visible>: New members.
5934 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5935 <m_item_width>: New member.
5936
5937 2020-07-01 Tom Tromey <tom@tromey.com>
5938
5939 * tui/tui-regs.c (tui_data_window::show_register_group)
5940 (tui_data_window::check_register_values): Update.
5941 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5942 from item_no.
5943
5944 2020-07-01 Tom Tromey <tom@tromey.com>
5945
5946 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5947 useless "if".
5948
5949 2020-07-01 Tom Tromey <tom@tromey.com>
5950
5951 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5952 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5953
5954 2020-07-01 Tom Tromey <tom@tromey.com>
5955
5956 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5957 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5958 (struct tui_line_or_address): Move from tui-data.h.
5959 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5960 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5961 (tui_cmd_window, tui_source_window_base, tui_source_window)
5962 (tui_disasm_window): Don't declare.
5963 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5964 to tui-winsource.h.
5965 (SINGLE_KEY): Move to tui-stack.c.
5966
5967 2020-07-01 Tom Tromey <tom@tromey.com>
5968
5969 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5970 std::string.
5971 * tui/tui-regs.c (class tab_expansion_file): New.
5972 (tab_expansion_file::write): New method.
5973 (tui_register_format): Change return type. Use
5974 tab_expansion_file.
5975 (tui_get_register, tui_data_window::display_registers_from)
5976 (tui_data_item_window::rerender): Update.
5977 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5978 * tui/tui-io.c (tui_expand_tabs): Remove.
5979
5980 2020-07-01 Tom Tromey <tom@tromey.com>
5981
5982 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5983
5984 2020-07-01 Fangrui Song <maskray@google.com>
5985
5986 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5987
5988 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5989
5990 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5991 forms for DW_AT_associated and DW_AT_allocated attributes,
5992 which is already checked in function attr_to_dynamic_prop.
5993
5994 2020-06-30 Tom Tromey <tromey@adacore.com>
5995
5996 * dwarf2/read.c (quirk_rust_enum): Correctly call
5997 alloc_rust_variant for default-less enum.
5998
5999 2020-06-30 Tom Tromey <tromey@adacore.com>
6000
6001 PR build/26183:
6002 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6003 gdb::to_string.
6004
6005 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6006
6007 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6008 * gdbarch.h: Re-generate.
6009
6010 2020-06-28 Tom Tromey <tom@tromey.com>
6011
6012 * command.h (cmd_types): Remove.
6013 (cmd_type): Don't declare.
6014 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6015 typedef.
6016 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6017 * cli/cli-decode.c (cmd_type): Remove.
6018
6019 2020-06-27 Pedro Alves <palves@redhat.com>
6020
6021 * fork-child.c (prefork_hook): Adjust.
6022 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6023 Delete.
6024 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6025 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6026 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6027 Remove declarations.
6028 (struct inferior) <set_tty, tty>: New methods.
6029 (struct inferior) <terminal>: Rename to ...
6030 (struct inferior) <m_terminal>: ... this and make private.
6031 * main.c (captured_main_1): Adjust.
6032 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6033 (mi_cmd_inferior_tty_show): Adjust.
6034 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6035 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6036
6037 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6038
6039 * configure.ac: Add --enable-libctf: handle --disable-static
6040 properly.
6041 * acinclude.m4: sinclude ../config/enable.m4.
6042 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6043 (LIBCTF): Substitute in.
6044 (CTF_DEPS): New, likewise.
6045 (CLIBS): libctf needs symbols from libbfd: move earlier.
6046 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6047 flags.
6048 * ctfread.c: Surround in ENABLE_LIBCTF.
6049 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6050 * configure: Regenerate.
6051 * config.in: Likewise.
6052
6053 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6054
6055 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6056
6057 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6058
6059 * inferior.h (struct inferior) <terminal>: Change type to
6060 gdb::unique_xmalloc_ptr<char>.
6061 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6062 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6063 field, adjust to unique pointer.
6064 (get_inferior_io_terminal): Adjust to unique pointer.
6065
6066 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6067
6068 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6069 registers, not just the known core set of registers.
6070
6071 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6072
6073 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6074 fflags, frm, and fcsr registers.
6075 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6076 restore groups.
6077 (riscv_tdesc_unknown_reg): New function.
6078 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6079 tdesc_use_registers.
6080 * riscv-tdep.h (struct gdbarch_tdep): Add
6081 unknown_csrs_first_regnum, unknown_csrs_count,
6082 duplicate_fflags_regnum, duplicate_frm_regnum, and
6083 duplicate_fcsr_regnum fields.
6084
6085 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6086
6087 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6088 callback, use the callback (when not null) to help number unknown
6089 registers.
6090 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6091 (tdesc_use_registers): Add extra parameter to declaration.
6092
6093 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6094
6095 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6096 in the file.
6097 (class riscv_pending_register_alias): Likewise.
6098 (riscv_register_feature::register_info): Change 'required_p' field
6099 to 'required', and change its type. Add 'check' member function.
6100 (riscv_register_feature::register_info::check): Define new member
6101 function.
6102 (riscv_xreg_feature): Change initialisation of 'required' field.
6103 (riscv_freg_feature): Likewise.
6104 (riscv_virtual_feature): Likewise.
6105 (riscv_csr_feature): Likewise.
6106 (riscv_check_tdesc_feature): Take extra parameter, the csr
6107 tdesc_feature, rewrite the function to use the new
6108 riscv_register_feature::register_info::check function.
6109 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6110
6111 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6112
6113 * features/Makefile: Remove all references to the deleted files
6114 below.
6115 * features/riscv/32bit-csr.c: Deleted.
6116 * features/riscv/32bit-csr.xml: Deleted.
6117 * features/riscv/64bit-csr.c: Deleted.
6118 * features/riscv/64bit-csr.xml: Deleted.
6119 * features/riscv/rebuild-csr-xml.sh: Deleted.
6120
6121 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6122
6123 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6124 whitespace error for declaration of names member variable.
6125 (struct riscv_register_feature): Add new prefer_first_name member
6126 variable, and fix whitespace error in declaration of registers.
6127 (riscv_xreg_feature): Initialize prefer_first_name field.
6128 (riscv_freg_feature): Likewise.
6129 (riscv_virtual_feature): Likewise.
6130 (riscv_csr_feature): Likewise.
6131 (riscv_register_name): Expand on comments. Remove register name
6132 modifications for CSR and virtual registers.
6133
6134 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6135
6136 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6137 errors.
6138
6139 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6140
6141 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6142 riscv-opc.h.
6143 (class riscv_pending_register_alias): New class.
6144 (riscv_check_tdesc_feature): Take vector of pending aliases and
6145 populate it as appropriate.
6146 (riscv_setup_register_aliases): Delete.
6147 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6148 to riscv_check_tdesc_feature in all cases. Use the vector to
6149 create the register aliases.
6150
6151 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6152
6153 * sol2-tdep.c (sol2_static_transform_name): Remove.
6154 (sol2_init_abi): Don't register it.
6155 * gdbarch.sh (static_transform_name): Remove.
6156 * gdbarch.c, gdbarch.h: Regenerate.
6157
6158 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6159 gdbarch_static_transform_name.
6160 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6161 * stabsread.c (define_symbol) <'X'>: Remove.
6162 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6163 handling.
6164 <'V'>: Likewise.
6165 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6166 <'S'>: Remove call to gdbarch_static_transform_name.
6167
6168 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6169
6170 * procfs.c (procfs_pre_trace): New function.
6171 (procfs_target::create_inferior): Pass it to fork_inferior.
6172
6173 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6174
6175 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6176 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6177 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6178 sol2-tdep.o, sparc-sol2-tdep.o.
6179 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6180 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6181 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6182 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6183
6184 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6185
6186 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6187 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6188 Call sol2_init_abi.
6189 Remove calls to set_gdbarch_skip_solib_resolver,
6190 set_gdbarch_core_pid_to_str.
6191 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6192 (i386_sol2_static_transform_name): Remove.
6193 (i386_sol2_init_abi): Call sol2_init_abi.
6194 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6195 set_gdbarch_static_transform_name,
6196 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6197 Use sol2_sigtramp_p.
6198 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6199 (sol2_sigtramp_p): New function.
6200 (sol2_static_transform_name): New function.
6201 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6202 (sol2_init_abi): New function.
6203 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6204 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6205 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6206 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6207 (sparc_sol2_static_transform_name): Remove.
6208 (sparc32_sol2_init_abi): Call sol2_init_abi.
6209 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6210 set_gdbarch_static_transform_name,
6211 set_gdbarch_skip_solib_resolver,
6212 set_gdbarch_core_pid_to_str.
6213 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6214 (sparc_sol2_static_transform_name): Remove
6215 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6216 call sol2_sigtramp_p.
6217 (sparc64_sol2_init_abi): Call sol2_init_abi.
6218 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6219 set_gdbarch_static_transform_name,
6220 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6221
6222 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6223
6224 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6225 * exec.c (validate_exec_file): If from_tty, set both
6226 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6227 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6228 and from_tty, unconditionally ask a confirmation.
6229
6230 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6231
6232 * target-descriptions.c (tdesc_architecture_name): Protect against
6233 NULL pointer dereference.
6234 (maint_print_xml_tdesc_cmd): New function.
6235 (_initialize_target_descriptions): Register new 'maint print
6236 xml-tdesc' command and give it the filename completer.
6237 * NEWS: Mention new 'maint print xml-tdesc' command.
6238
6239 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6240
6241 * target-descriptions.c (class tdesc_compatible_info): New class.
6242 (struct target_desc): Change type of compatible vector.
6243 (tdesc_compatible_p): Update for change in type of
6244 target_desc::compatible.
6245 (tdesc_compatible_info_list): New function.
6246 (tdesc_compatible_info_arch_name): New function.
6247 (tdesc_add_compatible): Update for change in type of
6248 target_desc::compatible.
6249 (print_c_tdesc::visit_pre): Likewise.
6250
6251 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6252
6253 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6254 whitespace to underscore.
6255 (maint_print_c_tdesc_cmd): Use fake filename for target
6256 descriptions that came from the target.
6257 (_initialize_target_descriptions): Add filename command completion
6258 for 'maint print c-tdesc'.
6259
6260 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6261
6262 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6263 lines.
6264
6265 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6266
6267 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6268 lines.
6269 (dwarf2_find_location_expression): Likewise.
6270 (call_site_parameter_matches): Likewise.
6271 (dwarf2_compile_expr_to_ax): Likewise.
6272 (disassemble_dwarf_expression): Likewise.
6273 (loclist_describe_location): Likewise.
6274
6275 2020-06-23 Pedro Alves <palves@redhat.com>
6276
6277 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6278 progspace-and-thread.h. Include scoped-mock-context.h instead.
6279 (register_to_value_test): Use scoped_mock_context.
6280 * regcache.c: Include "scoped-mock-context.h".
6281 (cooked_read_test): Don't error out if a target is already pushed.
6282 Use scoped_mock_context. Adjust.
6283 * scoped-mock-context.h: New file.
6284
6285 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6286
6287 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6288 initializer.
6289 (ada_language::is_string_type_p): New member function.
6290 * c-lang.c (c_language_data): Delete la_is_string_type_p
6291 initializer.
6292 (cplus_language_data): Likewise.
6293 (asm_language_data): Likewise.
6294 (minimal_language_data): Likewise.
6295 * d-lang.c (d_language_data): Likewise.
6296 * f-lang.c (f_is_string_type_p): Delete function, implementation
6297 moved to f_language::is_string_type_p.
6298 (f_language_data): Delete la_is_string_type_p initializer.
6299 (f_language::is_string_type_p): New member function,
6300 implementation from f_is_string_type_p.
6301 * go-lang.c (go_is_string_type_p): Delete function, implementation
6302 moved to go_language::is_string_type_p.
6303 (go_language_data): Delete la_is_string_type_p initializer.
6304 (go_language::is_string_type_p): New member function,
6305 implementation from go_is_string_type_p.
6306 * language.c (language_defn::is_string_type_p): Define new member
6307 function.
6308 (default_is_string_type_p): Make static, add comment copied from
6309 header file.
6310 (unknown_language_data): Delete la_is_string_type_p initializer.
6311 (unknown_language::is_string_type_p): New member function.
6312 (auto_language_data): Delete la_is_string_type_p initializer.
6313 (auto_language::is_string_type_p): New member function.
6314 * language.h (language_data): Delete la_is_string_type_p field.
6315 (language_defn::is_string_type_p): Declare new function.
6316 (default_is_string_type_p): Delete desclaration, move comment to
6317 definition.
6318 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6319 moved to m2_language::is_string_type_p.
6320 (m2_language_data): Delete la_is_string_type_p initializer.
6321 (m2_language::is_string_type_p): New member function,
6322 implementation from m2_is_string_type_p.
6323 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6324 initializer.
6325 * opencl-lang.c (opencl_language_data): Likewise.
6326 * p-lang.c (pascal_is_string_type_p): Delete function,
6327 implementation moved to pascal_language::is_string_type_p.
6328 (pascal_language_data): Delete la_is_string_type_p initializer.
6329 (pascal_language::is_string_type_p): New member function,
6330 implementation from pascal_is_string_type_p.
6331 * rust-lang.c (rust_is_string_type_p): Delete function,
6332 implementation moved to rust_language::is_string_type_p.
6333 (rust_language_data): Delete la_is_string_type_p initializer.
6334 (rust_language::is_string_type_p): New member function,
6335 implementation from rust_is_string_type_p.
6336 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6337 is_string_type_p.
6338
6339 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6340
6341 * ada-lang.c (ada_language_data): Delete la_print_typedef
6342 initializer.
6343 (ada_language::print_typedef): New member function.
6344 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6345 (cplus_language_data): Likewise.
6346 (asm_language_data): Likewise.
6347 (minimal_language_data): Likewise.
6348 * d-lang.c (d_language_data): Likewise.
6349 * f-lang.c (f_language_data): Likewise.
6350 (f_language::print_typedef): New member function.
6351 * go-lang.c (go_language_data): Delete la_print_typedef
6352 initializer.
6353 * language.c (language_defn::print_typedef): Define member
6354 function.
6355 (unknown_language_data): Delete la_print_typedef initializer.
6356 (unknown_language::print_typedef): New member function.
6357 (auto_language_data): Delete la_print_typedef initializer.
6358 (auto_language::print_typedef): New member function.
6359 * language.h (language_data): Delete la_print_typedef field.
6360 (language_defn::print_typedef): Declare new member function.
6361 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6362 (default_print_typedef): Delete declaration.
6363 * m2-lang.c (m2_language_data): Delete la_print_typedef
6364 initializer.
6365 (m2_language::print_typedef): New member function.
6366 * objc-lang.c (objc_language_data): Delete la_print_typedef
6367 initializer.
6368 * opencl-lang.c (opencl_language_data): Likewise.
6369 * p-lang.c (pascal_language_data): Likewise.
6370 (pascal_language::print_typedef): New member function.
6371 * rust-lang.c (rust_print_typedef): Delete function,
6372 implementation moved to rust_language::print_typedef.
6373 (rust_language): Delete la_print_typedef initializer.
6374 (rust_language::print_typedef): New member function,
6375 implementation from rust_print_typedef.
6376 * typeprint.c (default_print_typedef): Delete.
6377
6378 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6379
6380 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6381 (ada_language::printstr): New member function.
6382 * c-lang.c (c_language_data): Delete la_printstr initializer.
6383 (cplus_language_data): Likewise.
6384 (asm_language_data): Likewise.
6385 (minimal_language_data): Likewise.
6386 * d-lang.c (d_language_data): Likewise.
6387 * f-lang.c (f_printstr): Rename to f_language::printstr.
6388 (f_language_data): Delete la_printstr initializer.
6389 (f_language::printstr): New member function, implementation from
6390 f_printstr.
6391 * go-lang.c (go_language_data): Delete la_printstr initializer.
6392 * language.c (language_defn::printstr): Define new member
6393 function.
6394 (unk_lang_printstr): Delete.
6395 (unknown_language_data): Delete la_printstr initializer.
6396 (unknown_language::printstr): New member function.
6397 (auto_language_data): Delete la_printstr initializer.
6398 (auto_language::printstr): New member function.
6399 * language.h (language_data): Delete la_printstr field.
6400 (language_defn::printstr): Declare new member function.
6401 (LA_PRINT_STRING): Update call to printstr.
6402 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6403 (m2_language_data): Delete la_printstr initializer.
6404 (m2_language::printstr): New member function, implementation from
6405 m2_printstr.
6406 * objc-lang.c (objc_language_data): Delete la_printstr
6407 initializer.
6408 * opencl-lang.c (opencl_language_data): Likewise.
6409 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6410 (pascal_language_data): Delete la_printstr initializer.
6411 (pascal_language::printstr): New member function, implementation
6412 from pascal_printstr.
6413 * p-lang.h (pascal_printstr): Delete declaration.
6414 * rust-lang.c (rust_printstr): Update header comment.
6415 (rust_language_data): Delete la_printstr initializer.
6416 (rust_language::printstr): New member function.
6417
6418 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6419
6420 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6421 (ada_language::printchar): New member function.
6422 * c-lang.c (c_language_data): Delete la_printchar initializer.
6423 (cplus_language_data): Likewise.
6424 (asm_language_data): Likewise.
6425 (minimal_language_data): Likewise.
6426 * d-lang.c (d_language_data): Likewise.
6427 * f-lang.c (f_printchar): Rename to f_language::printchar.
6428 (f_language_data): Delete la_printchar initializer.
6429 (f_language::printchar): New member function, implementation from
6430 f_printchar.
6431 * go-lang.c (go_language_data): Delete la_printchar initializer.
6432 * language.c (unk_lang_printchar): Delete.
6433 (language_defn::printchar): Define new member function.
6434 (unknown_language_data): Delete la_printchar initializer.
6435 (unknown_language::printchar): New member function.
6436 (auto_language_data): Delete la_printchar initializer.
6437 (auto_language::printchar): New member function.
6438 * language.h (language_data): Delete la_printchar field.
6439 (language_defn::printchar): Declare new member function.
6440 (LA_PRINT_CHAR): Update call to printchar.
6441 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6442 (m2_language::printchar): New member function.
6443 * objc-lang.c (objc_language_data): Delete la_printchar
6444 initializer.
6445 * opencl-lang.c (opencl_language_data): Likewise.
6446 * p-lang.c (pascal_language_data): Delete la_printchar
6447 initializer.
6448 (pascal_language::printchar): New member function.
6449 * rust-lang.c (rust_printchar): Rename to
6450 rust_language::printchar.
6451 (rust_language_data): Delete la_printchar initializer.
6452 (rust_language::printchar): New member function, implementation
6453 from rust_printchar.
6454
6455 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6456
6457 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6458 (ada_language_data): Delete la_emitchar initializer.
6459 (ada_language::emitchar): New member function, implementation from
6460 emit_char.
6461 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6462 (cplus_language_data): Likewise.
6463 (asm_language_data): Likewise.
6464 (minimal_language_data): Likewise.
6465 * d-lang.c (d_language_data): Likewise.
6466 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6467 (f_language_data): Delete la_emitchar initializer.
6468 (f_language::emitchar): New member function, implementation from
6469 f_emit_char.
6470 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6471 * language.c (unk_lang_emit_char): Delete.
6472 (language_defn::emitchar): New member function definition.
6473 (unknown_language_data): Delete la_emitchar initializer.
6474 (unknown_language::emitchar): New member function.
6475 (auto_language_data): Delete la_emitchar initializer.
6476 (auto_language::emitchar): New member function.
6477 * language.h (language_data): Delete la_emitchar field.
6478 (language_defn::emitchar): New member field declaration.
6479 (LA_EMIT_CHAR): Update call to emitchar.
6480 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6481 (m2_language_data): Delete la_emitchar initializer.
6482 (m2_language::emitchar): New member function, implementation from
6483 m2_emit_char.
6484 * objc-lang.c (objc_language_data): Delete la_emitchar
6485 initializer.
6486 * opencl-lang.c (opencl_language_data): Likewise.
6487 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6488 (pascal_language_data): Delete la_emitchar initializer.
6489 (pascal_language::emitchar): New member function, implementation
6490 from pascal_emit_char.
6491 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6492 (rust_language_data): Delete la_emitchar initializer.
6493 (rust_language::emitchar): New member function, implementation
6494 from rust_emitchar.
6495
6496 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6497
6498 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6499 (ada_language_data): Delete la_post_parser initializer.
6500 (ada_language::post_parser): New member function.
6501 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6502 (cplus_language_data): Likewise.
6503 (asm_language_data): Likewise.
6504 (minimal_language_data): Likewise.
6505 * d-lang.c (d_language_data): Likewise.
6506 * f-lang.c (f_language_data): Likewise.
6507 * go-lang.c (go_language_data): Likewise.
6508 * language.c (unknown_language_data): Likewise.
6509 (auto_language_data): Likewise.
6510 * language.h (language_data): Delete la_post_parser field.
6511 (language_defn::post_parser): New member function.
6512 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6513 * objc-lang.c (objc_language_data): Likewise.
6514 * opencl-lang.c (opencl_language_data): Likewise.
6515 * p-lang.c (pascal_language_data): Likewise.
6516 * parse.c (parse_exp_in_context): Update call to post_parser.
6517 (null_post_parser): Delete definition.
6518 * parser-defs.h (null_post_parser): Delete declaration.
6519 * rust-lang.c (rust_language_data): Delete la_post_parser
6520 initializer.
6521
6522 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6523
6524 * ada-lang.c (parse): Rename to ada_language::parser.
6525 (ada_language_data): Delete la_parser initializer.
6526 (ada_language::parser): New member function, implementation from
6527 parse.
6528 * c-lang.c (c_language_data): Delete la_parser initializer.
6529 (cplus_language_data): Likewise.
6530 (asm_language_data): Likewise.
6531 (minimal_language_data): Likewise.
6532 * d-lang.c (d_language_data): Likewise.
6533 (d_language::parser): New member function.
6534 * f-lang.c (f_language_data): Delete la_parser initializer.
6535 (f_language::parser): New member function.
6536 * go-lang.c (go_language_data): Delete la_parser initializer.
6537 (go_language::parser): New member function.
6538 * language.c (unk_lang_parser): Delete.
6539 (language_defn::parser): Define new member function.
6540 (unknown_language_data): Delete la_parser initializer.
6541 (unknown_language::parser): New member function.
6542 (auto_language_data): Delete la_parser initializer.
6543 (auto_language::parser): New member function.
6544 * language.h (language_data): Delete la_parser field.
6545 (language_defn::parser): Declare new member function.
6546 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6547 (m2_language::parser): New member function.
6548 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6549 * opencl-lang.c (opencl_language_data): Likewise.
6550 * p-lang.c (pascal_language_data): Likewise.
6551 (pascal_language::parser): New member function.
6552 * parse.c (parse_exp_in_context): Update call to parser.
6553 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6554 (rust_language::parser): New member function.
6555
6556 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6557
6558 * top.c (print_gdb_configuration): Print --with-python-libdir
6559 configuration value.
6560
6561 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6562
6563 * NEWS: Mention change to the alias command.
6564
6565 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6566
6567 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6568 (alias_command_completer)
6569 (make_alias_options_def_group): New functions.
6570 (alias_opts, alias_option_defs): New struct and array.
6571 (alias_usage_error): Update usage.
6572 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6573 Use option framework.
6574 (_initialize_cli_cmds): Update alias command help.
6575 Update aliases command help.
6576 (show_user):
6577 Add NULL for new default_args lookup_cmd argument.
6578 (valid_command_p): Rename to validate_aliased_command.
6579 Add NULL for new default_args lookup_cmd argument. Verify that the
6580 aliased_command has no default args.
6581 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6582 (lookup_cmd_1, lookup_cmd): New argument default_args.
6583 (add_alias_cmd):
6584 Add NULL for new default_args lookup_cmd argument.
6585 (print_help_for_command): Show default args under the layout
6586 alias some_alias = some_aliased_cmd some_alias_default_arg.
6587 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6588 xfree default_args in destructor.
6589 * cli/cli-script.c (process_next_line, do_define_command):
6590 Add NULL for new default_args lookup_cmd argument.
6591 * command.h: Declare new default_args argument in lookup_cmd
6592 and lookup_cmd_1.
6593 * completer.c (complete_line_internal_1):
6594 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6595 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6596 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6597 Likewise.
6598 * infcmd.c (_initialize_infcmd): Likewise.
6599 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6600 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6601 * python/py-param.c (add_setshow_generic): Likewise.
6602 * remote.c (_initialize_remote): Likewise.
6603 * top.c (execute_command): Prepend default_args if command has some.
6604 (set_verbose):
6605 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6606 * tracepoint.c (validate_actionline, encode_actions_1):
6607 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6608
6609 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6610
6611 * jit.c (jit_read_descriptor): Use bool as the return type.
6612 (jit_breakpoint_re_set_internal): Use bool as the return type.
6613 Invert the return value logic; return true if the jit breakpoint
6614 has been successfully initialized.
6615 (jit_inferior_init): Update the call to
6616 jit_breakpoint_re_set_internal.
6617
6618 2020-06-22 Pedro Alves <palves@redhat.com>
6619
6620 PR gdb/25939
6621 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6622 Use the current inferior instead. Don't return
6623 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6624 wait again.
6625 * sol-thread.c (sol_thread_target::wait): Don't reference
6626 inferior_ptid.
6627 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6628 (sol_update_thread_list_callback): Use the current inferior's pid
6629 instead of inferior_ptid.
6630
6631 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6632
6633 * procfs.c: Cleanup many comments.
6634
6635 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6636 (AFTER_WATCHFLAG): Replace by value.
6637
6638 (MAIN_PROC_NAME_FORMAT): Inline ...
6639 (create_procinfo): ... here.
6640
6641 (procfs_debug_inferior): Remove SYS_exec handling.
6642 (syscall_is_exec): Likewise.
6643 (procfs_set_exec_trap): Likewise.
6644
6645 (syscall_is_lwp_exit): Inline in callers.
6646 (syscall_is_exit): Likewise.
6647 (syscall_is_exec): Likewise.
6648 (syscall_is_lwp_create): Likewise.
6649
6650 (invalidate_cache): Remove #if 0 code.
6651
6652 (make_signal_thread_runnable): Remove.
6653 (procfs_target::resume): Remove #if 0 code.
6654
6655 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6656
6657 PR gdb/25939
6658 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6659 call ...
6660 (procfs_target::create_inferior): ... here.
6661
6662 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6663
6664 * exec.c (validate_exec_file): Ensure the build-id is up to
6665 date by calling reopen_exec_file (that checks file timestamp
6666 to decide to re-read the file).
6667
6668 2020-06-18 Pedro Alves <palves@redhat.com>
6669
6670 PR gdb/25412
6671 * gdbthread.h (delete_thread, delete_thread_silent)
6672 (find_thread_ptid): Update comments.
6673 * thread.c (current_thread_): New global.
6674 (is_current_thread): Move higher, and reimplement.
6675 (inferior_thread): Reimplement.
6676 (set_thread_exited): Use bool. Add assertions.
6677 (add_thread_silent): Simplify thread-reuse handling by always
6678 calling delete_thread.
6679 (delete_thread): Remove intro comment.
6680 (find_thread_ptid): Skip exited threads.
6681 (switch_to_thread_no_regs): Write to current_thread_.
6682 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6683 INFERIOR_PTID. Clear current_thread_.
6684
6685 2020-06-18 Pedro Alves <palves@redhat.com>
6686
6687 * aix-thread.c (pd_update): Use switch_to_thread.
6688
6689 2020-06-18 Pedro Alves <palves@redhat.com>
6690
6691 * ravenscar-thread.c (ravenscar_thread_target): Update.
6692 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6693 (ravenscar_thread_target::add_active_thread): ... this. Don't
6694 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6695 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6696
6697 2020-06-18 Pedro Alves <palves@redhat.com>
6698
6699 * nat/windows-nat.c (current_windows_thread): Remove.
6700 * nat/windows-nat.h (current_windows_thread): Remove.
6701 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6702 Adjust.
6703 (display_selectors): Adjust to fetch the current
6704 windows_thread_info based on inferior_ptid.
6705 (fake_create_process): No longer write to current_windows_thread.
6706 (windows_nat_target::get_windows_debug_event):
6707 Don't set inferior_ptid or current_windows_thread.
6708 (windows_nat_target::wait): Adjust to not rely on
6709 current_windows_thread.
6710 (do_initial_windows_stuff): Now a method of windows_nat_target.
6711 Switch to the last_ptid thread.
6712 (windows_nat_target::attach): Adjust.
6713 (windows_nat_target::detach): Use switch_to_no_thread instead of
6714 writing to inferior_ptid directly.
6715 (windows_nat_target::create_inferior): Adjust.
6716
6717 2020-06-18 Pedro Alves <palves@redhat.com>
6718
6719 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6720
6721 2020-06-18 Pedro Alves <palves@redhat.com>
6722
6723 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6724 after creating it, instead of writing to inferior_ptid. Don't
6725 write to inferior_ptid.
6726
6727 2020-06-18 Pedro Alves <palves@redhat.com>
6728
6729 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6730
6731 2020-06-18 Pedro Alves <palves@redhat.com>
6732
6733 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6734 it, instead of writing to inferior_ptid.
6735
6736 2020-06-18 Pedro Alves <palves@redhat.com>
6737
6738 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6739 to inferior_ptid.
6740
6741 2020-06-18 Pedro Alves <palves@redhat.com>
6742
6743 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6744 instead of writing to inferior_ptid directly.
6745
6746 2020-06-18 Pedro Alves <palves@redhat.com>
6747
6748 * corelow.c (core_target::close): Use switch_to_no_thread instead
6749 of writing to inferior_ptid directly.
6750 (add_to_thread_list, core_target_open): Use switch_to_thread
6751 instead of writing to inferior_ptid directly.
6752
6753 2020-06-18 Pedro Alves <palves@redhat.com>
6754
6755 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6756 inferior_ptid.
6757 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6758 inferior_ptid.
6759 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6760 inferior_ptid directly.
6761 (darwin_nat_target::init_thread_list): Switch to thread, instead
6762 of writing to inferior_ptid.
6763 (darwin_nat_target::attach): Don't write to inferior_ptid.
6764 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6765
6766 2020-06-18 Pedro Alves <palves@redhat.com>
6767
6768 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6769 thread.
6770 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6771 Instead use switch_to_thread.
6772 (gnu_nat_target::detach): Use switch_to_no_thread
6773 instead of writing to inferior_ptid directly. Used passed-in
6774 inferior instead of looking up the inferior by pid.
6775
6776 2020-06-18 Pedro Alves <palves@redhat.com>
6777
6778 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6779 inferior_ptid.
6780
6781 2020-06-18 Pedro Alves <palves@redhat.com>
6782
6783 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6784 inferior_ptid.
6785 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6786 thread.
6787 (nto_procfs_target::detach): Avoid referencing
6788 inferior_ptid. Use switch_to_no_thread instead of writing to
6789 inferior_ptid directly.
6790 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6791 instead of writing to inferior_ptid directly.
6792 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6793 to thread.
6794
6795 2020-06-18 Pedro Alves <palves@redhat.com>
6796
6797 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6798 after creating it, instead of writing to inferior_ptid.
6799 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6800 to inferior_ptid directly.
6801 (gdbsim_target::wait): Don't write to inferior_ptid.
6802
6803 2020-06-18 Pedro Alves <palves@redhat.com>
6804
6805 * remote.c (remote_target::remote_notice_new_inferior): Use
6806 switch_to_thread instead of writing to inferior_ptid directly.
6807 (remote_target::add_current_inferior_and_thread): Use
6808 switch_to_no_thread instead of writing to inferior_ptid directly.
6809 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6810 and switch_to_thread instead of using set_current_inferior or
6811 writing to inferior_ptid directly.
6812
6813 2020-06-18 Pedro Alves <palves@redhat.com>
6814
6815 * tracectf.c (ctf_target_open): Switch to added thread instead of
6816 writing to inferior_ptid directly.
6817 (ctf_target::close): Use switch_to_no_thread instead of writing to
6818 inferior_ptid directly.
6819
6820 2020-06-18 Pedro Alves <palves@redhat.com>
6821
6822 * tracefile-tfile.c (tfile_target_open): Don't write to
6823 inferior_ptid directly, instead switch to added thread.
6824 (tfile_target::close): Use switch_to_no_thread instead of writing
6825 to inferior_ptid directly.
6826
6827 2020-06-18 Pedro Alves <palves@redhat.com>
6828
6829 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6830 (procfs_target::detach): Use switch_to_no_thread
6831 instead of writing to inferior_ptid directly.
6832 (do_attach): Change return type to void. Switch to the added
6833 thread.
6834 (procfs_target::create_inferior): Switch to the added thread.
6835 (procfs_do_thread_registers): Don't write to inferior_ptid.
6836
6837 2020-06-18 Pedro Alves <palves@redhat.com>
6838
6839 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6840 of writing to inferior_ptid.
6841 (scoped_restore_exited_inferior): Delete.
6842 (handle_vfork_child_exec_or_exit): Simplify using
6843 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6844 instead of writing to inferior_ptid.
6845 (THREAD_STOPPED_BY): Delete.
6846 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6847 (thread_stopped_by_hw_breakpoint): Delete.
6848 (save_waitstatus): Use
6849 scoped_restore_current_thread+switch_to_thread, and call
6850 target_stopped_by_watchpoint instead of
6851 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6852 instead of thread_stopped_by_sw_breakpoint, and
6853 target_stopped_by_hw_breakpoint instead of
6854 thread_stopped_by_hw_breakpoint.
6855 (handle_inferior_event)
6856 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6857 inferior_ptid directly, nor
6858 set_current_inferior/set_current_program_space. Use
6859 switch_to_thread / switch_to_inferior_no_thread instead.
6860
6861 2020-06-18 Pedro Alves <palves@redhat.com>
6862
6863 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6864 instead of writing to inferior_ptid.
6865
6866 2020-06-18 Pedro Alves <palves@redhat.com>
6867
6868 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6869 added thread.
6870 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6871 to the added thread.
6872 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6873 instead of writing to inferior_ptid.
6874
6875 2020-06-18 Pedro Alves <palves@redhat.com>
6876
6877 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6878 (register_to_value_test): Mock a program_space too. Heap-allocate
6879 the address space. Don't write to inferior_ptid. Use
6880 switch_to_thread instead.
6881
6882 2020-06-18 Pedro Alves <palves@redhat.com>
6883
6884 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6885 Delete.
6886 (find_signalled_thread()): New, factored out from
6887 linux_make_corefile_notes and adjusted to handle exited threads.
6888 (linux_make_corefile_notes): Adjust to use the new
6889 find_signalled_thread.
6890
6891 2020-06-18 Pedro Alves <palves@redhat.com>
6892
6893 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6894 of saving/restoring inferior_ptid.
6895
6896 2020-06-17 Tom Tromey <tom@tromey.com>
6897
6898 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6899 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6900 declare.
6901 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6902
6903 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6904
6905 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6906 of partial symtabs.
6907
6908 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6909
6910 * regformats/reg-arm.dat: Remove.
6911 * regformats/reg-bfin.dat: Remove.
6912 * regformats/reg-cris.dat: Remove.
6913 * regformats/reg-crisv32.dat: Remove.
6914 * regformats/reg-m32r.dat: Remove.
6915 * regformats/reg-tilegx.dat: Remove.
6916 * regformats/reg-tilegx32.dat: Remove.
6917
6918 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6919
6920 * features/Makefile (WHICH): Remove arm files.
6921 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6922 * regformats/arm/arm-with-neon.dat: Remove.
6923 * regformats/arm/arm-with-vfpv2.dat: Remove.
6924 * regformats/arm/arm-with-vfpv3.dat: Remove.
6925
6926 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6927
6928 * features/Makefile (XMLTOC): Remove rx.xml.
6929
6930 2020-06-17 Pedro Alves <palves@redhat.com>
6931
6932 * gdbthread.h (thread_control_state) <trap_expected> Update
6933 comments.
6934
6935 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6936
6937 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6938 ada_language::lookup_symbol_nonlocal.
6939 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6940 (ada_language::lookup_symbol_nonlocal): New member function,
6941 implementation from ada_lookup_symbol_nonlocal.
6942 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6943 initializer.
6944 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6945 initializer.
6946 (cplus_language::lookup_symbol_nonlocal): New member function.
6947 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6948 (minimal_language_data) Likewise.
6949 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6950 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6951 initializer.
6952 (d_language::lookup_symbol_nonlocal): New member function.
6953 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6954 initializer.
6955 (f_language::lookup_symbol_nonlocal): New member function.
6956 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6957 initializer.
6958 * language.c (unknown_language_data): Likewise.
6959 (auto_language_data): Likewise.
6960 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6961 field.
6962 (language_defn::lookup_symbol_nonlocal): New member function.
6963 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6964 initializer.
6965 * objc-lang.c (objc_language_data): Likewise.
6966 * opencl-lang.c (opencl_language_data): Likewise.
6967 * p-lang.c (pascal_language_data): Likewise.
6968 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6969 rust_language::lookup_symbol_nonlocal.
6970 (rust_language_data): Delete la_lookup_symbol_nonlocal
6971 initializer.
6972 (rust_language::lookup_symbol_nonlocal): New member function,
6973 implementation from rust_lookup_symbol_nonlocal.
6974 * symtab.c (lookup_symbol_aux): Update call to
6975 lookup_symbol_nonlocal.
6976 (basic_lookup_symbol_nonlocal): Rename to...
6977 (language_defn::lookup_symbol_nonlocal): ...this, and update
6978 header comment. Remove language_defn parameter, and replace with
6979 uses of `this'.
6980 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6981
6982 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6983
6984 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6985 initializer.
6986 (ada_language::value_print_inner): New member function.
6987 * c-lang.c (c_language_data): Delete la_value_print_inner
6988 initializer.
6989 (cplus_language_data): Likewise.
6990 (asm_language_data): Likewise.
6991 (minimal_language_data): Likewise.
6992 * d-lang.c (d_language_data): Likewise.
6993 (d_language::value_print_inner): New member function.
6994 * f-lang.c (f_language_data): Delete la_value_print_inner
6995 initializer.
6996 (f_language::value_print_inner): New member function.
6997 * f-lang.h (f_value_print_innner): Rename to...
6998 (f_value_print_inner): ...this (note spelling of 'inner').
6999 * f-valprint.c (f_value_print_innner): Rename to...
7000 (f_value_print_inner): ...this (note spelling of 'inner').
7001 * go-lang.c (go_language_data): Delete la_value_print_inner
7002 initializer.
7003 (go_language::value_print_inner): New member function.
7004 * language.c (language_defn::value_print_inner): Define new member
7005 function.
7006 (unk_lang_value_print_inner): Delete.
7007 (unknown_language_data): Delete la_value_print_inner initializer.
7008 (unknown_language::value_print_inner): New member function.
7009 (auto_language_data): Delete la_value_print_inner initializer.
7010 (auto_language::value_print_inner): New member function.
7011 * language.h (language_data): Delete la_value_print_inner field.
7012 (language_defn::value_print_inner): Delcare new member function.
7013 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7014 initializer.
7015 (m2_language::value_print_inner): New member function.
7016 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7017 initializer.
7018 * opencl-lang.c (opencl_language_data): Likewise.
7019 * p-lang.c (pascal_language_data): Likewise.
7020 (pascal_language::value_print_inner): New member function.
7021 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7022 initializer.
7023 (rust_language::value_print_inner): New member function.
7024 * valprint.c (do_val_print): Update call to value_print_inner.
7025
7026 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7027
7028 * ada-lang.c (ada_language_data): Delete la_value_print
7029 initializer.
7030 (ada_language::value_print): New member function.
7031 * c-lang.c (c_language_data): Delete la_value_print initializer.
7032 (cplus_language_data): Likewise.
7033 (asm_language_data): Likewise.
7034 (minimal_language_data): Likewise.
7035 * d-lang.c (d_language_data): Likewise.
7036 * f-lang.c (f_language_data): Likewise.
7037 * go-lang.c (go_language_data): Likewise.
7038 * language.c (unk_lang_value_print): Delete.
7039 (language_defn::value_print): Define new member function.
7040 (unknown_language_data): Delete la_value_print initializer.
7041 (unknown_language::value_print): New member function.
7042 (auto_language_data): Delete la_value_print initializer.
7043 (auto_language::value_print): New member function.
7044 * language.h (language_data): Delete la_value_print field.
7045 (language_defn::value_print): Declare new member function.
7046 (LA_VALUE_PRINT): Update call to value_print.
7047 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7048 * objc-lang.c (objc_language_data): Likewise.
7049 * opencl-lang.c (opencl_language_data): Likewise.
7050 * p-lang.c (pascal_language_data): Likewise.
7051 (pascal_language::value_print): New member function.
7052 * rust-lang.c (rust_language_data): Delete la_value_print
7053 initializer.
7054
7055 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7056
7057 * ada-lang.c (ada_watch_location_expression): Rename to
7058 ada_language::watch_location_expression.
7059 (ada_language_data): Delete la_watch_location_expression
7060 initializer.
7061 (ada_language::watch_location_expression): New member function,
7062 implementation from ada_watch_location_expression.
7063 * breakpoint.c (watch_command_1): Update call to
7064 watch_location_expression.
7065 * c-lang.c (c_watch_location_expression): Rename to
7066 language_defn::watch_location_expression.
7067 (c_language_data): Delete la_watch_location_expression
7068 initializer.
7069 (cplus_language_data): Likewise.
7070 (asm_language_data): Likewise.
7071 (minimal_language_data): Likewise.
7072 * c-lang.h (c_watch_location_expression): Delete declaration.
7073 * d-lang.c (d_language_data): Delete la_watch_location_expression
7074 initializer.
7075 * f-lang.c (f_language_data): Likewise.
7076 * go-lang.c (go_language_data): Likewise.
7077 * language.c (language_defn::watch_location_expression): Member
7078 function implementation from c_watch_location_expression.
7079 (unknown_language_data): Delete la_watch_location_expression
7080 initializer.
7081 (auto_language_data): Likewise.
7082 * language.h (language_data): Delete la_watch_location_expression
7083 field.
7084 (language_defn::watch_location_expression): Declare new member
7085 function.
7086 * m2-lang.c (m2_language_data): Delete
7087 la_watch_location_expression initializer.
7088 * objc-lang.c (objc_language_data): Likewise.
7089 * opencl-lang.c (opencl_language_data): Likewise.
7090 * p-lang.c (pascal_language_data): Likewise.
7091 * rust-lang.c (rust_watch_location_expression): Rename to
7092 rust_language::watch_location_expression.
7093 (rust_language_data): Delete la_watch_location_expression
7094 initializer.
7095 (rust_language::watch_location_expression): New member function,
7096 implementation from rust_watch_location_expression.
7097
7098 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7099
7100 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7101 ada_language::collect_symbol_completion_matches.
7102 (ada_language_data): Delete la_collect_symbol_completion_matches
7103 initializer.
7104 (ada_language::collect_symbol_completion_matches): New member
7105 function, implementation from
7106 ada_collect_symbol_completion_matches.
7107 * c-lang.c (c_language_data): Delete
7108 la_collect_symbol_completion_matches initializer.
7109 (cplus_language_data): Likewise.
7110 (asm_language_data): Likewise.
7111 (minimal_language_data): Likewise.
7112 * d-lang.c (d_language_data): Likewise.
7113 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7114 f_language::collect_symbol_completion_matches.
7115 (f_language_data): Delete la_collect_symbol_completion_matches
7116 initializer.
7117 (f_language::collect_symbol_completion_matches) New member
7118 function, implementation from f_collect_symbol_completion_matches.
7119 * go-lang.c (go_language_data): Delete
7120 la_collect_symbol_completion_matches initializer.
7121 * language.c (unknown_language_data): Likewise.
7122 (auto_language_data): Likewise.
7123 * language.h (language_data): Delete
7124 la_collect_symbol_completion_matches field.
7125 (language_defn::collect_symbol_completion_matches): New member
7126 function.
7127 * m2-lang.c (m2_language_data): Delete
7128 la_collect_symbol_completion_matches initializer.
7129 * objc-lang.c (objc_language_data): Likewise.
7130 * opencl-lang.c (opencl_language_data): Likewise.
7131 * p-lang.c (pascal_language_data): Likewise.
7132 * rust-lang.c (rust_language_data): Likewise.
7133 * symtab.c (default_collect_symbol_completion_matches): Delete.
7134 (collect_symbol_completion_matches): Update call to
7135 collect_symbol_completion_matches.
7136 (collect_symbol_completion_matches_type): Likewise.
7137 * symtab.h (default_collect_symbol_completion_matches): Delete
7138 declaration.
7139
7140 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7141
7142 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7143 (ada_language_data): Delete la_word_break_characters initializer.
7144 (ada_language::word_break_characters): New member function.
7145 * c-lang.c (c_language_data): Delete la_word_break_characters
7146 initializer.
7147 (cplus_language_data): Likewise.
7148 (asm_language_data): Likewise.
7149 (minimal_language_data): Likewise.
7150 * completer.c: Update global comment.
7151 (advance_to_expression_complete_word_point): Update call to
7152 word_break_characters.
7153 (complete_files_symbols): Likewise.
7154 (complete_line_internal_1): Likewise.
7155 (default_completer_handle_brkchars): Likewise.
7156 (skip_quoted_chars): Likewise.
7157 * d-lang.c (d_language_data): Delete la_word_break_characters
7158 initializer.
7159 * f-lang.c (f_word_break_characters): Delete.
7160 (f_language_data): Delete la_word_break_characters initializer.
7161 (f_language::word_break_characters): New member function.
7162 * go-lang.c (go_language_data): Delete la_word_break_characters
7163 initializer.
7164 * language.c (unknown_language_data): Likewise.
7165 (auto_language_data): Likewise.
7166 * language.h (default_word_break_characters): Move declaration to
7167 earlier in the file.
7168 (language_data): Delete la_word_break_characters field.
7169 (language_defn::word_break_characters): New member function.
7170 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7171 initializer.
7172 * objc-lang.c (objc_language_data): Likewise.
7173 * opencl-lang.c (opencl_language_data): Likewise.
7174 * p-lang.c (pascal_language_data): Likewise.
7175 * rust-lang.c (rust_language_data): Likewise.
7176
7177 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7178
7179 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7180 (ada_language_data): Delete la_get_symbol_name_matcher
7181 initializer.
7182 (language_defn::get_symbol_name_matcher_inner): New member
7183 function.
7184 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7185 initializer.
7186 (cplus_language_data): Likewise.
7187 (cplus_language::get_symbol_name_matcher_inner): New member
7188 function.
7189 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7190 (minimal_language_data): Likewise.
7191 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7192 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7193 initializer.
7194 * dictionary.c (iter_match_first_hashed): Update call to
7195 get_symbol_name_matcher.
7196 (iter_match_next_hashed): Likewise.
7197 (iter_match_next_linear): Likewise.
7198 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7199 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7200 initializer.
7201 (f_language::get_symbol_name_matcher_inner): New member function.
7202 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7203 initializer.
7204 * language.c (default_symbol_name_matcher): Update header comment,
7205 make static.
7206 (language_defn::get_symbol_name_matcher): New definition.
7207 (language_defn::get_symbol_name_matcher_inner): Likewise.
7208 (get_symbol_name_matcher): Delete.
7209 (unknown_language_data): Delete la_get_symbol_name_matcher
7210 initializer.
7211 (auto_language_data): Likewise.
7212 * language.h (language_data): Delete la_get_symbol_name_matcher
7213 field.
7214 (language_defn::get_symbol_name_matcher): New member function.
7215 (language_defn::get_symbol_name_matcher_inner): Likewise.
7216 (default_symbol_name_matcher): Delete declaration.
7217 * linespec.c (find_methods): Update call to
7218 get_symbol_name_matcher.
7219 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7220 initializer.
7221 * minsyms.c (lookup_minimal_symbol): Update call to
7222 get_symbol_name_matcher.
7223 (iterate_over_minimal_symbols): Likewise.
7224 * objc-lang.c (objc_language_data): Delete
7225 la_get_symbol_name_matcher initializer.
7226 * opencl-lang.c (opencl_language_data): Likewise.
7227 * p-lang.c (pascal_language_data): Likewise.
7228 * psymtab.c (psymbol_name_matches): Update call to
7229 get_symbol_name_matcher.
7230 * rust-lang.c (rust_language_data): Delete
7231 la_get_symbol_name_matcher initializer.
7232 * symtab.c (symbol_matches_search_name): Update call to
7233 get_symbol_name_matcher.
7234 (compare_symbol_name): Likewise.
7235
7236 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7237
7238 * ada-lang.c (ada_language_data): Delete la_compute_program
7239 initializer.
7240 * c-lang.c (c_language_data): Likewise.
7241 (c_language::compute_program): New member function.
7242 (cplus_language_data): Delete la_compute_program initializer.
7243 (cplus_language::compute_program): New member function.
7244 (asm_language_data): Delete la_compute_program initializer.
7245 (minimal_language_data): Likewise.
7246 * c-lang.h (c_compute_program): Update comment.
7247 (cplus_compute_program): Likewise.
7248 * compile/compile-c-support.c (c_compute_program): Likewise.
7249 (cplus_compute_program): Likewise.
7250 * compile/compile.c (compile_to_object): Update call to
7251 la_compute_program.
7252 * d-lang.c (d_language_data): Delete la_compute_program
7253 initializer.
7254 * f-lang.c (f_language_data): Likewise.
7255 * go-lang.c (go_language_data): Likewise.
7256 * language.c (unknown_language_data): Likewise.
7257 (auto_language_data): Likewise.
7258 * language.h (language_data): Delete la_compute_program field.
7259 (language_defn::compute_program): New member function.
7260 * m2-lang.c (m2_language_data): Delete la_compute_program
7261 initializer.
7262 * objc-lang.c (objc_language_data): Likewise.
7263 * opencl-lang.c (opencl_language_data): Likewise.
7264 * p-lang.c (pascal_language_data): Likewise.
7265 * rust-lang.c (rust_language_data): Likewise.
7266
7267 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7268
7269 * ada-lang.c (ada_language_data) Delete
7270 la_class_name_from_physname initializer.
7271 * c-lang.c (c_language_data): Likewise.
7272 (cplus_language_data): Likewise.
7273 (cplus_language::class_name_from_physname): New member function.
7274 (asm_language_data): Delete la_class_name_from_physname
7275 initializer.
7276 (minimal_language_data): Likewise.
7277 * d-lang.c (d_language_data): Likewise.
7278 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7279 method on language_defn class.
7280 (guess_full_die_structure_name): Likewise.
7281 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7282 initializer.
7283 * go-lang.c (go_language_data): Likewise.
7284 * language.c (language_class_name_from_physname): Delete.
7285 (unk_lang_class_name): Delete.
7286 (unknown_language_data): Delete la_class_name_from_physname
7287 initializer.
7288 (auto_language_data): Likewise.
7289 * language.h (language_data): Delete la_class_name_from_physname
7290 field.
7291 (language_defn::class_name_from_physname): New function.
7292 (language_class_name_from_physname): Delete declaration.
7293 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7294 initializer.
7295 * objc-lang.c (objc_language_data): Likewise.
7296 * opencl-lang.c (opencl_language_data): Likewise.
7297 * p-lang.c (pascal_language_data): Likewise.
7298 * rust-lang.c (rust_language_data): Likewise.
7299
7300 2020-06-16 Tom Tromey <tom@tromey.com>
7301
7302 * tui/tui-data.h (STATUS_NAME): New macro.
7303 * tui/tui-layout.c (tui_remove_some_windows)
7304 (initialize_known_windows, tui_register_window)
7305 (tui_layout_split::remove_windows, initialize_layouts)
7306 (tui_new_layout_command): Don't use hard-coded window names.
7307
7308 2020-06-16 Tom Tromey <tom@tromey.com>
7309
7310 PR tui/25348:
7311 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7312 tui_initialize_readline. Only run once. Call rl_initialize.
7313 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7314 tui_initialize_readline.
7315 * tui/tui-io.c (tui_setup_io): Call
7316 tui_ensure_readline_initialized.
7317 * tui/tui-interp.c (tui_interp::init): Update.
7318
7319 2020-06-16 Tom Tromey <tom@tromey.com>
7320
7321 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7322 Also preserve the status window.
7323
7324 2020-06-16 Tom Tromey <tom@tromey.com>
7325
7326 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7327 where m_window==nullptr.
7328
7329 2020-06-15 Tom Tromey <tromey@adacore.com>
7330
7331 * windows-nat.c (windows_nat::handle_output_debug_string):
7332 Update.
7333 (windows_nat::handle_ms_vc_exception): Update.
7334 * target.h (target_read_string): Change API.
7335 * target.c (target_read_string): Change API.
7336 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7337 Update.
7338 * solib-frv.c (frv_current_sos): Update.
7339 * solib-dsbt.c (dsbt_current_sos): Update.
7340 * solib-darwin.c (darwin_current_sos): Update.
7341 * linux-thread-db.c (inferior_has_bug): Update.
7342 * expprint.c (print_subexp_standard): Update.
7343 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7344 (ada_exception_message_1): Update.
7345
7346 2020-06-15 Tom Tromey <tromey@adacore.com>
7347
7348 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7349
7350 2020-06-15 Tom Tromey <tromey@adacore.com>
7351
7352 * valprint.c (read_string): Update comment.
7353 * target.c (MIN): Remove.
7354 (target_read_string): Rewrite.
7355
7356 2020-06-15 Tom Tromey <tromey@adacore.com>
7357
7358 * corefile.c (read_memory_string): Remove.
7359 * ada-valprint.c (ada_value_print_ptr): Update.
7360 * ada-lang.h (ada_tag_name): Change return type.
7361 * ada-lang.c (type_from_tag): Update.
7362 (ada_tag_name_from_tsd): Change return type. Use
7363 target_read_string.
7364 (ada_tag_name): Likewise.
7365 * gdbcore.h (read_memory_string): Don't declare.
7366
7367 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7368
7369 * symtab.c (rbreak_command): Ignore Windows drive colon.
7370
7371 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7372
7373 * NEWS: Mention removed GDBserver host support.
7374
7375 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7376
7377 * features/riscv/rebuild-csr-xml.sh: Updated.
7378
7379 2020-06-11 Tom Tromey <tom@tromey.com>
7380
7381 PR gdb/18318:
7382 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7383
7384 2020-06-09 Jonny Grant <jg@jguk.org>
7385 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7386
7387 * main.c (captured_main_1): Don't print new line after help.
7388 (print_gdb_help): add mailing list and IRC channel information
7389 to --help. Add new lines between items in the footer. Remove
7390 quotes around bug url.
7391
7392 2020-06-11 Keith Seitz <keiths@redhat.com>
7393
7394 PR gdb/21356
7395 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7396 Resolve typedefs for type length calculations.
7397
7398 2020-06-10 Tom de Vries <tdevries@suse.de>
7399
7400 PR ada/24713
7401 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7402 (write_psymbols): Enable .gdb_index for ada.
7403 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7404 ada.
7405
7406 2020-06-10 Tom de Vries <tdevries@suse.de>
7407
7408 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7409 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7410 namei" instead of "const char *name" argument.
7411 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7412 dw2_symtab_iter_init.
7413
7414 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7415
7416 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7417 to use type::field and field::type instead.
7418
7419 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7422 to use field::type instead.
7423
7424 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7425
7426 * gdbtypes.h (struct field) <type, set_type>: New methods.
7427 Rename `type` field to...
7428 <m_type>: ... this. Change references throughout to use type or
7429 set_type methods.
7430 (FIELD_TYPE): Use field::type. Change call sites that modify
7431 the field's type to use field::set_type instead.
7432
7433 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7434
7435 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7436 to use type::index_type instead.
7437
7438 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7439
7440 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7441 methods.
7442 (TYPE_INDEX_TYPE): Use type::index_type.
7443 * gdbtypes.c (create_array_type_with_stride): Likewise.
7444
7445 2020-06-07 Tom Tromey <tom@tromey.com>
7446
7447 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7448 parameter.
7449 (generic_value_print): Update.
7450
7451 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7452
7453 Revert commit 982a38f60b0.
7454 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7455
7456 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7457
7458 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7459 avoid use after free.
7460
7461 2020-06-05 Tom de Vries <tdevries@suse.de>
7462
7463 * NEWS: Fix typos.
7464
7465 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7466
7467 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7468 the per_bfd object.
7469 (dwarf2_read_debug_names): Likewise.
7470 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7471 object when re-using a per_bfd object with an index.
7472
7473 2020-06-03 Tom de Vries <tdevries@suse.de>
7474
7475 PR symtab/26046
7476 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7477 children for C++.
7478 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7479 DW_TAG_subprogram.
7480
7481 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7482
7483 * ada-lang.c (ada_language_data): Delete skip_trampoline
7484 initializer.
7485 * c-lang.c (c_language_data): Likewise.
7486 (cplus_language_data): Likewise.
7487 (cplus_language::skip_trampoline): New member function.
7488 (asm_language_data): Delete skip_trampoline initializer.
7489 (minimal_language_data): Likewise.
7490 * d-lang.c (d_language_data): Likewise.
7491 * f-lang.c (f_language_data): Likewise.
7492 * go-lang.c (go_language_data): Likewise.
7493 * language.c (unk_lang_trampoline): Delete function.
7494 (skip_language_trampoline): Update.
7495 (unknown_language_data): Delete skip_trampoline initializer.
7496 (auto_language_data): Likewise.
7497 * language.h (language_data): Delete skip_trampoline field.
7498 (language_defn::skip_trampoline): New function.
7499 * m2-lang.c (m2_language_data): Delete skip_trampoline
7500 initializer.
7501 * objc-lang.c (objc_skip_trampoline): Delete function, move
7502 implementation to objc_language::skip_trampoline.
7503 (objc_language_data): Delete skip_trampoline initializer.
7504 (objc_language::skip_trampoline): New member function with
7505 implementation from objc_skip_trampoline.
7506 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7507 initializer.
7508 * p-lang.c (pascal_language_data): Likewise.
7509 * rust-lang.c (rust_language_data): Likewise.
7510
7511 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7512
7513 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7514 (ada_language::demangle): New member function.
7515 * c-lang.c (c_language_data): Delete la_demangle initializer.
7516 (cplus_language_data): Delete la_demangle initializer.
7517 (cplus_language::demangle): New member function.
7518 (asm_language_data): Delete la_demangle initializer.
7519 (minimal_language_data): Delete la_demangle initializer.
7520 * d-lang.c (d_language_data): Delete la_demangle initializer.
7521 (d_language::demangle): New member function.
7522 * f-lang.c (f_language_data): Delete la_demangle initializer.
7523 (f_language::demangle): New member function.
7524 * go-lang.c (go_language_data): Delete la_demangle initializer.
7525 (go_language::demangle): New member function.
7526 * language.c (language_demangle): Update.
7527 (unk_lang_demangle): Delete.
7528 (unknown_language_data): Delete la_demangle initializer.
7529 (unknown_language::demangle): New member function.
7530 (auto_language_data): Delete la_demangle initializer.
7531 (auto_language::demangle): New member function.
7532 * language.h (language_data): Delete la_demangle field.
7533 (language_defn::demangle): New function.
7534 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7535 * objc-lang.c (objc_language_data): Delete la_demangle
7536 initializer.
7537 (objc_language::demangle): New member function.
7538 * opencl-lang.c (opencl_language_data): Delete la_demangle
7539 initializer.
7540 * p-lang.c (pascal_language_data): Likewise.
7541 * rust-lang.c (rust_language_data): Likewise.
7542 (rust_language::demangle): New member function.
7543
7544 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7545
7546 * ada-lang.c (ada_language_data): Delete la_print_type
7547 initializer.
7548 (ada_language::print_type): New member function.
7549 * c-lang.c (c_language_data): Delete la_print_type initializer.
7550 (c_language::print_type): New member function.
7551 (cplus_language_data): Delete la_print_type initializer.
7552 (cplus_language::print_type): New member function.
7553 (asm_language_data): Delete la_print_type initializer.
7554 (asm_language::print_type): New member function.
7555 (minimal_language_data): Delete la_print_type initializer.
7556 (minimal_language::print_type): New member function.
7557 * d-lang.c (d_language_data): Delete la_print_type initializer.
7558 (d_language::print_type): New member function.
7559 * f-lang.c (f_language_data): Delete la_print_type initializer.
7560 (f_language::print_type): New member function.
7561 * go-lang.c (go_language_data): Delete la_print_type initializer.
7562 (go_language::print_type): New member function.
7563 * language.c (unk_lang_print_type): Delete.
7564 (unknown_language_data): Delete la_print_type initializer.
7565 (unknown_language::print_type): New member function.
7566 (auto_language_data): Delete la_print_type initializer.
7567 (auto_language::print_type): New member function.
7568 * language.h (language_data): Delete la_print_type field.
7569 (language_defn::print_type): New function.
7570 (LA_PRINT_TYPE): Update.
7571 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7572 (m2_language::print_type): New member function.
7573 * objc-lang.c (objc_language_data): Delete la_print_type
7574 initializer.
7575 (objc_language::print_type): New member function.
7576 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7577 to opencl_language::print_type.
7578 (opencl_language_data): Delete la_print_type initializer.
7579 (opencl_language::print_type): New member function, implementation
7580 from opencl_print_type.
7581 * p-lang.c (pascal_language_data): Delete la_print_type
7582 initializer.
7583 (pascal_language::print_type): New member function.
7584 * rust-lang.c (rust_print_type): Delete, implementation moved to
7585 rust_language::print_type.
7586 (rust_language_data): Delete la_print_type initializer.
7587 (rust_language::print_type): New member function, implementation
7588 from rust_print_type.
7589
7590 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7591
7592 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7593 implementation moves to...
7594 (ada_language::sniff_from_mangled_name): ...here. Update return
7595 type.
7596 (ada_language_data): Delete la_sniff_from_mangled_name
7597 initializer.
7598 * c-lang.c (c_language_data): Likewise.
7599 (cplus_language_data): Likewise.
7600 (cplus_language::sniff_from_mangled_name): New member function,
7601 implementation taken from gdb_sniff_from_mangled_name.
7602 (asm_language_data): Delete la_sniff_from_mangled_name
7603 initializer.
7604 (minimal_language_data): Likewise.
7605 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7606 implementation moves to cplus_language::sniff_from_mangled_name.
7607 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7608 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7609 moves to...
7610 (d_language::sniff_from_mangled_name): ...here.
7611 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7612 * f-lang.c (f_language_data): Likewise.
7613 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7614 moves to...
7615 (go_language::sniff_from_mangled_name): ...here.
7616 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7617 * language.c (language_sniff_from_mangled_name): Delete.
7618 (unknown_language_data): Delete la_sniff_from_mangled_name
7619 initializer.
7620 (auto_language_data): Likewise.
7621 * language.h (language_data): Delete la_sniff_from_mangled_name
7622 field.
7623 (language_defn::sniff_from_mangled_name): New function.
7624 (language_sniff_from_mangled_name): Delete declaration.
7625 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7626 field.
7627 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7628 implementation moves to...
7629 (objc_language::sniff_from_mangled_name): ...here.
7630 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7631 * opencl-lang.c (opencl_language_data): Likewise.
7632 * p-lang.c (pascal_language_data): Likewise.
7633 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7634 implementation moves to...
7635 (rust_language::sniff_from_mangled_name): ...here.
7636 (rust_language_data): Delete la_sniff_from_mangled_name
7637 initializer.
7638 * symtab.c (symbol_find_demangled_name): Call
7639 sniff_from_mangled_name member function.
7640
7641 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7642
7643 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7644 initializer.
7645 * c-lang.c (c_language_data): Likewise.
7646 (cplus_language_data): Likewise.
7647 (cplus_language::search_name_hash): New member function.
7648 (asm_language_data): Delete la_search_name_hash initializer.
7649 (minimal_language_data): Likewise.
7650 * d-lang.c (d_language_data): Likewise.
7651 * dictionary.c (default_search_name_hash): Rename to...
7652 (language_defn::search_name_hash): ...this.
7653 * f-lang.c (f_language_data): Likewise.
7654 (f_language::search_name_hash): New member function.
7655 * go-lang.c (go_language_data): Delete la_search_name_hash
7656 initializer.
7657 * language.c (unknown_language_data): Likewise.
7658 (auto_language_data): Likewise.
7659 * language.h (struct language_data): Delete la_search_name_hash
7660 field.
7661 (language_defn::search_name_hash): Declare new member function.
7662 (default_search_name_hash): Delete declaration.
7663 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7664 initializer.
7665 * objc-lang.c (objc_language_data): Likewise.
7666 * opencl-lang.c (opencl_language_data): Likewise.
7667 * p-lang.c (pascal_language_data): Likewise.
7668 * rust-lang.c (rust_language_data): Likewise.
7669 * symtab.c (search_name_hash): Update call.
7670
7671 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7672
7673 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7674 initializer.
7675 * c-lang.c (class compile_instance): Declare.
7676 (c_language_data): Delete la_get_compile_instance initializer.
7677 (c_language::get_compile_instance): New member function.
7678 (cplus_language_data): Delete la_get_compile_instance initializer.
7679 (cplus_language::get_compile_instance): New member function.
7680 (asm_language_data): Delete la_get_compile_instance initializer.
7681 (minimal_language_data): Likewise.
7682 * c-lang.h (c_get_compile_context): Update comment.
7683 (cplus_get_compile_context): Update comment.
7684 * compile/compile.c (compile_to_object): Update calls, don't rely
7685 on function pointer being NULL.
7686 * d-lang.c (d_language_data): Delete la_get_compile_instance
7687 initializer.
7688 * f-lang.c (f_language_data): Likewise.
7689 * go-lang.c (go_language_data): Likewise.
7690 * language.c (unknown_language_data): Likewise.
7691 (auto_language_data): Likewise.
7692 * language.h (language_data): Delete la_get_compile_instance field.
7693 (language_defn::get_compile_instance): New member function.
7694 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7695 initializer.
7696 * objc-lang.c (objc_language_data): Likewise.
7697 * opencl-lang.c (opencl_language_data): Likewise.
7698 * p-lang.c (pascal_language_data): Likewise.
7699 * rust-lang.c (rust_language_data): Likewise.
7700
7701 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7702
7703 * ada-lang.c (ada_add_all_symbols): Update comment.
7704 (ada_iterate_over_symbols): Delete, move implementation to...
7705 (ada_language::iterate_over_symbols): ...here, a new member
7706 function, rewrite to use range based for loop.
7707 (ada_language_data): Delete la_iterate_over_symbols initializer.
7708 * c-lang.c (c_language_data): Likewise.
7709 (cplus_language_data): Likewise.
7710 (asm_language_data): Likewise.
7711 (minimal_language_data): Likewise.
7712 * d-lang.c (d_language_data): Likewise.
7713 * f-lang.c (f_language_data): Likewise.
7714 * go-lang.c (go_language_data): Likewise.
7715 * language.c (unknown_language_data): Likewise.
7716 (auto_language_data): Likewise.
7717 * language.h (language_data): Delete la_iterate_over_symbols field.
7718 (language_defn::iterate_over_symbols): New member function.
7719 (LA_ITERATE_OVER_SYMBOLS): Update.
7720 * linespec.c (iterate_over_all_matching_symtabs): Update.
7721 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7722 initializer.
7723 * objc-lang.c (objc_language_data): Likewise.
7724 * opencl-lang.c (opencl_language_data): Likewise.
7725 * p-lang.c (pascal_language_data): Likewise.
7726 * rust-lang.c (rust_language_data): Likewise.
7727
7728 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7729
7730 * ada-lang.c (ada_language_data): Delete
7731 la_lookup_transparent_type initializer.
7732 * c-lang.c (c_language_data): Likewise.
7733 (cplus_language_data): Likewise.
7734 (cplus_language::lookup_transparent_type): New member function.
7735 (asm_language_data): Delete la_lookup_transparent_type
7736 initializer.
7737 (minimal_language_data): Likewise.
7738 * d-lang.c (d_language_data): Likewise.
7739 * f-lang.c (f_language_data): Likewise.
7740 * go-lang.c (go_language_data): Likewise.
7741 * language.c (unknown_language_data): Likewise.
7742 (auto_language_data): Likewise.
7743 * language.h (struct language_data): Delete
7744 la_lookup_transparent_type field.
7745 (language_defn::lookup_transparent_type): New member function.
7746 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7747 initializer.
7748 * objc-lang.c (objc_language_data): Likewise.
7749 * opencl-lang.c (opencl_language_data): Likewise.
7750 * p-lang.c (pascal_language_data): Likewise.
7751 * rust-lang.c (rust_language_data): Likewise.
7752 * symtab.c (symbol_matches_domain): Update call.
7753
7754 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7755
7756 * ada-lang.c (ada_language_arch_info): Delete function, move
7757 implementation to...
7758 (ada_language::language_arch_info): ...here, a new member
7759 function.
7760 (ada_language_data): Delete la_language_arch_info.
7761 * c-lang.c (c_language_data): Likewise.
7762 (c_language::language_arch_info): New member function.
7763 (cplus_language_arch_info): Delete function, move
7764 implementation to...
7765 (cplus_language::language_arch_info): ...here, a new member
7766 function.
7767 (cplus_language_data): Delete la_language_arch_info.
7768 (asm_language_data): Likewise.
7769 (asm_language::language_arch_info): New member function.
7770 (minimal_language_data): Delete la_language_arch_info.
7771 (minimal_language::language_arch_info): New member function.
7772 * d-lang.c (d_language_arch_info): Delete function, move
7773 implementation to...
7774 (d_language::language_arch_info): ...here, a new member
7775 function.
7776 (d_language_data): Delete la_language_arch_info.
7777 * f-lang.c (f_language_arch_info): Delete function, move
7778 implementation to...
7779 (f_language::language_arch_info): ...here, a new member
7780 function.
7781 (f_language_data): Delete la_language_arch_info.
7782 * go-lang.c (go_language_arch_info): Delete function, move
7783 implementation to...
7784 (go_language::language_arch_info): ...here, a new member
7785 function.
7786 (go_language_data): Delete la_language_arch_info.
7787 * language.c (unknown_language_data): Likewise.
7788 (unknown_language::language_arch_info): New member function.
7789 (auto_language_data): Delete la_language_arch_info.
7790 (auto_language::language_arch_info): New member function.
7791 (language_gdbarch_post_init): Update call to
7792 la_language_arch_info.
7793 * language.h (language_data): Delete la_language_arch_info
7794 function pointer.
7795 (language_defn::language_arch_info): New function.
7796 * m2-lang.c (m2_language_arch_info): Delete function, move
7797 implementation to...
7798 (m2_language::language_arch_info): ...here, a new member
7799 function.
7800 (m2_language_data): Delete la_language_arch_info.
7801 * objc-lang.c (objc_language_arch_info): Delete function, move
7802 implementation to...
7803 (objc_language::language_arch_info): ...here, a new member
7804 function.
7805 (objc_language_data): Delete la_language_arch_info.
7806 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7807 implementation to...
7808 (opencl_language::language_arch_info): ...here, a new member
7809 function.
7810 (opencl_language_data): Delete la_language_arch_info.
7811 * p-lang.c (pascal_language_arch_info): Delete function, move
7812 implementation to...
7813 (pascal_language::language_arch_info): ...here, a new member
7814 function.
7815 (pascal_language_data): Delete la_language_arch_info.
7816 * rust-lang.c (rust_language_arch_info): Delete function, move
7817 implementation to...
7818 (rust_language::language_arch_info): ...here, a new member
7819 function.
7820 (rust_language_data): Delete la_language_arch_info.
7821
7822 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7823
7824 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7825 initializer.
7826 * c-lang.c (c_language_data): Likewise.
7827 (cplus_language_data): Likewise.
7828 (cplus_language::pass_by_reference_info): New method.
7829 (asm_language_data): Delete la_pass_by_reference initializer.
7830 (minimal_language_data): Likewise.
7831 * cp-abi.c (cp_pass_by_reference): Remove use of
7832 default_pass_by_reference.
7833 * d-lang.c (d_language_data): Likewise.
7834 * f-lang.c (f_language_data): Likewise.
7835 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7836 default_pass_by_reference.
7837 * go-lang.c (go_language_data): Likewise.
7838 * language.c (language_pass_by_reference): Update.
7839 (default_pass_by_reference): Delete.
7840 (unknown_language_data): Delete la_pass_by_reference
7841 initializer.
7842 (auto_language_data): Likewise.
7843 * language.h (struct language_data): Delete la_pass_by_reference
7844 field.
7845 (language_defn::pass_by_reference_info): New member function.
7846 (default_pass_by_reference): Delete declaration.
7847 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7848 initializer.
7849 * objc-lang.c (objc_language_data): Likewise.
7850 * opencl-lang.c (opencl_language_data): Likewise.
7851 * p-lang.c (pascal_language_data): Likewise.
7852 * rust-lang.c (rust_language_data): Likewise.
7853
7854 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7855
7856 * ada-lang.c (ada_read_var_value): Delete function, move
7857 implementation to...
7858 (ada_language::read_var_value): ...here.
7859 (ada_language_data): Delete la_read_var_value initializer.
7860 * c-lang.c (c_language_data): Likewise.
7861 (cplus_language_data): Likewise.
7862 (minimal_language_data): Likewise.
7863 * d-lang.c (d_language_data): Likewise.
7864 * f-lang.c (f_language_data): Likewise.
7865 * findvar.c (default_read_var_value): Rename to...
7866 (language_defn::read_var_value): ...this.
7867 * findvar.c (read_var_value): Update header comment, and change to
7868 call member function instead of function pointer.
7869 * go-lang.c (go_language_data): Likewise.
7870 * language.c (unknown_language_data): Delete la_read_var_value
7871 initializer.
7872 (auto_language_data): Likewise.
7873 * language.h (struct language_data): Delete la_read_var_value
7874 field.
7875 (language_defn::read_var_value): New member function.
7876 (default_read_var_value): Delete declaration.
7877 * m2-lang.c (m2_language_data): Delete la_read_var_value
7878 initializer.
7879 * objc-lang.c (objc_language_data): Likewise.
7880 * opencl-lang.c (opencl_language_data): Likewise.
7881 * p-lang.c (pascal_language_data): Likewise.
7882 * rust-lang.c (rust_language_data): Likewise.
7883 * value.h (default_read_var_value): Delete declaration.
7884
7885 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7886
7887 * ada-lang.c (ada_print_array_index): Delete function, move
7888 implementation to...
7889 (ada_language::print_array_index): ...here.
7890 (ada_language_data): Delete la_print_array_index initializer.
7891 * c-lang.c (c_language_data): Likewise.
7892 (cplus_language_data): Likewise.
7893 (minimal_language_data): Likewise.
7894 * d-lang.c (d_language_data): Likewise.
7895 * f-lang.c (f_language_data): Likewise.
7896 * go-lang.c (go_language_data): Likewise.
7897 * language.c (default_print_array_index): Delete function, move
7898 implementation to...
7899 (language_defn::print_array_index): ...here.
7900 (unknown_language_data): Delete la_print_array_index initializer.
7901 (auto_language_data): Likewise.
7902 * language.h (struct language_data): Delete la_print_array_index
7903 field.
7904 (language_defn::print_array_index): New member function.
7905 (LA_PRINT_ARRAY_INDEX): Update.
7906 (default_print_array_index): Delete declaration.
7907 * m2-lang.c (m2_language_data): Delete la_print_array_index
7908 initializer.
7909 * objc-lang.c (objc_language_data): Likewise.
7910 * opencl-lang.c (opencl_language_data): Likewise.
7911 * p-lang.c (pascal_language_data): Likewise.
7912 * rust-lang.c (rust_language_data): Likewise.
7913
7914 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * gdb/ada-lang.c (ada_language_defn): Convert to...
7917 (ada_language_data): ...this.
7918 (class ada_language): New class.
7919 (ada_language_defn): New static global.
7920 * gdb/c-lang.c (c_language_defn): Convert to...
7921 (c_language_data): ...this.
7922 (class c_language): New class.
7923 (c_language_defn): New static global.
7924 (cplus_language_defn): Convert to...
7925 (cplus_language_data): ...this.
7926 (class cplus_language): New class.
7927 (cplus_language_defn): New static global.
7928 (asm_language_defn): Convert to...
7929 (asm_language_data): ...this.
7930 (class asm_language): New class.
7931 (asm_language_defn): New static global.
7932 (minimal_language_defn): Convert to...
7933 (minimal_language_data): ...this.
7934 (class minimal_language): New class.
7935 (minimal_language_defn): New static global.
7936 * gdb/d-lang.c (d_language_defn): Convert to...
7937 (d_language_data): ...this.
7938 (class d_language): New class.
7939 (d_language_defn): New static global.
7940 * gdb/f-lang.c (f_language_defn): Convert to...
7941 (f_language_data): ...this.
7942 (class f_language): New class.
7943 (f_language_defn): New static global.
7944 * gdb/go-lang.c (go_language_defn): Convert to...
7945 (go_language_data): ...this.
7946 (class go_language): New class.
7947 (go_language_defn): New static global.
7948 * gdb/language.c (unknown_language_defn): Remove declaration.
7949 (current_language): Initialize to nullptr, real initialization is
7950 moved to _initialize_language.
7951 (languages): Delete global.
7952 (language_defn::languages): Define.
7953 (set_language_command): Use language_defn::languages.
7954 (set_language): Likewise.
7955 (range_error): Likewise.
7956 (language_enum): Likewise.
7957 (language_def): Likewise.
7958 (add_set_language_command): Use language_def::languages for the
7959 language list, and language_def to lookup language pointers.
7960 (skip_language_trampoline): Use language_defn::languages.
7961 (unknown_language_defn): Convert to...
7962 (unknown_language_data): ...this.
7963 (class unknown_language): New class.
7964 (unknown_language_defn): New static global.
7965 (auto_language_defn): Convert to...
7966 (auto_language_data): ...this.
7967 (class auto_language): New class.
7968 (auto_language_defn): New static global.
7969 (language_gdbarch_post_init): Use language_defn::languages.
7970 (_initialize_language): Initialize current_language.
7971 * gdb/language.h (struct language_defn): Rename to...
7972 (struct language_data): ...this.
7973 (struct language_defn): New.
7974 (auto_language_defn): Delete.
7975 (unknown_language_defn): Delete.
7976 (minimal_language_defn): Delete.
7977 (ada_language_defn): Delete.
7978 (asm_language_defn): Delete.
7979 (c_language_defn): Delete.
7980 (cplus_language_defn): Delete.
7981 (d_language_defn): Delete.
7982 (f_language_defn): Delete.
7983 (go_language_defn): Delete.
7984 (m2_language_defn): Delete.
7985 (objc_language_defn): Delete.
7986 (opencl_language_defn): Delete.
7987 (pascal_language_defn): Delete.
7988 (rust_language_defn): Delete.
7989 * gdb/m2-lang.c (m2_language_defn): Convert to...
7990 (m2_language_data): ...this.
7991 (class m2_language): New class.
7992 (m2_language_defn): New static global.
7993 * gdb/objc-lang.c (objc_language_defn): Convert to...
7994 (objc_language_data): ...this.
7995 (class objc_language): New class.
7996 (objc_language_defn): New static global.
7997 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7998 (opencl_language_data): ...this.
7999 (class opencl_language): New class.
8000 (opencl_language_defn): New static global.
8001 * gdb/p-lang.c (pascal_language_defn): Convert to...
8002 (pascal_language_data): ...this.
8003 (class pascal_language): New class.
8004 (pascal_language_defn): New static global.
8005 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8006 language pointer, update comment format.
8007 * gdb/rust-lang.c (rust_language_defn): Convert to...
8008 (rust_language_data): ...this.
8009 (class rust_language): New class.
8010 (rust_language_defn): New static global.
8011
8012 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8013
8014 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8015 member variable.
8016 <m_stmt_at_address>: New member variable.
8017 (lnp_state_machine::record_line): Don't record some lines, update
8018 tracking of is_stmt at the same address.
8019 (lnp_state_machine::lnp_state_machine): Initialise new member
8020 variables.
8021
8022 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8023
8024 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8025 "-include gnu-nat-mig.h".
8026 * gnu-nat-mig.h: New file.
8027 * gnu-nat.c: Include "gnu-nat-mig.h".
8028 (exc_server, msg_reply_server, notify_server,
8029 process_reply_server): Remove declarations.
8030
8031 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8032
8033 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8034 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8035 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8036 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8037 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8038 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8039 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8040 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8041 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8042 to gnu_nat_target class.
8043 * gnu-nat.c: Likewise.
8044 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8045 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8046 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8047 object.
8048 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8049 instead of `gnu_target'.
8050
8051 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8052
8053 * i386-gnu-tdep.c: Include "gdbcore.h"
8054 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8055 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8056 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8057 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8058 i386_gnu_sigcontext_addr): New functions
8059 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8060 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8061 tdep.
8062
8063 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8064
8065 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8066 before fork_inferior call. Avoid calling it if target_is_pushed returns
8067 true.
8068
8069 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8070
8071 * gnu-nat.h (gnu_target): New variable declaration.
8072 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8073 gnu_target.
8074 * gnu-nat.c (gnu_target): New variable.
8075 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8076 add_thread_silent, and add_thread calls.
8077 (gnu_nat_target::create_inferior): Pass gnu_target to
8078 add_thread_silent, thread_change_ptid call.
8079 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8080 call.
8081
8082 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8083
8084 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8085 (gnu_nat_target::find_memory_regions): Remove unused
8086 `old_address' variable.
8087
8088 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8089
8090 * gnu-nat.c: Include "gdbarch.h".
8091
8092 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8093
8094 * reply_mig_hack.awk (Error return): Cast function through
8095 void *, to bypass compiler function call check.
8096
8097 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8098
8099 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8100 $(srcdir)/reply_mig_hack.awk.
8101
8102 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8103
8104 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8105
8106 2020-05-30 Jonny Grant <jg@jguk.org>
8107
8108 * configure.ac (ACX_BUGURL): change bug URL to https.
8109
8110 2020-05-30 Pedro Alves <palves@redhat.com>
8111
8112 * cp-support.c (replace_typedefs_template): New.
8113 (replace_typedefs_qualified_name): Handle
8114 DEMANGLE_COMPONENT_TEMPLATE.
8115
8116 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8117
8118 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8119 dwarf2/index-cache.h, dwarf2/index-write.c,
8120 dwarf2/index-write.h, dwarf2/line-header.c,
8121 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8122 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8123 variables and fields from `dwarf2_per_objfile` to just
8124 `per_objfile` throughout.
8125
8126 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8127
8128 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8129 <push_dwarf_reg_entry_value>: Add comment.
8130
8131 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8132 Keith Seitz <keiths@redhat.com>
8133
8134 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8135 instead of PyEval_ReleaseLock.
8136 (class gdbpy_gil): Move to earlier in file.
8137 (finalize_python): Set gdb_python_initialized.
8138 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8139 when not initialized.
8140
8141 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8142
8143 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8144 <push_dwarf_reg_entry_value>: Remove assert. Override
8145 per_objfile with caller_per_objfile.
8146
8147 2020-05-28 Tom de Vries <tdevries@suse.de>
8148
8149 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8150 PR gold/15646 workaround to symbol kind "type".
8151
8152 2020-05-27 Tom Tromey <tromey@adacore.com>
8153
8154 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8155
8156 2020-05-27 Tom Tromey <tromey@adacore.com>
8157
8158 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8159 Use htab_find_with_hash.
8160 <add_abbrev>: Remove "abbrev_number" parameter.
8161 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8162 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8163 (hash_abbrev): Add comment.
8164 (abbrev_table::lookup_abbrev): Move to header file.
8165 (abbrev_table::read): Update.
8166
8167 2020-05-27 Tom Tromey <tromey@adacore.com>
8168
8169 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8170 method.
8171 <canonical_name>: New member.
8172 <raw_name>: Rename from "name".
8173 (partial_die_info): Initialize canonical_name.
8174 (scan_partial_symbols): Check raw_name.
8175 (partial_die_parent_scope, partial_die_full_name)
8176 (add_partial_symbol, add_partial_subprogram)
8177 (add_partial_enumeration, load_partial_dies): Use "name" method.
8178 (partial_die_info::name): New method.
8179 (partial_die_info::read, guess_partial_die_structure_name)
8180 (partial_die_info::fixup): Update.
8181
8182 2020-05-27 Tom Tromey <tromey@adacore.com>
8183
8184 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8185 <get_ref_die_offset>: Inline.
8186 <get_ref_die_offset_complaint>: New method.
8187 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8188 (attribute::get_ref_die_offset_complaint): Rename from
8189 get_ref_die_offset. Just issue complaint.
8190
8191 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8192
8193 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8194
8195 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8196
8197 * exec.c (exec_file_attach): Use errno value of first openp failure.
8198
8199 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8200
8201 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8202 Don't close thread handle.
8203
8204 2020-05-27 Tom Tromey <tom@tromey.com>
8205 Simon Marchi <simon.marchi@efficios.com>
8206
8207 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8208 shared_ptr.
8209 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8210 member.
8211 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8212 dwarf2_per_bfd_objfile_data_key>: New globals.
8213 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8214 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8215 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8216 shared.
8217 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8218 short-circuit when sharing.
8219 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8220 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8221
8222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8223
8224 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8225 to...
8226 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8227 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8228
8229 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8230
8231 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8232 build_name_components, find_name_components_bounds>:
8233 Add per_objfile parameter.
8234 (struct mapped_index) <symbol_name_at>: Likewise.
8235 (struct mapped_debug_names): Remove constructor.
8236 <dwarf2_per_objfile>: Remove field.
8237 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8238 (mapped_index_base::find_name_components_bounds,
8239 mapped_index_base::build_name_components,
8240 dw2_expand_symtabs_matching_symbol): Likewise.
8241 (class mock_mapped_index) <symbol_name_at>: Likewise.
8242 (check_match): Likewise.
8243 (check_find_bounds_finds): Likewise.
8244 (test_mapped_index_find_name_component_bounds): Update.
8245 (CHECK_MATCH): Update.
8246 (dw2_expand_symtabs_matching): Update.
8247 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8248 per_objfile parameter.
8249 <find_vec_in_debug_names>: Likewise.
8250 <m_per_objfile>: New field.
8251 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8252 parameter.
8253 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8254 (dw2_debug_names_iterator::next): Update.
8255 (dw2_debug_names_lookup_symbol): Update.
8256 (dw2_debug_names_expand_symtabs_for_function): Update.
8257 (dw2_debug_names_map_matching_symbols): Update.
8258 (dw2_debug_names_expand_symtabs_matching): Update.
8259 (dwarf2_read_debug_names): Update.
8260
8261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8262
8263 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8264 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8265 move to dwarf2_per_objfile.
8266 <read_in_chain>: Remove.
8267 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8268 remove_all_cus, age_comp_units>: New methods.
8269 <m_dwarf2_cus>: New member.
8270 (struct dwarf2_per_cu_data) <cu>: Remove.
8271 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8272 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8273 moved to methods of dwarf2_per_objfile.
8274 (dwarf2_clear_marks): Remove.
8275 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8276 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8277 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8278 (dwarf2_per_objfile::remove_all_cus): New.
8279 (class free_cached_comp_units) <~free_cached_comp_units>:
8280 Update.
8281 (load_cu): Update.
8282 (dw2_do_instantiate_symtab): Adjust.
8283 (fill_in_sig_entry_from_dwo_entry): Adjust.
8284 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8285 (cutu_reader::cutu_reader): Likewise.
8286 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8287 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8288 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8289 and dwarf2_per_objfile::age_comp_units.
8290 (load_partial_comp_unit): Update.
8291 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8292 (process_queue): Likewise.
8293 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8294 backlink.
8295 (dwarf2_read_addr_index): Likewise.
8296 (follow_die_offset): Likewise.
8297 (dwarf2_fetch_die_loc_sect_off): Likewise.
8298 (dwarf2_fetch_constant_bytes): Likewise.
8299 (dwarf2_fetch_die_type_sect_off): Likewise.
8300 (follow_die_sig_1): Likewise.
8301 (load_full_type_unit): Likewise.
8302 (read_signatured_type): Likewise.
8303 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8304 (dwarf2_cu::~dwarf2_cu): Remove.
8305 (dwarf2_per_objfile::get_cu): New.
8306 (dwarf2_per_objfile::set_cu): New.
8307 (age_cached_comp_units): Rename to...
8308 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8309 to std::unordered_map.
8310 (free_one_cached_comp_unit): Rename to...
8311 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8312 to std::unordered_map.
8313 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8314 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8315 a dwarf2_per_objfile in data.
8316 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8317 (dwarf2_clear_marks): Remove.
8318
8319 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8320
8321 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8322 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8323 (init_tu_and_read_dwo_dies): Likewise.
8324 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8325 (cutu_reader::cutu_reader): Likewise.
8326 (load_partial_comp_unit): Likewise.
8327 (process_psymtab_comp_unit): Update.
8328 (build_type_psymtabs_1): Update.
8329 (process_skeletonless_type_unit): Update.
8330 (load_full_comp_unit): Update.
8331 (find_partial_die): Update.
8332 (dwarf2_read_addr_index): Update.
8333 (read_signatured_type): Update.
8334
8335 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8336
8337 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8338 m_header_read_in>: New fields.
8339 <get_header>: New method.
8340 * dwarf2/read.c (per_cu_header_read_in): Remove.
8341 (dwarf2_per_cu_data::get_header): New.
8342 (dwarf2_per_cu_data::addr_size): Update.
8343 (dwarf2_per_cu_data::offset_size): Update.
8344 (dwarf2_per_cu_data::ref_addr_size): Update.
8345
8346 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8347
8348 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8349 (dw2_do_instantiate_symtab): Update.
8350 (queue_and_load_all_dwo_tus): Change parameter from
8351 dwarf2_per_cu_data to dwarf2_cu.
8352 (dwarf2_fetch_die_loc_sect_off): Update.
8353 (dwarf2_fetch_constant_bytes): Update.
8354 (dwarf2_fetch_die_type_sect_off): Update.
8355
8356 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8357
8358 * dwarf2/read.c (process_full_comp_unit,
8359 process_full_type_unit): Remove per_cu, per_objfile paramters.
8360 Add dwarf2_cu parameter.
8361 (process_queue): Update.
8362
8363 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8364
8365 * dwarf2/read.c (create_cu_from_index_list): Replace
8366 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8367 (create_cus_from_index_list): Likewise.
8368 (create_cus_from_index): Likewise.
8369 (create_signatured_type_table_from_index): Likewise.
8370 (create_cus_from_debug_names_list): Likewise.
8371 (create_cus_from_debug_names): Likewise.
8372 (dwarf2_read_gdb_index): Update.
8373 (dwarf2_read_debug_names): Update.
8374
8375 2020-05-27 Tom Tromey <tom@tromey.com>
8376 Simon Marchi <simon.marchi@efficios.com>
8377
8378 * dwarf2/read.h (struct dwarf2_per_objfile)
8379 <get_type_for_signatured_type, set_type_for_signatured_type>:
8380 New methods.
8381 <m_type_map>: New member.
8382 (struct signatured_type) <type>: Remove.
8383 * dwarf2/read.c
8384 (dwarf2_per_objfile::get_type_for_signatured_type,
8385 dwarf2_per_objfile::set_type_for_signatured_type): New.
8386 (get_signatured_type): Use new methods.
8387
8388 2020-05-27 Tom Tromey <tom@tromey.com>
8389 Simon Marchi <simon.marchi@efficios.com>
8390
8391 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8392 (struct dwarf2_per_objfile) <type_units>: New member.
8393 <get_type_unit_group_unshareable>: New method.
8394 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8395 num_symtabs, symtabs>: Remove; move to
8396 type_unit_group_unshareable.
8397 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8398 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8399 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8400
8401 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8402
8403 * dwarf2/read.h (struct dwarf2_per_cu_data):
8404 <dwarf2_per_objfile>: Remove.
8405 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8406 dwarf2_per_objfile.
8407 (create_signatured_type_table_from_index): Likewise.
8408 (create_signatured_type_table_from_debug_names): Likewise.
8409 (create_debug_type_hash_table): Likewise.
8410 (fill_in_sig_entry_from_dwo_entry): Likewise.
8411 (create_type_unit_group): Likewise.
8412 (read_comp_units_from_section): Likewise.
8413 (create_cus_hash_table): Likewise.
8414
8415 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8416
8417 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8418 dwarf2_per_cu_data::dwarf2_per_objfile.
8419 (compute_compunit_symtab_includes): Likewise.
8420 (dwarf2_cu::start_symtab): Likewise.
8421
8422 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8423
8424 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8425 parameter.
8426 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8427 (read_namespace_alias): Update.
8428 (lookup_die_type): Update.
8429 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8430 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8431 Update.
8432 (disassemble_dwarf_expression): Update.
8433
8434 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8435
8436 * dwarf2/read.h (struct dwarf2_queue_item): Add
8437 dwarf2_per_objfile parameter, assign new parameter.
8438 <per_objfile>: New field.
8439 * dwarf2/read.c (free_one_cached_comp_unit): Add
8440 dwarf2_per_objfile parameter.
8441 (queue_comp_unit): Likewise.
8442 (dw2_do_instantiate_symtab): Update.
8443 (process_psymtab_comp_unit): Update.
8444 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8445 (process_imported_unit_die): Update.
8446 (queue_and_load_dwo_tu): Update.
8447 (follow_die_offset): Update.
8448 (follow_die_sig_1): Update.
8449
8450 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8451
8452 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8453 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8454 (read_call_site_scope): Assign per_objfile.
8455 (dwarf2_per_cu_data::objfile): Remove.
8456 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8457 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8458 dwarf2_per_objfile parameter.
8459 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8460 dwarf2_per_objfile parameter.
8461 (dwarf_expr_reg_to_entry_parameter): Add output
8462 dwarf2_per_objfile parameter.
8463 (locexpr_get_frame_base): Update.
8464 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8465 <push_dwarf_reg_entry_value>: Update.
8466 <call_site_to_target_addr>: Update.
8467 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8468 parameter.
8469 (value_of_dwarf_reg_entry): Update.
8470 (rw_pieced_value): Update.
8471 (indirect_synthetic_pointer): Update.
8472 (dwarf2_evaluate_property): Update.
8473 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8474 parameter.
8475 (locexpr_read_variable): Update.
8476 (locexpr_get_symbol_read_needs): Update.
8477 (loclist_read_variable): Update.
8478
8479 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8480
8481 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8482 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8483 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8484 parameter.
8485 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8486 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8487 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8488 parameter.
8489 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8490 sect_variable_value): Add dwarf2_per_objfile parameter.
8491 (class dwarf_evaluate_loc_desc) <dwarf_call,
8492 dwarf_variable_value>: Update.
8493 (fetch_const_value_from_synthetic_pointer): Add
8494 dwarf2_per_objfile parameter.
8495 (fetch_const_value_from_synthetic_pointer): Update.
8496 (coerced_pieced_ref): Update.
8497 (class symbol_needs_eval_context) <dwarf_call,
8498 dwarf_variable_value>: Update.
8499 (dwarf2_compile_expr_to_ax): Update.
8500
8501 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8502
8503 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8504 parameter.
8505 (dwarf2_evaluate_loc_desc_full): Update.
8506
8507 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8508
8509 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8510 parameter.
8511 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8512 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8513 dwarf2_per_objfile parameter.
8514 (decode_debug_loc_dwo_addresses): Likewise.
8515 (dwarf2_find_location_expression): Update.
8516 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8517 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8518 parameter.
8519 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8520 parameter.
8521 (locexpr_describe_location_1): Likewise.
8522 (locexpr_describe_location): Update.
8523
8524 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8525
8526 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8527 Remove.
8528 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8529 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8530 (dwarf2_compile_property_to_c): Update.
8531 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8532 use text offset from objfile.
8533 (locexpr_tracepoint_var_ref): Update.
8534 (locexpr_generate_c_location): Update.
8535 (loclist_describe_location): Update.
8536 (loclist_tracepoint_var_ref): Update.
8537 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8538 dwarf2_per_objfile parameter.
8539 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8540 use text offset from objfile.
8541 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8542
8543 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8544
8545 * dwarf2/expr.h (struct dwarf_expr_context)
8546 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8547 <offset>: Remove.
8548 <per_objfile>: New member.
8549 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8550 dwarf2_per_objfile parameter. Don't set offset, set
8551 per_objfile.
8552 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8553 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8554 a dwarf2_per_objfile object instead of an offset.
8555 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8556 constructor.
8557 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8558 to dwarf2_expr_executor constructor. Don't set offset.
8559 (dwarf2_fetch_cfa_info): Update.
8560 (struct dwarf2_frame_cache) <text_offset>: Remove.
8561 <per_objfile>: New field.
8562 (dwarf2_frame_cache): Update.
8563 (dwarf2_frame_prev_register): Update.
8564 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8565 <dwarf_evaluate_loc_desc>: Add constructor.
8566 (dwarf2_evaluate_loc_desc_full): Update.
8567 (dwarf2_locexpr_baton_eval): Update.
8568 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8569 Add constructor.
8570 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8571
8572 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8573
8574 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8575 addr_sized_int_type>: Move to dwarf2_cu.
8576 <int_type>: Move to dwarf2_per_objfile.
8577 (struct dwarf2_per_objfile) <int_type>: Move here.
8578 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8579 addr_sized_int_type>: Move here.
8580 (read_func_scope): Update.
8581 (read_array_type): Update.
8582 (read_tag_string_type): Update.
8583 (attr_to_dynamic_prop): Update.
8584 (dwarf2_per_cu_data::int_type): Rename to...
8585 (dwarf2_per_objfile::int_type): ... this.
8586 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8587 (dwarf2_cu::addr_sized_int_type): ... this.
8588 (read_subrange_type): Update.
8589 (dwarf2_per_cu_data::addr_type): Rename to...
8590 (dwarf2_cu::addr_type): ... this.
8591 (set_die_type): Update.
8592
8593 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8594
8595 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8596 data through per_cu->cu.
8597
8598 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8599
8600 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8601 dwarf2_per_cu_data parameter fo dwarf2_cu.
8602 (lookup_dwo_type_unit): Likewise.
8603 (read_cutu_die_from_dwo): Likewise.
8604 (lookup_dwo_unit): Likewise.
8605 (open_and_init_dwo_file): Likewise.
8606 (lookup_dwo_cutu): Likewise.
8607 (lookup_dwo_comp_unit): Likewise.
8608 (lookup_dwo_type_unit): Likewise.
8609 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8610 (cutu_reader::cutu_reader): Update.
8611
8612 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8613
8614 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8615 parameter.
8616 (process_full_type_unit): Likewise.
8617 (process_queue): Update.
8618
8619 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8620
8621 * dwarf2/read.c (recursively_compute_inclusions): Add
8622 dwarf2_per_objfile parameter.
8623 (compute_compunit_symtab_includes): Likewise.
8624 (process_cu_includes): Update.
8625
8626 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8627
8628 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8629 parameter.
8630 (create_type_unit_group): Update.
8631 (process_psymtab_comp_unit_reader): Update.
8632 (build_type_psymtabs_reader): Update.
8633
8634 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8635
8636 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8637 object through m_this_cu->cu.
8638
8639 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8640
8641 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8642 the info parameter.
8643 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8644
8645 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8646
8647 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8648 per_objfile parameter.
8649 (load_full_type_unit): Add per_objfile parameter.
8650 (read_signatured_type): Likewise.
8651 (load_full_comp_unit): Likewise.
8652 (load_cu): Likewise.
8653 (dw2_do_instantiate_symtab): Likewise.
8654 (dw2_get_file_names): Likewise.
8655 (dw2_map_symtabs_matching_filename): Update.
8656 (dw_expand_symtabs_matching_file_matcher): Update.
8657 (dw2_map_symbol_filenames): Update.
8658 (process_psymtab_comp_unit): Add per_objfile parameter.
8659 (build_type_psymtabs_1): Update.
8660 (process_skeletonless_type_unit): Update.
8661 (dwarf2_build_psymtabs_hard): Update.
8662 (load_partial_comp_unit): Add per_objfile parameter.
8663 (scan_partial_symbols): Update.
8664 (load_full_comp_unit): Add per_objfile parameter.
8665 (process_imported_unit_die): Update.
8666 (create_cus_hash_table): Update.
8667 (find_partial_die): Update.
8668 (dwarf2_read_addr_index): Update.
8669 (follow_die_offset): Update.
8670 (dwarf2_fetch_die_loc_sect_off): Update.
8671 (dwarf2_fetch_constant_bytes): Update.
8672 (dwarf2_fetch_die_type_sect_off): Update.
8673 (follow_die_sig_1): Update.
8674 (load_full_type_unit): Add per_objfile parameter.
8675 (read_signatured_type): Likewise.
8676
8677 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8678
8679 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8680 of objfile_name.
8681
8682 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8683
8684 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8685 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8686 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8687 field.
8688 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8689 (create_cus_from_index): Update.
8690 (dwarf2_read_gdb_index): Update.
8691 (create_cus_from_debug_names): Update.
8692 (dwarf2_read_debug_names): Update.
8693 (get_abbrev_section_for_cu): Update.
8694 (create_all_comp_units): Update.
8695 (read_attribute_value): Update.
8696 (get_debug_line_section): Update.
8697 * dwarf2/index-cache.c (index_cache::store): Update.
8698 * dwarf2/index-write.c (save_gdb_index_command): Update.
8699 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8700
8701 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8702
8703 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8704 member.
8705 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8706 dwarf2_per_cu_data::per_bfd.
8707 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8708 (create_type_unit_group): Likewise.
8709 (queue_comp_unit): Remove reference to
8710 per_cu->dwarf2_per_objfile.
8711 (maybe_queue_comp_unit): Likewise.
8712 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8713 (create_cus_hash_table): Assign new field.
8714
8715 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8716
8717 * dwarf2/read.c: Replace
8718 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8719 dwarf2_cu->per_objfile throughout.
8720
8721 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8722
8723 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8724 parameter, don't use per_cu->dwarf2_per_objfile.
8725 (dw2_instantiate_symtab): Likewise.
8726 (dw2_find_last_source_symtab): Update.
8727 (dw2_map_expand_apply): Update.
8728 (dw2_lookup_symbol): Update.
8729 (dw2_expand_symtabs_for_function): Update.
8730 (dw2_expand_all_symtabs): Update.
8731 (dw2_expand_symtabs_with_fullname): Update.
8732 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8733 don't use per_cu->dwarf2_per_objfile.
8734 (dw2_expand_marked_cus): Update.
8735 (dw2_find_pc_sect_compunit_symtab): Update.
8736 (dw2_debug_names_lookup_symbol): Update.
8737 (dw2_debug_names_expand_symtabs_for_function): Update.
8738 (dw2_debug_names_map_matching_symbols): Update.
8739 (dwarf2_psymtab::expand_psymtab): Update.
8740
8741 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8742
8743 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8744 <per_objfile>: New member.
8745 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8746 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8747 call to dwarf2_cu.
8748 (cutu_reader::cutu_reader): Update.
8749 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8750
8751 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8752
8753 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8754 struct dwarf2_per_objfile.
8755 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8756 dwarf2_per_bfd.
8757 * dwarf2/read.c (set_die_type): Update.
8758 (get_die_type_at_offset): Update.
8759
8760 2020-05-27 Tom Tromey <tom@tromey.com>
8761 Simon Marchi <simon.marchi@efficios.com>
8762
8763 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8764 method.
8765 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8766 get_symtab, set_symtab>: New methods.
8767 <m_symtabs>: New field.
8768 (struct dwarf2_psymtab): Derive from partial_symtab.
8769 <readin_p, get_compunit_symtab>: Declare methods.
8770 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8771 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8772 New methods.
8773 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8774 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8775 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8776 (dw2_symtab_iter_next, dw2_print_stats)
8777 (dw2_expand_symtabs_with_fullname)
8778 (dw2_expand_symtabs_matching_one)
8779 (dw_expand_symtabs_matching_file_matcher)
8780 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8781 (dw2_debug_names_iterator::next)
8782 (dw2_debug_names_map_matching_symbols)
8783 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8784 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8785 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8786 New methods.
8787 (get_compunit_symtab, process_full_comp_unit)
8788 (process_full_type_unit): Update.
8789 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8790
8791 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8792
8793 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8794 then introduce a new dwarf2_per_objfile type.
8795 <read_line_string>: Move to the new dwarf2_per_objfile type.
8796 <objfile>: Likewise.
8797 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8798 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8799 dwarf2_per_objfile->per_bfd.
8800 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8801 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8802 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8803 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8804 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8805 (dwarf2_per_objfile::locate_sections): Rename to...
8806 (dwarf2_per_bfd::locate_sections): ... this.
8807 (dwarf2_per_objfile::get_cutu): Rename to...
8808 (dwarf2_per_bfd::get_cutu): ... this.
8809 (dwarf2_per_objfile::get_cu): Rename to...
8810 (dwarf2_per_bfd::get_cu): ... this.
8811 (dwarf2_per_objfile::get_tu): Rename to...
8812 (dwarf2_per_bfd::get_tu): ... this.
8813 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8814 (dwarf2_per_bfd::allocate_per_cu): ... this.
8815 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8816 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8817 (get_gdb_index_contents_ftype): Change parameter from
8818 dwarf2_per_objfile to dwarf2_per_bfd.
8819 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8820 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8821
8822 2020-05-27 Tom Tromey <tom@tromey.com>
8823 Simon Marchi <simon.marchi@efficios.com>
8824
8825 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8826 (allocate_piece_closure): Set "per_objfile" member.
8827 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8828 (locexpr_describe_location, loclist_describe_location): Use new
8829 member.
8830 * dwarf2/read.c (read_call_site_scope)
8831 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8832 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8833 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8834 handle_data_member_location): Set per_objfile member.
8835 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8836 member.
8837 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8838
8839 2020-05-27 Tom Tromey <tom@tromey.com>
8840
8841 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8842 allocate_signatured_type>: Declare new methods.
8843 <m_num_psymtabs>: New member.
8844 (struct dwarf2_per_cu_data) <index>: New member.
8845 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8846 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8847 (create_cu_from_index_list): Use allocate_per_cu.
8848 (create_signatured_type_table_from_index)
8849 (create_signatured_type_table_from_debug_names)
8850 (create_debug_type_hash_table, add_type_unit)
8851 (read_comp_units_from_section): Use allocate_signatured_type.
8852
8853 2020-05-27 Tom Tromey <tom@tromey.com>
8854
8855 * psymtab.c (partial_map_expand_apply)
8856 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8857 (psym_lookup_global_symbol_language)
8858 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8859 (psym_print_stats, psym_expand_symtabs_for_function)
8860 (psym_map_symbol_filenames, psym_map_matching_symbols)
8861 (psym_expand_symtabs_matching)
8862 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8863 (maintenance_check_psymtabs): Update.
8864 * psympriv.h (struct partial_symtab) <readin_p,
8865 get_compunit_symtab>: Add objfile parameter.
8866 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8867 Likewise.
8868 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8869 get_compunit_symtab>: Likewise.
8870 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8871
8872 2020-05-27 Tom Tromey <tom@tromey.com>
8873
8874 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8875 member.
8876 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8877 (create_cu_from_index_list)
8878 (create_signatured_type_table_from_index)
8879 (create_signatured_type_table_from_debug_names)
8880 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8881 (dwarf2_create_include_psymtab)
8882 (create_debug_type_hash_table, add_type_unit)
8883 (create_type_unit_group, read_comp_units_from_section)
8884 (dwarf2_compute_name, create_cus_hash_table)
8885 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8886 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8887 obstack.
8888 (dw2_get_real_path): Likewise. Change argument to
8889 dwarf2_per_objfile.
8890
8891 2020-05-27 Luis Machado <luis.machado@linaro.org>
8892
8893 PR tdep/26000
8894 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8895 for ldrd (immediate).
8896
8897 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8898
8899 * command.h: Add comment giving the name of class_tui.
8900 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8901 create the fake command for the help for class_tui.
8902
8903 2020-05-26 Tom Tromey <tromey@adacore.com>
8904
8905 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8906 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8907 (val_atr): New function.
8908 (value_val_atr): Use it.
8909 * ada-valprint.c (print_optional_low_bound): Change low bound
8910 handling for enums.
8911 (val_print_packed_array_elements): Don't call discrete_position.
8912 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8913 discrete_position for enum types.
8914 * language.c (default_print_array_index): Change type.
8915 * language.h (struct language_defn) <la_print_array_index>: Add
8916 index_type parameter, change type of index_value.
8917 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8918 (default_print_array_index): Update.
8919 * valprint.c (maybe_print_array_index): Don't call
8920 value_from_longest. Update.
8921 (value_print_array_elements): Don't call discrete_position.
8922
8923 2020-05-26 Tom Tromey <tromey@adacore.com>
8924
8925 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8926 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8927
8928 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8929
8930 PR gdb/13519
8931 * avr-tdep.c (avr_integer_to_address): Return data or code
8932 address accordingly to the second 'type' argument of the
8933 function.
8934
8935 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8936
8937 * infcmd.c, inferior.h: (construct_inferior_arguments):
8938 Moved function from here to gdbsupport/common-inferior.{h,cc}
8939
8940 2020-05-23 Tom Tromey <tom@tromey.com>
8941
8942 Revert commit eca1f90c:
8943 * NEWS: Remove entry for completion styling.
8944 * completer.c (_rl_completion_prefix_display_length): Move
8945 declaration later.
8946 (gdb_fnprint): Revert.
8947 (gdb_display_match_list_1): Likewise.
8948 * cli/cli-style.c (completion_prefix_style)
8949 (completion_difference_style, completion_suffix_style): Remove.
8950 (_initialize_cli_style): Revert.
8951 * cli/cli-style.h (completion_prefix_style)
8952 (completion_difference_style, completion_suffix_style): Don't
8953 declare.
8954
8955 2020-05-24 Pedro Alves <palves@redhat.com>
8956
8957 * symtab.c (completion_list_add_name): Return boolean indication
8958 of whether the symbol matched.
8959 (completion_list_add_symbol): Don't try to remove C++ aliases if
8960 the symbol didn't match in the first place.
8961 * symtab.h (completion_list_add_name): Return bool.
8962
8963 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8964
8965 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8966 type::field.
8967
8968 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8969
8970 GDB 9.2 released.
8971
8972 2020-05-23 Tom Tromey <tom@tromey.com>
8973
8974 * NEWS: Add entry for completion styling.
8975 * completer.c (_rl_completion_prefix_display_length): Move
8976 declaration earlier.
8977 (gdb_fnprint): Use completion_style.
8978 (gdb_display_match_list_1): Likewise.
8979 * cli/cli-style.c (completion_prefix_style)
8980 (completion_difference_style, completion_suffix_style): New
8981 globals.
8982 (_initialize_cli_style): Register new globals.
8983 * cli/cli-style.h (completion_prefix_style)
8984 (completion_difference_style, completion_suffix_style): Declare.
8985
8986 2020-05-23 Pedro Alves <palves@redhat.com>
8987
8988 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8989 (parse_escape): Use ISDIGIT instead of isdigit.
8990 (puts_debug): Use gdb_isprint instead of isprint.
8991 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8992 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8993 ISSPACE instead of isspace.
8994 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8995 instead of isspace.
8996 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8997 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8998 instead of isxdigit and ISDIGIT instead of isdigit.
8999
9000 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9001
9002 * gdbtypes.h (struct type) <field>: New method.
9003 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9004 or type::field.
9005
9006 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9007
9008 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9009 (TYPE_FIELDS): Use type::fields. Change all call sites that
9010 modify the propery to use type::set_fields instead.
9011
9012 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9013
9014 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9015 type::num_fields instead.
9016
9017 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9018
9019 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9020 methods.
9021 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9022 that modify the number of fields to use type::set_num_fields
9023 instead.
9024
9025 2020-05-22 Tom Tromey <tromey@adacore.com>
9026
9027 * compile/compile-object-load.h (munmap_list_free): Don't
9028 declare.
9029
9030 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9031
9032 * annotate.c (annotate_source_line): Update return type, add call
9033 to update current symtab and line.
9034 * annotate.h (annotate_source_line): Update return type, and
9035 extend header comment.
9036 * source.c (info_line_command): Check annotation_level before
9037 calling annotate_source_line.
9038 * stack.c (print_frame_info): If calling annotate_source_line
9039 returns true, then don't print any other source line information.
9040
9041 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9042
9043 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9044
9045 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * coffread.c (patch_type): Remove NULL check before xfree.
9048 * corefile.c (set_gnutarget): Likewise.
9049 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9050 * exec.c (build_section_table): Likewise.
9051 * remote.c (remote_target::pass_signals): Likewise.
9052 * utils.c (n_spaces): Likewise.
9053 * cli/cli-script.c (document_command): Likewise.
9054 * i386-windows-tdep.c (core_process_module_section): Likewise.
9055 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9056
9057 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9058
9059 * symfile.c (reread_symbols): Clear objfile's section_offsets
9060 vector and section indices, re-compute them by calling
9061 sym_offsets.
9062
9063 2020-05-20 Tom Tromey <tromey@adacore.com>
9064
9065 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9066 (desc_one_bound, desc_index_type): Compute field name.
9067
9068 2020-05-20 Tom de Vries <tdevries@suse.de>
9069
9070 PR symtab/25833
9071 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9072
9073 2020-05-20 Alan Modra <amodra@gmail.com>
9074
9075 PR 25993
9076 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9077 bfd_set_filename.
9078 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9079 passed to bfd_set_filename.
9080 * symfile-mem.c (add_vsyscall_page): Likewise for string
9081 passed to symbol_file_add_from_memory.
9082 (symbol_file_add_from_memory): Make name param a const char* and
9083 don't strdup.
9084
9085 2020-05-20 Alan Modra <amodra@gmail.com>
9086
9087 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9088 rather than accessing bfd->filename directly.
9089 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9090 and use bfd_section_name.
9091 * dwarf2/frame.c (decode_frame_entry): Likewise.
9092 * exec.c (exec_set_section_address): Likewise.
9093 * solib-aix.c (solib_aix_bfd_open): Likewise.
9094 * stap-probe.c (get_stap_base_address): Likewise.
9095 * symfile.c (reread_symbols): Likewise.
9096
9097 2020-05-19 Tom Tromey <tromey@adacore.com>
9098
9099 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9100
9101 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9102
9103 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9104
9105 2020-05-19 Pedro Alves <palves@redhat.com>
9106
9107 * NEWS (set exec-file-mismatch): Adjust entry.
9108 * exec.c: Include "build-id.h".
9109 (validate_exec_file): Try to match build IDs instead of filenames.
9110 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9111 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9112 and pass down 'warn_if_slow'.
9113 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9114 gdb_bfd_open_closure to pass it down.
9115 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9116
9117 2020-05-19 Pedro Alves <palves@redhat.com>
9118
9119 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9120 * target.c (target_fileio_open_1): Rename to target_fileio_open
9121 and make extern. Use bool.
9122 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9123 (target_fileio_read_alloc_1): Adjust.
9124 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9125 (target_fileio_open_warn_if_slow): Delete declaration.
9126
9127 2020-05-19 Pedro Alves <palves@redhat.com>
9128
9129 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9130 Adjust all callers.
9131
9132 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9133
9134 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9135 whether disp is negative.
9136
9137 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9138
9139 * symfile.h (struct symfile_segment_data)
9140 <~symfile_segment_data>: Remove.
9141 <segment_info>: Change to std::vector.
9142 * symfile.c (default_symfile_segments): Update.
9143 * elfread.c (elf_symfile_segments): Update.
9144
9145 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9146
9147 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9148 <segments>: New.
9149 <segment_bases, segment_sizes>: Remove.
9150 * symfile.c (default_symfile_segments): Update.
9151 * elfread.c (elf_symfile_segments): Update.
9152 * remote.c (remote_target::get_offsets): Update.
9153 * solib-target.c (solib_target_relocate_section_addresses):
9154 Update.
9155
9156 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9157
9158 * symfile.h (struct symfile_segment_data): Initialize fields.
9159 <~symfile_segment_data>: Add.
9160 (symfile_segment_data_up): New.
9161 (struct sym_fns) <sym_segments>: Return a
9162 symfile_segment_data_up.
9163 (default_symfile_segments): Return a symfile_segment_data_up.
9164 (free_symfile_segment_data): Remove.
9165 (get_symfile_segment_data): Return a symfile_segment_data_up.
9166 * symfile.c (default_symfile_segments): Likewise.
9167 (get_symfile_segment_data): Likewise.
9168 (free_symfile_segment_data): Remove.
9169 (symfile_find_segment_sections): Update.
9170 * elfread.c (elf_symfile_segments): Return a
9171 symfile_segment_data_up.
9172 * remote.c (remote_target::get_offsets): Update.
9173 * solib-target.c (solib_target_relocate_section_addresses):
9174 Update.
9175 * symfile-debug.c (debug_sym_segments): Return a
9176 symfile_segment_data_up.
9177
9178 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9179
9180 PR build/25981
9181 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9182 Hardcode register numbers.
9183
9184 PR build/25981
9185 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9186 procfs_find_LDT_entry): Remove.
9187 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9188 procfs_find_LDT_entry): Remove.
9189 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9190 Remove.
9191
9192 2020-05-17 Pedro Alves <palves@redhat.com>
9193 Andrew Burgess <andrew.burgess@embecosm.com>
9194 Keno Fischer <keno@juliacomputing.com>
9195
9196 PR gdb/25741
9197 * breakpoint.c (build_target_condition_list): Update comments.
9198 (build_target_command_list): Update comments and skip matching
9199 locations.
9200 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9201 a separate function. Simplify "set breakpoint auto-hw off"
9202 handling.
9203 (insert_breakpoints): Update comment.
9204 (tracepoint_locations_match): New parameter. For breakpoints,
9205 compare location types too, if the caller wants to.
9206 (handle_automatic_hardware_breakpoints): New functions.
9207 (bp_location_is_less_than): Also sort by location type and
9208 hardware breakpoint length.
9209 (update_global_location_list): Handle "set breakpoint auto-hw on"
9210 here.
9211 (update_breakpoint_locations): Ask breakpoint_locations_match to
9212 ignore location types.
9213
9214 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9215
9216 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9217 type::name instead.
9218
9219 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9220
9221 * gdbtypes.h (struct type) <name, set_name>: New methods.
9222 (TYPE_CODE): Use type::name. Change all call sites used to set
9223 the name to use type::set_name instead.
9224
9225 2020-05-16 Tom Tromey <tom@tromey.com>
9226
9227 * top.c (quit_force): Update.
9228 * infrun.c (handle_no_resumed): Update.
9229 * top.h (all_uis): New function.
9230 (ALL_UIS): Remove.
9231
9232 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9233
9234 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9235
9236 2020-05-16 Pedro Alves <palves@redhat.com>
9237
9238 * ia64-linux-nat.c
9239 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9240 Declare method.
9241 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9242
9243 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9246 (sparc64_adi_info): Likewise.
9247
9248 2020-05-15 Tom Tromey <tom@tromey.com>
9249
9250 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9251 block_objfile.
9252 (lookup_objfile_from_block): Remove.
9253 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9254 (lookup_global_symbol): Use block_objfile.
9255 * symtab.h (lookup_objfile_from_block): Don't declare.
9256 * printcmd.c (clear_dangling_display_expressions): Use
9257 block_objfile.
9258 * parse.c (operator_check_standard): Use block_objfile.
9259
9260 2020-05-15 Tom Tromey <tom@tromey.com>
9261
9262 * language.c (language_alloc_type_symbol): Set
9263 SYMBOL_SECTION.
9264 * symtab.c (initialize_objfile_symbol): Remove.
9265 (allocate_symbol): Remove.
9266 (allocate_template_symbol): Remove.
9267 * dwarf2/read.c (fixup_go_packaging): Use "new".
9268 (new_symbol): Use "new".
9269 (read_variable): Don't call initialize_objfile_symbol. Use
9270 "new".
9271 (read_func_scope): Use "new".
9272 * xcoffread.c (process_xcoff_symbol): Don't call
9273 initialize_objfile_symbol.
9274 (SYMBOL_DUP): Remove.
9275 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9276 "new".
9277 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9278 (allocate_template_symbol): Don't declare.
9279 (struct symbol): Add copy constructor. Change defaults.
9280 * jit.c (finalize_symtab): Use "new".
9281 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9282 Use "new".
9283 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9284 (common_block_end): Use "new".
9285 * mdebugread.c (parse_symbol): Use "new".
9286 (new_symbol): Likewise.
9287
9288 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9289
9290 * NEWS: Mention changes to help and apropos.
9291
9292 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9293
9294 * command.h (enum command_class): Improve comments, document
9295 that class_alias is for user-defined aliases, give the class
9296 name for each class, remove unused class_xdb.
9297 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9298 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9299 by a precise class.
9300 * infcmd.c (_initialize_infcmd): Likewise.
9301 * reverse.c (_initialize_reverse): Likewise.
9302 * stack.c (_initialize_stack): Likewise.
9303 * symfile.c (_initialize_symfile): Likewise.
9304 * tracepoint.c (_initialize_tracepoint): Likewise.
9305
9306 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9307
9308 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9309 when their aliased command is traversed.
9310 (help_cmd): Add fput_command_names_styled call to
9311 output command name and aliases when command has an alias.
9312
9313 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9314
9315 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9316 * cli/cli-decode.c (help_cmd_list): Declare as static,
9317 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9318 a command together with the command.
9319 (fput_command_name_styled, fput_command_names_styled): New functions.
9320 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9321 fput_command_name_styled.
9322 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9323 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9324
9325 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9326
9327 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9328 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9329 * command.h (cmd_show_list): Likewise.
9330 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9331 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9332
9333 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9334
9335 * unittests/command-def-selftests.c (traverse_command_structure):
9336 Verify all commands of a list have the same prefix command and
9337 that only the top cmdlist commands have a null prefix.
9338
9339 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9340
9341 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9342 as prefix, not one of its aliases.
9343 (set_cmd_prefix): Remove.
9344 (do_add_cmd): Centralize the setting of the prefix of a command, when
9345 command is defined after its full chain of prefix commands.
9346 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9347 (add_setshow_cmd_full): Likewise.
9348 (update_prefix_field_of_prefixed_commands): New function.
9349 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9350 update_prefix_field_of_prefixed_commands.
9351 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9352 addresses of remote_set_cmdlist and remote_show_cmdlist given
9353 as argument, not the address of an argument.
9354 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9355 * gdb/remote.c (_initialize_remote): Likewise.
9356
9357 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9358
9359 * cli/cli-cmds.c (alias_command): Check for an existing alias
9360 using lookup_cmd_composition, as valid_command_p is too strict
9361 and forbids aliases that are the prefix of an existing alias
9362 or command.
9363 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9364 command is properly recognised as a valid command.
9365
9366 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9367
9368 * unittests/help-doc-selftests.c: Rename to
9369 unittests/command-def-selftests.c
9370 * unittests/command-def-selftests.c (help_doc_tests): Update some
9371 comments.
9372 (command_structure_tests, traverse_command_structure): New namespace
9373 and function.
9374 (command_structure_invariants_tests): New function.
9375 (_initialize_command_def_selftests) Renamed from
9376 _initialize_help_doc_selftests, register command_structure_invariants
9377 selftest.
9378
9379 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9380
9381 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9382 an alias of 'show'.
9383
9384 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9385
9386 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9387 ada_is_fixed_point_type. Update all callers.
9388 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9389 all callers.
9390 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9391 Update all callers.
9392 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9393 print_fixed_point_type. Update all callers.
9394 * ada-valprint.c (ada_value_print_num): Replace call to
9395 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9396
9397 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9398
9399 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9400 processors.
9401 (cpu_supports_bts): Add CV_AMD case.
9402
9403 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9404 Simon Marchi <simon.marchi@efficios.com>
9405
9406 * infrun.c (stop_all_threads): Collect multiple wait events at
9407 each pass.
9408
9409 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9410
9411 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9412 type::code instead.
9413
9414 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9415
9416 * gdbtypes.h (struct type) <code, set_code>: New methods.
9417 (TYPE_CODE): Use type::code. Change all call sites used to set
9418 the code to use type::set_code instead.
9419
9420 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9421 Tom de Vries <tdevries@suse.de>
9422 Pedro Alves <palves@redhat.com>
9423
9424 PR threads/25478
9425 * infrun.c (stop_all_threads): Do NOT ignore
9426 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9427 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9428 received.
9429 (handle_no_resumed): Remove code handling a live inferior with no
9430 threads.
9431 * remote.c (has_single_non_exited_thread): New.
9432 (remote_target::update_thread_list): Do not delete a thread if is
9433 the last thread of the process.
9434 * thread.c (thread_select): Call delete_exited_threads instead of
9435 prune_threads.
9436
9437 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9438
9439 * infrun.c (stop_all_threads): Enable/disable thread events of all
9440 targets. Move a debug message denoting the end of the function
9441 into the SCOPED_EXIT block.
9442
9443 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9444
9445 * process-stratum-target.h: Include <set>.
9446 (all_non_exited_process_targets, switch_to_target_no_thread): New
9447 function declarations.
9448 * process-stratum-target.c (all_non_exited_process_targets)
9449 (switch_to_target_no_thread): New function implementations.
9450
9451 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9452
9453 * infrun.c (handle_inferior_event): Extract out a piece of code
9454 into...
9455 (mark_non_executing_threads): ...this new function.
9456
9457 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9458
9459 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9460 use.
9461
9462 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9463
9464 * regcache.c (regcache_read_pc_protected): New function
9465 implementation that returns 0 if the PC cannot read via
9466 'regcache_read_pc'.
9467 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9468 instead of 'regcache_read_pc'.
9469 (keep_going_pass_signal): Ditto.
9470
9471 2020-05-13 Tom Tromey <tromey@adacore.com>
9472
9473 * ada-lang.c (align_value): Remove.
9474 (ada_template_to_fixed_record_type_1): Use align_up.
9475
9476 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9477
9478 * async-event.c: Update the copyright year.
9479 * async-event.h: Update the copyright year.
9480
9481 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9482
9483 * objfiles.h (is_addr_in_objfile,
9484 shared_objfile_contains_address_p): Return bool.
9485 * objfile.c (is_addr_in_objfile,
9486 shared_objfile_contains_address_p): Return bool.
9487
9488 2020-05-11 Tom Tromey <tromey@adacore.com>
9489
9490 * cli/cli-cmds.c (info_command): Restore.
9491 (_initialize_cli_cmds): Use add_prefix_command for "info".
9492 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9493
9494 2020-05-11 Tom Tromey <tromey@adacore.com>
9495
9496 * ada-lang.c (ada_value_primitive_field): Now public.
9497 * ada-lang.h (ada_value_primitive_field): Declare.
9498 * ada-valprint.c (print_field_values): Use
9499 ada_value_primitive_field for wrapper fields.
9500
9501 2020-05-11 Tom de Vries <tdevries@suse.de>
9502
9503 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9504 MODULE_DOMAIN.
9505
9506 2020-05-11 Tom de Vries <tdevries@suse.de>
9507
9508 PR symtab/25941
9509 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9510 with length 0, if not gdb-produced.
9511 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9512
9513 2020-05-09 Tom de Vries <tdevries@suse.de>
9514
9515 PR gdb/25955
9516 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9517 calculation.
9518
9519 2020-05-09 Tom Tromey <tom@tromey.com>
9520
9521 * top.c (server_command): Now bool.
9522 * top.h (server_command): Now bool.
9523
9524 2020-05-08 Tom Tromey <tromey@adacore.com>
9525
9526 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9527 already being processed.
9528
9529 2020-05-08 Tom Tromey <tom@tromey.com>
9530
9531 * printcmd.c (struct display) <next>: Remove.
9532 <display>: New constructor.
9533 <exp_string>: Now a std::string.
9534 <enabled_p>: Now a bool.
9535 (display_number): Move definition earlier.
9536 (displays): Rename from display_chain. Now a std::vector.
9537 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9538 (display_command): Update.
9539 (do_one_display, disable_display)
9540 (enable_disable_display_command, do_enable_disable_display):
9541 Update.
9542 (free_display): Remove.
9543 (clear_displays): Rewrite.
9544 (delete_display): Update.
9545 (map_display_numbers): Use function_view. Remove "data"
9546 parameter. Update.
9547 (do_delete_display): Remove.
9548 (undisplay_command): Update.
9549 (do_one_display, do_displays, disable_display)
9550 (info_display_command): Update.
9551 (do_enable_disable_display): Remove.
9552 (enable_disable_display_command)
9553 (clear_dangling_display_expressions): Update.
9554
9555 2020-05-08 Tom Tromey <tom@tromey.com>
9556
9557 * symtab.c (set_symbol_cache_size)
9558 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9559 (maintenance_print_symbol_cache_statistics): Update.
9560 * symmisc.c (print_symbol_bcache_statistics)
9561 (print_objfile_statistics, maintenance_print_objfiles)
9562 (maintenance_info_symtabs, maintenance_check_symtabs)
9563 (maintenance_expand_symtabs, maintenance_info_line_tables):
9564 Update.
9565 * symfile-debug.c (set_debug_symfile): Update.
9566 * source.c (forget_cached_source_info): Update.
9567 * python/python.c (gdbpy_progspaces): Update.
9568 * psymtab.c (maintenance_info_psymtabs): Update.
9569 * probe.c (parse_probes): Update.
9570 * linespec.c (iterate_over_all_matching_symtabs)
9571 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9572 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9573 * exec.c (exec_target::close): Update.
9574 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9575 * breakpoint.c (print_one_breakpoint_location)
9576 (create_longjmp_master_breakpoint)
9577 (create_std_terminate_master_breakpoint): Update.
9578 * progspace.c (program_spaces): Now a std::vector.
9579 (maybe_new_address_space): Update.
9580 (add_program_space): Remove.
9581 (program_space::program_space): Update.
9582 (remove_program_space): Update.
9583 (number_of_program_spaces): Remove.
9584 (print_program_space, update_address_spaces): Update.
9585 * progspace.h (program_spaces): Change type.
9586 (ALL_PSPACES): Remove.
9587 (number_of_program_spaces): Don't declare.
9588 (struct program_space) <next>: Remove.
9589
9590 2020-05-08 Tom Tromey <tom@tromey.com>
9591
9592 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9593 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9594 (enable_break): Update.
9595 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9596 (frv_fdpic_find_canonical_descriptor): Update.
9597 (frv_fetch_objfile_link_map): Update.
9598 * progspace.c (program_space::free_all_objfiles): Update.
9599 (program_space::solibs): New method.
9600 * progspace.h (struct program_space) <solibs>: New method.
9601 * solist.h (master_so_list): Don't declare.
9602 (ALL_SO_LIBS): Remove.
9603 * solib.h (so_list_head): Remove.
9604 (update_solib_list): Update comment.
9605 * solib.c (master_so_list): Remove.
9606 (solib_used, update_solib_list, solib_add)
9607 (info_sharedlibrary_command, clear_solib)
9608 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9609
9610 2020-05-08 Tom Tromey <tom@tromey.com>
9611
9612 * extension.c (extension_languages): Now a std::array.
9613 (ALL_EXTENSION_LANGUAGES): Remove.
9614 (get_ext_lang_defn, get_ext_lang_of_file)
9615 (eval_ext_lang_from_control_command): Update.
9616 (finish_ext_lang_initialization)
9617 (auto_load_ext_lang_scripts_for_objfile)
9618 (ext_lang_type_printers::ext_lang_type_printers)
9619 (apply_ext_lang_type_printers)
9620 (ext_lang_type_printers::~ext_lang_type_printers)
9621 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9622 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9623 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9624 (get_matching_xmethod_workers, ext_lang_colorize)
9625 (ext_lang_before_prompt): Update.
9626 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9627
9628 2020-05-08 Tom Tromey <tom@tromey.com>
9629
9630 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9631 overload.
9632 <swap_string, m_string>: Remove.
9633 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9634 Update.
9635 * stabsread.c (define_symbol, read_type): Update.
9636 * linespec.c (find_linespec_symbols): Update.
9637 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9638 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9639 * dbxread.c (read_dbx_symtab): Update.
9640 * cp-support.h (cp_canonicalize_string_full)
9641 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9642 Return unique_xmalloc_ptr.
9643 * cp-support.c (inspect_type): Update.
9644 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9645 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9646 Likewise.
9647 * c-typeprint.c (print_name_maybe_canonical): Update.
9648 * break-catch-throw.c (check_status_exception_catchpoint):
9649 Update.
9650
9651 2020-05-08 Tom de Vries <tdevries@suse.de>
9652
9653 * infrun.c (follow_fork): Copy current_line and current_symtab to
9654 child thread.
9655
9656 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9657
9658 * async-event.c (struct async_signal_handler, struct
9659 async_event_handler): Reformat, remove typedef.
9660
9661 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9662
9663 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9664 access thistype->main_type->dyn_prop_list directly.
9665
9666 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9667
9668 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9669 (remove_dyn_prop): Remove. Update all users to use
9670 type::remove_dyn_prop.
9671 * gdbtypes.c (remove_dyn_prop): Rename to...
9672 (type::remove_dyn_prop): ... this.
9673
9674 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9675
9676 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9677 (add_dyn_prop): Remove. Update all users to use
9678 type::add_dyn_prop.
9679 * gdbtypes.c (add_dyn_prop): Rename to...
9680 (type::add_dyn_prop): ... this.
9681
9682 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9683
9684 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9685 (get_dyn_prop): Remove. Update all users to use
9686 type::dyn_prop.
9687 * gdbtypes.c (get_dyn_prop): Rename to...
9688 (type::dyn_prop): ... this.
9689
9690 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9691
9692 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9693
9694 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9695
9696 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9697 instruction, skip it if it's there.
9698
9699 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9700
9701 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9702
9703 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9704
9705 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9706 * gdbtypes.c (recursive_dump_type): Remove use of
9707 TYPE_INCOMPLETE.
9708
9709 2020-05-03 Tom Tromey <tom@tromey.com>
9710
9711 * breakpoint.c (catch_command, tcatch_command): Remove.
9712 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9713 add_show_prefix_cmd.
9714 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9715 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9716 Remove.
9717 (add_internal_problem_command): Use add_basic_prefix_cmd,
9718 add_show_prefix_cmd.
9719 * mips-tdep.c (set_mipsfpu_command): Remove.
9720 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9721 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9722 (_initialize_index_cache): Use add_basic_prefix_cmd.
9723 * memattr.c (dummy_cmd): Remove.
9724 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9725 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9726 (_initialize_tui_win): Use add_basic_prefix_cmd,
9727 add_show_prefix_cmd.
9728 * cli/cli-logging.c (set_logging_command): Remove.
9729 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9730 add_show_prefix_cmd.
9731 (show_logging_command): Remove.
9732 * target.c (target_command): Remove.
9733 (add_target): Use add_basic_prefix_cmd.
9734
9735 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9736
9737 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9738
9739 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9740
9741 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9742 info_command.
9743
9744 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9745
9746 * nbsd-nat.c (nbsd_enable_proc_events)
9747 (nbsd_nat_target::post_startup_inferior): Add.
9748 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9749 (nbsd_nat_target::update_thread_list): Rewrite.
9750 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9751 "PTRACE_LWP_CREATE".
9752 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9753
9754 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9755
9756 * stack.c (_initialize_stack): Remove duplicated creation
9757 of "frame" command and "f" alias.
9758
9759 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9760
9761 PR gdb/18706
9762 * gdbtypes.c (check_typedef): Calculate size of array of
9763 stubbed type.
9764
9765 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9766
9767 PR gdb/15559
9768 * i386-tdep.c (i386_push_dummy_call): Call
9769 i386_thiscall_push_dummy_call.
9770 (i386_thiscall_push_dummy_call): New function.
9771 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9772 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9773 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9774
9775 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9776
9777 * gdbarch.sh (do_read): Add shellcheck disable directive for
9778 warning SC2162.
9779
9780 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9781
9782 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9783 "referenced but not assigned" warning.
9784
9785 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9786
9787 * gdbarch.sh: Remove code that sets fallbackdefault.
9788
9789 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9790
9791 * gdbarch.sh: Use shell operators && and || instead of
9792 -a and -o.
9793
9794 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9795
9796 * gdbarch.sh: Use $(...) instead of `...`.
9797
9798 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9799
9800 * gdbarch.sh: Use double quotes around variables.
9801
9802 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * gdbarch.sh: Use %s with printf, instead of variables in the
9805 format string.
9806
9807 2020-04-29 Tom Tromey <tromey@adacore.com>
9808
9809 PR ada/25875:
9810 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9811 type fields here.
9812 (read_enumeration_type): Call
9813 update_enumeration_type_from_children later. Update comments.
9814 (process_enumeration_scope): Don't create type fields.
9815
9816 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9817
9818 * nbsd-tdep.c: Include "xml-syscall.h".
9819 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9820
9821 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9822
9823 * nbsd-nat.c: Include "sys/wait.h".
9824 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9825 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9826 (nbsd_nat_target::remove_exec_catchpoint)
9827 (nbsd_nat_target::set_syscall_catchpoint): Add.
9828 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9829 (nbsd_nat_target::insert_exec_catchpoint)
9830 (nbsd_nat_target::remove_exec_catchpoint)
9831 (nbsd_nat_target::set_syscall_catchpoint): Add.
9832 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9833 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9834 `nbsd_get_syscall_number'.
9835
9836 2020-04-29 Tom Tromey <tom@tromey.com>
9837
9838 * stack.c (print_block_frame_labels): Remove.
9839
9840 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9841
9842 PR gdb/17320
9843 * ada-valprint.c (val_print_packed_array_elements): Move array
9844 end bracket to new line.
9845 (ada_val_print_string): Remove extra spaces before first array
9846 element.
9847 * c-valprint.c (c_value_print_array): Likewise.
9848 * m2-valprint.c (m2_print_array_contents): Likewise.
9849 (m2_value_print_inner): Likewise.
9850 * p-valprint.c (pascal_value_print_inner): Likewise.
9851 * valprint.c (generic_val_print_array): Likewise.
9852 (value_print_array_elements): Move first array element and array
9853 end bracket to new line.
9854
9855 2020-04-29 Tom de Vries <tdevries@suse.de>
9856
9857 PR symtab/25889
9858 * linespec.c (find_method): Fix ix calculation.
9859
9860 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9861
9862 * syscalls/update-netbsd.sh: New file.
9863 * syscalls/netbsd.xml: Regenerate.
9864 * data-directory/Makefile.in: Register `netbsd.xml' in
9865 `SYSCALLS_FILES'.
9866
9867 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9868
9869 * syscalls/update-freebsd.sh: Add double quotes.
9870
9871 2020-04-28 Tom Tromey <tom@tromey.com>
9872
9873 * NEWS: Update.
9874 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9875 (cmdpy_init): Allow class_tui.
9876
9877 2020-04-28 Mark Williams <mark@myosotissp.com>
9878
9879 PR gdb/24480
9880 * dwarf2read.c: Add missing assingments to list_in_scope when
9881 start_symtab was already called.
9882
9883 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9884
9885 PR gdb/25881
9886 * dwarf2/read.c (offset_map_type): Use
9887 gdb:hash_enum<sect_offset> as hash function.
9888
9889 2020-04-28 Tom de Vries <tdevries@suse.de>
9890
9891 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9892 with DW_AT_signature.
9893
9894 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9895
9896 * configure.ac: Remove check for fs_base/gs_base in
9897 user_regs_struct.
9898 * configure: Re-generate.
9899 * config.in: Re-generate.
9900 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9901 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9902 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9903
9904 2020-04-27 Luis Machado <luis.machado@linaro.org>
9905
9906 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9907 problematic inline frame unwinding situation.
9908 * frame.c (frame_id_computed_p): New function.
9909 * frame.h (frame_id_computed_p): New prototype.
9910
9911 2020-04-26 Tom Tromey <tom@tromey.com>
9912
9913 * command.h (enum command_class) <class_pseudo>: Remove.
9914
9915 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9916
9917 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9918 and whitespace.
9919
9920 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9921
9922 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9923 `PT_GET_PROCESS_STATE' block.
9924
9925 2020-04-24 Tom Tromey <tom@tromey.com>
9926
9927 * symtab.h (symbol_get_demangled_name): Don't declare.
9928 * symtab.c (symbol_get_demangled_name): Remove.
9929 (general_symbol_info::natural_name)
9930 (general_symbol_info::demangled_name): Update.
9931
9932 2020-04-24 Tom Tromey <tom@tromey.com>
9933
9934 PR rust/25025:
9935 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9936
9937 2020-04-24 Tom Tromey <tom@tromey.com>
9938
9939 PR symtab/12707:
9940 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9941 exists.
9942 (new_symbol): Likewise.
9943 * compile/compile-object-load.c (get_out_value_type): Use
9944 symbol_matches_search_name.
9945
9946 2020-04-24 Tom Tromey <tom@tromey.com>
9947
9948 * dwarf2/read.c (add_partial_symbol): Do not call
9949 compute_and_set_names.
9950
9951 2020-04-24 Tom Tromey <tom@tromey.com>
9952
9953 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9954 overload.
9955
9956 2020-04-24 Tom Tromey <tom@tromey.com>
9957
9958 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9959 (add_psymbol_to_list): New overload. Make old overload call new
9960 one.
9961 * psympriv.h (add_psymbol_to_list): New overload.
9962
9963 2020-04-24 Tom Tromey <tom@tromey.com>
9964
9965 * dwarf2/read.c (partial_die_info::read) <case
9966 DW_AT_linkage_name>: Use value_as_string.
9967 (dwarf2_string_attr): Use value_as_string.
9968 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9969 method.
9970 * dwarf2/attribute.c (attribute::value_as_string): New method.
9971
9972 2020-04-24 Tom Tromey <tom@tromey.com>
9973
9974 * symtab.c (general_symbol_info::natural_name)
9975 (general_symbol_info::demangled_name): Check for language_rust.
9976
9977 2020-04-24 Tom Tromey <tom@tromey.com>
9978
9979 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9980 (dwarf2_physname): ... from here.
9981 (partial_die_info::read): Add Rust "{" hack.
9982
9983 2020-04-24 Tom Tromey <tom@tromey.com>
9984
9985 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9986 method.
9987 (symbol_set_demangled_name): Don't declare.
9988 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9989 symbol_set_demangled_name.
9990 (general_symbol_info::set_language)
9991 (general_symbol_info::compute_and_set_names): Update.
9992 * minsyms.c (minimal_symbol_reader::install): Update.
9993 * dwarf2/read.c (new_symbol): Update.
9994
9995 2020-04-24 Tom Tromey <tromey@adacore.com>
9996
9997 PR python/23662:
9998 * python/py-type.c (convert_field): Handle
9999 FIELD_LOC_KIND_DWARF_BLOCK.
10000 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10001 (typy_get_dynamic): Nw function.
10002 (type_object_getset): Add "dynamic".
10003 * NEWS: Add entry.
10004
10005 2020-04-24 Tom Tromey <tromey@adacore.com>
10006
10007 * ada-typeprint.c (print_choices, print_variant_part)
10008 (print_record_field_types_dynamic): New functions.
10009 (print_record_field_types): Use print_record_field_types_dynamic.
10010
10011 2020-04-24 Tom Tromey <tromey@adacore.com>
10012
10013 * dwarf2/read.c (handle_data_member_location): New overload.
10014 (dwarf2_add_field): Use it.
10015 (decode_locdesc): Add "computed" parameter. Update comment.
10016 * gdbtypes.c (is_dynamic_type_internal): Also look for
10017 FIELD_LOC_KIND_DWARF_BLOCK.
10018 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10019 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10020 virtual base classes.
10021 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10022 FIELD_LOC_KIND_DWARF_BLOCK.
10023
10024 2020-04-24 Tom Tromey <tromey@adacore.com>
10025
10026 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10027 * gdbtypes.c (is_dynamic_type_internal): Check
10028 TYPE_HAS_DYNAMIC_LENGTH.
10029 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10030 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10031 New macros.
10032 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10033 constant.
10034
10035 2020-04-24 Tom Tromey <tromey@adacore.com>
10036
10037 * dwarf2/read.c (struct variant_field): Rewrite.
10038 (struct variant_part_builder): New.
10039 (struct nextfield): Remove "variant" field. Add "offset".
10040 (struct field_info): Add "current_variant_part" and
10041 "variant_parts".
10042 (alloc_discriminant_info): Remove.
10043 (alloc_rust_variant): New function.
10044 (quirk_rust_enum): Update.
10045 (dwarf2_add_field): Set "offset" member. Don't handle
10046 DW_TAG_variant_part.
10047 (offset_map_type): New typedef.
10048 (convert_variant_range, create_one_variant)
10049 (create_one_variant_part, create_variant_parts)
10050 (add_variant_property): New functions.
10051 (dwarf2_attach_fields_to_type): Call add_variant_property.
10052 (read_structure_type): Don't handle DW_TAG_variant_part.
10053 (handle_variant_part, handle_variant): New functions.
10054 (handle_struct_member_die): Use them.
10055 (process_structure_scope): Don't handle variant parts.
10056 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10057 (struct discriminant_info): Remove.
10058 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10059 (struct main_type) <flag_discriminated_union>: Remove.
10060 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10061 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10062 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10063 Update.
10064 * valops.c (value_union_variant): Remove.
10065 * value.h (value_union_variant): Don't declare.
10066
10067 2020-04-24 Tom Tromey <tromey@adacore.com>
10068
10069 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10070 (ada_value_primitive_packed_val): Update.
10071 * ada-valprint.c (ada_value_print_1): Update.
10072 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10073 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10074 just an address. Use evaluate_for_locexpr_baton.
10075 (dwarf2_evaluate_property): Update.
10076 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10077 array_view.
10078 * findvar.c (default_read_var_value): Update.
10079 * gdbtypes.c (compute_variant_fields_inner)
10080 (resolve_dynamic_type_internal): Update.
10081 (resolve_dynamic_type): Change type of valaddr parameter.
10082 * gdbtypes.h (resolve_dynamic_type): Update.
10083 * valarith.c (value_subscripted_rvalue): Update.
10084 * value.c (value_from_contents_and_address): Update.
10085
10086 2020-04-24 Tom Tromey <tromey@adacore.com>
10087
10088 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10089 "push_initial_value" parameter.
10090 (dwarf2_evaluate_property): Likewise.
10091 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10092
10093 2020-04-24 Tom Tromey <tromey@adacore.com>
10094
10095 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10096 (variant::matches, compute_variant_fields_recurse)
10097 (compute_variant_fields_inner, compute_variant_fields): New
10098 functions.
10099 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10100 Use resolved_type after type is made.
10101 (operator==): Add new cases.
10102 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10103 (struct discriminant_range, struct variant, struct variant_part):
10104 New.
10105 (union dynamic_prop_data) <variant_parts, original_type>: New
10106 members.
10107 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10108 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10109 constants.
10110 * value.c (unpack_bits_as_long): Now public.
10111 * value.h (unpack_bits_as_long): Declare.
10112
10113 2020-04-24 Tom Tromey <tromey@adacore.com>
10114
10115 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10116 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10117
10118 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10119
10120 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10121
10122 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10123
10124 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10125 (remove_fork_catchpoint, post_startup_inferior)
10126 (post_attach): Move...
10127 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10128 (remove_fork_catchpoint, post_startup_inferior)
10129 (post_attach): ...here.
10130 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10131 (remove_fork_catchpoint, post_startup_inferior)
10132 (post_attach): Move...
10133 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10134 (remove_fork_catchpoint, post_startup_inferior)
10135 (post_attach): ...here.
10136
10137 2020-04-24 Tom Tromey <tromey@adacore.com>
10138
10139 * nat/windows-nat.h (struct windows_thread_info)
10140 <pc_adjusted>: New member.
10141 * windows-nat.c (windows_fetch_one_register): Check
10142 pc_adjusted.
10143 (windows_nat_target::get_windows_debug_event)
10144 (windows_nat_target::wait): Set pc_adjusted.
10145
10146 2020-04-24 Tom de Vries <tdevries@suse.de>
10147
10148 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10149 Run gdb-add-index inside temp dir.
10150
10151 2020-04-23 Tom Tromey <tromey@adacore.com>
10152
10153 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10154 in loop.
10155
10156 2020-04-23 Luis Machado <luis.machado@linaro.org>
10157
10158 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10159 get_frame_register instead of gdbarch_unwind_pc.
10160
10161 2020-04-23 Tom de Vries <tdevries@suse.de>
10162
10163 * symtab.c (lookup_global_symbol): Prefer def over decl.
10164
10165 2020-04-23 Tom de Vries <tdevries@suse.de>
10166
10167 PR symtab/25807
10168 * block.c (best_symbol, better_symbol): Promote to external.
10169 * block.h (best_symbol, better_symbol): Declare.
10170 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10171 decl.
10172
10173 2020-04-23 Tom Tromey <tromey@adacore.com>
10174
10175 PR ada/25837:
10176 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10177 "const char *", not a "const std::string &".
10178 <name_and_matcher::operator==>: Update.
10179 * unittests/lookup_name_info-selftests.c: Change type of
10180 "result".
10181
10182 2020-04-23 Tom Tromey <tom@tromey.com>
10183
10184 * inferior.h (iterate_over_inferiors): Don't declare.
10185 * inferior.c (iterate_over_inferiors): Remove.
10186 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10187 Remove.
10188 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10189 use iterate_over_inferiors.
10190 (darwin_resume_inferior_it)
10191 (struct resume_inferior_threads_param)
10192 (darwin_resume_inferior_threads_it): Remove.
10193 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10194
10195 2020-04-23 Tom de Vries <tdevries@suse.de>
10196
10197 * blockframe.c (find_pc_partial_function): Use
10198 find_pc_sect_compunit_symtab rather than
10199 objfile->sf->qf->find_pc_sect_compunit_symtab.
10200
10201 2020-04-22 Tom de Vries <tdevries@suse.de>
10202
10203 PR symtab/25764
10204 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10205 in psymtabs.
10206
10207 2020-04-22 Tom de Vries <tdevries@suse.de>
10208
10209 PR symtab/25801
10210 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10211 symtabs.
10212
10213 2020-04-22 Tom de Vries <tdevries@suse.de>
10214
10215 PR symtab/25700
10216 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10217 CU if already created.
10218
10219 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10220
10221 * infrun.c (displaced_step_fixup): Switch to the event_thread
10222 before calling displaced_step_restore, not after.
10223
10224 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10225
10226 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10227 its inferior is not recorded by us.
10228 (record_btrace_target_open): Replace call to
10229 all_non_exited_threads () with call to current_inferior
10230 ()->non_exited_threads ().
10231 (record_btrace_target::stop_recording): Likewise.
10232 (record_btrace_target::close): Likewise.
10233 (record_btrace_target::wait): Likewise.
10234 (record_btrace_target::record_stop_replaying): Likewise.
10235
10236 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10237
10238 * btrace.c (btrace_enable): Throw an error on double enables and
10239 when enabling recording fails.
10240 (btrace_disable): Throw an error if the thread is not recorded.
10241
10242 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10243
10244 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10245 request if we do not have a thread_info.
10246
10247 2020-04-21 Tom de Vries <tdevries@suse.de>
10248
10249 PR gdb/25471
10250 * thread.c
10251 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10252 exception in get_frame_id.
10253
10254 2020-04-20 Tom Tromey <tromey@adacore.com>
10255
10256 * python/python.c (struct gdbpy_event): Mark move constructor as
10257 noexcept.
10258 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10259 constructor as noexcept.
10260 * completer.h (struct completion_result): Mark move constructor as
10261 noexcept.
10262 * completer.c (completion_result::completion_result): Use
10263 initialization style. Don't call reset_match_list.
10264
10265 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10266
10267 * MAINTAINERS (Write After Approval): Add myself.
10268
10269 2020-04-18 Tom Tromey <tom@tromey.com>
10270
10271 * windows-tdep.c (init_w32_command_list)
10272 (w32_prefix_command_valid): Restore.
10273 (_initialize_windows_tdep): Call init_w32_command_list.
10274
10275 2020-04-18 Tom Tromey <tom@tromey.com>
10276
10277 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10278 * value.c (value_fn_field): Update.
10279 * valops.c (find_function_in_inferior)
10280 (value_allocate_space_in_inferior): Update.
10281 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10282 Update.
10283 * tui/tui-source.c (tui_source_window::set_contents): Update.
10284 * symtab.c (lookup_global_or_static_symbol)
10285 (find_function_start_sal_1, skip_prologue_sal)
10286 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10287 * symmisc.c (dump_msymbols, dump_symtab_1)
10288 (maintenance_print_one_line_table): Update.
10289 * symfile.c (init_entry_point_info, section_is_mapped)
10290 (list_overlays_command, simple_read_overlay_table)
10291 (simple_overlay_update_1): Update.
10292 * stap-probe.c (handle_stap_probe): Update.
10293 * stabsread.c (dbx_init_float_type, define_symbol)
10294 (read_one_struct_field, read_enum_type, read_range_type): Update.
10295 * source.c (info_line_command): Update.
10296 * python/python.c (gdbpy_source_objfile_script)
10297 (gdbpy_execute_objfile_script): Update.
10298 * python/py-type.c (save_objfile_types): Update.
10299 * python/py-objfile.c (py_free_objfile): Update.
10300 * python/py-inferior.c (python_new_objfile): Update.
10301 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10302 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10303 (maintenance_check_psymtabs): Update.
10304 * printcmd.c (info_address_command): Update.
10305 * objfiles.h (struct objfile) <arch>: New method, from
10306 get_objfile_arch.
10307 (get_objfile_arch): Don't declare.
10308 * objfiles.c (get_objfile_arch): Remove.
10309 (filter_overlapping_sections): Update.
10310 * minsyms.c (msymbol_is_function): Update.
10311 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10312 (output_nondebug_symbol): Update.
10313 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10314 (mdebug_expand_psymtab): Update.
10315 * machoread.c (macho_add_oso_symfile): Update.
10316 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10317 Update.
10318 * linux-fork.c (checkpoint_command): Update.
10319 * linespec.c (convert_linespec_to_sals): Update.
10320 * jit.c (finalize_symtab): Update.
10321 * infrun.c (insert_exception_resume_from_probe): Update.
10322 * ia64-tdep.c (ia64_find_unwind_table): Update.
10323 * hppa-tdep.c (internalize_unwinds): Update.
10324 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10325 Update.
10326 * gcore.c (call_target_sbrk): Update.
10327 * elfread.c (record_minimal_symbol, elf_symtab_read)
10328 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10329 (elf_gnu_ifunc_resolve_by_got): Update.
10330 * dwarf2/read.c (create_addrmap_from_index)
10331 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10332 (read_debug_names_from_section)
10333 (process_psymtab_comp_unit_reader, add_partial_symbol)
10334 (add_partial_subprogram, process_full_comp_unit)
10335 (read_file_scope, read_func_scope, read_lexical_block_scope)
10336 (read_call_site_scope, dwarf2_ranges_read)
10337 (dwarf2_record_block_ranges, dwarf2_add_field)
10338 (mark_common_block_symbol_computed, read_tag_pointer_type)
10339 (read_tag_string_type, dwarf2_init_float_type)
10340 (dwarf2_init_complex_target_type, read_base_type)
10341 (partial_die_info::read, partial_die_info::read)
10342 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10343 (dwarf2_fetch_die_loc_sect_off): Update.
10344 * dwarf2/loc.c (dwarf2_find_location_expression)
10345 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10346 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10347 (dwarf2_loc_desc_get_symbol_read_needs)
10348 (locexpr_describe_location_piece, locexpr_describe_location_1)
10349 (loclist_describe_location): Update.
10350 * dwarf2/index-write.c (write_debug_names): Update.
10351 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10352 * dtrace-probe.c (dtrace_process_dof): Update.
10353 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10354 (process_one_symbol): Update.
10355 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10356 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10357 (coff_read_enum_type): Update.
10358 * cli/cli-cmds.c (edit_command, list_command): Update.
10359 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10360 * breakpoint.c (create_overlay_event_breakpoint)
10361 (create_longjmp_master_breakpoint)
10362 (create_std_terminate_master_breakpoint)
10363 (create_exception_master_breakpoint, get_sal_arch): Update.
10364 * block.c (block_gdbarch): Update.
10365 * annotate.c (annotate_source_line): Update.
10366
10367 2020-04-17 Tom Tromey <tromey@adacore.com>
10368
10369 * auto-load.c (show_auto_load_cmd): Remove.
10370 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10371 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10372 (maintenance_print_arc_command): Remove.
10373 * tui/tui-win.c (tui_command): Remove.
10374 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10375 * tui/tui-layout.c (tui_layout_command): Remove.
10376 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10377 * python/python.c (user_set_python, user_show_python): Remove.
10378 (_initialize_python): Use add_basic_prefix_cmd,
10379 add_show_prefix_cmd.
10380 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10381 (install_gdb_commands): Use add_basic_prefix_cmd,
10382 add_show_prefix_cmd.
10383 (info_guile_command): Remove.
10384 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10385 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10386 add_show_prefix_cmd.
10387 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10388 Remove do_set and do_show parameters.
10389 * cli/cli-style.c (set_style, show_style): Remove.
10390 (_initialize_cli_style): Use add_basic_prefix_cmd,
10391 add_show_prefix_cmd.
10392 (cli_style_option::add_setshow_commands): Remove do_set and
10393 do_show parameters.
10394 (cli_style_option::add_setshow_commands): Use
10395 add_basic_prefix_cmd, add_show_prefix_cmd.
10396 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10397 (set_style_name): Remove.
10398 * cli/cli-dump.c (dump_command, append_command): Remove.
10399 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10400 (tekhex_dump_command, binary_dump_command)
10401 (binary_append_command): Remove.
10402 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10403 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10404 (init_w32_command_list): Remove; move into ...
10405 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10406 * valprint.c (set_print, show_print, set_print_raw)
10407 (show_print_raw): Remove.
10408 (_initialize_valprint): Use add_basic_prefix_cmd,
10409 add_show_prefix_cmd.
10410 * typeprint.c (set_print_type, show_print_type): Remove.
10411 (_initialize_typeprint): Use add_basic_prefix_cmd,
10412 add_show_prefix_cmd.
10413 * record.c (set_record_command, show_record_command): Remove.
10414 (_initialize_record): Use add_basic_prefix_cmd,
10415 add_show_prefix_cmd.
10416 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10417 add_show_prefix_cmd.
10418 (info_command, show_command, set_debug, show_debug): Remove.
10419 * top.h (set_history, show_history): Don't declare.
10420 * top.c (set_history, show_history): Remove.
10421 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10422 (unset_tdesc_cmd): Remove.
10423 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10424 add_show_prefix_cmd.
10425 * symtab.c (info_module_command): Remove.
10426 (_initialize_symtab): Use add_basic_prefix_cmd.
10427 * symfile.c (overlay_command): Remove.
10428 (_initialize_symfile): Use add_basic_prefix_cmd.
10429 * sparc64-tdep.c (info_adi_command): Remove.
10430 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10431 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10432 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10433 add_show_prefix_cmd.
10434 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10435 (_initialize_serial): Use add_basic_prefix_cmd,
10436 add_show_prefix_cmd.
10437 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10438 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10439 add_show_prefix_cmd.
10440 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10441 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10442 add_show_prefix_cmd.
10443 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10444 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10445 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10446 add_show_prefix_cmd.
10447 * remote.c (remote_command, set_remote_cmd): Remove.
10448 (_initialize_remote): Use add_basic_prefix_cmd.
10449 * record-full.c (set_record_full_command)
10450 (show_record_full_command): Remove.
10451 (_initialize_record_full): Use add_basic_prefix_cmd,
10452 add_show_prefix_cmd.
10453 * record-btrace.c (cmd_set_record_btrace)
10454 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10455 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10456 (cmd_show_record_btrace_pt): Remove.
10457 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10458 add_show_prefix_cmd.
10459 * ravenscar-thread.c (set_ravenscar_command)
10460 (show_ravenscar_command): Remove.
10461 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10462 add_show_prefix_cmd.
10463 * mips-tdep.c (show_mips_command, set_mips_command)
10464 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10465 add_show_prefix_cmd.
10466 * maint.c (maintenance_command, maintenance_info_command)
10467 (maintenance_check_command, maintenance_print_command)
10468 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10469 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10470 add_show_prefix_cmd.
10471 (show_per_command_cmd): Remove.
10472 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10473 Remove.
10474 (maintenance_show_test_settings_cmd): Remove.
10475 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10476 add_show_prefix_cmd.
10477 * maint-test-options.c (maintenance_test_options_command):
10478 Remove.
10479 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10480 * macrocmd.c (macro_command): Remove
10481 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10482 * language.c (set_check, show_check): Remove.
10483 (_initialize_language): Use add_basic_prefix_cmd,
10484 add_show_prefix_cmd.
10485 * infcmd.c (unset_command): Remove.
10486 (_initialize_infcmd): Use add_basic_prefix_cmd.
10487 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10488 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10489 add_show_prefix_cmd.
10490 * go32-nat.c (go32_info_dos_command): Remove.
10491 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10492 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10493 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10494 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10495 (_initialize_frame): Use add_basic_prefix_cmd,
10496 add_show_prefix_cmd.
10497 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10498 (_initialize_dcache): Use add_basic_prefix_cmd,
10499 add_show_prefix_cmd.
10500 * cp-support.c (maint_cplus_command): Remove.
10501 (_initialize_cp_support): Use add_basic_prefix_cmd.
10502 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10503 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10504 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10505 add_basic_prefix_cmd, add_show_prefix_cmd.
10506 * breakpoint.c (save_command): Remove.
10507 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10508 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10509 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10510 add_show_prefix_cmd.
10511 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10512 (set_ada_command, show_ada_command): Remove.
10513 (_initialize_ada_language): Use add_basic_prefix_cmd,
10514 add_show_prefix_cmd.
10515 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10516
10517 2020-04-16 Kamil Rytarowski <n54@gmx.com>
10518
10519 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10520 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10521
10522 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10523
10524 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10525 warning messages.
10526
10527 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10528
10529 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10530 import table is not at beginning of .idata section.
10531
10532 2020-04-16 Pedro Alves <palves@redhat.com>
10533
10534 * inferior.c (delete_inferior): Use delete operator directly
10535 instead of delete_program_space.
10536 * progspace.c (add_program_space): New, factored out from
10537 program_space::program_space.
10538 (remove_program_space): New, factored out from
10539 delete_program_space.
10540 (program_space::program_space): Remove intro comment. Rewrite.
10541 (program_space::~program_space): Remove intro comment. Call
10542 remove_program_space.
10543 (delete_program_space): Delete.
10544 * progspace.h (program_space::program_space): Make explicit. Move
10545 intro comment here, adjusted.
10546 (program_space::~program_space): Move intro comment here,
10547 adjusted.
10548 (delete_program_space): Remove.
10549
10550 2020-04-16 Tom Tromey <tromey@adacore.com>
10551
10552 * windows-nat.c (windows_nat::handle_access_violation): New
10553 function.
10554 * nat/windows-nat.h (handle_access_violation): Declare.
10555 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10556 windows-nat.c. Call handle_access_violation.
10557
10558 2020-04-16 Tom de Vries <tdevries@suse.de>
10559
10560 PR symtab/25791
10561 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10562 CUs without psymtab.
10563
10564 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10565
10566 * python/python.c (do_start_initialization): Don't call
10567 PyEval_InitThreads for Python 3.9 and beyond.
10568
10569 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10570
10571 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10572 thread functions.
10573 (obsd_nat_target::wait): Likewise.
10574
10575 2020-04-15 Tom Tromey <tromey@adacore.com>
10576
10577 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10578 (DEBUG_EXCEPT): Use debug_printf.
10579
10580 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10581
10582 * completer.c (class completion_tracker::completion_hash_entry)
10583 <hash_name>: New member function.
10584 (completion_tracker::discard_completions): New callback to hash a
10585 completion_hash_entry, pass this to htab_create_alloc.
10586
10587 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10588
10589 * windows-nat.c (windows_make_so): Warn rather than stopping with
10590 an error if realpath() fails.
10591
10592 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10593
10594 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10595 (nbsd_nat_target::info_proc): Add do_status.
10596
10597 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10598 Tom de Vries <tdevries@suse.de>
10599
10600 PR symtab/25718
10601 * psympriv.h (struct partial_symtab::read_symtab)
10602 (struct partial_symtab::expand_psymtab)
10603 (struct partial_symtab::read_dependencies): Update comments.
10604 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10605 read_symtab for includer.
10606 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10607 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10608 (struct dwarf2_include_psymtab::m_readin): Remove.
10609 (struct dwarf2_include_psymtab::includer): New member function.
10610 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10611
10612 2020-04-14 Tom de Vries <tdevries@suse.de>
10613
10614 PR symtab/25720
10615 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10616 with NULL symbol_matcher and lookup_name.
10617 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10618 and lookup_name.
10619 * dwarf2/read.c (dw2_expand_symtabs_matching)
10620 (dw2_debug_names_expand_symtabs_matching): Same.
10621 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10622 Make lookup_name a pointer. Update comment.
10623 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10624 lookup_name being a pointer.
10625 * symfile.c (expand_symtabs_matching): Same.
10626 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10627 * linespec.c (iterate_over_all_matching_symtabs): Same.
10628
10629 2020-04-13 Tom Tromey <tom@tromey.com>
10630
10631 * run-on-main-thread.c: Update include.
10632 * unittests/main-thread-selftests.c: Update include.
10633 * tui/tui-win.c: Update include.
10634 * tui/tui-io.c: Update include.
10635 * tui/tui-interp.c: Update include.
10636 * tui/tui-hooks.c: Update include.
10637 * top.h: Update include.
10638 * top.c: Update include.
10639 * ser-base.c: Update include.
10640 * remote.c: Update include.
10641 * remote-notif.c: Update include.
10642 * remote-fileio.c: Update include.
10643 * record-full.c: Update include.
10644 * record-btrace.c: Update include.
10645 * python/python.c: Update include.
10646 * posix-hdep.c: Update include.
10647 * mingw-hdep.c: Update include.
10648 * mi/mi-main.c: Update include.
10649 * mi/mi-interp.c: Update include.
10650 * main.c: Update include.
10651 * linux-nat.c: Update include.
10652 * interps.c: Update include.
10653 * infrun.c: Update include.
10654 * inf-loop.c: Update include.
10655 * event-top.c: Update include.
10656 * event-loop.c: Move to ../gdbsupport/.
10657 * event-loop.h: Move to ../gdbsupport/.
10658 * async-event.h: Update include.
10659 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10660
10661 2020-04-13 Tom Tromey <tom@tromey.com>
10662
10663 * tui/tui-win.c: Include async-event.h.
10664 * remote.c: Include async-event.h.
10665 * remote-notif.c: Include async-event.h.
10666 * record-full.c: Include async-event.h.
10667 * record-btrace.c: Include async-event.h.
10668 * infrun.c: Include async-event.h.
10669 * event-top.c: Include async-event.h.
10670 * event-loop.h: Move some declarations to async-event.h.
10671 * event-loop.c: Don't include ser-event.h or top.h. Move some
10672 code to async-event.c.
10673 * async-event.h: New file.
10674 * async-event.c: New file.
10675 * Makefile.in (COMMON_SFILES): Add async-event.c.
10676 (HFILES_NO_SRCDIR): Add async-event.h.
10677
10678 2020-04-13 Tom Tromey <tom@tromey.com>
10679
10680 * utils.c (flush_streams): New function.
10681 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10682
10683 2020-04-13 Tom Tromey <tom@tromey.com>
10684
10685 * event-loop.c (handle_file_event): Use warning, not
10686 printf_unfiltered.
10687
10688 2020-04-13 Tom Tromey <tom@tromey.com>
10689
10690 * event-loop.c: Include <chrono>.
10691
10692 2020-04-13 Tom Tromey <tom@tromey.com>
10693
10694 * gdb_select.h: Move to ../gdbsupport/.
10695 * event-loop.c: Update include path.
10696 * top.c: Update include path.
10697 * ser-base.c: Update include path.
10698 * ui-file.c: Update include path.
10699 * ser-tcp.c: Update include path.
10700 * guile/scm-ports.c: Update include path.
10701 * posix-hdep.c: Update include path.
10702 * ser-unix.c: Update include path.
10703 * gdb_usleep.c: Update include path.
10704 * mingw-hdep.c: Update include path.
10705 * inflow.c: Update include path.
10706 * infrun.c: Update include path.
10707 * event-top.c: Update include path.
10708
10709 2020-04-13 Tom Tromey <tom@tromey.com>
10710
10711 * configure: Rebuild.
10712 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10713
10714 2020-04-13 Tom Tromey <tom@tromey.com>
10715
10716 * event-loop.h (start_event_loop): Don't declare.
10717 * event-loop.c (start_event_loop): Move...
10718 * main.c (start_event_loop): ...here. Now static.
10719
10720 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10721
10722 * MAINTAINERS: Update my email address.
10723
10724 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10725
10726 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10727 IP_ALL.
10728
10729 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10730
10731 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10732 (nbsd_nat_target::info_proc): Add do_cmdline.
10733
10734 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10735
10736 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10737 (nbsd_nat_target::info_proc): Add do_cwd.
10738
10739 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10740
10741 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10742
10743 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10744
10745 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10746 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10747 (nbsd_nat_target::info_proc): New functions.
10748 * nbsd-nat.c (kinfo_get_vmmap): New function.
10749 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10750 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10751 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10752 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10753 functions.
10754 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10755 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10756 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10757 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10758 (KINFO_VME_FLAG_GROWS_DOWN): New.
10759
10760 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10761
10762 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10763 bit shift.
10764
10765 2020-04-10 Tom Tromey <tromey@adacore.com>
10766
10767 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10768
10769 2020-04-10 Tom Tromey <tromey@adacore.com>
10770
10771 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10772 separate debug files.
10773
10774 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10775
10776 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10777 Move to...
10778 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10779 ... here.
10780 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10781 Check for STATUS_WX86_BREAKPOINT.
10782 (windows_nat_target::wait): Same.
10783
10784 2020-04-10 Tom de Vries <tdevries@suse.de>
10785
10786 PR cli/25808
10787 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10788
10789 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10790
10791 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10792 (Write After Approval): Remove Tom de Vries.
10793
10794 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10795
10796 revert partially:
10797 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10798
10799 * buildsym.c (record_line): Fix undefined behavior and preserve
10800 lines at eof.
10801
10802 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10803
10804 * auxv.h (svr4_auxv_parse): New.
10805 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10806 and generic_auxv_parse.
10807 (svr4_auxv_parse): Add.
10808 * obsd-tdep.c: Include "auxv.h".
10809 (obsd_auxv_parse): Remove.
10810 (obsd_init_abi): Remove comment.
10811 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10812 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10813 * nbsd-tdep.c: Include "auxv.h".
10814 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10815
10816 2020-04-08 Tom Tromey <tromey@adacore.com>
10817
10818 * nat/windows-nat.h (last_wait_event): Don't declare.
10819 (wait_for_debug_event): Update comment.
10820 * nat/windows-nat.c (last_wait_event): Now static.
10821
10822 2020-04-08 Tom Tromey <tromey@adacore.com>
10823
10824 * windows-nat.c (wait_for_debug_event): Move to
10825 nat/windows-nat.c.
10826 * nat/windows-nat.h (wait_for_debug_event): Declare.
10827 * nat/windows-nat.c (wait_for_debug_event): Move from
10828 windows-nat.c. No longer static.
10829
10830 2020-04-08 Tom Tromey <tromey@adacore.com>
10831
10832 * windows-nat.c (get_windows_debug_event): Use
10833 fetch_pending_stop.
10834 * nat/windows-nat.h (fetch_pending_stop): Declare.
10835 * nat/windows-nat.c (fetch_pending_stop): New function.
10836
10837 2020-04-08 Tom Tromey <tromey@adacore.com>
10838
10839 * windows-nat.c (windows_continue): Use matching_pending_stop and
10840 continue_last_debug_event.
10841 * nat/windows-nat.h (matching_pending_stop)
10842 (continue_last_debug_event): Declare.
10843 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10844 (matching_pending_stop, continue_last_debug_event): New
10845 functions.
10846
10847 2020-04-08 Tom Tromey <tromey@adacore.com>
10848
10849 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10850 (handle_exception_result): Move to nat/windows-nat.h.
10851 (DEBUG_EXCEPTION_SIMPLE): Remove.
10852 (windows_nat::handle_ms_vc_exception): New function.
10853 (handle_exception): Move to nat/windows-nat.c.
10854 (get_windows_debug_event): Update.
10855 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10856 nat/windows-nat.c.
10857 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10858 (handle_exception_result): Move from windows-nat.c.
10859 (handle_exception): Declare.
10860 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10861 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10862 windows-nat.c.
10863
10864 2020-04-08 Tom Tromey <tromey@adacore.com>
10865
10866 * windows-nat.c (exception_count, event_count): Remove.
10867 (handle_exception, get_windows_debug_event)
10868 (do_initial_windows_stuff): Update.
10869
10870 2020-04-08 Tom Tromey <tromey@adacore.com>
10871
10872 * windows-nat.c (windows_nat::handle_load_dll)
10873 (windows_nat::handle_unload_dll): Rename. No longer static.
10874 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10875 Declare.
10876
10877 2020-04-08 Tom Tromey <tromey@adacore.com>
10878
10879 * complaints.h (stop_whining): Declare at top-level.
10880 (complaint): Don't declare stop_whining.
10881
10882 2020-04-08 Tom Tromey <tromey@adacore.com>
10883
10884 * windows-nat.c (windows_nat::handle_output_debug_string):
10885 Rename. No longer static.
10886 * nat/windows-nat.h (handle_output_debug_string): Declare.
10887
10888 2020-04-08 Tom Tromey <tromey@adacore.com>
10889
10890 * windows-nat.c (current_process_handle, current_process_id)
10891 (main_thread_id, last_sig, current_event, last_wait_event)
10892 (current_windows_thread, desired_stop_thread_id, pending_stops)
10893 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10894 (display_selectors, fake_create_process)
10895 (get_windows_debug_event): Update.
10896 * nat/windows-nat.h (current_process_handle, current_process_id)
10897 (main_thread_id, last_sig, current_event, last_wait_event)
10898 (current_windows_thread, desired_stop_thread_id, pending_stops)
10899 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10900 * nat/windows-nat.c (current_process_handle, current_process_id)
10901 (main_thread_id, last_sig, current_event, last_wait_event)
10902 (current_windows_thread, desired_stop_thread_id, pending_stops)
10903 (siginfo_er): New globals. Move from windows-nat.c.
10904
10905 2020-04-08 Tom Tromey <tromey@adacore.com>
10906
10907 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10908 (handle_load_dll): Update.
10909 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10910
10911 2020-04-08 Tom Tromey <tromey@adacore.com>
10912
10913 * windows-nat.c (enum thread_disposition_type): Move to
10914 nat/windows-nat.h.
10915 (windows_nat::thread_rec): Rename from thread_rec. No longer
10916 static.
10917 (windows_add_thread, windows_nat_target::fetch_registers)
10918 (windows_nat_target::store_registers, handle_exception)
10919 (windows_nat_target::resume, get_windows_debug_event)
10920 (windows_nat_target::get_tib_address)
10921 (windows_nat_target::thread_name)
10922 (windows_nat_target::thread_alive): Update.
10923 * nat/windows-nat.h (enum thread_disposition_type): Move from
10924 windows-nat.c.
10925 (thread_rec): Declare.
10926
10927 2020-04-08 Tom Tromey <tromey@adacore.com>
10928
10929 * windows-nat.c: Add "using namespace".
10930 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10931 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10932
10933 2020-04-08 Tom Tromey <tromey@adacore.com>
10934
10935 * nat/windows-nat.h (struct windows_thread_info): Declare
10936 destructor.
10937 * nat/windows-nat.c (~windows_thread_info): New.
10938
10939 2020-04-08 Tom Tromey <tromey@adacore.com>
10940
10941 PR gdb/22992
10942 * windows-nat.c (current_event): Update comment.
10943 (last_wait_event, desired_stop_thread_id): New globals.
10944 (struct pending_stop): New.
10945 (pending_stops): New global.
10946 (windows_nat_target) <stopped_by_sw_breakpoint>
10947 <supports_stopped_by_sw_breakpoint>: New methods.
10948 (windows_fetch_one_register): Add assertions. Adjust PC.
10949 (windows_continue): Handle pending stops. Suspend other threads
10950 when stepping. Use last_wait_event
10951 (wait_for_debug_event): New function.
10952 (get_windows_debug_event): Use wait_for_debug_event. Handle
10953 pending stops. Queue spurious stops.
10954 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10955 (windows_nat_target::kill): Use wait_for_debug_event.
10956 * nat/windows-nat.h (struct windows_thread_info)
10957 <stopped_at_software_breakpoint>: New field.
10958 * nat/windows-nat.c (windows_thread_info::resume): Clear
10959 stopped_at_software_breakpoint.
10960
10961 2020-04-08 Tom Tromey <tromey@adacore.com>
10962
10963 * windows-nat.c (enum thread_disposition_type): New.
10964 (thread_rec): Replace "get_context" parameter with "disposition";
10965 change type.
10966 (windows_add_thread, windows_nat_target::fetch_registers)
10967 (windows_nat_target::store_registers, handle_exception)
10968 (windows_nat_target::resume, get_windows_debug_event)
10969 (windows_nat_target::get_tib_address)
10970 (windows_nat_target::thread_name)
10971 (windows_nat_target::thread_alive): Update.
10972
10973 2020-04-08 Tom Tromey <tromey@adacore.com>
10974
10975 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10976 (windows_continue): Use windows_continue::resume.
10977 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10978 resume>: Declare new methods.
10979 * nat/windows-nat.c: New file.
10980 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10981
10982 2020-04-08 Tom Tromey <tromey@adacore.com>
10983
10984 * windows-nat.c (windows_add_thread, windows_delete_thread)
10985 (windows_nat_target::fetch_registers)
10986 (windows_nat_target::store_registers, fake_create_process)
10987 (windows_nat_target::resume, windows_nat_target::resume)
10988 (get_windows_debug_event, windows_nat_target::wait)
10989 (windows_nat_target::pid_to_str)
10990 (windows_nat_target::get_tib_address)
10991 (windows_nat_target::get_ada_task_ptid)
10992 (windows_nat_target::thread_name)
10993 (windows_nat_target::thread_alive): Use lwp, not tid.
10994
10995 2020-04-08 Tom Tromey <tromey@adacore.com>
10996
10997 * windows-nat.c (handle_exception)
10998 (windows_nat_target::thread_name): Update.
10999 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11000 <name>: Now unique_xmalloc_ptr.
11001
11002 2020-04-08 Tom Tromey <tromey@adacore.com>
11003
11004 * windows-nat.c (thread_rec)
11005 (windows_nat_target::fetch_registers): Update.
11006 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11007 Update comment.
11008 <debug_registers_changed, reload_context>: Now bool.
11009
11010 2020-04-08 Tom Tromey <tromey@adacore.com>
11011
11012 * windows-nat.c (windows_add_thread): Use new.
11013 (windows_init_thread_list, windows_delete_thread): Use delete.
11014 (get_windows_debug_event): Update.
11015 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11016 destructor, and initializers.
11017
11018 2020-04-08 Tom Tromey <tromey@adacore.com>
11019
11020 * windows-nat.c (struct windows_thread_info): Remove.
11021 * nat/windows-nat.h: New file.
11022
11023 2020-04-08 Tom Tromey <tromey@adacore.com>
11024
11025 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11026 (thread_rec, windows_add_thread, windows_delete_thread)
11027 (windows_continue): Update.
11028
11029 2020-04-08 Tom Tromey <tromey@adacore.com>
11030
11031 * windows-nat.c (struct windows_thread_info): Remove typedef.
11032 (thread_head): Remove.
11033 (thread_list): New global.
11034 (thread_rec, windows_add_thread, windows_init_thread_list)
11035 (windows_delete_thread, windows_continue): Update.
11036
11037 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11038
11039 * windows-tdep.h (windows_init_abi): Add comment.
11040 (cygwin_init_abi): New declaration.
11041 * windows-tdep.c: Split signal enumeration in two, one for
11042 Windows and one for Cygwin.
11043 (windows_gdb_signal_to_target): Only deal with signal of the
11044 Windows OS ABI.
11045 (cygwin_gdb_signal_to_target): New function.
11046 (windows_init_abi): Rename to windows_init_abi_common, don't set
11047 gdb_signal_to_target gdbarch method. Add new new function with
11048 this name.
11049 (cygwin_init_abi): New function.
11050 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11051 comment. Don't call windows_init_abi.
11052 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11053 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11054 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11055 i386_windows_init_abi_common, don't call windows_init_abi. Add
11056 a new function of this name.
11057 (i386_cygwin_init_abi): New function.
11058 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11059 OS ABI Cygwin.
11060
11061 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11062
11063 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11064 parameter.c.
11065 (dwarf2_read_gdb_index): Update.
11066
11067 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11068
11069 * nbsd-tdep.c: Include "objfiles.h".
11070 (nbsd_skip_solib_resolver): New.
11071 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11072
11073 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11074
11075 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11076 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11077 with DW_LLE_base_addressx are being emitted in DWARFv5.
11078 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11079 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11080 unsigned integer.
11081
11082 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11083
11084 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11085 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11086 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11087 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11088 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11089 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11090 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11091
11092
11093 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11094
11095 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11096 (read_loclist_index): New function definition.
11097 (lookup_loclist_base): New function definition.
11098 (read_loclist_header): New function definition.
11099 (dwarf2_cu): Add loclist_base and loclist_header field.
11100 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11101 (read_full_die_1): Read the value of DW_AT_loclists_base.
11102 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11103 (read_attribute_value): Handle DW_FORM_loclistx.
11104 (skip_one_die): Handle DW_FORM_loclistx.
11105 (loclist_header): New structure declaration.
11106 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11107
11108 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11109
11110 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11111 constructor. Remove `addr` parameter from other constructor and
11112 add `per_cu` parameter.
11113 * dwarf2/read.c (create_partial_symtab): Update.
11114
11115 2020-04-07 Tom de Vries <tdevries@suse.de>
11116
11117 PR symtab/25796
11118 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11119 (partial_die_info::fixup): Inherit has_const_value.
11120
11121 2020-04-07 Tom de Vries <tdevries@suse.de>
11122
11123 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11124 symbols without address.
11125
11126 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11127
11128 * nbsd-nat.h (struct thread_info): Add forward declaration.
11129 (nbsd_nat_target::thread_alive): Add.
11130 (nbsd_nat_target::thread_name): Likewise.
11131 (nbsd_nat_target::update_thread_list): Likewise.
11132 (update_thread_list::post_attach): Likewise.
11133 (post_attach::pid_to_str): Likewise.
11134 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11135 (nbsd_thread_lister): Add.
11136 (nbsd_nat_target::thread_alive): Likewise.
11137 (nbsd_nat_target::thread_name): Likewise.
11138 (nbsd_add_threads): Likewise.
11139 (update_thread_list::post_attach): Likewise.
11140 (nbsd_nat_target::update_thread_list): Likewise.
11141 (post_attach::pid_to_str): Likewise.
11142
11143 2020-04-06 Tom Tromey <tromey@adacore.com>
11144
11145 * ada-valprint.c (print_variant_part): Extract the variant field.
11146 (print_field_values): Use the field as the outer value when
11147 recursing.
11148
11149 2020-04-06 Tom Tromey <tromey@adacore.com>
11150
11151 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11152 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11153 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11154 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11155 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11156
11157 2020-04-06 Tom Tromey <tromey@adacore.com>
11158
11159 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11160 TYPE_CODE_ERROR.
11161
11162 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11163
11164 * nbsd-tdep.c: Include "gdbarch.h".
11165 Define enum with NetBSD signal numbers.
11166 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11167 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11168 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11169 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11170 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11171 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11172 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11173 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11174 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11175 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11176 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11177 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11178
11179 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11180
11181 PR gdb/25325
11182 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11183
11184 2020-04-03 Tom Tromey <tromey@adacore.com>
11185
11186 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11187 Read constant block.
11188
11189 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11190
11191 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11192 (gdb_bfd_get_full_section_contents): New declaration.
11193 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11194 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11195 gdb_bfd_get_full_section_contents.
11196
11197 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11198
11199 * exec.c (build_section_table): Replace internal_error with
11200 gdb_assert.
11201 (section_table_xfer_memory_partial): Likewise.
11202 * mdebugread.c (parse_partial_symbols): Likewise.
11203 * psymtab.c (lookup_partial_symbol): Likewise.
11204 * utils.c (wrap_here): Likewise.
11205
11206 2020-04-02 Tom Tromey <tromey@adacore.com>
11207
11208 * f-lang.c (build_fortran_types): Use arch_type to initialize
11209 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11210
11211 2020-04-02 Tom Tromey <tromey@adacore.com>
11212
11213 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11214 of attributes.
11215
11216 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11217 Bernd Edlinger <bernd.edlinger@hotmail.de>
11218 Tom Tromey <tromey@adacore.com>
11219
11220 * buildsym.c (buildsym_compunit::record_line): Remove
11221 deduplication code.
11222
11223 2020-04-02 Tom de Vries <tdevries@suse.de>
11224
11225 PR ada/24671
11226 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11227
11228 2020-04-02 Tom de Vries <tdevries@suse.de>
11229
11230 * dwarf2/read.c (dwarf2_gdb_index_functions,
11231 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11232 NULL.
11233 * psymtab.c (psym_lookup_global_symbol_language): New function.
11234 (psym_functions): Init psym_lookup_global_symbol_language with
11235 psym_lookup_global_symbol_language.
11236 * symfile-debug.c (debug_sym_quick_functions): Init
11237 lookup_global_symbol_language with NULL.
11238 * symfile.c (set_initial_language): Remove fixme comment.
11239 * symfile.h (struct quick_symbol_functions): Add
11240 lookup_global_symbol_language.
11241 * symtab.c (find_quick_global_symbol_language): New function.
11242 (find_main_name): Use find_quick_global_symbol_language.
11243
11244 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11245
11246 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11247
11248 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11249
11250 * buildsym.c (record_line): Fix undefined behavior and preserve
11251 lines at eof.
11252
11253 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11254
11255 * buildsym.c (record_line): Fix the resizing condition.
11256
11257 2020-04-01 Tom Tromey <tom@tromey.com>
11258
11259 * value.h (value_literal_complex): Add comment.
11260 * valops.c (value_literal_complex): Refer to value.h.
11261
11262 2020-04-01 Tom Tromey <tom@tromey.com>
11263
11264 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11265 (scalar_type): New rule, from typebase.
11266 (typebase): Use scalar_type. Recognize complex types.
11267 (field_name): Handle FLOAT_KEYWORD.
11268 (ident_tokens): Add _Complex and __complex__.
11269
11270 2020-04-01 Tom Tromey <tom@tromey.com>
11271
11272 PR exp/25299:
11273 * valarith.c (promotion_type, complex_binop): New functions.
11274 (scalar_binop): Handle complex numbers. Use promotion_type.
11275 (value_pos, value_neg, value_complement): Handle complex numbers.
11276
11277 2020-04-01 Tom Tromey <tom@tromey.com>
11278
11279 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11280 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11281 (parse_number): Handle complex numbers.
11282
11283 2020-04-01 Tom Tromey <tom@tromey.com>
11284
11285 * c-valprint.c (c_decorations): Change complex suffix to "i".
11286
11287 2020-04-01 Tom Tromey <tom@tromey.com>
11288
11289 * valprint.c (generic_value_print_complex): Use accessors.
11290 * value.h (value_real_part, value_imaginary_part): Declare.
11291 * valops.c (value_real_part, value_imaginary_part): New
11292 functions.
11293 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11294
11295 2020-04-01 Tom Tromey <tom@tromey.com>
11296
11297 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11298 (read_range_type): Update.
11299 * mdebugread.c (basic_type): Update.
11300 * go-lang.c (build_go_types): Use init_complex_type.
11301 * gdbtypes.h (struct main_type) <complex_type>: New member.
11302 (init_complex_type): Update.
11303 (arch_complex_type): Don't declare.
11304 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11305 Make name if none given. Use alloc_type_copy. Look for cached
11306 complex type.
11307 (arch_complex_type): Remove.
11308 (gdbtypes_post_init): Use init_complex_type.
11309 * f-lang.c (build_fortran_types): Use init_complex_type.
11310 * dwarf2/read.c (read_base_type): Update.
11311 * d-lang.c (build_d_types): Use init_complex_type.
11312 * ctfread.c (read_base_type): Update.
11313
11314 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11315
11316 * infrun.c (stop_all_threads): Update assertion, plus when
11317 stopping threads, take into account that we might be trying
11318 to stop an all-stop target.
11319 (stop_waiting): Call 'stop_all_threads' if there exists a
11320 non-stop target.
11321
11322 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11323
11324 * target.h (exists_non_stop_target): New function declaration.
11325 * target.c (exists_non_stop_target): New function.
11326
11327 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11328
11329 PR gdb/24789
11330 * eval.c (is_integral_or_integral_reference): New function.
11331 (evaluate_subexp_standard): Allow integer references in
11332 pointer arithmetic.
11333
11334 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11335
11336 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11337 check for no ptid in the stop reply when the target is non-stop.
11338
11339 2020-04-01 Tom Tromey <tromey@adacore.com>
11340
11341 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11342 "name" parameter to rvalue reference. Initialize m_name_holder.
11343 <lookup_name_info>: New overloads.
11344 <name>: Return gdb::string_view.
11345 <c_str>: New method.
11346 <make_ignore_params>: Update.
11347 <search_name_hash>: Update.
11348 <language_lookup_name>: Return const char *.
11349 <m_name>: Change type.
11350 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11351 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11352 (lookup_name_info::match_any): Update.
11353 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11354 Update.
11355 * minsyms.c (linkage_name_str): Update.
11356 * language.c (default_symbol_name_matcher): Update.
11357 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11358 Update.
11359 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11360 (ada_lookup_name_info::ada_lookup_name_info): Update.
11361 (literal_symbol_name_matcher): Update.
11362
11363 2020-04-01 Tom Tromey <tromey@adacore.com>
11364
11365 * psymtab.c (psymtab_search_name): Remove function.
11366 (psym_lookup_symbol): Create search name and lookup name here.
11367 (lookup_partial_symbol): Remove "name" parameter; add
11368 lookup_name.
11369 (psym_expand_symtabs_for_function): Update.
11370
11371 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11372
11373 PR tui/25597:
11374 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11375
11376 2020-03-31 Tom Tromey <tromey@adacore.com>
11377
11378 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11379 memcpy.
11380
11381 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11382
11383 * features/riscv/32bit-csr.xml: Regenerated.
11384 * features/riscv/64bit-csr.xml: Regenerated.
11385
11386 2020-03-30 Tom Tromey <tromey@adacore.com>
11387
11388 * ada-valprint.c (print_variant_part): Update.
11389 * ada-lang.h (ada_which_variant_applies): Update.
11390 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11391 outer_valaddr parameters; replace with "outer" value parameter.
11392 (to_fixed_variant_branch_type): Update.
11393
11394 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11395
11396 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11397 <list>. Remove inclusion of observable.h.
11398 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11399 (struct arch_lwp_info): New struct.
11400 (class ppc_linux_dreg_interface): New class.
11401 (struct ppc_linux_process_info): New struct.
11402 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11403 <low_new_clone, low_forget_process, low_prepare_to_resume>
11404 <copy_thread_dreg_state, mark_thread_stale>
11405 <mark_debug_registers_changed, register_hw_breakpoint>
11406 <clear_hw_breakpoint, register_wp, clear_wp>
11407 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11408 <num_memory_accesses, get_trigger_type>
11409 <create_watchpoint_request, hwdebug_point_cmp>
11410 <init_arch_lwp_info, get_arch_lwp_info>
11411 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11412 methods.
11413 <struct ptid_hash>: New inner struct.
11414 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11415 members.
11416 (saved_dabr_value, hwdebug_info, max_slots_number)
11417 (struct hw_break_tuple, struct thread_points, ppc_threads)
11418 (have_ptrace_hwdebug_interface)
11419 (hwdebug_find_thread_points_by_tid)
11420 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11421 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11422 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11423 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11424 use m_dreg_interface.
11425 (hwdebug_point_cmp): Change to...
11426 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11427 reference arguments instead of pointers.
11428 (ppc_linux_nat_target::ranged_break_num_registers): Use
11429 m_dreg_interface.
11430 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11431 m_dreg_interface. Call register_hw_breakpoint.
11432 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11433 m_dreg_interface. Call clear_hw_breakpoint.
11434 (get_trigger_type): Change to...
11435 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11436 comment.
11437 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11438 use m_dreg_interface. Call register_hw_breakpoint.
11439 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11440 use m_dreg_interface. Call clear_hw_breakpoint.
11441 (can_use_watchpoint_cond_accel): Change to...
11442 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11443 method. Update comment, use m_dreg_interface and
11444 m_process_info.
11445 (calculate_dvc): Change to...
11446 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11447 m_dreg_interface.
11448 (num_memory_accesses): Change to...
11449 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11450 (check_condition): Change to...
11451 (ppc_linux_nat_target::check_condition): ...this method.
11452 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11453 comment, use m_dreg_interface.
11454 (create_watchpoint_request): Change to...
11455 (ppc_linux_nat_target::create_watchpoint_request): ...this
11456 method. Use m_dreg_interface.
11457 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11458 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11459 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11460 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11461 (ppc_linux_nat_target::low_forget_process)
11462 (ppc_linux_nat_target::low_new_fork)
11463 (ppc_linux_nat_target::low_new_clone)
11464 (ppc_linux_nat_target::low_delete_thread)
11465 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11466 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11467 only call mark_thread_stale.
11468 (ppc_linux_thread_exit): Remove.
11469 (ppc_linux_nat_target::stopped_data_address): Change to...
11470 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11471 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11472 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11473 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11474 comment. Call low_stopped_data_address.
11475 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11476 m_dreg_interface.
11477 (ppc_linux_nat_target::masked_watch_num_registers): Use
11478 m_dreg_interface.
11479 (ppc_linux_nat_target::copy_thread_dreg_state)
11480 (ppc_linux_nat_target::mark_thread_stale)
11481 (ppc_linux_nat_target::mark_debug_registers_changed)
11482 (ppc_linux_nat_target::register_hw_breakpoint)
11483 (ppc_linux_nat_target::clear_hw_breakpoint)
11484 (ppc_linux_nat_target::register_wp)
11485 (ppc_linux_nat_target::clear_wp)
11486 (ppc_linux_nat_target::init_arch_lwp_info)
11487 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11488 (_initialize_ppc_linux_nat): Remove observer callback.
11489
11490 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11491
11492 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11493 (ppc_linux_nat_target::auxv_parse)
11494 (ppc_linux_nat_target::read_description)
11495 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11496 Move up.
11497
11498 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11499
11500 * linux-nat.h (low_new_clone): New method.
11501 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11502
11503 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11504
11505 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11506 (dbx_expand_psymtab): ... this.
11507 (start_psymtab): Update.
11508 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11509 (mdebug_expand_psymtab): ... this.
11510 (parse_partial_symbols): Update.
11511 (new_psymtab): Update.
11512 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11513 (xcoff_expand_psymtab): ... this.
11514 (xcoff_start_psymtab): Update.
11515
11516 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11517
11518 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11519 <expand_dependencies>: ... this.
11520 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11521 (partial_symtab::expand_dependencies): ... this.
11522 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11523 Update.
11524 (dwarf2_psymtab::expand_psymtab): Update.
11525 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11526 * mdebugread.c (psymtab_to_symtab_1): Update.
11527 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11528
11529 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11530
11531 * psympriv.h (discard_psymtab): Remove.
11532 * dbxread.c (dbx_end_psymtab): Update.
11533 * xcoffread.c (xcoff_end_psymtab): Update.
11534
11535 2020-03-28 Tom Tromey <tom@tromey.com>
11536
11537 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11538 comment.
11539
11540 2020-03-28 Tom Tromey <tom@tromey.com>
11541
11542 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11543
11544 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11545
11546 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11547
11548 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11549
11550 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11551
11552 2020-03-26 Tom Tromey <tom@tromey.com>
11553
11554 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11555 (mark_common_block_symbol_computed, read_tag_string_type)
11556 (attr_to_dynamic_prop, read_subrange_type): Update.
11557 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11558 to be methods on struct attribute.
11559 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11560 (read_call_site_scope, partial_die_info::read)
11561 (partial_die_info::read, lookup_die_type, follow_die_ref):
11562 Update.
11563 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11564 from dwarf2_get_ref_die_offset.
11565 (attribute::constant_value): New method, from
11566 dwarf2_get_attr_constant_value.
11567 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11568 Declare method.
11569 <constant_value>: New method.
11570
11571 2020-03-26 Tom Tromey <tom@tromey.com>
11572
11573 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11574 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11575 (dwarf_type_encoding_name): Move to stringify.c.
11576 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11577 * dwarf2/stringify.c: New file.
11578 * dwarf2/stringify.h: New file.
11579
11580 2020-03-26 Tom Tromey <tom@tromey.com>
11581
11582 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11583 Rewrite.
11584
11585 2020-03-26 Tom Tromey <tom@tromey.com>
11586
11587 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11588 methods.
11589 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11590 (lookup_ranges_base): Likewise.
11591 (read_cutu_die_from_dwo, read_full_die_1): Update.
11592
11593 2020-03-26 Tom Tromey <tom@tromey.com>
11594
11595 * dwarf2/read.c (read_import_statement, read_file_scope)
11596 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11597 (read_lexical_block_scope, read_call_site_scope)
11598 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11599 (handle_struct_member_die, process_structure_scope)
11600 (update_enumeration_type_from_children)
11601 (process_enumeration_scope, read_array_type, read_common_block)
11602 (read_namespace, read_module, read_subroutine_type): Update.
11603 (sibling_die): Remove.
11604
11605 2020-03-26 Tom Tromey <tom@tromey.com>
11606
11607 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11608 (build_type_psymtabs_reader, read_structure_type)
11609 (read_enumeration_type, read_full_die_1): Update.
11610 (dwarf2_attr_no_follow): Move to die.h.
11611 * dwarf2/die.h (struct die_info) <attr>: New method.
11612
11613 2020-03-26 Tom Tromey <tom@tromey.com>
11614
11615 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11616 <base_address>: Now an optional.
11617 (dwarf2_find_base_address, dwarf2_rnglists_process)
11618 (dwarf2_ranges_process, fill_in_loclist_baton)
11619 (dwarf2_symbol_mark_computed): Update.
11620
11621 2020-03-26 Tom Tromey <tom@tromey.com>
11622
11623 * dwarf2/read.c (struct die_info): Move to die.h.
11624 * dwarf2/die.h: New file.
11625
11626 2020-03-26 Tom Tromey <tom@tromey.com>
11627
11628 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11629 * dwarf2/read.c
11630 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11631 Move to line-header.c.
11632 (read_checked_initial_length_and_offset, read_formatted_entries):
11633 Likewise.
11634 (dwarf_decode_line_header): Split into two.
11635 * dwarf2/line-header.c
11636 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11637 Move from read.c.
11638 (read_checked_initial_length_and_offset, read_formatted_entries):
11639 Likewise.
11640 (dwarf_decode_line_header): New function, split from read.c.
11641
11642 2020-03-26 Tom Tromey <tom@tromey.com>
11643
11644 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11645 Declare method.
11646 * dwarf2/read.c (read_attribute_value): Update.
11647 (dwarf2_per_objfile::read_line_string): Rename from
11648 read_indirect_line_string.
11649 (read_formatted_entries): Update.
11650
11651 2020-03-26 Tom Tromey <tom@tromey.com>
11652
11653 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11654 variable.
11655
11656 2020-03-26 Tom Tromey <tom@tromey.com>
11657
11658 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11659 const.
11660 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11661 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11662 parameter const.
11663
11664 2020-03-26 Tom Tromey <tom@tromey.com>
11665
11666 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11667 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11668 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11669 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11670
11671 2020-03-26 Tom Tromey <tom@tromey.com>
11672
11673 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11674 file_names_size, file_full_name, file_file_name>: Use const.
11675 <file_name_at, file_names>: Add const overload.
11676 * dwarf2/line-header.c (line_header::file_file_name)
11677 (line_header::file_full_name): Update.
11678
11679 2020-03-26 Tom Tromey <tom@tromey.com>
11680
11681 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11682 (macro_start_file, consume_improper_spaces)
11683 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11684 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11685 (dwarf_decode_macros): Move to macro.c.
11686 * dwarf2/macro.c: New file.
11687 * dwarf2/macro.h: New file.
11688 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11689
11690 2020-03-26 Tom Tromey <tom@tromey.com>
11691
11692 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11693 method.
11694 * dwarf2/section.c: New method. From
11695 read_indirect_string_at_offset_from.
11696 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11697 (read_indirect_string_at_offset_from): Move to section.c.
11698 (read_indirect_string_at_offset): Rewrite.
11699 (read_indirect_line_string_at_offset): Remove.
11700 (read_indirect_string, read_indirect_line_string)
11701 (dwarf_decode_macro_bytes): Update.
11702
11703 2020-03-26 Tom Tromey <tom@tromey.com>
11704
11705 * dwarf2/section.h (struct dwarf2_section_info)
11706 <overload_complaint>: Declare.
11707 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11708 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11709 Rename from dwarf2_section_buffer_overflow_complaint.
11710 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11711 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11712
11713 2020-03-26 Tom Tromey <tom@tromey.com>
11714
11715 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11716 Declare.
11717 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11718 Move from read.c.
11719 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11720 to section.c.
11721
11722 2020-03-26 Tom Tromey <tom@tromey.com>
11723
11724 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11725
11726 2020-03-26 Tom Tromey <tom@tromey.com>
11727
11728 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11729 "builder".
11730 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11731 parameter.
11732 (dwarf_decode_macros): Update.
11733
11734 2020-03-26 Tom Tromey <tom@tromey.com>
11735
11736 * dwarf2/read.c (read_attribute_value): Update.
11737 (read_indirect_string_from_dwz): Move to dwz.c; change into
11738 method.
11739 (dwarf_decode_macro_bytes): Update.
11740 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11741 * dwarf2/dwz.c: New file.
11742 * Makefile.in (COMMON_SFILES): Add dwz.c.
11743
11744 2020-03-26 Tom Tromey <tom@tromey.com>
11745
11746 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11747 * dwarf2/read.c: Add include.
11748 * dwarf2/index-write.c: Add include.
11749 * dwarf2/index-cache.c: Add include.
11750 * dwarf2/dwz.h: New file.
11751
11752 2020-03-25 Tom Tromey <tom@tromey.com>
11753
11754 * compile/compile-object-load.c (get_out_value_type): Mention
11755 correct symbol name in error message.
11756
11757 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11758
11759 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11760
11761 2020-03-25 Tom de Vries <tdevries@suse.de>
11762
11763 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11764 * symmisc.c (dump_symtab_1): Print user and includes fields.
11765 (maintenance_info_symtabs): Same.
11766
11767 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11768
11769 PR gdb/25534
11770 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11771 (riscv_regcache_cooked_write): New function.
11772 (riscv_push_dummy_call): Use new function.
11773 (riscv_return_value): Likewise.
11774
11775 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11776
11777 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11778 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11779 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11780 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11781 * infrun.c (follow_fork): Likewise.
11782 (follow_fork_inferior): Likewise.
11783 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11784 * linux-nat.h (class linux_nat_target): Likewise.
11785 * remote.c (class remote_target) <follow_fork>: Likewise.
11786 (remote_target::follow_fork): Likewise.
11787 * target-delegates.c: Re-generate.
11788 * target.c (default_follow_fork): Likewise.
11789 (target_follow_fork): Likewise.
11790 * target.h (struct target_ops) <follow_fork>: Likewise.
11791 (target_follow_fork): Likewise.
11792
11793 2020-03-24 Tom de Vries <tdevries@suse.de>
11794
11795 * psymtab.c (maintenance_info_psymtabs): Print user field.
11796
11797 2020-03-20 Tom Tromey <tromey@adacore.com>
11798
11799 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11800 const.
11801 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11802 const.
11803
11804 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11805
11806 * ptrace.m4: Don't check for ptrace declaration.
11807 * config.in: Re-generate.
11808 * configure: Re-generate.
11809 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11810 not defined.
11811
11812 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11813
11814 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11815 `PTRACE_TYPE_RET'.
11816 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11817 * sparc-nat.c (gdb_ptrace): Likewise.
11818 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11819
11820 2020-03-20 Tom Tromey <tromey@adacore.com>
11821
11822 * c-exp.y (lex_one_token): Fix assert.
11823
11824 2020-03-20 Tom Tromey <tromey@adacore.com>
11825
11826 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11827 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11828 strncpy call.
11829
11830 2020-03-20 Tom Tromey <tromey@adacore.com>
11831
11832 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11833
11834 2020-03-20 Tom Tromey <tromey@adacore.com>
11835
11836 * ada-valprint.c (print_variant_part): Remove parameters; switch
11837 to value-based API.
11838 (print_field_values): Likewise.
11839 (ada_val_print_struct_union): Likewise.
11840 (ada_value_print_1): Update.
11841
11842 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11843
11844 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11845 nbsd_nat_target instead of inf_ptrace_target.
11846 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11847 nbsd_nat_target.
11848
11849 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11850
11851 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11852 it to the ptrace call.
11853 * (store_registers): Likewise.
11854
11855 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11856
11857 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11858 it to the ptrace call.
11859 * (store_registers): Likewise.
11860
11861 2020-03-19 Luis Machado <luis.machado@linaro.org>
11862
11863 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11864 valid, fetch vg value from ptrace.
11865
11866 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11867 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11868 * inf-ptrace.c: Likewise.
11869 * (gdb_ptrace): Add.
11870 * (inf_ptrace_target::resume): Update.
11871 * (inf_ptrace_target::xfer_partial): Likewise.
11872 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11873 * (inf_ptrace_peek_poke): Update.
11874
11875 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11876
11877 * x86-bsd-nat.c (gdb_ptrace): New.
11878 * (x86bsd_dr_set): Add new argument `ptid'.
11879 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11880 x86bsd_dr_set_addr): Update.
11881
11882 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11883
11884 * remote.c (remote_target::process_stop_reply): Handle events for
11885 all threads differently.
11886
11887 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11888
11889 * completer.c (completion_tracker::remove_completion): Define new
11890 function.
11891 * completer.h (completion_tracker::remove_completion): Declare new
11892 function.
11893 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11894 when adding a C++ function symbol.
11895
11896 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11897
11898 * completer.c (completion_tracker::completion_hash_entry): Define
11899 new class.
11900 (advance_to_filename_complete_word_point): Call
11901 recompute_lowest_common_denominator.
11902 (completion_tracker::completion_tracker): Call discard_completions
11903 to setup the hash table.
11904 (completion_tracker::discard_completions): Allow for being called
11905 from the constructor, pass new equal function, and element deleter
11906 when constructing the hash table. Initialise new class member
11907 variables.
11908 (completion_tracker::maybe_add_completion): Remove use of
11909 m_entries_vec, and store more information into m_entries_hash.
11910 (completion_tracker::recompute_lcd_visitor): New function, most
11911 content taken from...
11912 (completion_tracker::recompute_lowest_common_denominator):
11913 ...here, this now just visits each item in the hash calling the
11914 above visitor.
11915 (completion_tracker::build_completion_result): Remove use of
11916 m_entries_vec, call recompute_lowest_common_denominator.
11917 * completer.h (completion_tracker::have_completions): Remove use
11918 of m_entries_vec.
11919 (completion_tracker::completion_hash_entry): Declare new class.
11920 (completion_tracker::recompute_lowest_common_denominator): Change
11921 function signature.
11922 (completion_tracker::recompute_lcd_visitor): Declare new function.
11923 (completion_tracker::m_entries_vec): Delete.
11924 (completion_tracker::m_entries_hash): Initialize to NULL.
11925 (completion_tracker::m_lowest_common_denominator_valid): New
11926 member variable.
11927 (completion_tracker::m_lowest_common_denominator_max_length): New
11928 member variable.
11929
11930 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11931
11932 * regformats/regdef.h: Put reg in gdb namespace.
11933
11934 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11935
11936 * i386-bsd-nat.c (gdb_ptrace): New.
11937 * (i386bsd_fetch_inferior_registers,
11938 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11939 * (i386bsd_fetch_inferior_registers,
11940 i386bsd_store_inferior_registers) Use gdb_ptrace.
11941
11942 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11943
11944 * amd64-bsd-nat.c (gdb_ptrace): New.
11945 * (amd64bsd_fetch_inferior_registers,
11946 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11947 * (amd64bsd_fetch_inferior_registers,
11948 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11949
11950 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11951
11952 * user-regs.c (user_reg::read): Rename to...
11953 (user_reg::xread): ...this.
11954 * (append_user_reg): Rename argument `read' to `xread'.
11955 * (user_reg_add_builtin): Likewise.
11956 * (user_reg_add): Likewise.
11957 * (value_of_user_reg): Likewise.
11958
11959 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11960
11961 * sparc-nat.c (gdb_ptrace): New.
11962 * sparc-nat.c (sparc_fetch_inferior_registers)
11963 (sparc_store_inferior_registers) Remove obsolete comment.
11964 * sparc-nat.c (sparc_fetch_inferior_registers)
11965 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11966 * sparc-nat.c (sparc_fetch_inferior_registers)
11967 (sparc_store_inferior_registers) Use gdb_ptrace.
11968
11969 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11970
11971 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11972 it to the ptrace call.
11973 * sh-nbsd-nat.c (store_registers): Likewise.
11974
11975 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11976
11977 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11978 nbsd_nat_target instead of inf_ptrace_target.
11979 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11980 nbsd_nat_target.
11981
11982 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11983
11984 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11985
11986 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11987
11988 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11989 <sys/sysctl.h>.
11990 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11991
11992 2020-03-17 Tom de Vries <tdevries@suse.de>
11993
11994 PR gdb/23710
11995 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11996 fields.
11997 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11998 fields.
11999 (process_imported_unit_die): Skip import of c++ CUs.
12000
12001 2020-03-16 Tom Tromey <tom@tromey.com>
12002
12003 * p-valprint.c (pascal_object_print_value): Initialize
12004 base_value.
12005
12006 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12007 Shahab Vahedi <shahab@synopsys.com>
12008
12009 * Makefile.in: Add arch/arc.o
12010 * configure.tgt: Likewise.
12011 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12012 (_initialize_arc_tdep): Don't initialize old target descriptions.
12013 (arc_read_description): New function to cache target descriptions.
12014 * arc-tdep.h (arc_read_description): Add proto type.
12015 * arch/arc.c: New file.
12016 * arch/arc.h: Likewise.
12017 * features/Makefile: Replace old target descriptions with new.
12018 * features/arc-arcompact.c: Remove.
12019 * features/arc-arcompact.xml: Likewise.
12020 * features/arc-v2.c: Likewise
12021 * features/arc-v2.xml: Likewise
12022 * features/arc/aux-arcompact.xml: New file.
12023 * features/arc/aux-v2.xml: Likewise.
12024 * features/arc/core-arcompact.xml: Likewise.
12025 * features/arc/core-v2.xml: Likewise.
12026 * features/arc/aux-arcompact.c: Generate.
12027 * features/arc/aux-v2.c: Likewise.
12028 * features/arc/core-arcompact.c: Likewise.
12029 * features/arc/core-v2.c: Likewise.
12030 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12031
12032 2020-03-16 Tom Tromey <tromey@adacore.com>
12033
12034 PR gdb/25663:
12035 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12036 putting value into bcache.
12037
12038 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12039
12040 PR gdb/21500
12041 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12042 to...
12043 (amd64_windows_init_abi_common): ... this. Don't set size of
12044 long type.
12045 (amd64_windows_init_abi): New function.
12046 (amd64_cygwin_init_abi): New function.
12047 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12048 the Cygwin OS ABI.
12049 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12050 comment.
12051
12052 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12053
12054 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12055 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12056 (pe_import_directory_entry): New struct type.
12057 (is_linked_with_cygwin_dll): New function.
12058 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12059 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12060 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12061
12062 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12063
12064 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12065 i386_cygwin_core_osabi_sniffer.
12066
12067 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12068
12069 * i386-cygwin-tdep.c: Rename to...
12070 * i386-windows-tdep.c: ... this.
12071 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12072 i386-windows-tdep.c.
12073 * configure.tgt: Likewise.
12074
12075 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12076
12077 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12078 * osabi.c (gdb_osabi_names): Add "Windows".
12079 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12080 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12081 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12082 i386_cygwin_osabi_sniffer.
12083 (_initialize_i386_cygwin_tdep): Register OS ABI
12084 GDB_OSABI_WINDOWS for i386.
12085 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12086 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12087 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12088 for x86-64.
12089 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12090 when the target matches '*-*-mingw*'.
12091
12092 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12093
12094 * defs.h (enum gdb_osabi): Move to...
12095 * osabi.h (enum gdb_osabi): ... here.
12096 * gdbarch.sh: Include osabi.h in gdbarch.h.
12097 * gdbarch.h: Re-generate.
12098
12099 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12100
12101 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12102 function.
12103 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12104
12105 2020-03-14 Tom Tromey <tom@tromey.com>
12106
12107 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12108 for C++.
12109 (c_type_print_modifier): Likewise. Add "language" parameter.
12110 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12111 (c_type_print_base_1): Update.
12112 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12113 constants.
12114 * type-stack.c (type_stack::insert): Handle tp_atomic and
12115 tp_restrict.
12116 (type_stack::follow_type_instance_flags): Likewise.
12117 (type_stack::follow_types): Likewise. Merge type-following code.
12118 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12119 (space_identifier, cv_with_space_id)
12120 (const_or_volatile_or_space_identifier_noopt)
12121 (const_or_volatile_or_space_identifier): Remove.
12122 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12123 rules.
12124 (ptr_operator, typebase): Update.
12125 (enum token_flag) <FLAG_C>: New constant.
12126 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12127 "_Atomic".
12128 (lex_one_token): Handle FLAG_C.
12129
12130 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12131
12132 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12133 it to the ptrace call.
12134 * m68k-bsd-nat.c (store_registers): Likewise.
12135
12136 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12137
12138 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12139 gdb_byte *.
12140 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12141 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12142 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12143
12144 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12145
12146 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12147 nbsd_nat_target instead of inf_ptrace_target.
12148 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12149 nbsd_nat_target.
12150
12151 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12152
12153 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12154 register_t.
12155
12156 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12157
12158 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12159 it to the ptrace call.
12160 * alpha-bsd-nat.c (store_registers): Likewise.
12161
12162 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12163
12164 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12165 includes.
12166 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12167 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12168 fill_fpregset): Likewise.
12169
12170 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12171
12172 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12173 nbsd_nat_target instead of inf_ptrace_target.
12174 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12175 nbsd_nat_target.
12176
12177 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12178
12179 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12180 register_t.
12181
12182 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12183
12184 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12185 it to the ptrace call.
12186 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12187 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12188 * arm-nbsd-nat.c (store_register): Likewise.
12189 * arm-nbsd-nat.c (store_regs): Likewise.
12190 * arm-nbsd-nat.c (store_fp_register): Likewise.
12191 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12192
12193 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12194
12195 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12196 nbsd_nat_target instead of inf_ptrace_target.
12197 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12198 nbsd_nat_target.
12199
12200 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12201
12202 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12203 it to the ptrace call.
12204 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12205
12206 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12207
12208 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12209 it to the ptrace call.
12210 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12211
12212 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12213
12214 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12215 gdb_byte *.
12216 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12217
12218 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12219
12220 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12221 instead of inf_ptrace_target.
12222 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12223 nbsd_nat_target.
12224
12225 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12226
12227 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12228 register_t.
12229
12230 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12231
12232 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12233 register_t.
12234
12235 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12236
12237 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12238 register_t.
12239
12240 2020-03-13 Tom Tromey <tom@tromey.com>
12241
12242 * value.h (val_print): Don't declare.
12243 * valprint.h (val_print_array_elements)
12244 (val_print_scalar_formatted, generic_val_print): Don't declare.
12245 * valprint.c (generic_val_print_array): Take a struct value.
12246 (generic_val_print_ptr, generic_val_print_memberptr)
12247 (generic_val_print_bool, generic_val_print_int)
12248 (generic_val_print_char, generic_val_print_complex)
12249 (generic_val_print): Remove.
12250 (generic_value_print): Update.
12251 (do_val_print): Remove unused parameters. Don't call
12252 la_val_print.
12253 (val_print): Remove.
12254 (common_val_print): Update. Don't call value_check_printable.
12255 (val_print_scalar_formatted, val_print_array_elements): Remove.
12256 * rust-lang.c (rust_val_print): Remove.
12257 (rust_language_defn): Update.
12258 * p-valprint.c (pascal_val_print): Remove.
12259 (pascal_value_print_inner): Update.
12260 (pascal_object_print_val_fields, pascal_object_print_val):
12261 Remove.
12262 (pascal_object_print_static_field): Update.
12263 * p-lang.h (pascal_val_print): Don't declare.
12264 * p-lang.c (pascal_language_defn): Update.
12265 * opencl-lang.c (opencl_language_defn): Update.
12266 * objc-lang.c (objc_language_defn): Update.
12267 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12268 * m2-lang.h (m2_val_print): Don't declare.
12269 * m2-lang.c (m2_language_defn): Update.
12270 * language.h (struct language_defn) <la_val_print>: Remove.
12271 * language.c (unk_lang_value_print_inner): Rename. Change
12272 argument types.
12273 (unknown_language_defn, auto_language_defn): Update.
12274 * go-valprint.c (go_val_print): Remove.
12275 * go-lang.h (go_val_print): Don't declare.
12276 * go-lang.c (go_language_defn): Update.
12277 * f-valprint.c (f_val_print): Remove.
12278 * f-lang.h (f_value_print): Don't declare.
12279 * f-lang.c (f_language_defn): Update.
12280 * d-valprint.c (d_val_print): Remove.
12281 * d-lang.h (d_value_print): Don't declare.
12282 * d-lang.c (d_language_defn): Update.
12283 * cp-valprint.c (cp_print_value_fields)
12284 (cp_print_value_fields_rtti, cp_print_value): Remove.
12285 (cp_print_static_field): Update.
12286 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12287 (c_val_print_struct, c_val_print_union, c_val_print_int)
12288 (c_val_print_memberptr, c_val_print): Remove.
12289 * c-lang.h (c_val_print_array, cp_print_value_fields)
12290 (cp_print_value_fields_rtti): Don't declare.
12291 * c-lang.c (c_language_defn, cplus_language_defn)
12292 (asm_language_defn, minimal_language_defn): Update.
12293 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12294 (ada_val_print_enum): Take a struct value.
12295 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12296 (ada_val_print): Remove.
12297 (ada_value_print_1): Update.
12298 (printable_val_type): Remove.
12299 * ada-lang.h (ada_val_print): Don't declare.
12300 * ada-lang.c (ada_language_defn): Update.
12301
12302 2020-03-13 Tom Tromey <tom@tromey.com>
12303
12304 * valprint.c (do_val_print): Update.
12305 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12306 a struct value.
12307 (value_to_value_object_no_release): Declare.
12308 * python/py-value.c (value_to_value_object_no_release): New
12309 function.
12310 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12311 struct value.
12312 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12313 function.
12314 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12315 a struct value.
12316 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12317 Declare.
12318 (gdbscm_apply_val_pretty_printer): Take a struct value.
12319 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12320 value.
12321 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12322 value.
12323 * extension-priv.h (struct extension_language_ops)
12324 <apply_val_pretty_printer>: Take a struct value.
12325 * cp-valprint.c (cp_print_value): Create a struct value.
12326 (cp_print_value): Update.
12327
12328 2020-03-13 Tom Tromey <tom@tromey.com>
12329
12330 * ada-valprint.c (print_field_values): Call common_val_print.
12331
12332 2020-03-13 Tom Tromey <tom@tromey.com>
12333
12334 * ada-valprint.c (val_print_packed_array_elements): Remove
12335 bitoffset and val parameters. Call common_val_print.
12336 (ada_val_print_string): Remove offset, address, and original_value
12337 parameters.
12338 (ada_val_print_array): Update.
12339 (ada_value_print_array): New function.
12340 (ada_value_print_1): Call it.
12341
12342 2020-03-13 Tom Tromey <tom@tromey.com>
12343
12344 * ada-valprint.c (ada_value_print): Use common_val_print.
12345
12346 2020-03-13 Tom Tromey <tom@tromey.com>
12347
12348 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12349
12350 2020-03-13 Tom Tromey <tom@tromey.com>
12351
12352 * ada-valprint.c (ada_value_print_num): New function.
12353 (ada_value_print_1): Use it.
12354
12355 2020-03-13 Tom Tromey <tom@tromey.com>
12356
12357 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12358
12359 2020-03-13 Tom Tromey <tom@tromey.com>
12360
12361 * ada-valprint.c (ada_value_print_ptr): New function.
12362 (ada_value_print_1): Use it.
12363
12364 2020-03-13 Tom Tromey <tom@tromey.com>
12365
12366 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12367 call common_val_print.
12368 (ada_val_print_1): Update.
12369 (ada_value_print_1): New function.
12370 (ada_value_print_inner): Rewrite.
12371
12372 2020-03-13 Tom Tromey <tom@tromey.com>
12373
12374 * cp-valprint.c (cp_print_value_fields): Update.
12375 (cp_print_value): New function.
12376
12377 2020-03-13 Tom Tromey <tom@tromey.com>
12378
12379 * m2-valprint.c (m2_value_print_inner): Use
12380 cp_print_value_fields.
12381 * cp-valprint.c (cp_print_value_fields): New function.
12382 * c-valprint.c (c_value_print_struct): New function.
12383 (c_value_print_inner): Use c_value_print_struct.
12384 * c-lang.h (cp_print_value_fields): Declare.
12385
12386 2020-03-13 Tom Tromey <tom@tromey.com>
12387
12388 * c-valprint.c (c_value_print_array): New function.
12389 (c_value_print_inner): Use it.
12390
12391 2020-03-13 Tom Tromey <tom@tromey.com>
12392
12393 * c-valprint.c (c_value_print_memberptr): New function.
12394 (c_value_print_inner): Use it.
12395
12396 2020-03-13 Tom Tromey <tom@tromey.com>
12397
12398 * c-valprint.c (c_value_print_int): New function.
12399 (c_value_print_inner): Use it.
12400
12401 2020-03-13 Tom Tromey <tom@tromey.com>
12402
12403 * c-valprint.c (c_value_print_ptr): New function.
12404 (c_value_print_inner): Use it.
12405
12406 2020-03-13 Tom Tromey <tom@tromey.com>
12407
12408 * c-valprint.c (c_value_print_inner): Rewrite.
12409
12410 2020-03-13 Tom Tromey <tom@tromey.com>
12411
12412 * valprint.c (generic_value_print_complex): New function.
12413 (generic_value_print): Use it.
12414
12415 2020-03-13 Tom Tromey <tom@tromey.com>
12416
12417 * valprint.c (generic_val_print_float): Don't call
12418 val_print_scalar_formatted.
12419 (generic_val_print, generic_value_print): Update.
12420
12421 2020-03-13 Tom Tromey <tom@tromey.com>
12422
12423 * valprint.c (generic_value_print_char): New function
12424 (generic_value_print): Use it.
12425
12426 2020-03-13 Tom Tromey <tom@tromey.com>
12427
12428 * valprint.c (generic_value_print_int): New function.
12429 (generic_value_print): Use it.
12430
12431 2020-03-13 Tom Tromey <tom@tromey.com>
12432
12433 * valprint.c (generic_value_print_bool): New function.
12434 (generic_value_print): Use it.
12435
12436 2020-03-13 Tom Tromey <tom@tromey.com>
12437
12438 * valprint.c (generic_val_print_func): Simplify.
12439 (generic_val_print, generic_value_print): Update.
12440
12441 2020-03-13 Tom Tromey <tom@tromey.com>
12442
12443 * valprint.c (generic_val_print_flags): Remove.
12444 (generic_val_print, generic_value_print): Update.
12445 (val_print_type_code_flags): Add original_value parameter.
12446
12447 2020-03-13 Tom Tromey <tom@tromey.com>
12448
12449 * valprint.c (generic_val_print): Update.
12450 (generic_value_print): Update.
12451 * valprint.c (generic_val_print_enum): Don't call
12452 val_print_scalar_formatted.
12453
12454 2020-03-13 Tom Tromey <tom@tromey.com>
12455
12456 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12457 * valprint.c (generic_value_print_ptr): New function.
12458
12459 2020-03-13 Tom Tromey <tom@tromey.com>
12460
12461 * valprint.c (generic_value_print): Rewrite.
12462
12463 2020-03-13 Tom Tromey <tom@tromey.com>
12464
12465 * p-valprint.c (pascal_object_print_value_fields)
12466 (pascal_object_print_value): New functions.
12467
12468 2020-03-13 Tom Tromey <tom@tromey.com>
12469
12470 * p-valprint.c (pascal_value_print_inner): Rewrite.
12471
12472 2020-03-13 Tom Tromey <tom@tromey.com>
12473
12474 * f-valprint.c (f_value_print_innner): Rewrite.
12475
12476 2020-03-13 Tom Tromey <tom@tromey.com>
12477
12478 * m2-valprint.c (m2_print_unbounded_array): New overload.
12479 (m2_print_unbounded_array): Update.
12480 (m2_print_array_contents): Take a struct value.
12481 (m2_value_print_inner): Rewrite.
12482
12483 2020-03-13 Tom Tromey <tom@tromey.com>
12484
12485 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12486 (d_value_print_inner): New function.
12487 * d-lang.h (d_value_print_inner): Declare.
12488 * d-lang.c (d_language_defn): Use d_value_print_inner.
12489
12490 2020-03-13 Tom Tromey <tom@tromey.com>
12491
12492 * go-valprint.c (go_value_print_inner): New function.
12493 * go-lang.h (go_value_print_inner): Declare.
12494 * go-lang.c (go_language_defn): Use go_value_print_inner.
12495
12496 2020-03-13 Tom Tromey <tom@tromey.com>
12497
12498 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12499 API.
12500 (rust_val_print): Rewrite.
12501 (rust_value_print_inner): New function, from rust_val_print.
12502 (rust_language_defn): Use rust_value_print_inner.
12503
12504 2020-03-13 Tom Tromey <tom@tromey.com>
12505
12506 * ada-valprint.c (ada_value_print_inner): New function.
12507 * ada-lang.h (ada_value_print_inner): Declare.
12508 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12509
12510 2020-03-13 Tom Tromey <tom@tromey.com>
12511
12512 * f-valprint.c (f_value_print_innner): New function.
12513 * f-lang.h (f_value_print_innner): Declare.
12514 * f-lang.c (f_language_defn): Use f_value_print_innner.
12515
12516 2020-03-13 Tom Tromey <tom@tromey.com>
12517
12518 * p-valprint.c (pascal_value_print_inner): New function.
12519 * p-lang.h (pascal_value_print_inner): Declare.
12520 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12521
12522 2020-03-13 Tom Tromey <tom@tromey.com>
12523
12524 * m2-valprint.c (m2_value_print_inner): New function.
12525 * m2-lang.h (m2_value_print_inner): Declare.
12526 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12527
12528 2020-03-13 Tom Tromey <tom@tromey.com>
12529
12530 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12531 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12532 * c-valprint.c (c_value_print_inner): New function.
12533 * c-lang.h (c_value_print_inner): Declare.
12534 * c-lang.c (c_language_defn, cplus_language_defn)
12535 (asm_language_defn, minimal_language_defn): Use
12536 c_value_print_inner.
12537
12538 2020-03-13 Tom Tromey <tom@tromey.com>
12539
12540 * p-valprint.c (pascal_object_print_value_fields): Now static.
12541 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12542
12543 2020-03-13 Tom Tromey <tom@tromey.com>
12544
12545 * c-valprint.c (c_val_print_array): Simplify.
12546
12547 2020-03-13 Tom Tromey <tom@tromey.com>
12548
12549 * valprint.c (value_print_array_elements): New function.
12550 * valprint.h (value_print_array_elements): Declare.
12551
12552 2020-03-13 Tom Tromey <tom@tromey.com>
12553
12554 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12555 * mips-tdep.c (mips_print_register): Use
12556 value_print_scalar_formatted.
12557
12558 2020-03-13 Tom Tromey <tom@tromey.com>
12559
12560 * valprint.h (value_print_scalar_formatted): Declare.
12561 * valprint.c (value_print_scalar_formatted): New function.
12562
12563 2020-03-13 Tom Tromey <tom@tromey.com>
12564
12565 * valprint.h (generic_value_print): Declare.
12566 * valprint.c (generic_value_print): New function.
12567
12568 2020-03-13 Tom Tromey <tom@tromey.com>
12569
12570 * valprint.c (do_val_print): Call la_value_print_inner, if
12571 available.
12572 * rust-lang.c (rust_language_defn): Update.
12573 * p-lang.c (pascal_language_defn): Update.
12574 * opencl-lang.c (opencl_language_defn): Update.
12575 * objc-lang.c (objc_language_defn): Update.
12576 * m2-lang.c (m2_language_defn): Update.
12577 * language.h (struct language_defn) <la_value_print_inner>: New
12578 member.
12579 * language.c (unknown_language_defn, auto_language_defn): Update.
12580 * go-lang.c (go_language_defn): Update.
12581 * f-lang.c (f_language_defn): Update.
12582 * d-lang.c (d_language_defn): Update.
12583 * c-lang.c (c_language_defn, cplus_language_defn)
12584 (asm_language_defn, minimal_language_defn): Update.
12585 * ada-lang.c (ada_language_defn): Update.
12586
12587 2020-03-13 Tom Tromey <tom@tromey.com>
12588
12589 * c-valprint.c (c_value_print): Use common_val_print.
12590
12591 2020-03-13 Tom Tromey <tom@tromey.com>
12592
12593 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12594
12595 2020-03-13 Tom Tromey <tom@tromey.com>
12596
12597 * f-valprint.c (f77_print_array_1, f_val_print): Use
12598 common_val_print.
12599
12600 2020-03-13 Tom Tromey <tom@tromey.com>
12601
12602 * riscv-tdep.c (riscv_print_one_register_info): Use
12603 common_val_print.
12604
12605 2020-03-13 Tom Tromey <tom@tromey.com>
12606
12607 * mi/mi-main.c (output_register): Use common_val_print.
12608
12609 2020-03-13 Tom Tromey <tom@tromey.com>
12610
12611 * infcmd.c (default_print_one_register_info): Use
12612 common_val_print.
12613
12614 2020-03-13 Tom Tromey <tom@tromey.com>
12615
12616 * valprint.h (common_val_print_checked): Declare.
12617 * valprint.c (common_val_print_checked): New function.
12618 * stack.c (print_frame_arg): Use common_val_print_checked.
12619
12620 2020-03-13 Tom Tromey <tom@tromey.com>
12621
12622 * valprint.c (do_val_print): New function, from val_print.
12623 (val_print): Use do_val_print.
12624 (common_val_print): Use do_val_print.
12625
12626 2020-03-13 Tom Tromey <tom@tromey.com>
12627
12628 * valprint.c (value_print): Use scoped_value_mark.
12629
12630 2020-03-13 Tom de Vries <tdevries@suse.de>
12631
12632 PR symtab/25646
12633 * psymtab.c (partial_symtab::partial_symtab): Don't set
12634 globals_offset and statics_offset. Push element onto
12635 current_global_psymbols and current_static_psymbols stacks.
12636 (concat): New function.
12637 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12638 element from current_global_psymbols and current_static_psymbols
12639 stacks. Concat popped elements to global_psymbols and
12640 static_symbols.
12641 (add_psymbol_to_list): Use current_global_psymbols and
12642 current_static_psymbols stacks.
12643 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12644 current_static_psymbols fields.
12645
12646 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12647
12648 * corelow.c (sniff_core_bfd): Remove.
12649 (class core_target) <m_core_vec>: Remove.
12650 (core_target::core_target): Update.
12651 (core_file_fns): Remove.
12652 (deprecated_add_core_fns): Remove.
12653 (default_core_sniffer): Remove.
12654 (sniff_core_bfd): Remove.
12655 (default_check_format): Remove.
12656 (gdb_check_format): Remove.
12657 (core_target_open): Update.
12658 (core_target::get_core_register_section): Update.
12659 (get_core_registers_cb): Update.
12660 (core_target::fetch_registers): Update.
12661 * gdbcore.h (struct core_fns): Remove.
12662 (deprecated_add_core_fns): Remove.
12663 (default_core_sniffer): Remove.
12664 (default_check_format): Remove.
12665
12666 2020-03-12 Tom Tromey <tom@tromey.com>
12667
12668 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12669 CORE_ADDR.
12670 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12671
12672 2020-03-12 Tom Tromey <tom@tromey.com>
12673
12674 * remote.c (remote_target::download_tracepoint)
12675 (remote_target::enable_tracepoint)
12676 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12677 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12678 sprintf_vma.
12679
12680 2020-03-12 Tom Tromey <tom@tromey.com>
12681
12682 * symfile-mem.c: Update CORE_ADDR size assert.
12683
12684 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12685
12686 * selftest.m4: Move to gdbsupport/.
12687 * acinclude.m4: Update path to selftest.m4.
12688
12689 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12690
12691 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12692 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12693 gdbarch-selfselftests.c and selftest-arch.c.
12694 (SUBDIR_UNITTESTS_OBS): Rename to...
12695 (SELFTESTS_OBS): ... this.
12696 (COMMON_SFILES): Remove disasm-selftests.c and
12697 gdbarch-selftests.c.
12698 * configure.ac: Don't add selftest-arch.{c,o} to
12699 CONFIG_{SRCS,OBS}.
12700 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12701 preprocessor conditions.
12702
12703 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12704
12705 * configure.ac: Don't source bfd/development.sh.
12706 * selftest.m4: Modify comment.
12707 * configure: Re-generate.
12708
12709 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12710
12711 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12712 not "true" or "false".
12713 * configure: Re-generate.
12714
12715 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12716
12717 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12718 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12719 renamed to arm_nbsd_supply_gregset.
12720 (fetch_register): Update to call arm_nbsd_supply_gregset.
12721 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12722 (arm_netbsd_nat_target::fetch_registers): Update.
12723 (fetch_elfcore_registers): Removed.
12724 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12725 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12726 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12727 not require NetBSD system headers.
12728 (arm_nbsd_regset): New struct.
12729 (arm_nbsd_iterate_over_regset_sections): New function.
12730 (arm_netbsd_init_abi_common): Updated to call
12731 set_gdbarch_iterate_over_regset_sections.
12732 * arm-nbsd-tdep.h: New file.
12733
12734 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12735
12736 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12737 recursion.
12738
12739 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12740
12741 * configure: Re-generate.
12742
12743 2020-03-11 Tom Tromey <tromey@adacore.com>
12744
12745 * ada-typeprint.c (print_choices): Fix comment.
12746
12747 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12748
12749 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12750 previous item in the list, when the list has no items.
12751
12752 2020-03-11 Tom de Vries <tdevries@suse.de>
12753
12754 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12755 PROP_LOCLIST handling code.
12756
12757 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12758
12759 * buildsym-legacy.c (record_line): Pass extra parameter to
12760 record_line.
12761 * buildsym.c (buildsym_compunit::record_line): Take an extra
12762 parameter, reduce duplication in the line table, and record the
12763 is_stmt flag in the line table.
12764 * buildsym.h (buildsym_compunit::record_line): Add extra
12765 parameter.
12766 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12767 non-statement lines.
12768 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12769 this to the symtab builder.
12770 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12771 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12772 through to dwarf_record_line_1.
12773 * infrun.c (process_event_stop_test): When stepping, don't stop at
12774 a non-statement instruction, and only refresh the step info when
12775 we land in the middle of a line's range. Also add an extra
12776 comment.
12777 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12778 field.
12779 * record-btrace.c (btrace_find_line_range): Only record lines
12780 marked as is-statement.
12781 * stack.c (frame_show_address): Show the frame address if we are
12782 in a non-statement sal.
12783 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12784 (maintenance_print_one_line_table): Print a header for the is_stmt
12785 column, and include is_stmt information in the output.
12786 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12787 preference to non-statements.
12788 (find_pcs_for_symtab_line): Prefer is-statement entries.
12789 (find_line_common): Likewise.
12790 * symtab.h (struct linetable_entry): Add is_stmt field.
12791 (struct symtab_and_line): Likewise.
12792 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12793 arranging the line table.
12794
12795 2020-03-07 Tom de Vries <tdevries@suse.de>
12796
12797 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12798 DIE.
12799
12800 2020-03-07 Tom Tromey <tom@tromey.com>
12801
12802 * valops.c (value_literal_complex): Remove obsolete comment.
12803 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12804 comment.
12805
12806 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12807
12808 * infrun.h: Forward-declare thread_info.
12809 (set_step_info): Add thread_info parameter, add doc.
12810 * infrun.c (set_step_info): Add thread_info parameter, move doc
12811 to header.
12812 * infrun.c (process_event_stop_test): Pass thread to
12813 set_step_info call.
12814 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12815 set_step_info.
12816 (prepare_one_step): Add thread_info parameter, pass it to
12817 set_step_frame and prepare_one_step (recursive) call.
12818 (step_1): Pass thread to prepare_one_step call.
12819 (step_command_fsm::should_stop): Pass thread to
12820 prepare_one_step.
12821 (until_next_fsm): Pass thread to set_step_frame call.
12822 (finish_command): Pass thread to set_step_info call.
12823
12824 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12825
12826 * windows-tdep.c (windows_solib_create_inferior_hook):
12827 Check if inferior is running.
12828
12829 2020-03-06 Tom de Vries <tdevries@suse.de>
12830
12831 * NEWS: Fix "the the".
12832 * ctfread.c: Same.
12833
12834 2020-03-06 Tom de Vries <tdevries@suse.de>
12835
12836 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12837
12838 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12839
12840 * .dir-locals.el: Add a comment referencing the other copies of
12841 this file.
12842
12843 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12844
12845 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12846 psargs.
12847
12848 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12849
12850 * .gitattributes: New file.
12851
12852 2020-03-04 Tom Tromey <tom@tromey.com>
12853
12854 * symmisc.c (print_symbol_bcache_statistics)
12855 (print_objfile_statistics): Update.
12856 * symfile.c (allocate_symtab): Use intern.
12857 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12858 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12859 macro_cache>: Remove.
12860 <string_cache>: New member.
12861 (struct objfile) <intern>: New methods.
12862 * elfread.c (elf_symtab_read): Use intern.
12863 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12864 (dwarf2_compute_name, dwarf2_physname)
12865 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12866 names.
12867 (guess_partial_die_structure_name): Update.
12868 (partial_die_info::fixup): Intern name.
12869 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12870 name.
12871 (dwarf2_name): Intern name. Update.
12872 * buildsym.c (buildsym_compunit::get_macro_table): Use
12873 string_cache.
12874
12875 2020-03-04 Tom Tromey <tom@tromey.com>
12876
12877 * jit.c (bfd_open_from_target_memory): Make "target" const.
12878 * corefile.c (gnutarget): Now const.
12879 * gdbcore.h (gnutarget): Now const.
12880
12881 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12882
12883 * NEWS: Mention support for WOW64 processes.
12884 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12885 (amd64_windows_segment_register_p): Remove static.
12886 (_initialize_amd64_windows_nat): Update.
12887 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12888 * i386-windows-nat.c (context_offset): Update.
12889 (i386_mappings): Rename and remove static.
12890 (i386_windows_segment_register_p): Remove static.
12891 (_initialize_i386_windows_nat): Update.
12892 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12893 (STATUS_WX86_SINGLE_STEP): New macro.
12894 (EnumProcessModulesEx): New macro.
12895 (Wow64SuspendThread): New macro.
12896 (Wow64GetThreadContext): New macro.
12897 (Wow64SetThreadContext): New macro.
12898 (Wow64GetThreadSelectorEntry): New macro.
12899 (windows_set_context_register_offsets): Add static.
12900 (windows_set_segment_register_p): Likewise.
12901 (windows_add_thread): Adapt for WOW64 processes.
12902 (windows_fetch_one_register): Likewise.
12903 (windows_nat_target::fetch_registers): Likewise.
12904 (windows_store_one_register): Likewise.
12905 (display_selector): Likewise.
12906 (display_selectors): Likewise.
12907 (handle_exception): Likewise.
12908 (windows_continue): Likewise.
12909 (windows_nat_target::resume): Likewise.
12910 (windows_add_all_dlls): Likewise.
12911 (do_initial_windows_stuff): Likewise.
12912 (windows_nat_target::attach): Likewise.
12913 (windows_get_exec_module_filename): Likewise.
12914 (windows_nat_target::create_inferior): Likewise.
12915 (windows_xfer_siginfo): Likewise.
12916 (_initialize_loadable): Initialize Wow64SuspendThread,
12917 Wow64GetThreadContext, Wow64SetThreadContext,
12918 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12919 * windows-nat.h (windows_set_context_register_offsets):
12920 Remove declaration.
12921 (windows_set_segment_register_p): Likewise.
12922 (i386_windows_segment_register_p): Add declaration.
12923 (amd64_windows_segment_register_p): Likewise.
12924
12925 2020-03-04 Luis Machado <luis.machado@linaro.org>
12926
12927 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12928 in "info registers" for AArch64/ARM.
12929
12930 The change caused "info registers" to not print GPR's.
12931
12932 gdb/ChangeLog:
12933
12934 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12935
12936 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12937 when reg->group is empty and reggroup is not.
12938
12939 2020-03-03 Tom Tromey <tromey@adacore.com>
12940
12941 * dwarf2/frame.c (struct dwarf2_frame_cache)
12942 <checked_tailcall_bottom, entry_cfa_sp_offset,
12943 entry_cfa_sp_offset_p>: Remove members.
12944 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12945 (dwarf2_frame_prev_register): Don't call
12946 dwarf2_tailcall_sniffer_first.
12947 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12948 * frame-unwind.c (add_unwinder): New fuction.
12949 (frame_unwind_init): Use it. Add tailcall unwinder.
12950
12951 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12952 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12953
12954 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12955 value should be printed as true.
12956
12957 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12958
12959 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12960 (windows_init_abi): Set and use windows_so_ops.
12961
12962 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12963
12964 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12965 when verifying if dealing with a convenience variable.
12966
12967 2020-03-03 Luis Machado <luis.machado@linaro.org>
12968
12969 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12970
12971 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12972
12973 * infrun.c (gdbarch_supports_displaced_stepping): New.
12974 (use_displaced_stepping): Break up conditions in smaller pieces.
12975 Use gdbarch_supports_displaced_stepping.
12976 (displaced_step_prepare_throw): Use
12977 gdbarch_supports_displaced_stepping.
12978
12979 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12980
12981 * NEWS: Mention new behaviour of the history filename.
12982 * top.c (write_history_p): Add comment.
12983 (show_write_history_p): Add header comment, give a different
12984 message when history writing is on, but the history filename is
12985 empty.
12986 (history_filename): Add comment.
12987 (history_filename_empty): New function.
12988 (show_history_filename): Add header comment, give a different
12989 message when the filename is empty.
12990 (init_history): Compare history_filename against nullptr, and only
12991 read history if the filename is not empty.
12992 (set_history_filename): Add header comment, and only make
12993 non-empty filenames absolute.
12994 (init_main): Make the filename argument to 'set history filename'
12995 optional.
12996
12997 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12998
12999 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13000 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13001 (fetch_fp_register): Update.
13002 (fetch_fp_regs): Update.
13003 (store_fp_register): Update.
13004 (store_fp_regs): Update.
13005 (arm_netbsd_nat_target::read_description): New function.
13006 (fetch_elfcore_registers): Update.
13007
13008 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13009
13010 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13011 general_thread if the stop reply is missing a thread-id.
13012 (remote_target::process_stop_reply): Use the first non-exited
13013 thread if the target didn't pass a thread-id.
13014 * infrun.c (do_target_wait): Move call to
13015 switch_to_inferior_no_thread to ....
13016 (do_target_wait_1): ... here.
13017
13018 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13019
13020 * debuginfod-support.c: Include defs.h first.
13021
13022 2020-02-28 Tom de Vries <tdevries@suse.de>
13023
13024 * symfile.c (set_initial_language): Use default language for lookup.
13025
13026 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13027
13028 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13029 reader variable, pass `this` to read_cutu_die_from_dwo.
13030
13031 2020-02-27 Aaron Merey <amerey@redhat.com>
13032
13033 * source.c (open_source_file): Check for nullptr when computing
13034 srcpath.
13035
13036 2020-02-27 Tom Tromey <tromey@adacore.com>
13037
13038 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13039 member.
13040 (dwarf2_add_field): Don't update nfields.
13041 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13042
13043 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13044
13045 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13046 abs.
13047
13048 2020-02-26 Tom Tromey <tom@tromey.com>
13049
13050 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13051 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13052 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13053 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13054 per_cu_data.
13055
13056 2020-02-26 Tom Tromey <tom@tromey.com>
13057
13058 * dwarf2/index-write.c (psym_index_map): Change type.
13059 (add_address_entry_worker, write_one_signatured_type)
13060 (recursively_count_psymbols, recursively_write_psymbols)
13061 (class debug_names, psyms_seen_size, write_gdbindex)
13062 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13063
13064 2020-02-26 Aaron Merey <amerey@redhat.com>
13065
13066 * Makefile.in: Handle optional debuginfod support.
13067 * NEWS: Update.
13068 * README: Add --with-debuginfod summary.
13069 * config.in: Regenerate.
13070 * configure: Regenerate.
13071 * configure.ac: Handle optional debuginfod support.
13072 * debuginfod-support.c: debuginfod helper functions.
13073 * debuginfod-support.h: Ditto.
13074 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13075 summary.
13076 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13077 when a dwz file cannot be found.
13078 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13079 debuginfo file cannot be found.
13080 * source.c (open_source_file): Query debuginfod servers when a
13081 source file cannot be found.
13082 * top.c (print_gdb_configuration): Include
13083 --{with,without}-debuginfod in the output.
13084
13085 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13086
13087 * thread.c (thr_try_catch_cmd): Print thread name.
13088
13089 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13090
13091 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13092 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13093 dwarf2_fetch_die_type_sect_off): Move to...
13094 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13095 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13096 dwarf2_fetch_die_type_sect_off): ... here.
13097 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13098 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13099 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13100
13101 2020-02-26 Tom de Vries <tdevries@suse.de>
13102
13103 PR gdb/25603
13104 * symfile.c (set_initial_language): Exit-early if
13105 language_mode == language_mode_manual.
13106
13107 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13108
13109 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13110 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13111 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13112
13113 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13114
13115 * gdbtypes.c (create_array_type_with_stride): Handle negative
13116 array strides.
13117 * valarith.c (value_subscripted_rvalue): Likewise.
13118
13119 2020-02-25 Luis Machado <luis.machado@linaro.org>
13120
13121 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13122
13123 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13124
13125 * loc.h (dwarf2_get_die_type): Move to...
13126 * read.h (dwarf2_get_die_type): ... here.
13127 * read.c (dwarf2_get_die_type): Move doc to header.
13128
13129 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13130
13131 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13132 'gnulib/Makefile.in' to the list.
13133
13134 2020-02-24 Tom Tromey <tom@tromey.com>
13135
13136 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13137 Remove.
13138 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13139 XOBNEWVEC.
13140
13141 2020-02-24 Tom Tromey <tom@tromey.com>
13142
13143 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13144 New method.
13145 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13146 (dw2_do_instantiate_symtab, dw2_get_file_names)
13147 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13148
13149 2020-02-24 Tom Tromey <tom@tromey.com>
13150
13151 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13152 make_scoped_restore.
13153 (dwarf2_psymtab::read_symtab): Don't clear
13154 reading_partial_symbols.
13155
13156 2020-02-24 Tom de Vries <tdevries@suse.de>
13157
13158 PR gdb/25592
13159 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13160
13161 2020-02-24 Tom de Vries <tdevries@suse.de>
13162
13163 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13164 commands layout next/prev/regs.
13165
13166 2020-02-22 Tom Tromey <tom@tromey.com>
13167
13168 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13169 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13170
13171 2020-02-22 Tom Tromey <tom@tromey.com>
13172
13173 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13174
13175 2020-02-22 Tom Tromey <tom@tromey.com>
13176
13177 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13178 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13179 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13180 * tui/tui.c (_initialize_tui): Add usage text.
13181
13182 2020-02-22 Tom Tromey <tom@tromey.com>
13183
13184 * tui/tui-win.c (tui_set_focus_command)
13185 (tui_set_win_height_command): Use error_no_arg.
13186 (_initialize_tui_win): Update help text.
13187 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13188
13189 2020-02-22 Tom Tromey <tom@tromey.com>
13190
13191 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13192 * tui/tui-disasm.h (struct tui_disasm_window)
13193 <display_start_addr>: Declare.
13194 * tui/tui-source.h (struct tui_source_window)
13195 <display_start_addr>: Declare.
13196 * tui/tui-winsource.h (struct tui_source_window_base)
13197 <show_source_line, display_start_addr>: New methods.
13198 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13199 Rename and move to protected section.
13200 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13201 (tui_source_window_base::do_erase_source_content): Update.
13202 (tui_source_window_base::show_source_line): Now a method.
13203 (tui_source_window_base::show_source_content)
13204 (tui_source_window_base::tui_source_window_base)
13205 (tui_source_window_base::rerender)
13206 (tui_source_window_base::refill)
13207 (tui_source_window_base::do_scroll_horizontal)
13208 (tui_source_window_base::set_is_exec_point_at)
13209 (tui_source_window_base::update_breakpoint_info)
13210 (tui_source_window_base::update_exec_info): Update.
13211 * tui/tui-source.c (tui_source_window::set_contents)
13212 (tui_source_window::showing_source_p)
13213 (tui_source_window::do_scroll_vertical)
13214 (tui_source_window::location_matches_p)
13215 (tui_source_window::line_is_displayed): Update.
13216 (tui_source_window::display_start_addr): New method.
13217 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13218 (tui_disasm_window::do_scroll_vertical)
13219 (tui_disasm_window::location_matches_p): Update.
13220 (tui_disasm_window::display_start_addr): New method.
13221
13222 2020-02-22 Tom Tromey <tom@tromey.com>
13223
13224 * NEWS: Add entry for gdb.register_window_type.
13225 * tui/tui-layout.h (window_factory): New typedef.
13226 (tui_register_window): Declare.
13227 * tui/tui-layout.c (saved_tui_windows): New global.
13228 (tui_apply_current_layout): Use it.
13229 (tui_register_window): New function.
13230 * python/python.c (do_start_initialization): Call
13231 gdbpy_initialize_tui.
13232 (python_GdbMethods): Add "register_window_type" function.
13233 * python/python-internal.h (gdbpy_register_tui_window)
13234 (gdbpy_initialize_tui): Declare.
13235 * python/py-tui.c: New file.
13236 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13237
13238 2020-02-22 Tom Tromey <tom@tromey.com>
13239
13240 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13241
13242 2020-02-22 Tom Tromey <tom@tromey.com>
13243
13244 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13245 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13246 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13247 (tui_set_win_focus_to): Move from tui-win.c.
13248
13249 2020-02-22 Tom Tromey <tom@tromey.com>
13250
13251 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13252 functions.
13253 (known_window_types): New global.
13254 (tui_get_window_by_name): Reimplement.
13255 (initialize_known_windows): New function.
13256 (validate_window_name): Rewrite.
13257 (_initialize_tui_layout): Call initialize_known_windows.
13258
13259 2020-02-22 Tom Tromey <tom@tromey.com>
13260
13261 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13262 Remove constants.
13263 * tui/tui-winsource.h (struct tui_source_window_base)
13264 <tui_source_window_base>: Remove parameter.
13265 * tui/tui-winsource.c
13266 (tui_source_window_base::tui_source_window_base): Remove
13267 parameter.
13268 (tui_source_window_base::refill): Update.
13269 * tui/tui-stack.h (struct tui_locator_window)
13270 <tui_locator_window>: Update.
13271 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13272 Default the constructor.
13273 * tui/tui-regs.h (struct tui_data_item_window)
13274 <tui_data_item_window>: Default the constructor.
13275 (struct tui_data_window) <tui_data_window>: Likewise.
13276 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13277 Default the constructor.
13278 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13279 Default the constructor.
13280 <type>: Remove.
13281 (struct tui_win_info) <tui_win_info>: Default the constructor.
13282 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13283 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13284 Default the constructor.
13285
13286 2020-02-22 Tom Tromey <tom@tromey.com>
13287
13288 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13289 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13290 * tui/tui-win.c (tui_resize_all): Don't call
13291 tui_delete_invisible_windows.
13292 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13293 done.
13294 (tui_set_layout): Update.
13295 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13296 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13297 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13298
13299 2020-02-22 Tom Tromey <tom@tromey.com>
13300
13301 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13302 correctly.
13303
13304 2020-02-22 Tom Tromey <tom@tromey.com>
13305
13306 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13307
13308 2020-02-22 Tom Tromey <tom@tromey.com>
13309
13310 * tui/tui-winsource.h (struct tui_source_window_iterator)
13311 <inner_iterator>: New etytypedef.
13312 <tui_source_window_iterator>: Take "end" parameter.
13313 <tui_source_window_iterator>: Take iterator.
13314 <operator*, advance>: Update.
13315 <m_iter>: Change type.
13316 <m_end>: New field.
13317 (struct tui_source_windows) <begin, end>: Update.
13318 * tui/tui-layout.c (tui_windows): New global.
13319 (tui_apply_current_layout): Clear tui_windows.
13320 (tui_layout_window::apply): Update tui_windows.
13321 * tui/tui-data.h (tui_windows): Declare.
13322 (all_tui_windows): Now inline function.
13323 (class tui_window_iterator, struct all_tui_windows): Remove.
13324
13325 2020-02-22 Tom Tromey <tom@tromey.com>
13326
13327 PR tui/17850:
13328 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13329 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13330 "height" argument.
13331 (class tui_layout_window) <get_sizes>: Likewise.
13332 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13333 argument.
13334 <get_sizes>: Add "height" argument.
13335 <m_vertical>: New field.
13336 * tui/tui-layout.c (tui_layout_split::clone): Update.
13337 (tui_layout_split::get_sizes): Add "height" argument.
13338 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13339 (tui_new_layout_command): Parse "-horizontal".
13340 (_initialize_tui_layout): Update help string.
13341 (tui_layout_split::specification): Add "-horizontal" when needed.
13342 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13343 argument.
13344 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13345 New methods.
13346
13347 2020-02-22 Tom Tromey <tom@tromey.com>
13348
13349 * tui/tui-layout.h (enum tui_adjust_result): New.
13350 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13351 (class tui_layout_window) <adjust_size>: Return
13352 tui_adjust_result. Rewrite.
13353 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13354 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13355
13356 2020-02-22 Tom Tromey <tom@tromey.com>
13357
13358 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13359 parameter and return types.
13360 (class tui_layout_base) <specification>: Add "depth".
13361 (class tui_layout_window) <specification>: Add "depth".
13362 (class tui_layout_split) <specification>: Add "depth".
13363 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13364 and return types.
13365 (tui_new_layout_command): Parse sub-layouts.
13366 (_initialize_tui_layout): Update help string.
13367 (tui_layout_window::specification): Add "depth".
13368 (add_layout_command): Update.
13369
13370 2020-02-22 Tom Tromey <tom@tromey.com>
13371
13372 * NEWS: Add "tui new-layout" item.
13373 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13374 Add new-layout command to help text.
13375 (validate_window_name): New function.
13376 (tui_new_layout_command): New function.
13377 (_initialize_tui_layout): Register "new-layout".
13378 (tui_layout_window::specification): New method.
13379 (tui_layout_window::specification): New method.
13380 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13381 method.
13382 (class tui_layout_window) <specification>: New method.
13383 (class tui_layout_split) <specification>: New method.
13384
13385 2020-02-22 Tom Tromey <tom@tromey.com>
13386
13387 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13388 * tui/tui-win.c (window_name_completer): Update comment.
13389 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13390 Declare method.
13391 (class tui_layout_window) <replace_window>: Likewise.
13392 (class tui_layout_split) <replace_window>: Likewise.
13393 (tui_set_layout): Don't declare.
13394 (tui_set_initial_layout): Declare function.
13395 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13396 (asm_regs_layout): New globals.
13397 (tui_current_layout, show_layout): Remove.
13398 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13399 (find_layout, tui_apply_layout): New function.
13400 (layout_completer): Remove.
13401 (tui_next_layout): Reimplement.
13402 (tui_next_layout_command): New function.
13403 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13404 (tui_regs_layout): Reimplement.
13405 (tui_regs_layout_command): New function.
13406 (extract_display_start_addr): Rewrite.
13407 (next_layout, prev_layout): Remove.
13408 (tui_layout_window::replace_window): New method.
13409 (tui_layout_split::replace_window): New method.
13410 (destroy_layout): New function.
13411 (layout_list): New global.
13412 (add_layout_command): New function.
13413 (initialize_layouts): Update.
13414 (tui_layout_command): New function.
13415 (_initialize_tui_layout): Install "layout" commands.
13416 * tui/tui-data.h (enum tui_layout_type): Remove.
13417 (tui_current_layout): Don't declare.
13418
13419 2020-02-22 Tom Tromey <tom@tromey.com>
13420
13421 * tui/tui-regs.c (tui_reg_layout): Remove.
13422 (tui_reg_command): Use tui_regs_layout.
13423 * tui/tui-layout.h (tui_reg_command): Declare.
13424 * tui/tui-layout.c (tui_reg_command): New function.
13425
13426 2020-02-22 Tom Tromey <tom@tromey.com>
13427
13428 * tui/tui.c (tui_rl_delete_other_windows): Call
13429 tui_remove_some_windows.
13430 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13431 Declare method.
13432 (class tui_layout_window) <remove_windows>: New method.
13433 (class tui_layout_split) <remove_windows>: Declare.
13434 (tui_remove_some_windows): Declare.
13435 * tui/tui-layout.c (tui_remove_some_windows): New function.
13436 (tui_layout_split::remove_windows): New method.
13437
13438 2020-02-22 Tom Tromey <tom@tromey.com>
13439
13440 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13441 * tui/tui-layout.h (tui_next_layout): Declare.
13442 * tui/tui-layout.c (tui_next_layout): New function.
13443
13444 2020-02-22 Tom Tromey <tom@tromey.com>
13445
13446 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13447 correct coordinates.
13448
13449 2020-02-22 Tom Tromey <tom@tromey.com>
13450
13451 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13452 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13453 DATA_WIN case.
13454
13455 2020-02-22 Tom Tromey <tom@tromey.com>
13456
13457 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13458 TUI_DISASM_WIN, not tui_win_list.
13459
13460 2020-02-22 Tom Tromey <tom@tromey.com>
13461
13462 * valprint.c (generic_val_print_enum_1)
13463 (val_print_type_code_flags): Style member names.
13464 * rust-lang.c (val_print_struct, rust_print_enum)
13465 (rust_print_struct_def, rust_internal_print_type): Style member
13466 names.
13467 * p-valprint.c (pascal_object_print_value_fields): Style member
13468 names. Only call fprintf_symbol_filtered for static members.
13469 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13470 * f-valprint.c (f_val_print): Style member names.
13471 * f-typeprint.c (f_type_print_base): Style member names.
13472 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13473 call fprintf_symbol_filtered for static members.
13474 (cp_print_class_member): Style member names.
13475 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13476 member names.
13477 * ada-valprint.c (ada_print_scalar): Style enum names.
13478 (ada_val_print_enum): Likewise.
13479 * ada-typeprint.c (print_enum_type): Style enum names.
13480
13481 2020-02-21 Tom Tromey <tom@tromey.com>
13482
13483 * psympriv.h (struct partial_symtab): Update comment.
13484
13485 2020-02-21 Tom Tromey <tromey@adacore.com>
13486
13487 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13488 type is CORE_ADDR.
13489
13490 2020-02-21 Tom de Vries <tdevries@suse.de>
13491
13492 PR gdb/25534
13493 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13494 if dependencies[i]->user != NULL.
13495
13496 2020-02-21 Ali Tamur <tamur@google.com>
13497
13498 * dwarf2/read.c (dwarf2_name): Add null check.
13499
13500 2020-02-20 Tom Tromey <tom@tromey.com>
13501
13502 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13503 ">=", in binary search.
13504 (dwarf2_find_containing_comp_unit): New overload.
13505 (run_test): New self-test.
13506 (_initialize_dwarf2_read): Register new test.
13507
13508 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13509
13510 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13511 * riscv-tdep.h: Likewise.
13512 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13513 rv32-only CSR.
13514 * features/riscv/64bit-csr.xml: Regenerated.
13515
13516 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13517 Tom Tromey <tom@tromey.com>
13518
13519 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13520 of 'fputc_unfiltered'.
13521 (putchar_unfiltered): Call 'fputc_unfiltered'.
13522 (fputc_unfiltered): Call 'fputs_unfiltered'.
13523
13524 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13525
13526 * config.in: Regenerate.
13527 * configure: Regenerate.
13528 * configure.ac: Add --with-python-libdir option.
13529 * main.c: Use WITH_PYTHON_LIBDIR.
13530
13531 2020-02-19 Tom Tromey <tom@tromey.com>
13532
13533 * symtab.c (general_symbol_info::compute_and_set_names): Use
13534 obstack_strndup. Simplify call to symbol_set_demangled_name.
13535
13536 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13537
13538 * dwarf2/read.c (allocate_signatured_type_table,
13539 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13540 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13541 Remove objfile parameter, update all callers.
13542
13543 2020-02-19 Doug Evans <dje@google.com>
13544
13545 PR rust/25535
13546 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13547 rust_enum_variant calculation.
13548
13549 2020-02-19 Tom Tromey <tromey@adacore.com>
13550
13551 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13552
13553 2020-02-19 Tom Tromey <tromey@adacore.com>
13554
13555 * ada-lang.c (cache_symbol): Use obstack_strdup.
13556
13557 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13558
13559 * configure: Regenerate.
13560
13561 2020-02-19 Tom Tromey <tromey@adacore.com>
13562
13563 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13564 NULL check.
13565
13566 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13567
13568 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13569
13570 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13571
13572 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13573 if GDBSERVER is not defined.
13574 (riscv_tdesc_cache): Likewise, also store const target_desc.
13575 (STATIC_IN_GDB): Define.
13576 (riscv_create_target_description): Update declaration with
13577 STATIC_IN_GDB.
13578 (riscv_lookup_target_description): New function, only define if
13579 GDBSERVER is not defined.
13580 * arch/riscv.h (riscv_create_target_description): Declare only
13581 when GDBSERVER is defined.
13582 (riscv_lookup_target_description): New declaration when GDBSERVER
13583 is not defined.
13584 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13585 (riscv_linux_read_features): ...this, and return
13586 riscv_gdbarch_features instead of target_desc.
13587 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13588 (riscv_linux_read_description): Rename to...
13589 (riscv_linux_read_features): ...this.
13590 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13591 Update to use riscv_gdbarch_features and
13592 riscv_lookup_target_description.
13593 * riscv-tdep.c (riscv_find_default_target_description): Use
13594 riscv_lookup_target_description instead of
13595 riscv_create_target_description.
13596
13597 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13598
13599 * valprint.c (generic_val_print_enum_1): When printing a flag
13600 enum with value 0 and there is no enumerator with value 0, print
13601 just "0" instead of "(unknown: 0x0)".
13602
13603 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13604
13605 * valprint.c (generic_val_print_enum_1): Print unknown part of
13606 flag enum in hex.
13607
13608 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13609
13610 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13611 flag enums to contain duplicate enumerators.
13612 * valprint.c (generic_val_print_enum_1): Update comment.
13613
13614 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13615
13616 * dwarf2/read.c: Include "count-one-bits.h".
13617 (update_enumeration_type_from_children): If an enumerator has
13618 multiple bits set, don't treat the enumeration as a "flag enum".
13619 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13620 of flag enums have 0 or 1 bit set.
13621
13622 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13623
13624 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13625 conversion.
13626 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13627 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13628 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13629 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13630 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13631
13632 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13633
13634 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13635
13636 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13637
13638 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13639 displaced_step_closure_up.
13640 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13641 (struct displaced_step_closure_up):
13642 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13643 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13644 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13645 Likewise.
13646 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13647 * gdbarch.c, gdbarch.h: Re-generate.
13648 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13649 displaced_step_closure_up.
13650 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13651 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13652 * infrun.h (displaced_step_closure_up): New type alias.
13653 (struct displaced_step_inferior_state) <step_closure>: Change
13654 type to displaced_step_closure_up.
13655 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13656 displaced_step_closure_up.
13657 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13658
13659 2020-02-14 Tom Tromey <tom@tromey.com>
13660
13661 * minidebug.c (gnu_debug_key): New global.
13662 (find_separate_debug_file_in_section): Use it.
13663
13664 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13665
13666 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13667 std::unique_ptr.
13668 * gdbarch.c: Re-generate.
13669 * gdbarch.h: Re-generate.
13670 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13671 change.
13672 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13673 type to std::unique_ptr.
13674 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13675 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13676 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13677 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13678 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13679 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13680 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13681 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13682 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13683
13684 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13685
13686 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13687 std::unique_ptr.
13688 (displaced_step_clear): Rename to...
13689 (displaced_step_reset): ... this. Just call displaced->reset ().
13690 (displaced_step_clear_cleanup): Rename to...
13691 (displaced_step_reset_cleanup): ... this.
13692 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13693 (displaced_step_fixup): Likewise.
13694 (resume_1): Likewise.
13695 (handle_inferior_event): Restore child's memory before calling
13696 displaced_step_fixup on the parent.
13697 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13698 to std::unique_ptr.
13699 <step_closure>: Change type to std::unique_ptr.
13700
13701 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13702
13703 * arm-tdep.c: Include count-one-bits.h.
13704 (cleanup_block_store_pc): Use count_one_bits.
13705 (cleanup_block_load_pc): Use count_one_bits.
13706 (arm_copy_block_xfer): Use count_one_bits.
13707 (thumb2_copy_block_xfer): Use count_one_bits.
13708 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13709 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13710 (thumb_get_next_pcs_raw): Use count_one_bits.
13711 (arm_get_next_pcs_raw): Use count_one_bits_l.
13712 * arch/arm.c (bitcount): Remove.
13713 * arch/arm.h (bitcount): Remove.
13714
13715 2020-02-14 Tom Tromey <tromey@adacore.com>
13716
13717 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13718 Update.
13719 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13720 * dwarf2/loc.c (call_site_find_chain_1): Return
13721 unique_xmalloc_ptr.
13722 (call_site_find_chain): Likewise.
13723
13724 2020-02-14 Richard Biener <rguenther@suse.de>
13725
13726 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13727 on expression with division operators.
13728
13729 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13730
13731 * MAINTAINERS (Write After Approval): Adding myself.
13732
13733 2020-02-12 Tom Tromey <tom@tromey.com>
13734
13735 * event-loop.c (event_data, gdb_event, event_handler_func):
13736 Remove.
13737
13738 2020-02-12 Tom Tromey <tom@tromey.com>
13739
13740 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13741 (dwarf2_frame_objfile_data): Add comment.
13742 (find_comp_unit, set_comp_unit): New functions.
13743 (dwarf2_frame_find_fde): Use find_comp_unit.
13744 (dwarf2_build_frame_info): Use set_comp_unit.
13745
13746 2020-02-12 Tom Tromey <tom@tromey.com>
13747
13748 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13749 (comp_unit): Don't initialize objfile.
13750 (execute_cfa_program): Add text_offset parameter.
13751 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13752 (dwarf2_frame_cache): Update.
13753 (dwarf2_build_frame_info): Don't set "objfile" member.
13754
13755 2020-02-12 Tom Tromey <tom@tromey.com>
13756
13757 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13758 (decode_frame_entry): Likewise.
13759 (dwarf2_build_frame_info): Update.
13760
13761 2020-02-12 Tom Tromey <tom@tromey.com>
13762
13763 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13764 (decode_frame_entry_1): Use the comp_unit obstack.
13765
13766 2020-02-12 Tom Tromey <tom@tromey.com>
13767
13768 * dwarf2/frame.c (struct comp_unit): Add initializers and
13769 constructor.
13770 (dwarf2_frame_objfile_data): Store a comp_unit.
13771 (dwarf2_frame_find_fde): Update.
13772 (dwarf2_build_frame_info): Use "new".
13773
13774 2020-02-12 Tom Tromey <tom@tromey.com>
13775
13776 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13777 (dwarf2_fde_table): Typedef for std::vector.
13778 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13779 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13780 (decode_frame_entry): Update.
13781 (dwarf2_build_frame_info): Use "new".
13782
13783 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13784
13785 * arm-tdep.c (arm_gdbarch_init): Update.
13786 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13787 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13788 have_neon, is_m>: Change to bool.
13789
13790 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13791
13792 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13793
13794 2020-02-12 Tom Tromey <tom@tromey.com>
13795
13796 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13797
13798 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13799
13800 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13801 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13802
13803 2020-02-11 Tom Tromey <tom@tromey.com>
13804
13805 * psymtab.h: Update comment.
13806
13807 2020-02-11 Tom Tromey <tom@tromey.com>
13808
13809 * gdb_obstack.h (struct auto_obstack): Use
13810 DISABLE_COPY_AND_ASSIGN.
13811
13812 2020-02-11 Tom Tromey <tom@tromey.com>
13813
13814 * dwarf2/frame.h (struct objfile): Don't forward declare.
13815
13816 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13817
13818 * cris-tdep.c (cris_supply_gregset): Change signature to match
13819 what struct regset expects.
13820 (cris_regset): New struct.
13821 (fetch_core_registers): Remove.
13822 (cris_iterate_over_regset_sections): New function.
13823 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13824 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13825
13826 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13827
13828 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13829 registers.
13830
13831 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13832
13833 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13834
13835 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13836
13837 * configure: Re-generate.
13838
13839 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13840
13841 * configure: Re-generate.
13842
13843 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13844
13845 * acinclude: Update warning.m4 path.
13846 * warning.m4: Move to gdbsupport.
13847
13848 2020-02-11 Tom Tromey <tromey@adacore.com>
13849
13850 * remote.c (remote_console_output): Update.
13851 * printcmd.c (printf_command): Update.
13852 * event-loop.c (gdb_wait_for_event): Update.
13853 * linux-nat.c (sigchld_handler): Update.
13854 * remote-sim.c (gdb_os_write_stdout): Update.
13855 (gdb_os_flush_stdout): Update.
13856 (gdb_os_flush_stderr): Update.
13857 (gdb_os_write_stderr): Update.
13858 * exceptions.c (print_exception): Update.
13859 * remote-fileio.c (remote_fileio_func_read): Update.
13860 (remote_fileio_func_write): Update.
13861 * tui/tui.c (tui_enable): Update.
13862 * tui/tui-interp.c (tui_interp::init): Update.
13863 * utils.c (init_page_info): Update.
13864 (putchar_unfiltered, fputc_unfiltered): Update.
13865 (gdb_flush): Update.
13866 (emit_style_escape): Update.
13867 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13868 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13869 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13870 (stderr_file::write): Update.
13871 (stderr_file::puts): Update.
13872 * ui-file.h (ui_file_isatty, ui_file_write)
13873 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13874 (ui_file_puts): Don't declare.
13875
13876 2020-02-10 Tom de Vries <tdevries@suse.de>
13877
13878 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13879 sentinel to char *.
13880
13881 2020-02-09 Tom de Vries <tdevries@suse.de>
13882
13883 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13884 filename if it matches "<artificial>".
13885
13886 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13887
13888 * windows-tdep.c (struct enum_value_name): New struct.
13889 (create_enum): New function.
13890 (windows_get_siginfo_type): Create and use enum types.
13891
13892 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13893
13894 * NEWS: Mention $_siginfo support for Windows.
13895 * windows-nat.c (handle_exception): Set siginfo_er.
13896 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13897 (windows_xfer_siginfo): New function.
13898 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13899 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13900 (init_windows_gdbarch_data): New function.
13901 (get_windows_gdbarch_data): New function.
13902 (windows_get_siginfo_type): New function.
13903 (windows_init_abi): Register windows_get_siginfo_type.
13904 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13905
13906 2020-02-08 Tom Tromey <tom@tromey.com>
13907
13908 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13909 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13910 <keep>: Declare method.
13911 <m_keep>: Remove member.
13912 <~cutu_reader>: Remove.
13913 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13914 (cutu_reader::cutu_reader): Update.
13915 (cutu_reader::keep): Rename from ~cutu_reader.
13916 (process_psymtab_comp_unit, build_type_psymtabs_1)
13917 (process_skeletonless_type_unit, load_partial_comp_unit)
13918 (load_full_comp_unit, dwarf2_read_addr_index)
13919 (read_signatured_type): Update.
13920
13921 2020-02-08 Tom Tromey <tom@tromey.com>
13922
13923 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13924 "want_partial_unit" parameter.
13925 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13926 Inline check for DW_TAG_partial_unit.
13927 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13928
13929 2020-02-08 Tom Tromey <tom@tromey.com>
13930
13931 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13932 read.c.
13933 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13934 read.c.
13935
13936 2020-02-08 Tom Tromey <tom@tromey.com>
13937
13938 * dwarf2/read.c (read_address): Move to comp-unit.c.
13939 (dwarf2_rnglists_process, dwarf2_ranges_process)
13940 (read_attribute_value, dwarf_decode_lines_1)
13941 (var_decode_location, decode_locdesc): Update.
13942 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13943 read.c. Remove "cu" parameter.
13944 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13945 method.
13946
13947 2020-02-08 Tom Tromey <tom@tromey.com>
13948
13949 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13950 (read_indirect_line_string): Update.
13951 * dwarf2/comp-unit.c (read_offset): Remove.
13952 (read_comp_unit_head): Update.
13953 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13954 method.
13955 (read_offset): Don't declare.
13956
13957 2020-02-08 Tom Tromey <tom@tromey.com>
13958
13959 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13960 * dwarf2/read.c (struct comp_unit_head): Move to
13961 dwarf2/comp-unit.h.
13962 (enum class rcuh_kind): Move to comp-unit.h.
13963 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13964 (read_comp_unit_head, error_check_comp_unit_head)
13965 (read_and_check_comp_unit_head): Move to comp-unit.c.
13966 (read_offset, dwarf_unit_type_name): Likewise.
13967 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13968 (cutu_reader::cutu_reader, read_call_site_scope)
13969 (find_partial_die, follow_die_offset): Update.
13970 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13971
13972 2020-02-08 Tom Tromey <tom@tromey.com>
13973
13974 * dwarf2/read.c (read_offset_1): Move to leb.c.
13975 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13976 (dwarf_decode_macro_bytes): Update.
13977 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13978 * dwarf2/leb.h (read_offset): Declare.
13979
13980 2020-02-08 Tom Tromey <tom@tromey.com>
13981
13982 * dwarf2/read.c (dwarf2_section_size): Remove.
13983 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13984 Update.
13985 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13986
13987 2020-02-08 Tom Tromey <tom@tromey.com>
13988
13989 * dwarf2/read.c (read_initial_length): Move to leb.c.
13990 * dwarf2/leb.h (read_initial_length): Declare.
13991 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13992 handle_nonstd parameter.
13993 * dwarf2/frame.c (read_initial_length): Remove.
13994 (decode_frame_entry_1): Update.
13995
13996 2020-02-08 Tom Tromey <tom@tromey.com>
13997
13998 * dwarf2/loc.c (dwarf2_find_location_expression)
13999 (dwarf_evaluate_loc_desc::get_tls_address)
14000 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14001 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14002 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14003 (dwarf2_compile_property_to_c)
14004 (dwarf2_loc_desc_get_symbol_read_needs)
14005 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14006 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14007 (loclist_describe_location, loclist_tracepoint_var_ref)
14008 (loclist_generate_c_location): Update.
14009 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14010 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14011 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14012 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14013 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14014 (dwarf2_per_cu_data::addr_size)
14015 (dwarf2_per_cu_data::ref_addr_size)
14016 (dwarf2_per_cu_data::text_offset)
14017 (dwarf2_per_cu_data::addr_type): Now methods.
14018 (per_cu_header_read_in): Make per_cu "const".
14019 (dwarf2_version): Remove.
14020 (dwarf2_per_cu_data::int_type): Now a method.
14021 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14022 (set_die_type, read_array_type, read_subrange_index_type)
14023 (read_tag_string_type, read_subrange_type): Update.
14024 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14025 offset_size, ref_addr_size, text_offset, addr_type, version,
14026 objfile, int_type, addr_sized_int_type>: Declare methods.
14027
14028 2020-02-08 Tom Tromey <tom@tromey.com>
14029
14030 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14031 Move earlier.
14032
14033 2020-02-08 Tom Tromey <tom@tromey.com>
14034
14035 * dwarf2/read.h (dwarf_line_debug): Declare.
14036 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14037 * dwarf2/read.c: Move line_header code to new files.
14038 (dwarf_line_debug): No longer static.
14039 * dwarf2/line-header.c: New file.
14040 * dwarf2/line-header.h: New file.
14041
14042 2020-02-08 Tom Tromey <tom@tromey.com>
14043
14044 * dwarf2/read.c (struct line_header) <file_full_name,
14045 file_file_name>: Return unique_xmalloc_ptr.
14046 (line_header::file_file_name): Update.
14047 (line_header::file_full_name): Update.
14048 (dw2_get_file_names_reader): Update.
14049 (macro_start_file): Update.
14050
14051 2020-02-08 Tom Tromey <tom@tromey.com>
14052
14053 * dwarf2/read.c (struct line_header) <file_full_name,
14054 file_file_name>: Declare methods.
14055 (dw2_get_file_names_reader): Update.
14056 (file_file_name): Now a method.
14057 (file_full_name): Likewise.
14058 (macro_start_file): Update.
14059
14060 2020-02-08 Tom Tromey <tom@tromey.com>
14061
14062 * dwarf2/read.c (dwarf_always_disassemble)
14063 (show_dwarf_always_disassemble): Move to loc.c.
14064 (_initialize_dwarf2_read): Move "always-disassemble" registration
14065 to loc.c.
14066 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14067 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14068 static.
14069 (show_dwarf_always_disassemble): Move from read.c.
14070 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14071
14072 2020-02-08 Tom Tromey <tom@tromey.com>
14073
14074 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14075 (create_quick_file_names_table): Return htab_up.
14076 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14077 Update.
14078 * dwarf2/read.h (struct dwarf2_per_objfile)
14079 <quick_file_names_table>: Now htab_up.
14080
14081 2020-02-08 Tom Tromey <tom@tromey.com>
14082
14083 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14084
14085 2020-02-08 Tom Tromey <tom@tromey.com>
14086
14087 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14088 Rewrite.
14089 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14090 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14091 (abbrev_table::abbrev_table): No longer inline.
14092 (ABBREV_HASH_SIZE): Remove.
14093 (abbrev_table::m_abbrevs): Now an htab_up.
14094
14095 2020-02-08 Tom Tromey <tom@tromey.com>
14096
14097 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14098 (cutu_reader): Update.
14099 (build_type_psymtabs_1): Update.
14100 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14101 (abbrev_table::alloc_abbrev): Update.
14102 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14103 (abbrev_table::read): New static method, renamed from
14104 abbrev_table_read_table.
14105 (abbrev_table::alloc_abbrev)
14106 (abbrev_table::add_abbrev): Now private.
14107 (abbrev_table::abbrev_table): Now private.
14108 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14109
14110 2020-02-08 Tom Tromey <tom@tromey.com>
14111
14112 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14113 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14114 htab_up.
14115
14116 2020-02-08 Tom Tromey <tom@tromey.com>
14117
14118 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14119 htab_up.
14120 (lookup_dwo_unit_in_dwp): Update.
14121 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14122 on obstack.
14123
14124 2020-02-08 Tom Tromey <tom@tromey.com>
14125
14126 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14127 obstack.
14128
14129 2020-02-08 Tom Tromey <tom@tromey.com>
14130
14131 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14132 line_header_hash.
14133 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14134 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14135 Change type to htab_up.
14136
14137 2020-02-08 Tom Tromey <tom@tromey.com>
14138
14139 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14140 htab_up. Don't allocate on obstack.
14141 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14142 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14143 Change type to htab_up.
14144
14145 2020-02-08 Tom Tromey <tom@tromey.com>
14146
14147 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14148 Change type to htab_up.
14149 * dwarf2/read.c (create_signatured_type_table_from_index)
14150 (create_signatured_type_table_from_debug_names)
14151 (create_all_type_units, add_type_unit)
14152 (lookup_dwo_signatured_type, lookup_signatured_type)
14153 (process_skeletonless_type_unit): Update.
14154 (create_debug_type_hash_table, create_debug_types_hash_table):
14155 Change type of types_htab.
14156 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14157 htab_up. Don't allocate on obstack.
14158 (create_cus_hash_table): Change type of cus_htab parameter.
14159 (struct dwo_file) <cus, tus>: Now htab_up.
14160 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14161 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14162 (queue_and_load_all_dwo_tus): Update.
14163 * dwarf2/index-write.c (write_gdbindex): Update.
14164 (write_debug_names): Update.
14165
14166 2020-02-08 Tom Tromey <tom@tromey.com>
14167
14168 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14169 dwarf2/read.c. Remove "next" member. Add constructor ntad
14170 destructor.
14171 (struct dwarf2_per_objfile) <queue>: New member.
14172 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14173 dwarf2/read.h.
14174 (dwarf2_queue, dwarf2_queue_tail): Remove.
14175 (class dwarf2_queue_guard): Add parameter to constructor. Use
14176 DISABLE_COPY_AND_ASSIGN.
14177 <m_per_objfile>: New member.
14178 <~dwarf2_queue_guard>: Rewrite.
14179 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14180 Update.
14181 (~dwarf2_queue_item): New.
14182
14183 2020-02-08 Tom Tromey <tom@tromey.com>
14184
14185 * dwarf2/read.c (struct die_info) <has_children>: New member.
14186 (dw2_get_file_names_reader): Remove has_children.
14187 (dw2_get_file_names): Update.
14188 (read_cutu_die_from_dwo): Remove has_children.
14189 (cutu_reader::init_tu_and_read_dwo_dies)
14190 (cutu_reader::cutu_reader): Update.
14191 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14192 Remove has_children.
14193 (build_type_psymtabs_1, process_skeletonless_type_unit)
14194 (load_partial_comp_unit, load_full_comp_unit): Update.
14195 (create_dwo_cu_reader): Remove has_children.
14196 (create_cus_hash_table, read_die_and_children): Update.
14197 (read_full_die_1,read_full_die): Remove has_children.
14198 (read_signatured_type): Update.
14199 (class cutu_reader) <has_children>: Remove.
14200
14201 2020-02-08 Tom Tromey <tom@tromey.com>
14202
14203 * dwarf2/expr.c: Rename from dwarf2expr.c.
14204 * dwarf2/expr.h: Rename from dwarf2expr.h.
14205 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14206 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14207 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14208 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14209 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14210 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14211 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14212 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14213 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14214 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14215 * dwarf2/loc.c: Rename from dwarf2loc.c.
14216 * dwarf2/loc.h: Rename from dwarf2loc.h.
14217 * dwarf2/read.c: Rename from dwarf2read.c.
14218 * dwarf2/read.h: Rename from dwarf2read.h.
14219 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14220 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14221 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14222 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14223 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14224 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14225 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14226 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14227 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14228 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14229 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14230 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14231 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14232 Update.
14233 * Makefile.in (COMMON_SFILES): Update.
14234 (HFILES_NO_SRCDIR): Update.
14235
14236 2020-02-08 Tom Tromey <tom@tromey.com>
14237
14238 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14239 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14240
14241 2020-02-08 Tom Tromey <tom@tromey.com>
14242
14243 * dwarf2read.h (struct die_info): Don't declare.
14244
14245 2020-02-08 Tom Tromey <tom@tromey.com>
14246
14247 * dwarf2read.h (die_info_ptr): Remove typedef.
14248
14249 2020-02-08 Tom Tromey <tom@tromey.com>
14250
14251 * dwarf2read.c (read_call_site_scope)
14252 (handle_data_member_location, dwarf2_add_member_fn)
14253 (mark_common_block_symbol_computed, read_common_block)
14254 (attr_to_dynamic_prop, partial_die_info::read)
14255 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14256 (dwarf2_symbol_mark_computed, set_die_type): Update.
14257 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14258 method.
14259 (attr_form_is_block): Don't declare.
14260 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14261
14262 2020-02-08 Tom Tromey <tom@tromey.com>
14263
14264 * dwarf2read.c (dwarf2_find_base_address, )
14265 (read_call_site_scope, rust_containing_type)
14266 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14267 (handle_data_member_location, dwarf2_add_member_fn)
14268 (get_alignment, read_structure_type, process_structure_scope)
14269 (mark_common_block_symbol_computed, read_common_block)
14270 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14271 (partial_die_info::read, read_attribute_value, new_symbol)
14272 (lookup_die_type, dwarf2_get_ref_die_offset)
14273 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14274 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14275 (dwarf2_symbol_mark_computed): Update.
14276 * dwarf2/attribute.h (struct attribute) <value_as_address,
14277 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14278 methods.
14279 (value_as_address, attr_form_is_section_offset)
14280 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14281 * dwarf2/attribute.c (attribute::value_as_address)
14282 (attribute::form_is_section_offset, attribute::form_is_constant)
14283 (attribute::form_is_ref): Now methods.
14284
14285 2020-02-08 Tom Tromey <tom@tromey.com>
14286
14287 * dwarf2read.c (struct attribute, DW_STRING)
14288 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14289 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14290 (attr_form_is_block, attr_form_is_section_offset)
14291 (attr_form_is_constant, attr_form_is_ref): Move.
14292 * dwarf2/attribute.h: New file.
14293 * dwarf2/attribute.c: New file, from dwarf2read.c.
14294 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14295
14296 2020-02-08 Tom Tromey <tom@tromey.com>
14297
14298 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14299 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14300 Move.
14301 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14302 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14303 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14304 abbrev.c.
14305 * dwarf2/abbrev.h: New file.
14306 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14307 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14308
14309 2020-02-08 Tom Tromey <tom@tromey.com>
14310
14311 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14312 (dwarf2_section_size, dwarf2_get_section_info)
14313 (create_signatured_type_table_from_debug_names)
14314 (create_addrmap_from_aranges, read_debug_names_from_section)
14315 (get_gdb_index_contents_from_section, read_comp_unit_head)
14316 (error_check_comp_unit_head, read_abbrev_offset)
14317 (create_debug_type_hash_table, init_cu_die_reader)
14318 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14319 (read_comp_units_from_section, create_cus_hash_table)
14320 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14321 (create_dwp_v2_section, dwarf2_rnglists_process)
14322 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14323 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14324 (read_indirect_string_from_dwz, read_addr_index_1)
14325 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14326 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14327 (fill_in_loclist_baton): Update.
14328 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14329 get_containing_section, get_bfd_owner, get_bfd_section,
14330 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14331 (dwarf2_read_section, get_section_name, get_section_file_name)
14332 (get_containing_section, get_section_bfd_owner)
14333 (get_section_bfd_section, get_section_name, get_section_file_name)
14334 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14335 declare.
14336 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14337 (dwarf2_section_info::get_bfd_owner)
14338 (dwarf2_section_info::get_bfd_section)
14339 (dwarf2_section_info::get_name)
14340 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14341 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14342 (dwarf2_section_info::read): Now methods.
14343 * dwarf-index-write.c (class debug_names): Update.
14344
14345 2020-02-08 Tom Tromey <tom@tromey.com>
14346
14347 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14348 Move to dwarf2/section.h.
14349 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14350 (get_section_bfd_section, get_section_name)
14351 (get_section_file_name, get_section_id, get_section_flags)
14352 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14353 dwarf2/section.c.
14354 * dwarf2/section.h: New file.
14355 * dwarf2/section.c: New file, from dwarf2read.c.
14356 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14357
14358 2020-02-08 Tom Tromey <tom@tromey.com>
14359
14360 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14361 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14362 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14363 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14364 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14365 * dwarf2/leb.h: New file, from dwarf2read.c.
14366 * dwarf2/leb.c: New file, from dwarf2read.c.
14367 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14368 Remove.
14369 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14370 (COMMON_SFILES): Add dwarf2/leb.c.
14371
14372 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14373
14374 GDB 9.1 released.
14375
14376 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14377
14378 PR gdb/25190:
14379 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14380 * gdb/remote.c (remote_console_output): Update.
14381 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14382 (ui_file_puts): ...this.
14383 * gdb/ui-file.h (ui_file_puts): Add declaration.
14384 * gdb/utils.c (emit_style_escape): Update.
14385 (flush_wrap_buffer): Update.
14386 (fputs_maybe_filtered): Update.
14387 (fputs_unfiltered): Add function.
14388
14389 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14390
14391 * gdb/event-loop.c (gdb_wait_for_event): Update.
14392 * gdb/printcmd.c (printf_command): Update.
14393 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14394 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14395 (gdb_os_flush_stderr): Update.
14396 * gdb/remote.c (remote_console_output): Update.
14397 * gdb/ui-file.c (gdb_flush): Rename to...
14398 (ui_file_flush): ...this.
14399 (stderr_file::write): Update.
14400 (stderr_file::puts): Update.
14401 * gdb/ui-file.h (gdb_flush): Rename to...
14402 (ui_file_flush): ...this.
14403 * gdb/utils.c (gdb_flush): Add function.
14404 * gdb/utils.h (gdb_flush): Add declaration.
14405
14406 2020-02-07 Tom Tromey <tromey@adacore.com>
14407
14408 PR breakpoints/24915:
14409 * source.c (find_and_open_source): Do not check basenames_may_differ.
14410
14411 2020-02-07 Tom Tromey <tom@tromey.com>
14412
14413 * README: Update gdbserver documentation.
14414 * gdbserver: Move to top level.
14415 * configure.tgt (build_gdbserver): Remove.
14416 * configure.ac: Remove --enable-gdbserver.
14417 * configure: Rebuild.
14418 * Makefile.in (distclean): Don't mention gdbserver.
14419
14420 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14421
14422 * source-cache.c (source_cache::ensure): Surround
14423 get_plain_source_lines with a try/catch.
14424 (source_cache::get_line_charpos): Get rid of try/catch
14425 and only check for the return value of "ensure".
14426 * tui/tui-source.c (tui_source_window::set_contents):
14427 Simplify "nlines" calculation.
14428
14429 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14430
14431 * MAINTAINERS (Write After Approval): Add myself.
14432
14433 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14434
14435 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14436 function call.
14437
14438 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14439
14440 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14441
14442 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14443
14444 * nat/riscv-linux-tdesc.h: New file.
14445 * nat/riscv-linux-tdesc.c: New file, taking code from...
14446 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14447 ... here.
14448 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14449 NATDEPFILES.
14450
14451 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14452
14453 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14454 we don't set the fake simulator ptid to the null_ptid.
14455
14456 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14457
14458 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14459 * gdbthread.h (class thread_info) <resumed>: Likewise.
14460 * infrun.c (resume_1): Likewise.
14461 (proceed): Likewise.
14462 (infrun_thread_stop_requested): Likewise.
14463 (stop_all_threads): Likewise.
14464 (handle_inferior_event): Likewise.
14465 (restart_threads): Likewise.
14466 (finish_step_over): Likewise.
14467 (keep_going_stepped_thread): Likewise.
14468 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14469 (linux_handle_extended_wait): Likewise.
14470 * record-btrace.c (get_thread_current_frame_id): Likewise.
14471 * record-full.c (record_full_wait_1): Likewise.
14472 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14473 * target.c (target_resume): Likewise.
14474 * thread.c (set_running_thread): Likewise.
14475
14476 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14477
14478 * f-valprint.c (f77_print_array_1): Changed datatype of index
14479 variable to LONGEST from int to enable it to contain bound
14480 values correctly.
14481
14482 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14483
14484 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14485 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14486 offsets according to FLEN determined.
14487 (riscv_linux_nat_target::read_description): Determine FLEN
14488 dynamically.
14489 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14490 according to FLEN determined.
14491 (riscv_linux_nat_target::store_registers): Likewise.
14492
14493 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14494
14495 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14496 when reg->group is empty and reggroup is not.
14497
14498 2020-01-31 Tom Tromey <tromey@adacore.com>
14499
14500 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14501 Call beneath target's mourn_inferior after unpushing.
14502
14503 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14504
14505 PR tui/9765
14506 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14507 have enough lines to fill the screen, still return the lowest
14508 address we found.
14509
14510 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14511
14512 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14513 '-', '<', and '>' commands.
14514
14515 2020-01-29 Pedro Alves <palves@redhat.com>
14516 Sergio Durigan Junior <sergiodj@redhat.com>
14517
14518 * infcmd.c (construct_inferior_arguments): Assert that
14519 'argc' is greater than 0.
14520
14521 2020-01-29 Luis Machado <luis.machado@linaro.org>
14522
14523 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14524 (BRK_INSN_MASK): Define to 0xd4200000.
14525 (aarch64_program_breakpoint_here_p): New function.
14526 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14527 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14528 breakpoint.c.
14529 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14530 breakpoint.h
14531 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14532 call gdbarch_program_breakpoint_here_p.
14533 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14534 default_program_breakpoint_here_p, changed return type to bool and
14535 simplified.
14536 * breakpoint.h (program_breakpoint_here): Moved prototype to
14537 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14538 return type to bool.
14539 * gdbarch.c: Regenerate.
14540 * gdbarch.h: Regenerate.
14541 * gdbarch.sh (program_breakpoint_here_p): New method.
14542 * infrun.c (handle_signal_stop): Call
14543 gdbarch_program_breakpoint_here_p.
14544
14545 2020-01-26 Tom Tromey <tom@tromey.com>
14546
14547 * ctfread.c (struct ctf_fp_info): Reindent.
14548 (_initialize_ctfread): Remove.
14549
14550 2020-01-26 Tom Tromey <tom@tromey.com>
14551
14552 * psymtab.c (partial_map_expand_apply)
14553 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14554 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14555 (psym_print_stats, psym_expand_symtabs_for_function)
14556 (psym_map_symbol_filenames, psym_map_matching_symbols)
14557 (psym_expand_symtabs_matching)
14558 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14559 (maintenance_check_psymtabs): Use new methods.
14560 * psympriv.h (struct partial_symtab) <readin_p,
14561 get_compunit_symtab>: New methods.
14562 <readin, compunit_symtab>: Remove members.
14563 (struct standard_psymtab): New.
14564 (struct legacy_psymtab): Derive from standard_psymtab.
14565 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14566 standard_psymtab.
14567 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14568
14569 2020-01-26 Tom Tromey <tom@tromey.com>
14570
14571 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14572 read_dependencies. Add assert.
14573 * psymtab.c (partial_symtab::read_dependencies): New method.
14574 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14575 method.
14576 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14577 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14578 read_dependencies.
14579 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14580 Add assert.
14581
14582 2020-01-26 Tom Tromey <tom@tromey.com>
14583
14584 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14585 Call expand_psymtab.
14586 (xcoff_read_symtab): Call expand_psymtab.
14587 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14588 legacy_expand_psymtab.
14589 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14590 method.
14591 (struct legacy_psymtab) <expand_psymtab>: Implement.
14592 <legacy_expand_psymtab>: New member.
14593 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14594 (parse_partial_symbols): Set legacy_expand_psymtab.
14595 (psymtab_to_symtab_1): Change argument order. Call
14596 expand_psymtab.
14597 (new_psymtab): Set legacy_expand_psymtab.
14598 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14599 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14600 expand_psymtab.
14601 (dwarf2_psymtab::expand_psymtab): Rename from
14602 psymtab_to_symtab_1. Call expand_psymtab.
14603 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14604 (dbx_end_psymtab): Likewise.
14605 (dbx_psymtab_to_symtab_1): Change argument order. Call
14606 expand_psymtab.
14607 (dbx_read_symtab): Call expand_psymtab.
14608 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14609 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14610 (ctf_psymtab::read_symtab): Call expand_psymtab.
14611
14612 2020-01-26 Tom Tromey <tom@tromey.com>
14613
14614 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14615 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14616 messages.
14617 * mdebugread.c (mdebug_read_symtab): Remove prints.
14618 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14619 assert.
14620 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14621
14622 2020-01-26 Tom Tromey <tom@tromey.com>
14623
14624 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14625 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14626 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14627 legacy_symtab.
14628 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14629 * psymtab.c (psymtab_to_symtab): Call method.
14630 (dump_psymtab): Update.
14631 * psympriv.h (struct partial_symtab): Add virtual destructor.
14632 <read_symtab>: New method.
14633 (struct legacy_symtab): New.
14634 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14635 (struct pst_map) <pst>: Now a legacy_psymtab.
14636 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14637 (new_psymtab): Use legacy_psymtab.
14638 * dwarf2read.h (struct dwarf2_psymtab): New.
14639 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14640 * dwarf2read.c (dwarf2_create_include_psymtab)
14641 (dwarf2_build_include_psymtabs, create_type_unit_group)
14642 (create_partial_symtab, process_psymtab_comp_unit_reader)
14643 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14644 (set_partial_user): Use dwarf2_psymtab.
14645 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14646 (psymtab_to_symtab_1, process_full_comp_unit)
14647 (process_full_type_unit, dwarf2_ranges_read)
14648 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14649 (dwarf_decode_lines): Use dwarf2_psymtab.
14650 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14651 (add_address_entry_worker, write_one_signatured_type)
14652 (recursively_count_psymbols, recursively_write_psymbols)
14653 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14654 (write_debug_names): Likewise.
14655 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14656 <pst>: Now a legacy_psymtab.
14657 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14658 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14659 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14660 * ctfread.c (struct ctf_psymtab): New.
14661 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14662 ctf_psymtab.
14663 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14664 (create_partial_symtab): Return a ctf_psymtab.
14665 (scan_partial_symbols): Update.
14666
14667 2020-01-26 Tom Tromey <tom@tromey.com>
14668
14669 * xcoffread.c (xcoff_start_psymtab): Use new.
14670 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14671 renamed from start_psymtab_common.
14672 * psympriv.h (struct partial_symtab): Add new constructor.
14673 (start_psymtab_common): Don't declare.
14674 * mdebugread.c (parse_partial_symbols): Use new.
14675 * dwarf2read.c (create_partial_symtab): Use new.
14676 * dbxread.c (start_psymtab): Use new.
14677 * ctfread.c (create_partial_symtab): Use new.
14678
14679 2020-01-26 Tom Tromey <tom@tromey.com>
14680
14681 * xcoffread.c (xcoff_end_psymtab): Use new.
14682 * psymtab.c (start_psymtab_common): Use new.
14683 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14684 Update.
14685 * psympriv.h (struct partial_symtab): Add parameters to
14686 constructor. Don't inline.
14687 (allocate_psymtab): Don't declare.
14688 * mdebugread.c (new_psymtab): Use new.
14689 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14690 * dbxread.c (dbx_end_psymtab): Use new.
14691
14692 2020-01-26 Tom Tromey <tom@tromey.com>
14693
14694 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14695 allocate_psymtab. Update documentation.
14696 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14697 allocate_psymtab. Do not use new.
14698 (allocate_psymtab): Use new. Update.
14699
14700 2020-01-26 Tom Tromey <tom@tromey.com>
14701
14702 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14703 * psymtab.c (psym_print_stats): Update.
14704 * psympriv.h (struct partial_symtab) <readin,
14705 psymtabs_addrmap_supported, anonymous>: Now bool.
14706 * mdebugread.c (psymtab_to_symtab_1): Update.
14707 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14708 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14709 (process_full_comp_unit, process_full_type_unit): Update.
14710 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14711 * ctfread.c (psymtab_to_symtab): Update.
14712
14713 2020-01-26 Tom Tromey <tom@tromey.com>
14714
14715 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14716 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14717 * psymtab.c (psymtab_storage): Delete psymtabs.
14718 (psymtab_storage::allocate_psymtab): Use new.
14719 (psymtab_storage::discard_psymtab): Use delete.
14720 * psympriv.h (struct partial_symtab): Add constructor and
14721 initializers.
14722
14723 2020-01-26 Tom Tromey <tom@tromey.com>
14724
14725 * machoread.c: Do not include psympriv.h.
14726
14727 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14728
14729 * NEWS: Mention the new option and the set/show commands.
14730
14731 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14732
14733 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14734 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14735 (validate_exec_file): New variables, enums, functions.
14736 (exec_file_locate_attach, print_section_info): Style the filenames.
14737 (_initialize_exec): Install show_exec_file_mismatch_command and
14738 set_exec_file_mismatch_command.
14739 * gdbcore.h (validate_exec_file): Declare.
14740 * infcmd.c (attach_command): Call validate_exec_file.
14741 * remote.c ( remote_target::remote_add_inferior): Likewise.
14742
14743 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14744
14745 * frame.c (find_frame_sal): Move call to get_next_frame into more
14746 inner scope.
14747 * inline-frame.c (inilne_state) <inline_state>: Update argument
14748 types.
14749 (inilne_state) <skipped_symbol>: Rename to...
14750 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14751 (skip_inline_frames): Build vector of skipped symbols and use this
14752 to reate the inline_state.
14753 (inline_skipped_symbol): Add a comment and some assertions, fetch
14754 skipped symbol from the list.
14755
14756 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14757
14758 * buildsym.c (lte_is_less_than): Delete.
14759 (buildsym_compunit::end_symtab_with_blockvector): Create local
14760 lambda function to sort line table entries, and use
14761 std::stable_sort instead of std::sort.
14762 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14763 markers when looking for a previous line.
14764
14765 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14766
14767 * dwarf2read.c (lnp_state_machine::record_line): Include
14768 end_sequence parameter in debug print out. Record the line if we
14769 are at an end_sequence marker even if it's not the start of a
14770 statement.
14771 * symmisc.c (maintenance_print_one_line_table): Print end of
14772 sequence markers with 'END' not '0'.
14773
14774 2020-01-24 Pedro Alves <palves@redhat.com>
14775
14776 PR gdb/25410
14777 * thread.c (scoped_restore_current_thread::restore): Use
14778 switch_to_inferior_no_thread.
14779 * exec.c: Include "progspace-and-thread.h".
14780 (add_target_sections, remove_target_sections):
14781 scoped_restore_current_pspace_and_thread instead of
14782 scoped_restore_current_thread.
14783 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14784 and aspace to the inferior before calling clone_program_space.
14785 Remove stale comment.
14786
14787 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14788
14789 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14790 (arm_netbsd_nat_target::fetch_registers): ...this.
14791 (arm_nbsd_nat_target::store_registers): Rename to...
14792 (arm_netbsd_nat_target::store_registers): ...this.
14793
14794 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14795
14796 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14797 register_t.
14798
14799 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14800
14801 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14802 Update comment.
14803 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14804 Likewise.
14805 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14806 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14807 the correct replacement (iterate_over_regset_sections).
14808 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14809 Update comment.
14810
14811 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14812
14813 PR gdb/23718
14814 * gdb/python/python.c (execute_gdb_command): Call
14815 async_enable_stdin in catch block.
14816
14817 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14818
14819 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14820 SWITCH_THRU_ALL_UIS.
14821
14822 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14823
14824 PR tui/9765
14825 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14826 comment, add extra parameter, and update to store previous symbol
14827 when appropriate.
14828 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14829 add extra parameter.
14830 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14831 remove unneeded parameter, add try/catch around gdb_print_insn,
14832 rewrite to add items to asm_lines vector.
14833 (tui_find_backward_disassembly_start_address): New function.
14834 (tui_find_disassembly_address): Updated throughout.
14835 (tui_disasm_window::set_contents): Update for changes to
14836 tui_disassemble.
14837 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14838 number of lines to scroll.
14839
14840 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14841
14842 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14843 (SECT_OFF_DATA): Likewise.
14844 (SECT_OFF_RODATA): Likewise.
14845 (SECT_OFF_TEXT): Likewise.
14846 (SECT_OFF_BSS): Likewise.
14847 (struct objfile) <text_section_offset, data_section_offset>: New
14848 methods.
14849 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14850 objfile::text_section_offset.
14851 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14852 * coffread.c (coff_symtab_read): Likewise.
14853 (enter_linenos): Likewise.
14854 (process_coff_symbol): Likewise.
14855 * ctfread.c (get_objfile_text_range): Likewise.
14856 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14857 Use objfile::data_section_offset.
14858 * dwarf2-frame.c (execute_cfa_program): Use
14859 objfile::text_section_offset.
14860 (dwarf2_frame_find_fde): Likewise.
14861 * dwarf2read.c (create_addrmap_from_index): Likewise.
14862 (create_addrmap_from_aranges): Likewise.
14863 (dw2_find_pc_sect_compunit_symtab): Likewise.
14864 (process_psymtab_comp_unit_reader): Likewise.
14865 (add_partial_symbol): Likewise.
14866 (add_partial_subprogram): Likewise.
14867 (process_full_comp_unit): Likewise.
14868 (read_file_scope): Likewise.
14869 (read_func_scope): Likewise.
14870 (read_lexical_block_scope): Likewise.
14871 (read_call_site_scope): Likewise.
14872 (dwarf2_rnglists_process): Likewise.
14873 (dwarf2_ranges_process): Likewise.
14874 (dwarf2_ranges_read): Likewise.
14875 (dwarf_decode_lines_1): Likewise.
14876 (new_symbol): Likewise.
14877 (dwarf2_fetch_die_loc_sect_off): Likewise.
14878 (dwarf2_per_cu_text_offset): Likewise.
14879 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14880 * hppa-tdep.c (read_unwind_info): Likewise.
14881 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14882 * psympriv.h (struct partial_symtab): Likewise.
14883 * psymtab.c (find_pc_sect_psymtab): Likewise.
14884 * solib-svr4.c (enable_break): Likewise.
14885 * stap-probe.c (relocate_address): Use
14886 objfile::data_section_offset.
14887 * xcoffread.c (enter_line_range): Use
14888 objfile::text_section_offset.
14889 (read_xcoff_symtab): Likewise.
14890
14891 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14892
14893 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14894 declaration to narrower scopes.
14895
14896 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14897
14898 * darwin-nat.h (struct darwin_exception_msg, enum
14899 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14900 Move up.
14901 (class darwin_nat_target) <wait_1, check_new_threads,
14902 decode_exception_message, decode_message, stop_inferior,
14903 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14904 * darwin-nat.c (darwin_check_new_threads): Rename to...
14905 (darwin_nat_target::check_new_threads): ... this.
14906 (darwin_suspend_inferior_it): Remove.
14907 (darwin_decode_exception_message): Rename to...
14908 (darwin_nat_target::decode_exception_message): ... this.
14909 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14910 (darwin_decode_message): Rename to...
14911 (darwin_nat_target::decode_message): ... this.
14912 (cancel_breakpoint): Rename to...
14913 (darwin_nat_target::cancel_breakpoint): ... this.
14914 (darwin_wait): Rename to...
14915 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14916 instead of iterate_over_inferiors.
14917 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14918 (darwin_stop_inferior): Rename to...
14919 (darwin_nat_target::stop_inferior): ... this.
14920 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14921 (darwin_init_thread_list): Rename to...
14922 (darwin_nat_target::init_thread_list): ... this.
14923 (darwin_ptrace_him): Rename to...
14924 (darwin_nat_target::ptrace_him): ... this.
14925 (darwin_nat_target::create_inferior): Pass lambda function to
14926 fork_inferior.
14927 (darwin_nat_target::detach): Call stop_inferior instead of
14928 darwin_stop_inferior.
14929 * fork-inferior.h (fork_inferior): Change init_trace_fun
14930 parameter to gdb::function_view.
14931 * fork-inferior.c (fork_inferior): Likewise.
14932
14933 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14934
14935 * i386-cygwin-tdep.c (core_process_module_section): Update.
14936 * windows-nat.c (struct lm_info_windows): Add text_offset.
14937 (windows_xfer_shared_libraries): Update.
14938 * windows-tdep.c (windows_xfer_shared_library):
14939 Add text_offset_cached argument.
14940 * windows-tdep.h (windows_xfer_shared_library): Update.
14941
14942 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14943
14944 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14945
14946 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14947
14948 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14949 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14950 replace with range-based for.
14951 (gdbsim_interrupt_inferior): Remove.
14952 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14953 with a range-based for. Inline code from
14954 gdbsim_interrupt_inferior.
14955
14956 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14957
14958 * infrun.c (proceed): Fix indentation.
14959
14960 2020-01-21 Tom Tromey <tromey@adacore.com>
14961
14962 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14963 * python/python.c (python_extension_ops): Update.
14964 (gdbpy_colorize): New function.
14965 * python/lib/gdb/__init__.py (colorize): New function.
14966 * extension.h (ext_lang_colorize): Declare.
14967 * extension.c (ext_lang_colorize): New function.
14968 * extension-priv.h (struct extension_language_ops) <colorize>: New
14969 member.
14970 * cli/cli-style.c (_initialize_cli_style): Update help text.
14971
14972 2020-01-21 Luis Machado <luis.machado@linaro.org>
14973
14974 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14975 <cond>: Change type to bool.
14976 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14977 (aarch64_displaced_step_cb): Likewise.
14978 (aarch64_displaced_step_tb): Likewise.
14979
14980 2020-01-21 Luis Machado <luis.machado@linaro.org>
14981
14982 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14983 output.
14984
14985 2020-01-21 Luis Machado <luis.machado@linaro.org>
14986
14987 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14988 <pc_adjust>: Adjust the documentation.
14989 (aarch64_displaced_step_fixup): Check if PC really moved before
14990 adjusting it.
14991
14992 2020-01-19 Tom Tromey <tom@tromey.com>
14993
14994 * disasm.c (~gdb_disassembler): New destructor.
14995 (gdb_buffered_insn_length): Call disassemble_free_target.
14996 * disasm.h (class gdb_disassembler): Declare destructor. Use
14997 DISABLE_COPY_AND_ASSIGN.
14998
14999 2020-01-19 Tom Tromey <tom@tromey.com>
15000
15001 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15002 (die_reader_func_ftype): Remove.
15003 (cutu_reader): New class.
15004 (dw2_get_file_names_reader): Remove "data" parameter.
15005 (dw2_get_file_names): Use cutu_reader.
15006 (create_debug_type_hash_table): Update.
15007 (read_cutu_die_from_dwo): Update comment.
15008 (lookup_dwo_unit): Add dwo_name parameter.
15009 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15010 die_reader_func_ftype and data parameters.
15011 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15012 Remove die_reader_func_ftype and data parameters.
15013 (~cutu_reader): New; from init_cutu_and_read_dies.
15014 (cutu_reader::cutu_reader): Rename from
15015 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15016 and data parameters.
15017 (init_cutu_and_read_dies_simple): Remove.
15018 (struct process_psymtab_comp_unit_data): Remove.
15019 (process_psymtab_comp_unit_reader): Remove data parameter; add
15020 want_partial_unit and pretend_language parameters.
15021 (process_psymtab_comp_unit): Use cutu_reader.
15022 (build_type_psymtabs_reader): Remove data parameter.
15023 (build_type_psymtabs_1): Use cutu_reader.
15024 (process_skeletonless_type_unit): Likewise.
15025 (load_partial_comp_unit_reader): Remove.
15026 (load_partial_comp_unit): Use cutu_reader.
15027 (load_full_comp_unit_reader): Remove.
15028 (load_full_comp_unit): Use cutu_reader.
15029 (struct create_dwo_cu_data): Remove.
15030 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15031 dwo_unit parameters.
15032 (create_cus_hash_table): Use cutu_reader.
15033 (struct dwarf2_read_addr_index_data): Remove.
15034 (dwarf2_read_addr_index_reader): Remove.
15035 (dwarf2_read_addr_index): Use cutu_reader.
15036 (read_signatured_type_reader): Remove.
15037 (read_signatured_type): Use cutu_reader.
15038
15039 2020-01-19 Tom Tromey <tom@tromey.com>
15040
15041 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15042 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15043 (tui_wrefresh): Declare.
15044 * tui/tui-wingeneral.c (suppress_output): New global.
15045 (tui_suppress_output, ~tui_suppress_output): New constructor and
15046 destructor.
15047 (tui_wrefresh): New function.
15048 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15049 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15050 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15051 method.
15052 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15053 tui_wrefresh.
15054 (tui_data_window::no_refresh): New method.
15055 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15056 (tui_reg_command): Use tui_suppress_output
15057 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15058 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15059 method.
15060 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15061
15062 2020-01-19 Tom Tromey <tom@tromey.com>
15063
15064 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15065 Handle case where symtab is null.
15066
15067 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15068
15069 * linux-fork.c (one_fork_p): Simplify.
15070
15071 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15072
15073 * top.c (struct qt_args): Remove.
15074 (kill_or_detach): Change return type to void, replace `void *`
15075 parameter with a proper one.
15076 (print_inferior_quit_action): Likewise.
15077 (quit_confirm): Use range-based for loop to iterate over inferiors.
15078 (quit_force): Likewise.
15079
15080 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15081
15082 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15083 `void *` parameter with proper parameters.
15084 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15085 (print_one_inferior): Change return type to void, replace `void *`
15086 parameter with proper parameters.
15087 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15088 inferiors.
15089 (get_other_inferior): Remove.
15090 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15091 inferiors.
15092
15093 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15094
15095 * mi/mi-interp.c (report_initial_inferior): Remove.
15096 (mi_interp::init): Use range-based for to iterate over inferiors.
15097
15098 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15099
15100 * python/py-inferior.c (build_inferior_list): Remove.
15101 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15102
15103 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15104
15105 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15106 (btrace_stitch_trace): Likewise.
15107 * charset.c (intermediate_encoding): Likewise (vaild).
15108 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15109 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15110 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15111
15112 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15113
15114 * windows-tdep.c (windows_get_tlb_type):
15115 Add rtl_user_process_parameters type.
15116
15117 2020-01-16 Pedro Alves <palves@redhat.com>
15118 Norbert Lange <nolange79@gmail.com>
15119
15120 PR build/24805
15121 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15122 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15123 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15124 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15125 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15126 (ps_plog): Redeclare exported functions with default visibility.
15127
15128 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15129
15130 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15131 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15132
15133 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15134
15135 * infcmd.c (post_create_inferior): Use get_thread_regcache
15136 instead of get_current_regcache.
15137
15138 2020-01-14 Tom Tromey <tom@tromey.com>
15139
15140 PR symtab/12535:
15141 * python/python.c (gdbpy_decode_line): Treat empty string the same
15142 as no argument.
15143
15144 2020-01-14 Tom Tromey <tom@tromey.com>
15145
15146 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15147
15148 2020-01-14 Tom Tromey <tom@tromey.com>
15149
15150 * nat/linux-btrace.c: Don't include <config.h>.
15151 * nat/linux-ptrace.c: Don't include <config.h>.
15152 * nat/x86-linux-dregs.c: Don't include <config.h>.
15153
15154 2020-01-14 Tom Tromey <tom@tromey.com>
15155
15156 * configure: Rebuild.
15157 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15158
15159 2020-01-14 Tom Tromey <tom@tromey.com>
15160
15161 * nat/x86-linux-dregs.c: Include configh.h.
15162 * nat/linux-ptrace.c: Include configh.h.
15163 * nat/linux-btrace.c: Include configh.h.
15164 * defs.h: Include config.h, bfd.h.
15165 * configure.ac: Don't source common.host.
15166 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15167 * configure: Rebuild.
15168 * acinclude.m4: Update path.
15169 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15170 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15171 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15172 (CLIBS): Add LIBSUPPORT.
15173 (CDEPS): Likewise.
15174 (COMMON_SFILES): Remove gdbsupport files.
15175 (HFILES_NO_SRCDIR): Likewise.
15176 (stamp-version): Update path to create-version.sh.
15177 (ALLDEPFILES): Remove gdbsupport files.
15178
15179 2020-01-14 Tom Tromey <tom@tromey.com>
15180
15181 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15182 USE_WIN32API when needed.
15183 * configure.ac (USE_WIN32API): Don't define.
15184 (WIN32LIBS): Use WIN32APILIBS.
15185 * configure: Rebuild.
15186
15187 2020-01-14 Tom Tromey <tom@tromey.com>
15188
15189 * configure: Rebuild.
15190 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15191
15192 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15193
15194 * skip.c (skip_function_command): Make skip w/o arguments use the
15195 name of the inlined function if pc is inside any inlined function.
15196
15197 2020-01-14 Luis Machado <luis.machado@linaro.org>
15198
15199 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15200 * infrun.c (resume_1): Likewise.
15201 (handle_inferior_event): Remove stale comment.
15202 * linux-nat.c (linux_nat_target::resume): Update comments.
15203 (save_stop_reason): Likewise.
15204 (linux_nat_filter_event): Likewise.
15205 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15206
15207 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15208
15209 * elfread.c (record_minimal_symbol): Set section index to 0 for
15210 non-allocatable sections.
15211
15212
15213 2020-01-13 Ali Tamur <tamur@google.com>
15214
15215 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15216 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15217 to gdb::optional. Update comments.
15218 (dwo_file): Update comments.
15219 (read_attribute): Update API to take an additional out parameter,
15220 need_reprocess. This is used to mark attributes that need other
15221 attributes (e.g. str_offsets_base) for correct computation which may not
15222 have been read yet.
15223 (read_attribute_reprocess): New function declaration.
15224 (read_addr_index): Likewise.
15225 (read_dwo_str_index): Likewise.
15226 (read_stub_str_index): Likewise.
15227 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15228 (lookup_addr_base): New function definition.
15229 (lookup_ranges_base): Likewise.
15230 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15231 lookup_ranges_base.
15232 (init_cutu_and_read_dies): Update comments.
15233 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15234 unit. This is used to inherit parent's str_offsets_base and addr_base.
15235 Update comments.
15236 (init_cutu_and_read_dies_simple): Reflect API changes.
15237 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15238 (create_cus_hash_table): Change API to take parent compile unit.
15239 Reflect API changes.
15240 (open_and_init_dwo_file): Reflect API changes.
15241 (dwarf2_get_pc_bounds): Update comments.
15242 (dwarf2_record_block_ranges): Likewise.
15243 (read_full_die_1): Change implementation to reprocess attributes that
15244 need str_offsets_base and addr_base.
15245 (partial_die_info::read): Likewise.
15246 (read_attribute_reprocess): New function definition.
15247 (read_attribute_value): Change API to take an additional out parameter,
15248 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15249 when a non-dwo compile unit has index based attributes.
15250 (read_attribute): Reflect API changes.
15251 (read_addr_index_1): Reflect API changes. Update comments.
15252 (dwarf2_read_addr_index_data): Reflect API changes.
15253 (dwarf2_read_addr_index): Likewise.
15254 (read_str_index): Change API and implementation. This becomes a helper
15255 to be used by the new string index related methods. Update error
15256 message and comments.
15257 (read_dwo_str_index): New function definition.
15258 (read_stub_str_index): Likewise.
15259 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15260 * symfile.h (dwarf2_debug_sections): Likewise.
15261 * xcoffread.c (dwarf2_debug_sections): Likewise.
15262
15263 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15264
15265 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15266 core_reg_sect type to gdb_byte *.
15267 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15268 * cris-tdep.c (fetch_core_registers): Likewise.
15269 * corelow.c (core_target::get_core_register_section): Change
15270 type of `contents` to gdb::byte_vector.
15271
15272 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15273
15274 * tui/tui-wingeneral.c (box_win): Position the title in the center
15275 of the border.
15276
15277 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15278
15279 * corelow.c (core_target::get_core_register_section): Use
15280 std::vector instead of alloca.
15281
15282 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15283
15284 * warning.m4: Add -Wmissing-declarations to build_warnings.
15285 * configure: Re-generate.
15286
15287 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15288
15289 * python/python.c (init__gdb_module): Add declaration.
15290
15291 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15292
15293 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15294 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15295 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15296 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15297 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15298 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15299 * ada-exp.y (_initialize_ada_exp): Add declaration.
15300 * ada-lang.c (_initialize_ada_language): Add declaration.
15301 * ada-tasks.c (_initialize_tasks): Add declaration.
15302 * agent.c (_initialize_agent): Add declaration.
15303 * aix-thread.c (_initialize_aix_thread): Add declaration.
15304 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15305 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15306 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15307 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15308 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15309 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15310 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15311 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15312 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15313 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15314 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15315 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15316 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15317 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15318 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15319 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15320 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15321 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15322 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15323 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15324 * annotate.c (_initialize_annotate): Add declaration.
15325 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15326 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15327 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15328 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15329 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15330 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15331 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15332 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15333 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15334 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15335 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15336 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15337 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15338 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15339 * auto-load.c (_initialize_auto_load): Add declaration.
15340 * auxv.c (_initialize_auxv): Add declaration.
15341 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15342 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15343 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15344 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15345 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15346 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15347 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15348 * breakpoint.c (_initialize_breakpoint): Add declaration.
15349 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15350 * btrace.c (_initialize_btrace): Add declaration.
15351 * charset.c (_initialize_charset): Add declaration.
15352 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15353 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15354 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15355 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15356 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15357 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15358 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15359 * coffread.c (_initialize_coffread): Add declaration.
15360 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15361 * compile/compile.c (_initialize_compile): Add declaration.
15362 * complaints.c (_initialize_complaints): Add declaration.
15363 * completer.c (_initialize_completer): Add declaration.
15364 * copying.c (_initialize_copying): Add declaration.
15365 * corefile.c (_initialize_core): Add declaration.
15366 * corelow.c (_initialize_corelow): Add declaration.
15367 * cp-abi.c (_initialize_cp_abi): Add declaration.
15368 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15369 * cp-support.c (_initialize_cp_support): Add declaration.
15370 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15371 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15372 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15373 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15374 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15375 * ctfread.c (_initialize_ctfread): Add declaration.
15376 * d-lang.c (_initialize_d_language): Add declaration.
15377 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15378 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15379 * dbxread.c (_initialize_dbxread): Add declaration.
15380 * dcache.c (_initialize_dcache): Add declaration.
15381 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15382 * disasm.c (_initialize_disasm): Add declaration.
15383 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15384 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15385 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15386 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15387 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15388 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15389 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15390 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15391 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15392 * elfread.c (_initialize_elfread): Add declaration.
15393 * exec.c (_initialize_exec): Add declaration.
15394 * extension.c (_initialize_extension): Add declaration.
15395 * f-lang.c (_initialize_f_language): Add declaration.
15396 * f-valprint.c (_initialize_f_valprint): Add declaration.
15397 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15398 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15399 * filesystem.c (_initialize_filesystem): Add declaration.
15400 * findcmd.c (_initialize_mem_search): Add declaration.
15401 * findvar.c (_initialize_findvar): Add declaration.
15402 * fork-child.c (_initialize_fork_child): Add declaration.
15403 * frame-base.c (_initialize_frame_base): Add declaration.
15404 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15405 * frame.c (_initialize_frame): Add declaration.
15406 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15407 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15408 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15409 * gcore.c (_initialize_gcore): Add declaration.
15410 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15411 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15412 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15413 * gdbarch.c (_initialize_gdbarch): Add declaration.
15414 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15415 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15416 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15417 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15418 * go-lang.c (_initialize_go_language): Add declaration.
15419 * go32-nat.c (_initialize_go32_nat): Add declaration.
15420 * guile/guile.c (_initialize_guile): Add declaration.
15421 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15422 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15423 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15424 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15425 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15426 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15427 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15428 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15429 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15430 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15431 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15432 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15433 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15434 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15435 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15436 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15437 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15438 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15439 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15440 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15441 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15442 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15443 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15444 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15445 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15446 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15447 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15448 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15449 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15450 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15451 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15452 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15453 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15454 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15455 * infcall.c (_initialize_infcall): Add declaration.
15456 * infcmd.c (_initialize_infcmd): Add declaration.
15457 * inflow.c (_initialize_inflow): Add declaration.
15458 * infrun.c (_initialize_infrun): Add declaration.
15459 * interps.c (_initialize_interpreter): Add declaration.
15460 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15461 * jit.c (_initialize_jit): Add declaration.
15462 * language.c (_initialize_language): Add declaration.
15463 * linux-fork.c (_initialize_linux_fork): Add declaration.
15464 * linux-nat.c (_initialize_linux_nat): Add declaration.
15465 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15466 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15467 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15468 * m2-lang.c (_initialize_m2_language): Add declaration.
15469 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15470 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15471 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15472 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15473 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15474 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15475 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15476 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15477 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15478 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15479 * machoread.c (_initialize_machoread): Add declaration.
15480 * macrocmd.c (_initialize_macrocmd): Add declaration.
15481 * macroscope.c (_initialize_macroscope): Add declaration.
15482 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15483 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15484 * maint.c (_initialize_maint_cmds): Add declaration.
15485 * mdebugread.c (_initialize_mdebugread): Add declaration.
15486 * memattr.c (_initialize_mem): Add declaration.
15487 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15488 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15489 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15490 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15491 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15492 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15493 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15494 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15495 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15496 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15497 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15498 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15499 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15500 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15501 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15502 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15503 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15504 * mipsread.c (_initialize_mipsread): Add declaration.
15505 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15506 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15507 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15508 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15509 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15510 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15511 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15512 * nto-procfs.c (_initialize_procfs): Add declaration.
15513 * objc-lang.c (_initialize_objc_language): Add declaration.
15514 * observable.c (_initialize_observer): Add declaration.
15515 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15516 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15517 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15518 * osabi.c (_initialize_gdb_osabi): Add declaration.
15519 * osdata.c (_initialize_osdata): Add declaration.
15520 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15521 * parse.c (_initialize_parse): Add declaration.
15522 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15523 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15524 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15525 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15526 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15527 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15528 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15529 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15530 * printcmd.c (_initialize_printcmd): Add declaration.
15531 * probe.c (_initialize_probe): Add declaration.
15532 * proc-api.c (_initialize_proc_api): Add declaration.
15533 * proc-events.c (_initialize_proc_events): Add declaration.
15534 * proc-service.c (_initialize_proc_service): Add declaration.
15535 * procfs.c (_initialize_procfs): Add declaration.
15536 * producer.c (_initialize_producer): Add declaration.
15537 * psymtab.c (_initialize_psymtab): Add declaration.
15538 * python/python.c (_initialize_python): Add declaration.
15539 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15540 * record-btrace.c (_initialize_record_btrace): Add declaration.
15541 * record-full.c (_initialize_record_full): Add declaration.
15542 * record.c (_initialize_record): Add declaration.
15543 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15544 * regcache.c (_initialize_regcache): Add declaration.
15545 * reggroups.c (_initialize_reggroup): Add declaration.
15546 * remote-notif.c (_initialize_notif): Add declaration.
15547 * remote-sim.c (_initialize_remote_sim): Add declaration.
15548 * remote.c (_initialize_remote): Add declaration.
15549 * reverse.c (_initialize_reverse): Add declaration.
15550 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15551 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15552 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15553 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15554 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15555 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15556 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15557 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15558 Add declaration.
15559 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15560 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15561 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15562 * rust-exp.y (_initialize_rust_exp): Add declaration.
15563 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15564 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15565 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15566 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15567 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15568 * score-tdep.c (_initialize_score_tdep): Add declaration.
15569 * ser-go32.c (_initialize_ser_dos): Add declaration.
15570 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15571 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15572 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15573 * ser-uds.c (_initialize_ser_socket): Add declaration.
15574 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15575 * serial.c (_initialize_serial): Add declaration.
15576 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15577 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15578 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15579 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15580 * skip.c (_initialize_step_skip): Add declaration.
15581 * sol-thread.c (_initialize_sol_thread): Add declaration.
15582 * solib-aix.c (_initialize_solib_aix): Add declaration.
15583 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15584 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15585 * solib-frv.c (_initialize_frv_solib): Add declaration.
15586 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15587 * solib-target.c (_initialize_solib_target): Add declaration.
15588 * solib.c (_initialize_solib): Add declaration.
15589 * source-cache.c (_initialize_source_cache): Add declaration.
15590 * source.c (_initialize_source): Add declaration.
15591 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15592 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15593 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15594 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15595 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15596 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15597 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15598 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15599 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15600 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15601 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15602 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15603 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15604 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15605 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15606 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15607 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15608 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15609 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15610 * stabsread.c (_initialize_stabsread): Add declaration.
15611 * stack.c (_initialize_stack): Add declaration.
15612 * stap-probe.c (_initialize_stap_probe): Add declaration.
15613 * std-regs.c (_initialize_frame_reg): Add declaration.
15614 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15615 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15616 * symfile.c (_initialize_symfile): Add declaration.
15617 * symmisc.c (_initialize_symmisc): Add declaration.
15618 * symtab.c (_initialize_symtab): Add declaration.
15619 * target.c (_initialize_target): Add declaration.
15620 * target-connection.c (_initialize_target_connection): Add
15621 declaration.
15622 * target-dcache.c (_initialize_target_dcache): Add declaration.
15623 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15624 * thread.c (_initialize_thread): Add declaration.
15625 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15626 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15627 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15628 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15629 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15630 * tracectf.c (_initialize_ctf): Add declaration.
15631 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15632 * tracefile.c (_initialize_tracefile): Add declaration.
15633 * tracepoint.c (_initialize_tracepoint): Add declaration.
15634 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15635 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15636 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15637 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15638 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15639 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15640 * tui/tui.c (_initialize_tui): Add declaration.
15641 * typeprint.c (_initialize_typeprint): Add declaration.
15642 * ui-style.c (_initialize_ui_style): Add declaration.
15643 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15644 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15645 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15646 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15647 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15648 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15649 * unittests/filtered_iterator-selftests.c
15650 (_initialize_filtered_iterator_selftests): Add declaration.
15651 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15652 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15653 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15654 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15655 * unittests/main-thread-selftests.c
15656 (_initialize_main_thread_selftests): Add declaration.
15657 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15658 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15659 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15660 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15661 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15662 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15663 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15664 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15665 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15666 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15667 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15668 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15669 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15670 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15671 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15672 declaration.
15673 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15674 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15675 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15676 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15677 * user-regs.c (_initialize_user_regs): Add declaration.
15678 * utils.c (_initialize_utils): Add declaration.
15679 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15680 * valops.c (_initialize_valops): Add declaration.
15681 * valprint.c (_initialize_valprint): Add declaration.
15682 * value.c (_initialize_values): Add declaration.
15683 * varobj.c (_initialize_varobj): Add declaration.
15684 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15685 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15686 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15687 * windows-nat.c (_initialize_windows_nat): Add declaration.
15688 (_initialize_check_for_gdb_ini): Add declaration.
15689 (_initialize_loadable): Add declaration.
15690 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15691 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15692 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15693 * xcoffread.c (_initialize_xcoffread): Add declaration.
15694 * xml-support.c (_initialize_xml_support): Add declaration.
15695 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15696 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15697 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15698 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15699
15700 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15701
15702 * regformats/regdat.sh: Generate declaration for init function.
15703
15704 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15705
15706 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15707 up.
15708 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15709 close_one_inferior>: New methods.
15710 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15711 pass down target to find_inferior_pid.
15712 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15713 Pass down target to find_inferior_ptid.
15714 (gdbsim_target::create_inferior): Pass down target to
15715 add_thread_silent.
15716 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15717 target down to find_inferior_ptid and switch_to_thread.
15718 (gdbsim_target::close): Update to call close_one_inferior.
15719 (struct resume_data): Remove.
15720 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15721 directly, rather than through a void pointer.
15722 (gdbsim_target::resume): Update to call resume_one_inferior.
15723
15724 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15725
15726 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15727
15728 2020-01-12 Pedro Alves <palves@redhat.com>
15729
15730 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15731 directly for the current inferior instead of
15732 discard_all_inferiors.
15733 (discard_all_inferiors): Delete.
15734
15735 2020-01-11 Tom Tromey <tom@tromey.com>
15736
15737 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15738 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15739 deprecated_safe_get_selected_frame.
15740
15741 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15742
15743 * inferior.c (print_inferior): Switch inferior before printing it.
15744
15745 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15746 Pedro Alves <palves@redhat.com>
15747
15748 * progspace-and-thread.c (switch_to_program_space_and_thread):
15749 Assert there's an inferior for PSPACE. Use
15750 switch_to_inferior_no_thread to switch the inferior too.
15751 * progspace.c (program_space::~program_space): Call
15752 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15753 (program_space::free_all_objfiles): Don't call clear_symtab_users
15754 here.
15755 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15756
15757 2020-01-10 Pedro Alves <palves@redhat.com>
15758
15759 * NEWS: Mention multi-target debugging, "info connections", and
15760 "add-inferior -no-connection".
15761
15762 2020-01-10 Pedro Alves <palves@redhat.com>
15763
15764 * infrun.c: Include "target-connection.h".
15765 (check_multi_target_resumption): New.
15766 (proceed): Call it.
15767 * target-connection.c (make_target_connection_string): Make
15768 extern.
15769 * target-connection.h (make_target_connection_string): Declare.
15770
15771 2020-01-10 Pedro Alves <palves@redhat.com>
15772
15773 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15774 * inferior.c (uiout_field_connection): New function.
15775 (print_inferior): Add new "connection-id" column.
15776 (add_inferior_command): Show connection number/string of added
15777 inferior.
15778 * process-stratum-target.h
15779 (process_stratum_target::connection_string): New virtual method.
15780 (process_stratum_target::connection_number): New field.
15781 * remote.c (remote_target::connection_string): New override.
15782 * target-connection.c: New file.
15783 * target-connection.h: New file.
15784 * target.c (decref_target): Remove process_stratum targets from
15785 the connection list.
15786 (target_stack::push): Add process_stratum targets to the
15787 connection list.
15788
15789 2020-01-10 Pedro Alves <palves@redhat.com>
15790
15791 Revert:
15792 2016-04-12 Pedro Alves <palves@redhat.com>
15793 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15794 Remove references to name.
15795 * serial.h (struct serial) <name>: Delete.
15796
15797 2020-01-10 Pedro Alves <palves@redhat.com>
15798
15799 * gdbarch-selftests.c (register_to_value_test): Remove "target
15800 already pushed" check.
15801
15802 2020-01-10 Pedro Alves <palves@redhat.com>
15803 John Baldwin <jhb@FreeBSD.org>
15804
15805 * aarch64-linux-nat.c
15806 (aarch64_linux_nat_target::thread_architecture): Adjust.
15807 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15808 (task_command_1): Likewise.
15809 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15810 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15811 (aix_thread_target::store_registers)
15812 (aix_thread_target::thread_alive): Adjust.
15813 * amd64-fbsd-tdep.c: Include "inferior.h".
15814 (amd64fbsd_get_thread_local_address): Pass down target.
15815 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15816 thread's gdbarch instead of target_gdbarch.
15817 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15818 get_last_target_status.
15819 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15820 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15821 inferiors.
15822 (update_inserted_breakpoint_locations): Skip if inferiors with no
15823 execution.
15824 (update_global_location_list): When handling moribund locations,
15825 find representative inferior for location's pspace, and use thread
15826 count of its process_stratum target.
15827 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15828 * bsd-uthread.c (bsd_uthread_target::wait): Use
15829 as_process_stratum_target and adjust thread_change_ptid and
15830 add_thread calls.
15831 (bsd_uthread_target::update_thread_list): Use
15832 as_process_stratum_target and adjust find_thread_ptid,
15833 thread_change_ptid and add_thread calls.
15834 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15835 find_thread_ptid call.
15836 * corelow.c (add_to_thread_list): Adjust add_thread call.
15837 (core_target_open): Adjust add_thread_silent and thread_count
15838 calls.
15839 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15840 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15841 * event-top.c (async_disconnect): Pop targets from all inferiors.
15842 * exec.c (add_target_sections): Push exec target on all inferiors
15843 sharing the program space.
15844 (remove_target_sections): Remove the exec target from all
15845 inferiors sharing the program space.
15846 (exec_on_vfork): New.
15847 * exec.h (exec_on_vfork): Declare.
15848 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15849 Pass it down.
15850 (fbsd_nat_target::update_thread_list): Adjust.
15851 (fbsd_nat_target::resume): Adjust.
15852 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15853 down.
15854 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15855 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15856 get_thread_arch_regcache call.
15857 * fork-child.c (gdb_startup_inferior): Pass target down to
15858 startup_inferior and set_executing.
15859 * gdbthread.h (struct process_stratum_target): Forward declare.
15860 (add_thread, add_thread_silent, add_thread_with_info)
15861 (in_thread_list): Add process_stratum_target parameter.
15862 (find_thread_ptid(inferior*, ptid_t)): New overload.
15863 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15864 parameter.
15865 (all_threads()): Delete overload.
15866 (all_threads, all_non_exited_threads): Add process_stratum_target
15867 parameter.
15868 (all_threads_safe): Use brace initialization.
15869 (thread_count): Add process_stratum_target parameter.
15870 (set_resumed, set_running, set_stop_requested, set_executing)
15871 (threads_are_executing, finish_thread_state): Add
15872 process_stratum_target parameter.
15873 (switch_to_thread): Use is_current_thread.
15874 * i386-fbsd-tdep.c: Include "inferior.h".
15875 (i386fbsd_get_thread_local_address): Pass down target.
15876 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15877 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15878 have_inferiors check.
15879 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15880 (inf_ptrace_target::attach): Adjust.
15881 * infcall.c (run_inferior_call): Adjust.
15882 * infcmd.c (run_command_1): Pass target to
15883 scoped_finish_thread_state.
15884 (proceed_thread_callback): Skip inferiors with no execution.
15885 (continue_command): Rename 'all_threads' local to avoid hiding
15886 'all_threads' function. Adjust get_last_target_status call.
15887 (prepare_one_step): Adjust set_running call.
15888 (signal_command): Use user_visible_resume_target. Compare thread
15889 pointers instead of inferior_ptid.
15890 (info_program_command): Adjust to pass down target.
15891 (attach_command): Mark target's 'thread_executing' flag.
15892 (stop_current_target_threads_ns): New, factored out from ...
15893 (interrupt_target_1): ... this. Switch inferior before making
15894 target calls.
15895 * inferior-iter.h
15896 (struct all_inferiors_iterator, struct all_inferiors_range)
15897 (struct all_inferiors_safe_range)
15898 (struct all_non_exited_inferiors_range): Filter on
15899 process_stratum_target too. Remove explicit.
15900 * inferior.c (inferior::inferior): Push dummy target on target
15901 stack.
15902 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15903 Add process_stratum_target parameter, and pass it down.
15904 (have_live_inferiors): Adjust.
15905 (switch_to_inferior_and_push_target): New.
15906 (add_inferior_command, clone_inferior_command): Handle
15907 "-no-connection" parameter. Use
15908 switch_to_inferior_and_push_target.
15909 (_initialize_inferior): Mention "-no-connection" option in
15910 the help of "add-inferior" and "clone-inferior" commands.
15911 * inferior.h: Include "process-stratum-target.h".
15912 (interrupt_target_1): Use bool.
15913 (struct inferior) <push_target, unpush_target, target_is_pushed,
15914 find_target_beneath, top_target, process_target, target_at,
15915 m_stack>: New.
15916 (discard_all_inferiors): Delete.
15917 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15918 (all_inferiors, all_non_exited_inferiors): Add
15919 process_stratum_target parameter.
15920 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15921 (target_last_proc_target): New global.
15922 (follow_fork_inferior): Push target on new inferior. Pass target
15923 to add_thread_silent. Call exec_on_vfork. Handle target's
15924 reference count.
15925 (follow_fork): Adjust get_last_target_status call. Also consider
15926 target.
15927 (follow_exec): Push target on new inferior.
15928 (struct execution_control_state) <target>: New field.
15929 (user_visible_resume_target): New.
15930 (do_target_resume): Call target_async.
15931 (resume_1): Set target's threads_executing flag. Consider resume
15932 target.
15933 (commit_resume_all_targets): New.
15934 (proceed): Also consider resume target. Skip threads of inferiors
15935 with no execution. Commit resumtion in all targets.
15936 (start_remote): Pass current inferior to wait_for_inferior.
15937 (infrun_thread_stop_requested): Consider target as well. Pass
15938 thread_info pointer to clear_inline_frame_state instead of ptid.
15939 (infrun_thread_thread_exit): Consider target as well.
15940 (random_pending_event_thread): New inferior parameter. Use it.
15941 (do_target_wait): Rename to ...
15942 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15943 down.
15944 (threads_are_resumed_pending_p, do_target_wait): New.
15945 (prepare_for_detach): Adjust calls.
15946 (wait_for_inferior): New inferior parameter. Handle it. Use
15947 do_target_wait_1 instead of do_target_wait.
15948 (fetch_inferior_event): Adjust. Switch to representative
15949 inferior. Pass target down.
15950 (set_last_target_status): Add process_stratum_target parameter.
15951 Save target in global.
15952 (get_last_target_status): Add process_stratum_target parameter and
15953 handle it.
15954 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15955 (context_switch): Check inferior_ptid == null_ptid before calling
15956 inferior_thread().
15957 (get_inferior_stop_soon): Pass down target.
15958 (wait_one): Rename to ...
15959 (poll_one_curr_target): ... this.
15960 (struct wait_one_event): New.
15961 (wait_one): New.
15962 (stop_all_threads): Adjust.
15963 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15964 event's target.
15965 (switch_back_to_stepped_thread): Also consider target.
15966 (print_stop_event): Update.
15967 (normal_stop): Update. Also consider the resume target.
15968 * infrun.h (wait_for_inferior): Remove declaration.
15969 (user_visible_resume_target): New declaration.
15970 (get_last_target_status, set_last_target_status): New
15971 process_stratum_target parameter.
15972 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15973 process_stratum_target parameter, and use it.
15974 (clear_inline_frame_state (thread_info*)): New.
15975 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15976 process_stratum_target parameter.
15977 (clear_inline_frame_state (thread_info*)): Declare.
15978 * linux-fork.c (delete_checkpoint_command): Pass target down to
15979 find_thread_ptid.
15980 (checkpoint_command): Adjust.
15981 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15982 instead of just tweaking inferior_ptid.
15983 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15984 (exit_lwp): Pass target down to find_thread_ptid.
15985 (attach_proc_task_lwp_callback): Pass target down to
15986 add_thread/set_running/set_executing.
15987 (linux_nat_target::attach): Pass target down to
15988 thread_change_ptid.
15989 (get_detach_signal): Pass target down to find_thread_ptid.
15990 Consider last target status's target.
15991 (linux_resume_one_lwp_throw, resume_lwp)
15992 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15993 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15994 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15995 (linux_nat_target::async_wait_fd): New.
15996 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15997 target down.
15998 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15999 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16000 * linux-thread-db.c (struct thread_db_info::process_target): New
16001 field.
16002 (add_thread_db_info): Save target.
16003 (get_thread_db_info): New process_stratum_target parameter. Also
16004 match target.
16005 (delete_thread_db_info): New process_stratum_target parameter.
16006 Also match target.
16007 (thread_from_lwp): Adjust to pass down target.
16008 (thread_db_notice_clone): Pass down target.
16009 (check_thread_db_callback): Pass down target.
16010 (try_thread_db_load_1): Always push the thread_db target.
16011 (try_thread_db_load, record_thread): Pass target down.
16012 (thread_db_target::detach): Pass target down. Always unpush the
16013 thread_db target.
16014 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16015 target down. Always unpush the thread_db target.
16016 (find_new_threads_callback, thread_db_find_new_threads_2)
16017 (thread_db_target::update_thread_list): Pass target down.
16018 (thread_db_target::pid_to_str): Pass current inferior down.
16019 (thread_db_target::get_thread_local_address): Pass target down.
16020 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16021 target down.
16022 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16023 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16024 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16025 (procfs_init_inferior): Rename to ...
16026 (procfs_target::procfs_init_inferior): ... this and adjust.
16027 (procfs_target::create_inferior, procfs_notice_thread)
16028 (procfs_do_thread_registers): Adjust.
16029 * ppc-fbsd-tdep.c: Include "inferior.h".
16030 (ppcfbsd_get_thread_local_address): Pass down target.
16031 * proc-service.c (ps_xfer_memory): Switch current inferior and
16032 program space as well.
16033 (get_ps_regcache): Pass target down.
16034 * process-stratum-target.c
16035 (process_stratum_target::thread_address_space)
16036 (process_stratum_target::thread_architecture): Pass target down.
16037 * process-stratum-target.h
16038 (process_stratum_target::threads_executing): New field.
16039 (as_process_stratum_target): New.
16040 * ravenscar-thread.c
16041 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16042 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16043 down.
16044 * record-btrace.c (record_btrace_target::info_record): Adjust.
16045 (record_btrace_target::record_method)
16046 (record_btrace_target::record_is_replaying)
16047 (record_btrace_target::fetch_registers)
16048 (get_thread_current_frame_id, record_btrace_target::resume)
16049 (record_btrace_target::wait, record_btrace_target::stop): Pass
16050 target down.
16051 * record-full.c (record_full_wait_1): Switch to event thread.
16052 Pass target down.
16053 * regcache.c (regcache::regcache)
16054 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16055 process_stratum_target parameter and handle it.
16056 (current_thread_target): New global.
16057 (get_thread_regcache): Add process_stratum_target parameter and
16058 handle it. Switch inferior before calling target method.
16059 (get_thread_regcache): Pass target down.
16060 (get_thread_regcache_for_ptid): Pass target down.
16061 (registers_changed_ptid): Add process_stratum_target parameter and
16062 handle it.
16063 (registers_changed_thread, registers_changed): Pass target down.
16064 (test_get_thread_arch_aspace_regcache): New.
16065 (current_regcache_test): Define a couple local test_target_ops
16066 instances and use them for testing.
16067 (readwrite_regcache): Pass process_stratum_target parameter.
16068 (cooked_read_test, cooked_write_test): Pass mock_target down.
16069 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16070 (get_thread_arch_aspace_regcache): Add process_stratum_target
16071 parameter.
16072 (regcache::target): New method.
16073 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16074 (regcache::registers_changed_ptid): Add process_stratum_target
16075 parameter.
16076 (regcache::m_target): New field.
16077 (registers_changed_ptid): Add process_stratum_target parameter.
16078 * remote.c (remote_state::supports_vCont_probed): New field.
16079 (remote_target::async_wait_fd): New method.
16080 (remote_unpush_and_throw): Add remote_target parameter.
16081 (get_current_remote_target): Adjust.
16082 (remote_target::remote_add_inferior): Push target.
16083 (remote_target::remote_add_thread)
16084 (remote_target::remote_notice_new_inferior)
16085 (get_remote_thread_info): Pass target down.
16086 (remote_target::update_thread_list): Skip threads of inferiors
16087 bound to other targets. (remote_target::close): Don't discard
16088 inferiors. (remote_target::add_current_inferior_and_thread)
16089 (remote_target::process_initial_stop_replies)
16090 (remote_target::start_remote)
16091 (remote_target::remote_serial_quit_handler): Pass down target.
16092 (remote_target::remote_unpush_target): New remote_target
16093 parameter. Unpush the target from all inferiors.
16094 (remote_target::remote_unpush_and_throw): New remote_target
16095 parameter. Pass it down.
16096 (remote_target::open_1): Check whether the current inferior has
16097 execution instead of checking whether any inferior is live. Pass
16098 target down.
16099 (remote_target::remote_detach_1): Pass down target. Use
16100 remote_unpush_target.
16101 (extended_remote_target::attach): Pass down target.
16102 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16103 (remote_target::append_resumption): Pass down target.
16104 (remote_target::append_pending_thread_resumptions)
16105 (remote_target::remote_resume_with_hc, remote_target::resume)
16106 (remote_target::commit_resume): Pass down target.
16107 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16108 (remote_target::interrupt_query)
16109 (remote_target::remove_new_fork_children)
16110 (remote_target::check_pending_events_prevent_wildcard_vcont)
16111 (remote_target::remote_parse_stop_reply)
16112 (remote_target::process_stop_reply): Pass down target.
16113 (first_remote_resumed_thread): New remote_target parameter. Pass
16114 it down.
16115 (remote_target::wait_as): Pass down target.
16116 (unpush_and_perror): New remote_target parameter. Pass it down.
16117 (remote_target::readchar, remote_target::remote_serial_write)
16118 (remote_target::getpkt_or_notif_sane_1)
16119 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16120 down target.
16121 (remote_target::mourn_inferior): Pass down target. Use
16122 remote_unpush_target.
16123 (remote_target::core_of_thread)
16124 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16125 (remote_target::pid_to_exec_file)
16126 (remote_target::thread_handle_to_thread_info): Pass down target.
16127 (remote_target::async_wait_fd): New.
16128 * riscv-fbsd-tdep.c: Include "inferior.h".
16129 (riscv_fbsd_get_thread_local_address): Pass down target.
16130 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16131 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16132 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16133 Adjust.
16134 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16135 * solib-svr4.c (enable_break): Pass down target.
16136 * spu-multiarch.c (parse_spufs_run): Pass down target.
16137 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16138 * target-delegates.c: Regenerate.
16139 * target.c (g_target_stack): Delete.
16140 (current_top_target): Return the current inferior's top target.
16141 (target_has_execution_1): Refer to the passed-in inferior's top
16142 target.
16143 (target_supports_terminal_ours): Check whether the initial
16144 inferior was already created.
16145 (decref_target): New.
16146 (target_stack::push): Incref/decref the target.
16147 (push_target, push_target, unpush_target): Adjust.
16148 (target_stack::unpush): Defref target.
16149 (target_is_pushed): Return bool. Adjust to refer to the current
16150 inferior's target stack.
16151 (dispose_inferior): Delete, and inline parts ...
16152 (target_preopen): ... here. Only dispose of the current inferior.
16153 (target_detach): Hold strong target reference while detaching.
16154 Pass target down.
16155 (target_thread_name): Add assertion.
16156 (target_resume): Pass down target.
16157 (target_ops::beneath, find_target_at): Adjust to refer to the
16158 current inferior's target stack.
16159 (get_dummy_target): New.
16160 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16161 has a thread running.
16162 (initialize_targets): Rename to ...
16163 (_initialize_target): ... this.
16164 * target.h: Include "gdbsupport/refcounted-object.h".
16165 (struct target_ops): Inherit refcounted_object.
16166 (target_ops::shortname, target_ops::longname): Make const.
16167 (target_ops::async_wait_fd): New method.
16168 (decref_target): Declare.
16169 (struct target_ops_ref_policy): New.
16170 (target_ops_ref): New typedef.
16171 (get_dummy_target): Declare function.
16172 (target_is_pushed): Return bool.
16173 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16174 (all_matching_threads_iterator::all_matching_threads_iterator):
16175 Handle filter target.
16176 * thread-iter.h (struct all_matching_threads_iterator, struct
16177 all_matching_threads_range, class all_non_exited_threads_range):
16178 Filter by target too. Remove explicit.
16179 * thread.c (threads_executing): Delete.
16180 (inferior_thread): Pass down current inferior.
16181 (clear_thread_inferior_resources): Pass down thread pointer
16182 instead of ptid_t.
16183 (add_thread_silent, add_thread_with_info, add_thread): Add
16184 process_stratum_target parameter. Use it for thread and inferior
16185 searches.
16186 (is_current_thread): New.
16187 (thread_info::deletable): Use it.
16188 (find_thread_ptid, thread_count, in_thread_list)
16189 (thread_change_ptid, set_resumed, set_running): New
16190 process_stratum_target parameter. Pass it down.
16191 (set_executing): New process_stratum_target parameter. Pass it
16192 down. Adjust reference to 'threads_executing'.
16193 (threads_are_executing): New process_stratum_target parameter.
16194 Adjust reference to 'threads_executing'.
16195 (set_stop_requested, finish_thread_state): New
16196 process_stratum_target parameter. Pass it down.
16197 (switch_to_thread): Also match inferior.
16198 (switch_to_thread): New process_stratum_target parameter. Pass it
16199 down.
16200 (update_threads_executing): Reimplement.
16201 * top.c (quit_force): Pop targets from all inferior.
16202 (gdb_init): Don't call initialize_targets.
16203 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16204 Declare.
16205 (windows_add_thread, windows_delete_thread): Adjust.
16206 (get_windows_debug_event): Rename to ...
16207 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16208 * tracefile-tfile.c (tfile_target_open): Pass down target.
16209 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16210 Forward declare.
16211 (switch_to_thread): Add process_stratum_target parameter.
16212 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16213 parameter. Use it.
16214 (mi_on_resume): Pass target down.
16215 * nat/fork-inferior.c (startup_inferior): Add
16216 process_stratum_target parameter. Pass it down.
16217 * nat/fork-inferior.h (startup_inferior): Add
16218 process_stratum_target parameter.
16219 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16220
16221 2020-01-10 Pedro Alves <palves@redhat.com>
16222
16223 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16224 directly. Instead find the first thread in the thread list and
16225 use switch_to_thread.
16226
16227 2020-01-10 Pedro Alves <palves@redhat.com>
16228
16229 * remote.c (remote_target::remote_add_inferior): Don't bind a
16230 process to the current inferior if the current inferior is already
16231 bound to a process.
16232
16233 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16234 Pedro Alves <palves@redhat.com>
16235
16236 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16237 If no process is specified, return null_ptid instead of
16238 inferior_ptid.
16239 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16240 TARGET_WAITKIND_SIGNALLED with no pid.
16241
16242 2020-01-10 Pedro Alves <palves@redhat.com>
16243
16244 * remote.c (first_remote_resumed_thread): New.
16245 (remote_target::wait_as): Use it as default event_ptid instead of
16246 inferior_ptid.
16247
16248 2020-01-10 Pedro Alves <palves@redhat.com>
16249
16250 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16251
16252 2020-01-10 Pedro Alves <palves@redhat.com>
16253
16254 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16255 not -1.
16256
16257 2020-01-10 Pedro Alves <palves@redhat.com>
16258
16259 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16260 ptid to get_last_target_status.
16261 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16262 ptid to get_last_target_status.
16263 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16264 get_last_target_status.
16265 (info_program_command): Don't pass a target_waitstatus to
16266 get_last_target_status.
16267 * infrun.c (init_wait_for_inferior): Use
16268 nullify_last_target_wait_ptid.
16269 (get_last_target_status): Handle nullptr arguments.
16270 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16271 (print_stop_event): Don't pass a ptid to get_last_target_status.
16272 (normal_stop): Don't pass a ptid to get_last_target_status.
16273 * infrun.h (get_last_target_status, set_last_target_status): Move
16274 comments here and update.
16275 (nullify_last_target_wait_ptid): Declare.
16276 * linux-fork.c (fork_load_infrun_state): Remove local extern
16277 declaration of nullify_last_target_wait_ptid.
16278 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16279 to get_last_target_status.
16280
16281 2020-01-10 Pedro Alves <palves@redhat.com>
16282
16283 * gdbthread.h (scoped_restore_current_thread)
16284 <dont_restore, restore, m_dont_restore>: Declare.
16285 * thread.c (thread_alive): Add assertion. Return bool.
16286 (switch_to_thread_if_alive): New.
16287 (prune_threads): Switch inferior/thread.
16288 (print_thread_info_1): Switch thread before calling target methods.
16289 (scoped_restore_current_thread::restore): New, factored out from
16290 ...
16291 (scoped_restore_current_thread::~scoped_restore_current_thread):
16292 ... this.
16293 (scoped_restore_current_thread::scoped_restore_current_thread):
16294 Add assertion.
16295 (thread_apply_all_command, thread_select): Use
16296 switch_to_thread_if_alive.
16297 * infrun.c (proceed, restart_threads, handle_signal_stop)
16298 (switch_back_to_stepped_thread): Switch current thread before
16299 calling target methods.
16300
16301 2020-01-10 Pedro Alves <palves@redhat.com>
16302
16303 * inferior.c (switch_to_inferior_no_thread): New function,
16304 factored out from ...
16305 (inferior_command): ... here.
16306 * inferior.h (switch_to_inferior_no_thread): Declare.
16307 * mi/mi-main.c (run_one_inferior): Use
16308 switch_to_inferior_no_thread.
16309
16310 2020-01-10 Pedro Alves <palves@redhat.com>
16311
16312 * infcmd.c (kill_command): Remove dead code.
16313
16314 2020-01-10 Pedro Alves <palves@redhat.com>
16315
16316 * remote.c (remote_target::mourn_inferior): No longer check
16317 whether the target is running.
16318
16319 2020-01-10 Pedro Alves <palves@redhat.com>
16320
16321 * corelow.c (core_target::has_execution): Change parameter type to
16322 inferior pointer.
16323 * inferior.c (number_of_live_inferiors): Use
16324 inferior::has_execution instead of target_has_execution_1.
16325 * inferior.h (inferior::has_execution): New.
16326 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16327 inferior::has_execution instead of target_has_execution_1.
16328 * process-stratum-target.c
16329 (process_stratum_target::has_execution): Change parameter type to
16330 inferior pointer. Check the inferior's PID instead of
16331 inferior_ptid.
16332 * process-stratum-target.h
16333 (process_stratum_target::has_execution): Change parameter type to
16334 inferior pointer.
16335 * record-full.c (record_full_core_target::has_execution): Change
16336 parameter type to inferior pointer.
16337 * target.c (target_has_execution_1): Change parameter type to
16338 inferior pointer.
16339 (target_has_execution_current): Adjust.
16340 * target.h (target_ops::has_execution): Change parameter type to
16341 inferior pointer.
16342 (target_has_execution_1): Change parameter type to inferior
16343 pointer. Change return type to bool.
16344 * tracefile.h (tracefile_target::has_execution): Change parameter
16345 type to inferior pointer.
16346
16347 2020-01-10 Pedro Alves <palves@redhat.com>
16348
16349 * exceptions.c (print_flush): Remove current_top_target() check.
16350
16351 2020-01-10 Pedro Alves <palves@redhat.com>
16352
16353 * remote.c (show_remote_exec_file): Show the current inferior's
16354 exec-file instead of the command variable's value.
16355
16356 2020-01-10 Pedro Alves <palves@redhat.com>
16357
16358 * record-full.c (record_full_resume_ptid): New global.
16359 (record_full_target::resume): Set it.
16360 (record_full_wait_1): Use record_full_resume_ptid instead of
16361 inferior_ptid.
16362
16363 2020-01-10 Pedro Alves <palves@redhat.com>
16364
16365 * gdbthread.h (scoped_restore_current_thread)
16366 <dont_restore, restore, m_dont_restore>: Declare.
16367 * thread.c (thread_alive): Add assertion. Return bool.
16368 (switch_to_thread_if_alive): New.
16369 (prune_threads): Switch inferior/thread.
16370 (print_thread_info_1): Switch thread before calling target methods.
16371 (scoped_restore_current_thread::restore): New, factored out from
16372 ...
16373 (scoped_restore_current_thread::~scoped_restore_current_thread):
16374 ... this.
16375 (scoped_restore_current_thread::scoped_restore_current_thread):
16376 Add assertion.
16377 (thread_apply_all_command, thread_select): Use
16378 switch_to_thread_if_alive.
16379
16380 2020-01-10 George Barrett <bob@bob131.so>
16381
16382 * stap-probe.c (stap_modify_semaphore): Don't check for null
16383 semaphores.
16384 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16385 for null semaphores.
16386
16387 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16388
16389 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16390 all source windows, and maintain horizontal scroll status while
16391 doing so.
16392
16393 2020-01-09 Tom Tromey <tom@tromey.com>
16394
16395 PR tui/18932:
16396 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16397 update_source_window, not print_source_lines.
16398
16399 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16400
16401 * tui/tui.c (tui_enable): Register tui hooks after calling
16402 tui_display_main.
16403
16404 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16405
16406 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16407
16408 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16409
16410 * thread.c (print_thread_info_1): Fix indentation.
16411
16412 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16413
16414 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16415 unique_xmalloc_ptr outside the if to always free the demangled name.
16416
16417 2020-01-08 Tom Tromey <tromey@adacore.com>
16418
16419 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16420 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16421 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16422 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16423 Remove.
16424 (section_offsets): New typedef.
16425 * symtab.c (fixup_section, get_msymbol_address): Update.
16426 * symmisc.c (dump_msymbols): Update.
16427 * symfile.h (relative_addr_info_to_section_offsets)
16428 (symfile_map_offsets_to_segments): Update.
16429 * symfile.c (build_section_addr_info_from_objfile)
16430 (init_objfile_sect_indices): Update.
16431 (struct place_section_arg): Change type of "offsets".
16432 (place_section): Update.
16433 (relative_addr_info_to_section_offsets): Change type of
16434 "section_offsets". Remove "num_sections" parameter.
16435 (default_symfile_offsets, syms_from_objfile_1)
16436 (set_objfile_default_section_offset): Update.
16437 (reread_symbols): No need to preserve section offsets by hand.
16438 (symfile_map_offsets_to_segments): Change type of "offsets".
16439 * stap-probe.c (relocate_address): Update.
16440 * stabsread.h (process_one_symbol): Update.
16441 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16442 (solib_target_relocate_section_addresses): Update.
16443 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16444 Update.
16445 * solib-frv.c (frv_relocate_main_executable): Update.
16446 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16447 * solib-aix.c (solib_aix_get_section_offsets): Change return
16448 type.
16449 (solib_aix_solib_create_inferior_hook): Update.
16450 * remote.c (remote_target::get_offsets): Update.
16451 * psymtab.c (find_pc_sect_psymtab): Update.
16452 * psympriv.h (struct partial_symbol) <address, text_low,
16453 text_high>: Update.
16454 * objfiles.h (obj_section_offset): Update.
16455 (struct objfile) <section_offsets>: Change type.
16456 <num_sections>: Remove.
16457 (objfile_relocate): Update.
16458 * objfiles.c (entry_point_address_query): Update
16459 (relocate_one_symbol): Change type of "section_offsets".
16460 (objfile_relocate1, objfile_relocate1): Change type of
16461 "new_offsets".
16462 (objfile_rebase1): Update.
16463 * mipsread.c (mipscoff_symfile_read): Update.
16464 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16465 parameter.
16466 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16467 (parse_external, psymtab_to_symtab_1): Update.
16468 * machoread.c (macho_symfile_offsets): Update.
16469 * ia64-tdep.c (ia64_find_unwind_table): Update.
16470 * hppa-tdep.c (read_unwind_info): Update.
16471 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16472 * dwarf2read.c (create_addrmap_from_index)
16473 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16474 (process_psymtab_comp_unit_reader, add_partial_symbol)
16475 (add_partial_subprogram, process_full_comp_unit)
16476 (read_file_scope, read_func_scope, read_lexical_block_scope)
16477 (read_call_site_scope, dwarf2_rnglists_process)
16478 (dwarf2_ranges_process, dwarf2_ranges_read)
16479 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16480 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16481 Update.
16482 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16483 Update.
16484 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16485 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16486 (process_one_symbol): Change type of "section_offsets".
16487 * ctfread.c (get_objfile_text_range): Update.
16488 * coffread.c (coff_symtab_read, enter_linenos)
16489 (process_coff_symbol): Update.
16490 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16491 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16492
16493 2020-01-08 Tom Tromey <tromey@adacore.com>
16494
16495 * dwarf2read.c (parse_macro_definition): Use std::string.
16496 (parse_macro_definition): Likewise.
16497
16498 2020-01-08 Tom Tromey <tromey@adacore.com>
16499
16500 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16501 (ATTR_ALLOC_CHUNK): Remove.
16502
16503 2020-01-08 Tom Tromey <tromey@adacore.com>
16504
16505 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16506
16507 2020-01-08 Tom Tromey <tromey@adacore.com>
16508
16509 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16510 (dwarf2_compute_name, open_dwo_file): Likewise.
16511 (process_enumeration_scope): Use std::vector.
16512 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16513 (partial_die_info::fixup, dwarf2_start_subfile)
16514 (guess_full_die_structure_name, dwarf2_name): Likewise.
16515 (determine_prefix): Update.
16516 (guess_full_die_structure_name): Make return type const.
16517 (partial_die_full_name): Return unique_xmalloc_ptr.
16518 (DW_FIELD_ALLOC_CHUNK): Remove.
16519
16520 2020-01-07 Tom Tromey <tromey@adacore.com>
16521
16522 PR build/24937:
16523 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16524
16525 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16526
16527 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16528
16529 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16530
16531 * stack.c (print_frame_info): Move disassemble_next_line code
16532 inside source_print block.
16533
16534 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16535
16536 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16537 gdb/signals.h, as we are now using native signal symbols.
16538
16539 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16540
16541 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16542 overflow by an early check of content vs threshold.
16543 * tui/tui-source.c (tui_source_window::line_is_displayed):
16544 Likewise.
16545
16546 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16547
16548 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16549
16550 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16551
16552 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16553 export table if no section contains it's RVA.
16554
16555 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16556
16557 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16558
16559 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16560
16561 * source.c (print_source_lines_base): Set last_line_listed.
16562
16563 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16564
16565 * tui/tui-disasm.c: Remove trailing spaces.
16566
16567 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16568 Pedro Alves <palves@redhat.com>
16569
16570 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16571 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16572 (windows_gdb_signal_to_target): New function, uses the above
16573 enumeration to convert GDB internal signal codes to equivalent
16574 Windows codes.
16575 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16576 * windows-nat.c: Include "gdb_wait.h".
16577 (get_windows_debug_event): Extract the fatal exception from the
16578 exit status and convert to the equivalent Posix signal number.
16579 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16580 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16581 * gdbsupport/gdb_wait.c: New file, implements
16582 windows_status_to_termsig.
16583 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16584 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16585
16586 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16587
16588 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16589 show_layout.
16590
16591 2020-01-05 Luis Machado <luis.machado@linaro.org>
16592
16593 * aarch64-linux-nat.c
16594 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16595 and bfd_mach_aarch64.
16596
16597 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16598
16599 * ui-file.c (stdio_file::can_emit_style_escape)
16600 (tee_file::can_emit_style_escape): Ensure style is used also on
16601 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16602 to gdb_stdout.
16603 * main.c (set_gdb_data_directory): Use file style to output the
16604 warning that the given pathname is not a directory.
16605 * top.c (show_history_filename, gdb_safe_append_history)
16606 (show_gdb_datadir): Use file style.
16607
16608 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16609
16610 * solib-target.c (struct lm_info_target):
16611 Change offsets to be a unique_xmalloc_ptr.
16612 (solib_target_relocate_section_addresses): Update.
16613
16614 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16615
16616 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16617
16618 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16619
16620 * MAINTAINERS (Write After Approval): Add myself.
16621
16622 2020-01-02 Luis Machado <luis.machado@linaro.org>
16623
16624 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16625 Cell BE architecture.
16626 * target.h (struct target_ops) <thread_architecture>: Likewise.
16627
16628 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16629
16630 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16631
16632 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16633
16634 * MAINTAINERS (Write After Approval): Add myself.
16635
16636 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16637
16638 * gdbarch.sh: Update copyright year range of generated files.
16639
16640 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16641
16642 Update copyright year range in all GDB files.
16643
16644 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16645
16646 * copyright.py: Convert to Python 3.
16647
16648 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16649
16650 * copyright.py: Adapt after move of gnulib directory from gdb
16651 directory to toplevel directory.
16652
16653 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16654
16655 * copyright.py (main): Exit if run from the wrong directory.
16656
16657 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16658
16659 * top.c (print_gdb_version): Change copyright year to 2020.
16660
16661 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16662
16663 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16664
16665 For older changes see ChangeLog-2019.
16666 \f
16667 Local Variables:
16668 mode: change-log
16669 left-margin: 8
16670 fill-column: 74
16671 version-control: never
16672 coding: utf-8
16673 End: