Use bit stride when taking slice of array
[binutils-gdb.git] / gdb / ChangeLog
1 2020-11-04 Tom Tromey <tromey@adacore.com>
2
3 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
4
5 2020-11-04 Tom Tromey <tromey@adacore.com>
6
7 * dwarf2/read.c (read_array_type): Only apply stride to innermost
8 array.
9
10 2020-11-04 Tom Tromey <tromey@adacore.com>
11
12 * gdbtypes.c (update_static_array_size): Handle bit stride.
13
14 2020-11-04 Tom Tromey <tromey@adacore.com>
15
16 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
17
18 2020-11-04 Tom Tromey <tromey@adacore.com>
19
20 * ada-lang.c (ada_is_any_packed_array_type): New function.
21 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
22
23 2020-11-04 Tom Tromey <tromey@adacore.com>
24
25 * dwarf2/read.c (recognize_bound_expression)
26 (quirk_ada_thick_pointer): New functions.
27 (read_array_type): Call quirk_ada_thick_pointer.
28 (set_die_type): Add "skip_data_location" parameter.
29 (quirk_ada_thick_pointer): New function.
30 (process_structure_scope): Call quirk_ada_thick_pointer.
31 * ada-lang.c (ada_is_unconstrained_packed_array_type)
32 (decode_packed_array_bitsize): Handle thick pointers without
33 parallel types.
34 (ada_is_gnat_encoded_packed_array_type): Rename from
35 ada_is_packed_array_type.
36 (ada_is_constrained_packed_array_type): Update.
37 * ada-valprint.c (ada_val_print_gnat_array): Remove.
38 (ada_value_print_1): Use ada_get_decoded_value.
39
40 2020-11-04 Tom Tromey <tromey@adacore.com>
41
42 * ada-lang.c (recursively_update_array_bitsize): New function.
43 (decode_constrained_packed_array_type): Call it.
44
45 2020-11-04 Tom Tromey <tromey@adacore.com>
46
47 * ada-lang.c (to_fixed_array_type): Error if
48 decode_constrained_packed_array_type returns NULL.
49
50 2020-11-04 Tom Tromey <tromey@adacore.com>
51
52 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
53
54 2020-11-02 Tom Tromey <tromey@adacore.com>
55
56 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
57 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
58 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
59 * amd64-ravenscar-thread.c: New file.
60 * amd64-ravenscar-thread.h: New file.
61 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
62 * configure.tgt (amd64_tobjs): Add ravenscar objects.
63
64 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * main.c (execute_cmdargs): New function.
67 (captured_main_1): Make use of execute_cmdargs.
68
69 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
70
71 * NEWS: Mention changes to config file search path.
72 * main.c
73
74 2020-11-02 Tom Tromey <tromey@adacore.com>
75
76 * python/python.c: Consolidate two HAVE_PYTHON blocks.
77 (python_GdbModuleDef): Move earlier. Now static.
78 (do_start_initialization): Consolidate some IS_PY3K blocks.
79
80 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
81
82 * aarch64-linux-tdep.c: Fix indentation.
83 * aarch64-ravenscar-thread.c: Fix indentation.
84 * aarch64-tdep.c: Fix indentation.
85 * aarch64-tdep.h: Fix indentation.
86 * ada-lang.c: Fix indentation.
87 * ada-lang.h: Fix indentation.
88 * ada-tasks.c: Fix indentation.
89 * ada-typeprint.c: Fix indentation.
90 * ada-valprint.c: Fix indentation.
91 * ada-varobj.c: Fix indentation.
92 * addrmap.c: Fix indentation.
93 * addrmap.h: Fix indentation.
94 * agent.c: Fix indentation.
95 * aix-thread.c: Fix indentation.
96 * alpha-bsd-nat.c: Fix indentation.
97 * alpha-linux-tdep.c: Fix indentation.
98 * alpha-mdebug-tdep.c: Fix indentation.
99 * alpha-nbsd-tdep.c: Fix indentation.
100 * alpha-obsd-tdep.c: Fix indentation.
101 * alpha-tdep.c: Fix indentation.
102 * amd64-bsd-nat.c: Fix indentation.
103 * amd64-darwin-tdep.c: Fix indentation.
104 * amd64-linux-nat.c: Fix indentation.
105 * amd64-linux-tdep.c: Fix indentation.
106 * amd64-nat.c: Fix indentation.
107 * amd64-obsd-tdep.c: Fix indentation.
108 * amd64-tdep.c: Fix indentation.
109 * amd64-windows-tdep.c: Fix indentation.
110 * annotate.c: Fix indentation.
111 * arc-tdep.c: Fix indentation.
112 * arch-utils.c: Fix indentation.
113 * arch/arm-get-next-pcs.c: Fix indentation.
114 * arch/arm.c: Fix indentation.
115 * arm-linux-nat.c: Fix indentation.
116 * arm-linux-tdep.c: Fix indentation.
117 * arm-nbsd-tdep.c: Fix indentation.
118 * arm-pikeos-tdep.c: Fix indentation.
119 * arm-tdep.c: Fix indentation.
120 * arm-tdep.h: Fix indentation.
121 * arm-wince-tdep.c: Fix indentation.
122 * auto-load.c: Fix indentation.
123 * auxv.c: Fix indentation.
124 * avr-tdep.c: Fix indentation.
125 * ax-gdb.c: Fix indentation.
126 * ax-general.c: Fix indentation.
127 * bfin-linux-tdep.c: Fix indentation.
128 * block.c: Fix indentation.
129 * block.h: Fix indentation.
130 * blockframe.c: Fix indentation.
131 * bpf-tdep.c: Fix indentation.
132 * break-catch-sig.c: Fix indentation.
133 * break-catch-syscall.c: Fix indentation.
134 * break-catch-throw.c: Fix indentation.
135 * breakpoint.c: Fix indentation.
136 * breakpoint.h: Fix indentation.
137 * bsd-uthread.c: Fix indentation.
138 * btrace.c: Fix indentation.
139 * build-id.c: Fix indentation.
140 * buildsym-legacy.h: Fix indentation.
141 * buildsym.c: Fix indentation.
142 * c-typeprint.c: Fix indentation.
143 * c-valprint.c: Fix indentation.
144 * c-varobj.c: Fix indentation.
145 * charset.c: Fix indentation.
146 * cli/cli-cmds.c: Fix indentation.
147 * cli/cli-decode.c: Fix indentation.
148 * cli/cli-decode.h: Fix indentation.
149 * cli/cli-script.c: Fix indentation.
150 * cli/cli-setshow.c: Fix indentation.
151 * coff-pe-read.c: Fix indentation.
152 * coffread.c: Fix indentation.
153 * compile/compile-cplus-types.c: Fix indentation.
154 * compile/compile-object-load.c: Fix indentation.
155 * compile/compile-object-run.c: Fix indentation.
156 * completer.c: Fix indentation.
157 * corefile.c: Fix indentation.
158 * corelow.c: Fix indentation.
159 * cp-abi.h: Fix indentation.
160 * cp-namespace.c: Fix indentation.
161 * cp-support.c: Fix indentation.
162 * cp-valprint.c: Fix indentation.
163 * cris-linux-tdep.c: Fix indentation.
164 * cris-tdep.c: Fix indentation.
165 * darwin-nat-info.c: Fix indentation.
166 * darwin-nat.c: Fix indentation.
167 * darwin-nat.h: Fix indentation.
168 * dbxread.c: Fix indentation.
169 * dcache.c: Fix indentation.
170 * disasm.c: Fix indentation.
171 * dtrace-probe.c: Fix indentation.
172 * dwarf2/abbrev.c: Fix indentation.
173 * dwarf2/attribute.c: Fix indentation.
174 * dwarf2/expr.c: Fix indentation.
175 * dwarf2/frame.c: Fix indentation.
176 * dwarf2/index-cache.c: Fix indentation.
177 * dwarf2/index-write.c: Fix indentation.
178 * dwarf2/line-header.c: Fix indentation.
179 * dwarf2/loc.c: Fix indentation.
180 * dwarf2/macro.c: Fix indentation.
181 * dwarf2/read.c: Fix indentation.
182 * dwarf2/read.h: Fix indentation.
183 * elfread.c: Fix indentation.
184 * eval.c: Fix indentation.
185 * event-top.c: Fix indentation.
186 * exec.c: Fix indentation.
187 * exec.h: Fix indentation.
188 * expprint.c: Fix indentation.
189 * f-lang.c: Fix indentation.
190 * f-typeprint.c: Fix indentation.
191 * f-valprint.c: Fix indentation.
192 * fbsd-nat.c: Fix indentation.
193 * fbsd-tdep.c: Fix indentation.
194 * findvar.c: Fix indentation.
195 * fork-child.c: Fix indentation.
196 * frame-unwind.c: Fix indentation.
197 * frame-unwind.h: Fix indentation.
198 * frame.c: Fix indentation.
199 * frv-linux-tdep.c: Fix indentation.
200 * frv-tdep.c: Fix indentation.
201 * frv-tdep.h: Fix indentation.
202 * ft32-tdep.c: Fix indentation.
203 * gcore.c: Fix indentation.
204 * gdb_bfd.c: Fix indentation.
205 * gdbarch.sh: Fix indentation.
206 * gdbarch.c: Re-generate
207 * gdbarch.h: Re-generate.
208 * gdbcore.h: Fix indentation.
209 * gdbthread.h: Fix indentation.
210 * gdbtypes.c: Fix indentation.
211 * gdbtypes.h: Fix indentation.
212 * glibc-tdep.c: Fix indentation.
213 * gnu-nat.c: Fix indentation.
214 * gnu-nat.h: Fix indentation.
215 * gnu-v2-abi.c: Fix indentation.
216 * gnu-v3-abi.c: Fix indentation.
217 * go32-nat.c: Fix indentation.
218 * guile/guile-internal.h: Fix indentation.
219 * guile/scm-cmd.c: Fix indentation.
220 * guile/scm-frame.c: Fix indentation.
221 * guile/scm-iterator.c: Fix indentation.
222 * guile/scm-math.c: Fix indentation.
223 * guile/scm-ports.c: Fix indentation.
224 * guile/scm-pretty-print.c: Fix indentation.
225 * guile/scm-value.c: Fix indentation.
226 * h8300-tdep.c: Fix indentation.
227 * hppa-linux-nat.c: Fix indentation.
228 * hppa-linux-tdep.c: Fix indentation.
229 * hppa-nbsd-nat.c: Fix indentation.
230 * hppa-nbsd-tdep.c: Fix indentation.
231 * hppa-obsd-nat.c: Fix indentation.
232 * hppa-tdep.c: Fix indentation.
233 * hppa-tdep.h: Fix indentation.
234 * i386-bsd-nat.c: Fix indentation.
235 * i386-darwin-nat.c: Fix indentation.
236 * i386-darwin-tdep.c: Fix indentation.
237 * i386-dicos-tdep.c: Fix indentation.
238 * i386-gnu-nat.c: Fix indentation.
239 * i386-linux-nat.c: Fix indentation.
240 * i386-linux-tdep.c: Fix indentation.
241 * i386-nto-tdep.c: Fix indentation.
242 * i386-obsd-tdep.c: Fix indentation.
243 * i386-sol2-nat.c: Fix indentation.
244 * i386-tdep.c: Fix indentation.
245 * i386-tdep.h: Fix indentation.
246 * i386-windows-tdep.c: Fix indentation.
247 * i387-tdep.c: Fix indentation.
248 * i387-tdep.h: Fix indentation.
249 * ia64-libunwind-tdep.c: Fix indentation.
250 * ia64-libunwind-tdep.h: Fix indentation.
251 * ia64-linux-nat.c: Fix indentation.
252 * ia64-linux-tdep.c: Fix indentation.
253 * ia64-tdep.c: Fix indentation.
254 * ia64-tdep.h: Fix indentation.
255 * ia64-vms-tdep.c: Fix indentation.
256 * infcall.c: Fix indentation.
257 * infcmd.c: Fix indentation.
258 * inferior.c: Fix indentation.
259 * infrun.c: Fix indentation.
260 * iq2000-tdep.c: Fix indentation.
261 * language.c: Fix indentation.
262 * linespec.c: Fix indentation.
263 * linux-fork.c: Fix indentation.
264 * linux-nat.c: Fix indentation.
265 * linux-tdep.c: Fix indentation.
266 * linux-thread-db.c: Fix indentation.
267 * lm32-tdep.c: Fix indentation.
268 * m2-lang.c: Fix indentation.
269 * m2-typeprint.c: Fix indentation.
270 * m2-valprint.c: Fix indentation.
271 * m32c-tdep.c: Fix indentation.
272 * m32r-linux-tdep.c: Fix indentation.
273 * m32r-tdep.c: Fix indentation.
274 * m68hc11-tdep.c: Fix indentation.
275 * m68k-bsd-nat.c: Fix indentation.
276 * m68k-linux-nat.c: Fix indentation.
277 * m68k-linux-tdep.c: Fix indentation.
278 * m68k-tdep.c: Fix indentation.
279 * machoread.c: Fix indentation.
280 * macrocmd.c: Fix indentation.
281 * macroexp.c: Fix indentation.
282 * macroscope.c: Fix indentation.
283 * macrotab.c: Fix indentation.
284 * macrotab.h: Fix indentation.
285 * main.c: Fix indentation.
286 * mdebugread.c: Fix indentation.
287 * mep-tdep.c: Fix indentation.
288 * mi/mi-cmd-catch.c: Fix indentation.
289 * mi/mi-cmd-disas.c: Fix indentation.
290 * mi/mi-cmd-env.c: Fix indentation.
291 * mi/mi-cmd-stack.c: Fix indentation.
292 * mi/mi-cmd-var.c: Fix indentation.
293 * mi/mi-cmds.c: Fix indentation.
294 * mi/mi-main.c: Fix indentation.
295 * mi/mi-parse.c: Fix indentation.
296 * microblaze-tdep.c: Fix indentation.
297 * minidebug.c: Fix indentation.
298 * minsyms.c: Fix indentation.
299 * mips-linux-nat.c: Fix indentation.
300 * mips-linux-tdep.c: Fix indentation.
301 * mips-nbsd-tdep.c: Fix indentation.
302 * mips-tdep.c: Fix indentation.
303 * mn10300-linux-tdep.c: Fix indentation.
304 * mn10300-tdep.c: Fix indentation.
305 * moxie-tdep.c: Fix indentation.
306 * msp430-tdep.c: Fix indentation.
307 * namespace.h: Fix indentation.
308 * nat/fork-inferior.c: Fix indentation.
309 * nat/gdb_ptrace.h: Fix indentation.
310 * nat/linux-namespaces.c: Fix indentation.
311 * nat/linux-osdata.c: Fix indentation.
312 * nat/netbsd-nat.c: Fix indentation.
313 * nat/x86-dregs.c: Fix indentation.
314 * nbsd-nat.c: Fix indentation.
315 * nbsd-tdep.c: Fix indentation.
316 * nios2-linux-tdep.c: Fix indentation.
317 * nios2-tdep.c: Fix indentation.
318 * nto-procfs.c: Fix indentation.
319 * nto-tdep.c: Fix indentation.
320 * objfiles.c: Fix indentation.
321 * objfiles.h: Fix indentation.
322 * opencl-lang.c: Fix indentation.
323 * or1k-tdep.c: Fix indentation.
324 * osabi.c: Fix indentation.
325 * osabi.h: Fix indentation.
326 * osdata.c: Fix indentation.
327 * p-lang.c: Fix indentation.
328 * p-typeprint.c: Fix indentation.
329 * p-valprint.c: Fix indentation.
330 * parse.c: Fix indentation.
331 * ppc-linux-nat.c: Fix indentation.
332 * ppc-linux-tdep.c: Fix indentation.
333 * ppc-nbsd-nat.c: Fix indentation.
334 * ppc-nbsd-tdep.c: Fix indentation.
335 * ppc-obsd-nat.c: Fix indentation.
336 * ppc-ravenscar-thread.c: Fix indentation.
337 * ppc-sysv-tdep.c: Fix indentation.
338 * ppc64-tdep.c: Fix indentation.
339 * printcmd.c: Fix indentation.
340 * proc-api.c: Fix indentation.
341 * producer.c: Fix indentation.
342 * producer.h: Fix indentation.
343 * prologue-value.c: Fix indentation.
344 * prologue-value.h: Fix indentation.
345 * psymtab.c: Fix indentation.
346 * python/py-arch.c: Fix indentation.
347 * python/py-bpevent.c: Fix indentation.
348 * python/py-event.c: Fix indentation.
349 * python/py-event.h: Fix indentation.
350 * python/py-finishbreakpoint.c: Fix indentation.
351 * python/py-frame.c: Fix indentation.
352 * python/py-framefilter.c: Fix indentation.
353 * python/py-inferior.c: Fix indentation.
354 * python/py-infthread.c: Fix indentation.
355 * python/py-objfile.c: Fix indentation.
356 * python/py-prettyprint.c: Fix indentation.
357 * python/py-registers.c: Fix indentation.
358 * python/py-signalevent.c: Fix indentation.
359 * python/py-stopevent.c: Fix indentation.
360 * python/py-stopevent.h: Fix indentation.
361 * python/py-threadevent.c: Fix indentation.
362 * python/py-tui.c: Fix indentation.
363 * python/py-unwind.c: Fix indentation.
364 * python/py-value.c: Fix indentation.
365 * python/py-xmethods.c: Fix indentation.
366 * python/python-internal.h: Fix indentation.
367 * python/python.c: Fix indentation.
368 * ravenscar-thread.c: Fix indentation.
369 * record-btrace.c: Fix indentation.
370 * record-full.c: Fix indentation.
371 * record.c: Fix indentation.
372 * reggroups.c: Fix indentation.
373 * regset.h: Fix indentation.
374 * remote-fileio.c: Fix indentation.
375 * remote.c: Fix indentation.
376 * reverse.c: Fix indentation.
377 * riscv-linux-tdep.c: Fix indentation.
378 * riscv-ravenscar-thread.c: Fix indentation.
379 * riscv-tdep.c: Fix indentation.
380 * rl78-tdep.c: Fix indentation.
381 * rs6000-aix-tdep.c: Fix indentation.
382 * rs6000-lynx178-tdep.c: Fix indentation.
383 * rs6000-nat.c: Fix indentation.
384 * rs6000-tdep.c: Fix indentation.
385 * rust-lang.c: Fix indentation.
386 * rx-tdep.c: Fix indentation.
387 * s12z-tdep.c: Fix indentation.
388 * s390-linux-tdep.c: Fix indentation.
389 * score-tdep.c: Fix indentation.
390 * ser-base.c: Fix indentation.
391 * ser-mingw.c: Fix indentation.
392 * ser-uds.c: Fix indentation.
393 * ser-unix.c: Fix indentation.
394 * serial.c: Fix indentation.
395 * sh-linux-tdep.c: Fix indentation.
396 * sh-nbsd-tdep.c: Fix indentation.
397 * sh-tdep.c: Fix indentation.
398 * skip.c: Fix indentation.
399 * sol-thread.c: Fix indentation.
400 * solib-aix.c: Fix indentation.
401 * solib-darwin.c: Fix indentation.
402 * solib-frv.c: Fix indentation.
403 * solib-svr4.c: Fix indentation.
404 * solib.c: Fix indentation.
405 * source.c: Fix indentation.
406 * sparc-linux-tdep.c: Fix indentation.
407 * sparc-nbsd-tdep.c: Fix indentation.
408 * sparc-obsd-tdep.c: Fix indentation.
409 * sparc-ravenscar-thread.c: Fix indentation.
410 * sparc-tdep.c: Fix indentation.
411 * sparc64-linux-tdep.c: Fix indentation.
412 * sparc64-nbsd-tdep.c: Fix indentation.
413 * sparc64-obsd-tdep.c: Fix indentation.
414 * sparc64-tdep.c: Fix indentation.
415 * stabsread.c: Fix indentation.
416 * stack.c: Fix indentation.
417 * stap-probe.c: Fix indentation.
418 * stubs/ia64vms-stub.c: Fix indentation.
419 * stubs/m32r-stub.c: Fix indentation.
420 * stubs/m68k-stub.c: Fix indentation.
421 * stubs/sh-stub.c: Fix indentation.
422 * stubs/sparc-stub.c: Fix indentation.
423 * symfile-mem.c: Fix indentation.
424 * symfile.c: Fix indentation.
425 * symfile.h: Fix indentation.
426 * symmisc.c: Fix indentation.
427 * symtab.c: Fix indentation.
428 * symtab.h: Fix indentation.
429 * target-float.c: Fix indentation.
430 * target.c: Fix indentation.
431 * target.h: Fix indentation.
432 * tic6x-tdep.c: Fix indentation.
433 * tilegx-linux-tdep.c: Fix indentation.
434 * tilegx-tdep.c: Fix indentation.
435 * top.c: Fix indentation.
436 * tracefile-tfile.c: Fix indentation.
437 * tracepoint.c: Fix indentation.
438 * tui/tui-disasm.c: Fix indentation.
439 * tui/tui-io.c: Fix indentation.
440 * tui/tui-regs.c: Fix indentation.
441 * tui/tui-stack.c: Fix indentation.
442 * tui/tui-win.c: Fix indentation.
443 * tui/tui-winsource.c: Fix indentation.
444 * tui/tui.c: Fix indentation.
445 * typeprint.c: Fix indentation.
446 * ui-out.h: Fix indentation.
447 * unittests/copy_bitwise-selftests.c: Fix indentation.
448 * unittests/memory-map-selftests.c: Fix indentation.
449 * utils.c: Fix indentation.
450 * v850-tdep.c: Fix indentation.
451 * valarith.c: Fix indentation.
452 * valops.c: Fix indentation.
453 * valprint.c: Fix indentation.
454 * valprint.h: Fix indentation.
455 * value.c: Fix indentation.
456 * value.h: Fix indentation.
457 * varobj.c: Fix indentation.
458 * vax-tdep.c: Fix indentation.
459 * windows-nat.c: Fix indentation.
460 * windows-tdep.c: Fix indentation.
461 * xcoffread.c: Fix indentation.
462 * xml-syscall.c: Fix indentation.
463 * xml-tdesc.c: Fix indentation.
464 * xstormy16-tdep.c: Fix indentation.
465 * xtensa-config.c: Fix indentation.
466 * xtensa-linux-nat.c: Fix indentation.
467 * xtensa-linux-tdep.c: Fix indentation.
468 * xtensa-tdep.c: Fix indentation.
469
470 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
471 Craig Blackmore <craig.blackmore@embecosm.com>
472
473 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
474 as an unsigned value.
475
476 2020-11-01 Tom Tromey <tom@tromey.com>
477
478 * dbxread.c (dbx_end_psymtab): Update.
479 * dwarf2/read.c (process_psymtab_comp_unit_reader)
480 (build_type_psymtabs_reader): Update.
481 * xcoffread.c (xcoff_end_psymtab): Update.
482 * ctfread.c (scan_partial_symbols): Update.
483 * psymtab.c (sort_pst_symbols): Remove.
484 (partial_symtab::end): Rename from end_psymtab_common. Inline
485 sort_pst_symbols.
486 * psympriv.h (struct partial_symtab) <end>: New method.
487 (end_psymtab_common): Don't declare.
488
489 2020-11-01 Tom Tromey <tom@tromey.com>
490
491 * symmisc.c (count_psyms): New function.
492 (print_objfile_statistics): Use it.
493 * psymtab.c (append_psymbol_to_list): Remove.
494 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
495 * objfiles.h (struct objstats) <n_psyms>: Remove.
496
497 2020-11-01 Tom Tromey <tom@tromey.com>
498
499 * dbxread.c (dbx_end_psymtab): Update.
500 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
501 (build_type_psymtabs_reader): Update.
502 * xcoffread.c (xcoff_end_psymtab): Update.
503 * ctfread.c (scan_partial_symbols): Update.
504 * psympriv.h (end_psymtab_common): Update.
505 * psymtab.c (end_psymtab_common): Remove objfile parameter.
506 (sort_pst_symbols): Likewise.
507
508 2020-11-01 Tom Tromey <tom@tromey.com>
509
510 * dbxread.c (dbx_symfile_read): Update.
511 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
512 * xcoffread.c (xcoff_initial_scan): Update.
513 * psympriv.h (init_psymbol_list): Don't declare.
514 * psymtab.c (init_psymbol_list): Remove.
515
516 2020-11-01 Joel Brobecker <brobecker@adacore.com>
517
518 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
519 gnat_encoded_fixed_type_info. Update all callers.
520
521 2020-11-01 Joel Brobecker <brobecker@adacore.com>
522
523 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
524 line too long.
525
526 2020-11-01 Joel Brobecker <brobecker@adacore.com>
527
528 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
529 cast_from_fixed. Update all callers.
530 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
531 Update all callers.
532 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
533 Update all callers.
534 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
535 ada_scaling_factor.
536 * ada-typeprint.c: Replace call to ada_scaling_factor by call
537 to print_gnat_encoded_fixed_point_type.
538 * ada-valprint.c: Likewise.
539
540 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
543 (debug_prefixed_printf): Add check of debug_displaced flag.
544 * linux-nat.c (linux_nat_debug_printf): Add check of
545 debug_linux_nat flag.
546
547 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * infrun.c (infrun_debug_printf_1): Remove.
550 (displaced_debug_printf_1): Remove.
551 (stop_all_threads): Use debug_prefixed_printf.
552 * infrun.h (infrun_debug_printf_1): Remove.
553 (infrun_debug_printf): Use debug_prefixed_printf.
554 (displaced_debug_printf_1): Remove.
555 (displaced_debug_printf): Use debug_prefixed_printf.
556 * linux-nat.c (linux_nat_debug_printf_1): Remove.
557 (linux_nat_debug_printf): Use debug_prefixed_printf.
558
559 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
560
561 * configure: Re-generate.
562 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
563 AC_LANG_PROGRAM.
564
565 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
566
567 * configure: Re-generate.
568
569 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
570
571 * configure: Re-generate.
572
573 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
574
575 * configure: Re-generate.
576
577 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
578
579 * configure: Re-generate.
580
581 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * acinclude.m4: Modernize.
584 * configure: Re-generate.
585
586 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
587
588 * configure.ac: Modernize.
589 * configure: Re-generate.
590
591 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
592
593 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
594 * configure: Re-generate.
595 * configure.ac: Remove AM_PROG_CC_STDC.
596
597 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
598
599 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
600 AC_CANONICAL_SYSTEM.
601 * configure: Re-generate.
602
603 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
604
605 * infrun.h (displaced_debug_printf): New macro. Replace
606 displaced debug prints throughout to use it.
607 (displaced_debug_printf_1): New declaration.
608 (displaced_step_dump_bytes): Return string, remove ui_file
609 parameter, update all callers.
610 * infrun.c (displaced_debug_printf_1): New function.
611 (displaced_step_dump_bytes): Return string, remove ui_file
612 parameter
613
614 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
615
616 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
617
618 2020-10-30 Tom Tromey <tromey@adacore.com>
619
620 * Makefile.in (stamp-init): Depend on config.status.
621
622 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
623
624 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
625
626 2020-10-30 Pedro Alves <pedro@palves.net>
627
628 * thread.c (lookup_selected_frame): Move ...
629 * frame.c (lookup_selected_frame): ... here.
630
631 2020-10-30 Pedro Alves <pedro@palves.net>
632
633 * blockframe.c (block_innermost_frame): Use get_selected_frame.
634 * frame.c
635 (scoped_restore_selected_frame::scoped_restore_selected_frame):
636 Use save_selected_frame. Save language as well.
637 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
638 Use restore_selected_frame, and restore language as well.
639 (selected_frame_id, selected_frame_level): New.
640 (selected_frame): Update comments.
641 (save_selected_frame, restore_selected_frame): New.
642 (get_selected_frame): Use lookup_selected_frame.
643 (get_selected_frame_if_set): Delete.
644 (select_frame): Record selected_frame_level and selected_frame_id.
645 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
646 fields.
647 (get_selected_frame): Make 'message' parameter optional.
648 (get_selected_frame_if_set): Delete declaration.
649 (select_frame): Update comments.
650 (save_selected_frame, restore_selected_frame)
651 (lookup_selected_frame): Declare.
652 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
653 * infrun.c (struct infcall_control_state) <selected_frame_level>:
654 New field.
655 (save_infcall_control_state): Use save_selected_frame.
656 (restore_selected_frame): Delete.
657 (restore_infcall_control_state): Use restore_selected_frame.
658 * stack.c (select_frame_command_core, frame_command_core): Use
659 get_selected_frame.
660 * thread.c (restore_selected_frame): Rename to ...
661 (lookup_selected_frame): ... this and make extern. Select the
662 current frame if the frame level is -1.
663 (scoped_restore_current_thread::restore): Also restore the
664 language.
665 (scoped_restore_current_thread::~scoped_restore_current_thread):
666 Don't try/catch.
667 (scoped_restore_current_thread::scoped_restore_current_thread):
668 Save the language as well. Use save_selected_frame.
669
670 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
671
672 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
673 documentation.
674 * gdbarch.h: Re-generate.
675
676 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
677
678 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
679 parameter.
680 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
681 Likewise.
682 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
683 Likewise.
684 * arch-utils.c (default_displaced_step_hw_singlestep):
685 Likewise.
686 * arch-utils.h (default_displaced_step_hw_singlestep):
687 Likewise.
688 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
689 Likewise.
690 * s390-tdep.c (s390_displaced_step_hw_singlestep):
691 Likewise.
692 * gdbarch.c: Re-generate.
693 * gdbarch.h: Re-generate.
694 * infrun.c (resume_1): Adjust.
695
696 2020-10-29 Tom Tromey <tom@tromey.com>
697
698 * progspace.c (program_space::~program_space): Don't call
699 exec_close.
700
701 2020-10-29 Tom Tromey <tom@tromey.com>
702
703 * exec.c (exec_target::close): Don't change current program
704 space.
705
706 2020-10-29 Tom Tromey <tom@tromey.com>
707
708 * symfile.c (add_symbol_file_command): Update.
709 * exec.c (program_space::add_target_sections): Rename.
710 * symfile-mem.c (symbol_file_add_from_memory): Update.
711 * progspace.h (struct program_space) <add_target_sections>:
712 Declare new overload.
713 * exec.h (add_target_sections_of_objfile): Don't declare.
714
715 2020-10-29 Tom Tromey <tom@tromey.com>
716
717 * solib.c (solib_map_sections): Update.
718 * exec.c (program_space::add_target_sections): Now a method.
719 (exec_file_attach): Update.
720 * exec.h (add_target_sections): Don't declare.
721 * progspace.h (struct program_space) <add_target_sections>:
722 Declare.
723
724 2020-10-29 Tom Tromey <tom@tromey.com>
725
726 * progspace.h (struct program_space) <remove_target_sections>:
727 Declare.
728 * exec.c (program_space::remove_target_sections): Now a method.
729 * exec.h (remove_target_sections): Don't declare.
730
731 2020-10-29 Tom Tromey <tom@tromey.com>
732
733 * inferior.c (delete_inferior): Update.
734 * progspace.c (program_space::empty): Rename from
735 program_space_empty_p. Return bool.
736 * progspace.h (struct program_space) <empty>: New method.
737 (program_space_empty_p): Don't declare.
738
739 2020-10-29 Tom Tromey <tom@tromey.com>
740
741 * progspace.c (program_space::~program_space): Don't call
742 clear_program_space_solib_cache.
743 (program_space::clear_solib_cache): Rename from
744 clear_solib_cache.
745 * solib.c (handle_solib_event): Update.
746 * progspace.h (struct program_space) <clear_solib_cache>: New
747 method.
748 (clear_program_space_solib_cache): Don't declare.
749
750 2020-10-29 Tom Tromey <tom@tromey.com>
751
752 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
753 * target.c (info_target_command): Update.
754 * symfile.c (syms_from_objfile_1, finish_new_objfile)
755 (symbol_file_clear, reread_symbols): Update.
756 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
757 * stabsread.c (scan_file_globals): Update.
758 * solib.c (update_solib_list): Update.
759 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
760 (svr4_fetch_objfile_link_map, enable_break)
761 (svr4_relocate_main_executable)
762 (svr4_iterate_over_objfiles_in_search_order): Update.
763 * solib-frv.c (lm_base, enable_break)
764 (frv_relocate_main_executable): Update.
765 (main_got, frv_fdpic_find_canonical_descriptor): Update.
766 (frv_fetch_objfile_link_map): Update.
767 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
768 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
769 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
770 * remote.c (remote_target::get_offsets): Update.
771 (remote_target::start_remote)
772 (extended_remote_target::post_attach): Update.
773 * objfiles.c (entry_point_address_query): Update.
774 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
775 * minsyms.c (get_symbol_leading_char): Update.
776 * frame.c (inside_main_func): Update.
777 * progspace.h (symfile_objfile): Remove macro.
778
779 2020-10-29 Tom Tromey <tom@tromey.com>
780
781 * exec.c (exec_file_attach): Update.
782 * progspace.c (program_space::exec_close): Update.
783 * progspace.h (struct program_space) <ebfd>: Now a
784 gdb_bfd_ref_ptr.
785 <set_exec_bfd>: Change argument type.
786 <exec_bfd>: Update.
787
788 2020-10-29 Tom Tromey <tom@tromey.com>
789
790 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
791 * symfile.c (reread_symbols): Update.
792 * symfile-mem.c (add_symbol_file_from_memory_command)
793 (add_vsyscall_page): Update.
794 * source-cache.c (source_cache::get_plain_source_lines): Update.
795 * solib-svr4.c (find_program_interpreter, elf_locate_base)
796 (svr4_current_sos_direct, svr4_exec_displacement)
797 (svr4_relocate_main_executable): Update.
798 (svr4_iterate_over_objfiles_in_search_order): Update.
799 * solib-frv.c (enable_break2, enable_break): Update.
800 * solib-dsbt.c (lm_base, enable_break): Update.
801 * solib-darwin.c (find_program_interpreter)
802 (darwin_solib_create_inferior_hook): Update.
803 * sol-thread.c (rw_common, ps_pdmodel): Update.
804 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
805 * remote.c (compare_sections_command)
806 (remote_target::trace_set_readonly_regions): Update.
807 * remote-sim.c (get_sim_inferior_data)
808 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
809 (gdbsim_target_open, gdbsim_target::files_info): Update.
810 * exec.h (exec_bfd): Remove macro.
811 * progspace.c (initialize_progspace): Update.
812 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
813 Update.
814 * nto-procfs.c (nto_procfs_target::post_attach)
815 (nto_procfs_target::create_inferior): Update.
816 * maint.c (maintenance_info_sections): Update.
817 * linux-thread-db.c (thread_db_target::get_thread_local_address):
818 Update.
819 * infcmd.c (post_create_inferior): Update.
820 * gcore.c (default_gcore_arch, default_gcore_target): Update.
821 (objfile_find_memory_regions): Update.
822 * exec.c (validate_exec_file, exec_file_attach)
823 (exec_read_partial_read_only, print_section_info): Update.
824 * corelow.c (core_target_open): Update.
825 * corefile.c (reopen_exec_file, validate_files): Update.
826 * arm-tdep.c (gdb_print_insn_arm): Update.
827 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
828 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
829 methods.
830
831 2020-10-29 Tom Tromey <tom@tromey.com>
832
833 * progspace.h (current_target_sections): Remove macro.
834 * solib-svr4.c (scan_dyntag): Update.
835 * solib-dsbt.c (scan_dyntag): Update.
836 * exec.c (exec_target::close): Update.
837 (add_target_sections, add_target_sections_of_objfile)
838 (remove_target_sections, exec_target::get_section_table)
839 (exec_target::files_info, set_section_command)
840 (exec_set_section_address, exec_target::has_memory)
841 (exec_target::has_memory): Update.
842
843 2020-10-29 Tom Tromey <tom@tromey.com>
844
845 * source-cache.c (source_cache::get_plain_source_lines): Use
846 current_program_space.
847 * corefile.c (reopen_exec_file): Use current_program_space.
848 * exec.c (exec_file_attach): Use current_program_space.
849 * exec.h (exec_bfd_mtime): Remove.
850
851 2020-10-29 Tom Tromey <tom@tromey.com>
852
853 * gcore.c (default_gcore_mach): Remove.
854 (create_gcore_bfd): Update.
855
856 2020-10-29 Tom Tromey <tom@tromey.com>
857
858 * progspace.c (program_space::exec_close): New method, from
859 exec_close in exec.c.
860 * exec.c (exec_close): Move to progspace.c.
861 (exec_target::close, exec_file_attach): Update.
862 * progspace.h (struct program_space) <exec_close>: Declare
863 method.
864
865 2020-10-29 Tom Tromey <tom@tromey.com>
866
867 * progspace.h (struct program_space) <exec_filename>: Rename from
868 pspace_exec_filename. Now a unique_xmalloc_ptr.
869 * inferior.c (print_selected_inferior): Update.
870 (print_inferior): Update.
871 * mi/mi-main.c (print_one_inferior): Update.
872 * exec.h (exec_filename): Remove macro.
873 * corefile.c (get_exec_file): Update.
874 * exec.c (exec_close): Update.
875 (exec_file_attach): Update.
876 * progspace.c (clone_program_space): Update.
877 (print_program_space): Update.
878
879 2020-10-29 Tom Tromey <tom@tromey.com>
880
881 * target-section.h (struct target_section): Add constructor.
882 * exec.c (build_section_table, add_target_sections_of_objfile):
883 Update.
884 * corelow.c (core_target::build_file_mappings): Update.
885
886 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
887
888 PR gdb/19318
889 * inferior.c (detach_inferior_command): Restore the current thread.
890 (kill_inferior_command): Ditto.
891
892 2020-10-28 Tom de Vries <tdevries@suse.de>
893
894 PR symtab/26772
895 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
896 map, check it in the "best match" loop.
897
898 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
899
900 * m32c-tdep.c: Remove unused includes.
901
902 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
903
904 * xtensa-tdep.c: Remove includes.
905
906 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
907
908 * breakpoint.c (struct condition_command_opts): New struct.
909 (condition_command_option_defs): New static global.
910 (make_condition_command_options_def_group): New function.
911 (condition_completer): Update to consider the '-force' flag.
912 (condition_command): Use gdb::option for the '-force' flag.
913
914 2020-10-27 Tom de Vries <tdevries@suse.de>
915
916 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
917 symbols in section check.
918
919 2020-10-27 Tom de Vries <tdevries@suse.de>
920
921 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
922
923 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
924
925 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
926 * breakpoint.c: Update the help text of the 'condition' and 'break'
927 commands.
928 (set_breakpoint_condition): Take a new bool parameter
929 to control whether condition definition should be forced even when
930 the condition expression is invalid in all of the current locations.
931 (condition_command): Update the call to 'set_breakpoint_condition'.
932 (find_condition_and_thread): Take the "-force-condition" flag into
933 account.
934 * linespec.c (linespec_keywords): Add "-force-condition" as an
935 element.
936 (FORCE_KEYWORD_INDEX): New #define.
937 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
938 as a keyword.
939 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
940 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
941 * python/py-breakpoint.c (bppy_set_condition): Ditto.
942 * NEWS: Mention the changes to the 'break' and 'condition' commands.
943
944 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
945
946 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
947 * breakpoint.c (set_breakpoint_location_condition): New function.
948 (set_breakpoint_condition): Disable a breakpoint location if parsing
949 the condition string gives an error.
950 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
951 (build_target_condition_list): Ditto.
952 (build_target_command_list): Ditto.
953 (build_bpstat_chain): Ditto.
954 (print_one_breakpoint_location): Ditto.
955 (print_one_breakpoint): Ditto.
956 (breakpoint_1): Ditto.
957 (bp_location::bp_location): Ditto.
958 (locations_are_equal): Ditto.
959 (update_breakpoint_locations): Ditto.
960 (enable_disable_bp_num_loc): Ditto.
961 (init_breakpoint_sal): Use set_breakpoint_location_condition.
962 (find_condition_and_thread_for_sals): New static function.
963 (create_breakpoint): Call find_condition_and_thread_for_sals.
964 (location_to_sals): Call find_condition_and_thread_for_sals instead
965 of find_condition_and_thread.
966
967 2020-10-26 Tom de Vries <tdevries@suse.de>
968
969 * dwarf2/read.c (process_full_comp_unit): Call
970 dwarf2_find_base_address.
971
972 2020-10-26 Tom Tromey <tromey@adacore.com>
973
974 * gdbtypes.c (create_range_type): Revert previous patch. Add
975 comment.
976
977 2020-10-26 Pedro Alves <pedro@palves.net>
978
979 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
980 (my_waitpid): Use gdb::handle_eintr.
981
982 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
983
984 * acinclude.m4: Update ptrace.m4 path.
985 * ptrace.m4: Moved to gdbsupport.
986
987 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
988
989 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
990 instead of target_gdbarch.
991
992 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
993
994 * jit.c (jit_reader_load_command): Pass current inferior.
995 (jit_inferior_init): Change parameter type to inferior, use it.
996 (jit_inferior_created): Remove.
997 (jit_inferior_created_hook): Pass inferior parameter down.
998 (_initialize_jit): Use jit_inferior_created_hook instead of
999 jit_inferior_created.
1000 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1001 * infrun.c (follow_exec): Pass inferior to
1002 jit_inferior_created_hook.
1003
1004 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1005
1006 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1007 parameter and use it.
1008 (thread_db_inferior_created): Pass inferior argument.
1009
1010 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
1011
1012 * aix-thread.c (aix_thread_inferior_created): Add inferior
1013 parameter.
1014 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1015 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1016 * jit.c (jit_inferior_created): Likewise.
1017 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1018 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1019 * observable.h (inferior_created): Likewise.
1020 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1021 * symfile-mem.c (add_vsyscall_page): Likewise.
1022 * infcmd.c (post_create_inferior): Pass inferior argument.
1023
1024 2020-10-24 Joel Brobecker <brobecker@adacore.com>
1025
1026 GDB 10.1 released.
1027
1028 2020-10-23 Joel Brobecker <brobecker@adacore.com>
1029
1030 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1031 to ada_check_typedef.
1032
1033 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * f-exp.y (f_parse): Rename to...
1036 (f_language::parser): ...this.
1037 * f-lang.c (f_get_encoding): Rename to...
1038 (f_language::get_encoding): ...this.
1039 (f_op_print_tab): Rename to...
1040 (f_language::op_print_tab): ...this.
1041 (exp_descriptor_f): Rename to...
1042 (f_language::exp_descriptor_tab): ...this.
1043 (class f_language): Moved to f-lang.h.
1044 (f_language::language_arch_info): New function, moved out of class
1045 declaration.
1046 (f_language::search_name_hash): Likewise.
1047 (f_language::lookup_symbol_nonlocal): Likewise.
1048 (f_language::get_symbol_name_matcher_inner): Likewise.
1049 * f-lang.h: Add 'valprint.h' include.
1050 (class f_language): Moved here from f-lang.c.
1051 * f-typeprint.c (f_type_print_args): Delete commented out
1052 declaration.
1053 (f_print_typedef): Rename to...
1054 (f_language::print_typedef): ...this.
1055 (f_print_type): Rename to...
1056 (f_language::print_type): ...this.
1057 (f_type_print_varspec_prefix): Delete declaration and rename to...
1058 (f_language::f_type_print_varspec_prefix): ...this.
1059 (f_type_print_varspec_suffix): Delete declaration and rename to...
1060 (f_language::f_type_print_varspec_suffix): ...this.
1061 (f_type_print_base): Delete declaration and rename to...
1062 (f_language::f_type_print_base): ...this.
1063 * f-valprint.c (f_value_print_inner): Rename to...
1064 (f_language::value_print_inner): ...this.
1065 * parse.c: Delete 'f-lang.h' include.
1066
1067 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * language.h (language_defn::print_type): Add variable names in
1070 declaration, and update header comment.
1071
1072 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * ada-lang.c (ada_language::demangle): Rename to...
1075 (ada_language::demangle_symbol): ...this.
1076 * c-lang.c (cplus_language::demangle): Rename to...
1077 (cplus_language::demangle_symbol): ...this.
1078 * d-lang.c (d_language::demangle): Rename to...
1079 (d_language::demangle_symbol): ...this.
1080 * f-lang.c (f_language::demangle): Rename to...
1081 (f_language::demangle_symbol): ...this.
1082 * go-lang.c (go_language::demangle): Rename to...
1083 (go_language::demangle_symbol): ...this.
1084 * language.c (language_demangle): Update call to demangle_symbol.
1085 (auto_or_unknown_language::demangle): Rename to...
1086 (auto_or_unknown_language::demangle_symbol): ...this.
1087 * language.h (language_defn::demangle): Rename to...
1088 (language_defn::demangle_symbol): ...this.
1089 * objc-lang.c (objc_language::demangle): Rename to...
1090 (objc_language::demangle_symbol): ...this.
1091 * rust-lang.c (rust_language::demangle): Rename to...
1092 (rust_language::demangle_symbol): ...this.
1093
1094 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1095
1096 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1097 (iterate_over_file_blocks): Replace use of macro with the macros
1098 definition.
1099
1100 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1101
1102 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1103 * valprint.c (maybe_print_array_index): Replace use of macro with
1104 the macros definition.
1105
1106 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * ada-lang.c (ada_language::print_array_index): Call value_print
1109 directly.
1110 * language.c (language_defn::print_array_index): Likewise.
1111 * language.h (LA_VALUE_PRINT): Delete.
1112 * valprint.c (value_print): Call value_print on the
1113 current_language directly.
1114
1115 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * language.h (LA_PRINT_TYPEDEF): Delete.
1118 * typeprint.c (typedef_print): Call print_typedef directly on the
1119 current_language object.
1120
1121 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1122
1123 * m2-exp.y (m2_parse): Rename to...
1124 (m2_language::parser): ...this. Update function signature.
1125 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1126 (m2_op_print): Rename to...
1127 (m2_language::op_print_tab): ...this, and make const.
1128 (exp_descriptor_modula2): Rename to...
1129 (m2_language::exp_descriptor_modula2): ...this.
1130 (class m2_language): Move to m2-lang.h.
1131 (m2_language::language_arch_info): New function, moved out of
1132 class declaration.
1133 (m2_language::printchar): New function, body from m2_printchar.
1134 (m2_language::printstr): New function, moved out of class
1135 declaration.
1136 (m2_language::emitchar): Likewise.
1137 * m2-lang.h (m2_parse): Delete declaration.
1138 (m2_print_typedef): Delete declaration.
1139 (m2_value_print_inner): Delete declaration.
1140 (class m2_language): Class declaration moved from m2-lang.c,
1141 larger functions are left in m2-lang.c.
1142 * m2-typeprint.c (m2_print_typedef): Rename to...
1143 (m2_language::print_typedef): ...this, and update function
1144 signature.
1145 * m2-valprint.c (m2_value_print_inner): Rename to...
1146 (m2_language::value_print_inner): ...this, replace use of
1147 LA_PRINT_STRING with a direct call to printstr member function,
1148 and update recursive call.
1149
1150 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * language.c (default_is_string_type_p): Delete, implementation
1153 moved into auto_or_unknown_language::is_string_type_p.
1154 (unk_op_print_tab): Moved into
1155 auto_or_unknown_language::opcode_print_table.
1156 (unknown_language_arch_info): Delete, implementation moved into
1157 auto_or_unknown_language::language_arch_info.
1158 (class auto_or_unknown_language): New class, member functions
1159 copied from unknown_language class, with some updates.
1160 (class unknown_language): Most member functions moved into
1161 auto_or_unknown_language class. Inherit from
1162 auto_or_unknown_language class.
1163 (class auto_language): Inherit from auto_or_unknown_language.
1164 Delete most member functions.
1165
1166 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1167
1168 * stabsread.c (read_member_functions): Remove gdb_assert.
1169
1170 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
1171
1172 * gdbtypes.c (init_complex_type): Check target type name.
1173
1174 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1175
1176 * target-debug.h (target_debug_print_struct_target_ops_p):
1177 Remove.
1178 (target_debug_print_async_callback_ftype_p): Remove.
1179 (target_debug_print_struct_trace_state_variable_p): Remove.
1180 (target_debug_print_struct_traceframe_info_p): Remove.
1181 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1182 (target_debug_print_enum_btrace_format): Remove.
1183 (target_debug_print_enum_info_proc_what): Remove.
1184 (target_debug_print_thread_info_pp): Remove.
1185
1186 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
1187
1188 * target.h (struct target_ops) <make_corefile_notes>:
1189 Change return type to unique pointer.
1190 * target.c (dummy_make_corefile_notes): Likewise.
1191 * exec.c (struct exec_target) <make_corefile_notes>:
1192 Likewise.
1193 (exec_target::make_corefile_notes): Likewise.
1194 * procfs.c (class procfs_target) <make_corefile_notes>:
1195 Likewise.
1196 (procfs_do_thread_registers): Adjust to unique pointer.
1197 (struct procfs_corefile_thread_data): Add constructor.
1198 <note_data>: Change type to unique pointer.
1199 (procfs_corefile_thread_callback): Adjust to unique pointer.
1200 (procfs_target::make_corefile_notes): Change return type to
1201 unique pointer.
1202 * target-delegates.c: Re-generate.
1203 * gcore.c (write_gcore_file_1): Adjust.
1204 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1205 New.
1206
1207 2020-10-22 Tom de Vries <tdevries@suse.de>
1208
1209 * block.c (find_block_in_blockvector): Make sure the returned block
1210 contains pc.
1211
1212 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1213
1214 PR gdb/26693
1215 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1216 parameter.
1217 (load_cu): Pass existing CU.
1218 (process_imported_unit_die): Likewise.
1219 (follow_die_offset): Likewise.
1220
1221 2020-10-22 Luis Machado <luis.machado@linaro.org>
1222
1223 * corelow.c (core_target::xfer_partial): Also check for an empty
1224 m_core_unavailable_mappings vector.
1225
1226 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1229 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1230 * f-exp.y (arglist): Allow for a series of subranges.
1231 (subrange): Add cases for subranges with strides.
1232 * f-lang.c (value_f90_subarray): Catch use of array strides and
1233 throw an error.
1234 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1235
1236 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * expprint.c (print_subexp_standard): Change enum range_type to
1239 range_flag and rename variables to match.
1240 (dump_subexp_body_standard): Likewise.
1241 * expression.h (enum range_type): Rename to...
1242 (enum range_flag): ...this.
1243 (range_types): Rename to...
1244 (range_flags): ...this.
1245 * f-lang.c (value_f90_subarray): Change enum range_type to
1246 range_flag and rename variables to match.
1247 * parse.c (operator_length_standard): Likewise.
1248 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1249 range_type to range_flag.
1250 * rust-lang.c (rust_evaluate_funcall): Likewise.
1251 (rust_range): Likewise.
1252 (rust_compute_range): Likewise.
1253 (rust_subscript): Likewise.
1254
1255 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1256
1257 * expprint.c (print_subexp_standard): Update to reflect changes to
1258 enum range_type.
1259 (dump_subexp_body_standard): Likewise.
1260 * expression.h (enum range_type): Convert to a bit field enum, and
1261 make the enum unsigned.
1262 * f-exp.y (subrange): Update to reflect changes to enum
1263 range_type.
1264 * f-lang.c (value_f90_subarray): Likewise.
1265 * parse.c (operator_length_standard): Likewise.
1266 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1267 * rust-lang.c (rust_range): Likewise.
1268 (rust_compute_range): Likewise.
1269 (rust_subscript): Likewise.
1270
1271 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
1272
1273 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1274 (displaced_step_in_progress): Fix comment.
1275
1276 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1277
1278 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1279 * gdbarch.c: Re-generate.
1280 * gdbarch.h: Re-generate.
1281 * gcore.c (write_gcore_file_1): Adjust.
1282 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1283 constructor.
1284 <note_data>: Change type to unique pointer.
1285 <abort_iteration>: Change type to bool.
1286 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1287 (fbsd_collect_thread_registers): Return void, adjust.
1288 (struct fbsd_corefile_thread_data): Add construtor.
1289 <note_data>: Change type to unique pointer.
1290 (fbsd_corefile_thread): Adjust.
1291 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1292 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1293 to unique pointer, adjust.
1294 (struct linux_collect_regset_section_cb_data): Add constructor.
1295 <note_data>: Change type to unique pointer.
1296 <abort_iteration>: Change type to bool.
1297 (linux_collect_thread_registers): Return void, adjust.
1298 (struct linux_corefile_thread_data): Add constructor.
1299 <note_data>: Change type to unique pointer.
1300 (linux_corefile_thread): Adjust.
1301 (linux_make_corefile_notes): Return unique pointer, adjust.
1302
1303 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1304
1305 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1306 * gdbarch.c: Re-generate.
1307 * gdbarch.h: Re-generate.
1308 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1309 bool.
1310 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1311 Likewise.
1312 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1313 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1314 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1315 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1316
1317 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1318
1319 * gdbarch.sh: Make generated predicates return bool.
1320 * gdbarch.c: Re-generate.
1321 * gdbarch.h: Re-generate.
1322
1323 2020-10-20 Tom Tromey <tom@tromey.com>
1324
1325 * varobj-iter.h (struct varobj_item): Remove typedef.
1326
1327 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1328
1329 * infrun.c (currently_stepping): Change int to bool
1330 (maybe_software_singlestep): Likewise.
1331 (show_stop_on_solib_events): Likewise.
1332 (stepping_past_nonsteppable_watchpoint): Likewise.
1333 (displaced_step_in_progress_any_inferior): Likewise.
1334 (displaced_step_in_progress_thread): Likewise.
1335 (keep_going_stepped_thread): Likewise.
1336 (thread_still_needs_step_over): Likewise.
1337 (start_step_over): Likewise.
1338 (do_target_resume): Likewise.
1339 (resume_1): Likewise.
1340 (clear_proceed_status): Likewise.
1341 (thread_still_needs_step_over_bp): Likewise.
1342 (proceed): Likewise.
1343 (switch_back_to_stepped_thread): Likewise.
1344 (adjust_pc_after_break): Likewise.
1345 (stepped_in_from): Likewise.
1346 (handle_stop_requested): Likewise.
1347 (handle_syscall_event): Likewise.
1348 (handle_no_resumed): Likewise.
1349 (handle_inferior_event): Likewise.
1350 (finish_step_over): Likewise.
1351 (handle_signal_stop): Likewise.
1352 (process_event_stop_test): Likewise.
1353
1354 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1355
1356 * infrun.c (get_displaced_stepping_state): Fix comment.
1357
1358 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1359
1360 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1361
1362 2020-10-19 Tom Tromey <tromey@adacore.com>
1363
1364 PR tui/26719
1365 * tui/tui-winsource.h (struct tui_source_window_base)
1366 <refresh_window>: Rename from refresh_pad.
1367 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1368 Rename from refresh_pad.
1369 (tui_source_window_base::show_source_content)
1370 (tui_source_window_base::do_scroll_horizontal): Update.
1371
1372 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1373
1374 * thread.c (_initialize_thread): Fine-tune the help text of
1375 'info threads'.
1376
1377 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1378
1379 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1380
1381 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1382
1383 * breakpoint.c (handle_jit_event): Add an argument, change how
1384 `jit_event_handler` is called.
1385
1386 2020-10-17 Tom Tromey <tom@tromey.com>
1387
1388 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1389 (scan_xcoff_symtab): Update.
1390 * psymtab.h (class psymtab_storage) <global_psymbols,
1391 static_psymbols, current_global_psymbols,
1392 current_static_psymbols>: Remove.
1393 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1394 (match_partial_symbol, lookup_partial_symbol): Update.
1395 (print_partial_symbols): Change parameters.
1396 (dump_psymtab, recursively_search_psymtabs)
1397 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1398 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1399 (concat): Remove.
1400 (end_psymtab_common): Simplify.
1401 (append_psymbol_to_list): Change parameters.
1402 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1403 (init_psymbol_list): Simplify.
1404 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1405 * psympriv.h (struct partial_symtab) <empty>: New method.
1406 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1407 Remove.
1408 <global_psymbols, static_psymbols>: New members.
1409 <add_psymbol>: New methods.
1410 (add_psymbol_to_list): Don't declare.
1411 (psymbol_placement): Move earlier.
1412 * mdebugread.c (parse_partial_symbols): Update.
1413 (handle_psymbol_enumerators): Change parameters.
1414 (mdebug_expand_psymtab): Update.
1415 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1416 (add_partial_symbol): Update.
1417 * dwarf2/index-write.c (write_psymbols): Change parameters.
1418 (write_one_signatured_type): Update.
1419 (recursively_count_psymbols): Update.
1420 (recursively_write_psymbols): Update.
1421 (class debug_names) <recursively_write_psymbols>: Update.
1422 <write_psymbols>: Change parameters.
1423 <write_one_signatured_type>: Update.
1424 * dbxread.c (read_dbx_symtab): Update.
1425 (dbx_end_psymtab): Use partial_symtab::empty.
1426 * ctfread.c (struct ctf_context) <pst>: New member.
1427 (create_partial_symtab): Set it.
1428 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
1429 (scan_partial_symbols): Use the psymtab's context. Update.
1430
1431 2020-10-17 Tom Tromey <tom@tromey.com>
1432
1433 * valprint.c (generic_value_print): Remove comment.
1434 * m2-valprint.c (m2_value_print_inner): Remove comment.
1435 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
1436 type.
1437
1438 2020-10-17 Tom de Vries <tdevries@suse.de>
1439
1440 PR symtab/26317
1441 * source.c (select_source_symtab): Handling sal.symtab == NULL for
1442 symbol main.
1443
1444 2020-10-14 Tom de Vries <tdevries@suse.de>
1445
1446 PR gdb/26733
1447 * solib.c (solib_contains_address_p): Handle
1448 'solib->sections == nullptr'.
1449
1450 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1451
1452 PR gdb/26642
1453 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
1454 target can't do async.
1455 * target.c (target_wait): Assert that we don't pass
1456 TARGET_WNOHANG to a target that can't async.
1457
1458 2020-10-13 Kamil Rytarowski <n54@gmx.com>
1459
1460 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
1461 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
1462 * alpha-bsd-nat.c: Adjust include.
1463 * alpha-bsd-tdep.h: Adjust comment.
1464 * alpha-nbsd-tdep.c: Rename to ...
1465 * alpha-netbsd-tdep.c: ... this, adjust include.
1466 * amd64-nbsd-nat.c: Rename to ...
1467 * amd64-netbsd-nat.c: ... this, adjust include.
1468 * amd64-nbsd-tdep.c: Rename to ...
1469 * amd64-netbsd-tdep.c: ... this, adjust include.
1470 * amd64-tdep.h: Adjust include.
1471 * arm-nbsd-nat.c: Rename to ...
1472 * arm-netbsd-nat.c: ... this, adjust include.
1473 * arm-nbsd-tdep.c: Rename to ...
1474 * arm-netbsd-tdep.c: ... this, adjust include.
1475 * arm-nbsd-tdep.h: Rename to ...
1476 * arm-netbsd-tdep.h: ... this, adjust include.
1477 * configure.nat: Adjust file lists.
1478 * configure.tgt: Likewise.
1479 * hppa-nbsd-nat.c: Rename to ...
1480 * hppa-netbsd-nat.c: ... this, adjust include.
1481 * hppa-nbsd-tdep.c: Rename to ...
1482 * hppa-netbsd-tdep.c: ... this, adjust include.
1483 * i386-nbsd-nat.c: Rename to ...
1484 * i386-netbsd-nat.c: ... this, adjust include.
1485 * i386-nbsd-tdep.c: Rename to ...
1486 * i386-netbsd-tdep.c: ... this, adjust include.
1487 * m68k-bsd-nat.c: Adjust include.
1488 * mips-nbsd-nat.c: Rename to ...
1489 * mips-netbsd-nat.c: ... this, adjust include.
1490 * mips-nbsd-tdep.c: Rename to ...
1491 * mips-netbsd-tdep.c: ... this, adjust include.
1492 * mips-nbsd-tdep.h: Rename to ...
1493 * mips-netbsd-tdep.h: ... this.
1494 * nbsd-nat.c: Rename to ...
1495 * netbsd-nat.c: ... this, adjust include.
1496 * nbsd-nat.h: Rename to ...
1497 * netbsd-nat.h: ... this, adjust include.
1498 * nbsd-tdep.c: Rename to ...
1499 * netbsd-tdep.c: ... this, adjust include.
1500 * nbsd-tdep.h: Rename to ...
1501 * netbsd-tdep.h: ... this.
1502 * ppc-nbsd-nat.c: Rename to ...
1503 * ppc-netbsd-nat.c: ... this, adjust include.
1504 * ppc-nbsd-tdep.c: Rename to ...
1505 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
1506 * ppc-nbsd-tdep.h: Rename to ...
1507 * ppc-netbsd-tdep.h: ... this.
1508 * sh-nbsd-nat.c: Rename to ...
1509 * sh-netbsd-nat.c: ... this, adjust include.
1510 * sh-nbsd-tdep.c: Rename to ...
1511 * sh-netbsd-tdep.c: ... this, adjust include.
1512 * sparc-nbsd-nat.c: Rename to ...
1513 * sparc-netbsd-nat.c: ... this.
1514 * sparc-nbsd-tdep.c: Rename to ...
1515 * sparc-netbsd-tdep.c: ... this, adjust include.
1516 * sparc64-nbsd-nat.c: Rename to ...
1517 * sparc64-netbsd-nat.c: ... this.
1518 * sparc64-nbsd-tdep.c: Rename to ...
1519 * sparc64-netbsd-tdep.c: ... this, adjust include.
1520 * sparc64-tdep.h: Adjust comment.
1521 * vax-bsd-nat.c: Adjust include.
1522 * vax-nbsd-tdep.c: Rename to ...
1523 * vax-netbsd-tdep.c: ... this, adjust include.
1524
1525 2020-10-12 Tom Tromey <tom@tromey.com>
1526
1527 * target.h (struct target_ops) <get_section_table>: Update.
1528 (target_get_section_table): Update.
1529 * target.c (target_get_section_table, target_section_by_addr)
1530 (memory_xfer_partial_1): Update.
1531 * target-section.h (target_section_table): Now an alias.
1532 * target-delegates.c: Rebuild.
1533 * target-debug.h (target_debug_print_target_section_table_p):
1534 Rename from target_debug_print_struct_target_section_table_p.
1535 * symfile.c (build_section_addr_info_from_section_table): Update.
1536 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1537 * solib-svr4.c (scan_dyntag): Update.
1538 * solib-dsbt.c (scan_dyntag): Update.
1539 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1540 Update.
1541 * record-full.c (record_full_core_target::xfer_partial): Update.
1542 * progspace.h (struct program_space) <target_sections>: Update.
1543 * exec.h (print_section_info): Update.
1544 * exec.c (exec_target::close, build_section_table)
1545 (add_target_sections, add_target_sections_of_objfile)
1546 (remove_target_sections, exec_on_vfork)
1547 (section_table_available_memory)
1548 (section_table_xfer_memory_partial)
1549 (exec_target::get_section_table, exec_target::xfer_partial)
1550 (print_section_info, set_section_command)
1551 (exec_set_section_address, exec_target::has_memory): Update.
1552 * corelow.c (core_target::build_file_mappings)
1553 (core_target::xfer_partial, core_target::info_proc_mappings)
1554 (core_target::info_proc_mappings): Update.
1555 * bfd-target.c (class target_bfd): Update
1556
1557 2020-10-12 Tom Tromey <tom@tromey.com>
1558
1559 * progspace.c (program_space::~program_space): Don't call
1560 clear_section_table.
1561 * exec.h (clear_section_table): Don't declare.
1562 * exec.c (exec_target::close): Update.
1563 (clear_section_table): Remove.
1564
1565 2020-10-12 Tom Tromey <tom@tromey.com>
1566
1567 * exec.c (add_target_sections_of_objfile): Simplify.
1568
1569 2020-10-12 Tom Tromey <tom@tromey.com>
1570
1571 * solib.c (solib_map_sections): Update.
1572 * record-full.c (record_full_core_open_1): Update.
1573 * exec.h (build_section_table): Return a target_section_table.
1574 * exec.c (exec_file_attach): Update.
1575 (build_section_table): Return a target_section_table.
1576 * corelow.c (core_target::core_target): Update.
1577 * bfd-target.c (target_bfd::target_bfd): Update.
1578
1579 2020-10-12 Tom Tromey <tom@tromey.com>
1580
1581 * target.c (target_section_by_addr, memory_xfer_partial_1):
1582 Update.
1583 * target-section.h (struct target_section_table): Use
1584 std::vector.
1585 * symfile.h (build_section_addr_info_from_section_table): Take a
1586 target_section_table.
1587 * symfile.c (build_section_addr_info_from_section_table): Take a
1588 target_section_table.
1589 * solist.h (struct so_list) <sections>: Change type.
1590 <sections_end>: Remove.
1591 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1592 (solib_contains_address_p): Update.
1593 * solib-svr4.c (scan_dyntag): Update.
1594 * solib-dsbt.c (scan_dyntag): Update.
1595 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1596 Update.
1597 * record-full.c (record_full_core_start, record_full_core_end):
1598 Remove.
1599 (record_full_core_sections): New global.
1600 (record_full_core_open_1, record_full_core_target::xfer_partial):
1601 Update.
1602 * exec.h (build_section_table, section_table_xfer_memory_partial)
1603 (add_target_sections): Take a target_section_table.
1604 * exec.c (exec_file_attach, clear_section_table): Update.
1605 (resize_section_table): Remove.
1606 (build_section_table, add_target_sections): Take a
1607 target_section_table.
1608 (add_target_sections_of_objfile, remove_target_sections)
1609 (exec_on_vfork): Update.
1610 (section_table_available_memory): Take a target_section_table.
1611 (section_table_read_available_memory): Update.
1612 (section_table_xfer_memory_partial): Take a target_section_table.
1613 (print_section_info, set_section_command)
1614 (exec_set_section_address, exec_target::has_memory): Update.
1615 * corelow.c (class core_target) <m_core_section_table,
1616 m_core_file_mappings>: Remove braces.
1617 <~core_target>: Remove.
1618 (core_target::core_target): Update.
1619 (core_target::~core_target): Remove.
1620 (core_target::build_file_mappings)
1621 (core_target::xfer_memory_via_mappings)
1622 (core_target::xfer_partial, core_target::info_proc_mappings):
1623 Update.
1624 * bfd-target.c (target_bfd::xfer_partial): Update.
1625 (target_bfd::target_bfd): Update.
1626 (target_bfd::~target_bfd): Remove.
1627
1628 2020-10-12 Tom Tromey <tom@tromey.com>
1629
1630 * target.h (struct target_section, struct target_section_table):
1631 Move to target-section.h.
1632 * target-section.h: New file.
1633
1634 2020-10-12 Pedro Alves <pedro@palves.net>
1635
1636 PR exp/26602
1637 * valops.c (struct struct_field_searcher): New.
1638 (update_search_result): Rename to ...
1639 (struct_field_searcher::update_result): ... this. Simplify
1640 prototype. Record all found fields.
1641 (do_search_struct_field): Rename to ...
1642 (struct_field_searcher::search): ... this. Simplify prototype.
1643 Maintain stack of visited baseclass path. Call update_result for
1644 fields too. Keep searching fields in baseclasses instead of
1645 stopping at the first found field.
1646 (search_struct_field): Use struct_field_searcher. When looking
1647 for fields, report ambiguous access attempts.
1648
1649 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * frame.c (inside_main_func): Check full symbols as well as
1652 minimal symbols.
1653
1654 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1655
1656 * ada-lang.c (advance_wild_match): Rewrite the function's
1657 description. Change the type of target0, t0 and t1 to char.
1658
1659 2020-10-09 Tom Tromey <tromey@adacore.com>
1660
1661 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1662
1663 2020-10-09 Tom Tromey <tromey@adacore.com>
1664
1665 * ada-lang.h (ada_encode): Return std::string.
1666 * ada-lang.c (ada_encode_1): Return std::string.
1667 (ada_encode): Likewise.
1668 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1669 Update.
1670 * ada-exp.y (block_lookup, write_var_or_type): Update.
1671
1672 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1673
1674 PR exp/26714
1675 * printcmd.c (print_formatted): Handle void results as
1676 unformatted prints.
1677
1678 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1679
1680 * arch/aarch32.c (aarch32_create_target_description): Release the
1681 target_desc_up as late as possible.
1682 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1683 * arch/amd64.c (amd64_create_target_description): Likewise.
1684 * arch/arc.c (arc_create_target_description): Return a
1685 target_desc_up, don't release it.
1686 * arch/arc.h (arc_create_target_description): Update declaration.
1687 (arc_lookup_target_description): Move target_desc_up into the
1688 cache, and return a borrowed pointer.
1689 * arch/arm.c (arm_create_target_description): Release the
1690 target_desc_up as late as possible.
1691 * arch/i386.c (i386_create_target_description): Likewise.
1692 * arch/riscv.h (riscv_create_target_description): Update
1693 declaration to match definition.
1694 * arch/tic6x.c (tic6x_create_target_description): Release the
1695 target_desc_up as late as possible.
1696
1697 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1698
1699 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1700 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1701
1702 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1703
1704 * source.c (directory_command): Notify observers that "directories"
1705 parameter has changed.
1706
1707 2020-10-08 Tom Tromey <tom@tromey.com>
1708
1709 * cli/cli-cmds.c (print_disassembly): Style function name and
1710 addresses. Add _() wrappers.
1711
1712 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1713
1714 * NEWS: Mention ARC support in GDBserver.
1715
1716 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1717
1718 * arch/aarch32.c (aarch32_create_target_description): Release
1719 unique_ptr returned from allocate_target_description.
1720 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1721 * arch/amd64.c (amd64_create_target_description): Likewise.
1722 * arch/arc.c (arc_create_target_description): Likewise.
1723 * arch/arm.c (arm_create_target_description): Likewise.
1724 * arch/i386.c (i386_create_target_description): Likewise.
1725 * arch/riscv.c (riscv_create_target_description): Update return
1726 type. Handle allocate_target_description returning a unique_ptr.
1727 (riscv_lookup_target_description): Update to handle unique_ptr.
1728 * arch/tic6x.c (tic6x_create_target_description): Release
1729 unique_ptr returned from allocate_target_description.
1730 * features/microblaze-with-stack-protect.c: Regenerate.
1731 * features/microblaze.c: Regenerate.
1732 * features/mips-dsp-linux.c: Regenerate.
1733 * features/mips-linux.c: Regenerate.
1734 * features/mips64-dsp-linux.c: Regenerate.
1735 * features/mips64-linux.c: Regenerate.
1736 * features/nds32.c: Regenerate.
1737 * features/nios2.c: Regenerate.
1738 * features/or1k.c: Regenerate.
1739 * features/rs6000/powerpc-32.c: Regenerate.
1740 * features/rs6000/powerpc-32l.c: Regenerate.
1741 * features/rs6000/powerpc-403.c: Regenerate.
1742 * features/rs6000/powerpc-403gc.c: Regenerate.
1743 * features/rs6000/powerpc-405.c: Regenerate.
1744 * features/rs6000/powerpc-505.c: Regenerate.
1745 * features/rs6000/powerpc-601.c: Regenerate.
1746 * features/rs6000/powerpc-602.c: Regenerate.
1747 * features/rs6000/powerpc-603.c: Regenerate.
1748 * features/rs6000/powerpc-604.c: Regenerate.
1749 * features/rs6000/powerpc-64.c: Regenerate.
1750 * features/rs6000/powerpc-64l.c: Regenerate.
1751 * features/rs6000/powerpc-7400.c: Regenerate.
1752 * features/rs6000/powerpc-750.c: Regenerate.
1753 * features/rs6000/powerpc-860.c: Regenerate.
1754 * features/rs6000/powerpc-altivec32.c: Regenerate.
1755 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1756 * features/rs6000/powerpc-altivec64.c: Regenerate.
1757 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1758 * features/rs6000/powerpc-e500.c: Regenerate.
1759 * features/rs6000/powerpc-e500l.c: Regenerate.
1760 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1761 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1762 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1763 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1764 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1765 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1766 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1767 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1768 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1769 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1770 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1771 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1772 * features/rs6000/powerpc-vsx32.c: Regenerate.
1773 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1774 * features/rs6000/powerpc-vsx64.c: Regenerate.
1775 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1776 * features/rs6000/rs6000.c: Regenerate.
1777 * features/rx.c: Regenerate.
1778 * features/s390-gs-linux64.c: Regenerate.
1779 * features/s390-linux32.c: Regenerate.
1780 * features/s390-linux32v1.c: Regenerate.
1781 * features/s390-linux32v2.c: Regenerate.
1782 * features/s390-linux64.c: Regenerate.
1783 * features/s390-linux64v1.c: Regenerate.
1784 * features/s390-linux64v2.c: Regenerate.
1785 * features/s390-te-linux64.c: Regenerate.
1786 * features/s390-tevx-linux64.c: Regenerate.
1787 * features/s390-vx-linux64.c: Regenerate.
1788 * features/s390x-gs-linux64.c: Regenerate.
1789 * features/s390x-linux64.c: Regenerate.
1790 * features/s390x-linux64v1.c: Regenerate.
1791 * features/s390x-linux64v2.c: Regenerate.
1792 * features/s390x-te-linux64.c: Regenerate.
1793 * features/s390x-tevx-linux64.c: Regenerate.
1794 * features/s390x-vx-linux64.c: Regenerate.
1795 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1796 from allocate_target_description.
1797 * target-descriptions.c (allocate_target_description): Update
1798 return type.
1799 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1800 allocate_target_description.
1801
1802 2020-10-07 Tom Tromey <tromey@adacore.com>
1803
1804 * unittests/search-memory-selftests.c: New file.
1805 * Makefile.in (SELFTESTS_SRCS): Add
1806 unittests/search-memory-selftests.c.
1807
1808 2020-10-07 Tom Tromey <tromey@adacore.com>
1809
1810 PR gdb/16930:
1811 * findcmd.c (_initialize_mem_search): Mention that the range is
1812 inclusive.
1813
1814 2020-10-07 Tom Tromey <tromey@adacore.com>
1815
1816 * target.h (simple_search_memory): Don't declare.
1817 * target.c (simple_search_memory): Move to gdbsupport.
1818 (default_search_memory): Update.
1819 * remote.c (remote_target::search_memory): Update.
1820
1821 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1822
1823 * Makefile.in (COMPILE): Add CXXFLAGS.
1824 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1825 (check-headers): Add CXXFLAGS.
1826
1827 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1828
1829 * arc-linux-tdep.h: New file.
1830 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1831 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1832 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1833 arc_linux_gregset, arc_linux_v2_regset,
1834 arc_linux_iterate_over_regset_sections,
1835 arc_linux_core_read_description): Implement.
1836 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1837 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1838 (arc_gdbarch_features_create): Add.
1839 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1840
1841 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1842
1843 * arch/arc.h: Rename "arc_gdbarch_features" to
1844 "arc_arch_features".
1845 * arc-tdep.h: Likewise.
1846 * arc-tdep.c: Likewise.
1847
1848 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1849
1850 * infcmd.c (attach_command): Remove the redundant call to
1851 `clear_proceed_status`.
1852
1853 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1854
1855 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1856
1857 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1858
1859 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1860 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1861 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1862
1863 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1864
1865 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1866 (_initialize_break_catch_sig): Don't allocate array.
1867
1868 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1869
1870 * symtab.c (find_pc_line): Return unmapped addresses when the
1871 requested address is also unmapped.
1872
1873 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1874
1875 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1876 tui/tui-out.h.
1877
1878 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1879
1880 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1881 type::is_vector instead of TYPE_VECTOR.
1882
1883 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1884
1885 * auto-load.c (auto_load_objfile_script_1): Don't use
1886 debugfile_holder as temporary variable when stripping drive
1887 letter.
1888
1889 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1890
1891 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1892 Add TYPE_CODE_COMPLEX.
1893 (amd64_windows_return_value): Fix types returned via XMM0.
1894
1895 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1896
1897 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1898 AArch64/ARM maintainers.
1899
1900 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1901
1902 * NEWS: Mention set/show debug event-loop.
1903
1904 2020-10-02 Tom Tromey <tromey@adacore.com>
1905
1906 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1907 REG_EXTENDED.
1908
1909 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1910
1911 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1912 * procfs.c (procfs_inferior_created): Remove.
1913 (_initialize_procfs): Don't register procfs_inferior_created.
1914
1915 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1916
1917 * async-event.c (invoke_async_signal_handlers): Add debug
1918 print.
1919 (check_async_event_handlers): Likewise.
1920 * event-top.c (show_debug_event_loop): New function.
1921 (_initialize_event_top): Register "set debug event-loop"
1922 setting.
1923
1924 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1927 * debug.h: Remove.
1928 * infrun.c: Include gdbsupport/common-debug.h.
1929 * linux-nat.c: Likewise.
1930
1931 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1932
1933 * async-event.h (create_async_signal_handler): Add name
1934 parameter.
1935 (create_async_event_handler): Likewise.
1936 * async-event.c (struct async_signal_handler) <name>: New field.
1937 (struct async_event_handler) <name>: New field.
1938 (create_async_signal_handler): Assign name.
1939 (create_async_event_handler): Assign name.
1940 * event-top.c (async_init_signals): Pass name when creating
1941 handler.
1942 * infrun.c (_initialize_infrun): Likewise.
1943 * record-btrace.c (record_btrace_push_target): Likewise.
1944 * record-full.c (record_full_open): Likewise.
1945 * remote-notif.c (remote_notif_state_allocate): Likewise.
1946 * remote.c (remote_target::open_1): Likewise.
1947 * tui/tui-win.c (tui_initialize_win): Likewise.
1948
1949 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1950
1951 * async-event.c (initialize_async_signal_handlers): Pass name to
1952 add_file_handler
1953 * event-top.c (ui_register_input_event_handler): Likewise.
1954 * linux-nat.c (linux_nat_target::async): Likewise.
1955 * run-on-main-thread.c (_initialize_run_on_main_thread):
1956 Likewise
1957 * ser-base.c (reschedule): Likewise.
1958 (ser_base_async): Likewise.
1959 * tui/tui-io.c: Likewise.
1960 * top.h (struct ui) <num>: New field.
1961 * top.c (highest_ui_num): New variable.
1962 (ui::ui): Initialize num.
1963
1964 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 * observable.h <inferior_created>: Remove parameters. Update all
1967 listeners.
1968 * inferior.h (post_create_inferior): Remove target parameter.
1969 Update all callers.
1970
1971 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1972
1973 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1974 and DW_MACRO_undef_strx.
1975 (dwarf_decode_macros): Likewise
1976 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1977 which is the value of DW_AT_str_offsets_base.
1978 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1979 str_offsets_base.
1980
1981 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1982
1983 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1984
1985 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1986
1987 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1988 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1989
1990 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1991
1992 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1993
1994 2020-09-30 Tom de Vries <tdevries@suse.de>
1995
1996 PR symtab/26683
1997 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1998
1999 2020-09-30 Tom Tromey <tromey@adacore.com>
2000
2001 * dwarf2/read.c (handle_variant): Use constant_value.
2002
2003 2020-09-29 Tom Tromey <tom@tromey.com>
2004
2005 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2006 (read_file_scope, dwarf2_get_pc_bounds)
2007 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2008 (read_structure_type, handle_struct_member_die)
2009 (read_enumeration_type, read_array_type, read_set_type)
2010 (read_tag_pointer_type, read_tag_reference_type)
2011 (read_subroutine_type, read_base_type, read_subrange_type)
2012 (read_full_die_1, partial_die_info::read)
2013 (partial_die_info::read, by, new_symbol)
2014 (dwarf2_const_value_data, dwarf2_const_value_attr)
2015 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2016 (prepare_one_comp_unit): Update.
2017 * dwarf2/attribute.h (DW_UNSND): Remove.
2018
2019 2020-09-29 Tom Tromey <tom@tromey.com>
2020
2021 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2022 (read_subroutine_type, partial_die_info::read)
2023 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2024 (dwarf2_add_member_fn): Update.
2025 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2026 * dwarf2/attribute.c (attribute::as_boolean): New method.
2027
2028 2020-09-29 Tom Tromey <tom@tromey.com>
2029
2030 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2031 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2032 method.
2033 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2034
2035 2020-09-29 Tom Tromey <tom@tromey.com>
2036
2037 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2038 the attribute's form.
2039
2040 2020-09-29 Tom Tromey <tom@tromey.com>
2041
2042 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2043 (dwarf2_add_member_fn): Update.
2044 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2045 * dwarf2/attribute.c (attribute::defaulted): New method, from
2046 is_valid_DW_AT_defaulted.
2047
2048 2020-09-29 Tom Tromey <tom@tromey.com>
2049
2050 * dwarf2/read.c (dw2_get_file_names_reader)
2051 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2052 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2053 (dwarf2_symbol_mark_computed): Use as_unsigned.
2054 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2055 method.
2056 <form_is_section_offset>: Update comment.
2057
2058 2020-09-29 Tom Tromey <tom@tromey.com>
2059
2060 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2061 dwarf2_default_access_attribute. Look up attribute.
2062 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2063 Update.
2064
2065 2020-09-29 Tom Tromey <tom@tromey.com>
2066
2067 * dwarf2/read.c (skip_one_die): Update.
2068 (read_full_die_1): Change how reprocessing is done.
2069 (partial_die_info::read): Update.
2070 (read_attribute_value): Remove need_reprocess parameter.
2071 (read_attribute): Likewise.
2072 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2073 New method.
2074
2075 2020-09-29 Tom Tromey <tom@tromey.com>
2076
2077 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2078 (dwarf2_const_value_attr, dump_die_shallow)
2079 (dwarf2_fetch_constant_bytes): Update.
2080 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2081 comment.
2082 <set_address>: New method.
2083 (DW_ADDR): Remove.
2084 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2085 (attribute::as_string, attribute::as_address): Add assert.
2086
2087 2020-09-29 Tom Tromey <tom@tromey.com>
2088
2089 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2090 (read_attribute_reprocess, read_attribute_value): Update.
2091 (read_attribute): Clear requires_reprocessing.
2092 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2093 form_requires_reprocessing>: New methods.
2094 <string_init>: Clear requires_reprocessing.
2095 <set_unsigned_reprocess>: New method.
2096 <name>: Shrink by one bit.
2097 <requires_reprocessing>: New member.
2098 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2099 method.
2100
2101 2020-09-29 Tom Tromey <tom@tromey.com>
2102
2103 * dwarf2/read.c (read_attribute_value): Update.
2104 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2105 set_unsigned>: New methods.
2106 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2107
2108 2020-09-29 Tom Tromey <tom@tromey.com>
2109
2110 * dwarf2/read.c (get_alignment, read_array_order)
2111 (read_attribute_value, dwarf2_const_value_attr)
2112 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2113 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2114 New methods.
2115 (DW_SND): Remove.
2116
2117 2020-09-29 Tom Tromey <tom@tromey.com>
2118
2119 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2120 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2121 Update.
2122 * dwarf2/attribute.h (struct attribute) <as_signature,
2123 set_signature>: New methods.
2124 (DW_SIGNATURE): Remove.
2125
2126 2020-09-29 Tom Tromey <tom@tromey.com>
2127
2128 * dwarf2/read.c (read_call_site_scope)
2129 (handle_data_member_location, dwarf2_add_member_fn)
2130 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2131 (partial_die_info::read, read_attribute_value)
2132 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2133 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2134 (dwarf2_symbol_mark_computed): Update.
2135 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2136 methods.
2137 (DW_BLOCK): Remove.
2138 * dwarf2/attribute.c (attribute::form_is_block): Add
2139 DW_FORM_data16.
2140
2141 2020-09-29 Tom Tromey <tom@tromey.com>
2142
2143 * dwarf2/read.c (read_cutu_die_from_dwo)
2144 (read_attribute_reprocess, read_attribute_value, read_attribute)
2145 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2146 (dwarf2_fetch_constant_bytes): Update.
2147 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2148 <set_string_noncanonical, set_string_canonical>: New methods.
2149 <string_is_canonical>: Update comment.
2150 <canonical_string_p>: Add assert.
2151 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2152 * dwarf2/attribute.c (attribute::form_is_string): New method.
2153 (attribute::string): Use it.
2154
2155 2020-09-29 Tom Tromey <tom@tromey.com>
2156
2157 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2158 (dump_die_shallow): Use canonical_string_p.
2159 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2160 method.
2161
2162 2020-09-29 Tom Tromey <tom@tromey.com>
2163
2164 * dwarf2/read.c (partial_die_info::read)
2165 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2166 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2167 attribute::as_string.
2168
2169 2020-09-29 Tom Tromey <tom@tromey.com>
2170
2171 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2172 DW_ADDR.
2173 (attribute::string): Don't use DW_STRING.
2174 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2175 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2176
2177 2020-09-29 Tom Tromey <tom@tromey.com>
2178
2179 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2180 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2181 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2182 * dwarf2/attribute.h (struct attribute): Rename methods.
2183 * dwarf2/attribute.c (attribute::as_address): Rename from
2184 value_as_address.
2185 (attribute::as_string): Rename from value_as_string.
2186
2187 2020-09-29 Tom Tromey <tom@tromey.com>
2188
2189 * dwarf2/read.c (partial_die_info::read) <case
2190 DW_AT_linkage_name>: Use value_as_string.
2191 (dwarf2_string_attr): Use value_as_string.
2192 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2193 method.
2194 * dwarf2/attribute.c (attribute::value_as_string): New method.
2195
2196 2020-09-29 Pedro Alves <pedro@palves.net>
2197
2198 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2199 defined before using '#pragma GCC diagnostic' instead of checking
2200 __clang__.
2201
2202 2020-09-28 Tom Tromey <tom@tromey.com>
2203
2204 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2205 (handle_signal_stop): Update.
2206 * procfs.c (procfs_target::insert_watchpoint): Update.
2207 * target.h (target_have_steppable_watchpoint): Now a function.
2208
2209 2020-09-28 Tom Tromey <tom@tromey.com>
2210
2211 * infrun.c (set_schedlock_func): Update.
2212 * target.h (target_can_lock_scheduler): Now a function.
2213
2214 2020-09-28 Tom Tromey <tom@tromey.com>
2215
2216 * inferior.h (class inferior) <has_execution>: Update.
2217 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2218 * valops.c (find_function_in_inferior)
2219 (value_allocate_space_in_inferior): Update.
2220 * top.c (kill_or_detach): Update.
2221 * target.c (target_preopen, set_target_permissions): Update.
2222 (target_has_execution_current): Remove.
2223 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2224 Update.
2225 * solib.c (update_solib_list, reload_shared_libraries): Update.
2226 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2227 * solib-dsbt.c (enable_break): Update.
2228 * score-tdep.c (score7_fetch_inst): Update.
2229 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2230 Update.
2231 * remote.c (remote_target::start_remote)
2232 (remote_target::remote_check_symbols, remote_target::open_1)
2233 (remote_target::remote_detach_1, remote_target::verify_memory)
2234 (remote_target::xfer_partial, remote_target::read_description)
2235 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2236 * record-full.c (record_full_open_1): Update.
2237 * record-btrace.c (record_btrace_target_open): Update.
2238 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2239 (value_nsstring): Update.
2240 * linux-thread-db.c (add_thread_db_info)
2241 (thread_db_find_new_threads_silently, check_thread_db_callback)
2242 (try_thread_db_load_1, record_thread): Update.
2243 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2244 Update.
2245 * linux-fork.c (checkpoint_command): Update.
2246 * infrun.c (set_non_stop, set_observer_mode)
2247 (check_multi_target_resumption, for_each_just_stopped_thread)
2248 (maybe_remove_breakpoints, normal_stop)
2249 (class infcall_suspend_state): Update.
2250 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2251 (info_program_command, attach_command): Update.
2252 * infcall.c (call_function_by_hand_dummy): Update.
2253 * inf-loop.c (inferior_event_handler): Update.
2254 * gcore.c (gcore_command, derive_heap_segment): Update.
2255 * exec.c (exec_file_command): Update.
2256 * eval.c (evaluate_subexp): Update.
2257 * compile/compile.c (compile_to_object): Update.
2258 * cli/cli-dump.c (restore_command): Update.
2259 * breakpoint.c (update_watchpoint)
2260 (update_inserted_breakpoint_locations)
2261 (insert_breakpoint_locations, get_bpstat_thread): Update.
2262 * target.h (target_has_execution): Remove macro.
2263 (target_has_execution_current): Don't declare.
2264 (target_has_execution): Rename from target_has_execution_1. Add
2265 argument default.
2266
2267 2020-09-28 Tom Tromey <tom@tromey.com>
2268
2269 * mi/mi-main.c (exec_reverse_continue)
2270 (mi_cmd_list_target_features): Update.
2271 * infrun.c (set_exec_direction_func): Update.
2272 * target.c (default_execution_direction): Update.
2273 * reverse.c (exec_reverse_once): Update.
2274 * target.h (target_can_execute_reverse): Now a function.
2275
2276 2020-09-28 Tom Tromey <tom@tromey.com>
2277
2278 * tui/tui-regs.c (tui_get_register)
2279 (tui_data_window::show_registers): Update.
2280 * thread.c (scoped_restore_current_thread::restore)
2281 (scoped_restore_current_thread::scoped_restore_current_thread):
2282 Update.
2283 * regcache-dump.c (regcache_print): Update.
2284 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2285 Update.
2286 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2287 * mep-tdep.c (current_me_module, current_options): Update.
2288 * linux-thread-db.c (thread_db_load): Update.
2289 * infcmd.c (registers_info, info_vector_command)
2290 (info_float_command): Update.
2291 * ia64-tdep.c (ia64_frame_prev_register)
2292 (ia64_sigtramp_frame_prev_register): Update.
2293 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2294 * gcore.c (derive_stack_segment): Update.
2295 * frame.c (get_current_frame, has_stack_frames): Update.
2296 * findvar.c (language_defn::read_var_value): Update.
2297 * arm-tdep.c (arm_pc_is_thumb): Update.
2298 * target.c (target_has_registers): Rename from
2299 target_has_registers_1.
2300 * target.h (target_has_registers): Remove macro.
2301 (target_has_registers): Rename from target_has_registers_1.
2302
2303 2020-09-28 Tom Tromey <tom@tromey.com>
2304
2305 * windows-tdep.c (tlb_make_value): Update.
2306 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2307 * thread.c (scoped_restore_current_thread::restore)
2308 (scoped_restore_current_thread::scoped_restore_current_thread)
2309 (thread_command): Update.
2310 * stack.c (backtrace_command_1, frame_apply_level_command)
2311 (frame_apply_all_command, frame_apply_command): Update.
2312 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2313 Update.
2314 * gcore.c (derive_stack_segment): Update.
2315 * frame.c (get_current_frame, has_stack_frames): Update.
2316 * auxv.c (info_auxv_command): Update.
2317 * ada-tasks.c (ada_build_task_list): Update.
2318 * target.c (target_has_stack): Rename from target_has_stack_1.
2319 * target.h (target_has_stack): Remove macro.
2320 (target_has_stack): Rename from target_has_stack_1.
2321
2322 2020-09-28 Tom Tromey <tom@tromey.com>
2323
2324 * target.c (target_has_memory): Rename from target_has_memory_1.
2325 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2326 * thread.c (scoped_restore_current_thread::restore)
2327 (scoped_restore_current_thread::scoped_restore_current_thread):
2328 Update.
2329 * frame.c (get_current_frame, has_stack_frames): Update.
2330 * target.h (target_has_memory): Remove macro.
2331 (target_has_memory): Rename from target_has_memory_1.
2332
2333 2020-09-28 Tom Tromey <tom@tromey.com>
2334
2335 * target.c (target_has_all_memory_1): Remove.
2336 * target.h (target_has_all_memory): Remove define.
2337 (target_has_all_memory_1): Don't declare.
2338
2339 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2340
2341 * ser-base.c: Adjust comments formatting.
2342
2343 2020-09-27 Tom Tromey <tom@tromey.com>
2344
2345 PR tui/25342:
2346 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2347
2348 2020-09-27 Tom Tromey <tom@tromey.com>
2349
2350 PR tui/25342:
2351 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2352
2353 2020-09-27 Tom Tromey <tom@tromey.com>
2354
2355 * unittests/tui-selftests.c: Update.
2356 * tui/tui-winsource.h (struct tui_source_window_base)
2357 <extra_margin, show_line_number, refresh_pad>: New methods.
2358 <m_max_length, m_pad>: New members.
2359 (tui_copy_source_line): Update.
2360 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2361 first_col, line_width, ndigits parameters. Add length.
2362 (tui_source_window_base::show_source_line): Write to pad. Line
2363 number now 0-based.
2364 (tui_source_window_base::refresh_pad): New method.
2365 (tui_source_window_base::show_source_content): Write to pad. Call
2366 refresh_pad.
2367 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2368 not refill.
2369 (tui_source_window_base::update_exec_info): Call
2370 show_line_number.
2371 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2372 method.
2373 <m_digits>: New member.
2374 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2375 and m_max_length.
2376 (tui_source_window::show_line_number): New method.
2377 * tui/tui-io.h (tui_puts): Fix comment.
2378 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2379 m_max_length.
2380
2381 2020-09-27 Tom Tromey <tom@tromey.com>
2382
2383 * tui/tui-winsource.c
2384 (tui_source_window_base::set_is_exec_point_at): Don't call
2385 show_source_line.
2386
2387 2020-09-27 Tom Tromey <tom@tromey.com>
2388
2389 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2390 method.
2391 <erase>: Update.
2392 <cursor_x, cursor_y>: Remove.
2393 <m_inner_window>: New member.
2394 (tui_py_window::rerender): Create inner window.
2395 (tui_py_window::output): Write to inner window.
2396
2397 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2398
2399 PR python/26586
2400 * cli/cli-script.c (execute_control_commands): don't set
2401 instream to nullptr here as this breaks the from_tty argument
2402 to gdb.execute in Python.
2403 (execute_user_command): set instream to nullptr here instead.
2404
2405 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
2406
2407 * infrun.h (infrun_debug_printf): Fix formatting.
2408 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2409
2410 2020-09-25 Saagar Jha <saagar@saagarjha.com>
2411
2412 * compile/compile-object-load.h (struct munmap_list): Add
2413 explicitly-defined move constructor.
2414
2415 2020-09-24 Tom Tromey <tromey@adacore.com>
2416
2417 PR tui/26638:
2418 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
2419 method.
2420 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
2421 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
2422 (tui_prev_win): Rewrite.
2423
2424 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
2425
2426 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
2427 in WOW64 processes as SIGINT.
2428 * nat/windows-nat.h: Make wow64_process a shared variable.
2429 * windows-nat.c: Remove static wow64_process variable.
2430
2431 2020-09-23 Tom Tromey <tom@tromey.com>
2432
2433 PR symtab/25470:
2434 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
2435 offset and bit size.
2436 * printcmd.c (print_scalar_formatted): Handle zero-length
2437 integer.
2438 (print_scalar_formatted): Use bit_size_differs_p.
2439 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
2440 constant.
2441 (union type_specific): <int_stuff>: New member.
2442 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
2443 methods.
2444 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
2445 TYPE_SPECIFIC_FIELD.
2446 (recursive_dump_type, copy_type_recursive): Update.
2447 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
2448 DW_AT_data_bit_offset.
2449
2450 2020-09-23 Tom Tromey <tom@tromey.com>
2451
2452 * utils.h (class gdb_argv): Add move operators.
2453 <append>: New methods.
2454 * compile/compile.c (build_argc_argv): Remove.
2455 (compile_args_argc): Remove.
2456 (compile_args_argv): Change type.
2457 (set_compile_args): Simplify.
2458 (append_args): Remove.
2459 (filter_args): Remove argcp parameter.
2460 (get_args): Return gdb_argv. Simplify.
2461 (compile_to_object): Update.
2462
2463 2020-09-23 Tom Tromey <tom@tromey.com>
2464
2465 * compile/compile-object-run.c (do_module_cleanup)
2466 <~do_module_cleanup> :Remove.
2467 (do_module_cleanup): Update.
2468 * compile/compile-object-load.h (struct munmap_list): Add move
2469 assignment operator.
2470 <source_file>: Now a std::string.
2471 <munmap_list>: Rename. No longer a pointer.
2472 * compile/compile-object-load.c (struct setup_sections_data): Add
2473 constructor.
2474 <setup_one_section>: Declare.
2475 <munmap_list>: Move earlier.
2476 <m_bfd>: New member.
2477 <m_last_size, m_last_section_first, m_last_prot,
2478 m_last_max_alignment>: Rename, add initializers where needed.
2479 (setup_sections_data::setup_one_section): Rename from
2480 setup_sections. Update.
2481 (compile_object_load): Update. Don't use bfd_map_over_sections.
2482
2483 2020-09-23 Tom Tromey <tom@tromey.com>
2484
2485 * compile/compile-object-run.c (struct do_module_cleanup): Add
2486 parameters to constructor. Update destructor.
2487 <source_file, scope, scope_data, out_value_type, out_value_addr,
2488 munmap_list_head, objfile_name_string>: Remove.
2489 <module>: New member.
2490 (do_module_cleanup): Update.
2491 (compile_object_run): Update.
2492
2493 2020-09-23 Tom Tromey <tom@tromey.com>
2494
2495 * compile/compile.c (eval_compile_command): Update.
2496 * compile/compile-object-run.h (compile_object_run): Take a
2497 compile_module_up.
2498 * compile/compile-object-run.c (compile_object_run): Take a
2499 compile_module_up.
2500 * compile/compile-object-load.h (struct compile_module): Add
2501 constructor, destructor.
2502 (compile_module_up): New typedef.
2503 (compile_object_load): Return compile_object_up.
2504 * compile/compile-object-load.c (compile_object_load): Return
2505 compile_module_up.
2506
2507 2020-09-23 Tom Tromey <tom@tromey.com>
2508
2509 * compile/compile-object-run.c (struct do_module_cleanup): Add
2510 constructor, destructor.
2511 <objfile_name_string>: Don't use struct hack.
2512 (do_module_cleanup): Use delete.
2513 (compile_object_run): Use new.
2514
2515 2020-09-23 Tom Tromey <tom@tromey.com>
2516
2517 * compile/compile-cplus-types.c
2518 (compile_cplus_convert_struct_or_union): Use std::vector.
2519 (compile_cplus_convert_func): Likewise.
2520 * compile/compile-c-types.c (convert_func): Use std::vector.
2521
2522 2020-09-21 Tom Tromey <tromey@adacore.com>
2523
2524 * sparc-tdep.c (sparc32_skip_prologue): Use
2525 skip_prologue_using_sal.
2526
2527 2020-09-19 Tom Tromey <tom@tromey.com>
2528
2529 * symfile.c (add_section_size_callback): Remove.
2530 (load_one_section): Rename from load_section_callback. Change
2531 parameters.
2532 (generic_load): Use foreach.
2533
2534 2020-09-19 Tom Tromey <tom@tromey.com>
2535
2536 * exec.c (add_to_section_table): Remove.
2537 (build_section_table): Use foreach.
2538
2539 2020-09-19 Tom Tromey <tom@tromey.com>
2540
2541 * elfread.c (elf_locate_sections): Change parameters.
2542 (elf_symfile_read): Use foreach.
2543
2544 2020-09-19 Tom Tromey <tom@tromey.com>
2545
2546 * cli/cli-dump.c (struct callback_data): Remove.
2547 (restore_one_section): Rename from restore_section_callback.
2548 Change parameters.
2549 (restore_binary_file): Change parameters.
2550 (restore_command): Use foreach.
2551
2552 2020-09-19 Tom Tromey <tom@tromey.com>
2553
2554 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2555 (gcore_copy_callback): Likewise.
2556 (gcore_memory_sections): Use foreach.
2557
2558 2020-09-19 Tom Tromey <tom@tromey.com>
2559
2560 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2561 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2562 parameters.
2563 (generic_elf_osabi_sniffer): Use foreach.
2564 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2565 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2566
2567 2020-09-19 Tom Tromey <tom@tromey.com>
2568
2569 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2570 (dwarf2_get_dwz_file): Use foreach.
2571 (dwarf2_locate_dwo_sections): Change parameters.
2572 (open_and_init_dwo_file): Use foreach.
2573 (dwarf2_locate_common_dwp_sections): Change parameters.
2574 (open_and_init_dwp_file): Use foreach.
2575
2576 2020-09-19 Tom Tromey <tom@tromey.com>
2577
2578 * symfile.h: (find_lowest_section): Don't declare.
2579 * symfile.c (find_lowest_section): Now static. Change
2580 parameters.
2581 (struct place_section_arg): Remove.
2582 (place_section): Change parameters.
2583 (addr_info_make_relative): Use foreach.
2584 (symfile_dummy_outputs): Remove.
2585 (default_symfile_relocate): Use foreach.
2586
2587 2020-09-19 Tom Tromey <tom@tromey.com>
2588
2589 * objfiles.c (add_to_objfile_sections): Rename from
2590 add_to_objfile_sections_full.
2591 (add_to_objfile_sections): Remove.
2592 (build_objfile_section_table): Use foreach.
2593
2594 2020-09-19 Tom Tromey <tom@tromey.com>
2595
2596 * stap-probe.c (get_stap_base_address_1): Remove.
2597 (get_stap_base_address): Use foreach.
2598
2599 2020-09-19 Tom Tromey <tom@tromey.com>
2600
2601 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2602 parameters.
2603 (gdb_bfd_close_or_warn): Use foreach.
2604
2605 2020-09-19 Tom Tromey <tom@tromey.com>
2606
2607 * corelow.c (add_to_thread_list): Change parameters.
2608 (core_target_open): Use foreach.
2609
2610 2020-09-19 Tom Tromey <tom@tromey.com>
2611
2612 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2613 existing function.
2614
2615 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2616
2617 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2618 for arrays.
2619
2620 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 * eval.c: Remove 'f-lang.h' include.
2623 (value_f90_subarray): Moved to f-lang.c.
2624 (eval_call): Renamed to...
2625 (evaluate_subexp_do_call): ...this, is no longer static, header
2626 comment moved into header file.
2627 (evaluate_funcall): Update call to eval_call.
2628 (skip_undetermined_arglist): Moved to f-lang.c.
2629 (fortran_value_subarray): Likewise.
2630 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2631 moved to evaluate_subexp_f.
2632 (calc_f77_array_dims): Moved to f-lang.c
2633 * expprint.c (print_subexp_funcall): New function.
2634 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2635 moved to print_subexp_f, OP_FUNCALL uses new function.
2636 (dump_subexp_body_funcall): New function.
2637 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2638 moved to dump_subexp_f, OP_FUNCALL uses new function.
2639 * expression.h (evaluate_subexp_do_call): Declare.
2640 * f-lang.c (value_f90_subarray): Moved from eval.c.
2641 (skip_undetermined_arglist): Likewise.
2642 (calc_f77_array_dims): Likewise.
2643 (fortran_value_subarray): Likewise.
2644 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2645 (operator_length_f): Likewise.
2646 (print_subexp_f): Likewise.
2647 (dump_subexp_body_f): Likewise.
2648 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2649 declaration of this operation to here.
2650 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2651 support moved to operator_length_f.
2652 * parser-defs.h (dump_subexp_body_funcall): Declare.
2653 (print_subexp_funcall): Declare.
2654 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2655 fortran-operator.def.
2656
2657 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * eval.c (fortran_value_subarray): New function, content is taken
2660 from...
2661 (evaluate_subexp_standard): ...here, in two places. Now arrays
2662 and strings both call the new function.
2663 (calc_f77_array_dims): Add header comment, handle strings.
2664
2665 2020-09-18 Victor Collod <vcollod@nvidia.com>
2666
2667 PR gdb/26635
2668 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2669 (i386_analyze_prologue): Call i386_skip_endbr.
2670
2671 2020-09-18 Tom Tromey <tromey@adacore.com>
2672
2673 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2674 (windows_nat_target::wait): Update.
2675 * target/wait.h (enum target_wait_flag): New. Use
2676 DEF_ENUM_FLAGS_TYPE.
2677 * target/target.h (target_wait): Change type of options.
2678 * target.h (target_options_to_string, default_target_wait):
2679 Update.
2680 (struct target_ops) <wait>: Change type of options.
2681 * target.c (target_wait, default_target_wait, do_option): Change
2682 type of "options".
2683 (target_options_to_string): Likewise.
2684 * target-delegates.c: Rebuild.
2685 * target-debug.h (target_debug_print_target_wait_flags): Rename
2686 from target_debug_print_options.
2687 * sol-thread.c (class sol_thread_target) <wait>: Update.
2688 (sol_thread_target::wait): Update.
2689 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2690 (rs6000_nat_target::wait): Update.
2691 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2692 Update.
2693 (remote_target::wait_ns, remote_target::wait_as): Change type of
2694 "options".
2695 (remote_target::wait): Update.
2696 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2697 (gdbsim_target::wait): Update.
2698 * record-full.c (class record_full_base_target) <wait>: Update.
2699 (record_full_wait_1): Change type of "options".
2700 (record_full_base_target::wait): Update.
2701 * record-btrace.c (class record_btrace_target) <wait>: Update.
2702 (record_btrace_target::wait): Update.
2703 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2704 Update.
2705 (ravenscar_thread_target::wait): Update.
2706 * procfs.c (class procfs_target) <wait>: Update.
2707 (procfs_target::wait): Update.
2708 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2709 * obsd-nat.c (obsd_nat_target::wait): Update.
2710 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2711 (nto_procfs_target::wait): Update.
2712 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2713 * nbsd-nat.c (nbsd_wait): Change type of "options".
2714 (nbsd_nat_target::wait): Update.
2715 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2716 (thread_db_target::wait): Update.
2717 * linux-nat.h (class linux_nat_target) <wait>: Update.
2718 * linux-nat.c (linux_nat_target::wait): Update.
2719 (linux_nat_wait_1): Update.
2720 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2721 "options".
2722 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2723 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2724 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2725 (go32_nat_target::wait): Update.
2726 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2727 * gnu-nat.c (gnu_nat_target::wait): Update.
2728 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2729 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2730 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2731 * darwin-nat.c (darwin_nat_target::wait): Update.
2732 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2733 (bsd_uthread_target::wait): Update.
2734 * aix-thread.c (class aix_thread_target) <wait>: Update.
2735 (aix_thread_target::wait): Update.
2736
2737 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2738
2739 * compile/compile-object-run.c (create_copied_type_recursive): New
2740 function.
2741 (compile_object_run): Use new function.
2742
2743 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2744
2745 * NEWS: Mention x86_64 Cygwin core file support.
2746
2747 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2748
2749 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2750 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2751
2752 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2753
2754 * windows-tdep.h: Add prototypes.
2755 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2756 (i386_windows_core_pid_to_str): Move and rename ...
2757 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2758 (windows_core_pid_to_str): ... and here.
2759 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2760
2761 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2762 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2763 (amd64_windows_init_abi_common): ... and register.
2764
2765 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2766
2767 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2768 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2769
2770 2020-09-18 Pedro Alves <pedro@palves.net>
2771
2772 PR gdb/26631
2773 * thread.c (thread_find_command): Switch inferior before calling
2774 target methods.
2775
2776 2020-09-17 Tom Tromey <tromey@adacore.com>
2777
2778 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2779 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2780 (tdesc_arch_data_up): New typedef.
2781 (tdesc_use_registers, tdesc_data_alloc): Update.
2782 (tdesc_data_cleanup): Don't declare.
2783 * target-descriptions.c (tdesc_data_alloc): Return a
2784 tdesc_arch_data_up.
2785 (tdesc_arch_data_deleter::operator()): Rename from
2786 tdesc_data_cleanup. Change argument type.
2787 (tdesc_use_registers): Change early_data to an rvalue reference.
2788 (tdesc_use_registers): Don't use delete.
2789 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2790 * s390-tdep.c (s390_gdbarch_init): Update.
2791 * rx-tdep.c (rx_gdbarch_init): Update.
2792 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2793 * riscv-tdep.c (riscv_gdbarch_init): Update.
2794 * or1k-tdep.c (or1k_gdbarch_init): Update.
2795 * nios2-tdep.c (nios2_gdbarch_init): Update.
2796 * nds32-tdep.c (nds32_gdbarch_init): Update.
2797 * mips-tdep.c (mips_gdbarch_init): Update.
2798 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2799 * m68k-tdep.c (m68k_gdbarch_init): Update.
2800 * i386-tdep.c (i386_gdbarch_init): Update.
2801 * arm-tdep.c (arm_gdbarch_init): Update.
2802 * arc-tdep.c (arc_tdesc_init): Update.
2803 (arc_gdbarch_init): Update.
2804 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2805
2806 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2807
2808 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2809 for WOW64 processes.
2810
2811 2020-09-17 Tom Tromey <tom@tromey.com>
2812
2813 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2814
2815 2020-09-17 Tom Tromey <tom@tromey.com>
2816
2817 * value.c (preserve_values): Update.
2818 * python/py-type.c (save_objfile_types): Update.
2819 * guile/scm-type.c (save_objfile_types): Update.
2820 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2821 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2822 * compile/compile-object-run.c (compile_object_run): Update.
2823
2824 2020-09-17 Tom Tromey <tom@tromey.com>
2825
2826 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2827 Remove.
2828 <m_table>: Now htab_up.
2829 * typeprint.c (typedef_hash_table::recursively_update)
2830 (typedef_hash_table::add_template_parameters)
2831 (typedef_hash_table::typedef_hash_table): Update.
2832 (typedef_hash_table::~typedef_hash_table): Remove.
2833 (typedef_hash_table::typedef_hash_table)
2834 (typedef_hash_table::find_global_typedef)
2835 (typedef_hash_table::find_typedef): Update.
2836
2837 2020-09-17 Tom Tromey <tom@tromey.com>
2838
2839 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2840
2841 2020-09-17 Tom Tromey <tom@tromey.com>
2842
2843 * linespec.c (class decode_compound_collector)
2844 <~decode_compound_collector>: Remove.
2845 <m_unique_syms>: Now htab_up.
2846 (decode_compound_collector::operator ()): Update.
2847 (class symtab_collector) <~symtab_collector>: Remove.
2848 <m_symtab_table>: Now htab_up.
2849 (symtab_collector::operator ()): Update.
2850
2851 2020-09-17 Tom Tromey <tom@tromey.com>
2852
2853 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2854 (filename_seen_cache::clear): Update.
2855 (~filename_seen_cache): Remove.
2856 (filename_seen_cache::seen): Update.
2857 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2858 htab_up.
2859 <~filename_seen_cache>: Remove.
2860 <traverse>: Update.
2861
2862 2020-09-17 Tom Tromey <tom@tromey.com>
2863
2864 * completer.c (completion_tracker::discard_completions)
2865 (completion_tracker::~completion_tracker)
2866 (completion_tracker::maybe_add_completion)
2867 (completion_tracker::remove_completion)
2868 (completion_tracker::recompute_lowest_common_denominator)
2869 (completion_tracker::build_completion_result): Update.
2870 * completer.h (class completion_tracker) <have_completions>:
2871 Update.
2872 <m_entries_hash>: Now htab_up.
2873
2874 2020-09-17 Tom Tromey <tom@tromey.com>
2875
2876 * breakpoint.c (ambiguous_names_p): Use htab_up.
2877
2878 2020-09-17 Tom Tromey <tom@tromey.com>
2879
2880 * auto-load.c (struct auto_load_pspace_info)
2881 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2882 <loaded_script_files, loaded_script_texts>: Change type to
2883 htab_up.
2884 (~auto_load_pspace_info) Remove.
2885 (init_loaded_scripts_info, maybe_add_script_file)
2886 (maybe_add_script_text, auto_load_info_scripts): Update.
2887
2888 2020-09-17 Tom Tromey <tromey@adacore.com>
2889
2890 * c-exp.y (name_obstack): Now static.
2891
2892 2020-09-17 Chungyi Chi <demonic@csie.io>
2893
2894 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2895
2896 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2897
2898 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2899 (add_solib_catchpoint): Likewise.
2900 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2901 to bool.
2902 (add_solib_catchpoint): Change int parameter/variable to bool.
2903 (catch_load_or_unload): Likewise.
2904 (init_catchpoint): Likewise.
2905 (create_fork_vfork_event_catchpoint): Likewise.
2906 (catch_fork_command_1): Likewise.
2907 (catch_exec_command_1): Likewise.
2908
2909 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2910
2911 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2912 Change instance_flags to m_instance_flags.
2913
2914 2020-09-16 Tom Tromey <tromey@adacore.com>
2915
2916 PR gdb/26598:
2917 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2918
2919 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2920
2921 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2922 PL_FLAG_EXEC.
2923 (fbsd_nat_target::insert_exec_catchpoint)
2924 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2925 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2926 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2927
2928 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2929
2930 * configure.ac: Remove check for kinfo_getvmmap().
2931 * configure, config.in: Regenerate.
2932 * fbsd-nat.c (fbsd_read_mapping): Remove
2933 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2934 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2935 kinfo_get_vmmap() are always present.
2936
2937 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2938
2939 * fbsd-nat.c: Always include support for
2940 TARGET_OBJECT_SIGNAL_INFO.
2941
2942 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2943
2944 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2945 sysctl and remove procfs fallback.
2946
2947 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2948
2949 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2950 * fbsd-nat.h: Likewise.
2951
2952 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2953
2954 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2955 argument.
2956
2957 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2958
2959 * ada-lang.c (ada_language_data): Delete.
2960 (ada_language): Remove references to ada_language_data.
2961 * c-lang.c (c_language_data): Delete.
2962 (c_language): Remove references to c_language_data.
2963 (cplus_language_data): Delete.
2964 (cplus_language): Remove references to cplus_language_data.
2965 (asm_language_data): Delete.
2966 (asm_language): Remove references to asm_language_data.
2967 (minimal_language_data): Delete.
2968 (minimal_language): Remove references to minimal_language_data.
2969 * d-lang.c (d_language_data): Delete.
2970 (d_language): Remove references to d_language_data.
2971 * f-lang.c (f_language_data): Delete.
2972 (f_language): Remove references to f_language_data.
2973 * go-lang.c (go_language_data): Delete.
2974 (go_language): Remove references to go_language_data.
2975 * language.c (unknown_language_data): Delete.
2976 (unknown_language): Remove references to unknown_language_data.
2977 (auto_language_data): Delete.
2978 (auto_language): Remove references to auto_language_data.
2979 * language.h (language_data): Delete struct.
2980 (language_defn): No longer inherit from language_data.
2981 * m2-lang.c (m2_language_data): Delete.
2982 (m2_language): Remove references to m2_language_data.
2983 * objc-lang.c (objc_language_data): Delete.
2984 (objc_language): Remove references to objc_language_data.
2985 * opencl-lang.c (opencl_language_data): Delete.
2986 (opencl_language): Remove references to opencl_language_data.
2987 * p-lang.c (pascal_language_data): Delete.
2988 (pascal_language): Remove references to pascal_language_data.
2989 * rust-lang.c (rust_language_data): Delete.
2990 (rust_language): Remove references to rust_language_data.
2991
2992 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2993
2994 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2995 initializer.
2996 (ada_language::opcode_print_table): New member function.
2997 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2998 (c_language::opcode_print_table): New member function.
2999 (cplus_language_data): Remove la_op_print_tab initializer.
3000 (cplus_language::opcode_print_table): New member function.
3001 (asm_language_data): Remove la_op_print_tab initializer.
3002 (asm_language::opcode_print_table): New member function.
3003 (minimal_language_data): Remove la_op_print_tab initializer.
3004 (minimal_language::opcode_print_table): New member function.
3005 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3006 (d_language::opcode_print_table): New member function.
3007 * expprint.c (print_subexp_standard): Update call to
3008 opcode_print_table.
3009 (op_string): Likewise.
3010 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3011 (f_language::opcode_print_table): New member function.
3012 * go-lang.c (go_language_data): Remove la_op_print_tab
3013 initializer.
3014 (go_language::opcode_print_table): New member function.
3015 * language.c (unknown_language_data): Remove la_op_print_tab
3016 initializer.
3017 (unknown_language::opcode_print_table): New member function.
3018 (auto_language_data): Remove la_op_print_tab initializer.
3019 (auto_language::opcode_print_table): New member function.
3020 * language.h (language_data): Remove la_op_print_tab field.
3021 (language_defn::opcode_print_table): Declare new member function.
3022 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3023 initializer.
3024 (m2_language::opcode_print_table): New member function.
3025 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3026 initializer.
3027 (objc_language::opcode_print_table): New member function.
3028 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3029 initializer.
3030 (opencl_language::opcode_print_table): New member function.
3031 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3032 initializer.
3033 (pascal_language::opcode_print_table): New member function.
3034 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3035 initializer.
3036 (rust_language::opcode_print_table): New member function.
3037
3038 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3039
3040 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3041 (ada_language::expression_ops): New member function.
3042 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3043 (c_language::expression_ops): New member function.
3044 (cplus_language_data): Remove la_exp_desc initializer.
3045 (cplus_language::expression_ops): New member function.
3046 (asm_language_data): Remove la_exp_desc initializer.
3047 (asm_language::expression_ops): New member function.
3048 (minimal_language_data): Remove la_exp_desc initializer.
3049 (minimal_language::expression_ops): New member function.
3050 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3051 (d_language::expression_ops): New member function.
3052 * eval.c (evaluate_subexp): Update call to expression_ops.
3053 * expprint.c (print_subexp): Likewise.
3054 (op_name): Likewise.
3055 (dump_subexp_body): Likewise.
3056 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3057 (f_language::expression_ops): New member function.
3058 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3059 (go_language::expression_ops): New member function.
3060 * language.c (language_defn::expression_ops): New function.
3061 (unknown_language_data): Remove la_exp_desc initializer.
3062 (auto_language_data): Likewise.
3063 * language.h (language_data): Remove la_exp_desc field.
3064 (language_defn::expression_ops): Declare new member function.
3065 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3066 (m2_language::expression_ops): New member function.
3067 * objc-lang.c (objc_language_data): Remove la_exp_desc
3068 initializer.
3069 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3070 initializer.
3071 (opencl_language::expression_ops): New member function.
3072 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3073 * parse.c (operator_length): Update call to expression_ops.
3074 (exp_iterate): Likewise.
3075 * rust-lang.c (rust_language_data): Remove la_exp_desc
3076 initializer.
3077 (ruse_language::expression_ops): New member function.
3078
3079 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3080
3081 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3082 initializer.
3083 (ada_language::varobj_ops): New member function.
3084 * c-lang.c (c_language_data): Remove la_varobj_ops
3085 initializer.
3086 (cplus_language_data): Likewise.
3087 (cplus_language::varobj_ops): New member function.
3088 (asm_language_data): Remove la_varobj_ops initializer.
3089 (minimal_language_data): Likewise.
3090 * d-lang.c (d_language_data): Likewise.
3091 * f-lang.c (f_language_data): Likewise.
3092 * go-lang.c (go_language_data): Likewise.
3093 * language.c (language_defn::varobj_ops): New function.
3094 (unknown_language_data): Remove la_varobj_ops
3095 initializer.
3096 (auto_language_data): Likewise.
3097 * language.h (language_data): Remove la_varobj_ops field.
3098 (language_defn::varobj_ops): Declare new member function.
3099 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3100 * objc-lang.c (objc_language_data): Likewise.
3101 * opencl-lang.c (opencl_language_data): Likewise.
3102 * p-lang.c (pascal_language_data): Likewise.
3103 * rust-lang.c (rust_language_data): Likewise.
3104 * varobj.c (varobj_create): Update call to varobj_ops.
3105 * varobj.h (default_varobj_ops): Delete define.
3106
3107 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3108
3109 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3110 initializer.
3111 * c-lang.c (c_language_data): Likewise.
3112 (c_language::macro_expansion): New member function.
3113 (cplus_language_data): Likewise.
3114 (cplus_language::macro_expansion): New member function.
3115 (asm_language_data): Likewise.
3116 (asm_language::macro_expansion): New member function.
3117 (minimal_language_data): Likewise.
3118 (minimal_language::macro_expansion): New member function.
3119 * d-lang.c (d_language_data): Remove la_macro_expansion
3120 initializer.
3121 * f-lang.c (f_language_data): Likewise.
3122 * go-lang.c (go_language_data): Likewise.
3123 * language.c (unknown_language_data): Likewise.
3124 (auto_language_data): Likewise.
3125 * language.h (language_data): Remove la_macro_expansion field.
3126 (language_defn::macro_expansion): New member function.
3127 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3128 initializer.
3129 * objc-lang.c (objc_language_data): Likewise.
3130 (objc_language::macro_expansion): New member function.
3131 * opencl-lang.c (opencl_language_data): Likewise.
3132 (opencl_language::macro_expansion): New member function.
3133 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3134 initializer.
3135 * rust-lang.c (rust_language_data): Likewise.
3136 * symtab.c (default_collect_symbol_completion_matches_break_on):
3137 Update call to macro_expansion.
3138
3139 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3140
3141 * ada-lang.c (ada_language_data): Remove la_array_ordering
3142 initializer.
3143 * c-lang.c (c_language_data): Likewise.
3144 (cplus_language_data): Likewise.
3145 (asm_language_data): Likewise.
3146 (minimal_language_data): Likewise.
3147 * d-lang.c (d_language_data): Likewise.
3148 * dwarf2/read.c (read_array_order): Update for call to
3149 array_ordering.
3150 * f-lang.c (f_language_data): Remove la_array_ordering
3151 initializer.
3152 (f_language::array_ordering): New member function.
3153 * go-lang.c (go_language_data): Remove la_array_ordering
3154 initializer.
3155 * language.c (unknown_language_data): Likewise.
3156 (auto_language_data): Likewise.
3157 * language.h (language_data): Delete la_array_ordering field.
3158 (language_defn::array_ordering): New member function.
3159 * m2-lang.c (m2_language_data): Remove la_array_ordering
3160 initializer.
3161 * objc-lang.c (objc_language_data): Likewise.
3162 * opencl-lang.c (opencl_language_data): Likewise.
3163 * p-lang.c (pascal_language_data): Likewise.
3164 * rust-lang.c (rust_language_data): Likewise.
3165
3166 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3169 initializer.
3170 * c-lang.c (c_language_data): Likewise.
3171 (cplus_language_data): Likewise.
3172 (asm_language_data): Likewise.
3173 (minimal_language_data): Likewise.
3174 * d-lang.c (d_language_data): Likewise.
3175 * f-lang.c (f_language_data): Likewise.
3176 (f_language::case_sensitivity): New member function.
3177 * go-lang.c (go_language_data): Remove la_case_sensitivity
3178 initializer.
3179 * language.c (enum case_mode): Moved here from language.h.
3180 (case_mode): Make static.
3181 (show_case_command): Update for case_sensitivity being a method.
3182 (set_case_command): Likewise.
3183 (set_range_case): Likewise.
3184 (unknown_language_data): Remove la_case_sensitivity initializer.
3185 (auto_language_data): Likewise.
3186 * language.h (case_mode): Delete, move enum declaration to
3187 language.c.
3188 (language_data): Delete la_case_sensitivity field.
3189 (language_defn::case_sensitivity): New member function.
3190 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3191 initializer.
3192 * objc-lang.c (objc_language_data): Likewise.
3193 * opencl-lang.c (opencl_language_data): Likewise.
3194 * p-lang.c (pascal_language_data): Likewise.
3195 * rust-lang.c (rust_language_data): Likewise.
3196
3197 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * ada-lang.c (ada_language_data): Remove la_range_check
3200 initializer.
3201 * c-lang.c (c_language_data): Likewise.
3202 (cplus_language_data): Likewise.
3203 (asm_language_data): Likewise.
3204 (minimal_language_data): Likewise.
3205 * d-lang.c (d_language_data): Likewise.
3206 * f-lang.c (f_language_data): Likewise.
3207 (f_language::range_checking_on_by_default): New member function.
3208 * go-lang.c (go_language_data): Remove la_range_check initializer.
3209 * language.c (enum range_mode): Moved here from language.h.
3210 (range_mode): Made static.
3211 (show_range_command): Update to use
3212 range_checking_on_by_default.
3213 (set_range_command): Likewise.
3214 (set_range_case): Likewise.
3215 (unknown_language_data): Remove la_range_check initializer.
3216 (auto_language_data): Likewise.
3217 * language.h (range_mode): Delete. Enum definition moved to
3218 language.c.
3219 (language_data): Remove la_range_check field.
3220 (language_defn::range_checking_on_by_default): New member
3221 function.
3222 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3223 (m2_language::range_checking_on_by_default): New member function.
3224 * objc-lang.c (objc_language_data): Remove la_range_check
3225 initializer.
3226 * opencl-lang.c (opencl_language_data): Likewise.
3227 * p-lang.c (pascal_language_data): Likewise.
3228 (pascal_language::range_checking_on_by_default): New member
3229 function.
3230 * rust-lang.c (rust_language_data): Remove la_range_check
3231 initializer.
3232 (rust_language::range_checking_on_by_default): New member
3233 function.
3234
3235 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3236
3237 * dwarf2/read.c (dwarf2_physname): Remove special case for
3238 language_go.
3239 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3240 member function.
3241
3242 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3243
3244 * ada-lang.c (ada_language_data): Remove
3245 la_store_sym_names_in_linkage_form_p initializer.
3246 (ada_language::store_sym_names_in_linkage_form_p): New member
3247 function.
3248 * c-lang.c (c_language_data): Remove
3249 la_store_sym_names_in_linkage_form_p initializer.
3250 (c_language::store_sym_names_in_linkage_form_p): New member
3251 function.
3252 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3253 initializer.
3254 (asm_language_data): Likewise.
3255 (asm_language::store_sym_names_in_linkage_form_p): New member
3256 function.
3257 (minimal_language_data): Remove
3258 la_store_sym_names_in_linkage_form_p initializer.
3259 (minimal_language::store_sym_names_in_linkage_form_p): New member
3260 function.
3261 * d-lang.c (d_language_data): Remove
3262 la_store_sym_names_in_linkage_form_p initializer.
3263 * dwarf2/read.c (dwarf2_physname): Update call to
3264 store_sym_names_in_linkage_form_p.
3265 * f-lang.c (f_language_data): Remove
3266 la_store_sym_names_in_linkage_form_p initializer.
3267 * go-lang.c (go_language_data): Remove
3268 la_store_sym_names_in_linkage_form_p initializer.
3269 * language.c (unknown_language_data): Remove
3270 la_store_sym_names_in_linkage_form_p initializer.
3271 (unknown_language::store_sym_names_in_linkage_form_p): New member
3272 function.
3273 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3274 initializer.
3275 (auto_language::store_sym_names_in_linkage_form_p): New member
3276 function.
3277 * language.h (language_data): Remove
3278 la_store_sym_names_in_linkage_form_p member variable.
3279 (language_defn::store_sym_names_in_linkage_form_p): New member
3280 function.
3281 * m2-lang.c (m2_language_data): Remove
3282 la_store_sym_names_in_linkage_form_p initializer.
3283 * objc-lang.c (objc_language_data): Likewise.
3284 * opencl-lang.c (opencl_language_data): Likewise.
3285 * p-lang.c (pascal_language_data): Likewise.
3286 * rust-lang.c (rust_language_data): Likewise.
3287
3288 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3289
3290 * ada-lang.c (ada_language_data): Remove string_lower_bound
3291 initializer.
3292 * c-lang.c (c_language_data): Likewise.
3293 (cplus_language_data): Likewise.
3294 (asm_language_data): Likewise.
3295 (minimal_language_data): Likewise.
3296 * d-lang.c (d_language_data): Likewise.
3297 * f-lang.c (f_language_data): Likewise.
3298 * go-lang.c (go_language_data): Likewise.
3299 * language.c (unknown_language_data): Likewise.
3300 (auto_language_data): Likewise.
3301 * language.h (language_data): Remove string_lower_bound field.
3302 (language_defn::string_lower_bound): New member function.
3303 * m2-lang.c (m2_language_data): Remove string_lower_bound
3304 initializer.
3305 (m2_language::string_lower_bound): New member function.
3306 * objc-lang.c (objc_language_data): Remove string_lower_bound
3307 initializer.
3308 * opencl-lang.c (opencl_language_data): Likewise.
3309 * p-lang.c (pascal_language_data): Likewise.
3310 * rust-lang.c (rust_language_data): Likewise.
3311 * valops.c (value_cstring): Update call to string_lower_bound.
3312 (value_string): Likewise.
3313 * value.c (allocate_repeated_value): Likewise.
3314
3315 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3316
3317 * valops.c (value_repeat): Fix incorrect argument name in comment.
3318
3319 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3320
3321 * ada-lang.c (ada_language_data): Remove c_style_arrays
3322 initializer.
3323 (ada_language::c_style_arrays_p): New member fuction.
3324 * c-lang.c (c_language_data): Remove c_style_arrays
3325 initializer.
3326 (cplus_language_data): Likewise.
3327 (asm_language_data): Likewise.
3328 (minimal_language_data): Likewise.
3329 * d-lang.c (d_language_data): Likewise.
3330 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3331 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3332 (f_language::c_style_arrays_p): New member function.
3333 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3334 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3335 * language.c (unknown_language_data): Remove c_style_arrays
3336 initializer.
3337 (auto_language_data): Likewise.
3338 * language.h (language_data): Remove c_style_arrays field.
3339 (language_defn::c_style_arrays_p): New member function.
3340 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3341 (m2_language::c_style_arrays_p): New member function.
3342 * objc-lang.c (objc_language_data): Remove c_style_arrays
3343 initializer.
3344 * opencl-lang.c (opencl_language_data): Likewise.
3345 * p-lang.c (pascal_language_data): Likewise.
3346 * rust-lang.c (rust_language_data): Likewise.
3347 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3348 and update local variable to a bool.
3349 * valops.c (value_cast): Update call to c_style_arrays_p.
3350 (value_array): Likewise.
3351 * value.c (coerce_array): Likewise.
3352
3353 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3354
3355 * ada-lang.c (ada_language_data): Remove la_language initializer.
3356 * c-lang.c (c_language_data): Likewise.
3357 (cplus_language_data): Likewise.
3358 (asm_language_data): Likewise.
3359 (minimal_language_data): Likewise.
3360 * d-lang.c (d_language_data): Likewise.
3361 * f-lang.c (f_language_data): Likewise.
3362 * go-lang.c (go_language_data): Likewise.
3363 * language.c (unknown_language_data): Likewise.
3364 (auto_language_data): Likewise.
3365 * language.h (language_data): Remove la_language field.
3366 (language_defn::language_defn): Initialise la_language field.
3367 (language_defn::la_language): New member variable.
3368 * m2-lang.c (m2_language_data): Remove la_language field.
3369 * objc-lang.c (objc_language_data): Likewise.
3370 * opencl-lang.c (opencl_language_data): Likewise.
3371 * p-lang.c (pascal_language_data): Likewise.
3372 * rust-lang.c (rust_language_data): Likewise.
3373
3374 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3375
3376 * ada-lang.c (ada_extensions): Delete, moved into
3377 ada_language::filename_extensions.
3378 (ada_language_data): Remove la_filename_extensions initializer.
3379 (ada_language::filename_extensions): New member function.
3380 * c-lang.c (c_extensions): Delete, moved into
3381 c_language::filename_extensions.
3382 (c_language_data): Remove la_filename_extensions initializer.
3383 (c_language::filename_extensions): New member function.
3384 (cplus_extensions): Delete, moved into
3385 cplus_language::filename_extensions.
3386 (cplus_language_data): Remove la_filename_extensions initializer.
3387 (cplus_language::filename_extensions): New member function.
3388 (asm_extensions): Delete, moved into
3389 asm_language::filename_extensions.
3390 (asm_language_data): Remove la_filename_extensions initializer.
3391 (asm_language::filename_extensions): New member function.
3392 (minimal_language_data): Remove la_filename_extensions
3393 initializer.
3394 * d-lang.c (d_extensions): Delete, moved into
3395 d_language::filename_extensions.
3396 (d_language_data): Remove la_filename_extensions initializer.
3397 (d_language::filename_extensions): New member function.
3398 * f-lang.c (f_extensions): Delete, moved into
3399 f_language::filename_extensions.
3400 (f_language_data): Remove la_filename_extensions initializer.
3401 (f_language::filename_extensions): New member function.
3402 * go-lang.c (go_language_data): Remove la_filename_extensions
3403 initializer.
3404 * language.c (add_set_language_command): Update now that
3405 filename_extensions returns a vector.
3406 (unknown_language_data): Remove la_filename_extensions
3407 initializer.
3408 (auto_language_data): Likewise.
3409 * language.h (language_data): Remove la_filename_extensions field.
3410 (language_defn::filename_extensions): New member function.
3411 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3412 initializer.
3413 * objc-lang.c (objc_extensions): Delete, moved into
3414 objc_language::filename_extensions.
3415 (objc_language_data): Remove la_filename_extensions initializer.
3416 (objc_language::filename_extensions): New member function.
3417 * opencl-lang.c (opencl_language_data): Remove
3418 la_filename_extensions initializer.
3419 * p-lang.c (pascal_extensions): Delete, moved into
3420 pascal_language::filename_extensions.
3421 (pascal_language_data): Remove la_filename_extensions initializer.
3422 (pascal_language::filename_extensions): New member function.
3423 * rust-lang.c (rust_extensions): Delete, moved into
3424 rust_language::filename_extensions.
3425 (rust_language_data): Remove la_filename_extensions initializer.
3426 (rust_language::filename_extensions): New member function.
3427 * symfile.c (add_filename_language): Add new assert.
3428
3429 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * ada-lang.c (ada_language_data): Remove la_name and
3432 la_natural_name initializers.
3433 (ada_language::name): New member function.
3434 (ada_language::natural_name): New member function.
3435 * c-lang.c (c_language_data): Remove la_name and
3436 la_natural_name initializers.
3437 (c_language::name): New member function.
3438 (c_language::natural_name): New member function.
3439 (cplus_language_data): Remove la_name and
3440 la_natural_name initializers.
3441 (cplus_language::name): New member function.
3442 (cplus_language::natural_name): New member function.
3443 (asm_language_data): Remove la_name and
3444 la_natural_name initializers.
3445 (asm_language::name): New member function.
3446 (asm_language::natural_name): New member function.
3447 (minimal_language_data): Remove la_name and
3448 la_natural_name initializers.
3449 (minimal_language::name): New member function.
3450 (minimal_language::natural_name): New member function.
3451 * compile/compile.c (compile_to_object): Update call to
3452 lanugage_defn::name.
3453 * d-lang.c (d_language_data): Remove la_name and
3454 la_natural_name initializers.
3455 (d_language::name): New member function.
3456 (d_language::natural_name): New member function.
3457 * expprint.c (print_subexp_standard): Update call to
3458 language_defn::name.
3459 (dump_raw_expression): Likewise
3460 (dump_prefix_expression): Likewise.
3461 * f-lang.c (f_language_data): Remove la_name and
3462 la_natural_name initializers.
3463 (f_language::name): New member function.
3464 (f_language::natural_name): New member function.
3465 * go-lang.c (go_language_data): Remove la_name and
3466 la_natural_name initializers.
3467 (go_language::name): New member function.
3468 (go_language::natural_name): New member function.
3469 * language.c (show_language_command): Update call to
3470 language_defn::name.
3471 (set_language_command): Likewise.
3472 (language_enum): Likewise.
3473 (language_str): Likewise.
3474 (add_set_language_command): Likewise, use
3475 language_defn::natural_name in the doc string.
3476 (unknown_language_data): Remove la_name and
3477 la_natural_name initializers.
3478 (unknown_language::name): New member function.
3479 (unknown_language::natural_name): New member function.
3480 (auto_language_data): Remove la_name and
3481 la_natural_name initializers.
3482 (auto_language::name): New member function.
3483 (auto_language::natural_name): New member function.
3484 (language_lookup_primitive_type_as_symbol): Update call to
3485 language_defn::name.
3486 * language.h (language_data): Remove la_name and la_natural_name
3487 member variables.
3488 (language_defn::name): New member function.
3489 (language_defn::natural_name): New member function.
3490 * m2-lang.c (m2_language_data): Remove la_name and
3491 la_natural_name initializers.
3492 (m2_language::name): New member function.
3493 (m2_language::natural_name): New member function.
3494 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
3495 language_defn::natural_name.
3496 * objc-lang.c (objc_language_data): Remove la_name and
3497 la_natural_name initializers.
3498 (objc_language::name): New member function.
3499 (objc_language::natural_name): New member function.
3500 * opencl-lang.c (opencl_language_data): Remove la_name and
3501 la_natural_name initializers.
3502 (opencl_language::name): New member function.
3503 (opencl_language::natural_name): New member function.
3504 * p-lang.c (pascal_language_data): Remove la_name and
3505 la_natural_name initializers.
3506 (pascal_language::name): New member function.
3507 (pascal_language::natural_name): New member function.
3508 * rust-lang.c (rust_language_data): Remove la_name and
3509 la_natural_name initializers.
3510 (rust_language::name): New member function.
3511 (rust_language::natural_name): New member function.
3512 * symtab.c (lookup_language_this): Update call to
3513 language_defn::name.
3514
3515 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3516
3517 * ada-lang.c (ada_language_data): Remove la_name_of_this
3518 initializer.
3519 * ax-gdb.c (gen_expr): Update call to name_of_this.
3520 * c-exp.y (classify_name): Likewise.
3521 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3522 (cplus_language_data): Likewise.
3523 (cplus_language::name_of_this): New member function.
3524 (asm_language_data): Remove la_name_of_this initializer.
3525 (minimal_language_data): Likewise.
3526 * d-lang.c (d_language_data): Likewise.
3527 (d_language::name_of_this): New member function.
3528 * expprint.c (print_subexp_standard): Update call to name_of_this.
3529 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3530 * go-lang.c (go_language_data): Likewise.
3531 * language.c (unknown_language_data): Likewise.
3532 (unknown_language::name_of_this): New member function.
3533 (auto_language_data): Remove la_name_of_this initializer.
3534 (auto_language::name_of_this): New member function.
3535 * language.h (language_data): Delete la_name_of_this member
3536 variable.
3537 (language_defn::name_of_this): New member function.
3538 * m2-lang.c (m2_language_data): Remove la_name_of_this
3539 initializer.
3540 * objc-lang.c (objc_language_data): Likewise.
3541 (objc_language::name_of_this): New member function.
3542 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3543 initializer.
3544 * p-lang.c (pascal_language_data): Likewise.
3545 (pascal_language::name_of_this): New member function.
3546 * rust-lang.c (rust_language_data): Remove la_name_of_this
3547 initializer.
3548 * symtab.c (lookup_language_this): Update call to name_of_this.
3549 (lookup_symbol_aux): Likewise.
3550 * valops.c (value_of_this): Likewise.
3551
3552 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3553
3554 * ada-lang.c (ada_language_data): Remove
3555 la_struct_too_deep_ellipsis initializer.
3556 (ada_language::struct_too_deep_ellipsis): New member function.
3557 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3558 initializer.
3559 (cplus_language_data): Likewise.
3560 (asm_language_data): Likewise.
3561 (minimal_language_data): Likewise.
3562 * cp-valprint.c (cp_print_value): Update call to
3563 struct_too_deep_ellipsis.
3564 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3565 initializer.
3566 * f-lang.c (f_language_data): Likewise.
3567 (f_language::struct_too_deep_ellipsis): New member function.
3568 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3569 initializer.
3570 * language.c (unknown_language_data): Likewise.
3571 (auto_language_data): Likewise.
3572 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3573 member variable.
3574 (language_defn::struct_too_deep_ellipsis): New member function.
3575 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3576 initializer.Q
3577 * objc-lang.c (objc_language_data): Likewise.
3578 * opencl-lang.c (opencl_language_data): Likewise.
3579 * p-lang.c (pascal_language_data): Likewise.
3580 * rust-lang.c (rust_language_data): Likewise.
3581 * valprint.c (val_print_check_max_depth): Update call to
3582 struct_too_deep_ellipsis.
3583
3584 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3585
3586 * MAINTAINERS (Write After Approval): Add myself.
3587
3588 2020-09-15 Tom Tromey <tom@tromey.com>
3589
3590 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3591 Remove.
3592
3593 2020-09-15 Tom Tromey <tom@tromey.com>
3594
3595 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3596 and TYPE_CODE_METHODPTR cases.
3597 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3598 (c_value_print_inner): Update.
3599 * valprint.c (generic_value_print_memberptr): New function, from
3600 c_value_print_memberptr.
3601 (generic_value_print): Use it. Call cplus_print_method_ptr.
3602
3603 2020-09-15 Tom Tromey <tromey@adacore.com>
3604
3605 * python/python-internal.h (PyInt_FromLong): Remove define.
3606 * python/py-value.c (convert_value_from_python): Use
3607 gdb_py_object_from_longest.
3608 * python/py-type.c (typy_get_code): Use
3609 gdb_py_object_from_longest.
3610 * python/py-symtab.c (salpy_get_line): Use
3611 gdb_py_object_from_longest.
3612 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3613 gdb_py_object_from_longest.
3614 * python/py-record.c (recpy_gap_reason_code): Use
3615 gdb_py_object_from_longest.
3616 * python/py-record-btrace.c (recpy_bt_insn_size)
3617 (recpy_bt_func_level, btpy_list_count): Use
3618 gdb_py_object_from_longest.
3619 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3620 gdb_py_object_from_longest. Fix error handling.
3621 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3622 gdb_py_object_from_longest.
3623 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3624 gdb_py_object_from_longest.
3625 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3626 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3627 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3628
3629 2020-09-15 Tom Tromey <tromey@adacore.com>
3630
3631 * python/python.c (gdbpy_parameter_value): Use
3632 gdb_py_object_from_ulongest.
3633
3634 2020-09-15 Tom Tromey <tromey@adacore.com>
3635
3636 * python/py-infevents.c (create_register_changed_event_object):
3637 Use gdb_py_object_from_longest.
3638 * python/py-exitedevent.c (create_exited_event_object): Use
3639 gdb_py_object_from_longest.
3640
3641 2020-09-15 Tom Tromey <tromey@adacore.com>
3642
3643 * python/python.c (gdbpy_parameter_value): Use
3644 gdb_py_object_from_longest.
3645 * python/py-type.c (convert_field, typy_range): Use
3646 gdb_py_object_from_longest.
3647 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3648 gdb_py_object_from_longest.
3649 * python/py-lazy-string.c (stpy_get_length): Use
3650 gdb_py_object_from_longest.
3651 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3652 gdb_py_object_from_longest.
3653 * python/py-infevents.c (create_memory_changed_event_object): Use
3654 gdb_py_object_from_longest.
3655 * python/py-inferior.c (infpy_get_num): Use
3656 gdb_py_object_from_longest.
3657 (infpy_get_pid): Likewise.
3658
3659 2020-09-15 Tom Tromey <tromey@adacore.com>
3660
3661 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3662 defines.
3663 * python/py-value.c (valpy_long): Use
3664 gdb_py_object_from_ulongest.
3665 * python/py-symtab.c (salpy_get_pc): Use
3666 gdb_py_object_from_ulongest.
3667 (salpy_get_last): Likewise.
3668 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3669 gdb_py_object_from_ulongest.
3670 * python/py-lazy-string.c (stpy_get_address): Use
3671 gdb_py_object_from_ulongest.
3672 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3673 * python/py-arch.c (archpy_disassemble): Use
3674 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3675 error handling.
3676
3677 2020-09-15 Tom Tromey <tromey@adacore.com>
3678
3679 * python/python-internal.h (gdb_py_long_from_longest): Remove
3680 defines.
3681 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3682 * python/py-type.c (convert_field, typy_get_sizeof): Use
3683 gdb_py_object_from_longest.
3684 * python/py-record-btrace.c (btpy_list_index): Use
3685 gdb_py_object_from_longest.
3686
3687 2020-09-15 Tom Tromey <tromey@adacore.com>
3688
3689 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3690 * python/py-record.c (recpy_element_number): Use
3691 gdb_py_object_from_longest.
3692 (recpy_gap_number): Likewise.
3693
3694 2020-09-15 Tom Tromey <tromey@adacore.com>
3695
3696 * top.c (ui::ui): Update.
3697 (highest_ui_num): Remove.
3698 * top.h (struct ui) <num>: Remove.
3699
3700 2020-09-15 Tom Tromey <tromey@adacore.com>
3701
3702 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3703 * ui-style.c (ansi_regex_text): Now array.
3704 * rust-exp.y (number_regex_text): Now array.
3705 * linespec.c (linespec_quote_characters): Now array.
3706 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3707 Now arrays.
3708
3709 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3710
3711 * debuginfod-support.c (debuginfod_client_deleter): New.
3712 (debuginfod_client_up): New.
3713 (debuginfod_init): Return debuginfod_client_up.
3714 (debuginfod_source_query): Adjust.
3715 (debuginfod_debuginfo_query): Adjust.
3716
3717 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3718
3719 * debuginfod-support.c (debuginfod_source_query): Use
3720 make_unique_xstrdup.
3721
3722 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3723
3724 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3725 with `type::instance_flags`.
3726
3727 2020-09-14 Michael Mullin <masmullin@gmail.com>
3728
3729 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3730 Remove baton parameter.
3731
3732 2020-09-14 Pedro Alves <pedro@palves.net>
3733
3734 * Makefile.in (SELFTESTS_SRCS): Add
3735 unittests/enum-flags-selftests.c.
3736 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3737 btrace_function_flags instead of enum btrace_function_flag.
3738 * compile/compile-c-types.c (convert_qualified): Use
3739 enum_flags::raw.
3740 * compile/compile-cplus-symbols.c (convert_one_symbol)
3741 (convert_symbol_bmsym):
3742 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3743 (compile_cplus_convert_struct_or_union_methods)
3744 (compile_cplus_instance::convert_qualified_base):
3745 * go-exp.y (parse_string_or_char): Add cast to int.
3746 * unittests/enum-flags-selftests.c: New file.
3747 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3748 type to btrace_thread_flags from btrace_thread_flag.
3749 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3750 local's type to btrace_thread_flags from btrace_thread_flag. Add
3751 cast in DEBUG call.
3752
3753 2020-09-14 Pedro Alves <pedro@palves.net>
3754
3755 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3756 * gdbtypes.c (address_space_name_to_int): Rename to ...
3757 (address_space_name_to_type_instance_flags): ... this.
3758 (address_space_int_to_name): Rename to ...
3759 (address_space_type_instance_flags_to_name): ... this.
3760 * gdbtypes.h (address_space_name_to_int): Rename to ...
3761 (address_space_name_to_type_instance_flags): ... this.
3762 (address_space_int_to_name): Rename to ...
3763 (address_space_type_instance_flags_to_name): ... this.
3764 * type-stack.c (type_stack::insert): Adjust to rename.
3765 * type-stack.h (type_stack::insert): Likewise.
3766
3767 2020-09-14 Pedro Alves <pedro@palves.net>
3768 Andrew Burgess <andrew.burgess@embecosm.com>
3769
3770 * avr-tdep.c (avr_address_class_type_flags): Return
3771 type_instance_flags.
3772 (avr_address_class_type_flags_to_name): Take a
3773 type_instance_flags.
3774 (avr_address_class_name_to_type_flags): Return bool and take a
3775 type_instance_flags.
3776 * d-lang.c (build_d_types): Use type::set_instance_flags.
3777 * ft32-tdep.c (ft32_address_class_type_flags): Return
3778 type_instance_flags.
3779 (ft32_address_class_type_flags_to_name): Take a
3780 type_instance_flags.
3781 (ft32_address_class_name_to_type_flags): Return bool and take a
3782 type_instance_flags.
3783 (ft32_gdbarch_init): Use type::set_instance_flags.
3784 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3785 * gdbarch.h, gdbarch.c: Regenerate.
3786 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3787 (address_class_name_to_type_flags): Use type_instance_flags and
3788 bool.
3789 * gdbtypes.c (address_space_name_to_int)
3790 (address_space_int_to_name, make_qualified_type): Use
3791 type_instance_flags.
3792 (make_qualified_type): Use type_instance_flags and
3793 type::set_instance_flags.
3794 (make_type_with_address_space, make_cv_type, make_vector_type)
3795 (check_typedef): Use type_instance_flags.
3796 (recursive_dump_type): Cast type_instance_flags to unsigned for
3797 printing.
3798 (copy_type_recursive): Use type::set_instance_flags.
3799 (gdbtypes_post_init): Use type::set_instance_flags.
3800 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3801 <m_instance_flags>: ... this.
3802 <instance_flags, set_instance_flags>: New methods.
3803 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3804 (SET_TYPE_INSTANCE_FLAGS): New.
3805 (address_space_name_to_int, address_space_int_to_name)
3806 (make_type_with_address_space): Pass flags using
3807 type_instance_flags instead of int.
3808 * stabsread.c (cleanup_undefined_types_noname): Use
3809 type::set_instance_flags.
3810 * s390-tdep.c (s390_address_class_type_flags): Return
3811 type_instance_flags.
3812 (s390_address_class_type_flags_to_name): Take a
3813 type_instance_flags.
3814 (s390_address_class_name_to_type_flags): Return bool and take a
3815 type_instance_flags.
3816 * type-stack.c (type_stack::follow_types): Use
3817 type_instance_flags.
3818 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3819
3820 2020-09-14 Tom Tromey <tromey@adacore.com>
3821
3822 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3823 * x86-tdep.c (x86_is_thunk_register_name)
3824 (x86_in_indirect_branch_thunk): Update.
3825 * sparc64-tdep.c (sparc64_fpu_register_names)
3826 (sparc64_cp0_register_names, sparc64_register_names)
3827 (sparc64_pseudo_register_names): Now const.
3828 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3829 cp0_registers_num>: Now const.
3830 * sparc-tdep.c (sparc_core_register_names)
3831 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3832 (sparc32_pseudo_register_names): Now const.
3833 (validate_tdesc_registers): Update.
3834 * rust-lang.c (rust_extensions): Now const.
3835 * p-lang.c (p_extensions): Now const.
3836 * objc-lang.c (objc_extensions): Now const.
3837 * nto-tdep.c (nto_thread_state_str): Now const.
3838 * moxie-tdep.c (moxie_register_names): Now const.
3839 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3840 Now const.
3841 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3842 (mips_linux_reg_names): Now const.
3843 (mips_gdbarch_init): Update.
3844 * microblaze-tdep.c (microblaze_register_names): Now const.
3845 * m68k-tdep.c (m68k_register_names): Now const.
3846 * m32r-tdep.c (m32r_register_names): Now const.
3847 * ia64-tdep.c (ia64_register_names): Now const.
3848 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3849 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3850 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3851 ymm_avx512_register_names, pkeys_register_names>: Now const.
3852 * i386-tdep.c (i386_register_names, i386_zmm_names)
3853 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3854 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3855 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3856 * f-lang.c (f_extensions): Now const.
3857 * d-lang.c (d_extensions): Now const.
3858 * csky-tdep.c (csky_register_names): Now const.
3859 * charset.c (default_charset_names, charset_enum): Now const.
3860 (_initialize_charset): Update.
3861 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3862 const.
3863 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3864 (bsd_uthread_solib_loaded): Update.
3865 (bsd_uthread_state): Now const.
3866 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3867 (amd64_ymm_avx512_names, amd64_ymmh_names)
3868 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3869 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3870 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3871 (amd64_dword_names): Now const.
3872 * agent.c (can_use_agent_enum): Now const.
3873 * ada-tasks.c (task_states, long_task_states): Now const.
3874 * ada-lang.c (known_runtime_file_name_patterns)
3875 (known_auxiliary_function_name_patterns, attribute_names)
3876 (standard_exc, ada_extensions): Now const.
3877
3878 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3879
3880 * bcache.h (struct bcache) <bcache>: Remove constructor.
3881 <m_hash_function, m_compare_function>: Remove.
3882 <~bcache>: Make virtual.
3883 <compare>: Remove static method, introduce virtual method.
3884 <default_hash>: Remove.
3885 <hash>: New virtual method.
3886 * bcache.c (bcache::expand_hash_table): Update.
3887 (bcache::insert): Update.
3888 (bcache::hash): New.
3889 (bcache::compare): Update comment and parameter names.
3890 * gdbtypes.c (types_deeply_equal): Update.
3891 * psymtab.h (struct psymbol_bcache): New struct.
3892 (class psymtab_storage) <psymtab_storage>: Make default.
3893 <psymbol_cache>: Change type to psymbol_bcache.
3894 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3895 (psymbol_hash): Change to...
3896 (psymbol_bcache::hash): ... this.
3897 (psymbol_compare): Change to...
3898 (psymbol_bcache::compare): ... this.
3899
3900 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3901
3902 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3903 checking for initial lwp.
3904
3905 2020-09-14 Tom Tromey <tromey@adacore.com>
3906
3907 * m68k-tdep.c (m68k_extract_return_value): Use
3908 pointer_result_regnum.
3909 (m68k_store_return_value): Likewise.
3910 (m68k_reg_struct_return_p): Handle vectors and arrays.
3911 (m68k_return_value): Handle arrays.
3912 (m68k_svr4_return_value): Fix single-element aggregate handling.
3913 Handle long double. Adjust for embedded ABI.
3914 (m68k_svr4_init_abi): Set pointer_result_regnum.
3915 (m68k_embedded_init_abi): New function.
3916 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3917 (m68k_osabi_sniffer): New function.
3918 (_initialize_m68k_tdep): Register osabi sniffer.
3919 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3920 member.
3921
3922 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3923
3924 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3925 with gdb::unique_xmalloc_ptr<char>.
3926
3927 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3928
3929 * xml-support.h (xml_fetch_another): Change type to be a
3930 function_view.
3931 (xml_process_xincludes): Remove baton parameter.
3932 (xml_fetch_content_from_file): Change baton parameter to
3933 dirname.
3934 * xml-support.c (struct xinclude_parsing_data)
3935 <xinclude_parsing_data>: Remove baton parameter.
3936 <fetcher_baton>: Remove.
3937 (xinclude_start_include): Adjust.
3938 (xml_process_xincludes): Adjust.
3939 (xml_fetch_content_from_file): Replace baton parameter with
3940 dirname.
3941 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3942 (xml_init_syscalls_info): Use a lambda.
3943 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3944 (file_read_description_xml): Use a lambda.
3945 (fetch_available_features_from_target): Change baton parameter
3946 to target_ops.
3947 (target_read_description_xml): Use a lambda.
3948 (target_fetch_description_xml): Use a lambda.
3949 (string_read_description_xml): Update.
3950
3951 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3952
3953 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3954 uses with type::endianity_is_not_default.
3955
3956 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3957
3958 * gdbtypes.h (struct type) <endianity_is_not_default,
3959 set_endianity_is_not_default>: New methods.
3960 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3961 type::endianity_is_not_default, change all write call sites to
3962 use type::set_endianity_is_not_default.
3963
3964 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3965
3966 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3967 uses with type::is_fixed_instance.
3968
3969 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3970
3971 * gdbtypes.h (struct type) <is_fixed_instance,
3972 set_is_fixed_instance>: New methods.
3973 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3974 write call sites to use type::set_is_fixed_instance.
3975
3976 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3977
3978 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3979 uses with type::is_gnu_ifunc.
3980
3981 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3982
3983 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3984 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3985 use type::set_is_gnu_ifunc.
3986
3987 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3988
3989 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3990 uses with type::stub_is_supported.
3991
3992 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3995 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3996 use type::set_stub_is_supported.
3997
3998 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3999
4000 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4001 uses with type::is_vector.
4002
4003 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4004
4005 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4006 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4007 use type::set_is_vector.
4008
4009 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4012 uses with type::has_varargs.
4013
4014 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4017 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4018 use type::set_has_varargs.
4019
4020 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4021
4022 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4023 uses with type::is_prototyped.
4024
4025 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4026
4027 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4028 New methods.
4029 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4030 call sites to use type::set_is_prototyped.
4031
4032 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4035 uses with type::target_is_stub.
4036
4037 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4038
4039 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4040 New methods.
4041 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4042 sites to use type::set_target_is_stub.
4043
4044 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * gdbtypes.h (TYPE_STUB): Remove, replace all
4047 uses with type::is_stub.
4048
4049 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4052 (TYPE_STUB): Use type::is_stub, change all write call sites to
4053 use type::set_is_stub.
4054
4055 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4056
4057 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4058 type::has_no_signedness.
4059
4060 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4061
4062 * gdbtypes.h (struct type) <has_no_signedness,
4063 set_has_no_signedness>: New methods.
4064 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4065 call sites to use type::set_has_no_signedness.
4066
4067 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4068
4069 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4070 type::is_unsigned.
4071
4072 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4075 methods.
4076 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4077 sites to use type::set_is_unsigned.
4078
4079 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
4080 Adam Renquinha <arenquinha@cimeq.qc.ca>
4081
4082 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4083 pointer and stack frame offset when unwinding.
4084
4085 2020-09-13 Pedro Alves <pedro@palves.net>
4086
4087 * NEWS: Document "-break-insert --qualified".
4088 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4089
4090 2020-09-13 Pedro Alves <pedro@palves.net>
4091
4092 * linespec.c (classify_mtype, compare_msyms): Delete.
4093 (search_minsyms_for_name): Remove classification logic. Instead
4094 filter out trampoline symbols if we also found an external
4095 function of the same name.
4096
4097 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4098
4099 * NEWS: Create a new section for the next release branch.
4100 Rename the section of the current branch, now that it has
4101 been cut.
4102
4103 2020-09-13 Joel Brobecker <brobecker@adacore.com>
4104
4105 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4106 * version.in: Bump version to 11.0.50.DATE-git.
4107
4108 2020-09-12 Joel Brobecker <brobecker@adacore.com>
4109
4110 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4111
4112 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4113 Felix Willgerodt <Felix.Willgerodt@intel.com>
4114
4115 * gdbarch.sh: Added bfloat16 type.
4116 * gdbarch.c: Regenerated.
4117 * gdbarch.h: Regenerated.
4118 * gdbtypes.c (floatformats_bfloat16): New struct.
4119 (gdbtypes_post_init): Add builtin_bfloat16.
4120 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4121 (floatformats_bfloat16): New struct.
4122 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4123 (i386_ymm_type): Add field "v16_bfloat16"
4124 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4125 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4126 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4127 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4128 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4129 * features/i386/64bit-avx512.c: Regenerated.
4130 * features/i386/64bit-sse.xml: Add bfloat16 type.
4131 * features/i386/64bit-sse.c: Regenerated.
4132
4133 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4134
4135 * i386-tdep.c (i386_zmm_type): Fix field names.
4136 (i386_ymm_type): Fix field names.
4137
4138 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4139
4140 * breakpoint.c: Fix typo in the help message of the
4141 "set breakpoint condition-evaluation" command.
4142
4143 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4144
4145 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4146 * (nbsd_nat_target::pid_to_exec_file)
4147 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4148 (nbsd_nat_target::post_startup_inferior)
4149 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4150 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4151 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4152 * (nbsd_thread_lister): Remove.
4153
4154 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4155
4156 * fork-inferior.c (startup_inferior): Avoid double free.
4157
4158 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4159
4160 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4161 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4162
4163 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4164
4165 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4166 * netbsd-nat.c: Include <sys/ptrace.h>.
4167 * (netbsd_nat::enable_proc_events): Add.
4168
4169 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4170
4171 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4172 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4173 (netbsd_nat::for_each_thread): Add.
4174 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4175 "gdbsupport/common-debug.h".
4176 * (netbsd_nat::netbsd_thread_lister)
4177 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4178 (netbsd_nat::for_each_thread): Add.
4179
4180 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4181
4182 * netbsd-nat.h: Include <unistd.h>.
4183 * (netbsd_nat::pid_to_exec_file): Add.
4184 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4185 * (netbsd_nat::pid_to_exec_file) Add.
4186
4187 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4188
4189 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4190
4191 2020-09-10 Kamil Rytarowski <n54@gmx.com>
4192
4193 * netbsd-nat.h: New file.
4194 * netbsd-nat.c: Likewise.
4195
4196 2020-09-09 Tom Tromey <tromey@adacore.com>
4197
4198 * ada-lang.c (remove_extra_symbols): Do not increment when
4199 removing an element
4200
4201 2020-09-08 Tom Tromey <tromey@adacore.com>
4202
4203 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4204
4205 2020-09-08 Tom Tromey <tromey@adacore.com>
4206
4207 PR win32/25302:
4208 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4209 (gdb_bfd_init_data): New function.
4210 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4211
4212 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4213
4214 * infrun.c (fetch_inferior_event): Use
4215 `switch_to_target_no_thread` to switch the target.
4216
4217 2020-09-06 Tom Tromey <tom@tromey.com>
4218
4219 * symfile.h (dwarf2_free_objfile): Don't declare.
4220
4221 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4222
4223 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4224 to match 16 byte real/complex type generated by Flang compiler.
4225
4226 2020-09-03 Tom de Vries <tdevries@suse.de>
4227
4228 PR breakpoint/26546
4229 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4230 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4231
4232 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4233
4234 * maint.c (index_digits): New function.
4235 (struct maint_print_section_data): Remove.
4236 (print_bfd_section_info): Remove print_data parameter, add arg
4237 and index_digits.
4238 (print_objfile_section_info): Likewise.
4239 (print_bfd_section_info_maybe_relocated): Likewise (plus
4240 objfile).
4241 (maintenance_info_sections): Adjust calls.
4242
4243 2020-09-02 Tom Tromey <tromey@adacore.com>
4244
4245 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4246 for null pointers.
4247 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4248
4249 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4250
4251 * bcache.h (struct bcache) <insert>: Change type of `added` to
4252 pointer to bool.
4253 * bcache.c (bcache::insert): Likewise.
4254 * gdbtypes.c (check_types_worklist): Adjust.
4255 * psymtab.c (add_psymbol_to_bcache): Adjust.
4256
4257 2020-08-31 Kevin Buettner <kevinb@redhat.com>
4258
4259 * corelow.c (unordered_set): Include.
4260 (class core_target): Add field 'm_core_unavailable_mappings'.
4261 (core_target::build_file_mappings): Print only one warning
4262 per inaccessible file. Add unavailable/broken mappings
4263 to m_core_unavailable_mappings.
4264 (core_target::xfer_partial): Call...
4265 (core_target::xfer_memory_via_mappings): New method.
4266
4267 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4268
4269 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4270 type to bool.
4271
4272 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4273
4274 * dwarf2/read.c (struct field_info): Fix indentation.
4275
4276 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4277
4278 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4279 ordering in comment.
4280 * frame.c (frame_id_eq): Fix indentation.
4281
4282 2020-08-31 Scott Linder <scott@scottlinder.com>
4283 Simon Marchi <simon.marchi@efficios.com>
4284
4285 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4286 inline frame ids in outer frame.
4287
4288 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4289
4290 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4291 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4292 (outer_frame_id): Use FID_STACK_OUTER instead of
4293 FID_STACK_INVALID.
4294 (frame_id_p): Don't check for outer_frame_id.
4295
4296 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4297
4298 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4299 regnum/frame in value. Call allocate_value_lazy.
4300 * frame.c (frame_unwind_register_value): Use
4301 val_print_not_saved.
4302
4303 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
4304
4305 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4306
4307 2020-08-29 Pedro Alves <pedro@palves.net>
4308
4309 * progspace.c (print_program_space): Use all_inferiors. Switch to
4310 the inferior before calling target_pid_to_str.
4311
4312 2020-08-28 Tom Tromey <tom@tromey.com>
4313
4314 * xcoffread.c (xcoff_end_psymtab): Update comment.
4315 * dbxread.c (dbx_end_psymtab): Update comment.
4316
4317 2020-08-28 Tom de Vries <tdevries@suse.de>
4318
4319 PR breakpoint/26544
4320 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4321 event_location.
4322 (create_breakpoint): Same.
4323 (base_breakpoint_decode_location): Same.
4324 (bkpt_create_sals_from_location): Same.
4325 (bkpt_decode_location): Same.
4326 (bkpt_probe_create_sals_from_location): Same.
4327 (bkpt_probe_decode_location): Same.
4328 (tracepoint_create_sals_from_location): Same.
4329 (tracepoint_decode_location): Same.
4330 (tracepoint_probe_decode_location): Same.
4331 (strace_marker_create_sals_from_location): Same.
4332 (strace_marker_decode_location): Same.
4333 (create_sals_from_location_default): Same.
4334 (decode_location_default): Same.
4335 * breakpoint.h (struct breakpoint_ops): Same.
4336 (create_breakpoint): Same.
4337 * linespec.h (decode_line_full): Same.
4338 * linespec.c (decode_line_full): Same. Throw error if
4339 result.size () == 0.
4340
4341 2020-08-27 Pedro Alves <pedro@palves.net>
4342
4343 PR gdb/26524
4344 * breakpoint.c (until_break_fsm) <location_breakpoint,
4345 caller_breakpoint>: Delete fields.
4346 <breakpoints>: New field.
4347 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4348 two individual breakpoints.
4349 (until_break_fsm::should_stop): Loop over breakpoints in the
4350 breakpoint vector.
4351 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4352 vector.
4353 (until_break_command): Handle location expanding into multiple
4354 sals.
4355
4356 2020-08-27 Pedro Alves <pedro@palves.net>
4357
4358 PR gdb/26523
4359 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4360 bp_until breakpoints user-specified locations. Update intro
4361 comment.
4362
4363 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4364
4365 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4366 gdb_bfd_sections): New.
4367 * maint.c (print_bfd_section_info): Change param type to
4368 maint_print_section_data.
4369 (print_objfile_section_info): Likewise.
4370 (print_bfd_section_info_maybe_relocated): Likewise.
4371 (maintenance_info_sections): Use gdb_bfd_sections.
4372
4373 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4374
4375 * MAINTAINERS: Add ARC target and maintainer.
4376
4377 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4378
4379 * configure.tgt: ARC support for GNU/Linux.
4380 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4381 * arc-linux-tdep.c: New file.
4382 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4383 * arc-tdep.c (arc_write_pc): Use it.
4384
4385 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4386
4387 * arc-tdep.c (arc_check_for_hardware_loop): New.
4388 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4389
4390 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4391
4392 * arc-tdep.h: Include "gdbarch.h".
4393
4394 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
4395
4396 * arch/arc.h
4397 (arc_gdbarch_features): New class to stir the selection of target XML.
4398 (arc_create_target_description): Use FEATURES to choose XML target.
4399 (arc_lookup_target_description): Use arc_create_target_description
4400 to create _new_ target descriptions or return the already created
4401 ones if the FEATURES is the same.
4402 * arch/arc.c: Implementation of prototypes described above.
4403 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4404 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4405 * arc-tdep.c (*_feature_name): Make feature names consistent.
4406 (arc_register_feature): A new struct to hold information about
4407 registers of a particular target/feature.
4408 (arc_check_tdesc_feature): Check if XML provides registers in
4409 compliance with ARC_REGISTER_FEATURE structs.
4410 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4411 (determine_*_reg_feature_set): Which feature name to look for.
4412 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4413 (mach_type_to_arc_isa): Convert from a set of binutils machine types
4414 to expected ISA enums to be used in arc_gdbarch_features structs.
4415 * features/Makefile (FEATURE_XMLFILES): Add new files.
4416 * gdb/features/arc/v1-aux.c: New file.
4417 * gdb/features/arc/v1-aux.xml: Likewise.
4418 * gdb/features/arc/v1-core.c: Likewise.
4419 * gdb/features/arc/v1-core.xml: Likewise.
4420 * gdb/features/arc/v2-aux.c: Likewise.
4421 * gdb/features/arc/v2-aux.xml: Likewise.
4422 * gdb/features/arc/v2-core.c: Likewise.
4423 * gdb/features/arc/v2-core.xml: Likewise.
4424 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
4425
4426 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
4427 Andrew Burgess <andrew.burgess@embecosm.com>
4428
4429 PR m2/26372
4430 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
4431 an assert. Remove single element array indexing pattern as the
4432 MULTI_SUBSCRIPT support will handle this case too.
4433
4434 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
4435
4436 * value.h (valprint_check_validity): Move declaration from
4437 here...
4438 * valprint.h (valprint_check_validity): ... to here.
4439
4440 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4441
4442 * debug.h: New file.
4443 * debug.c (debug_prefixed_vprintf): New function.
4444 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
4445 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
4446
4447 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
4448
4449 * infrun.h (infrun_debug_printf_1): New function declaration.
4450 (infrun_debug_printf): New macro.
4451 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
4452 throughout.
4453 (infrun_debug_printf): New function.
4454 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
4455 (handle_jit_event): Likewise.
4456
4457 2020-08-21 Mark Wielaard <mark@klomp.org>
4458
4459 * ada-lex.l: Extend register warnings diagnostics comment for g++.
4460
4461 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
4462
4463 * frame.c (enum class frame_id_status): New.
4464 (struct frame_info) <this_id::p>: Change type to frame_id_status.
4465 (fprintf_frame): Update.
4466 (compute_frame_id): Set frame id status to "computing" on entry.
4467 Set it back to "not_computed" on failure and to "computed" on
4468 success.
4469 (get_frame_id): Assert the frame id is not being computed.
4470 (create_sentinel_frame): Use frame_id_status::COMPUTED.
4471 (create_new_frame): Likewise.
4472 (frame_cleanup_after_sniffer): Update assert.
4473
4474 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4475
4476 * regcache.c (pid_ptid_regcache_map): New type.
4477 (target_ptid_regcache_map): Remove.
4478 (target_pid_ptid_regcache_map): New type.
4479 (regcaches): Change type to target_pid_ptid_regcache_map.
4480 (get_thread_arch_aspace_regcache): Update.
4481 (regcache_thread_ptid_changed): Update, handle pid-like ptid
4482 case.
4483 (regcaches_size): Update.
4484 (regcache_count): Update.
4485 (registers_changed_ptid_target_pid_test): New.
4486 (_initialize_regcache): Register new test.
4487
4488 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4489
4490 * regcache.c (regcache_count): New.
4491 (struct regcache_test_data): New.
4492 (regcache_test_data_up): New.
4493 (populate_regcaches_for_test): New.
4494 (regcaches_test): Remove.
4495 (get_thread_arch_aspace_regcache_test): New.
4496 (registers_changed_ptid_all_test): New.
4497 (registers_changed_ptid_target_test): New.
4498 (registers_changed_ptid_target_ptid_test): New.
4499 (regcache_thread_ptid_changed): Remove regcache_count lambda.
4500 (_initialize_regcache): Register new tests.
4501
4502 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4503
4504 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4505 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
4506 gdbarch and aspace parameter. Use current inferior's aspace.
4507 Validate regcache's arch value.
4508 (regcaches_test): Update.
4509
4510 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
4511
4512 * regcache.c (regcaches_test): Call registers_changed.
4513
4514 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4515
4516 * infrun.c (process_event_stop_test): Fix typo "breapoint".
4517
4518 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4519
4520 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4521 to find the end of prologue for flang compiled binaries.
4522 * arm-tdep.c (arm_skip_prologue): Likewise.
4523 * i386-tdep.c (i386_skip_prologue): Likewise.
4524 * producer.c (producer_is_llvm): New function.
4525 (producer_parsing_tests): Added new tests for clang/flang.
4526 * producer.h (producer_is_llvm): New declaration.
4527
4528 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4529
4530 * linux-nat.c (linux_nat_debug_printf): New function.
4531 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4532
4533 2020-08-18 Aaron Merey <amerey@redhat.com>
4534
4535 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4536 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4537 (CLIBS): Add DEBUGINFOD_LIBS.
4538
4539 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4540
4541 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4542 'gdbarch_num_regs'.
4543
4544 2020-08-17 Tom Tromey <tromey@adacore.com>
4545
4546 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4547 ada_get_decoded_value returns NULL.
4548
4549 2020-08-17 Tom Tromey <tromey@adacore.com>
4550
4551 * python/py-inferior.c (infpy_search_memory): Use
4552 gdb_py_object_from_ulongest.
4553 * python/py-infevents.c (create_inferior_call_event_object)
4554 (create_memory_changed_event_object): Use
4555 gdb_py_object_from_ulongest.
4556 * python/py-linetable.c (ltpy_entry_get_pc): Use
4557 gdb_py_object_from_ulongest.
4558
4559 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4560
4561 * loc.c (class symbol_needs_eval_context): Fix indentation.
4562
4563 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4564
4565 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4566 bool.
4567
4568 2020-08-17 Tom de Vries <tdevries@suse.de>
4569
4570 PR gdb/26393
4571 * gdbtypes.c (dump_dynamic_prop): New function.
4572 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4573
4574 2020-08-15 Tom de Vries <tdevries@suse.de>
4575
4576 PR backtrace/26390
4577 * stack.c (print_frame_args): Temporarily set the selected
4578 frame to FRAME while printing the frame's arguments.
4579
4580 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4581
4582 PR breakpoints/26385
4583 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4584 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4585
4586 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4587
4588 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4589 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4590 and >= to check return value instead of == -1 and != -1.
4591
4592 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4593
4594 * utils.h (class gdb_argv) <as_array_view>: New method.
4595 * utils.c (gdb_argv_as_array_view_test): New.
4596 (_initialize_utils): Register selftest.
4597 * maint.c (maintenance_selftest): Use the new method.
4598
4599 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4600
4601 * target.h (supports_dumpcore, dumpcore): New
4602 function declarations.
4603 * target.c (supports_dumpcore, dumpcore): New
4604 functions.
4605 * target-delegates.c: Rebuild.
4606 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4607 and target_dumpcore ().
4608
4609 2020-08-13 Aaron Merey <amerey@redhat.com>
4610
4611 * debuginfod-support.c: Replace global variables with user_data.
4612
4613 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4614
4615 * maint.c (maintenance_selftest): Split args and pass array_view
4616 to run_tests.
4617
4618 2020-08-12 Luis Machado <luis.machado@linaro.org>
4619
4620 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4621 type's length.
4622 Use %s and pulongest to print the length.
4623
4624 2020-08-12 Pedro Alves <palves@redhat.com>
4625
4626 * NEWS: Move "Multi-target debugging support" item to the
4627 "Changes since GDB 9" section.
4628
4629 2020-08-12 Pedro Alves <palves@redhat.com>
4630
4631 PR gdb/26336
4632 * progspace.c (program_space::remove_objfile): Invalidate the
4633 frame cache.
4634
4635 2020-08-11 Tom de Vries <tdevries@suse.de>
4636
4637 * MAINTAINERS: Mark ms1 as deleted.
4638
4639 2020-08-10 Luis Machado <luis.machado@linaro.org>
4640
4641 PR gdb/26310
4642
4643 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4644 act accordingly.
4645 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4646 movz/str/stur/stp skipping behavior.
4647
4648 2020-08-10 Luis Machado <luis.machado@linaro.org>
4649
4650 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4651 struct user_sve_header instead of struct sve_context.
4652
4653 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4654
4655 * read.h (dwarf2_fetch_die_loc_sect_off,
4656 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4657 `void *` parameter with function_view.
4658 * read.c (dwarf2_fetch_die_loc_sect_off,
4659 dwarf2_fetch_die_loc_cu_off): Likewise.
4660 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4661 (per_cu_dwarf_call): Adjust.
4662 (get_frame_address_in_block_wrapper): Remove.
4663 (indirect_synthetic_pointer): Adjust.
4664 (get_ax_pc): Remove.
4665 (dwarf2_compile_expr_to_ax): Adjust.
4666
4667 2020-08-08 Tom de Vries <tdevries@suse.de>
4668
4669 PR build/26344
4670 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4671 constructor.
4672 * regcache.c (get_thread_arch_aspace_regcache): Same.
4673
4674 2020-08-07 Tom Tromey <tromey@adacore.com>
4675
4676 * ravenscar-thread.c
4677 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4678 New method.
4679 (ravenscar_thread_target::wait): Check
4680 runtime_initialized.
4681 (ravenscar_thread_target::prepare_to_store)
4682 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4683 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4684 (ravenscar_thread_target::stopped_by_watchpoint)
4685 (ravenscar_thread_target::stopped_data_address)
4686 (ravenscar_thread_target::core_of_thread): Use
4687 scoped_restore_current_thread and
4688 set_base_thread_from_ravenscar_task.
4689
4690 2020-08-07 Tom Tromey <tromey@adacore.com>
4691
4692 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4693
4694 2020-08-07 Tom Tromey <tromey@adacore.com>
4695
4696 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4697 update_inferior_ptid before update_thread_list.
4698 (temporarily_change_regcache_ptid): New class.
4699 (ravenscar_thread_target::fetch_registers)
4700 (ravenscar_thread_target::store_registers)
4701 (ravenscar_thread_target::prepare_to_store): Use base thread when
4702 forwarding operation.
4703
4704 2020-08-07 Tom Tromey <tromey@adacore.com>
4705
4706 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4707 "is_pid" case.
4708
4709 2020-08-07 Tom Tromey <tromey@adacore.com>
4710
4711 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4712 New methods.
4713 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4714 first.
4715 (ravenscar_thread_target::add_thread): Rename from
4716 ravenscar_add_thread.
4717 (ravenscar_thread_target::update_thread_list): Use a lambda.
4718 (ravenscar_thread_target::xfer_partial): New method.
4719
4720 2020-08-07 Tom Tromey <tromey@adacore.com>
4721
4722 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4723 gdb::function_view.
4724 (iterate_over_live_ada_tasks): Change type of argument.
4725 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4726 of argument.
4727
4728 2020-08-07 Tom Tromey <tromey@adacore.com>
4729
4730 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4731 Remove.
4732 (ravenscar_thread_target::extra_thread_info): Remove.
4733 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4734 defer to target beneath for non-Ravenscar threads.
4735
4736 2020-08-07 Tom Tromey <tromey@adacore.com>
4737
4738 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4739 get_base_thread_from_ravenscar_task>: Now methods.
4740 <m_cpu_map>: New member.
4741 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4742 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4743 (ravenscar_thread_target::task_is_currently_active): Update.
4744 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4745 Now a method.
4746 (ravenscar_thread_target::add_active_thread): Put initial thread
4747 into the m_cpu_map.
4748
4749 2020-08-07 Tom Tromey <tromey@adacore.com>
4750
4751 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4752 event_ptid.
4753
4754 2020-08-07 Tom Tromey <tromey@adacore.com>
4755
4756 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4757 runtime_initialized.
4758
4759 2020-08-07 Tom Tromey <tromey@adacore.com>
4760
4761 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4762 add_active_thread.
4763 (ravenscar_thread_target::add_active_thread): Now public.
4764 (ravenscar_inferior_created): Call add_active_thread after pushing
4765 the target.
4766
4767 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4768
4769 * regcache.c (ptid_regcache_map): New type.
4770 (target_ptid_regcache_map): New type.
4771 (regcaches): Change type to target_ptid_regcache_map.
4772 (get_thread_arch_aspace_regcache): Update to regcaches' new
4773 type.
4774 (regcache_thread_ptid_changed): Likewise.
4775 (registers_changed_ptid): Likewise.
4776 (regcaches_size): Likewise.
4777 (regcaches_test): Update.
4778 (regcache_thread_ptid_changed): Update.
4779 * regcache.h (regcache_up): New type.
4780 * gdbsupport/ptid.h (hash_ptid): New struct.
4781
4782 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4783
4784 * observable.h (thread_ptid_changed): Add parameter
4785 `process_stratum_target *`.
4786 * infrun.c (infrun_thread_ptid_changed): Add parameter
4787 `process_stratum_target *` and use it.
4788 (selftests): New namespace.
4789 (infrun_thread_ptid_changed): New function.
4790 (_initialize_infrun): Register selftest.
4791 * regcache.c (regcache_thread_ptid_changed): Add parameter
4792 `process_stratum_target *` and use it.
4793 (regcache_thread_ptid_changed): New function.
4794 (_initialize_regcache): Register selftest.
4795 * thread.c (thread_change_ptid): Pass target to
4796 thread_ptid_changed observable.
4797
4798 2020-08-06 Caroline Tice <cmtice@google.com>
4799
4800 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4801 (struct dwp_sections): Update field comments. Add loclists and
4802 rnglists fields.
4803 (struct virtual_v2_dwo_sections): Rename struct to
4804 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4805 size & offset fields for loclists and rnglists.
4806 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4807 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4808 skipping dummy type units.
4809 (create_dwp_hash_table): Update the large comment above the function to
4810 discuss Version 5 DWP files as well, with references. Update all the
4811 version checks in the function to check for version 5 as well. Add new
4812 section at the end to create dwp hash table for version 5.
4813 (create_dwp_v2_section): Rename function to
4814 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4815 Add V5 to error message text.
4816 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4817 into calls to create_dwp_v2_or_v5_section.
4818 (create_dwo_unit_in_dwp_v5): New function.
4819 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4820 check for version2; add else clause to handle version 5.
4821 (open_and_init_dwo_file): Add code to check dwarf version & only call
4822 create_debug_types_hash_table (with sections.types) if version is not 5;
4823 else call create_debug_type_hash_table, with sections.info.
4824 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4825 version 5.
4826 (dwarf2_locate_v5_dwp_sections): New function.
4827 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4828 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4829
4830 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4831
4832 * regcache.h (class regcache): Remove friend
4833 registers_changed_ptid.
4834 <regcache_thread_ptid_changed>: Remove.
4835 <regcaches>: Remove.
4836 * regcache.c (regcache::regcaches): Rename to...
4837 (regcaches): ... this. Make static.
4838 (get_thread_arch_aspace_regcache): Update.
4839 (regcache::regcache_thread_ptid_changed): Rename to...
4840 (regcache_thread_ptid_changed): ... this. Update.
4841 (class regcache_access): Remove.
4842 (regcaches_test): Update.
4843 (_initialize_regcache): Update.
4844 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4845 <forward_list>.
4846
4847 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4848
4849 * regcache.h (class regcache) <current_regcache>: Rename to...
4850 <regcaches>: ... this. Move doc here.
4851 * regcache.c (regcache::current_regcache) Rename to...
4852 (regcache::regcaches): ... this. Move doc to header.
4853 (get_thread_arch_aspace_regcache): Update.
4854 (regcache::regcache_thread_ptid_changed): Update.
4855 (registers_changed_ptid): Update.
4856 (class regcache_access) <current_regcache_size>: Rename to...
4857 <regcaches_size>: ... this.
4858 (current_regcache_test): Rename to...
4859 (regcaches_test): ... this.
4860 (_initialize_regcache): Update.
4861
4862 2020-08-06 Victor Collod <vcollod@nvidia.com>
4863
4864 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4865
4866 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4867
4868 * corelow.c (core_target::build_file_mappings): Don't output
4869 null pathname in warning.
4870
4871 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4872
4873 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4874 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4875 gdb.dwarf2/dw2-single-line-discriminators.exp,
4876 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4877
4878 2020-08-05 Tom Tromey <tromey@adacore.com>
4879
4880 PR rust/26197:
4881 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4882 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4883 Fix off-by-one and type size errors in ordinary case.
4884
4885 2020-08-05 Tom de Vries <tdevries@suse.de>
4886
4887 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4888 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4889
4890 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * frame.h (frame_id_p): Return bool.
4893 (frame_id_artificial_p): Return bool.
4894 (frame_id_eq): Return bool.
4895 (has_stack_frames): Return bool.
4896 (get_selected_frame): Fix typo in comment.
4897 (get_frame_pc_if_available): Return bool.
4898 (get_frame_address_in_block_if_available): Return bool.
4899 (get_frame_func_if_available): Return bool.
4900 (read_frame_register_unsigned): Return bool.
4901 (get_frame_register_bytes): Return bool.
4902 (safe_frame_unwind_memory): Return bool.
4903 (deprecated_frame_register_read): Return bool.
4904 (frame_unwinder_is): Return bool.
4905 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4906 bool.
4907 <this_id::p>: Likewise.
4908 <prev_p>: Likewise.
4909 (frame_stash_add): Return bool.
4910 (get_frame_id): Use bool.
4911 (frame_id_build_special) Use bool.
4912 (frame_id_build_unavailable_stack): Use bool.
4913 (frame_id_build): Use bool.
4914 (frame_id_p): Return bool, use true/false instead of 1/0.
4915 (frame_id_artificial_p): Likewise.
4916 (frame_id_eq): Likewise.
4917 (frame_id_inner): Likewise.
4918 (get_frame_func_if_available): Likewise.
4919 (read_frame_register_unsigned): Likewise.
4920 (deprecated_frame_register_read): Likewise.
4921 (get_frame_register_bytes): Likewise.
4922 (has_stack_frames): Likewise.
4923 (inside_main_func): Likewise.
4924 (inside_entry_func): Likewise.
4925 (get_frame_pc_if_available): Likewise.
4926 (get_frame_address_in_block_if_available): Likewise.
4927 (frame_unwinder_is): Likewise.
4928 (safe_frame_unwind_memory): Likewise.
4929 (frame_unwind_arch): Likewise.
4930
4931 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4932
4933 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4934 type to cached_copy_status.
4935 (fprintf_frame): Adjust.
4936 (get_frame_func_if_available): Adjust.
4937 (frame_cleanup_after_sniffer): Adjust.
4938
4939 2020-08-04 Mark Wielaard <mark@klomp.org>
4940
4941 * MAINTAINERS (Write After Approval): Update email address.
4942
4943 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4944
4945 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4946 dynamic_prop::const_val.
4947
4948 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4949
4950 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4951 dynamic_prop::kind.
4952
4953 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4954
4955 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4956
4957 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4958
4959 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4960
4961 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4962 Jose E. Marchesi <jose.marchesi@oracle.com>
4963
4964 * configure.tgt: Add entry for bpf-*-*.
4965 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4966 (ALLDEPFILES): Add bpf-tdep.c.
4967 * bpf-tdep.c: New file.
4968 * MAINTAINERS: Add bpf target and maintainer.
4969 * NEWS: Mention the support for the new target.
4970
4971 2020-08-04 Tom de Vries <tdevries@suse.de>
4972
4973 PR symtab/23270
4974 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4975 Error.
4976
4977 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4978
4979 * syscalls/freebsd.xml: Regenerate.
4980
4981 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4982
4983 * syscalls/update-freebsd.sh: Fix usage and year range.
4984
4985 2020-08-03 Tom de Vries <tdevries@suse.de>
4986
4987 PR symtab/26333
4988 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4989 DW_LNE_lo_user/DW_LNE_hi_user range.
4990
4991 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4992
4993 PR ada/26318
4994 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4995 kind.
4996
4997 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4998
4999 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5000
5001 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5002
5003 * breakpoint.c (set_breakpoint_condition): Update the condition
5004 expressions after checking that the input condition string parses
5005 successfully and does not contain junk at the end.
5006
5007 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5008
5009 * breakpoint.c (set_breakpoint_condition): Update the
5010 condition string after parsing the new condition successfully.
5011
5012 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5013
5014 * proc-api.c (_STRUCTURED_PROC): Don't define.
5015 * proc-events.c: Likewise.
5016 * proc-flags.c: Likewise.
5017 * proc-why.c: Likewise.
5018 * procfs.c: Likewise.
5019
5020 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5021 * configure, config.in: Regenerate.
5022
5023 2020-07-30 Tom de Vries <tdevries@suse.de>
5024
5025 PR build/26320
5026 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5027 m_red/m_green/m_blue in a union.
5028
5029 2020-07-29 Tom de Vries <tdevries@suse.de>
5030
5031 PR tdep/26280
5032 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5033
5034 2020-07-28 Tom Tromey <tromey@adacore.com>
5035
5036 PR symtab/26270:
5037 * symtab.h (find_pc_partial_function_sym): Declare.
5038 * cli/cli-cmds.c (disassemble_command): Use
5039 find_pc_partial_function_sym. Check asm_demangle.
5040 * blockframe.c (cache_pc_function_sym): New global.
5041 (cache_pc_function_name): Remove.
5042 (clear_pc_function_cache): Update.
5043 (find_pc_partial_function_sym): New function, from
5044 find_pc_partial_function.
5045 (find_pc_partial_function): Rewrite using
5046 find_pc_partial_function_sym.
5047
5048 2020-07-28 Tom Tromey <tromey@adacore.com>
5049
5050 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5051 help. Add usage.
5052
5053 2020-07-28 Tom Tromey <tromey@adacore.com>
5054
5055 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5056 <DW_OP_GNU_variable_value>: Cast to address type.
5057
5058 2020-07-28 Kamil Rytarowski <n54@gmx.com>
5059
5060 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5061 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5062 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5063 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5064 (nbsd_get_siginfo_type): New.
5065 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5066 (_initialize_nbsd_tdep): New.
5067
5068 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5069
5070 PR binutils/26301
5071 * configure: Regenerated.
5072
5073 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5074
5075 PR binutils/26301
5076 * configure: Regenerated.
5077
5078 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5079
5080 * python/py-frame.c: Remove 'user-regs.h' include.
5081 (frapy_read_register): Rewrite to make use of
5082 gdbpy_parse_register_id.
5083 * python/py-registers.c (gdbpy_parse_register_id): New function,
5084 moved here from python/py-unwind.c. Updated the return type, and
5085 also accepts register descriptor objects.
5086 * python/py-unwind.c: Remove 'user-regs.h' include.
5087 (pyuw_parse_register_id): Moved to python/py-registers.c.
5088 (unwind_infopy_add_saved_register): Update to use
5089 gdbpy_parse_register_id.
5090 (pending_framepy_read_register): Likewise.
5091 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5092
5093 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5094
5095 * python/py-registers.c: Add 'user-regs.h' include.
5096 (register_descriptor_iter_find): New function.
5097 (register_descriptor_iterator_object_methods): New static global
5098 methods array.
5099 (register_descriptor_iterator_object_type): Add pointer to methods
5100 array.
5101
5102 2020-07-27 John Baldwin <jhb@FreeBSD.org>
5103
5104 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5105 for all architectures on FreeBSD 11.3 and later.
5106
5107 2020-07-27 Tom Tromey <tromey@adacore.com>
5108
5109 * gcore.h (load_corefile): Don't declare.
5110
5111 2020-07-27 Tom de Vries <tdevries@suse.de>
5112
5113 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5114 * config.in: Regenerate.
5115 * configure: Regenerate.
5116
5117 2020-07-26 Eli Zaretskii <eliz@gnu.org>
5118
5119 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5120 ws2tcpip.h. When checking whether socklen_t type is defined, use
5121 ws2tcpip.h if it is available and sys/socket.h isn't.
5122 * configure: Regenerate.
5123 * config.in: Regenerate.
5124
5125 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5126
5127 PR fortran/23051
5128 PR fortran/26139
5129 * valops.c (value_ind): Pass address to
5130 readjust_indirect_value_type.
5131 * value.c (readjust_indirect_value_type): Make parameter
5132 non-const, and add extra address parameter. Resolve original type
5133 before using it.
5134 * value.h (readjust_indirect_value_type): Update function
5135 signature and comment.
5136
5137 2020-07-25 Tom de Vries <tdevries@suse.de>
5138
5139 PR symtab/26243
5140 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5141 entries.
5142
5143 2020-07-24 Aaron Merey <amerey@redhat.com>
5144
5145 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5146 * configure: Rebuild.
5147
5148 2020-07-23 Kevin Buettner <kevinb@redhat.com>
5149
5150 PR corefiles/26294
5151 * corelow.c (_initialize_corelow): Add period to help text
5152 for "maintenance print core-file-backed-mappings".
5153
5154 2020-07-23 Pedro Alves <pedro@palves.net>
5155
5156 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5157 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5158 meanwhile.
5159 * frame.c (frame_cache_generation, get_frame_cache_generation):
5160 New.
5161 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5162 (get_prev_frame_if_no_cycle): On exception, don't touch
5163 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5164 * frame.h (get_frame_cache_generation): Declare.
5165
5166 2020-07-23 Tom de Vries <tdevries@suse.de>
5167
5168 PR tui/26282
5169 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5170 New default constructor.
5171
5172 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5173
5174 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5175 exclude non-statement entries.
5176
5177 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5178
5179 * NEWS (New commands): Mention new command
5180 "maintenance print core-file-backed-mappings".
5181
5182 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5183
5184 * corelow.c (gdbcmd.h): Include.
5185 (core_target::info_proc_mappings): New method.
5186 (get_current_core_target): New function.
5187 (maintenance_print_core_file_backed_mappings): New function.
5188 (_initialize_corelow): Add core-file-backed-mappings to
5189 "maint print" commands.
5190
5191 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5192
5193 * linux-tdep.c (dump_note_entry_p): New function.
5194 (linux_dump_mapping_p_ftype): New typedef.
5195 (linux_find_memory_regions_full): Add new parameter,
5196 should_dump_mapping_p.
5197 (linux_find_memory_regions): Adjust call to
5198 linux_find_memory_regions_full.
5199 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5200 call to linux_find_memory_regions_full.
5201
5202 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5203
5204 * corelow.c (solist.h, unordered_map): Include.
5205 (class core_target): Add field m_core_file_mappings and
5206 method build_file_mappings.
5207 (core_target::core_target): Call build_file_mappings.
5208 (core_target::~core_target): Free memory associated with
5209 m_core_file_mappings.
5210 (core_target::build_file_mappings): New method.
5211 (core_target::xfer_partial): Use m_core_file_mappings
5212 for memory transfers.
5213 * linux-tdep.c (linux_read_core_file_mappings): New
5214 function.
5215 (linux_core_info_proc_mappings): Rewrite to use
5216 linux_read_core_file_mappings.
5217 (linux_init_abi): Register linux_read_core_file_mappings.
5218
5219 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5220
5221 * arch-utils.c (default_read_core_file_mappings): New function.
5222 * arch-utils.c (default_read_core_file_mappings): Declare.
5223 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5224 * gdbarch.h, gdbarch.c: Regenerate.
5225
5226 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5227
5228 PR corefiles/25631
5229 * corelow.c (core_target:xfer_partial): Revise
5230 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5231 case after first checking the stratum beneath the core
5232 target.
5233 (has_all_memory): Return true.
5234 * target.c (raw_memory_xfer_partial): Revise comment
5235 regarding use of has_all_memory.
5236
5237 2020-07-22 Kevin Buettner <kevinb@redhat.com>
5238
5239 * exec.h (section_table_xfer_memory): Revise declaration,
5240 replacing section name parameter with an optional callback
5241 predicate.
5242 * exec.c (section_table_xfer_memory): Likewise.
5243 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5244 of section_table_xfer_memory.
5245
5246 2020-07-22 Tom Tromey <tromey@adacore.com>
5247
5248 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5249 lookup_symbol_search_name.
5250
5251 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5252
5253 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5254 redundant local variable.
5255 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5256 reference, not pointer, update code accordingly.
5257
5258 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5259 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5260
5261 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5262 * jit.c (jit_breakpoint_re_set_internal): Use the
5263 `skip_jit_symbol_lookup` field.
5264
5265 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5266 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5267
5268 * jit.c (jit_read_descriptor): Define the descriptor address once,
5269 use twice.
5270 (jit_breakpoint_deleted): Move the declaration of the loop variable
5271 `iter` into the loop header.
5272 (jit_breakpoint_re_set_internal): Move the declaration of the local
5273 variable `objf_data` to the first point of definition.
5274 (jit_event_handler): Move the declaration of local variables
5275 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5276 Rename `objf` to `jited`.
5277
5278 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5279
5280 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5281 Remove.
5282 * jit.c (get_jiter_objfile_data): Update.
5283
5284 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5285 Simon Marchi <simon.marchi@polymtl.ca>
5286
5287 * jit.c (struct jit_program_space_data): Remove.
5288 (jit_program_space_key): Remove.
5289 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5290 stuff.
5291 (get_jit_program_space_data): Remove.
5292 (jit_breakpoint_deleted): Iterate on all of the program space's
5293 objfiles.
5294 (jit_inferior_init): Likewise.
5295 (jit_breakpoint_re_set_internal): Likewise. Also change return
5296 type to void.
5297 (jit_breakpoint_re_set): Pass current_program_space to
5298 jit_breakpoint_re_set_internal.
5299
5300 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5301
5302 * jit.h (struct jiter_objfile_data) <cached_code_address,
5303 jit_breakpoint>: Move to here from ...
5304 * jit.c (jit_program_space_data): ... here.
5305 (jiter_objfile_data::~jiter_objfile_data): Update.
5306 (jit_breakpoint_deleted): Update.
5307 (jit_breakpoint_re_set_internal): Update.
5308
5309 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5310
5311 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5312 checks.
5313 (jit_read_descriptor): Remove NULL check.
5314 (jit_event_handler): Add an assertion.
5315
5316 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * jit.h (struct jit_objfile_data): Split into...
5319 (struct jiter_objfile_data): ... this ...
5320 (struct jited_objfile_data): ... and this.
5321 * objfiles.h (struct objfile) <jit_data>: Remove.
5322 <jiter_data, jited_data>: New fields.
5323 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5324 (jiter_objfile_data::~jiter_objfile_data): ... this.
5325 (get_jit_objfile_data): Rename to ...
5326 (get_jiter_objfile_data): ... this.
5327 (add_objfile_entry): Update.
5328 (jit_read_descriptor): Use get_jiter_objfile_data.
5329 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5330 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5331 (jit_inferior_exit_hook): Use objfile's jited_data field.
5332
5333 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5334
5335 * jit.h: Forward-declare `struct minimal_symbol`.
5336 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5337 constructor, destructor, and an objfile* field.
5338 * jit.c (jit_objfile_data): Remove.
5339 (struct jit_objfile_data): Migrate from here to jit.h.
5340 (jit_objfile_data::~jit_objfile_data): New destructor
5341 implementation with code moved from free_objfile_data.
5342 (free_objfile_data): Delete.
5343 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5344 (jit_find_objf_with_entry_addr): Ditto.
5345 (jit_inferior_exit_hook): Ditto.
5346 (_initialize_jit): Remove the call to
5347 register_objfile_data_with_cleanup.
5348 * objfiles.h (struct objfile) <jit_data>: New field.
5349
5350 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5351
5352 * jit.h: Forward-declare `struct objfile`.
5353 (jit_event_handler): Add a second parameter, the JITer objfile.
5354 * jit.c (jit_read_descriptor): Change the signature to take the
5355 JITer objfile as an argument instead of the jit_program_space_data.
5356 (jit_inferior_init): Update the call to jit_read_descriptor.
5357 (jit_event_handler): Use the new JITer objfile argument when calling
5358 jit_read_descriptor.
5359 * breakpoint.c (handle_jit_event): Update the call to
5360 jit_event_handler to pass the JITer objfile.
5361
5362 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5363
5364 * gdbarch.c: Regenerate.
5365 * gdbarch.h: Regenerate.
5366 * gdbarch.sh (handle_segmentation_fault): Remove method.
5367 * infrun.c (handle_segmentation_fault): Remove.
5368 (print_signal_received_reason): Remove call to
5369 handle_segmentation_fault.
5370
5371 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5372
5373 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5374 Rename to sparc64_linux_report_signal_info and add siggnal
5375 argument.
5376 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5377 instead of sparc64_linux_handle_segmentation_fault.
5378
5379 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5380
5381 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5382 i386_linux_report_signal_info instead of
5383 i386_linux_handle_segmentation_fault.
5384 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5385 to i386_linux_report_signal_info and add siggnal argument.
5386 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5387 of i386_linux_handle_segmentation_fault.
5388 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5389 to i386_linux_report_signal_info and add siggnal argument.
5390
5391 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5392
5393 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5394 hook if present.
5395
5396 2020-07-21 John Baldwin <jhb@FreeBSD.org>
5397
5398 * gdbarch.c: Regenerate.
5399 * gdbarch.h: Regenerate.
5400 * gdbarch.sh (report_signal_info): New method.
5401 * infrun.c (print_signal_received_reason): Invoke gdbarch
5402 report_signal_info hook if present.
5403
5404 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5405
5406 * python/py-registers.c : Add 'unordered_map' include.
5407 (gdbpy_new_reggroup): Renamed to...
5408 (gdbpy_get_reggroup): ...this. Update to only create register
5409 group descriptors when needed.
5410 (gdbpy_reggroup_iter_next): Update.
5411
5412 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5413
5414 * python/py-registers.c (gdbpy_register_object_data): New static
5415 global.
5416 (gdbpy_register_object_data_init): New function.
5417 (gdbpy_new_register_descriptor): Renamed to...
5418 (gdbpy_get_register_descriptor): ...this, and update to reuse
5419 existing register descriptors where possible.
5420 (gdbpy_register_descriptor_iter_next): Update.
5421 (gdbpy_initialize_registers): Register new gdbarch data.
5422
5423 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
5424
5425 * linux-nat.c (stopped_pids): Make static.
5426
5427 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5428
5429 PR ada/26235
5430 * gdbtypes.c (ada_discrete_type_low_bound,
5431 ada_discrete_type_high_bound): Handle undefined bounds.
5432
5433 2020-07-21 Kamil Rytarowski <n54@gmx.com>
5434
5435 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
5436 declaration.
5437 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
5438 function.
5439
5440 2020-07-20 John Baldwin <jhb@FreeBSD.org>
5441
5442 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
5443 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
5444 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
5445 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
5446 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
5447 method.
5448
5449 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5450
5451 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
5452 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
5453 which are deprecated in Guile 3.0.
5454 * configure.ac (try_guile_versions): Add "guile-3.0".
5455 * configure (try_guile_versions): Regenerate.
5456 * NEWS: Update entry.
5457
5458 2020-07-20 Ludovic Courtès <ludo@gnu.org>
5459 Doug Evans <dje@google.com>
5460
5461 PR gdb/21104
5462 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
5463 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
5464 USING_GUILE_BEFORE_2_2.
5465 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
5466 Change type to 'scm_t_port_type *'.
5467 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
5468 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
5469 parameter and honor it. Update callers.
5470 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
5471 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
5472 functions.
5473 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
5474 USING_GUILE_BEFORE_2_2.
5475 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
5476 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
5477 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
5478 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
5479 and 'SCM_PORT_TYPE'.
5480 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
5481 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
5482 (gdbscm_memory_port_read, gdbscm_memory_port_write)
5483 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
5484 [!USING_GUILE_BEFORE_2_2]: New functions.
5485 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
5486 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
5487 'gdbscm_memory_port_read'.
5488 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
5489 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
5490 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
5491 function.
5492 (ioscm_init_memory_port): Remove.
5493 (ioscm_init_memory_port_stream): New function
5494 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
5495 function.
5496 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5497 Return scm_from_uint (0).
5498 (gdbscm_set_memory_port_read_buffer_size_x)
5499 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5500 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
5501 Return scm_from_uint (0).
5502 (gdbscm_set_memory_port_write_buffer_size_x)
5503 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
5504 * configure.ac (try_guile_versions): Add "guile-2.2".
5505 * configure: Regenerate.
5506 * NEWS: Add entry.
5507
5508 2020-07-18 Tom Tromey <tom@tromey.com>
5509
5510 * linux-nat.c (linux_multi_process): Remove.
5511 (linux_nat_target::supports_multi_process): Return true.
5512
5513 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5514
5515 * arch/riscv.c (riscv_tdesc_cache): Change map type.
5516 (riscv_lookup_target_description): Return pointer out of
5517 unique_ptr.
5518 * target-descriptions.c (allocate_target_description): Add
5519 comment.
5520 (target_desc_deleter::operator()): Likewise.
5521 * target-descriptions.h (struct target_desc_deleter): Moved to
5522 gdbsupport/tdesc.h.
5523 (target_desc_up): Likewise.
5524
5525 2020-07-17 Tom Tromey <tromey@adacore.com>
5526
5527 * linux-nat.c (linux_nat_target::supports_non_stop)
5528 (linux_nat_target::always_non_stop_p): Use "true".
5529 (linux_nat_target::supports_disable_randomization): Use "true" and
5530 "false".
5531
5532 2020-07-16 Caroline Tice <cmtice@google.com>
5533
5534 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5535 (RNGLIST_HEADER_SIZE64): New constant definition.
5536 (struct dwop_section_names): Add rnglists_dwo.
5537 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5538 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5539 (struct dwo_sections): Add rnglists field.
5540 (read_attribut_reprocess): Add tag parameter.
5541 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5542 (cu_debug_rnglists_section): New function (decl & definition).
5543 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5544 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5545 die whose range is being checked; get rnglist section from
5546 cu_debug_rnglists_section, to get from either objfile or dwo file as
5547 appropriate. Add cases for DW_RLE_base_addressx,
5548 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5549 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5550 test inside if-condition and updating complaint message.
5551 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5552 dwarf2_rnglists_process.
5553 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5554 dwarf2_ranges_process.
5555 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5556 need_ranges_base and update comment appropriately. Also pass die tag
5557 to dwarf2_ranges_read.
5558 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5559 need_ranges_base and update comment appropriately. Also pass die tag
5560 to dwarf2_ranges_process.
5561 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5562 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5563 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5564 need_ranges_base and update comment appropriately. Also pass die tag
5565 to read_attribute_reprocess and dwarf2_ranges_read.
5566 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5567 and update function comment appropriately.
5568 (read_loclist_index): Call read_loclists_rnglists_header instead of
5569 read_loclist_header.
5570 (read_rnglist_index): New function.
5571 (read_attribute_reprocess): Add tag parameter. Add code for
5572 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5573 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5574
5575 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5576
5577 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5578 being resolved.
5579
5580 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5581
5582 * arch-utils.c (show_architecture): Update formatting of messages.
5583
5584 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5585
5586 * gdbtypes.h (struct type) <bounds>: Handle array and string
5587 types.
5588 * ada-lang.c (assign_aggregate): Use type::bounds on
5589 array/string type.
5590 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5591 * c-varobj.c (c_number_of_children): Likewise.
5592 (c_describe_child): Likewise.
5593 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5594 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5595 (f_type_print_base): Likewise.
5596 * f-valprint.c (f77_array_offset_tbl): Likewise.
5597 (f77_get_upperbound): Likewise.
5598 (f77_print_array_1): Likewise.
5599 * guile/scm-type.c (gdbscm_type_range): Likewise.
5600 * m2-typeprint.c (m2_array): Likewise.
5601 (m2_is_long_set_of_type): Likewise.
5602 * m2-valprint.c (get_long_set_bounds): Likewise.
5603 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5604 * python/py-type.c (typy_range): Likewise.
5605 * rust-lang.c (rust_internal_print_type): Likewise.
5606 * type-stack.c (type_stack::follow_types): Likewise.
5607 * valarith.c (value_subscripted_rvalue): Likewise.
5608 * valops.c (value_cast): Likewise.
5609
5610 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5611
5612 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5613 callers to use the equivalent accessor methods.
5614
5615 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5616
5617 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5618 (struct type) <bit_stride>: New method.
5619 (TYPE_BIT_STRIDE): Remove.
5620 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5621
5622 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5625 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5626 callers to use the equivalent accessor methods instead.
5627
5628 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5629
5630 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5631 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5632 callers to use the equivalent accessor methods instead.
5633
5634 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5635
5636 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5637 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5638 to use dynamic_prop::kind.
5639
5640 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5641
5642 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5643 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5644 to get the bound property's kind and check against
5645 PROP_UNDEFINED.
5646
5647 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5648
5649 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5650 all callers to use type::range_bounds followed by
5651 dynamic_prop::{low,high}.
5652
5653 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5654
5655 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5656 const_val, set_const_val, baton, set_locexpr, set_loclist,
5657 set_addr_offset, variant_parts, set_variant_parts,
5658 original_type, set_original_type>: New methods.
5659 <kind>: Rename to...
5660 <m_kind>: ... this. Update all users to use the new methods
5661 instead.
5662 <data>: Rename to...
5663 <m_data>: ... this. Update all users to use the new methods
5664 instead.
5665
5666 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * gdbtypes.c (get_discrete_bounds): Return failure if
5669 the range type's bounds are not both defined and constant
5670 values.
5671 (get_array_bounds): Update comment. Remove undefined bound check.
5672
5673 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5674
5675 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5676 the type::bounds method directly.
5677
5678 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5679
5680 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5681 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5682 are used to set the range type's bounds to use set_bounds.
5683
5684 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5685
5686 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5687
5688 2020-07-10 Pedro Alves <pedro@palves.net>
5689
5690 * gdbthread.h (inferior_ref): Define.
5691 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5692 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5693 * thread.c
5694 (scoped_restore_current_thread::restore):
5695 Adjust to gdb::ref_ptr.
5696 (scoped_restore_current_thread::~scoped_restore_current_thread):
5697 Remove manual decref handling.
5698 (scoped_restore_current_thread::scoped_restore_current_thread):
5699 Adjust to use
5700 inferior_ref::new_reference/thread_info_ref::new_reference.
5701 Incref the thread before calling get_frame_id instead of after.
5702 Let TARGET_CLOSE_ERROR propagate.
5703
5704 2020-07-10 Pedro Alves <pedro@palves.net>
5705
5706 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5707 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5708 NOT_AVAILABLE_ERROR.
5709 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5710 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5711
5712 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5713 Pedro Alves <pedro@palves.net>
5714
5715 PR gdb/26199
5716 * infrun.c (threads_are_resumed_pending_p): Delete.
5717 (do_target_wait): Remove threads_are_executing and
5718 threads_are_resumed_pending_p checks from the inferior_matches
5719 lambda. Update comments.
5720
5721 2020-07-10 Pedro Alves <pedro@palves.net>
5722
5723 PR gdb/26199
5724 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5725 executing threads.
5726
5727 2020-07-10 Pedro Alves <pedro@palves.net>
5728
5729 PR gdb/26199
5730 * infrun.c (handle_no_resumed): Handle multiple targets.
5731
5732 2020-07-10 Pedro Alves <pedro@palves.net>
5733
5734 PR gdb/26199
5735 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5736 target_is_async_p.
5737
5738 2020-07-10 Pedro Alves <pedro@palves.net>
5739
5740 PR gdb/26199
5741 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5742 threads, not all threads.
5743
5744 2020-07-10 Pedro Alves <pedro@palves.net>
5745
5746 PR gdb/26199
5747 * remote.c (remote_target::open_1): Pass remote target pointer as
5748 data to create_async_event_handler.
5749 (remote_async_inferior_event_handler): Mark async event handler
5750 before returning if the remote target still has either pending
5751 events or unacknowledged notifications.
5752
5753 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5754
5755 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5756 declaration.
5757 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5758 function.
5759
5760 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5761
5762 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5763 inferior_ptid.
5764
5765 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5766
5767 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5768 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5769 AT_FREEBSD_PS_STRINGS.
5770
5771 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5772
5773 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5774 of debugfile path on Windows.
5775
5776 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5777
5778 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5779 argument to 'data'.
5780
5781 2020-07-08 Tom Tromey <tromey@adacore.com>
5782
5783 * ada-lang.c (ada_exception_message_1): Use read_memory.
5784
5785 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5786
5787 PR python/22748
5788 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5789 special handling for inline frames.
5790 * findvar.c (value_of_register_lazy): Skip inline frames when
5791 creating lazy register values.
5792 * frame.c (frame_id_computed_p): Delete definition.
5793 * frame.h (frame_id_computed_p): Delete declaration.
5794
5795 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5796
5797 * NEWS: Mention additions to Python API.
5798 * python/py-arch.c (archpy_register_groups): New function.
5799 (arch_object_methods): Add 'register_groups' method.
5800 * python/py-registers.c (reggroup_iterator_object): New struct.
5801 (reggroup_object): New struct.
5802 (gdbpy_new_reggroup): New function.
5803 (gdbpy_reggroup_to_string): New function.
5804 (gdbpy_reggroup_name): New function.
5805 (gdbpy_reggroup_iter): New function.
5806 (gdbpy_reggroup_iter_next): New function.
5807 (gdbpy_new_reggroup_iterator): New function
5808 (gdbpy_initialize_registers): Register new types.
5809 (reggroup_iterator_object_type): Define new Python type.
5810 (gdbpy_reggroup_getset): New static global.
5811 (reggroup_object_type): Define new Python type.
5812 * python/python-internal.h
5813
5814 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5815
5816 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5817 * python/py-arch.c (archpy_registers): New function.
5818 (arch_object_methods): Add 'registers' method.
5819 * python/py-registers.c: New file.
5820 * python/python-internal.h
5821 (gdbpy_new_register_descriptor_iterator): Declare.
5822 (gdbpy_initialize_registers): Declare.
5823 * python/python.c (do_start_initialization): Call
5824 gdbpy_initialize_registers.
5825 * NEWS: Mention additions to the Python API.
5826
5827 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5828
5829 * NEWS: Mention new Python API method.
5830 * python/py-unwind.c (pending_framepy_architecture): New function.
5831 (pending_frame_object_methods): Add architecture method.
5832
5833 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5834
5835 * gdbarch.c: Regenerate.
5836 * gdbarch.h: Regenerate.
5837 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5838 (gdbarch_data): Use internal_error for the case where
5839 deprecated_set_gdbarch_data was originally needed.
5840 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5841 and use passed in obstack.
5842 (libunwind_frame_set_descr): Should no longer get back NULL from
5843 gdbarch_data.
5844 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5845 type.
5846 * user-regs.c (user_regs_init): Update parameters, and use passed
5847 in obstack.
5848 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5849 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5850
5851 2020-07-06 Tom de Vries <tdevries@suse.de>
5852
5853 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5854 End-Of-Sequence in lte_is_less_than.
5855 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5856 "gdb: Don't reorder line table entries too much when sorting".
5857
5858 2020-07-06 Tom de Vries <tdevries@suse.de>
5859
5860 PR tui/26205
5861 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5862
5863 2020-07-05 Tom de Vries <tdevries@suse.de>
5864
5865 PR build/26187
5866 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5867 std::uncaught_exceptions instead of deprecated
5868 std::uncaught_exception.
5869
5870 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5871
5872 * macroexp.h (macro_stringify): Return
5873 gdb::unique_xmalloc_ptr<char>.
5874 * macroexp.c (macro_stringify): Likewise.
5875 * macrotab.c (fixup_definition): Update.
5876
5877 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5878
5879 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5880 (lex_one_token): Update.
5881 * macroexp.c (struct macro_buffer) <release>: Return
5882 gdb::unique_xmalloc_ptr<char>.
5883 (macro_stringify): Update.
5884 (macro_expand): Update.
5885 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5886 * macroexp.h (macro_expand_next): Likewise.
5887
5888 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5889
5890 * macroexp.h (macro_lookup_ftype): Remove.
5891 (macro_expand, macro_expand_once, macro_expand_next): Remove
5892 lookup function parameters, add scope parameter.
5893 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5894 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5895 * macroscope.h (standard_macro_lookup): Change parameter type
5896 to macro_scope.
5897 * macroscope.c (standard_macro_lookup): Likewise.
5898 * c-exp.y (lex_one_token): Update.
5899 * macrocmd.c (macro_expand_command): Likewise.
5900 (macro_expand_once_command): Likewise.
5901
5902 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5903
5904 * inf-loop.c (inferior_event_handler): Remove client_data param.
5905 * inf-loop.h (inferior_event_handler): Likewise.
5906 * infcmd.c (step_1): Adjust.
5907 * infrun.c (proceed): Adjust.
5908 (fetch_inferior_event): Remove client_data param.
5909 (infrun_async_inferior_event_handler): Adjust.
5910 * infrun.h (fetch_inferior_event): Remove `void *` param.
5911 * linux-nat.c (handle_target_event): Adjust.
5912 * record-btrace.c (record_btrace_handle_async_inferior_event):
5913 Adjust.
5914 * record-full.c (record_full_async_inferior_event_handler):
5915 Adjust.
5916 * remote.c (remote_async_inferior_event_handler): Adjust.
5917
5918 2020-07-01 Tom Tromey <tom@tromey.com>
5919
5920 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5921 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5922
5923 2020-07-01 Tom Tromey <tom@tromey.com>
5924
5925 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5926 tui_gen_win_info.
5927 (tui_win_info::make_window): Merge with
5928 tui_gen_win_info::make_window.
5929 (tui_win_info::make_visible): Move from tui_gen_win_info.
5930 * tui/tui-win.c (tui_win_info::max_width): Move from
5931 tui_gen_win_info.
5932 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5933 type.
5934 <window_factory>: Likewise.
5935 * tui/tui-layout.c (tui_win_info::resize): Move from
5936 tui_gen_win_info.
5937 (make_standard_window): Change return type.
5938 (get_locator_window, tui_get_window_by_name): Likewise.
5939 (tui_layout_window::apply): Remove a cast.
5940 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5941 (struct tui_win_info): Merge with tui_gen_win_info.
5942 (struct tui_gen_win_info): Remove.
5943
5944 2020-07-01 Tom Tromey <tom@tromey.com>
5945
5946 * tui/tui-stack.h (struct tui_locator_window): Derive from
5947 tui_win_info.
5948 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5949 <can_box>: New method.
5950
5951 2020-07-01 Tom Tromey <tom@tromey.com>
5952
5953 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5954
5955 2020-07-01 Tom Tromey <tom@tromey.com>
5956
5957 * tui/tui-regs.c (tui_data_window::display_registers_from)
5958 (tui_data_window::display_registers_from)
5959 (tui_data_window::first_data_item_displayed)
5960 (tui_data_window::delete_data_content_windows): Update.
5961 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5962 Remove.
5963 (tui_data_window::check_register_values): Update.
5964 (tui_data_item_window::rerender): Add parameters. Update.
5965 (tui_data_item_window::refresh_window): Remove.
5966 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5967 virtual.
5968 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5969 tui_gen_win_info.
5970 <refresh_window, max_height, min_height>: Remove.
5971 <rerender>: Add parameters.
5972 <x, y, visible>: New members.
5973 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5974 <m_item_width>: New member.
5975
5976 2020-07-01 Tom Tromey <tom@tromey.com>
5977
5978 * tui/tui-regs.c (tui_data_window::show_register_group)
5979 (tui_data_window::check_register_values): Update.
5980 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5981 from item_no.
5982
5983 2020-07-01 Tom Tromey <tom@tromey.com>
5984
5985 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5986 useless "if".
5987
5988 2020-07-01 Tom Tromey <tom@tromey.com>
5989
5990 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5991 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5992
5993 2020-07-01 Tom Tromey <tom@tromey.com>
5994
5995 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5996 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5997 (struct tui_line_or_address): Move from tui-data.h.
5998 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5999 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6000 (tui_cmd_window, tui_source_window_base, tui_source_window)
6001 (tui_disasm_window): Don't declare.
6002 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6003 to tui-winsource.h.
6004 (SINGLE_KEY): Move to tui-stack.c.
6005
6006 2020-07-01 Tom Tromey <tom@tromey.com>
6007
6008 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6009 std::string.
6010 * tui/tui-regs.c (class tab_expansion_file): New.
6011 (tab_expansion_file::write): New method.
6012 (tui_register_format): Change return type. Use
6013 tab_expansion_file.
6014 (tui_get_register, tui_data_window::display_registers_from)
6015 (tui_data_item_window::rerender): Update.
6016 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6017 * tui/tui-io.c (tui_expand_tabs): Remove.
6018
6019 2020-07-01 Tom Tromey <tom@tromey.com>
6020
6021 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6022
6023 2020-07-01 Fangrui Song <maskray@google.com>
6024
6025 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6026
6027 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6028
6029 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6030 forms for DW_AT_associated and DW_AT_allocated attributes,
6031 which is already checked in function attr_to_dynamic_prop.
6032
6033 2020-06-30 Tom Tromey <tromey@adacore.com>
6034
6035 * dwarf2/read.c (quirk_rust_enum): Correctly call
6036 alloc_rust_variant for default-less enum.
6037
6038 2020-06-30 Tom Tromey <tromey@adacore.com>
6039
6040 PR build/26183:
6041 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6042 gdb::to_string.
6043
6044 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
6045
6046 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6047 * gdbarch.h: Re-generate.
6048
6049 2020-06-28 Tom Tromey <tom@tromey.com>
6050
6051 * command.h (cmd_types): Remove.
6052 (cmd_type): Don't declare.
6053 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6054 typedef.
6055 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6056 * cli/cli-decode.c (cmd_type): Remove.
6057
6058 2020-06-27 Pedro Alves <palves@redhat.com>
6059
6060 * fork-child.c (prefork_hook): Adjust.
6061 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6062 Delete.
6063 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6064 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6065 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6066 Remove declarations.
6067 (struct inferior) <set_tty, tty>: New methods.
6068 (struct inferior) <terminal>: Rename to ...
6069 (struct inferior) <m_terminal>: ... this and make private.
6070 * main.c (captured_main_1): Adjust.
6071 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6072 (mi_cmd_inferior_tty_show): Adjust.
6073 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6074 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6075
6076 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
6077
6078 * configure.ac: Add --enable-libctf: handle --disable-static
6079 properly.
6080 * acinclude.m4: sinclude ../config/enable.m4.
6081 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6082 (LIBCTF): Substitute in.
6083 (CTF_DEPS): New, likewise.
6084 (CLIBS): libctf needs symbols from libbfd: move earlier.
6085 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6086 flags.
6087 * ctfread.c: Surround in ENABLE_LIBCTF.
6088 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6089 * configure: Regenerate.
6090 * config.in: Likewise.
6091
6092 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6093
6094 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6095
6096 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
6097
6098 * inferior.h (struct inferior) <terminal>: Change type to
6099 gdb::unique_xmalloc_ptr<char>.
6100 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6101 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6102 field, adjust to unique pointer.
6103 (get_inferior_io_terminal): Adjust to unique pointer.
6104
6105 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6106
6107 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6108 registers, not just the known core set of registers.
6109
6110 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6111
6112 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6113 fflags, frm, and fcsr registers.
6114 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6115 restore groups.
6116 (riscv_tdesc_unknown_reg): New function.
6117 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6118 tdesc_use_registers.
6119 * riscv-tdep.h (struct gdbarch_tdep): Add
6120 unknown_csrs_first_regnum, unknown_csrs_count,
6121 duplicate_fflags_regnum, duplicate_frm_regnum, and
6122 duplicate_fcsr_regnum fields.
6123
6124 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6125
6126 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6127 callback, use the callback (when not null) to help number unknown
6128 registers.
6129 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6130 (tdesc_use_registers): Add extra parameter to declaration.
6131
6132 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6133
6134 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6135 in the file.
6136 (class riscv_pending_register_alias): Likewise.
6137 (riscv_register_feature::register_info): Change 'required_p' field
6138 to 'required', and change its type. Add 'check' member function.
6139 (riscv_register_feature::register_info::check): Define new member
6140 function.
6141 (riscv_xreg_feature): Change initialisation of 'required' field.
6142 (riscv_freg_feature): Likewise.
6143 (riscv_virtual_feature): Likewise.
6144 (riscv_csr_feature): Likewise.
6145 (riscv_check_tdesc_feature): Take extra parameter, the csr
6146 tdesc_feature, rewrite the function to use the new
6147 riscv_register_feature::register_info::check function.
6148 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6149
6150 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6151
6152 * features/Makefile: Remove all references to the deleted files
6153 below.
6154 * features/riscv/32bit-csr.c: Deleted.
6155 * features/riscv/32bit-csr.xml: Deleted.
6156 * features/riscv/64bit-csr.c: Deleted.
6157 * features/riscv/64bit-csr.xml: Deleted.
6158 * features/riscv/rebuild-csr-xml.sh: Deleted.
6159
6160 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6161
6162 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6163 whitespace error for declaration of names member variable.
6164 (struct riscv_register_feature): Add new prefer_first_name member
6165 variable, and fix whitespace error in declaration of registers.
6166 (riscv_xreg_feature): Initialize prefer_first_name field.
6167 (riscv_freg_feature): Likewise.
6168 (riscv_virtual_feature): Likewise.
6169 (riscv_csr_feature): Likewise.
6170 (riscv_register_name): Expand on comments. Remove register name
6171 modifications for CSR and virtual registers.
6172
6173 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6174
6175 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6176 errors.
6177
6178 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6179
6180 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6181 riscv-opc.h.
6182 (class riscv_pending_register_alias): New class.
6183 (riscv_check_tdesc_feature): Take vector of pending aliases and
6184 populate it as appropriate.
6185 (riscv_setup_register_aliases): Delete.
6186 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6187 to riscv_check_tdesc_feature in all cases. Use the vector to
6188 create the register aliases.
6189
6190 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6191
6192 * sol2-tdep.c (sol2_static_transform_name): Remove.
6193 (sol2_init_abi): Don't register it.
6194 * gdbarch.sh (static_transform_name): Remove.
6195 * gdbarch.c, gdbarch.h: Regenerate.
6196
6197 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6198 gdbarch_static_transform_name.
6199 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6200 * stabsread.c (define_symbol) <'X'>: Remove.
6201 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6202 handling.
6203 <'V'>: Likewise.
6204 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6205 <'S'>: Remove call to gdbarch_static_transform_name.
6206
6207 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6208
6209 * procfs.c (procfs_pre_trace): New function.
6210 (procfs_target::create_inferior): Pass it to fork_inferior.
6211
6212 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6213
6214 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6215 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6216 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6217 sol2-tdep.o, sparc-sol2-tdep.o.
6218 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6219 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6220 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6221 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6222
6223 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6224
6225 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6226 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6227 Call sol2_init_abi.
6228 Remove calls to set_gdbarch_skip_solib_resolver,
6229 set_gdbarch_core_pid_to_str.
6230 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6231 (i386_sol2_static_transform_name): Remove.
6232 (i386_sol2_init_abi): Call sol2_init_abi.
6233 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6234 set_gdbarch_static_transform_name,
6235 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6236 Use sol2_sigtramp_p.
6237 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6238 (sol2_sigtramp_p): New function.
6239 (sol2_static_transform_name): New function.
6240 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6241 (sol2_init_abi): New function.
6242 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6243 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6244 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6245 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6246 (sparc_sol2_static_transform_name): Remove.
6247 (sparc32_sol2_init_abi): Call sol2_init_abi.
6248 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6249 set_gdbarch_static_transform_name,
6250 set_gdbarch_skip_solib_resolver,
6251 set_gdbarch_core_pid_to_str.
6252 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6253 (sparc_sol2_static_transform_name): Remove
6254 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6255 call sol2_sigtramp_p.
6256 (sparc64_sol2_init_abi): Call sol2_init_abi.
6257 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6258 set_gdbarch_static_transform_name,
6259 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6260
6261 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6262
6263 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6264 * exec.c (validate_exec_file): If from_tty, set both
6265 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6266 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6267 and from_tty, unconditionally ask a confirmation.
6268
6269 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6270
6271 * target-descriptions.c (tdesc_architecture_name): Protect against
6272 NULL pointer dereference.
6273 (maint_print_xml_tdesc_cmd): New function.
6274 (_initialize_target_descriptions): Register new 'maint print
6275 xml-tdesc' command and give it the filename completer.
6276 * NEWS: Mention new 'maint print xml-tdesc' command.
6277
6278 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6279
6280 * target-descriptions.c (class tdesc_compatible_info): New class.
6281 (struct target_desc): Change type of compatible vector.
6282 (tdesc_compatible_p): Update for change in type of
6283 target_desc::compatible.
6284 (tdesc_compatible_info_list): New function.
6285 (tdesc_compatible_info_arch_name): New function.
6286 (tdesc_add_compatible): Update for change in type of
6287 target_desc::compatible.
6288 (print_c_tdesc::visit_pre): Likewise.
6289
6290 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6291
6292 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6293 whitespace to underscore.
6294 (maint_print_c_tdesc_cmd): Use fake filename for target
6295 descriptions that came from the target.
6296 (_initialize_target_descriptions): Add filename command completion
6297 for 'maint print c-tdesc'.
6298
6299 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6300
6301 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6302 lines.
6303
6304 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
6305
6306 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6307 lines.
6308 (dwarf2_find_location_expression): Likewise.
6309 (call_site_parameter_matches): Likewise.
6310 (dwarf2_compile_expr_to_ax): Likewise.
6311 (disassemble_dwarf_expression): Likewise.
6312 (loclist_describe_location): Likewise.
6313
6314 2020-06-23 Pedro Alves <palves@redhat.com>
6315
6316 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6317 progspace-and-thread.h. Include scoped-mock-context.h instead.
6318 (register_to_value_test): Use scoped_mock_context.
6319 * regcache.c: Include "scoped-mock-context.h".
6320 (cooked_read_test): Don't error out if a target is already pushed.
6321 Use scoped_mock_context. Adjust.
6322 * scoped-mock-context.h: New file.
6323
6324 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6325
6326 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6327 initializer.
6328 (ada_language::is_string_type_p): New member function.
6329 * c-lang.c (c_language_data): Delete la_is_string_type_p
6330 initializer.
6331 (cplus_language_data): Likewise.
6332 (asm_language_data): Likewise.
6333 (minimal_language_data): Likewise.
6334 * d-lang.c (d_language_data): Likewise.
6335 * f-lang.c (f_is_string_type_p): Delete function, implementation
6336 moved to f_language::is_string_type_p.
6337 (f_language_data): Delete la_is_string_type_p initializer.
6338 (f_language::is_string_type_p): New member function,
6339 implementation from f_is_string_type_p.
6340 * go-lang.c (go_is_string_type_p): Delete function, implementation
6341 moved to go_language::is_string_type_p.
6342 (go_language_data): Delete la_is_string_type_p initializer.
6343 (go_language::is_string_type_p): New member function,
6344 implementation from go_is_string_type_p.
6345 * language.c (language_defn::is_string_type_p): Define new member
6346 function.
6347 (default_is_string_type_p): Make static, add comment copied from
6348 header file.
6349 (unknown_language_data): Delete la_is_string_type_p initializer.
6350 (unknown_language::is_string_type_p): New member function.
6351 (auto_language_data): Delete la_is_string_type_p initializer.
6352 (auto_language::is_string_type_p): New member function.
6353 * language.h (language_data): Delete la_is_string_type_p field.
6354 (language_defn::is_string_type_p): Declare new function.
6355 (default_is_string_type_p): Delete desclaration, move comment to
6356 definition.
6357 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6358 moved to m2_language::is_string_type_p.
6359 (m2_language_data): Delete la_is_string_type_p initializer.
6360 (m2_language::is_string_type_p): New member function,
6361 implementation from m2_is_string_type_p.
6362 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6363 initializer.
6364 * opencl-lang.c (opencl_language_data): Likewise.
6365 * p-lang.c (pascal_is_string_type_p): Delete function,
6366 implementation moved to pascal_language::is_string_type_p.
6367 (pascal_language_data): Delete la_is_string_type_p initializer.
6368 (pascal_language::is_string_type_p): New member function,
6369 implementation from pascal_is_string_type_p.
6370 * rust-lang.c (rust_is_string_type_p): Delete function,
6371 implementation moved to rust_language::is_string_type_p.
6372 (rust_language_data): Delete la_is_string_type_p initializer.
6373 (rust_language::is_string_type_p): New member function,
6374 implementation from rust_is_string_type_p.
6375 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6376 is_string_type_p.
6377
6378 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6379
6380 * ada-lang.c (ada_language_data): Delete la_print_typedef
6381 initializer.
6382 (ada_language::print_typedef): New member function.
6383 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6384 (cplus_language_data): Likewise.
6385 (asm_language_data): Likewise.
6386 (minimal_language_data): Likewise.
6387 * d-lang.c (d_language_data): Likewise.
6388 * f-lang.c (f_language_data): Likewise.
6389 (f_language::print_typedef): New member function.
6390 * go-lang.c (go_language_data): Delete la_print_typedef
6391 initializer.
6392 * language.c (language_defn::print_typedef): Define member
6393 function.
6394 (unknown_language_data): Delete la_print_typedef initializer.
6395 (unknown_language::print_typedef): New member function.
6396 (auto_language_data): Delete la_print_typedef initializer.
6397 (auto_language::print_typedef): New member function.
6398 * language.h (language_data): Delete la_print_typedef field.
6399 (language_defn::print_typedef): Declare new member function.
6400 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6401 (default_print_typedef): Delete declaration.
6402 * m2-lang.c (m2_language_data): Delete la_print_typedef
6403 initializer.
6404 (m2_language::print_typedef): New member function.
6405 * objc-lang.c (objc_language_data): Delete la_print_typedef
6406 initializer.
6407 * opencl-lang.c (opencl_language_data): Likewise.
6408 * p-lang.c (pascal_language_data): Likewise.
6409 (pascal_language::print_typedef): New member function.
6410 * rust-lang.c (rust_print_typedef): Delete function,
6411 implementation moved to rust_language::print_typedef.
6412 (rust_language): Delete la_print_typedef initializer.
6413 (rust_language::print_typedef): New member function,
6414 implementation from rust_print_typedef.
6415 * typeprint.c (default_print_typedef): Delete.
6416
6417 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6418
6419 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
6420 (ada_language::printstr): New member function.
6421 * c-lang.c (c_language_data): Delete la_printstr initializer.
6422 (cplus_language_data): Likewise.
6423 (asm_language_data): Likewise.
6424 (minimal_language_data): Likewise.
6425 * d-lang.c (d_language_data): Likewise.
6426 * f-lang.c (f_printstr): Rename to f_language::printstr.
6427 (f_language_data): Delete la_printstr initializer.
6428 (f_language::printstr): New member function, implementation from
6429 f_printstr.
6430 * go-lang.c (go_language_data): Delete la_printstr initializer.
6431 * language.c (language_defn::printstr): Define new member
6432 function.
6433 (unk_lang_printstr): Delete.
6434 (unknown_language_data): Delete la_printstr initializer.
6435 (unknown_language::printstr): New member function.
6436 (auto_language_data): Delete la_printstr initializer.
6437 (auto_language::printstr): New member function.
6438 * language.h (language_data): Delete la_printstr field.
6439 (language_defn::printstr): Declare new member function.
6440 (LA_PRINT_STRING): Update call to printstr.
6441 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
6442 (m2_language_data): Delete la_printstr initializer.
6443 (m2_language::printstr): New member function, implementation from
6444 m2_printstr.
6445 * objc-lang.c (objc_language_data): Delete la_printstr
6446 initializer.
6447 * opencl-lang.c (opencl_language_data): Likewise.
6448 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
6449 (pascal_language_data): Delete la_printstr initializer.
6450 (pascal_language::printstr): New member function, implementation
6451 from pascal_printstr.
6452 * p-lang.h (pascal_printstr): Delete declaration.
6453 * rust-lang.c (rust_printstr): Update header comment.
6454 (rust_language_data): Delete la_printstr initializer.
6455 (rust_language::printstr): New member function.
6456
6457 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6458
6459 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
6460 (ada_language::printchar): New member function.
6461 * c-lang.c (c_language_data): Delete la_printchar 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_printchar): Rename to f_language::printchar.
6467 (f_language_data): Delete la_printchar initializer.
6468 (f_language::printchar): New member function, implementation from
6469 f_printchar.
6470 * go-lang.c (go_language_data): Delete la_printchar initializer.
6471 * language.c (unk_lang_printchar): Delete.
6472 (language_defn::printchar): Define new member function.
6473 (unknown_language_data): Delete la_printchar initializer.
6474 (unknown_language::printchar): New member function.
6475 (auto_language_data): Delete la_printchar initializer.
6476 (auto_language::printchar): New member function.
6477 * language.h (language_data): Delete la_printchar field.
6478 (language_defn::printchar): Declare new member function.
6479 (LA_PRINT_CHAR): Update call to printchar.
6480 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
6481 (m2_language::printchar): New member function.
6482 * objc-lang.c (objc_language_data): Delete la_printchar
6483 initializer.
6484 * opencl-lang.c (opencl_language_data): Likewise.
6485 * p-lang.c (pascal_language_data): Delete la_printchar
6486 initializer.
6487 (pascal_language::printchar): New member function.
6488 * rust-lang.c (rust_printchar): Rename to
6489 rust_language::printchar.
6490 (rust_language_data): Delete la_printchar initializer.
6491 (rust_language::printchar): New member function, implementation
6492 from rust_printchar.
6493
6494 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6495
6496 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
6497 (ada_language_data): Delete la_emitchar initializer.
6498 (ada_language::emitchar): New member function, implementation from
6499 emit_char.
6500 * c-lang.c (c_language_data): Delete la_emitchar initializer.
6501 (cplus_language_data): Likewise.
6502 (asm_language_data): Likewise.
6503 (minimal_language_data): Likewise.
6504 * d-lang.c (d_language_data): Likewise.
6505 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
6506 (f_language_data): Delete la_emitchar initializer.
6507 (f_language::emitchar): New member function, implementation from
6508 f_emit_char.
6509 * go-lang.c (go_language_data): Delete la_emitchar initializer.
6510 * language.c (unk_lang_emit_char): Delete.
6511 (language_defn::emitchar): New member function definition.
6512 (unknown_language_data): Delete la_emitchar initializer.
6513 (unknown_language::emitchar): New member function.
6514 (auto_language_data): Delete la_emitchar initializer.
6515 (auto_language::emitchar): New member function.
6516 * language.h (language_data): Delete la_emitchar field.
6517 (language_defn::emitchar): New member field declaration.
6518 (LA_EMIT_CHAR): Update call to emitchar.
6519 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6520 (m2_language_data): Delete la_emitchar initializer.
6521 (m2_language::emitchar): New member function, implementation from
6522 m2_emit_char.
6523 * objc-lang.c (objc_language_data): Delete la_emitchar
6524 initializer.
6525 * opencl-lang.c (opencl_language_data): Likewise.
6526 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6527 (pascal_language_data): Delete la_emitchar initializer.
6528 (pascal_language::emitchar): New member function, implementation
6529 from pascal_emit_char.
6530 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6531 (rust_language_data): Delete la_emitchar initializer.
6532 (rust_language::emitchar): New member function, implementation
6533 from rust_emitchar.
6534
6535 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6536
6537 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6538 (ada_language_data): Delete la_post_parser initializer.
6539 (ada_language::post_parser): New member function.
6540 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6541 (cplus_language_data): Likewise.
6542 (asm_language_data): Likewise.
6543 (minimal_language_data): Likewise.
6544 * d-lang.c (d_language_data): Likewise.
6545 * f-lang.c (f_language_data): Likewise.
6546 * go-lang.c (go_language_data): Likewise.
6547 * language.c (unknown_language_data): Likewise.
6548 (auto_language_data): Likewise.
6549 * language.h (language_data): Delete la_post_parser field.
6550 (language_defn::post_parser): New member function.
6551 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6552 * objc-lang.c (objc_language_data): Likewise.
6553 * opencl-lang.c (opencl_language_data): Likewise.
6554 * p-lang.c (pascal_language_data): Likewise.
6555 * parse.c (parse_exp_in_context): Update call to post_parser.
6556 (null_post_parser): Delete definition.
6557 * parser-defs.h (null_post_parser): Delete declaration.
6558 * rust-lang.c (rust_language_data): Delete la_post_parser
6559 initializer.
6560
6561 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6562
6563 * ada-lang.c (parse): Rename to ada_language::parser.
6564 (ada_language_data): Delete la_parser initializer.
6565 (ada_language::parser): New member function, implementation from
6566 parse.
6567 * c-lang.c (c_language_data): Delete la_parser initializer.
6568 (cplus_language_data): Likewise.
6569 (asm_language_data): Likewise.
6570 (minimal_language_data): Likewise.
6571 * d-lang.c (d_language_data): Likewise.
6572 (d_language::parser): New member function.
6573 * f-lang.c (f_language_data): Delete la_parser initializer.
6574 (f_language::parser): New member function.
6575 * go-lang.c (go_language_data): Delete la_parser initializer.
6576 (go_language::parser): New member function.
6577 * language.c (unk_lang_parser): Delete.
6578 (language_defn::parser): Define new member function.
6579 (unknown_language_data): Delete la_parser initializer.
6580 (unknown_language::parser): New member function.
6581 (auto_language_data): Delete la_parser initializer.
6582 (auto_language::parser): New member function.
6583 * language.h (language_data): Delete la_parser field.
6584 (language_defn::parser): Declare new member function.
6585 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6586 (m2_language::parser): New member function.
6587 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6588 * opencl-lang.c (opencl_language_data): Likewise.
6589 * p-lang.c (pascal_language_data): Likewise.
6590 (pascal_language::parser): New member function.
6591 * parse.c (parse_exp_in_context): Update call to parser.
6592 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6593 (rust_language::parser): New member function.
6594
6595 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6596
6597 * top.c (print_gdb_configuration): Print --with-python-libdir
6598 configuration value.
6599
6600 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6601
6602 * NEWS: Mention change to the alias command.
6603
6604 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6605
6606 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6607 (alias_command_completer)
6608 (make_alias_options_def_group): New functions.
6609 (alias_opts, alias_option_defs): New struct and array.
6610 (alias_usage_error): Update usage.
6611 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6612 Use option framework.
6613 (_initialize_cli_cmds): Update alias command help.
6614 Update aliases command help.
6615 (show_user):
6616 Add NULL for new default_args lookup_cmd argument.
6617 (valid_command_p): Rename to validate_aliased_command.
6618 Add NULL for new default_args lookup_cmd argument. Verify that the
6619 aliased_command has no default args.
6620 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6621 (lookup_cmd_1, lookup_cmd): New argument default_args.
6622 (add_alias_cmd):
6623 Add NULL for new default_args lookup_cmd argument.
6624 (print_help_for_command): Show default args under the layout
6625 alias some_alias = some_aliased_cmd some_alias_default_arg.
6626 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6627 xfree default_args in destructor.
6628 * cli/cli-script.c (process_next_line, do_define_command):
6629 Add NULL for new default_args lookup_cmd argument.
6630 * command.h: Declare new default_args argument in lookup_cmd
6631 and lookup_cmd_1.
6632 * completer.c (complete_line_internal_1):
6633 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6634 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6635 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6636 Likewise.
6637 * infcmd.c (_initialize_infcmd): Likewise.
6638 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6639 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6640 * python/py-param.c (add_setshow_generic): Likewise.
6641 * remote.c (_initialize_remote): Likewise.
6642 * top.c (execute_command): Prepend default_args if command has some.
6643 (set_verbose):
6644 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6645 * tracepoint.c (validate_actionline, encode_actions_1):
6646 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6647
6648 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6649
6650 * jit.c (jit_read_descriptor): Use bool as the return type.
6651 (jit_breakpoint_re_set_internal): Use bool as the return type.
6652 Invert the return value logic; return true if the jit breakpoint
6653 has been successfully initialized.
6654 (jit_inferior_init): Update the call to
6655 jit_breakpoint_re_set_internal.
6656
6657 2020-06-22 Pedro Alves <palves@redhat.com>
6658
6659 PR gdb/25939
6660 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6661 Use the current inferior instead. Don't return
6662 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6663 wait again.
6664 * sol-thread.c (sol_thread_target::wait): Don't reference
6665 inferior_ptid.
6666 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6667 (sol_update_thread_list_callback): Use the current inferior's pid
6668 instead of inferior_ptid.
6669
6670 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6671
6672 * procfs.c: Cleanup many comments.
6673
6674 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6675 (AFTER_WATCHFLAG): Replace by value.
6676
6677 (MAIN_PROC_NAME_FORMAT): Inline ...
6678 (create_procinfo): ... here.
6679
6680 (procfs_debug_inferior): Remove SYS_exec handling.
6681 (syscall_is_exec): Likewise.
6682 (procfs_set_exec_trap): Likewise.
6683
6684 (syscall_is_lwp_exit): Inline in callers.
6685 (syscall_is_exit): Likewise.
6686 (syscall_is_exec): Likewise.
6687 (syscall_is_lwp_create): Likewise.
6688
6689 (invalidate_cache): Remove #if 0 code.
6690
6691 (make_signal_thread_runnable): Remove.
6692 (procfs_target::resume): Remove #if 0 code.
6693
6694 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6695
6696 PR gdb/25939
6697 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6698 call ...
6699 (procfs_target::create_inferior): ... here.
6700
6701 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6702
6703 * exec.c (validate_exec_file): Ensure the build-id is up to
6704 date by calling reopen_exec_file (that checks file timestamp
6705 to decide to re-read the file).
6706
6707 2020-06-18 Pedro Alves <palves@redhat.com>
6708
6709 PR gdb/25412
6710 * gdbthread.h (delete_thread, delete_thread_silent)
6711 (find_thread_ptid): Update comments.
6712 * thread.c (current_thread_): New global.
6713 (is_current_thread): Move higher, and reimplement.
6714 (inferior_thread): Reimplement.
6715 (set_thread_exited): Use bool. Add assertions.
6716 (add_thread_silent): Simplify thread-reuse handling by always
6717 calling delete_thread.
6718 (delete_thread): Remove intro comment.
6719 (find_thread_ptid): Skip exited threads.
6720 (switch_to_thread_no_regs): Write to current_thread_.
6721 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6722 INFERIOR_PTID. Clear current_thread_.
6723
6724 2020-06-18 Pedro Alves <palves@redhat.com>
6725
6726 * aix-thread.c (pd_update): Use switch_to_thread.
6727
6728 2020-06-18 Pedro Alves <palves@redhat.com>
6729
6730 * ravenscar-thread.c (ravenscar_thread_target): Update.
6731 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6732 (ravenscar_thread_target::add_active_thread): ... this. Don't
6733 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6734 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6735
6736 2020-06-18 Pedro Alves <palves@redhat.com>
6737
6738 * nat/windows-nat.c (current_windows_thread): Remove.
6739 * nat/windows-nat.h (current_windows_thread): Remove.
6740 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6741 Adjust.
6742 (display_selectors): Adjust to fetch the current
6743 windows_thread_info based on inferior_ptid.
6744 (fake_create_process): No longer write to current_windows_thread.
6745 (windows_nat_target::get_windows_debug_event):
6746 Don't set inferior_ptid or current_windows_thread.
6747 (windows_nat_target::wait): Adjust to not rely on
6748 current_windows_thread.
6749 (do_initial_windows_stuff): Now a method of windows_nat_target.
6750 Switch to the last_ptid thread.
6751 (windows_nat_target::attach): Adjust.
6752 (windows_nat_target::detach): Use switch_to_no_thread instead of
6753 writing to inferior_ptid directly.
6754 (windows_nat_target::create_inferior): Adjust.
6755
6756 2020-06-18 Pedro Alves <palves@redhat.com>
6757
6758 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6759
6760 2020-06-18 Pedro Alves <palves@redhat.com>
6761
6762 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6763 after creating it, instead of writing to inferior_ptid. Don't
6764 write to inferior_ptid.
6765
6766 2020-06-18 Pedro Alves <palves@redhat.com>
6767
6768 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6769
6770 2020-06-18 Pedro Alves <palves@redhat.com>
6771
6772 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6773 it, instead of writing to inferior_ptid.
6774
6775 2020-06-18 Pedro Alves <palves@redhat.com>
6776
6777 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6778 to inferior_ptid.
6779
6780 2020-06-18 Pedro Alves <palves@redhat.com>
6781
6782 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6783 instead of writing to inferior_ptid directly.
6784
6785 2020-06-18 Pedro Alves <palves@redhat.com>
6786
6787 * corelow.c (core_target::close): Use switch_to_no_thread instead
6788 of writing to inferior_ptid directly.
6789 (add_to_thread_list, core_target_open): Use switch_to_thread
6790 instead of writing to inferior_ptid directly.
6791
6792 2020-06-18 Pedro Alves <palves@redhat.com>
6793
6794 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6795 inferior_ptid.
6796 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6797 inferior_ptid.
6798 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6799 inferior_ptid directly.
6800 (darwin_nat_target::init_thread_list): Switch to thread, instead
6801 of writing to inferior_ptid.
6802 (darwin_nat_target::attach): Don't write to inferior_ptid.
6803 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6804
6805 2020-06-18 Pedro Alves <palves@redhat.com>
6806
6807 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6808 thread.
6809 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6810 Instead use switch_to_thread.
6811 (gnu_nat_target::detach): Use switch_to_no_thread
6812 instead of writing to inferior_ptid directly. Used passed-in
6813 inferior instead of looking up the inferior by pid.
6814
6815 2020-06-18 Pedro Alves <palves@redhat.com>
6816
6817 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6818 inferior_ptid.
6819
6820 2020-06-18 Pedro Alves <palves@redhat.com>
6821
6822 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6823 inferior_ptid.
6824 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6825 thread.
6826 (nto_procfs_target::detach): Avoid referencing
6827 inferior_ptid. Use switch_to_no_thread instead of writing to
6828 inferior_ptid directly.
6829 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6830 instead of writing to inferior_ptid directly.
6831 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6832 to thread.
6833
6834 2020-06-18 Pedro Alves <palves@redhat.com>
6835
6836 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6837 after creating it, instead of writing to inferior_ptid.
6838 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6839 to inferior_ptid directly.
6840 (gdbsim_target::wait): Don't write to inferior_ptid.
6841
6842 2020-06-18 Pedro Alves <palves@redhat.com>
6843
6844 * remote.c (remote_target::remote_notice_new_inferior): Use
6845 switch_to_thread instead of writing to inferior_ptid directly.
6846 (remote_target::add_current_inferior_and_thread): Use
6847 switch_to_no_thread instead of writing to inferior_ptid directly.
6848 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6849 and switch_to_thread instead of using set_current_inferior or
6850 writing to inferior_ptid directly.
6851
6852 2020-06-18 Pedro Alves <palves@redhat.com>
6853
6854 * tracectf.c (ctf_target_open): Switch to added thread instead of
6855 writing to inferior_ptid directly.
6856 (ctf_target::close): Use switch_to_no_thread instead of writing to
6857 inferior_ptid directly.
6858
6859 2020-06-18 Pedro Alves <palves@redhat.com>
6860
6861 * tracefile-tfile.c (tfile_target_open): Don't write to
6862 inferior_ptid directly, instead switch to added thread.
6863 (tfile_target::close): Use switch_to_no_thread instead of writing
6864 to inferior_ptid directly.
6865
6866 2020-06-18 Pedro Alves <palves@redhat.com>
6867
6868 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6869 (procfs_target::detach): Use switch_to_no_thread
6870 instead of writing to inferior_ptid directly.
6871 (do_attach): Change return type to void. Switch to the added
6872 thread.
6873 (procfs_target::create_inferior): Switch to the added thread.
6874 (procfs_do_thread_registers): Don't write to inferior_ptid.
6875
6876 2020-06-18 Pedro Alves <palves@redhat.com>
6877
6878 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6879 of writing to inferior_ptid.
6880 (scoped_restore_exited_inferior): Delete.
6881 (handle_vfork_child_exec_or_exit): Simplify using
6882 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6883 instead of writing to inferior_ptid.
6884 (THREAD_STOPPED_BY): Delete.
6885 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6886 (thread_stopped_by_hw_breakpoint): Delete.
6887 (save_waitstatus): Use
6888 scoped_restore_current_thread+switch_to_thread, and call
6889 target_stopped_by_watchpoint instead of
6890 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6891 instead of thread_stopped_by_sw_breakpoint, and
6892 target_stopped_by_hw_breakpoint instead of
6893 thread_stopped_by_hw_breakpoint.
6894 (handle_inferior_event)
6895 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6896 inferior_ptid directly, nor
6897 set_current_inferior/set_current_program_space. Use
6898 switch_to_thread / switch_to_inferior_no_thread instead.
6899
6900 2020-06-18 Pedro Alves <palves@redhat.com>
6901
6902 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6903 instead of writing to inferior_ptid.
6904
6905 2020-06-18 Pedro Alves <palves@redhat.com>
6906
6907 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6908 added thread.
6909 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6910 to the added thread.
6911 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6912 instead of writing to inferior_ptid.
6913
6914 2020-06-18 Pedro Alves <palves@redhat.com>
6915
6916 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6917 (register_to_value_test): Mock a program_space too. Heap-allocate
6918 the address space. Don't write to inferior_ptid. Use
6919 switch_to_thread instead.
6920
6921 2020-06-18 Pedro Alves <palves@redhat.com>
6922
6923 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6924 Delete.
6925 (find_signalled_thread()): New, factored out from
6926 linux_make_corefile_notes and adjusted to handle exited threads.
6927 (linux_make_corefile_notes): Adjust to use the new
6928 find_signalled_thread.
6929
6930 2020-06-18 Pedro Alves <palves@redhat.com>
6931
6932 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6933 of saving/restoring inferior_ptid.
6934
6935 2020-06-17 Tom Tromey <tom@tromey.com>
6936
6937 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6938 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6939 declare.
6940 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6941
6942 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6943
6944 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6945 of partial symtabs.
6946
6947 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6948
6949 * regformats/reg-arm.dat: Remove.
6950 * regformats/reg-bfin.dat: Remove.
6951 * regformats/reg-cris.dat: Remove.
6952 * regformats/reg-crisv32.dat: Remove.
6953 * regformats/reg-m32r.dat: Remove.
6954 * regformats/reg-tilegx.dat: Remove.
6955 * regformats/reg-tilegx32.dat: Remove.
6956
6957 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6958
6959 * features/Makefile (WHICH): Remove arm files.
6960 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6961 * regformats/arm/arm-with-neon.dat: Remove.
6962 * regformats/arm/arm-with-vfpv2.dat: Remove.
6963 * regformats/arm/arm-with-vfpv3.dat: Remove.
6964
6965 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6966
6967 * features/Makefile (XMLTOC): Remove rx.xml.
6968
6969 2020-06-17 Pedro Alves <palves@redhat.com>
6970
6971 * gdbthread.h (thread_control_state) <trap_expected> Update
6972 comments.
6973
6974 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6975
6976 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6977 ada_language::lookup_symbol_nonlocal.
6978 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6979 (ada_language::lookup_symbol_nonlocal): New member function,
6980 implementation from ada_lookup_symbol_nonlocal.
6981 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6982 initializer.
6983 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6984 initializer.
6985 (cplus_language::lookup_symbol_nonlocal): New member function.
6986 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6987 (minimal_language_data) Likewise.
6988 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6989 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6990 initializer.
6991 (d_language::lookup_symbol_nonlocal): New member function.
6992 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6993 initializer.
6994 (f_language::lookup_symbol_nonlocal): New member function.
6995 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6996 initializer.
6997 * language.c (unknown_language_data): Likewise.
6998 (auto_language_data): Likewise.
6999 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7000 field.
7001 (language_defn::lookup_symbol_nonlocal): New member function.
7002 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7003 initializer.
7004 * objc-lang.c (objc_language_data): Likewise.
7005 * opencl-lang.c (opencl_language_data): Likewise.
7006 * p-lang.c (pascal_language_data): Likewise.
7007 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7008 rust_language::lookup_symbol_nonlocal.
7009 (rust_language_data): Delete la_lookup_symbol_nonlocal
7010 initializer.
7011 (rust_language::lookup_symbol_nonlocal): New member function,
7012 implementation from rust_lookup_symbol_nonlocal.
7013 * symtab.c (lookup_symbol_aux): Update call to
7014 lookup_symbol_nonlocal.
7015 (basic_lookup_symbol_nonlocal): Rename to...
7016 (language_defn::lookup_symbol_nonlocal): ...this, and update
7017 header comment. Remove language_defn parameter, and replace with
7018 uses of `this'.
7019 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7020
7021 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7022
7023 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7024 initializer.
7025 (ada_language::value_print_inner): New member function.
7026 * c-lang.c (c_language_data): Delete la_value_print_inner
7027 initializer.
7028 (cplus_language_data): Likewise.
7029 (asm_language_data): Likewise.
7030 (minimal_language_data): Likewise.
7031 * d-lang.c (d_language_data): Likewise.
7032 (d_language::value_print_inner): New member function.
7033 * f-lang.c (f_language_data): Delete la_value_print_inner
7034 initializer.
7035 (f_language::value_print_inner): New member function.
7036 * f-lang.h (f_value_print_innner): Rename to...
7037 (f_value_print_inner): ...this (note spelling of 'inner').
7038 * f-valprint.c (f_value_print_innner): Rename to...
7039 (f_value_print_inner): ...this (note spelling of 'inner').
7040 * go-lang.c (go_language_data): Delete la_value_print_inner
7041 initializer.
7042 (go_language::value_print_inner): New member function.
7043 * language.c (language_defn::value_print_inner): Define new member
7044 function.
7045 (unk_lang_value_print_inner): Delete.
7046 (unknown_language_data): Delete la_value_print_inner initializer.
7047 (unknown_language::value_print_inner): New member function.
7048 (auto_language_data): Delete la_value_print_inner initializer.
7049 (auto_language::value_print_inner): New member function.
7050 * language.h (language_data): Delete la_value_print_inner field.
7051 (language_defn::value_print_inner): Delcare new member function.
7052 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7053 initializer.
7054 (m2_language::value_print_inner): New member function.
7055 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7056 initializer.
7057 * opencl-lang.c (opencl_language_data): Likewise.
7058 * p-lang.c (pascal_language_data): Likewise.
7059 (pascal_language::value_print_inner): New member function.
7060 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7061 initializer.
7062 (rust_language::value_print_inner): New member function.
7063 * valprint.c (do_val_print): Update call to value_print_inner.
7064
7065 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7066
7067 * ada-lang.c (ada_language_data): Delete la_value_print
7068 initializer.
7069 (ada_language::value_print): New member function.
7070 * c-lang.c (c_language_data): Delete la_value_print initializer.
7071 (cplus_language_data): Likewise.
7072 (asm_language_data): Likewise.
7073 (minimal_language_data): Likewise.
7074 * d-lang.c (d_language_data): Likewise.
7075 * f-lang.c (f_language_data): Likewise.
7076 * go-lang.c (go_language_data): Likewise.
7077 * language.c (unk_lang_value_print): Delete.
7078 (language_defn::value_print): Define new member function.
7079 (unknown_language_data): Delete la_value_print initializer.
7080 (unknown_language::value_print): New member function.
7081 (auto_language_data): Delete la_value_print initializer.
7082 (auto_language::value_print): New member function.
7083 * language.h (language_data): Delete la_value_print field.
7084 (language_defn::value_print): Declare new member function.
7085 (LA_VALUE_PRINT): Update call to value_print.
7086 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7087 * objc-lang.c (objc_language_data): Likewise.
7088 * opencl-lang.c (opencl_language_data): Likewise.
7089 * p-lang.c (pascal_language_data): Likewise.
7090 (pascal_language::value_print): New member function.
7091 * rust-lang.c (rust_language_data): Delete la_value_print
7092 initializer.
7093
7094 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7095
7096 * ada-lang.c (ada_watch_location_expression): Rename to
7097 ada_language::watch_location_expression.
7098 (ada_language_data): Delete la_watch_location_expression
7099 initializer.
7100 (ada_language::watch_location_expression): New member function,
7101 implementation from ada_watch_location_expression.
7102 * breakpoint.c (watch_command_1): Update call to
7103 watch_location_expression.
7104 * c-lang.c (c_watch_location_expression): Rename to
7105 language_defn::watch_location_expression.
7106 (c_language_data): Delete la_watch_location_expression
7107 initializer.
7108 (cplus_language_data): Likewise.
7109 (asm_language_data): Likewise.
7110 (minimal_language_data): Likewise.
7111 * c-lang.h (c_watch_location_expression): Delete declaration.
7112 * d-lang.c (d_language_data): Delete la_watch_location_expression
7113 initializer.
7114 * f-lang.c (f_language_data): Likewise.
7115 * go-lang.c (go_language_data): Likewise.
7116 * language.c (language_defn::watch_location_expression): Member
7117 function implementation from c_watch_location_expression.
7118 (unknown_language_data): Delete la_watch_location_expression
7119 initializer.
7120 (auto_language_data): Likewise.
7121 * language.h (language_data): Delete la_watch_location_expression
7122 field.
7123 (language_defn::watch_location_expression): Declare new member
7124 function.
7125 * m2-lang.c (m2_language_data): Delete
7126 la_watch_location_expression initializer.
7127 * objc-lang.c (objc_language_data): Likewise.
7128 * opencl-lang.c (opencl_language_data): Likewise.
7129 * p-lang.c (pascal_language_data): Likewise.
7130 * rust-lang.c (rust_watch_location_expression): Rename to
7131 rust_language::watch_location_expression.
7132 (rust_language_data): Delete la_watch_location_expression
7133 initializer.
7134 (rust_language::watch_location_expression): New member function,
7135 implementation from rust_watch_location_expression.
7136
7137 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7138
7139 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7140 ada_language::collect_symbol_completion_matches.
7141 (ada_language_data): Delete la_collect_symbol_completion_matches
7142 initializer.
7143 (ada_language::collect_symbol_completion_matches): New member
7144 function, implementation from
7145 ada_collect_symbol_completion_matches.
7146 * c-lang.c (c_language_data): Delete
7147 la_collect_symbol_completion_matches initializer.
7148 (cplus_language_data): Likewise.
7149 (asm_language_data): Likewise.
7150 (minimal_language_data): Likewise.
7151 * d-lang.c (d_language_data): Likewise.
7152 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7153 f_language::collect_symbol_completion_matches.
7154 (f_language_data): Delete la_collect_symbol_completion_matches
7155 initializer.
7156 (f_language::collect_symbol_completion_matches) New member
7157 function, implementation from f_collect_symbol_completion_matches.
7158 * go-lang.c (go_language_data): Delete
7159 la_collect_symbol_completion_matches initializer.
7160 * language.c (unknown_language_data): Likewise.
7161 (auto_language_data): Likewise.
7162 * language.h (language_data): Delete
7163 la_collect_symbol_completion_matches field.
7164 (language_defn::collect_symbol_completion_matches): New member
7165 function.
7166 * m2-lang.c (m2_language_data): Delete
7167 la_collect_symbol_completion_matches initializer.
7168 * objc-lang.c (objc_language_data): Likewise.
7169 * opencl-lang.c (opencl_language_data): Likewise.
7170 * p-lang.c (pascal_language_data): Likewise.
7171 * rust-lang.c (rust_language_data): Likewise.
7172 * symtab.c (default_collect_symbol_completion_matches): Delete.
7173 (collect_symbol_completion_matches): Update call to
7174 collect_symbol_completion_matches.
7175 (collect_symbol_completion_matches_type): Likewise.
7176 * symtab.h (default_collect_symbol_completion_matches): Delete
7177 declaration.
7178
7179 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7180
7181 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7182 (ada_language_data): Delete la_word_break_characters initializer.
7183 (ada_language::word_break_characters): New member function.
7184 * c-lang.c (c_language_data): Delete la_word_break_characters
7185 initializer.
7186 (cplus_language_data): Likewise.
7187 (asm_language_data): Likewise.
7188 (minimal_language_data): Likewise.
7189 * completer.c: Update global comment.
7190 (advance_to_expression_complete_word_point): Update call to
7191 word_break_characters.
7192 (complete_files_symbols): Likewise.
7193 (complete_line_internal_1): Likewise.
7194 (default_completer_handle_brkchars): Likewise.
7195 (skip_quoted_chars): Likewise.
7196 * d-lang.c (d_language_data): Delete la_word_break_characters
7197 initializer.
7198 * f-lang.c (f_word_break_characters): Delete.
7199 (f_language_data): Delete la_word_break_characters initializer.
7200 (f_language::word_break_characters): New member function.
7201 * go-lang.c (go_language_data): Delete la_word_break_characters
7202 initializer.
7203 * language.c (unknown_language_data): Likewise.
7204 (auto_language_data): Likewise.
7205 * language.h (default_word_break_characters): Move declaration to
7206 earlier in the file.
7207 (language_data): Delete la_word_break_characters field.
7208 (language_defn::word_break_characters): New member function.
7209 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7210 initializer.
7211 * objc-lang.c (objc_language_data): Likewise.
7212 * opencl-lang.c (opencl_language_data): Likewise.
7213 * p-lang.c (pascal_language_data): Likewise.
7214 * rust-lang.c (rust_language_data): Likewise.
7215
7216 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7217
7218 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7219 (ada_language_data): Delete la_get_symbol_name_matcher
7220 initializer.
7221 (language_defn::get_symbol_name_matcher_inner): New member
7222 function.
7223 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7224 initializer.
7225 (cplus_language_data): Likewise.
7226 (cplus_language::get_symbol_name_matcher_inner): New member
7227 function.
7228 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7229 (minimal_language_data): Likewise.
7230 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7231 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7232 initializer.
7233 * dictionary.c (iter_match_first_hashed): Update call to
7234 get_symbol_name_matcher.
7235 (iter_match_next_hashed): Likewise.
7236 (iter_match_next_linear): Likewise.
7237 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7238 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7239 initializer.
7240 (f_language::get_symbol_name_matcher_inner): New member function.
7241 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7242 initializer.
7243 * language.c (default_symbol_name_matcher): Update header comment,
7244 make static.
7245 (language_defn::get_symbol_name_matcher): New definition.
7246 (language_defn::get_symbol_name_matcher_inner): Likewise.
7247 (get_symbol_name_matcher): Delete.
7248 (unknown_language_data): Delete la_get_symbol_name_matcher
7249 initializer.
7250 (auto_language_data): Likewise.
7251 * language.h (language_data): Delete la_get_symbol_name_matcher
7252 field.
7253 (language_defn::get_symbol_name_matcher): New member function.
7254 (language_defn::get_symbol_name_matcher_inner): Likewise.
7255 (default_symbol_name_matcher): Delete declaration.
7256 * linespec.c (find_methods): Update call to
7257 get_symbol_name_matcher.
7258 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7259 initializer.
7260 * minsyms.c (lookup_minimal_symbol): Update call to
7261 get_symbol_name_matcher.
7262 (iterate_over_minimal_symbols): Likewise.
7263 * objc-lang.c (objc_language_data): Delete
7264 la_get_symbol_name_matcher initializer.
7265 * opencl-lang.c (opencl_language_data): Likewise.
7266 * p-lang.c (pascal_language_data): Likewise.
7267 * psymtab.c (psymbol_name_matches): Update call to
7268 get_symbol_name_matcher.
7269 * rust-lang.c (rust_language_data): Delete
7270 la_get_symbol_name_matcher initializer.
7271 * symtab.c (symbol_matches_search_name): Update call to
7272 get_symbol_name_matcher.
7273 (compare_symbol_name): Likewise.
7274
7275 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7276
7277 * ada-lang.c (ada_language_data): Delete la_compute_program
7278 initializer.
7279 * c-lang.c (c_language_data): Likewise.
7280 (c_language::compute_program): New member function.
7281 (cplus_language_data): Delete la_compute_program initializer.
7282 (cplus_language::compute_program): New member function.
7283 (asm_language_data): Delete la_compute_program initializer.
7284 (minimal_language_data): Likewise.
7285 * c-lang.h (c_compute_program): Update comment.
7286 (cplus_compute_program): Likewise.
7287 * compile/compile-c-support.c (c_compute_program): Likewise.
7288 (cplus_compute_program): Likewise.
7289 * compile/compile.c (compile_to_object): Update call to
7290 la_compute_program.
7291 * d-lang.c (d_language_data): Delete la_compute_program
7292 initializer.
7293 * f-lang.c (f_language_data): Likewise.
7294 * go-lang.c (go_language_data): Likewise.
7295 * language.c (unknown_language_data): Likewise.
7296 (auto_language_data): Likewise.
7297 * language.h (language_data): Delete la_compute_program field.
7298 (language_defn::compute_program): New member function.
7299 * m2-lang.c (m2_language_data): Delete la_compute_program
7300 initializer.
7301 * objc-lang.c (objc_language_data): Likewise.
7302 * opencl-lang.c (opencl_language_data): Likewise.
7303 * p-lang.c (pascal_language_data): Likewise.
7304 * rust-lang.c (rust_language_data): Likewise.
7305
7306 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7307
7308 * ada-lang.c (ada_language_data) Delete
7309 la_class_name_from_physname initializer.
7310 * c-lang.c (c_language_data): Likewise.
7311 (cplus_language_data): Likewise.
7312 (cplus_language::class_name_from_physname): New member function.
7313 (asm_language_data): Delete la_class_name_from_physname
7314 initializer.
7315 (minimal_language_data): Likewise.
7316 * d-lang.c (d_language_data): Likewise.
7317 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7318 method on language_defn class.
7319 (guess_full_die_structure_name): Likewise.
7320 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7321 initializer.
7322 * go-lang.c (go_language_data): Likewise.
7323 * language.c (language_class_name_from_physname): Delete.
7324 (unk_lang_class_name): Delete.
7325 (unknown_language_data): Delete la_class_name_from_physname
7326 initializer.
7327 (auto_language_data): Likewise.
7328 * language.h (language_data): Delete la_class_name_from_physname
7329 field.
7330 (language_defn::class_name_from_physname): New function.
7331 (language_class_name_from_physname): Delete declaration.
7332 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7333 initializer.
7334 * objc-lang.c (objc_language_data): Likewise.
7335 * opencl-lang.c (opencl_language_data): Likewise.
7336 * p-lang.c (pascal_language_data): Likewise.
7337 * rust-lang.c (rust_language_data): Likewise.
7338
7339 2020-06-16 Tom Tromey <tom@tromey.com>
7340
7341 * tui/tui-data.h (STATUS_NAME): New macro.
7342 * tui/tui-layout.c (tui_remove_some_windows)
7343 (initialize_known_windows, tui_register_window)
7344 (tui_layout_split::remove_windows, initialize_layouts)
7345 (tui_new_layout_command): Don't use hard-coded window names.
7346
7347 2020-06-16 Tom Tromey <tom@tromey.com>
7348
7349 PR tui/25348:
7350 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7351 tui_initialize_readline. Only run once. Call rl_initialize.
7352 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7353 tui_initialize_readline.
7354 * tui/tui-io.c (tui_setup_io): Call
7355 tui_ensure_readline_initialized.
7356 * tui/tui-interp.c (tui_interp::init): Update.
7357
7358 2020-06-16 Tom Tromey <tom@tromey.com>
7359
7360 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7361 Also preserve the status window.
7362
7363 2020-06-16 Tom Tromey <tom@tromey.com>
7364
7365 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7366 where m_window==nullptr.
7367
7368 2020-06-15 Tom Tromey <tromey@adacore.com>
7369
7370 * windows-nat.c (windows_nat::handle_output_debug_string):
7371 Update.
7372 (windows_nat::handle_ms_vc_exception): Update.
7373 * target.h (target_read_string): Change API.
7374 * target.c (target_read_string): Change API.
7375 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7376 Update.
7377 * solib-frv.c (frv_current_sos): Update.
7378 * solib-dsbt.c (dsbt_current_sos): Update.
7379 * solib-darwin.c (darwin_current_sos): Update.
7380 * linux-thread-db.c (inferior_has_bug): Update.
7381 * expprint.c (print_subexp_standard): Update.
7382 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7383 (ada_exception_message_1): Update.
7384
7385 2020-06-15 Tom Tromey <tromey@adacore.com>
7386
7387 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7388
7389 2020-06-15 Tom Tromey <tromey@adacore.com>
7390
7391 * valprint.c (read_string): Update comment.
7392 * target.c (MIN): Remove.
7393 (target_read_string): Rewrite.
7394
7395 2020-06-15 Tom Tromey <tromey@adacore.com>
7396
7397 * corefile.c (read_memory_string): Remove.
7398 * ada-valprint.c (ada_value_print_ptr): Update.
7399 * ada-lang.h (ada_tag_name): Change return type.
7400 * ada-lang.c (type_from_tag): Update.
7401 (ada_tag_name_from_tsd): Change return type. Use
7402 target_read_string.
7403 (ada_tag_name): Likewise.
7404 * gdbcore.h (read_memory_string): Don't declare.
7405
7406 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
7407
7408 * symtab.c (rbreak_command): Ignore Windows drive colon.
7409
7410 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
7411
7412 * NEWS: Mention removed GDBserver host support.
7413
7414 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
7415
7416 * features/riscv/rebuild-csr-xml.sh: Updated.
7417
7418 2020-06-11 Tom Tromey <tom@tromey.com>
7419
7420 PR gdb/18318:
7421 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
7422
7423 2020-06-09 Jonny Grant <jg@jguk.org>
7424 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
7425
7426 * main.c (captured_main_1): Don't print new line after help.
7427 (print_gdb_help): add mailing list and IRC channel information
7428 to --help. Add new lines between items in the footer. Remove
7429 quotes around bug url.
7430
7431 2020-06-11 Keith Seitz <keiths@redhat.com>
7432
7433 PR gdb/21356
7434 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
7435 Resolve typedefs for type length calculations.
7436
7437 2020-06-10 Tom de Vries <tdevries@suse.de>
7438
7439 PR ada/24713
7440 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
7441 (write_psymbols): Enable .gdb_index for ada.
7442 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
7443 ada.
7444
7445 2020-06-10 Tom de Vries <tdevries@suse.de>
7446
7447 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
7448 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
7449 namei" instead of "const char *name" argument.
7450 (dw2_map_matching_symbols): Use "offset_type namei" variant of
7451 dw2_symtab_iter_init.
7452
7453 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7454
7455 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
7456 to use type::field and field::type instead.
7457
7458 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7459
7460 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
7461 to use field::type instead.
7462
7463 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * gdbtypes.h (struct field) <type, set_type>: New methods.
7466 Rename `type` field to...
7467 <m_type>: ... this. Change references throughout to use type or
7468 set_type methods.
7469 (FIELD_TYPE): Use field::type. Change call sites that modify
7470 the field's type to use field::set_type instead.
7471
7472 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7473
7474 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
7475 to use type::index_type instead.
7476
7477 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
7478
7479 * gdbtypes.h (struct type) <index_type, set_index_type>: New
7480 methods.
7481 (TYPE_INDEX_TYPE): Use type::index_type.
7482 * gdbtypes.c (create_array_type_with_stride): Likewise.
7483
7484 2020-06-07 Tom Tromey <tom@tromey.com>
7485
7486 * valprint.c (generic_val_print_float): Remove "embedded_offset"
7487 parameter.
7488 (generic_value_print): Update.
7489
7490 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7491
7492 Revert commit 982a38f60b0.
7493 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
7494
7495 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7496
7497 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
7498 avoid use after free.
7499
7500 2020-06-05 Tom de Vries <tdevries@suse.de>
7501
7502 * NEWS: Fix typos.
7503
7504 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
7505
7506 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
7507 the per_bfd object.
7508 (dwarf2_read_debug_names): Likewise.
7509 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
7510 object when re-using a per_bfd object with an index.
7511
7512 2020-06-03 Tom de Vries <tdevries@suse.de>
7513
7514 PR symtab/26046
7515 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
7516 children for C++.
7517 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
7518 DW_TAG_subprogram.
7519
7520 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7521
7522 * ada-lang.c (ada_language_data): Delete skip_trampoline
7523 initializer.
7524 * c-lang.c (c_language_data): Likewise.
7525 (cplus_language_data): Likewise.
7526 (cplus_language::skip_trampoline): New member function.
7527 (asm_language_data): Delete skip_trampoline initializer.
7528 (minimal_language_data): Likewise.
7529 * d-lang.c (d_language_data): Likewise.
7530 * f-lang.c (f_language_data): Likewise.
7531 * go-lang.c (go_language_data): Likewise.
7532 * language.c (unk_lang_trampoline): Delete function.
7533 (skip_language_trampoline): Update.
7534 (unknown_language_data): Delete skip_trampoline initializer.
7535 (auto_language_data): Likewise.
7536 * language.h (language_data): Delete skip_trampoline field.
7537 (language_defn::skip_trampoline): New function.
7538 * m2-lang.c (m2_language_data): Delete skip_trampoline
7539 initializer.
7540 * objc-lang.c (objc_skip_trampoline): Delete function, move
7541 implementation to objc_language::skip_trampoline.
7542 (objc_language_data): Delete skip_trampoline initializer.
7543 (objc_language::skip_trampoline): New member function with
7544 implementation from objc_skip_trampoline.
7545 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7546 initializer.
7547 * p-lang.c (pascal_language_data): Likewise.
7548 * rust-lang.c (rust_language_data): Likewise.
7549
7550 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7551
7552 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7553 (ada_language::demangle): New member function.
7554 * c-lang.c (c_language_data): Delete la_demangle initializer.
7555 (cplus_language_data): Delete la_demangle initializer.
7556 (cplus_language::demangle): New member function.
7557 (asm_language_data): Delete la_demangle initializer.
7558 (minimal_language_data): Delete la_demangle initializer.
7559 * d-lang.c (d_language_data): Delete la_demangle initializer.
7560 (d_language::demangle): New member function.
7561 * f-lang.c (f_language_data): Delete la_demangle initializer.
7562 (f_language::demangle): New member function.
7563 * go-lang.c (go_language_data): Delete la_demangle initializer.
7564 (go_language::demangle): New member function.
7565 * language.c (language_demangle): Update.
7566 (unk_lang_demangle): Delete.
7567 (unknown_language_data): Delete la_demangle initializer.
7568 (unknown_language::demangle): New member function.
7569 (auto_language_data): Delete la_demangle initializer.
7570 (auto_language::demangle): New member function.
7571 * language.h (language_data): Delete la_demangle field.
7572 (language_defn::demangle): New function.
7573 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7574 * objc-lang.c (objc_language_data): Delete la_demangle
7575 initializer.
7576 (objc_language::demangle): New member function.
7577 * opencl-lang.c (opencl_language_data): Delete la_demangle
7578 initializer.
7579 * p-lang.c (pascal_language_data): Likewise.
7580 * rust-lang.c (rust_language_data): Likewise.
7581 (rust_language::demangle): New member function.
7582
7583 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7584
7585 * ada-lang.c (ada_language_data): Delete la_print_type
7586 initializer.
7587 (ada_language::print_type): New member function.
7588 * c-lang.c (c_language_data): Delete la_print_type initializer.
7589 (c_language::print_type): New member function.
7590 (cplus_language_data): Delete la_print_type initializer.
7591 (cplus_language::print_type): New member function.
7592 (asm_language_data): Delete la_print_type initializer.
7593 (asm_language::print_type): New member function.
7594 (minimal_language_data): Delete la_print_type initializer.
7595 (minimal_language::print_type): New member function.
7596 * d-lang.c (d_language_data): Delete la_print_type initializer.
7597 (d_language::print_type): New member function.
7598 * f-lang.c (f_language_data): Delete la_print_type initializer.
7599 (f_language::print_type): New member function.
7600 * go-lang.c (go_language_data): Delete la_print_type initializer.
7601 (go_language::print_type): New member function.
7602 * language.c (unk_lang_print_type): Delete.
7603 (unknown_language_data): Delete la_print_type initializer.
7604 (unknown_language::print_type): New member function.
7605 (auto_language_data): Delete la_print_type initializer.
7606 (auto_language::print_type): New member function.
7607 * language.h (language_data): Delete la_print_type field.
7608 (language_defn::print_type): New function.
7609 (LA_PRINT_TYPE): Update.
7610 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7611 (m2_language::print_type): New member function.
7612 * objc-lang.c (objc_language_data): Delete la_print_type
7613 initializer.
7614 (objc_language::print_type): New member function.
7615 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7616 to opencl_language::print_type.
7617 (opencl_language_data): Delete la_print_type initializer.
7618 (opencl_language::print_type): New member function, implementation
7619 from opencl_print_type.
7620 * p-lang.c (pascal_language_data): Delete la_print_type
7621 initializer.
7622 (pascal_language::print_type): New member function.
7623 * rust-lang.c (rust_print_type): Delete, implementation moved to
7624 rust_language::print_type.
7625 (rust_language_data): Delete la_print_type initializer.
7626 (rust_language::print_type): New member function, implementation
7627 from rust_print_type.
7628
7629 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7630
7631 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7632 implementation moves to...
7633 (ada_language::sniff_from_mangled_name): ...here. Update return
7634 type.
7635 (ada_language_data): Delete la_sniff_from_mangled_name
7636 initializer.
7637 * c-lang.c (c_language_data): Likewise.
7638 (cplus_language_data): Likewise.
7639 (cplus_language::sniff_from_mangled_name): New member function,
7640 implementation taken from gdb_sniff_from_mangled_name.
7641 (asm_language_data): Delete la_sniff_from_mangled_name
7642 initializer.
7643 (minimal_language_data): Likewise.
7644 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7645 implementation moves to cplus_language::sniff_from_mangled_name.
7646 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7647 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7648 moves to...
7649 (d_language::sniff_from_mangled_name): ...here.
7650 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7651 * f-lang.c (f_language_data): Likewise.
7652 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7653 moves to...
7654 (go_language::sniff_from_mangled_name): ...here.
7655 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7656 * language.c (language_sniff_from_mangled_name): Delete.
7657 (unknown_language_data): Delete la_sniff_from_mangled_name
7658 initializer.
7659 (auto_language_data): Likewise.
7660 * language.h (language_data): Delete la_sniff_from_mangled_name
7661 field.
7662 (language_defn::sniff_from_mangled_name): New function.
7663 (language_sniff_from_mangled_name): Delete declaration.
7664 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7665 field.
7666 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7667 implementation moves to...
7668 (objc_language::sniff_from_mangled_name): ...here.
7669 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7670 * opencl-lang.c (opencl_language_data): Likewise.
7671 * p-lang.c (pascal_language_data): Likewise.
7672 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7673 implementation moves to...
7674 (rust_language::sniff_from_mangled_name): ...here.
7675 (rust_language_data): Delete la_sniff_from_mangled_name
7676 initializer.
7677 * symtab.c (symbol_find_demangled_name): Call
7678 sniff_from_mangled_name member function.
7679
7680 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7681
7682 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7683 initializer.
7684 * c-lang.c (c_language_data): Likewise.
7685 (cplus_language_data): Likewise.
7686 (cplus_language::search_name_hash): New member function.
7687 (asm_language_data): Delete la_search_name_hash initializer.
7688 (minimal_language_data): Likewise.
7689 * d-lang.c (d_language_data): Likewise.
7690 * dictionary.c (default_search_name_hash): Rename to...
7691 (language_defn::search_name_hash): ...this.
7692 * f-lang.c (f_language_data): Likewise.
7693 (f_language::search_name_hash): New member function.
7694 * go-lang.c (go_language_data): Delete la_search_name_hash
7695 initializer.
7696 * language.c (unknown_language_data): Likewise.
7697 (auto_language_data): Likewise.
7698 * language.h (struct language_data): Delete la_search_name_hash
7699 field.
7700 (language_defn::search_name_hash): Declare new member function.
7701 (default_search_name_hash): Delete declaration.
7702 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7703 initializer.
7704 * objc-lang.c (objc_language_data): Likewise.
7705 * opencl-lang.c (opencl_language_data): Likewise.
7706 * p-lang.c (pascal_language_data): Likewise.
7707 * rust-lang.c (rust_language_data): Likewise.
7708 * symtab.c (search_name_hash): Update call.
7709
7710 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7711
7712 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7713 initializer.
7714 * c-lang.c (class compile_instance): Declare.
7715 (c_language_data): Delete la_get_compile_instance initializer.
7716 (c_language::get_compile_instance): New member function.
7717 (cplus_language_data): Delete la_get_compile_instance initializer.
7718 (cplus_language::get_compile_instance): New member function.
7719 (asm_language_data): Delete la_get_compile_instance initializer.
7720 (minimal_language_data): Likewise.
7721 * c-lang.h (c_get_compile_context): Update comment.
7722 (cplus_get_compile_context): Update comment.
7723 * compile/compile.c (compile_to_object): Update calls, don't rely
7724 on function pointer being NULL.
7725 * d-lang.c (d_language_data): Delete la_get_compile_instance
7726 initializer.
7727 * f-lang.c (f_language_data): Likewise.
7728 * go-lang.c (go_language_data): Likewise.
7729 * language.c (unknown_language_data): Likewise.
7730 (auto_language_data): Likewise.
7731 * language.h (language_data): Delete la_get_compile_instance field.
7732 (language_defn::get_compile_instance): New member function.
7733 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7734 initializer.
7735 * objc-lang.c (objc_language_data): Likewise.
7736 * opencl-lang.c (opencl_language_data): Likewise.
7737 * p-lang.c (pascal_language_data): Likewise.
7738 * rust-lang.c (rust_language_data): Likewise.
7739
7740 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7741
7742 * ada-lang.c (ada_add_all_symbols): Update comment.
7743 (ada_iterate_over_symbols): Delete, move implementation to...
7744 (ada_language::iterate_over_symbols): ...here, a new member
7745 function, rewrite to use range based for loop.
7746 (ada_language_data): Delete la_iterate_over_symbols initializer.
7747 * c-lang.c (c_language_data): Likewise.
7748 (cplus_language_data): Likewise.
7749 (asm_language_data): Likewise.
7750 (minimal_language_data): Likewise.
7751 * d-lang.c (d_language_data): Likewise.
7752 * f-lang.c (f_language_data): Likewise.
7753 * go-lang.c (go_language_data): Likewise.
7754 * language.c (unknown_language_data): Likewise.
7755 (auto_language_data): Likewise.
7756 * language.h (language_data): Delete la_iterate_over_symbols field.
7757 (language_defn::iterate_over_symbols): New member function.
7758 (LA_ITERATE_OVER_SYMBOLS): Update.
7759 * linespec.c (iterate_over_all_matching_symtabs): Update.
7760 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7761 initializer.
7762 * objc-lang.c (objc_language_data): Likewise.
7763 * opencl-lang.c (opencl_language_data): Likewise.
7764 * p-lang.c (pascal_language_data): Likewise.
7765 * rust-lang.c (rust_language_data): Likewise.
7766
7767 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7768
7769 * ada-lang.c (ada_language_data): Delete
7770 la_lookup_transparent_type initializer.
7771 * c-lang.c (c_language_data): Likewise.
7772 (cplus_language_data): Likewise.
7773 (cplus_language::lookup_transparent_type): New member function.
7774 (asm_language_data): Delete la_lookup_transparent_type
7775 initializer.
7776 (minimal_language_data): Likewise.
7777 * d-lang.c (d_language_data): Likewise.
7778 * f-lang.c (f_language_data): Likewise.
7779 * go-lang.c (go_language_data): Likewise.
7780 * language.c (unknown_language_data): Likewise.
7781 (auto_language_data): Likewise.
7782 * language.h (struct language_data): Delete
7783 la_lookup_transparent_type field.
7784 (language_defn::lookup_transparent_type): New member function.
7785 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7786 initializer.
7787 * objc-lang.c (objc_language_data): Likewise.
7788 * opencl-lang.c (opencl_language_data): Likewise.
7789 * p-lang.c (pascal_language_data): Likewise.
7790 * rust-lang.c (rust_language_data): Likewise.
7791 * symtab.c (symbol_matches_domain): Update call.
7792
7793 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7794
7795 * ada-lang.c (ada_language_arch_info): Delete function, move
7796 implementation to...
7797 (ada_language::language_arch_info): ...here, a new member
7798 function.
7799 (ada_language_data): Delete la_language_arch_info.
7800 * c-lang.c (c_language_data): Likewise.
7801 (c_language::language_arch_info): New member function.
7802 (cplus_language_arch_info): Delete function, move
7803 implementation to...
7804 (cplus_language::language_arch_info): ...here, a new member
7805 function.
7806 (cplus_language_data): Delete la_language_arch_info.
7807 (asm_language_data): Likewise.
7808 (asm_language::language_arch_info): New member function.
7809 (minimal_language_data): Delete la_language_arch_info.
7810 (minimal_language::language_arch_info): New member function.
7811 * d-lang.c (d_language_arch_info): Delete function, move
7812 implementation to...
7813 (d_language::language_arch_info): ...here, a new member
7814 function.
7815 (d_language_data): Delete la_language_arch_info.
7816 * f-lang.c (f_language_arch_info): Delete function, move
7817 implementation to...
7818 (f_language::language_arch_info): ...here, a new member
7819 function.
7820 (f_language_data): Delete la_language_arch_info.
7821 * go-lang.c (go_language_arch_info): Delete function, move
7822 implementation to...
7823 (go_language::language_arch_info): ...here, a new member
7824 function.
7825 (go_language_data): Delete la_language_arch_info.
7826 * language.c (unknown_language_data): Likewise.
7827 (unknown_language::language_arch_info): New member function.
7828 (auto_language_data): Delete la_language_arch_info.
7829 (auto_language::language_arch_info): New member function.
7830 (language_gdbarch_post_init): Update call to
7831 la_language_arch_info.
7832 * language.h (language_data): Delete la_language_arch_info
7833 function pointer.
7834 (language_defn::language_arch_info): New function.
7835 * m2-lang.c (m2_language_arch_info): Delete function, move
7836 implementation to...
7837 (m2_language::language_arch_info): ...here, a new member
7838 function.
7839 (m2_language_data): Delete la_language_arch_info.
7840 * objc-lang.c (objc_language_arch_info): Delete function, move
7841 implementation to...
7842 (objc_language::language_arch_info): ...here, a new member
7843 function.
7844 (objc_language_data): Delete la_language_arch_info.
7845 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7846 implementation to...
7847 (opencl_language::language_arch_info): ...here, a new member
7848 function.
7849 (opencl_language_data): Delete la_language_arch_info.
7850 * p-lang.c (pascal_language_arch_info): Delete function, move
7851 implementation to...
7852 (pascal_language::language_arch_info): ...here, a new member
7853 function.
7854 (pascal_language_data): Delete la_language_arch_info.
7855 * rust-lang.c (rust_language_arch_info): Delete function, move
7856 implementation to...
7857 (rust_language::language_arch_info): ...here, a new member
7858 function.
7859 (rust_language_data): Delete la_language_arch_info.
7860
7861 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7862
7863 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7864 initializer.
7865 * c-lang.c (c_language_data): Likewise.
7866 (cplus_language_data): Likewise.
7867 (cplus_language::pass_by_reference_info): New method.
7868 (asm_language_data): Delete la_pass_by_reference initializer.
7869 (minimal_language_data): Likewise.
7870 * cp-abi.c (cp_pass_by_reference): Remove use of
7871 default_pass_by_reference.
7872 * d-lang.c (d_language_data): Likewise.
7873 * f-lang.c (f_language_data): Likewise.
7874 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7875 default_pass_by_reference.
7876 * go-lang.c (go_language_data): Likewise.
7877 * language.c (language_pass_by_reference): Update.
7878 (default_pass_by_reference): Delete.
7879 (unknown_language_data): Delete la_pass_by_reference
7880 initializer.
7881 (auto_language_data): Likewise.
7882 * language.h (struct language_data): Delete la_pass_by_reference
7883 field.
7884 (language_defn::pass_by_reference_info): New member function.
7885 (default_pass_by_reference): Delete declaration.
7886 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7887 initializer.
7888 * objc-lang.c (objc_language_data): Likewise.
7889 * opencl-lang.c (opencl_language_data): Likewise.
7890 * p-lang.c (pascal_language_data): Likewise.
7891 * rust-lang.c (rust_language_data): Likewise.
7892
7893 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7894
7895 * ada-lang.c (ada_read_var_value): Delete function, move
7896 implementation to...
7897 (ada_language::read_var_value): ...here.
7898 (ada_language_data): Delete la_read_var_value initializer.
7899 * c-lang.c (c_language_data): Likewise.
7900 (cplus_language_data): Likewise.
7901 (minimal_language_data): Likewise.
7902 * d-lang.c (d_language_data): Likewise.
7903 * f-lang.c (f_language_data): Likewise.
7904 * findvar.c (default_read_var_value): Rename to...
7905 (language_defn::read_var_value): ...this.
7906 * findvar.c (read_var_value): Update header comment, and change to
7907 call member function instead of function pointer.
7908 * go-lang.c (go_language_data): Likewise.
7909 * language.c (unknown_language_data): Delete la_read_var_value
7910 initializer.
7911 (auto_language_data): Likewise.
7912 * language.h (struct language_data): Delete la_read_var_value
7913 field.
7914 (language_defn::read_var_value): New member function.
7915 (default_read_var_value): Delete declaration.
7916 * m2-lang.c (m2_language_data): Delete la_read_var_value
7917 initializer.
7918 * objc-lang.c (objc_language_data): Likewise.
7919 * opencl-lang.c (opencl_language_data): Likewise.
7920 * p-lang.c (pascal_language_data): Likewise.
7921 * rust-lang.c (rust_language_data): Likewise.
7922 * value.h (default_read_var_value): Delete declaration.
7923
7924 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7925
7926 * ada-lang.c (ada_print_array_index): Delete function, move
7927 implementation to...
7928 (ada_language::print_array_index): ...here.
7929 (ada_language_data): Delete la_print_array_index initializer.
7930 * c-lang.c (c_language_data): Likewise.
7931 (cplus_language_data): Likewise.
7932 (minimal_language_data): Likewise.
7933 * d-lang.c (d_language_data): Likewise.
7934 * f-lang.c (f_language_data): Likewise.
7935 * go-lang.c (go_language_data): Likewise.
7936 * language.c (default_print_array_index): Delete function, move
7937 implementation to...
7938 (language_defn::print_array_index): ...here.
7939 (unknown_language_data): Delete la_print_array_index initializer.
7940 (auto_language_data): Likewise.
7941 * language.h (struct language_data): Delete la_print_array_index
7942 field.
7943 (language_defn::print_array_index): New member function.
7944 (LA_PRINT_ARRAY_INDEX): Update.
7945 (default_print_array_index): Delete declaration.
7946 * m2-lang.c (m2_language_data): Delete la_print_array_index
7947 initializer.
7948 * objc-lang.c (objc_language_data): Likewise.
7949 * opencl-lang.c (opencl_language_data): Likewise.
7950 * p-lang.c (pascal_language_data): Likewise.
7951 * rust-lang.c (rust_language_data): Likewise.
7952
7953 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7954
7955 * gdb/ada-lang.c (ada_language_defn): Convert to...
7956 (ada_language_data): ...this.
7957 (class ada_language): New class.
7958 (ada_language_defn): New static global.
7959 * gdb/c-lang.c (c_language_defn): Convert to...
7960 (c_language_data): ...this.
7961 (class c_language): New class.
7962 (c_language_defn): New static global.
7963 (cplus_language_defn): Convert to...
7964 (cplus_language_data): ...this.
7965 (class cplus_language): New class.
7966 (cplus_language_defn): New static global.
7967 (asm_language_defn): Convert to...
7968 (asm_language_data): ...this.
7969 (class asm_language): New class.
7970 (asm_language_defn): New static global.
7971 (minimal_language_defn): Convert to...
7972 (minimal_language_data): ...this.
7973 (class minimal_language): New class.
7974 (minimal_language_defn): New static global.
7975 * gdb/d-lang.c (d_language_defn): Convert to...
7976 (d_language_data): ...this.
7977 (class d_language): New class.
7978 (d_language_defn): New static global.
7979 * gdb/f-lang.c (f_language_defn): Convert to...
7980 (f_language_data): ...this.
7981 (class f_language): New class.
7982 (f_language_defn): New static global.
7983 * gdb/go-lang.c (go_language_defn): Convert to...
7984 (go_language_data): ...this.
7985 (class go_language): New class.
7986 (go_language_defn): New static global.
7987 * gdb/language.c (unknown_language_defn): Remove declaration.
7988 (current_language): Initialize to nullptr, real initialization is
7989 moved to _initialize_language.
7990 (languages): Delete global.
7991 (language_defn::languages): Define.
7992 (set_language_command): Use language_defn::languages.
7993 (set_language): Likewise.
7994 (range_error): Likewise.
7995 (language_enum): Likewise.
7996 (language_def): Likewise.
7997 (add_set_language_command): Use language_def::languages for the
7998 language list, and language_def to lookup language pointers.
7999 (skip_language_trampoline): Use language_defn::languages.
8000 (unknown_language_defn): Convert to...
8001 (unknown_language_data): ...this.
8002 (class unknown_language): New class.
8003 (unknown_language_defn): New static global.
8004 (auto_language_defn): Convert to...
8005 (auto_language_data): ...this.
8006 (class auto_language): New class.
8007 (auto_language_defn): New static global.
8008 (language_gdbarch_post_init): Use language_defn::languages.
8009 (_initialize_language): Initialize current_language.
8010 * gdb/language.h (struct language_defn): Rename to...
8011 (struct language_data): ...this.
8012 (struct language_defn): New.
8013 (auto_language_defn): Delete.
8014 (unknown_language_defn): Delete.
8015 (minimal_language_defn): Delete.
8016 (ada_language_defn): Delete.
8017 (asm_language_defn): Delete.
8018 (c_language_defn): Delete.
8019 (cplus_language_defn): Delete.
8020 (d_language_defn): Delete.
8021 (f_language_defn): Delete.
8022 (go_language_defn): Delete.
8023 (m2_language_defn): Delete.
8024 (objc_language_defn): Delete.
8025 (opencl_language_defn): Delete.
8026 (pascal_language_defn): Delete.
8027 (rust_language_defn): Delete.
8028 * gdb/m2-lang.c (m2_language_defn): Convert to...
8029 (m2_language_data): ...this.
8030 (class m2_language): New class.
8031 (m2_language_defn): New static global.
8032 * gdb/objc-lang.c (objc_language_defn): Convert to...
8033 (objc_language_data): ...this.
8034 (class objc_language): New class.
8035 (objc_language_defn): New static global.
8036 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8037 (opencl_language_data): ...this.
8038 (class opencl_language): New class.
8039 (opencl_language_defn): New static global.
8040 * gdb/p-lang.c (pascal_language_defn): Convert to...
8041 (pascal_language_data): ...this.
8042 (class pascal_language): New class.
8043 (pascal_language_defn): New static global.
8044 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8045 language pointer, update comment format.
8046 * gdb/rust-lang.c (rust_language_defn): Convert to...
8047 (rust_language_data): ...this.
8048 (class rust_language): New class.
8049 (rust_language_defn): New static global.
8050
8051 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8052
8053 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8054 member variable.
8055 <m_stmt_at_address>: New member variable.
8056 (lnp_state_machine::record_line): Don't record some lines, update
8057 tracking of is_stmt at the same address.
8058 (lnp_state_machine::lnp_state_machine): Initialise new member
8059 variables.
8060
8061 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8062
8063 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8064 "-include gnu-nat-mig.h".
8065 * gnu-nat-mig.h: New file.
8066 * gnu-nat.c: Include "gnu-nat-mig.h".
8067 (exc_server, msg_reply_server, notify_server,
8068 process_reply_server): Remove declarations.
8069
8070 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8071
8072 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8073 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8074 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8075 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8076 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8077 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8078 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8079 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8080 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8081 to gnu_nat_target class.
8082 * gnu-nat.c: Likewise.
8083 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8084 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8085 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8086 object.
8087 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8088 instead of `gnu_target'.
8089
8090 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8091
8092 * i386-gnu-tdep.c: Include "gdbcore.h"
8093 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8094 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8095 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8096 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8097 i386_gnu_sigcontext_addr): New functions
8098 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8099 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8100 tdep.
8101
8102 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8103
8104 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8105 before fork_inferior call. Avoid calling it if target_is_pushed returns
8106 true.
8107
8108 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8109
8110 * gnu-nat.h (gnu_target): New variable declaration.
8111 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8112 gnu_target.
8113 * gnu-nat.c (gnu_target): New variable.
8114 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8115 add_thread_silent, and add_thread calls.
8116 (gnu_nat_target::create_inferior): Pass gnu_target to
8117 add_thread_silent, thread_change_ptid call.
8118 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8119 call.
8120
8121 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8122
8123 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8124 (gnu_nat_target::find_memory_regions): Remove unused
8125 `old_address' variable.
8126
8127 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8128
8129 * gnu-nat.c: Include "gdbarch.h".
8130
8131 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8132
8133 * reply_mig_hack.awk (Error return): Cast function through
8134 void *, to bypass compiler function call check.
8135
8136 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8137
8138 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8139 $(srcdir)/reply_mig_hack.awk.
8140
8141 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8142
8143 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8144
8145 2020-05-30 Jonny Grant <jg@jguk.org>
8146
8147 * configure.ac (ACX_BUGURL): change bug URL to https.
8148
8149 2020-05-30 Pedro Alves <palves@redhat.com>
8150
8151 * cp-support.c (replace_typedefs_template): New.
8152 (replace_typedefs_qualified_name): Handle
8153 DEMANGLE_COMPONENT_TEMPLATE.
8154
8155 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
8156
8157 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8158 dwarf2/index-cache.h, dwarf2/index-write.c,
8159 dwarf2/index-write.h, dwarf2/line-header.c,
8160 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8161 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8162 variables and fields from `dwarf2_per_objfile` to just
8163 `per_objfile` throughout.
8164
8165 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8166
8167 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8168 <push_dwarf_reg_entry_value>: Add comment.
8169
8170 2020-05-28 Kevin Buettner <kevinb@redhat.com>
8171 Keith Seitz <keiths@redhat.com>
8172
8173 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8174 instead of PyEval_ReleaseLock.
8175 (class gdbpy_gil): Move to earlier in file.
8176 (finalize_python): Set gdb_python_initialized.
8177 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8178 when not initialized.
8179
8180 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
8181
8182 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8183 <push_dwarf_reg_entry_value>: Remove assert. Override
8184 per_objfile with caller_per_objfile.
8185
8186 2020-05-28 Tom de Vries <tdevries@suse.de>
8187
8188 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8189 PR gold/15646 workaround to symbol kind "type".
8190
8191 2020-05-27 Tom Tromey <tromey@adacore.com>
8192
8193 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8194
8195 2020-05-27 Tom Tromey <tromey@adacore.com>
8196
8197 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8198 Use htab_find_with_hash.
8199 <add_abbrev>: Remove "abbrev_number" parameter.
8200 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8201 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8202 (hash_abbrev): Add comment.
8203 (abbrev_table::lookup_abbrev): Move to header file.
8204 (abbrev_table::read): Update.
8205
8206 2020-05-27 Tom Tromey <tromey@adacore.com>
8207
8208 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8209 method.
8210 <canonical_name>: New member.
8211 <raw_name>: Rename from "name".
8212 (partial_die_info): Initialize canonical_name.
8213 (scan_partial_symbols): Check raw_name.
8214 (partial_die_parent_scope, partial_die_full_name)
8215 (add_partial_symbol, add_partial_subprogram)
8216 (add_partial_enumeration, load_partial_dies): Use "name" method.
8217 (partial_die_info::name): New method.
8218 (partial_die_info::read, guess_partial_die_structure_name)
8219 (partial_die_info::fixup): Update.
8220
8221 2020-05-27 Tom Tromey <tromey@adacore.com>
8222
8223 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8224 <get_ref_die_offset>: Inline.
8225 <get_ref_die_offset_complaint>: New method.
8226 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8227 (attribute::get_ref_die_offset_complaint): Rename from
8228 get_ref_die_offset. Just issue complaint.
8229
8230 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8231
8232 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8233
8234 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8235
8236 * exec.c (exec_file_attach): Use errno value of first openp failure.
8237
8238 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
8239
8240 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8241 Don't close thread handle.
8242
8243 2020-05-27 Tom Tromey <tom@tromey.com>
8244 Simon Marchi <simon.marchi@efficios.com>
8245
8246 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8247 shared_ptr.
8248 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8249 member.
8250 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8251 dwarf2_per_bfd_objfile_data_key>: New globals.
8252 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8253 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8254 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8255 shared.
8256 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8257 short-circuit when sharing.
8258 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8259 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8260
8261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8262
8263 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8264 to...
8265 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8266 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8267
8268 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8269
8270 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8271 build_name_components, find_name_components_bounds>:
8272 Add per_objfile parameter.
8273 (struct mapped_index) <symbol_name_at>: Likewise.
8274 (struct mapped_debug_names): Remove constructor.
8275 <dwarf2_per_objfile>: Remove field.
8276 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8277 (mapped_index_base::find_name_components_bounds,
8278 mapped_index_base::build_name_components,
8279 dw2_expand_symtabs_matching_symbol): Likewise.
8280 (class mock_mapped_index) <symbol_name_at>: Likewise.
8281 (check_match): Likewise.
8282 (check_find_bounds_finds): Likewise.
8283 (test_mapped_index_find_name_component_bounds): Update.
8284 (CHECK_MATCH): Update.
8285 (dw2_expand_symtabs_matching): Update.
8286 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8287 per_objfile parameter.
8288 <find_vec_in_debug_names>: Likewise.
8289 <m_per_objfile>: New field.
8290 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8291 parameter.
8292 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8293 (dw2_debug_names_iterator::next): Update.
8294 (dw2_debug_names_lookup_symbol): Update.
8295 (dw2_debug_names_expand_symtabs_for_function): Update.
8296 (dw2_debug_names_map_matching_symbols): Update.
8297 (dw2_debug_names_expand_symtabs_matching): Update.
8298 (dwarf2_read_debug_names): Update.
8299
8300 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8301
8302 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8303 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8304 move to dwarf2_per_objfile.
8305 <read_in_chain>: Remove.
8306 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8307 remove_all_cus, age_comp_units>: New methods.
8308 <m_dwarf2_cus>: New member.
8309 (struct dwarf2_per_cu_data) <cu>: Remove.
8310 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8311 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8312 moved to methods of dwarf2_per_objfile.
8313 (dwarf2_clear_marks): Remove.
8314 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8315 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8316 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8317 (dwarf2_per_objfile::remove_all_cus): New.
8318 (class free_cached_comp_units) <~free_cached_comp_units>:
8319 Update.
8320 (load_cu): Update.
8321 (dw2_do_instantiate_symtab): Adjust.
8322 (fill_in_sig_entry_from_dwo_entry): Adjust.
8323 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8324 (cutu_reader::cutu_reader): Likewise.
8325 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8326 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8327 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8328 and dwarf2_per_objfile::age_comp_units.
8329 (load_partial_comp_unit): Update.
8330 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8331 (process_queue): Likewise.
8332 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8333 backlink.
8334 (dwarf2_read_addr_index): Likewise.
8335 (follow_die_offset): Likewise.
8336 (dwarf2_fetch_die_loc_sect_off): Likewise.
8337 (dwarf2_fetch_constant_bytes): Likewise.
8338 (dwarf2_fetch_die_type_sect_off): Likewise.
8339 (follow_die_sig_1): Likewise.
8340 (load_full_type_unit): Likewise.
8341 (read_signatured_type): Likewise.
8342 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8343 (dwarf2_cu::~dwarf2_cu): Remove.
8344 (dwarf2_per_objfile::get_cu): New.
8345 (dwarf2_per_objfile::set_cu): New.
8346 (age_cached_comp_units): Rename to...
8347 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8348 to std::unordered_map.
8349 (free_one_cached_comp_unit): Rename to...
8350 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8351 to std::unordered_map.
8352 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8353 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8354 a dwarf2_per_objfile in data.
8355 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8356 (dwarf2_clear_marks): Remove.
8357
8358 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8359
8360 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8361 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8362 (init_tu_and_read_dwo_dies): Likewise.
8363 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8364 (cutu_reader::cutu_reader): Likewise.
8365 (load_partial_comp_unit): Likewise.
8366 (process_psymtab_comp_unit): Update.
8367 (build_type_psymtabs_1): Update.
8368 (process_skeletonless_type_unit): Update.
8369 (load_full_comp_unit): Update.
8370 (find_partial_die): Update.
8371 (dwarf2_read_addr_index): Update.
8372 (read_signatured_type): Update.
8373
8374 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8375
8376 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8377 m_header_read_in>: New fields.
8378 <get_header>: New method.
8379 * dwarf2/read.c (per_cu_header_read_in): Remove.
8380 (dwarf2_per_cu_data::get_header): New.
8381 (dwarf2_per_cu_data::addr_size): Update.
8382 (dwarf2_per_cu_data::offset_size): Update.
8383 (dwarf2_per_cu_data::ref_addr_size): Update.
8384
8385 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8386
8387 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8388 (dw2_do_instantiate_symtab): Update.
8389 (queue_and_load_all_dwo_tus): Change parameter from
8390 dwarf2_per_cu_data to dwarf2_cu.
8391 (dwarf2_fetch_die_loc_sect_off): Update.
8392 (dwarf2_fetch_constant_bytes): Update.
8393 (dwarf2_fetch_die_type_sect_off): Update.
8394
8395 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8396
8397 * dwarf2/read.c (process_full_comp_unit,
8398 process_full_type_unit): Remove per_cu, per_objfile paramters.
8399 Add dwarf2_cu parameter.
8400 (process_queue): Update.
8401
8402 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8403
8404 * dwarf2/read.c (create_cu_from_index_list): Replace
8405 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8406 (create_cus_from_index_list): Likewise.
8407 (create_cus_from_index): Likewise.
8408 (create_signatured_type_table_from_index): Likewise.
8409 (create_cus_from_debug_names_list): Likewise.
8410 (create_cus_from_debug_names): Likewise.
8411 (dwarf2_read_gdb_index): Update.
8412 (dwarf2_read_debug_names): Update.
8413
8414 2020-05-27 Tom Tromey <tom@tromey.com>
8415 Simon Marchi <simon.marchi@efficios.com>
8416
8417 * dwarf2/read.h (struct dwarf2_per_objfile)
8418 <get_type_for_signatured_type, set_type_for_signatured_type>:
8419 New methods.
8420 <m_type_map>: New member.
8421 (struct signatured_type) <type>: Remove.
8422 * dwarf2/read.c
8423 (dwarf2_per_objfile::get_type_for_signatured_type,
8424 dwarf2_per_objfile::set_type_for_signatured_type): New.
8425 (get_signatured_type): Use new methods.
8426
8427 2020-05-27 Tom Tromey <tom@tromey.com>
8428 Simon Marchi <simon.marchi@efficios.com>
8429
8430 * dwarf2/read.h (struct type_unit_group_unshareable): New.
8431 (struct dwarf2_per_objfile) <type_units>: New member.
8432 <get_type_unit_group_unshareable>: New method.
8433 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
8434 num_symtabs, symtabs>: Remove; move to
8435 type_unit_group_unshareable.
8436 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
8437 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
8438 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
8439
8440 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8441
8442 * dwarf2/read.h (struct dwarf2_per_cu_data):
8443 <dwarf2_per_objfile>: Remove.
8444 * dwarf2/read.c (create_cu_from_index_list): Don't assign
8445 dwarf2_per_objfile.
8446 (create_signatured_type_table_from_index): Likewise.
8447 (create_signatured_type_table_from_debug_names): Likewise.
8448 (create_debug_type_hash_table): Likewise.
8449 (fill_in_sig_entry_from_dwo_entry): Likewise.
8450 (create_type_unit_group): Likewise.
8451 (read_comp_units_from_section): Likewise.
8452 (create_cus_hash_table): Likewise.
8453
8454 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8455
8456 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
8457 dwarf2_per_cu_data::dwarf2_per_objfile.
8458 (compute_compunit_symtab_includes): Likewise.
8459 (dwarf2_cu::start_symtab): Likewise.
8460
8461 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8462
8463 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
8464 parameter.
8465 * dwarf2/read.c (get_die_type_at_offset): Likewise.
8466 (read_namespace_alias): Update.
8467 (lookup_die_type): Update.
8468 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
8469 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
8470 Update.
8471 (disassemble_dwarf_expression): Update.
8472
8473 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8474
8475 * dwarf2/read.h (struct dwarf2_queue_item): Add
8476 dwarf2_per_objfile parameter, assign new parameter.
8477 <per_objfile>: New field.
8478 * dwarf2/read.c (free_one_cached_comp_unit): Add
8479 dwarf2_per_objfile parameter.
8480 (queue_comp_unit): Likewise.
8481 (dw2_do_instantiate_symtab): Update.
8482 (process_psymtab_comp_unit): Update.
8483 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
8484 (process_imported_unit_die): Update.
8485 (queue_and_load_dwo_tu): Update.
8486 (follow_die_offset): Update.
8487 (follow_die_sig_1): Update.
8488
8489 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8490
8491 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
8492 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
8493 (read_call_site_scope): Assign per_objfile.
8494 (dwarf2_per_cu_data::objfile): Remove.
8495 * gdbtypes.h (struct call_site) <per_objfile>: New member.
8496 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
8497 dwarf2_per_objfile parameter.
8498 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
8499 dwarf2_per_objfile parameter.
8500 (dwarf_expr_reg_to_entry_parameter): Add output
8501 dwarf2_per_objfile parameter.
8502 (locexpr_get_frame_base): Update.
8503 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
8504 <push_dwarf_reg_entry_value>: Update.
8505 <call_site_to_target_addr>: Update.
8506 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
8507 parameter.
8508 (value_of_dwarf_reg_entry): Update.
8509 (rw_pieced_value): Update.
8510 (indirect_synthetic_pointer): Update.
8511 (dwarf2_evaluate_property): Update.
8512 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
8513 parameter.
8514 (locexpr_read_variable): Update.
8515 (locexpr_get_symbol_read_needs): Update.
8516 (loclist_read_variable): Update.
8517
8518 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8519
8520 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8521 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8522 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8523 parameter.
8524 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8525 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8526 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8527 parameter.
8528 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8529 sect_variable_value): Add dwarf2_per_objfile parameter.
8530 (class dwarf_evaluate_loc_desc) <dwarf_call,
8531 dwarf_variable_value>: Update.
8532 (fetch_const_value_from_synthetic_pointer): Add
8533 dwarf2_per_objfile parameter.
8534 (fetch_const_value_from_synthetic_pointer): Update.
8535 (coerced_pieced_ref): Update.
8536 (class symbol_needs_eval_context) <dwarf_call,
8537 dwarf_variable_value>: Update.
8538 (dwarf2_compile_expr_to_ax): Update.
8539
8540 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8541
8542 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8543 parameter.
8544 (dwarf2_evaluate_loc_desc_full): Update.
8545
8546 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8547
8548 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8549 parameter.
8550 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8551 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8552 dwarf2_per_objfile parameter.
8553 (decode_debug_loc_dwo_addresses): Likewise.
8554 (dwarf2_find_location_expression): Update.
8555 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8556 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8557 parameter.
8558 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8559 parameter.
8560 (locexpr_describe_location_1): Likewise.
8561 (locexpr_describe_location): Update.
8562
8563 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8564
8565 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8566 Remove.
8567 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8568 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8569 (dwarf2_compile_property_to_c): Update.
8570 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8571 use text offset from objfile.
8572 (locexpr_tracepoint_var_ref): Update.
8573 (locexpr_generate_c_location): Update.
8574 (loclist_describe_location): Update.
8575 (loclist_tracepoint_var_ref): Update.
8576 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8577 dwarf2_per_objfile parameter.
8578 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8579 use text offset from objfile.
8580 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8581
8582 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8583
8584 * dwarf2/expr.h (struct dwarf_expr_context)
8585 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8586 <offset>: Remove.
8587 <per_objfile>: New member.
8588 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8589 dwarf2_per_objfile parameter. Don't set offset, set
8590 per_objfile.
8591 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8592 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8593 a dwarf2_per_objfile object instead of an offset.
8594 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8595 constructor.
8596 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8597 to dwarf2_expr_executor constructor. Don't set offset.
8598 (dwarf2_fetch_cfa_info): Update.
8599 (struct dwarf2_frame_cache) <text_offset>: Remove.
8600 <per_objfile>: New field.
8601 (dwarf2_frame_cache): Update.
8602 (dwarf2_frame_prev_register): Update.
8603 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8604 <dwarf_evaluate_loc_desc>: Add constructor.
8605 (dwarf2_evaluate_loc_desc_full): Update.
8606 (dwarf2_locexpr_baton_eval): Update.
8607 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8608 Add constructor.
8609 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8610
8611 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8612
8613 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8614 addr_sized_int_type>: Move to dwarf2_cu.
8615 <int_type>: Move to dwarf2_per_objfile.
8616 (struct dwarf2_per_objfile) <int_type>: Move here.
8617 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8618 addr_sized_int_type>: Move here.
8619 (read_func_scope): Update.
8620 (read_array_type): Update.
8621 (read_tag_string_type): Update.
8622 (attr_to_dynamic_prop): Update.
8623 (dwarf2_per_cu_data::int_type): Rename to...
8624 (dwarf2_per_objfile::int_type): ... this.
8625 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8626 (dwarf2_cu::addr_sized_int_type): ... this.
8627 (read_subrange_type): Update.
8628 (dwarf2_per_cu_data::addr_type): Rename to...
8629 (dwarf2_cu::addr_type): ... this.
8630 (set_die_type): Update.
8631
8632 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8633
8634 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8635 data through per_cu->cu.
8636
8637 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8638
8639 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8640 dwarf2_per_cu_data parameter fo dwarf2_cu.
8641 (lookup_dwo_type_unit): Likewise.
8642 (read_cutu_die_from_dwo): Likewise.
8643 (lookup_dwo_unit): Likewise.
8644 (open_and_init_dwo_file): Likewise.
8645 (lookup_dwo_cutu): Likewise.
8646 (lookup_dwo_comp_unit): Likewise.
8647 (lookup_dwo_type_unit): Likewise.
8648 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8649 (cutu_reader::cutu_reader): Update.
8650
8651 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8652
8653 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8654 parameter.
8655 (process_full_type_unit): Likewise.
8656 (process_queue): Update.
8657
8658 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8659
8660 * dwarf2/read.c (recursively_compute_inclusions): Add
8661 dwarf2_per_objfile parameter.
8662 (compute_compunit_symtab_includes): Likewise.
8663 (process_cu_includes): Update.
8664
8665 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8666
8667 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8668 parameter.
8669 (create_type_unit_group): Update.
8670 (process_psymtab_comp_unit_reader): Update.
8671 (build_type_psymtabs_reader): Update.
8672
8673 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8674
8675 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8676 object through m_this_cu->cu.
8677
8678 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8679
8680 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8681 the info parameter.
8682 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8683
8684 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8685
8686 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8687 per_objfile parameter.
8688 (load_full_type_unit): Add per_objfile parameter.
8689 (read_signatured_type): Likewise.
8690 (load_full_comp_unit): Likewise.
8691 (load_cu): Likewise.
8692 (dw2_do_instantiate_symtab): Likewise.
8693 (dw2_get_file_names): Likewise.
8694 (dw2_map_symtabs_matching_filename): Update.
8695 (dw_expand_symtabs_matching_file_matcher): Update.
8696 (dw2_map_symbol_filenames): Update.
8697 (process_psymtab_comp_unit): Add per_objfile parameter.
8698 (build_type_psymtabs_1): Update.
8699 (process_skeletonless_type_unit): Update.
8700 (dwarf2_build_psymtabs_hard): Update.
8701 (load_partial_comp_unit): Add per_objfile parameter.
8702 (scan_partial_symbols): Update.
8703 (load_full_comp_unit): Add per_objfile parameter.
8704 (process_imported_unit_die): Update.
8705 (create_cus_hash_table): Update.
8706 (find_partial_die): Update.
8707 (dwarf2_read_addr_index): Update.
8708 (follow_die_offset): Update.
8709 (dwarf2_fetch_die_loc_sect_off): Update.
8710 (dwarf2_fetch_constant_bytes): Update.
8711 (dwarf2_fetch_die_type_sect_off): Update.
8712 (follow_die_sig_1): Update.
8713 (load_full_type_unit): Add per_objfile parameter.
8714 (read_signatured_type): Likewise.
8715
8716 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8717
8718 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8719 of objfile_name.
8720
8721 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8722
8723 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8724 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8725 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8726 field.
8727 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8728 (create_cus_from_index): Update.
8729 (dwarf2_read_gdb_index): Update.
8730 (create_cus_from_debug_names): Update.
8731 (dwarf2_read_debug_names): Update.
8732 (get_abbrev_section_for_cu): Update.
8733 (create_all_comp_units): Update.
8734 (read_attribute_value): Update.
8735 (get_debug_line_section): Update.
8736 * dwarf2/index-cache.c (index_cache::store): Update.
8737 * dwarf2/index-write.c (save_gdb_index_command): Update.
8738 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8739
8740 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8741
8742 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8743 member.
8744 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8745 dwarf2_per_cu_data::per_bfd.
8746 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8747 (create_type_unit_group): Likewise.
8748 (queue_comp_unit): Remove reference to
8749 per_cu->dwarf2_per_objfile.
8750 (maybe_queue_comp_unit): Likewise.
8751 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8752 (create_cus_hash_table): Assign new field.
8753
8754 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8755
8756 * dwarf2/read.c: Replace
8757 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8758 dwarf2_cu->per_objfile throughout.
8759
8760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8761
8762 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8763 parameter, don't use per_cu->dwarf2_per_objfile.
8764 (dw2_instantiate_symtab): Likewise.
8765 (dw2_find_last_source_symtab): Update.
8766 (dw2_map_expand_apply): Update.
8767 (dw2_lookup_symbol): Update.
8768 (dw2_expand_symtabs_for_function): Update.
8769 (dw2_expand_all_symtabs): Update.
8770 (dw2_expand_symtabs_with_fullname): Update.
8771 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8772 don't use per_cu->dwarf2_per_objfile.
8773 (dw2_expand_marked_cus): Update.
8774 (dw2_find_pc_sect_compunit_symtab): Update.
8775 (dw2_debug_names_lookup_symbol): Update.
8776 (dw2_debug_names_expand_symtabs_for_function): Update.
8777 (dw2_debug_names_map_matching_symbols): Update.
8778 (dwarf2_psymtab::expand_psymtab): Update.
8779
8780 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8781
8782 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8783 <per_objfile>: New member.
8784 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8785 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8786 call to dwarf2_cu.
8787 (cutu_reader::cutu_reader): Update.
8788 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8789
8790 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8791
8792 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8793 struct dwarf2_per_objfile.
8794 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8795 dwarf2_per_bfd.
8796 * dwarf2/read.c (set_die_type): Update.
8797 (get_die_type_at_offset): Update.
8798
8799 2020-05-27 Tom Tromey <tom@tromey.com>
8800 Simon Marchi <simon.marchi@efficios.com>
8801
8802 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8803 method.
8804 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8805 get_symtab, set_symtab>: New methods.
8806 <m_symtabs>: New field.
8807 (struct dwarf2_psymtab): Derive from partial_symtab.
8808 <readin_p, get_compunit_symtab>: Declare methods.
8809 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8810 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8811 New methods.
8812 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8813 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8814 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8815 (dw2_symtab_iter_next, dw2_print_stats)
8816 (dw2_expand_symtabs_with_fullname)
8817 (dw2_expand_symtabs_matching_one)
8818 (dw_expand_symtabs_matching_file_matcher)
8819 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8820 (dw2_debug_names_iterator::next)
8821 (dw2_debug_names_map_matching_symbols)
8822 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8823 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8824 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8825 New methods.
8826 (get_compunit_symtab, process_full_comp_unit)
8827 (process_full_type_unit): Update.
8828 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8829
8830 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8831
8832 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8833 then introduce a new dwarf2_per_objfile type.
8834 <read_line_string>: Move to the new dwarf2_per_objfile type.
8835 <objfile>: Likewise.
8836 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8837 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8838 dwarf2_per_objfile->per_bfd.
8839 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8840 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8841 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8842 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8843 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8844 (dwarf2_per_objfile::locate_sections): Rename to...
8845 (dwarf2_per_bfd::locate_sections): ... this.
8846 (dwarf2_per_objfile::get_cutu): Rename to...
8847 (dwarf2_per_bfd::get_cutu): ... this.
8848 (dwarf2_per_objfile::get_cu): Rename to...
8849 (dwarf2_per_bfd::get_cu): ... this.
8850 (dwarf2_per_objfile::get_tu): Rename to...
8851 (dwarf2_per_bfd::get_tu): ... this.
8852 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8853 (dwarf2_per_bfd::allocate_per_cu): ... this.
8854 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8855 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8856 (get_gdb_index_contents_ftype): Change parameter from
8857 dwarf2_per_objfile to dwarf2_per_bfd.
8858 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8859 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8860
8861 2020-05-27 Tom Tromey <tom@tromey.com>
8862 Simon Marchi <simon.marchi@efficios.com>
8863
8864 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8865 (allocate_piece_closure): Set "per_objfile" member.
8866 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8867 (locexpr_describe_location, loclist_describe_location): Use new
8868 member.
8869 * dwarf2/read.c (read_call_site_scope)
8870 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8871 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8872 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8873 handle_data_member_location): Set per_objfile member.
8874 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8875 member.
8876 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8877
8878 2020-05-27 Tom Tromey <tom@tromey.com>
8879
8880 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8881 allocate_signatured_type>: Declare new methods.
8882 <m_num_psymtabs>: New member.
8883 (struct dwarf2_per_cu_data) <index>: New member.
8884 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8885 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8886 (create_cu_from_index_list): Use allocate_per_cu.
8887 (create_signatured_type_table_from_index)
8888 (create_signatured_type_table_from_debug_names)
8889 (create_debug_type_hash_table, add_type_unit)
8890 (read_comp_units_from_section): Use allocate_signatured_type.
8891
8892 2020-05-27 Tom Tromey <tom@tromey.com>
8893
8894 * psymtab.c (partial_map_expand_apply)
8895 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8896 (psym_lookup_global_symbol_language)
8897 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8898 (psym_print_stats, psym_expand_symtabs_for_function)
8899 (psym_map_symbol_filenames, psym_map_matching_symbols)
8900 (psym_expand_symtabs_matching)
8901 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8902 (maintenance_check_psymtabs): Update.
8903 * psympriv.h (struct partial_symtab) <readin_p,
8904 get_compunit_symtab>: Add objfile parameter.
8905 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8906 Likewise.
8907 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8908 get_compunit_symtab>: Likewise.
8909 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8910
8911 2020-05-27 Tom Tromey <tom@tromey.com>
8912
8913 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8914 member.
8915 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8916 (create_cu_from_index_list)
8917 (create_signatured_type_table_from_index)
8918 (create_signatured_type_table_from_debug_names)
8919 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8920 (dwarf2_create_include_psymtab)
8921 (create_debug_type_hash_table, add_type_unit)
8922 (create_type_unit_group, read_comp_units_from_section)
8923 (dwarf2_compute_name, create_cus_hash_table)
8924 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8925 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8926 obstack.
8927 (dw2_get_real_path): Likewise. Change argument to
8928 dwarf2_per_objfile.
8929
8930 2020-05-27 Luis Machado <luis.machado@linaro.org>
8931
8932 PR tdep/26000
8933 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8934 for ldrd (immediate).
8935
8936 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8937
8938 * command.h: Add comment giving the name of class_tui.
8939 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8940 create the fake command for the help for class_tui.
8941
8942 2020-05-26 Tom Tromey <tromey@adacore.com>
8943
8944 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8945 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8946 (val_atr): New function.
8947 (value_val_atr): Use it.
8948 * ada-valprint.c (print_optional_low_bound): Change low bound
8949 handling for enums.
8950 (val_print_packed_array_elements): Don't call discrete_position.
8951 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8952 discrete_position for enum types.
8953 * language.c (default_print_array_index): Change type.
8954 * language.h (struct language_defn) <la_print_array_index>: Add
8955 index_type parameter, change type of index_value.
8956 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8957 (default_print_array_index): Update.
8958 * valprint.c (maybe_print_array_index): Don't call
8959 value_from_longest. Update.
8960 (value_print_array_elements): Don't call discrete_position.
8961
8962 2020-05-26 Tom Tromey <tromey@adacore.com>
8963
8964 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8965 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8966
8967 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8968
8969 PR gdb/13519
8970 * avr-tdep.c (avr_integer_to_address): Return data or code
8971 address accordingly to the second 'type' argument of the
8972 function.
8973
8974 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8975
8976 * infcmd.c, inferior.h: (construct_inferior_arguments):
8977 Moved function from here to gdbsupport/common-inferior.{h,cc}
8978
8979 2020-05-23 Tom Tromey <tom@tromey.com>
8980
8981 Revert commit eca1f90c:
8982 * NEWS: Remove entry for completion styling.
8983 * completer.c (_rl_completion_prefix_display_length): Move
8984 declaration later.
8985 (gdb_fnprint): Revert.
8986 (gdb_display_match_list_1): Likewise.
8987 * cli/cli-style.c (completion_prefix_style)
8988 (completion_difference_style, completion_suffix_style): Remove.
8989 (_initialize_cli_style): Revert.
8990 * cli/cli-style.h (completion_prefix_style)
8991 (completion_difference_style, completion_suffix_style): Don't
8992 declare.
8993
8994 2020-05-24 Pedro Alves <palves@redhat.com>
8995
8996 * symtab.c (completion_list_add_name): Return boolean indication
8997 of whether the symbol matched.
8998 (completion_list_add_symbol): Don't try to remove C++ aliases if
8999 the symbol didn't match in the first place.
9000 * symtab.h (completion_list_add_name): Return bool.
9001
9002 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9003
9004 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9005 type::field.
9006
9007 2020-05-23 Joel Brobecker <brobecker@adacore.com>
9008
9009 GDB 9.2 released.
9010
9011 2020-05-23 Tom Tromey <tom@tromey.com>
9012
9013 * NEWS: Add entry for completion styling.
9014 * completer.c (_rl_completion_prefix_display_length): Move
9015 declaration earlier.
9016 (gdb_fnprint): Use completion_style.
9017 (gdb_display_match_list_1): Likewise.
9018 * cli/cli-style.c (completion_prefix_style)
9019 (completion_difference_style, completion_suffix_style): New
9020 globals.
9021 (_initialize_cli_style): Register new globals.
9022 * cli/cli-style.h (completion_prefix_style)
9023 (completion_difference_style, completion_suffix_style): Declare.
9024
9025 2020-05-23 Pedro Alves <palves@redhat.com>
9026
9027 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9028 (parse_escape): Use ISDIGIT instead of isdigit.
9029 (puts_debug): Use gdb_isprint instead of isprint.
9030 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9031 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9032 ISSPACE instead of isspace.
9033 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9034 instead of isspace.
9035 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9036 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9037 instead of isxdigit and ISDIGIT instead of isdigit.
9038
9039 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9040
9041 * gdbtypes.h (struct type) <field>: New method.
9042 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9043 or type::field.
9044
9045 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9048 (TYPE_FIELDS): Use type::fields. Change all call sites that
9049 modify the propery to use type::set_fields instead.
9050
9051 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9052
9053 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9054 type::num_fields instead.
9055
9056 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
9057
9058 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9059 methods.
9060 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9061 that modify the number of fields to use type::set_num_fields
9062 instead.
9063
9064 2020-05-22 Tom Tromey <tromey@adacore.com>
9065
9066 * compile/compile-object-load.h (munmap_list_free): Don't
9067 declare.
9068
9069 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * annotate.c (annotate_source_line): Update return type, add call
9072 to update current symtab and line.
9073 * annotate.h (annotate_source_line): Update return type, and
9074 extend header comment.
9075 * source.c (info_line_command): Check annotation_level before
9076 calling annotate_source_line.
9077 * stack.c (print_frame_info): If calling annotate_source_line
9078 returns true, then don't print any other source line information.
9079
9080 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9081
9082 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9083
9084 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * coffread.c (patch_type): Remove NULL check before xfree.
9087 * corefile.c (set_gnutarget): Likewise.
9088 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9089 * exec.c (build_section_table): Likewise.
9090 * remote.c (remote_target::pass_signals): Likewise.
9091 * utils.c (n_spaces): Likewise.
9092 * cli/cli-script.c (document_command): Likewise.
9093 * i386-windows-tdep.c (core_process_module_section): Likewise.
9094 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9095
9096 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
9097
9098 * symfile.c (reread_symbols): Clear objfile's section_offsets
9099 vector and section indices, re-compute them by calling
9100 sym_offsets.
9101
9102 2020-05-20 Tom Tromey <tromey@adacore.com>
9103
9104 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
9105 (desc_one_bound, desc_index_type): Compute field name.
9106
9107 2020-05-20 Tom de Vries <tdevries@suse.de>
9108
9109 PR symtab/25833
9110 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9111
9112 2020-05-20 Alan Modra <amodra@gmail.com>
9113
9114 PR 25993
9115 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9116 bfd_set_filename.
9117 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9118 passed to bfd_set_filename.
9119 * symfile-mem.c (add_vsyscall_page): Likewise for string
9120 passed to symbol_file_add_from_memory.
9121 (symbol_file_add_from_memory): Make name param a const char* and
9122 don't strdup.
9123
9124 2020-05-20 Alan Modra <amodra@gmail.com>
9125
9126 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9127 rather than accessing bfd->filename directly.
9128 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9129 and use bfd_section_name.
9130 * dwarf2/frame.c (decode_frame_entry): Likewise.
9131 * exec.c (exec_set_section_address): Likewise.
9132 * solib-aix.c (solib_aix_bfd_open): Likewise.
9133 * stap-probe.c (get_stap_base_address): Likewise.
9134 * symfile.c (reread_symbols): Likewise.
9135
9136 2020-05-19 Tom Tromey <tromey@adacore.com>
9137
9138 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9139
9140 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9141
9142 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9143
9144 2020-05-19 Pedro Alves <palves@redhat.com>
9145
9146 * NEWS (set exec-file-mismatch): Adjust entry.
9147 * exec.c: Include "build-id.h".
9148 (validate_exec_file): Try to match build IDs instead of filenames.
9149 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9150 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9151 and pass down 'warn_if_slow'.
9152 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9153 gdb_bfd_open_closure to pass it down.
9154 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9155
9156 2020-05-19 Pedro Alves <palves@redhat.com>
9157
9158 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9159 * target.c (target_fileio_open_1): Rename to target_fileio_open
9160 and make extern. Use bool.
9161 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9162 (target_fileio_read_alloc_1): Adjust.
9163 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9164 (target_fileio_open_warn_if_slow): Delete declaration.
9165
9166 2020-05-19 Pedro Alves <palves@redhat.com>
9167
9168 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9169 Adjust all callers.
9170
9171 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9172
9173 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9174 whether disp is negative.
9175
9176 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9177
9178 * symfile.h (struct symfile_segment_data)
9179 <~symfile_segment_data>: Remove.
9180 <segment_info>: Change to std::vector.
9181 * symfile.c (default_symfile_segments): Update.
9182 * elfread.c (elf_symfile_segments): Update.
9183
9184 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9185
9186 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9187 <segments>: New.
9188 <segment_bases, segment_sizes>: Remove.
9189 * symfile.c (default_symfile_segments): Update.
9190 * elfread.c (elf_symfile_segments): Update.
9191 * remote.c (remote_target::get_offsets): Update.
9192 * solib-target.c (solib_target_relocate_section_addresses):
9193 Update.
9194
9195 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
9196
9197 * symfile.h (struct symfile_segment_data): Initialize fields.
9198 <~symfile_segment_data>: Add.
9199 (symfile_segment_data_up): New.
9200 (struct sym_fns) <sym_segments>: Return a
9201 symfile_segment_data_up.
9202 (default_symfile_segments): Return a symfile_segment_data_up.
9203 (free_symfile_segment_data): Remove.
9204 (get_symfile_segment_data): Return a symfile_segment_data_up.
9205 * symfile.c (default_symfile_segments): Likewise.
9206 (get_symfile_segment_data): Likewise.
9207 (free_symfile_segment_data): Remove.
9208 (symfile_find_segment_sections): Update.
9209 * elfread.c (elf_symfile_segments): Return a
9210 symfile_segment_data_up.
9211 * remote.c (remote_target::get_offsets): Update.
9212 * solib-target.c (solib_target_relocate_section_addresses):
9213 Update.
9214 * symfile-debug.c (debug_sym_segments): Return a
9215 symfile_segment_data_up.
9216
9217 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9218
9219 PR build/25981
9220 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9221 Hardcode register numbers.
9222
9223 PR build/25981
9224 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9225 procfs_find_LDT_entry): Remove.
9226 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9227 procfs_find_LDT_entry): Remove.
9228 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9229 Remove.
9230
9231 2020-05-17 Pedro Alves <palves@redhat.com>
9232 Andrew Burgess <andrew.burgess@embecosm.com>
9233 Keno Fischer <keno@juliacomputing.com>
9234
9235 PR gdb/25741
9236 * breakpoint.c (build_target_condition_list): Update comments.
9237 (build_target_command_list): Update comments and skip matching
9238 locations.
9239 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9240 a separate function. Simplify "set breakpoint auto-hw off"
9241 handling.
9242 (insert_breakpoints): Update comment.
9243 (tracepoint_locations_match): New parameter. For breakpoints,
9244 compare location types too, if the caller wants to.
9245 (handle_automatic_hardware_breakpoints): New functions.
9246 (bp_location_is_less_than): Also sort by location type and
9247 hardware breakpoint length.
9248 (update_global_location_list): Handle "set breakpoint auto-hw on"
9249 here.
9250 (update_breakpoint_locations): Ask breakpoint_locations_match to
9251 ignore location types.
9252
9253 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9254
9255 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9256 type::name instead.
9257
9258 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * gdbtypes.h (struct type) <name, set_name>: New methods.
9261 (TYPE_CODE): Use type::name. Change all call sites used to set
9262 the name to use type::set_name instead.
9263
9264 2020-05-16 Tom Tromey <tom@tromey.com>
9265
9266 * top.c (quit_force): Update.
9267 * infrun.c (handle_no_resumed): Update.
9268 * top.h (all_uis): New function.
9269 (ALL_UIS): Remove.
9270
9271 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
9272
9273 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9274
9275 2020-05-16 Pedro Alves <palves@redhat.com>
9276
9277 * ia64-linux-nat.c
9278 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9279 Declare method.
9280 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9281
9282 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
9283
9284 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9285 (sparc64_adi_info): Likewise.
9286
9287 2020-05-15 Tom Tromey <tom@tromey.com>
9288
9289 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9290 block_objfile.
9291 (lookup_objfile_from_block): Remove.
9292 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9293 (lookup_global_symbol): Use block_objfile.
9294 * symtab.h (lookup_objfile_from_block): Don't declare.
9295 * printcmd.c (clear_dangling_display_expressions): Use
9296 block_objfile.
9297 * parse.c (operator_check_standard): Use block_objfile.
9298
9299 2020-05-15 Tom Tromey <tom@tromey.com>
9300
9301 * language.c (language_alloc_type_symbol): Set
9302 SYMBOL_SECTION.
9303 * symtab.c (initialize_objfile_symbol): Remove.
9304 (allocate_symbol): Remove.
9305 (allocate_template_symbol): Remove.
9306 * dwarf2/read.c (fixup_go_packaging): Use "new".
9307 (new_symbol): Use "new".
9308 (read_variable): Don't call initialize_objfile_symbol. Use
9309 "new".
9310 (read_func_scope): Use "new".
9311 * xcoffread.c (process_xcoff_symbol): Don't call
9312 initialize_objfile_symbol.
9313 (SYMBOL_DUP): Remove.
9314 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9315 "new".
9316 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9317 (allocate_template_symbol): Don't declare.
9318 (struct symbol): Add copy constructor. Change defaults.
9319 * jit.c (finalize_symtab): Use "new".
9320 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9321 Use "new".
9322 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9323 (common_block_end): Use "new".
9324 * mdebugread.c (parse_symbol): Use "new".
9325 (new_symbol): Likewise.
9326
9327 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9328
9329 * NEWS: Mention changes to help and apropos.
9330
9331 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9332
9333 * command.h (enum command_class): Improve comments, document
9334 that class_alias is for user-defined aliases, give the class
9335 name for each class, remove unused class_xdb.
9336 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9337 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9338 by a precise class.
9339 * infcmd.c (_initialize_infcmd): Likewise.
9340 * reverse.c (_initialize_reverse): Likewise.
9341 * stack.c (_initialize_stack): Likewise.
9342 * symfile.c (_initialize_symfile): Likewise.
9343 * tracepoint.c (_initialize_tracepoint): Likewise.
9344
9345 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9346
9347 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9348 when their aliased command is traversed.
9349 (help_cmd): Add fput_command_names_styled call to
9350 output command name and aliases when command has an alias.
9351
9352 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9353
9354 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9355 * cli/cli-decode.c (help_cmd_list): Declare as static,
9356 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9357 a command together with the command.
9358 (fput_command_name_styled, fput_command_names_styled): New functions.
9359 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9360 fput_command_name_styled.
9361 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9362 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9363
9364 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9365
9366 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9367 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9368 * command.h (cmd_show_list): Likewise.
9369 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9370 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9371
9372 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9373
9374 * unittests/command-def-selftests.c (traverse_command_structure):
9375 Verify all commands of a list have the same prefix command and
9376 that only the top cmdlist commands have a null prefix.
9377
9378 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9379
9380 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9381 as prefix, not one of its aliases.
9382 (set_cmd_prefix): Remove.
9383 (do_add_cmd): Centralize the setting of the prefix of a command, when
9384 command is defined after its full chain of prefix commands.
9385 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9386 (add_setshow_cmd_full): Likewise.
9387 (update_prefix_field_of_prefixed_commands): New function.
9388 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9389 update_prefix_field_of_prefixed_commands.
9390 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9391 addresses of remote_set_cmdlist and remote_show_cmdlist given
9392 as argument, not the address of an argument.
9393 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9394 * gdb/remote.c (_initialize_remote): Likewise.
9395
9396 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9397
9398 * cli/cli-cmds.c (alias_command): Check for an existing alias
9399 using lookup_cmd_composition, as valid_command_p is too strict
9400 and forbids aliases that are the prefix of an existing alias
9401 or command.
9402 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9403 command is properly recognised as a valid command.
9404
9405 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9406
9407 * unittests/help-doc-selftests.c: Rename to
9408 unittests/command-def-selftests.c
9409 * unittests/command-def-selftests.c (help_doc_tests): Update some
9410 comments.
9411 (command_structure_tests, traverse_command_structure): New namespace
9412 and function.
9413 (command_structure_invariants_tests): New function.
9414 (_initialize_command_def_selftests) Renamed from
9415 _initialize_help_doc_selftests, register command_structure_invariants
9416 selftest.
9417
9418 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9419
9420 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
9421 an alias of 'show'.
9422
9423 2020-05-15 Joel Brobecker <brobecker@adacore.com>
9424
9425 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
9426 ada_is_fixed_point_type. Update all callers.
9427 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
9428 all callers.
9429 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
9430 Update all callers.
9431 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
9432 print_fixed_point_type. Update all callers.
9433 * ada-valprint.c (ada_value_print_num): Replace call to
9434 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
9435
9436 2020-05-14 Kevin Buettner <kevinb@redhat.com>
9437
9438 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
9439 processors.
9440 (cpu_supports_bts): Add CV_AMD case.
9441
9442 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
9443 Simon Marchi <simon.marchi@efficios.com>
9444
9445 * infrun.c (stop_all_threads): Collect multiple wait events at
9446 each pass.
9447
9448 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9449
9450 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
9451 type::code instead.
9452
9453 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
9454
9455 * gdbtypes.h (struct type) <code, set_code>: New methods.
9456 (TYPE_CODE): Use type::code. Change all call sites used to set
9457 the code to use type::set_code instead.
9458
9459 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9460 Tom de Vries <tdevries@suse.de>
9461 Pedro Alves <palves@redhat.com>
9462
9463 PR threads/25478
9464 * infrun.c (stop_all_threads): Do NOT ignore
9465 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
9466 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
9467 received.
9468 (handle_no_resumed): Remove code handling a live inferior with no
9469 threads.
9470 * remote.c (has_single_non_exited_thread): New.
9471 (remote_target::update_thread_list): Do not delete a thread if is
9472 the last thread of the process.
9473 * thread.c (thread_select): Call delete_exited_threads instead of
9474 prune_threads.
9475
9476 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9477
9478 * infrun.c (stop_all_threads): Enable/disable thread events of all
9479 targets. Move a debug message denoting the end of the function
9480 into the SCOPED_EXIT block.
9481
9482 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9483
9484 * process-stratum-target.h: Include <set>.
9485 (all_non_exited_process_targets, switch_to_target_no_thread): New
9486 function declarations.
9487 * process-stratum-target.c (all_non_exited_process_targets)
9488 (switch_to_target_no_thread): New function implementations.
9489
9490 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9491
9492 * infrun.c (handle_inferior_event): Extract out a piece of code
9493 into...
9494 (mark_non_executing_threads): ...this new function.
9495
9496 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9497
9498 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
9499 use.
9500
9501 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9502
9503 * regcache.c (regcache_read_pc_protected): New function
9504 implementation that returns 0 if the PC cannot read via
9505 'regcache_read_pc'.
9506 * infrun.c (proceed): Call 'regcache_read_pc_protected'
9507 instead of 'regcache_read_pc'.
9508 (keep_going_pass_signal): Ditto.
9509
9510 2020-05-13 Tom Tromey <tromey@adacore.com>
9511
9512 * ada-lang.c (align_value): Remove.
9513 (ada_template_to_fixed_record_type_1): Use align_up.
9514
9515 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9516
9517 * async-event.c: Update the copyright year.
9518 * async-event.h: Update the copyright year.
9519
9520 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9521
9522 * objfiles.h (is_addr_in_objfile,
9523 shared_objfile_contains_address_p): Return bool.
9524 * objfile.c (is_addr_in_objfile,
9525 shared_objfile_contains_address_p): Return bool.
9526
9527 2020-05-11 Tom Tromey <tromey@adacore.com>
9528
9529 * cli/cli-cmds.c (info_command): Restore.
9530 (_initialize_cli_cmds): Use add_prefix_command for "info".
9531 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9532
9533 2020-05-11 Tom Tromey <tromey@adacore.com>
9534
9535 * ada-lang.c (ada_value_primitive_field): Now public.
9536 * ada-lang.h (ada_value_primitive_field): Declare.
9537 * ada-valprint.c (print_field_values): Use
9538 ada_value_primitive_field for wrapper fields.
9539
9540 2020-05-11 Tom de Vries <tdevries@suse.de>
9541
9542 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9543 MODULE_DOMAIN.
9544
9545 2020-05-11 Tom de Vries <tdevries@suse.de>
9546
9547 PR symtab/25941
9548 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9549 with length 0, if not gdb-produced.
9550 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9551
9552 2020-05-09 Tom de Vries <tdevries@suse.de>
9553
9554 PR gdb/25955
9555 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9556 calculation.
9557
9558 2020-05-09 Tom Tromey <tom@tromey.com>
9559
9560 * top.c (server_command): Now bool.
9561 * top.h (server_command): Now bool.
9562
9563 2020-05-08 Tom Tromey <tromey@adacore.com>
9564
9565 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9566 already being processed.
9567
9568 2020-05-08 Tom Tromey <tom@tromey.com>
9569
9570 * printcmd.c (struct display) <next>: Remove.
9571 <display>: New constructor.
9572 <exp_string>: Now a std::string.
9573 <enabled_p>: Now a bool.
9574 (display_number): Move definition earlier.
9575 (displays): Rename from display_chain. Now a std::vector.
9576 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9577 (display_command): Update.
9578 (do_one_display, disable_display)
9579 (enable_disable_display_command, do_enable_disable_display):
9580 Update.
9581 (free_display): Remove.
9582 (clear_displays): Rewrite.
9583 (delete_display): Update.
9584 (map_display_numbers): Use function_view. Remove "data"
9585 parameter. Update.
9586 (do_delete_display): Remove.
9587 (undisplay_command): Update.
9588 (do_one_display, do_displays, disable_display)
9589 (info_display_command): Update.
9590 (do_enable_disable_display): Remove.
9591 (enable_disable_display_command)
9592 (clear_dangling_display_expressions): Update.
9593
9594 2020-05-08 Tom Tromey <tom@tromey.com>
9595
9596 * symtab.c (set_symbol_cache_size)
9597 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9598 (maintenance_print_symbol_cache_statistics): Update.
9599 * symmisc.c (print_symbol_bcache_statistics)
9600 (print_objfile_statistics, maintenance_print_objfiles)
9601 (maintenance_info_symtabs, maintenance_check_symtabs)
9602 (maintenance_expand_symtabs, maintenance_info_line_tables):
9603 Update.
9604 * symfile-debug.c (set_debug_symfile): Update.
9605 * source.c (forget_cached_source_info): Update.
9606 * python/python.c (gdbpy_progspaces): Update.
9607 * psymtab.c (maintenance_info_psymtabs): Update.
9608 * probe.c (parse_probes): Update.
9609 * linespec.c (iterate_over_all_matching_symtabs)
9610 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9611 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9612 * exec.c (exec_target::close): Update.
9613 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9614 * breakpoint.c (print_one_breakpoint_location)
9615 (create_longjmp_master_breakpoint)
9616 (create_std_terminate_master_breakpoint): Update.
9617 * progspace.c (program_spaces): Now a std::vector.
9618 (maybe_new_address_space): Update.
9619 (add_program_space): Remove.
9620 (program_space::program_space): Update.
9621 (remove_program_space): Update.
9622 (number_of_program_spaces): Remove.
9623 (print_program_space, update_address_spaces): Update.
9624 * progspace.h (program_spaces): Change type.
9625 (ALL_PSPACES): Remove.
9626 (number_of_program_spaces): Don't declare.
9627 (struct program_space) <next>: Remove.
9628
9629 2020-05-08 Tom Tromey <tom@tromey.com>
9630
9631 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9632 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9633 (enable_break): Update.
9634 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9635 (frv_fdpic_find_canonical_descriptor): Update.
9636 (frv_fetch_objfile_link_map): Update.
9637 * progspace.c (program_space::free_all_objfiles): Update.
9638 (program_space::solibs): New method.
9639 * progspace.h (struct program_space) <solibs>: New method.
9640 * solist.h (master_so_list): Don't declare.
9641 (ALL_SO_LIBS): Remove.
9642 * solib.h (so_list_head): Remove.
9643 (update_solib_list): Update comment.
9644 * solib.c (master_so_list): Remove.
9645 (solib_used, update_solib_list, solib_add)
9646 (info_sharedlibrary_command, clear_solib)
9647 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9648
9649 2020-05-08 Tom Tromey <tom@tromey.com>
9650
9651 * extension.c (extension_languages): Now a std::array.
9652 (ALL_EXTENSION_LANGUAGES): Remove.
9653 (get_ext_lang_defn, get_ext_lang_of_file)
9654 (eval_ext_lang_from_control_command): Update.
9655 (finish_ext_lang_initialization)
9656 (auto_load_ext_lang_scripts_for_objfile)
9657 (ext_lang_type_printers::ext_lang_type_printers)
9658 (apply_ext_lang_type_printers)
9659 (ext_lang_type_printers::~ext_lang_type_printers)
9660 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9661 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9662 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9663 (get_matching_xmethod_workers, ext_lang_colorize)
9664 (ext_lang_before_prompt): Update.
9665 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9666
9667 2020-05-08 Tom Tromey <tom@tromey.com>
9668
9669 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9670 overload.
9671 <swap_string, m_string>: Remove.
9672 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9673 Update.
9674 * stabsread.c (define_symbol, read_type): Update.
9675 * linespec.c (find_linespec_symbols): Update.
9676 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9677 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9678 * dbxread.c (read_dbx_symtab): Update.
9679 * cp-support.h (cp_canonicalize_string_full)
9680 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9681 Return unique_xmalloc_ptr.
9682 * cp-support.c (inspect_type): Update.
9683 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9684 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9685 Likewise.
9686 * c-typeprint.c (print_name_maybe_canonical): Update.
9687 * break-catch-throw.c (check_status_exception_catchpoint):
9688 Update.
9689
9690 2020-05-08 Tom de Vries <tdevries@suse.de>
9691
9692 * infrun.c (follow_fork): Copy current_line and current_symtab to
9693 child thread.
9694
9695 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9696
9697 * async-event.c (struct async_signal_handler, struct
9698 async_event_handler): Reformat, remove typedef.
9699
9700 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9701
9702 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9703 access thistype->main_type->dyn_prop_list directly.
9704
9705 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9706
9707 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9708 (remove_dyn_prop): Remove. Update all users to use
9709 type::remove_dyn_prop.
9710 * gdbtypes.c (remove_dyn_prop): Rename to...
9711 (type::remove_dyn_prop): ... this.
9712
9713 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9714
9715 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9716 (add_dyn_prop): Remove. Update all users to use
9717 type::add_dyn_prop.
9718 * gdbtypes.c (add_dyn_prop): Rename to...
9719 (type::add_dyn_prop): ... this.
9720
9721 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9722
9723 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9724 (get_dyn_prop): Remove. Update all users to use
9725 type::dyn_prop.
9726 * gdbtypes.c (get_dyn_prop): Rename to...
9727 (type::dyn_prop): ... this.
9728
9729 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9730
9731 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9732
9733 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9734
9735 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9736 instruction, skip it if it's there.
9737
9738 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9739
9740 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9741
9742 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9743
9744 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9745 * gdbtypes.c (recursive_dump_type): Remove use of
9746 TYPE_INCOMPLETE.
9747
9748 2020-05-03 Tom Tromey <tom@tromey.com>
9749
9750 * breakpoint.c (catch_command, tcatch_command): Remove.
9751 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9752 add_show_prefix_cmd.
9753 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9754 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9755 Remove.
9756 (add_internal_problem_command): Use add_basic_prefix_cmd,
9757 add_show_prefix_cmd.
9758 * mips-tdep.c (set_mipsfpu_command): Remove.
9759 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9760 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9761 (_initialize_index_cache): Use add_basic_prefix_cmd.
9762 * memattr.c (dummy_cmd): Remove.
9763 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9764 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9765 (_initialize_tui_win): Use add_basic_prefix_cmd,
9766 add_show_prefix_cmd.
9767 * cli/cli-logging.c (set_logging_command): Remove.
9768 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9769 add_show_prefix_cmd.
9770 (show_logging_command): Remove.
9771 * target.c (target_command): Remove.
9772 (add_target): Use add_basic_prefix_cmd.
9773
9774 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9775
9776 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9777
9778 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9779
9780 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9781 info_command.
9782
9783 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9784
9785 * nbsd-nat.c (nbsd_enable_proc_events)
9786 (nbsd_nat_target::post_startup_inferior): Add.
9787 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9788 (nbsd_nat_target::update_thread_list): Rewrite.
9789 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9790 "PTRACE_LWP_CREATE".
9791 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9792
9793 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9794
9795 * stack.c (_initialize_stack): Remove duplicated creation
9796 of "frame" command and "f" alias.
9797
9798 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9799
9800 PR gdb/18706
9801 * gdbtypes.c (check_typedef): Calculate size of array of
9802 stubbed type.
9803
9804 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9805
9806 PR gdb/15559
9807 * i386-tdep.c (i386_push_dummy_call): Call
9808 i386_thiscall_push_dummy_call.
9809 (i386_thiscall_push_dummy_call): New function.
9810 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9811 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9812 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9813
9814 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * gdbarch.sh (do_read): Add shellcheck disable directive for
9817 warning SC2162.
9818
9819 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9820
9821 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9822 "referenced but not assigned" warning.
9823
9824 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9825
9826 * gdbarch.sh: Remove code that sets fallbackdefault.
9827
9828 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9829
9830 * gdbarch.sh: Use shell operators && and || instead of
9831 -a and -o.
9832
9833 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9834
9835 * gdbarch.sh: Use $(...) instead of `...`.
9836
9837 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9838
9839 * gdbarch.sh: Use double quotes around variables.
9840
9841 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9842
9843 * gdbarch.sh: Use %s with printf, instead of variables in the
9844 format string.
9845
9846 2020-04-29 Tom Tromey <tromey@adacore.com>
9847
9848 PR ada/25875:
9849 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9850 type fields here.
9851 (read_enumeration_type): Call
9852 update_enumeration_type_from_children later. Update comments.
9853 (process_enumeration_scope): Don't create type fields.
9854
9855 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9856
9857 * nbsd-tdep.c: Include "xml-syscall.h".
9858 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9859
9860 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9861
9862 * nbsd-nat.c: Include "sys/wait.h".
9863 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9864 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9865 (nbsd_nat_target::remove_exec_catchpoint)
9866 (nbsd_nat_target::set_syscall_catchpoint): Add.
9867 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9868 (nbsd_nat_target::insert_exec_catchpoint)
9869 (nbsd_nat_target::remove_exec_catchpoint)
9870 (nbsd_nat_target::set_syscall_catchpoint): Add.
9871 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9872 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9873 `nbsd_get_syscall_number'.
9874
9875 2020-04-29 Tom Tromey <tom@tromey.com>
9876
9877 * stack.c (print_block_frame_labels): Remove.
9878
9879 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9880
9881 PR gdb/17320
9882 * ada-valprint.c (val_print_packed_array_elements): Move array
9883 end bracket to new line.
9884 (ada_val_print_string): Remove extra spaces before first array
9885 element.
9886 * c-valprint.c (c_value_print_array): Likewise.
9887 * m2-valprint.c (m2_print_array_contents): Likewise.
9888 (m2_value_print_inner): Likewise.
9889 * p-valprint.c (pascal_value_print_inner): Likewise.
9890 * valprint.c (generic_val_print_array): Likewise.
9891 (value_print_array_elements): Move first array element and array
9892 end bracket to new line.
9893
9894 2020-04-29 Tom de Vries <tdevries@suse.de>
9895
9896 PR symtab/25889
9897 * linespec.c (find_method): Fix ix calculation.
9898
9899 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9900
9901 * syscalls/update-netbsd.sh: New file.
9902 * syscalls/netbsd.xml: Regenerate.
9903 * data-directory/Makefile.in: Register `netbsd.xml' in
9904 `SYSCALLS_FILES'.
9905
9906 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9907
9908 * syscalls/update-freebsd.sh: Add double quotes.
9909
9910 2020-04-28 Tom Tromey <tom@tromey.com>
9911
9912 * NEWS: Update.
9913 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9914 (cmdpy_init): Allow class_tui.
9915
9916 2020-04-28 Mark Williams <mark@myosotissp.com>
9917
9918 PR gdb/24480
9919 * dwarf2read.c: Add missing assingments to list_in_scope when
9920 start_symtab was already called.
9921
9922 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9923
9924 PR gdb/25881
9925 * dwarf2/read.c (offset_map_type): Use
9926 gdb:hash_enum<sect_offset> as hash function.
9927
9928 2020-04-28 Tom de Vries <tdevries@suse.de>
9929
9930 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9931 with DW_AT_signature.
9932
9933 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9934
9935 * configure.ac: Remove check for fs_base/gs_base in
9936 user_regs_struct.
9937 * configure: Re-generate.
9938 * config.in: Re-generate.
9939 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9940 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9941 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9942
9943 2020-04-27 Luis Machado <luis.machado@linaro.org>
9944
9945 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9946 problematic inline frame unwinding situation.
9947 * frame.c (frame_id_computed_p): New function.
9948 * frame.h (frame_id_computed_p): New prototype.
9949
9950 2020-04-26 Tom Tromey <tom@tromey.com>
9951
9952 * command.h (enum command_class) <class_pseudo>: Remove.
9953
9954 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9955
9956 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9957 and whitespace.
9958
9959 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9960
9961 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9962 `PT_GET_PROCESS_STATE' block.
9963
9964 2020-04-24 Tom Tromey <tom@tromey.com>
9965
9966 * symtab.h (symbol_get_demangled_name): Don't declare.
9967 * symtab.c (symbol_get_demangled_name): Remove.
9968 (general_symbol_info::natural_name)
9969 (general_symbol_info::demangled_name): Update.
9970
9971 2020-04-24 Tom Tromey <tom@tromey.com>
9972
9973 PR rust/25025:
9974 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9975
9976 2020-04-24 Tom Tromey <tom@tromey.com>
9977
9978 PR symtab/12707:
9979 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9980 exists.
9981 (new_symbol): Likewise.
9982 * compile/compile-object-load.c (get_out_value_type): Use
9983 symbol_matches_search_name.
9984
9985 2020-04-24 Tom Tromey <tom@tromey.com>
9986
9987 * dwarf2/read.c (add_partial_symbol): Do not call
9988 compute_and_set_names.
9989
9990 2020-04-24 Tom Tromey <tom@tromey.com>
9991
9992 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9993 overload.
9994
9995 2020-04-24 Tom Tromey <tom@tromey.com>
9996
9997 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9998 (add_psymbol_to_list): New overload. Make old overload call new
9999 one.
10000 * psympriv.h (add_psymbol_to_list): New overload.
10001
10002 2020-04-24 Tom Tromey <tom@tromey.com>
10003
10004 * dwarf2/read.c (partial_die_info::read) <case
10005 DW_AT_linkage_name>: Use value_as_string.
10006 (dwarf2_string_attr): Use value_as_string.
10007 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10008 method.
10009 * dwarf2/attribute.c (attribute::value_as_string): New method.
10010
10011 2020-04-24 Tom Tromey <tom@tromey.com>
10012
10013 * symtab.c (general_symbol_info::natural_name)
10014 (general_symbol_info::demangled_name): Check for language_rust.
10015
10016 2020-04-24 Tom Tromey <tom@tromey.com>
10017
10018 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10019 (dwarf2_physname): ... from here.
10020 (partial_die_info::read): Add Rust "{" hack.
10021
10022 2020-04-24 Tom Tromey <tom@tromey.com>
10023
10024 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10025 method.
10026 (symbol_set_demangled_name): Don't declare.
10027 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10028 symbol_set_demangled_name.
10029 (general_symbol_info::set_language)
10030 (general_symbol_info::compute_and_set_names): Update.
10031 * minsyms.c (minimal_symbol_reader::install): Update.
10032 * dwarf2/read.c (new_symbol): Update.
10033
10034 2020-04-24 Tom Tromey <tromey@adacore.com>
10035
10036 PR python/23662:
10037 * python/py-type.c (convert_field): Handle
10038 FIELD_LOC_KIND_DWARF_BLOCK.
10039 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10040 (typy_get_dynamic): Nw function.
10041 (type_object_getset): Add "dynamic".
10042 * NEWS: Add entry.
10043
10044 2020-04-24 Tom Tromey <tromey@adacore.com>
10045
10046 * ada-typeprint.c (print_choices, print_variant_part)
10047 (print_record_field_types_dynamic): New functions.
10048 (print_record_field_types): Use print_record_field_types_dynamic.
10049
10050 2020-04-24 Tom Tromey <tromey@adacore.com>
10051
10052 * dwarf2/read.c (handle_data_member_location): New overload.
10053 (dwarf2_add_field): Use it.
10054 (decode_locdesc): Add "computed" parameter. Update comment.
10055 * gdbtypes.c (is_dynamic_type_internal): Also look for
10056 FIELD_LOC_KIND_DWARF_BLOCK.
10057 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10058 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10059 virtual base classes.
10060 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10061 FIELD_LOC_KIND_DWARF_BLOCK.
10062
10063 2020-04-24 Tom Tromey <tromey@adacore.com>
10064
10065 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10066 * gdbtypes.c (is_dynamic_type_internal): Check
10067 TYPE_HAS_DYNAMIC_LENGTH.
10068 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10069 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10070 New macros.
10071 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10072 constant.
10073
10074 2020-04-24 Tom Tromey <tromey@adacore.com>
10075
10076 * dwarf2/read.c (struct variant_field): Rewrite.
10077 (struct variant_part_builder): New.
10078 (struct nextfield): Remove "variant" field. Add "offset".
10079 (struct field_info): Add "current_variant_part" and
10080 "variant_parts".
10081 (alloc_discriminant_info): Remove.
10082 (alloc_rust_variant): New function.
10083 (quirk_rust_enum): Update.
10084 (dwarf2_add_field): Set "offset" member. Don't handle
10085 DW_TAG_variant_part.
10086 (offset_map_type): New typedef.
10087 (convert_variant_range, create_one_variant)
10088 (create_one_variant_part, create_variant_parts)
10089 (add_variant_property): New functions.
10090 (dwarf2_attach_fields_to_type): Call add_variant_property.
10091 (read_structure_type): Don't handle DW_TAG_variant_part.
10092 (handle_variant_part, handle_variant): New functions.
10093 (handle_struct_member_die): Use them.
10094 (process_structure_scope): Don't handle variant parts.
10095 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10096 (struct discriminant_info): Remove.
10097 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10098 (struct main_type) <flag_discriminated_union>: Remove.
10099 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10100 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10101 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10102 Update.
10103 * valops.c (value_union_variant): Remove.
10104 * value.h (value_union_variant): Don't declare.
10105
10106 2020-04-24 Tom Tromey <tromey@adacore.com>
10107
10108 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10109 (ada_value_primitive_packed_val): Update.
10110 * ada-valprint.c (ada_value_print_1): Update.
10111 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10112 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10113 just an address. Use evaluate_for_locexpr_baton.
10114 (dwarf2_evaluate_property): Update.
10115 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10116 array_view.
10117 * findvar.c (default_read_var_value): Update.
10118 * gdbtypes.c (compute_variant_fields_inner)
10119 (resolve_dynamic_type_internal): Update.
10120 (resolve_dynamic_type): Change type of valaddr parameter.
10121 * gdbtypes.h (resolve_dynamic_type): Update.
10122 * valarith.c (value_subscripted_rvalue): Update.
10123 * value.c (value_from_contents_and_address): Update.
10124
10125 2020-04-24 Tom Tromey <tromey@adacore.com>
10126
10127 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10128 "push_initial_value" parameter.
10129 (dwarf2_evaluate_property): Likewise.
10130 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10131
10132 2020-04-24 Tom Tromey <tromey@adacore.com>
10133
10134 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10135 (variant::matches, compute_variant_fields_recurse)
10136 (compute_variant_fields_inner, compute_variant_fields): New
10137 functions.
10138 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10139 Use resolved_type after type is made.
10140 (operator==): Add new cases.
10141 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10142 (struct discriminant_range, struct variant, struct variant_part):
10143 New.
10144 (union dynamic_prop_data) <variant_parts, original_type>: New
10145 members.
10146 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10147 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10148 constants.
10149 * value.c (unpack_bits_as_long): Now public.
10150 * value.h (unpack_bits_as_long): Declare.
10151
10152 2020-04-24 Tom Tromey <tromey@adacore.com>
10153
10154 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10155 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10156
10157 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
10158
10159 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10160
10161 2020-04-24 Kamil Rytarowski <n54@gmx.com>
10162
10163 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10164 (remove_fork_catchpoint, post_startup_inferior)
10165 (post_attach): Move...
10166 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10167 (remove_fork_catchpoint, post_startup_inferior)
10168 (post_attach): ...here.
10169 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10170 (remove_fork_catchpoint, post_startup_inferior)
10171 (post_attach): Move...
10172 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10173 (remove_fork_catchpoint, post_startup_inferior)
10174 (post_attach): ...here.
10175
10176 2020-04-24 Tom Tromey <tromey@adacore.com>
10177
10178 * nat/windows-nat.h (struct windows_thread_info)
10179 <pc_adjusted>: New member.
10180 * windows-nat.c (windows_fetch_one_register): Check
10181 pc_adjusted.
10182 (windows_nat_target::get_windows_debug_event)
10183 (windows_nat_target::wait): Set pc_adjusted.
10184
10185 2020-04-24 Tom de Vries <tdevries@suse.de>
10186
10187 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10188 Run gdb-add-index inside temp dir.
10189
10190 2020-04-23 Tom Tromey <tromey@adacore.com>
10191
10192 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10193 in loop.
10194
10195 2020-04-23 Luis Machado <luis.machado@linaro.org>
10196
10197 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10198 get_frame_register instead of gdbarch_unwind_pc.
10199
10200 2020-04-23 Tom de Vries <tdevries@suse.de>
10201
10202 * symtab.c (lookup_global_symbol): Prefer def over decl.
10203
10204 2020-04-23 Tom de Vries <tdevries@suse.de>
10205
10206 PR symtab/25807
10207 * block.c (best_symbol, better_symbol): Promote to external.
10208 * block.h (best_symbol, better_symbol): Declare.
10209 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10210 decl.
10211
10212 2020-04-23 Tom Tromey <tromey@adacore.com>
10213
10214 PR ada/25837:
10215 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10216 "const char *", not a "const std::string &".
10217 <name_and_matcher::operator==>: Update.
10218 * unittests/lookup_name_info-selftests.c: Change type of
10219 "result".
10220
10221 2020-04-23 Tom Tromey <tom@tromey.com>
10222
10223 * inferior.h (iterate_over_inferiors): Don't declare.
10224 * inferior.c (iterate_over_inferiors): Remove.
10225 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10226 Remove.
10227 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10228 use iterate_over_inferiors.
10229 (darwin_resume_inferior_it)
10230 (struct resume_inferior_threads_param)
10231 (darwin_resume_inferior_threads_it): Remove.
10232 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10233
10234 2020-04-23 Tom de Vries <tdevries@suse.de>
10235
10236 * blockframe.c (find_pc_partial_function): Use
10237 find_pc_sect_compunit_symtab rather than
10238 objfile->sf->qf->find_pc_sect_compunit_symtab.
10239
10240 2020-04-22 Tom de Vries <tdevries@suse.de>
10241
10242 PR symtab/25764
10243 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10244 in psymtabs.
10245
10246 2020-04-22 Tom de Vries <tdevries@suse.de>
10247
10248 PR symtab/25801
10249 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10250 symtabs.
10251
10252 2020-04-22 Tom de Vries <tdevries@suse.de>
10253
10254 PR symtab/25700
10255 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10256 CU if already created.
10257
10258 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10259
10260 * infrun.c (displaced_step_fixup): Switch to the event_thread
10261 before calling displaced_step_restore, not after.
10262
10263 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10264
10265 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10266 its inferior is not recorded by us.
10267 (record_btrace_target_open): Replace call to
10268 all_non_exited_threads () with call to current_inferior
10269 ()->non_exited_threads ().
10270 (record_btrace_target::stop_recording): Likewise.
10271 (record_btrace_target::close): Likewise.
10272 (record_btrace_target::wait): Likewise.
10273 (record_btrace_target::record_stop_replaying): Likewise.
10274
10275 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10276
10277 * btrace.c (btrace_enable): Throw an error on double enables and
10278 when enabling recording fails.
10279 (btrace_disable): Throw an error if the thread is not recorded.
10280
10281 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10282
10283 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10284 request if we do not have a thread_info.
10285
10286 2020-04-21 Tom de Vries <tdevries@suse.de>
10287
10288 PR gdb/25471
10289 * thread.c
10290 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10291 exception in get_frame_id.
10292
10293 2020-04-20 Tom Tromey <tromey@adacore.com>
10294
10295 * python/python.c (struct gdbpy_event): Mark move constructor as
10296 noexcept.
10297 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10298 constructor as noexcept.
10299 * completer.h (struct completion_result): Mark move constructor as
10300 noexcept.
10301 * completer.c (completion_result::completion_result): Use
10302 initialization style. Don't call reset_match_list.
10303
10304 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10305
10306 * MAINTAINERS (Write After Approval): Add myself.
10307
10308 2020-04-18 Tom Tromey <tom@tromey.com>
10309
10310 * windows-tdep.c (init_w32_command_list)
10311 (w32_prefix_command_valid): Restore.
10312 (_initialize_windows_tdep): Call init_w32_command_list.
10313
10314 2020-04-18 Tom Tromey <tom@tromey.com>
10315
10316 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10317 * value.c (value_fn_field): Update.
10318 * valops.c (find_function_in_inferior)
10319 (value_allocate_space_in_inferior): Update.
10320 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10321 Update.
10322 * tui/tui-source.c (tui_source_window::set_contents): Update.
10323 * symtab.c (lookup_global_or_static_symbol)
10324 (find_function_start_sal_1, skip_prologue_sal)
10325 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10326 * symmisc.c (dump_msymbols, dump_symtab_1)
10327 (maintenance_print_one_line_table): Update.
10328 * symfile.c (init_entry_point_info, section_is_mapped)
10329 (list_overlays_command, simple_read_overlay_table)
10330 (simple_overlay_update_1): Update.
10331 * stap-probe.c (handle_stap_probe): Update.
10332 * stabsread.c (dbx_init_float_type, define_symbol)
10333 (read_one_struct_field, read_enum_type, read_range_type): Update.
10334 * source.c (info_line_command): Update.
10335 * python/python.c (gdbpy_source_objfile_script)
10336 (gdbpy_execute_objfile_script): Update.
10337 * python/py-type.c (save_objfile_types): Update.
10338 * python/py-objfile.c (py_free_objfile): Update.
10339 * python/py-inferior.c (python_new_objfile): Update.
10340 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10341 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10342 (maintenance_check_psymtabs): Update.
10343 * printcmd.c (info_address_command): Update.
10344 * objfiles.h (struct objfile) <arch>: New method, from
10345 get_objfile_arch.
10346 (get_objfile_arch): Don't declare.
10347 * objfiles.c (get_objfile_arch): Remove.
10348 (filter_overlapping_sections): Update.
10349 * minsyms.c (msymbol_is_function): Update.
10350 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10351 (output_nondebug_symbol): Update.
10352 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10353 (mdebug_expand_psymtab): Update.
10354 * machoread.c (macho_add_oso_symfile): Update.
10355 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10356 Update.
10357 * linux-fork.c (checkpoint_command): Update.
10358 * linespec.c (convert_linespec_to_sals): Update.
10359 * jit.c (finalize_symtab): Update.
10360 * infrun.c (insert_exception_resume_from_probe): Update.
10361 * ia64-tdep.c (ia64_find_unwind_table): Update.
10362 * hppa-tdep.c (internalize_unwinds): Update.
10363 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10364 Update.
10365 * gcore.c (call_target_sbrk): Update.
10366 * elfread.c (record_minimal_symbol, elf_symtab_read)
10367 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10368 (elf_gnu_ifunc_resolve_by_got): Update.
10369 * dwarf2/read.c (create_addrmap_from_index)
10370 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10371 (read_debug_names_from_section)
10372 (process_psymtab_comp_unit_reader, add_partial_symbol)
10373 (add_partial_subprogram, process_full_comp_unit)
10374 (read_file_scope, read_func_scope, read_lexical_block_scope)
10375 (read_call_site_scope, dwarf2_ranges_read)
10376 (dwarf2_record_block_ranges, dwarf2_add_field)
10377 (mark_common_block_symbol_computed, read_tag_pointer_type)
10378 (read_tag_string_type, dwarf2_init_float_type)
10379 (dwarf2_init_complex_target_type, read_base_type)
10380 (partial_die_info::read, partial_die_info::read)
10381 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10382 (dwarf2_fetch_die_loc_sect_off): Update.
10383 * dwarf2/loc.c (dwarf2_find_location_expression)
10384 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10385 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10386 (dwarf2_loc_desc_get_symbol_read_needs)
10387 (locexpr_describe_location_piece, locexpr_describe_location_1)
10388 (loclist_describe_location): Update.
10389 * dwarf2/index-write.c (write_debug_names): Update.
10390 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10391 * dtrace-probe.c (dtrace_process_dof): Update.
10392 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10393 (process_one_symbol): Update.
10394 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10395 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10396 (coff_read_enum_type): Update.
10397 * cli/cli-cmds.c (edit_command, list_command): Update.
10398 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10399 * breakpoint.c (create_overlay_event_breakpoint)
10400 (create_longjmp_master_breakpoint)
10401 (create_std_terminate_master_breakpoint)
10402 (create_exception_master_breakpoint, get_sal_arch): Update.
10403 * block.c (block_gdbarch): Update.
10404 * annotate.c (annotate_source_line): Update.
10405
10406 2020-04-17 Tom Tromey <tromey@adacore.com>
10407
10408 * auto-load.c (show_auto_load_cmd): Remove.
10409 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10410 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10411 (maintenance_print_arc_command): Remove.
10412 * tui/tui-win.c (tui_command): Remove.
10413 (tui_get_cmd_list): Use add_basic_prefix_cmd.
10414 * tui/tui-layout.c (tui_layout_command): Remove.
10415 (_initialize_tui_layout): Use add_basic_prefix_cmd.
10416 * python/python.c (user_set_python, user_show_python): Remove.
10417 (_initialize_python): Use add_basic_prefix_cmd,
10418 add_show_prefix_cmd.
10419 * guile/guile.c (set_guile_command, show_guile_command): Remove.
10420 (install_gdb_commands): Use add_basic_prefix_cmd,
10421 add_show_prefix_cmd.
10422 (info_guile_command): Remove.
10423 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
10424 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
10425 add_show_prefix_cmd.
10426 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
10427 Remove do_set and do_show parameters.
10428 * cli/cli-style.c (set_style, show_style): Remove.
10429 (_initialize_cli_style): Use add_basic_prefix_cmd,
10430 add_show_prefix_cmd.
10431 (cli_style_option::add_setshow_commands): Remove do_set and
10432 do_show parameters.
10433 (cli_style_option::add_setshow_commands): Use
10434 add_basic_prefix_cmd, add_show_prefix_cmd.
10435 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
10436 (set_style_name): Remove.
10437 * cli/cli-dump.c (dump_command, append_command): Remove.
10438 (srec_dump_command, ihex_dump_command, verilog_dump_command)
10439 (tekhex_dump_command, binary_dump_command)
10440 (binary_append_command): Remove.
10441 (_initialize_cli_dump): Use add_basic_prefix_cmd.
10442 * windows-tdep.c (w32_prefix_command_valid): Remove global.
10443 (init_w32_command_list): Remove; move into ...
10444 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
10445 * valprint.c (set_print, show_print, set_print_raw)
10446 (show_print_raw): Remove.
10447 (_initialize_valprint): Use add_basic_prefix_cmd,
10448 add_show_prefix_cmd.
10449 * typeprint.c (set_print_type, show_print_type): Remove.
10450 (_initialize_typeprint): Use add_basic_prefix_cmd,
10451 add_show_prefix_cmd.
10452 * record.c (set_record_command, show_record_command): Remove.
10453 (_initialize_record): Use add_basic_prefix_cmd,
10454 add_show_prefix_cmd.
10455 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
10456 add_show_prefix_cmd.
10457 (info_command, show_command, set_debug, show_debug): Remove.
10458 * top.h (set_history, show_history): Don't declare.
10459 * top.c (set_history, show_history): Remove.
10460 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
10461 (unset_tdesc_cmd): Remove.
10462 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
10463 add_show_prefix_cmd.
10464 * symtab.c (info_module_command): Remove.
10465 (_initialize_symtab): Use add_basic_prefix_cmd.
10466 * symfile.c (overlay_command): Remove.
10467 (_initialize_symfile): Use add_basic_prefix_cmd.
10468 * sparc64-tdep.c (info_adi_command): Remove.
10469 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
10470 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
10471 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
10472 add_show_prefix_cmd.
10473 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
10474 (_initialize_serial): Use add_basic_prefix_cmd,
10475 add_show_prefix_cmd.
10476 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
10477 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
10478 add_show_prefix_cmd.
10479 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
10480 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
10481 add_show_prefix_cmd.
10482 * riscv-tdep.c (show_riscv_command, set_riscv_command)
10483 (show_debug_riscv_command, set_debug_riscv_command): Remove.
10484 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
10485 add_show_prefix_cmd.
10486 * remote.c (remote_command, set_remote_cmd): Remove.
10487 (_initialize_remote): Use add_basic_prefix_cmd.
10488 * record-full.c (set_record_full_command)
10489 (show_record_full_command): Remove.
10490 (_initialize_record_full): Use add_basic_prefix_cmd,
10491 add_show_prefix_cmd.
10492 * record-btrace.c (cmd_set_record_btrace)
10493 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
10494 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
10495 (cmd_show_record_btrace_pt): Remove.
10496 (_initialize_record_btrace): Use add_basic_prefix_cmd,
10497 add_show_prefix_cmd.
10498 * ravenscar-thread.c (set_ravenscar_command)
10499 (show_ravenscar_command): Remove.
10500 (_initialize_ravenscar): Use add_basic_prefix_cmd,
10501 add_show_prefix_cmd.
10502 * mips-tdep.c (show_mips_command, set_mips_command)
10503 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
10504 add_show_prefix_cmd.
10505 * maint.c (maintenance_command, maintenance_info_command)
10506 (maintenance_check_command, maintenance_print_command)
10507 (maintenance_set_cmd, maintenance_show_cmd): Remove.
10508 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
10509 add_show_prefix_cmd.
10510 (show_per_command_cmd): Remove.
10511 * maint-test-settings.c (maintenance_set_test_settings_cmd):
10512 Remove.
10513 (maintenance_show_test_settings_cmd): Remove.
10514 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
10515 add_show_prefix_cmd.
10516 * maint-test-options.c (maintenance_test_options_command):
10517 Remove.
10518 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
10519 * macrocmd.c (macro_command): Remove
10520 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10521 * language.c (set_check, show_check): Remove.
10522 (_initialize_language): Use add_basic_prefix_cmd,
10523 add_show_prefix_cmd.
10524 * infcmd.c (unset_command): Remove.
10525 (_initialize_infcmd): Use add_basic_prefix_cmd.
10526 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10527 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10528 add_show_prefix_cmd.
10529 * go32-nat.c (go32_info_dos_command): Remove.
10530 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10531 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10532 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10533 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10534 (_initialize_frame): Use add_basic_prefix_cmd,
10535 add_show_prefix_cmd.
10536 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10537 (_initialize_dcache): Use add_basic_prefix_cmd,
10538 add_show_prefix_cmd.
10539 * cp-support.c (maint_cplus_command): Remove.
10540 (_initialize_cp_support): Use add_basic_prefix_cmd.
10541 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10542 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10543 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10544 add_basic_prefix_cmd, add_show_prefix_cmd.
10545 * breakpoint.c (save_command): Remove.
10546 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10547 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10548 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10549 add_show_prefix_cmd.
10550 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10551 (set_ada_command, show_ada_command): Remove.
10552 (_initialize_ada_language): Use add_basic_prefix_cmd,
10553 add_show_prefix_cmd.
10554 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10555
10556 2020-04-16 Kamil Rytarowski <n54@gmx.com>
10557
10558 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10559 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10560
10561 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10562
10563 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10564 warning messages.
10565
10566 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10567
10568 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10569 import table is not at beginning of .idata section.
10570
10571 2020-04-16 Pedro Alves <palves@redhat.com>
10572
10573 * inferior.c (delete_inferior): Use delete operator directly
10574 instead of delete_program_space.
10575 * progspace.c (add_program_space): New, factored out from
10576 program_space::program_space.
10577 (remove_program_space): New, factored out from
10578 delete_program_space.
10579 (program_space::program_space): Remove intro comment. Rewrite.
10580 (program_space::~program_space): Remove intro comment. Call
10581 remove_program_space.
10582 (delete_program_space): Delete.
10583 * progspace.h (program_space::program_space): Make explicit. Move
10584 intro comment here, adjusted.
10585 (program_space::~program_space): Move intro comment here,
10586 adjusted.
10587 (delete_program_space): Remove.
10588
10589 2020-04-16 Tom Tromey <tromey@adacore.com>
10590
10591 * windows-nat.c (windows_nat::handle_access_violation): New
10592 function.
10593 * nat/windows-nat.h (handle_access_violation): Declare.
10594 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10595 windows-nat.c. Call handle_access_violation.
10596
10597 2020-04-16 Tom de Vries <tdevries@suse.de>
10598
10599 PR symtab/25791
10600 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10601 CUs without psymtab.
10602
10603 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10604
10605 * python/python.c (do_start_initialization): Don't call
10606 PyEval_InitThreads for Python 3.9 and beyond.
10607
10608 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10609
10610 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10611 thread functions.
10612 (obsd_nat_target::wait): Likewise.
10613
10614 2020-04-15 Tom Tromey <tromey@adacore.com>
10615
10616 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10617 (DEBUG_EXCEPT): Use debug_printf.
10618
10619 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10620
10621 * completer.c (class completion_tracker::completion_hash_entry)
10622 <hash_name>: New member function.
10623 (completion_tracker::discard_completions): New callback to hash a
10624 completion_hash_entry, pass this to htab_create_alloc.
10625
10626 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10627
10628 * windows-nat.c (windows_make_so): Warn rather than stopping with
10629 an error if realpath() fails.
10630
10631 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10632
10633 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10634 (nbsd_nat_target::info_proc): Add do_status.
10635
10636 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10637 Tom de Vries <tdevries@suse.de>
10638
10639 PR symtab/25718
10640 * psympriv.h (struct partial_symtab::read_symtab)
10641 (struct partial_symtab::expand_psymtab)
10642 (struct partial_symtab::read_dependencies): Update comments.
10643 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10644 read_symtab for includer.
10645 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10646 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10647 (struct dwarf2_include_psymtab::m_readin): Remove.
10648 (struct dwarf2_include_psymtab::includer): New member function.
10649 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10650
10651 2020-04-14 Tom de Vries <tdevries@suse.de>
10652
10653 PR symtab/25720
10654 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10655 with NULL symbol_matcher and lookup_name.
10656 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10657 and lookup_name.
10658 * dwarf2/read.c (dw2_expand_symtabs_matching)
10659 (dw2_debug_names_expand_symtabs_matching): Same.
10660 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10661 Make lookup_name a pointer. Update comment.
10662 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10663 lookup_name being a pointer.
10664 * symfile.c (expand_symtabs_matching): Same.
10665 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10666 * linespec.c (iterate_over_all_matching_symtabs): Same.
10667
10668 2020-04-13 Tom Tromey <tom@tromey.com>
10669
10670 * run-on-main-thread.c: Update include.
10671 * unittests/main-thread-selftests.c: Update include.
10672 * tui/tui-win.c: Update include.
10673 * tui/tui-io.c: Update include.
10674 * tui/tui-interp.c: Update include.
10675 * tui/tui-hooks.c: Update include.
10676 * top.h: Update include.
10677 * top.c: Update include.
10678 * ser-base.c: Update include.
10679 * remote.c: Update include.
10680 * remote-notif.c: Update include.
10681 * remote-fileio.c: Update include.
10682 * record-full.c: Update include.
10683 * record-btrace.c: Update include.
10684 * python/python.c: Update include.
10685 * posix-hdep.c: Update include.
10686 * mingw-hdep.c: Update include.
10687 * mi/mi-main.c: Update include.
10688 * mi/mi-interp.c: Update include.
10689 * main.c: Update include.
10690 * linux-nat.c: Update include.
10691 * interps.c: Update include.
10692 * infrun.c: Update include.
10693 * inf-loop.c: Update include.
10694 * event-top.c: Update include.
10695 * event-loop.c: Move to ../gdbsupport/.
10696 * event-loop.h: Move to ../gdbsupport/.
10697 * async-event.h: Update include.
10698 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10699
10700 2020-04-13 Tom Tromey <tom@tromey.com>
10701
10702 * tui/tui-win.c: Include async-event.h.
10703 * remote.c: Include async-event.h.
10704 * remote-notif.c: Include async-event.h.
10705 * record-full.c: Include async-event.h.
10706 * record-btrace.c: Include async-event.h.
10707 * infrun.c: Include async-event.h.
10708 * event-top.c: Include async-event.h.
10709 * event-loop.h: Move some declarations to async-event.h.
10710 * event-loop.c: Don't include ser-event.h or top.h. Move some
10711 code to async-event.c.
10712 * async-event.h: New file.
10713 * async-event.c: New file.
10714 * Makefile.in (COMMON_SFILES): Add async-event.c.
10715 (HFILES_NO_SRCDIR): Add async-event.h.
10716
10717 2020-04-13 Tom Tromey <tom@tromey.com>
10718
10719 * utils.c (flush_streams): New function.
10720 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10721
10722 2020-04-13 Tom Tromey <tom@tromey.com>
10723
10724 * event-loop.c (handle_file_event): Use warning, not
10725 printf_unfiltered.
10726
10727 2020-04-13 Tom Tromey <tom@tromey.com>
10728
10729 * event-loop.c: Include <chrono>.
10730
10731 2020-04-13 Tom Tromey <tom@tromey.com>
10732
10733 * gdb_select.h: Move to ../gdbsupport/.
10734 * event-loop.c: Update include path.
10735 * top.c: Update include path.
10736 * ser-base.c: Update include path.
10737 * ui-file.c: Update include path.
10738 * ser-tcp.c: Update include path.
10739 * guile/scm-ports.c: Update include path.
10740 * posix-hdep.c: Update include path.
10741 * ser-unix.c: Update include path.
10742 * gdb_usleep.c: Update include path.
10743 * mingw-hdep.c: Update include path.
10744 * inflow.c: Update include path.
10745 * infrun.c: Update include path.
10746 * event-top.c: Update include path.
10747
10748 2020-04-13 Tom Tromey <tom@tromey.com>
10749
10750 * configure: Rebuild.
10751 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10752
10753 2020-04-13 Tom Tromey <tom@tromey.com>
10754
10755 * event-loop.h (start_event_loop): Don't declare.
10756 * event-loop.c (start_event_loop): Move...
10757 * main.c (start_event_loop): ...here. Now static.
10758
10759 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10760
10761 * MAINTAINERS: Update my email address.
10762
10763 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10764
10765 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10766 IP_ALL.
10767
10768 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10769
10770 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10771 (nbsd_nat_target::info_proc): Add do_cmdline.
10772
10773 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10774
10775 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10776 (nbsd_nat_target::info_proc): Add do_cwd.
10777
10778 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10779
10780 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10781
10782 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10783
10784 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10785 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10786 (nbsd_nat_target::info_proc): New functions.
10787 * nbsd-nat.c (kinfo_get_vmmap): New function.
10788 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10789 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10790 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10791 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10792 functions.
10793 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10794 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10795 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10796 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10797 (KINFO_VME_FLAG_GROWS_DOWN): New.
10798
10799 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10800
10801 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10802 bit shift.
10803
10804 2020-04-10 Tom Tromey <tromey@adacore.com>
10805
10806 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10807
10808 2020-04-10 Tom Tromey <tromey@adacore.com>
10809
10810 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10811 separate debug files.
10812
10813 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10814
10815 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10816 Move to...
10817 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10818 ... here.
10819 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10820 Check for STATUS_WX86_BREAKPOINT.
10821 (windows_nat_target::wait): Same.
10822
10823 2020-04-10 Tom de Vries <tdevries@suse.de>
10824
10825 PR cli/25808
10826 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10827
10828 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10829
10830 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10831 (Write After Approval): Remove Tom de Vries.
10832
10833 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10834
10835 revert partially:
10836 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10837
10838 * buildsym.c (record_line): Fix undefined behavior and preserve
10839 lines at eof.
10840
10841 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10842
10843 * auxv.h (svr4_auxv_parse): New.
10844 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10845 and generic_auxv_parse.
10846 (svr4_auxv_parse): Add.
10847 * obsd-tdep.c: Include "auxv.h".
10848 (obsd_auxv_parse): Remove.
10849 (obsd_init_abi): Remove comment.
10850 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10851 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10852 * nbsd-tdep.c: Include "auxv.h".
10853 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10854
10855 2020-04-08 Tom Tromey <tromey@adacore.com>
10856
10857 * nat/windows-nat.h (last_wait_event): Don't declare.
10858 (wait_for_debug_event): Update comment.
10859 * nat/windows-nat.c (last_wait_event): Now static.
10860
10861 2020-04-08 Tom Tromey <tromey@adacore.com>
10862
10863 * windows-nat.c (wait_for_debug_event): Move to
10864 nat/windows-nat.c.
10865 * nat/windows-nat.h (wait_for_debug_event): Declare.
10866 * nat/windows-nat.c (wait_for_debug_event): Move from
10867 windows-nat.c. No longer static.
10868
10869 2020-04-08 Tom Tromey <tromey@adacore.com>
10870
10871 * windows-nat.c (get_windows_debug_event): Use
10872 fetch_pending_stop.
10873 * nat/windows-nat.h (fetch_pending_stop): Declare.
10874 * nat/windows-nat.c (fetch_pending_stop): New function.
10875
10876 2020-04-08 Tom Tromey <tromey@adacore.com>
10877
10878 * windows-nat.c (windows_continue): Use matching_pending_stop and
10879 continue_last_debug_event.
10880 * nat/windows-nat.h (matching_pending_stop)
10881 (continue_last_debug_event): Declare.
10882 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10883 (matching_pending_stop, continue_last_debug_event): New
10884 functions.
10885
10886 2020-04-08 Tom Tromey <tromey@adacore.com>
10887
10888 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10889 (handle_exception_result): Move to nat/windows-nat.h.
10890 (DEBUG_EXCEPTION_SIMPLE): Remove.
10891 (windows_nat::handle_ms_vc_exception): New function.
10892 (handle_exception): Move to nat/windows-nat.c.
10893 (get_windows_debug_event): Update.
10894 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10895 nat/windows-nat.c.
10896 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10897 (handle_exception_result): Move from windows-nat.c.
10898 (handle_exception): Declare.
10899 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10900 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10901 windows-nat.c.
10902
10903 2020-04-08 Tom Tromey <tromey@adacore.com>
10904
10905 * windows-nat.c (exception_count, event_count): Remove.
10906 (handle_exception, get_windows_debug_event)
10907 (do_initial_windows_stuff): Update.
10908
10909 2020-04-08 Tom Tromey <tromey@adacore.com>
10910
10911 * windows-nat.c (windows_nat::handle_load_dll)
10912 (windows_nat::handle_unload_dll): Rename. No longer static.
10913 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10914 Declare.
10915
10916 2020-04-08 Tom Tromey <tromey@adacore.com>
10917
10918 * complaints.h (stop_whining): Declare at top-level.
10919 (complaint): Don't declare stop_whining.
10920
10921 2020-04-08 Tom Tromey <tromey@adacore.com>
10922
10923 * windows-nat.c (windows_nat::handle_output_debug_string):
10924 Rename. No longer static.
10925 * nat/windows-nat.h (handle_output_debug_string): Declare.
10926
10927 2020-04-08 Tom Tromey <tromey@adacore.com>
10928
10929 * windows-nat.c (current_process_handle, current_process_id)
10930 (main_thread_id, last_sig, current_event, last_wait_event)
10931 (current_windows_thread, desired_stop_thread_id, pending_stops)
10932 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10933 (display_selectors, fake_create_process)
10934 (get_windows_debug_event): Update.
10935 * nat/windows-nat.h (current_process_handle, current_process_id)
10936 (main_thread_id, last_sig, current_event, last_wait_event)
10937 (current_windows_thread, desired_stop_thread_id, pending_stops)
10938 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10939 * nat/windows-nat.c (current_process_handle, current_process_id)
10940 (main_thread_id, last_sig, current_event, last_wait_event)
10941 (current_windows_thread, desired_stop_thread_id, pending_stops)
10942 (siginfo_er): New globals. Move from windows-nat.c.
10943
10944 2020-04-08 Tom Tromey <tromey@adacore.com>
10945
10946 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10947 (handle_load_dll): Update.
10948 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10949
10950 2020-04-08 Tom Tromey <tromey@adacore.com>
10951
10952 * windows-nat.c (enum thread_disposition_type): Move to
10953 nat/windows-nat.h.
10954 (windows_nat::thread_rec): Rename from thread_rec. No longer
10955 static.
10956 (windows_add_thread, windows_nat_target::fetch_registers)
10957 (windows_nat_target::store_registers, handle_exception)
10958 (windows_nat_target::resume, get_windows_debug_event)
10959 (windows_nat_target::get_tib_address)
10960 (windows_nat_target::thread_name)
10961 (windows_nat_target::thread_alive): Update.
10962 * nat/windows-nat.h (enum thread_disposition_type): Move from
10963 windows-nat.c.
10964 (thread_rec): Declare.
10965
10966 2020-04-08 Tom Tromey <tromey@adacore.com>
10967
10968 * windows-nat.c: Add "using namespace".
10969 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10970 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10971
10972 2020-04-08 Tom Tromey <tromey@adacore.com>
10973
10974 * nat/windows-nat.h (struct windows_thread_info): Declare
10975 destructor.
10976 * nat/windows-nat.c (~windows_thread_info): New.
10977
10978 2020-04-08 Tom Tromey <tromey@adacore.com>
10979
10980 PR gdb/22992
10981 * windows-nat.c (current_event): Update comment.
10982 (last_wait_event, desired_stop_thread_id): New globals.
10983 (struct pending_stop): New.
10984 (pending_stops): New global.
10985 (windows_nat_target) <stopped_by_sw_breakpoint>
10986 <supports_stopped_by_sw_breakpoint>: New methods.
10987 (windows_fetch_one_register): Add assertions. Adjust PC.
10988 (windows_continue): Handle pending stops. Suspend other threads
10989 when stepping. Use last_wait_event
10990 (wait_for_debug_event): New function.
10991 (get_windows_debug_event): Use wait_for_debug_event. Handle
10992 pending stops. Queue spurious stops.
10993 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10994 (windows_nat_target::kill): Use wait_for_debug_event.
10995 * nat/windows-nat.h (struct windows_thread_info)
10996 <stopped_at_software_breakpoint>: New field.
10997 * nat/windows-nat.c (windows_thread_info::resume): Clear
10998 stopped_at_software_breakpoint.
10999
11000 2020-04-08 Tom Tromey <tromey@adacore.com>
11001
11002 * windows-nat.c (enum thread_disposition_type): New.
11003 (thread_rec): Replace "get_context" parameter with "disposition";
11004 change type.
11005 (windows_add_thread, windows_nat_target::fetch_registers)
11006 (windows_nat_target::store_registers, handle_exception)
11007 (windows_nat_target::resume, get_windows_debug_event)
11008 (windows_nat_target::get_tib_address)
11009 (windows_nat_target::thread_name)
11010 (windows_nat_target::thread_alive): Update.
11011
11012 2020-04-08 Tom Tromey <tromey@adacore.com>
11013
11014 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11015 (windows_continue): Use windows_continue::resume.
11016 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11017 resume>: Declare new methods.
11018 * nat/windows-nat.c: New file.
11019 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11020
11021 2020-04-08 Tom Tromey <tromey@adacore.com>
11022
11023 * windows-nat.c (windows_add_thread, windows_delete_thread)
11024 (windows_nat_target::fetch_registers)
11025 (windows_nat_target::store_registers, fake_create_process)
11026 (windows_nat_target::resume, windows_nat_target::resume)
11027 (get_windows_debug_event, windows_nat_target::wait)
11028 (windows_nat_target::pid_to_str)
11029 (windows_nat_target::get_tib_address)
11030 (windows_nat_target::get_ada_task_ptid)
11031 (windows_nat_target::thread_name)
11032 (windows_nat_target::thread_alive): Use lwp, not tid.
11033
11034 2020-04-08 Tom Tromey <tromey@adacore.com>
11035
11036 * windows-nat.c (handle_exception)
11037 (windows_nat_target::thread_name): Update.
11038 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11039 <name>: Now unique_xmalloc_ptr.
11040
11041 2020-04-08 Tom Tromey <tromey@adacore.com>
11042
11043 * windows-nat.c (thread_rec)
11044 (windows_nat_target::fetch_registers): Update.
11045 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11046 Update comment.
11047 <debug_registers_changed, reload_context>: Now bool.
11048
11049 2020-04-08 Tom Tromey <tromey@adacore.com>
11050
11051 * windows-nat.c (windows_add_thread): Use new.
11052 (windows_init_thread_list, windows_delete_thread): Use delete.
11053 (get_windows_debug_event): Update.
11054 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11055 destructor, and initializers.
11056
11057 2020-04-08 Tom Tromey <tromey@adacore.com>
11058
11059 * windows-nat.c (struct windows_thread_info): Remove.
11060 * nat/windows-nat.h: New file.
11061
11062 2020-04-08 Tom Tromey <tromey@adacore.com>
11063
11064 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11065 (thread_rec, windows_add_thread, windows_delete_thread)
11066 (windows_continue): Update.
11067
11068 2020-04-08 Tom Tromey <tromey@adacore.com>
11069
11070 * windows-nat.c (struct windows_thread_info): Remove typedef.
11071 (thread_head): Remove.
11072 (thread_list): New global.
11073 (thread_rec, windows_add_thread, windows_init_thread_list)
11074 (windows_delete_thread, windows_continue): Update.
11075
11076 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11077
11078 * windows-tdep.h (windows_init_abi): Add comment.
11079 (cygwin_init_abi): New declaration.
11080 * windows-tdep.c: Split signal enumeration in two, one for
11081 Windows and one for Cygwin.
11082 (windows_gdb_signal_to_target): Only deal with signal of the
11083 Windows OS ABI.
11084 (cygwin_gdb_signal_to_target): New function.
11085 (windows_init_abi): Rename to windows_init_abi_common, don't set
11086 gdb_signal_to_target gdbarch method. Add new new function with
11087 this name.
11088 (cygwin_init_abi): New function.
11089 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11090 comment. Don't call windows_init_abi.
11091 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11092 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11093 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11094 i386_windows_init_abi_common, don't call windows_init_abi. Add
11095 a new function of this name.
11096 (i386_cygwin_init_abi): New function.
11097 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11098 OS ABI Cygwin.
11099
11100 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11101
11102 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11103 parameter.c.
11104 (dwarf2_read_gdb_index): Update.
11105
11106 2020-04-07 Kamil Rytarowski <n54@gmx.com>
11107
11108 * nbsd-tdep.c: Include "objfiles.h".
11109 (nbsd_skip_solib_resolver): New.
11110 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11111
11112 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11113
11114 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11115 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11116 with DW_LLE_base_addressx are being emitted in DWARFv5.
11117 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11118 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11119 unsigned integer.
11120
11121 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11122
11123 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11124 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11125 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11126 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11127 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11128 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11129 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11130
11131
11132 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11133
11134 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11135 (read_loclist_index): New function definition.
11136 (lookup_loclist_base): New function definition.
11137 (read_loclist_header): New function definition.
11138 (dwarf2_cu): Add loclist_base and loclist_header field.
11139 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11140 (read_full_die_1): Read the value of DW_AT_loclists_base.
11141 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11142 (read_attribute_value): Handle DW_FORM_loclistx.
11143 (skip_one_die): Handle DW_FORM_loclistx.
11144 (loclist_header): New structure declaration.
11145 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11146
11147 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11148
11149 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11150 constructor. Remove `addr` parameter from other constructor and
11151 add `per_cu` parameter.
11152 * dwarf2/read.c (create_partial_symtab): Update.
11153
11154 2020-04-07 Tom de Vries <tdevries@suse.de>
11155
11156 PR symtab/25796
11157 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11158 (partial_die_info::fixup): Inherit has_const_value.
11159
11160 2020-04-07 Tom de Vries <tdevries@suse.de>
11161
11162 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11163 symbols without address.
11164
11165 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11166
11167 * nbsd-nat.h (struct thread_info): Add forward declaration.
11168 (nbsd_nat_target::thread_alive): Add.
11169 (nbsd_nat_target::thread_name): Likewise.
11170 (nbsd_nat_target::update_thread_list): Likewise.
11171 (update_thread_list::post_attach): Likewise.
11172 (post_attach::pid_to_str): Likewise.
11173 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11174 (nbsd_thread_lister): Add.
11175 (nbsd_nat_target::thread_alive): Likewise.
11176 (nbsd_nat_target::thread_name): Likewise.
11177 (nbsd_add_threads): Likewise.
11178 (update_thread_list::post_attach): Likewise.
11179 (nbsd_nat_target::update_thread_list): Likewise.
11180 (post_attach::pid_to_str): Likewise.
11181
11182 2020-04-06 Tom Tromey <tromey@adacore.com>
11183
11184 * ada-valprint.c (print_variant_part): Extract the variant field.
11185 (print_field_values): Use the field as the outer value when
11186 recursing.
11187
11188 2020-04-06 Tom Tromey <tromey@adacore.com>
11189
11190 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11191 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11192 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11193 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11194 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11195
11196 2020-04-06 Tom Tromey <tromey@adacore.com>
11197
11198 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11199 TYPE_CODE_ERROR.
11200
11201 2020-04-06 Kamil Rytarowski <n54@gmx.com>
11202
11203 * nbsd-tdep.c: Include "gdbarch.h".
11204 Define enum with NetBSD signal numbers.
11205 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11206 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11207 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11208 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11209 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11210 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11211 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11212 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11213 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11214 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11215 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11216 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11217
11218 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
11219
11220 PR gdb/25325
11221 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11222
11223 2020-04-03 Tom Tromey <tromey@adacore.com>
11224
11225 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11226 Read constant block.
11227
11228 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11229
11230 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11231 (gdb_bfd_get_full_section_contents): New declaration.
11232 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11233 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11234 gdb_bfd_get_full_section_contents.
11235
11236 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11237
11238 * exec.c (build_section_table): Replace internal_error with
11239 gdb_assert.
11240 (section_table_xfer_memory_partial): Likewise.
11241 * mdebugread.c (parse_partial_symbols): Likewise.
11242 * psymtab.c (lookup_partial_symbol): Likewise.
11243 * utils.c (wrap_here): Likewise.
11244
11245 2020-04-02 Tom Tromey <tromey@adacore.com>
11246
11247 * f-lang.c (build_fortran_types): Use arch_type to initialize
11248 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11249
11250 2020-04-02 Tom Tromey <tromey@adacore.com>
11251
11252 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11253 of attributes.
11254
11255 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11256 Bernd Edlinger <bernd.edlinger@hotmail.de>
11257 Tom Tromey <tromey@adacore.com>
11258
11259 * buildsym.c (buildsym_compunit::record_line): Remove
11260 deduplication code.
11261
11262 2020-04-02 Tom de Vries <tdevries@suse.de>
11263
11264 PR ada/24671
11265 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11266
11267 2020-04-02 Tom de Vries <tdevries@suse.de>
11268
11269 * dwarf2/read.c (dwarf2_gdb_index_functions,
11270 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11271 NULL.
11272 * psymtab.c (psym_lookup_global_symbol_language): New function.
11273 (psym_functions): Init psym_lookup_global_symbol_language with
11274 psym_lookup_global_symbol_language.
11275 * symfile-debug.c (debug_sym_quick_functions): Init
11276 lookup_global_symbol_language with NULL.
11277 * symfile.c (set_initial_language): Remove fixme comment.
11278 * symfile.h (struct quick_symbol_functions): Add
11279 lookup_global_symbol_language.
11280 * symtab.c (find_quick_global_symbol_language): New function.
11281 (find_main_name): Use find_quick_global_symbol_language.
11282
11283 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11284
11285 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11286
11287 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11288
11289 * buildsym.c (record_line): Fix undefined behavior and preserve
11290 lines at eof.
11291
11292 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11293
11294 * buildsym.c (record_line): Fix the resizing condition.
11295
11296 2020-04-01 Tom Tromey <tom@tromey.com>
11297
11298 * value.h (value_literal_complex): Add comment.
11299 * valops.c (value_literal_complex): Refer to value.h.
11300
11301 2020-04-01 Tom Tromey <tom@tromey.com>
11302
11303 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11304 (scalar_type): New rule, from typebase.
11305 (typebase): Use scalar_type. Recognize complex types.
11306 (field_name): Handle FLOAT_KEYWORD.
11307 (ident_tokens): Add _Complex and __complex__.
11308
11309 2020-04-01 Tom Tromey <tom@tromey.com>
11310
11311 PR exp/25299:
11312 * valarith.c (promotion_type, complex_binop): New functions.
11313 (scalar_binop): Handle complex numbers. Use promotion_type.
11314 (value_pos, value_neg, value_complement): Handle complex numbers.
11315
11316 2020-04-01 Tom Tromey <tom@tromey.com>
11317
11318 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11319 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11320 (parse_number): Handle complex numbers.
11321
11322 2020-04-01 Tom Tromey <tom@tromey.com>
11323
11324 * c-valprint.c (c_decorations): Change complex suffix to "i".
11325
11326 2020-04-01 Tom Tromey <tom@tromey.com>
11327
11328 * valprint.c (generic_value_print_complex): Use accessors.
11329 * value.h (value_real_part, value_imaginary_part): Declare.
11330 * valops.c (value_real_part, value_imaginary_part): New
11331 functions.
11332 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11333
11334 2020-04-01 Tom Tromey <tom@tromey.com>
11335
11336 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11337 (read_range_type): Update.
11338 * mdebugread.c (basic_type): Update.
11339 * go-lang.c (build_go_types): Use init_complex_type.
11340 * gdbtypes.h (struct main_type) <complex_type>: New member.
11341 (init_complex_type): Update.
11342 (arch_complex_type): Don't declare.
11343 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11344 Make name if none given. Use alloc_type_copy. Look for cached
11345 complex type.
11346 (arch_complex_type): Remove.
11347 (gdbtypes_post_init): Use init_complex_type.
11348 * f-lang.c (build_fortran_types): Use init_complex_type.
11349 * dwarf2/read.c (read_base_type): Update.
11350 * d-lang.c (build_d_types): Use init_complex_type.
11351 * ctfread.c (read_base_type): Update.
11352
11353 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11354
11355 * infrun.c (stop_all_threads): Update assertion, plus when
11356 stopping threads, take into account that we might be trying
11357 to stop an all-stop target.
11358 (stop_waiting): Call 'stop_all_threads' if there exists a
11359 non-stop target.
11360
11361 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11362
11363 * target.h (exists_non_stop_target): New function declaration.
11364 * target.c (exists_non_stop_target): New function.
11365
11366 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
11367
11368 PR gdb/24789
11369 * eval.c (is_integral_or_integral_reference): New function.
11370 (evaluate_subexp_standard): Allow integer references in
11371 pointer arithmetic.
11372
11373 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11374
11375 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11376 check for no ptid in the stop reply when the target is non-stop.
11377
11378 2020-04-01 Tom Tromey <tromey@adacore.com>
11379
11380 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11381 "name" parameter to rvalue reference. Initialize m_name_holder.
11382 <lookup_name_info>: New overloads.
11383 <name>: Return gdb::string_view.
11384 <c_str>: New method.
11385 <make_ignore_params>: Update.
11386 <search_name_hash>: Update.
11387 <language_lookup_name>: Return const char *.
11388 <m_name>: Change type.
11389 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11390 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11391 (lookup_name_info::match_any): Update.
11392 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11393 Update.
11394 * minsyms.c (linkage_name_str): Update.
11395 * language.c (default_symbol_name_matcher): Update.
11396 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11397 Update.
11398 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11399 (ada_lookup_name_info::ada_lookup_name_info): Update.
11400 (literal_symbol_name_matcher): Update.
11401
11402 2020-04-01 Tom Tromey <tromey@adacore.com>
11403
11404 * psymtab.c (psymtab_search_name): Remove function.
11405 (psym_lookup_symbol): Create search name and lookup name here.
11406 (lookup_partial_symbol): Remove "name" parameter; add
11407 lookup_name.
11408 (psym_expand_symtabs_for_function): Update.
11409
11410 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
11411
11412 PR tui/25597:
11413 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
11414
11415 2020-03-31 Tom Tromey <tromey@adacore.com>
11416
11417 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
11418 memcpy.
11419
11420 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
11421
11422 * features/riscv/32bit-csr.xml: Regenerated.
11423 * features/riscv/64bit-csr.xml: Regenerated.
11424
11425 2020-03-30 Tom Tromey <tromey@adacore.com>
11426
11427 * ada-valprint.c (print_variant_part): Update.
11428 * ada-lang.h (ada_which_variant_applies): Update.
11429 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
11430 outer_valaddr parameters; replace with "outer" value parameter.
11431 (to_fixed_variant_branch_type): Update.
11432
11433 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11434
11435 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
11436 <list>. Remove inclusion of observable.h.
11437 (PPC_DEBUG_CURRENT_VERSION): Move up define.
11438 (struct arch_lwp_info): New struct.
11439 (class ppc_linux_dreg_interface): New class.
11440 (struct ppc_linux_process_info): New struct.
11441 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
11442 <low_new_clone, low_forget_process, low_prepare_to_resume>
11443 <copy_thread_dreg_state, mark_thread_stale>
11444 <mark_debug_registers_changed, register_hw_breakpoint>
11445 <clear_hw_breakpoint, register_wp, clear_wp>
11446 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
11447 <num_memory_accesses, get_trigger_type>
11448 <create_watchpoint_request, hwdebug_point_cmp>
11449 <init_arch_lwp_info, get_arch_lwp_info>
11450 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
11451 methods.
11452 <struct ptid_hash>: New inner struct.
11453 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
11454 members.
11455 (saved_dabr_value, hwdebug_info, max_slots_number)
11456 (struct hw_break_tuple, struct thread_points, ppc_threads)
11457 (have_ptrace_hwdebug_interface)
11458 (hwdebug_find_thread_points_by_tid)
11459 (hwdebug_insert_point, hwdebug_remove_point): Remove.
11460 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
11461 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
11462 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
11463 use m_dreg_interface.
11464 (hwdebug_point_cmp): Change to...
11465 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
11466 reference arguments instead of pointers.
11467 (ppc_linux_nat_target::ranged_break_num_registers): Use
11468 m_dreg_interface.
11469 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
11470 m_dreg_interface. Call register_hw_breakpoint.
11471 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
11472 m_dreg_interface. Call clear_hw_breakpoint.
11473 (get_trigger_type): Change to...
11474 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
11475 comment.
11476 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
11477 use m_dreg_interface. Call register_hw_breakpoint.
11478 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
11479 use m_dreg_interface. Call clear_hw_breakpoint.
11480 (can_use_watchpoint_cond_accel): Change to...
11481 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
11482 method. Update comment, use m_dreg_interface and
11483 m_process_info.
11484 (calculate_dvc): Change to...
11485 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
11486 m_dreg_interface.
11487 (num_memory_accesses): Change to...
11488 (ppc_linux_nat_target::num_memory_accesses): ...this method.
11489 (check_condition): Change to...
11490 (ppc_linux_nat_target::check_condition): ...this method.
11491 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
11492 comment, use m_dreg_interface.
11493 (create_watchpoint_request): Change to...
11494 (ppc_linux_nat_target::create_watchpoint_request): ...this
11495 method. Use m_dreg_interface.
11496 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
11497 m_dreg_interface. Call register_hw_breakpoint or register_wp.
11498 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
11499 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
11500 (ppc_linux_nat_target::low_forget_process)
11501 (ppc_linux_nat_target::low_new_fork)
11502 (ppc_linux_nat_target::low_new_clone)
11503 (ppc_linux_nat_target::low_delete_thread)
11504 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
11505 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
11506 only call mark_thread_stale.
11507 (ppc_linux_thread_exit): Remove.
11508 (ppc_linux_nat_target::stopped_data_address): Change to...
11509 (ppc_linux_nat_target::low_stopped_data_address): This. Add
11510 comment, use m_dreg_interface and m_thread_hw_breakpoints.
11511 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
11512 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
11513 comment. Call low_stopped_data_address.
11514 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
11515 m_dreg_interface.
11516 (ppc_linux_nat_target::masked_watch_num_registers): Use
11517 m_dreg_interface.
11518 (ppc_linux_nat_target::copy_thread_dreg_state)
11519 (ppc_linux_nat_target::mark_thread_stale)
11520 (ppc_linux_nat_target::mark_debug_registers_changed)
11521 (ppc_linux_nat_target::register_hw_breakpoint)
11522 (ppc_linux_nat_target::clear_hw_breakpoint)
11523 (ppc_linux_nat_target::register_wp)
11524 (ppc_linux_nat_target::clear_wp)
11525 (ppc_linux_nat_target::init_arch_lwp_info)
11526 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11527 (_initialize_ppc_linux_nat): Remove observer callback.
11528
11529 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11530
11531 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11532 (ppc_linux_nat_target::auxv_parse)
11533 (ppc_linux_nat_target::read_description)
11534 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11535 Move up.
11536
11537 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11538
11539 * linux-nat.h (low_new_clone): New method.
11540 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11541
11542 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11543
11544 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11545 (dbx_expand_psymtab): ... this.
11546 (start_psymtab): Update.
11547 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11548 (mdebug_expand_psymtab): ... this.
11549 (parse_partial_symbols): Update.
11550 (new_psymtab): Update.
11551 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11552 (xcoff_expand_psymtab): ... this.
11553 (xcoff_start_psymtab): Update.
11554
11555 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11556
11557 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11558 <expand_dependencies>: ... this.
11559 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11560 (partial_symtab::expand_dependencies): ... this.
11561 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11562 Update.
11563 (dwarf2_psymtab::expand_psymtab): Update.
11564 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11565 * mdebugread.c (psymtab_to_symtab_1): Update.
11566 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11567
11568 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11569
11570 * psympriv.h (discard_psymtab): Remove.
11571 * dbxread.c (dbx_end_psymtab): Update.
11572 * xcoffread.c (xcoff_end_psymtab): Update.
11573
11574 2020-03-28 Tom Tromey <tom@tromey.com>
11575
11576 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11577 comment.
11578
11579 2020-03-28 Tom Tromey <tom@tromey.com>
11580
11581 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11582
11583 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11584
11585 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11586
11587 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11588
11589 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11590
11591 2020-03-26 Tom Tromey <tom@tromey.com>
11592
11593 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11594 (mark_common_block_symbol_computed, read_tag_string_type)
11595 (attr_to_dynamic_prop, read_subrange_type): Update.
11596 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11597 to be methods on struct attribute.
11598 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11599 (read_call_site_scope, partial_die_info::read)
11600 (partial_die_info::read, lookup_die_type, follow_die_ref):
11601 Update.
11602 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11603 from dwarf2_get_ref_die_offset.
11604 (attribute::constant_value): New method, from
11605 dwarf2_get_attr_constant_value.
11606 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11607 Declare method.
11608 <constant_value>: New method.
11609
11610 2020-03-26 Tom Tromey <tom@tromey.com>
11611
11612 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11613 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11614 (dwarf_type_encoding_name): Move to stringify.c.
11615 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11616 * dwarf2/stringify.c: New file.
11617 * dwarf2/stringify.h: New file.
11618
11619 2020-03-26 Tom Tromey <tom@tromey.com>
11620
11621 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11622 Rewrite.
11623
11624 2020-03-26 Tom Tromey <tom@tromey.com>
11625
11626 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11627 methods.
11628 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11629 (lookup_ranges_base): Likewise.
11630 (read_cutu_die_from_dwo, read_full_die_1): Update.
11631
11632 2020-03-26 Tom Tromey <tom@tromey.com>
11633
11634 * dwarf2/read.c (read_import_statement, read_file_scope)
11635 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11636 (read_lexical_block_scope, read_call_site_scope)
11637 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11638 (handle_struct_member_die, process_structure_scope)
11639 (update_enumeration_type_from_children)
11640 (process_enumeration_scope, read_array_type, read_common_block)
11641 (read_namespace, read_module, read_subroutine_type): Update.
11642 (sibling_die): Remove.
11643
11644 2020-03-26 Tom Tromey <tom@tromey.com>
11645
11646 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11647 (build_type_psymtabs_reader, read_structure_type)
11648 (read_enumeration_type, read_full_die_1): Update.
11649 (dwarf2_attr_no_follow): Move to die.h.
11650 * dwarf2/die.h (struct die_info) <attr>: New method.
11651
11652 2020-03-26 Tom Tromey <tom@tromey.com>
11653
11654 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11655 <base_address>: Now an optional.
11656 (dwarf2_find_base_address, dwarf2_rnglists_process)
11657 (dwarf2_ranges_process, fill_in_loclist_baton)
11658 (dwarf2_symbol_mark_computed): Update.
11659
11660 2020-03-26 Tom Tromey <tom@tromey.com>
11661
11662 * dwarf2/read.c (struct die_info): Move to die.h.
11663 * dwarf2/die.h: New file.
11664
11665 2020-03-26 Tom Tromey <tom@tromey.com>
11666
11667 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11668 * dwarf2/read.c
11669 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11670 Move to line-header.c.
11671 (read_checked_initial_length_and_offset, read_formatted_entries):
11672 Likewise.
11673 (dwarf_decode_line_header): Split into two.
11674 * dwarf2/line-header.c
11675 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11676 Move from read.c.
11677 (read_checked_initial_length_and_offset, read_formatted_entries):
11678 Likewise.
11679 (dwarf_decode_line_header): New function, split from read.c.
11680
11681 2020-03-26 Tom Tromey <tom@tromey.com>
11682
11683 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11684 Declare method.
11685 * dwarf2/read.c (read_attribute_value): Update.
11686 (dwarf2_per_objfile::read_line_string): Rename from
11687 read_indirect_line_string.
11688 (read_formatted_entries): Update.
11689
11690 2020-03-26 Tom Tromey <tom@tromey.com>
11691
11692 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11693 variable.
11694
11695 2020-03-26 Tom Tromey <tom@tromey.com>
11696
11697 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11698 const.
11699 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11700 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11701 parameter const.
11702
11703 2020-03-26 Tom Tromey <tom@tromey.com>
11704
11705 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11706 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11707 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11708 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11709
11710 2020-03-26 Tom Tromey <tom@tromey.com>
11711
11712 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11713 file_names_size, file_full_name, file_file_name>: Use const.
11714 <file_name_at, file_names>: Add const overload.
11715 * dwarf2/line-header.c (line_header::file_file_name)
11716 (line_header::file_full_name): Update.
11717
11718 2020-03-26 Tom Tromey <tom@tromey.com>
11719
11720 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11721 (macro_start_file, consume_improper_spaces)
11722 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11723 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11724 (dwarf_decode_macros): Move to macro.c.
11725 * dwarf2/macro.c: New file.
11726 * dwarf2/macro.h: New file.
11727 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11728
11729 2020-03-26 Tom Tromey <tom@tromey.com>
11730
11731 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11732 method.
11733 * dwarf2/section.c: New method. From
11734 read_indirect_string_at_offset_from.
11735 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11736 (read_indirect_string_at_offset_from): Move to section.c.
11737 (read_indirect_string_at_offset): Rewrite.
11738 (read_indirect_line_string_at_offset): Remove.
11739 (read_indirect_string, read_indirect_line_string)
11740 (dwarf_decode_macro_bytes): Update.
11741
11742 2020-03-26 Tom Tromey <tom@tromey.com>
11743
11744 * dwarf2/section.h (struct dwarf2_section_info)
11745 <overload_complaint>: Declare.
11746 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11747 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11748 Rename from dwarf2_section_buffer_overflow_complaint.
11749 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11750 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11751
11752 2020-03-26 Tom Tromey <tom@tromey.com>
11753
11754 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11755 Declare.
11756 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11757 Move from read.c.
11758 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11759 to section.c.
11760
11761 2020-03-26 Tom Tromey <tom@tromey.com>
11762
11763 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11764
11765 2020-03-26 Tom Tromey <tom@tromey.com>
11766
11767 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11768 "builder".
11769 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11770 parameter.
11771 (dwarf_decode_macros): Update.
11772
11773 2020-03-26 Tom Tromey <tom@tromey.com>
11774
11775 * dwarf2/read.c (read_attribute_value): Update.
11776 (read_indirect_string_from_dwz): Move to dwz.c; change into
11777 method.
11778 (dwarf_decode_macro_bytes): Update.
11779 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11780 * dwarf2/dwz.c: New file.
11781 * Makefile.in (COMMON_SFILES): Add dwz.c.
11782
11783 2020-03-26 Tom Tromey <tom@tromey.com>
11784
11785 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11786 * dwarf2/read.c: Add include.
11787 * dwarf2/index-write.c: Add include.
11788 * dwarf2/index-cache.c: Add include.
11789 * dwarf2/dwz.h: New file.
11790
11791 2020-03-25 Tom Tromey <tom@tromey.com>
11792
11793 * compile/compile-object-load.c (get_out_value_type): Mention
11794 correct symbol name in error message.
11795
11796 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11797
11798 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11799
11800 2020-03-25 Tom de Vries <tdevries@suse.de>
11801
11802 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11803 * symmisc.c (dump_symtab_1): Print user and includes fields.
11804 (maintenance_info_symtabs): Same.
11805
11806 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11807
11808 PR gdb/25534
11809 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11810 (riscv_regcache_cooked_write): New function.
11811 (riscv_push_dummy_call): Use new function.
11812 (riscv_return_value): Likewise.
11813
11814 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11815
11816 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11817 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11818 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11819 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11820 * infrun.c (follow_fork): Likewise.
11821 (follow_fork_inferior): Likewise.
11822 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11823 * linux-nat.h (class linux_nat_target): Likewise.
11824 * remote.c (class remote_target) <follow_fork>: Likewise.
11825 (remote_target::follow_fork): Likewise.
11826 * target-delegates.c: Re-generate.
11827 * target.c (default_follow_fork): Likewise.
11828 (target_follow_fork): Likewise.
11829 * target.h (struct target_ops) <follow_fork>: Likewise.
11830 (target_follow_fork): Likewise.
11831
11832 2020-03-24 Tom de Vries <tdevries@suse.de>
11833
11834 * psymtab.c (maintenance_info_psymtabs): Print user field.
11835
11836 2020-03-20 Tom Tromey <tromey@adacore.com>
11837
11838 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11839 const.
11840 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11841 const.
11842
11843 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11844
11845 * ptrace.m4: Don't check for ptrace declaration.
11846 * config.in: Re-generate.
11847 * configure: Re-generate.
11848 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11849 not defined.
11850
11851 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11852
11853 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11854 `PTRACE_TYPE_RET'.
11855 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11856 * sparc-nat.c (gdb_ptrace): Likewise.
11857 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11858
11859 2020-03-20 Tom Tromey <tromey@adacore.com>
11860
11861 * c-exp.y (lex_one_token): Fix assert.
11862
11863 2020-03-20 Tom Tromey <tromey@adacore.com>
11864
11865 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11866 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11867 strncpy call.
11868
11869 2020-03-20 Tom Tromey <tromey@adacore.com>
11870
11871 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11872
11873 2020-03-20 Tom Tromey <tromey@adacore.com>
11874
11875 * ada-valprint.c (print_variant_part): Remove parameters; switch
11876 to value-based API.
11877 (print_field_values): Likewise.
11878 (ada_val_print_struct_union): Likewise.
11879 (ada_value_print_1): Update.
11880
11881 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11882
11883 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11884 nbsd_nat_target instead of inf_ptrace_target.
11885 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11886 nbsd_nat_target.
11887
11888 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11889
11890 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11891 it to the ptrace call.
11892 * (store_registers): Likewise.
11893
11894 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11895
11896 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11897 it to the ptrace call.
11898 * (store_registers): Likewise.
11899
11900 2020-03-19 Luis Machado <luis.machado@linaro.org>
11901
11902 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11903 valid, fetch vg value from ptrace.
11904
11905 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11906 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11907 * inf-ptrace.c: Likewise.
11908 * (gdb_ptrace): Add.
11909 * (inf_ptrace_target::resume): Update.
11910 * (inf_ptrace_target::xfer_partial): Likewise.
11911 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11912 * (inf_ptrace_peek_poke): Update.
11913
11914 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11915
11916 * x86-bsd-nat.c (gdb_ptrace): New.
11917 * (x86bsd_dr_set): Add new argument `ptid'.
11918 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11919 x86bsd_dr_set_addr): Update.
11920
11921 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11922
11923 * remote.c (remote_target::process_stop_reply): Handle events for
11924 all threads differently.
11925
11926 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11927
11928 * completer.c (completion_tracker::remove_completion): Define new
11929 function.
11930 * completer.h (completion_tracker::remove_completion): Declare new
11931 function.
11932 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11933 when adding a C++ function symbol.
11934
11935 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11936
11937 * completer.c (completion_tracker::completion_hash_entry): Define
11938 new class.
11939 (advance_to_filename_complete_word_point): Call
11940 recompute_lowest_common_denominator.
11941 (completion_tracker::completion_tracker): Call discard_completions
11942 to setup the hash table.
11943 (completion_tracker::discard_completions): Allow for being called
11944 from the constructor, pass new equal function, and element deleter
11945 when constructing the hash table. Initialise new class member
11946 variables.
11947 (completion_tracker::maybe_add_completion): Remove use of
11948 m_entries_vec, and store more information into m_entries_hash.
11949 (completion_tracker::recompute_lcd_visitor): New function, most
11950 content taken from...
11951 (completion_tracker::recompute_lowest_common_denominator):
11952 ...here, this now just visits each item in the hash calling the
11953 above visitor.
11954 (completion_tracker::build_completion_result): Remove use of
11955 m_entries_vec, call recompute_lowest_common_denominator.
11956 * completer.h (completion_tracker::have_completions): Remove use
11957 of m_entries_vec.
11958 (completion_tracker::completion_hash_entry): Declare new class.
11959 (completion_tracker::recompute_lowest_common_denominator): Change
11960 function signature.
11961 (completion_tracker::recompute_lcd_visitor): Declare new function.
11962 (completion_tracker::m_entries_vec): Delete.
11963 (completion_tracker::m_entries_hash): Initialize to NULL.
11964 (completion_tracker::m_lowest_common_denominator_valid): New
11965 member variable.
11966 (completion_tracker::m_lowest_common_denominator_max_length): New
11967 member variable.
11968
11969 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11970
11971 * regformats/regdef.h: Put reg in gdb namespace.
11972
11973 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11974
11975 * i386-bsd-nat.c (gdb_ptrace): New.
11976 * (i386bsd_fetch_inferior_registers,
11977 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11978 * (i386bsd_fetch_inferior_registers,
11979 i386bsd_store_inferior_registers) Use gdb_ptrace.
11980
11981 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11982
11983 * amd64-bsd-nat.c (gdb_ptrace): New.
11984 * (amd64bsd_fetch_inferior_registers,
11985 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11986 * (amd64bsd_fetch_inferior_registers,
11987 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11988
11989 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11990
11991 * user-regs.c (user_reg::read): Rename to...
11992 (user_reg::xread): ...this.
11993 * (append_user_reg): Rename argument `read' to `xread'.
11994 * (user_reg_add_builtin): Likewise.
11995 * (user_reg_add): Likewise.
11996 * (value_of_user_reg): Likewise.
11997
11998 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11999
12000 * sparc-nat.c (gdb_ptrace): New.
12001 * sparc-nat.c (sparc_fetch_inferior_registers)
12002 (sparc_store_inferior_registers) Remove obsolete comment.
12003 * sparc-nat.c (sparc_fetch_inferior_registers)
12004 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12005 * sparc-nat.c (sparc_fetch_inferior_registers)
12006 (sparc_store_inferior_registers) Use gdb_ptrace.
12007
12008 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12009
12010 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12011 it to the ptrace call.
12012 * sh-nbsd-nat.c (store_registers): Likewise.
12013
12014 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12015
12016 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12017 nbsd_nat_target instead of inf_ptrace_target.
12018 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12019 nbsd_nat_target.
12020
12021 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12022
12023 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12024
12025 2020-03-17 Kamil Rytarowski <n54@gmx.com>
12026
12027 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12028 <sys/sysctl.h>.
12029 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12030
12031 2020-03-17 Tom de Vries <tdevries@suse.de>
12032
12033 PR gdb/23710
12034 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12035 fields.
12036 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12037 fields.
12038 (process_imported_unit_die): Skip import of c++ CUs.
12039
12040 2020-03-16 Tom Tromey <tom@tromey.com>
12041
12042 * p-valprint.c (pascal_object_print_value): Initialize
12043 base_value.
12044
12045 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12046 Shahab Vahedi <shahab@synopsys.com>
12047
12048 * Makefile.in: Add arch/arc.o
12049 * configure.tgt: Likewise.
12050 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12051 (_initialize_arc_tdep): Don't initialize old target descriptions.
12052 (arc_read_description): New function to cache target descriptions.
12053 * arc-tdep.h (arc_read_description): Add proto type.
12054 * arch/arc.c: New file.
12055 * arch/arc.h: Likewise.
12056 * features/Makefile: Replace old target descriptions with new.
12057 * features/arc-arcompact.c: Remove.
12058 * features/arc-arcompact.xml: Likewise.
12059 * features/arc-v2.c: Likewise
12060 * features/arc-v2.xml: Likewise
12061 * features/arc/aux-arcompact.xml: New file.
12062 * features/arc/aux-v2.xml: Likewise.
12063 * features/arc/core-arcompact.xml: Likewise.
12064 * features/arc/core-v2.xml: Likewise.
12065 * features/arc/aux-arcompact.c: Generate.
12066 * features/arc/aux-v2.c: Likewise.
12067 * features/arc/core-arcompact.c: Likewise.
12068 * features/arc/core-v2.c: Likewise.
12069 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12070
12071 2020-03-16 Tom Tromey <tromey@adacore.com>
12072
12073 PR gdb/25663:
12074 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12075 putting value into bcache.
12076
12077 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12078
12079 PR gdb/21500
12080 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12081 to...
12082 (amd64_windows_init_abi_common): ... this. Don't set size of
12083 long type.
12084 (amd64_windows_init_abi): New function.
12085 (amd64_cygwin_init_abi): New function.
12086 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12087 the Cygwin OS ABI.
12088 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12089 comment.
12090
12091 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12092
12093 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12094 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12095 (pe_import_directory_entry): New struct type.
12096 (is_linked_with_cygwin_dll): New function.
12097 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12098 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12099 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12100
12101 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12102
12103 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12104 i386_cygwin_core_osabi_sniffer.
12105
12106 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12107
12108 * i386-cygwin-tdep.c: Rename to...
12109 * i386-windows-tdep.c: ... this.
12110 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12111 i386-windows-tdep.c.
12112 * configure.tgt: Likewise.
12113
12114 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12115
12116 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12117 * osabi.c (gdb_osabi_names): Add "Windows".
12118 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12119 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12120 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12121 i386_cygwin_osabi_sniffer.
12122 (_initialize_i386_cygwin_tdep): Register OS ABI
12123 GDB_OSABI_WINDOWS for i386.
12124 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12125 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12126 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12127 for x86-64.
12128 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12129 when the target matches '*-*-mingw*'.
12130
12131 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12132
12133 * defs.h (enum gdb_osabi): Move to...
12134 * osabi.h (enum gdb_osabi): ... here.
12135 * gdbarch.sh: Include osabi.h in gdbarch.h.
12136 * gdbarch.h: Re-generate.
12137
12138 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
12139
12140 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12141 function.
12142 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12143
12144 2020-03-14 Tom Tromey <tom@tromey.com>
12145
12146 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12147 for C++.
12148 (c_type_print_modifier): Likewise. Add "language" parameter.
12149 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12150 (c_type_print_base_1): Update.
12151 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12152 constants.
12153 * type-stack.c (type_stack::insert): Handle tp_atomic and
12154 tp_restrict.
12155 (type_stack::follow_type_instance_flags): Likewise.
12156 (type_stack::follow_types): Likewise. Merge type-following code.
12157 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12158 (space_identifier, cv_with_space_id)
12159 (const_or_volatile_or_space_identifier_noopt)
12160 (const_or_volatile_or_space_identifier): Remove.
12161 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12162 rules.
12163 (ptr_operator, typebase): Update.
12164 (enum token_flag) <FLAG_C>: New constant.
12165 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12166 "_Atomic".
12167 (lex_one_token): Handle FLAG_C.
12168
12169 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12170
12171 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12172 it to the ptrace call.
12173 * m68k-bsd-nat.c (store_registers): Likewise.
12174
12175 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12176
12177 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12178 gdb_byte *.
12179 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12180 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12181 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12182
12183 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12184
12185 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12186 nbsd_nat_target instead of inf_ptrace_target.
12187 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12188 nbsd_nat_target.
12189
12190 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12191
12192 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12193 register_t.
12194
12195 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12196
12197 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12198 it to the ptrace call.
12199 * alpha-bsd-nat.c (store_registers): Likewise.
12200
12201 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12202
12203 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12204 includes.
12205 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12206 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12207 fill_fpregset): Likewise.
12208
12209 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12210
12211 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12212 nbsd_nat_target instead of inf_ptrace_target.
12213 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12214 nbsd_nat_target.
12215
12216 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12217
12218 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12219 register_t.
12220
12221 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12222
12223 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12224 it to the ptrace call.
12225 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12226 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12227 * arm-nbsd-nat.c (store_register): Likewise.
12228 * arm-nbsd-nat.c (store_regs): Likewise.
12229 * arm-nbsd-nat.c (store_fp_register): Likewise.
12230 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12231
12232 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12233
12234 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12235 nbsd_nat_target instead of inf_ptrace_target.
12236 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12237 nbsd_nat_target.
12238
12239 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12240
12241 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12242 it to the ptrace call.
12243 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12244
12245 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12246
12247 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12248 it to the ptrace call.
12249 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12250
12251 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12252
12253 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12254 gdb_byte *.
12255 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12256
12257 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12258
12259 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12260 instead of inf_ptrace_target.
12261 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12262 nbsd_nat_target.
12263
12264 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12265
12266 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12267 register_t.
12268
12269 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12270
12271 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12272 register_t.
12273
12274 2020-03-14 Kamil Rytarowski <n54@gmx.com>
12275
12276 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12277 register_t.
12278
12279 2020-03-13 Tom Tromey <tom@tromey.com>
12280
12281 * value.h (val_print): Don't declare.
12282 * valprint.h (val_print_array_elements)
12283 (val_print_scalar_formatted, generic_val_print): Don't declare.
12284 * valprint.c (generic_val_print_array): Take a struct value.
12285 (generic_val_print_ptr, generic_val_print_memberptr)
12286 (generic_val_print_bool, generic_val_print_int)
12287 (generic_val_print_char, generic_val_print_complex)
12288 (generic_val_print): Remove.
12289 (generic_value_print): Update.
12290 (do_val_print): Remove unused parameters. Don't call
12291 la_val_print.
12292 (val_print): Remove.
12293 (common_val_print): Update. Don't call value_check_printable.
12294 (val_print_scalar_formatted, val_print_array_elements): Remove.
12295 * rust-lang.c (rust_val_print): Remove.
12296 (rust_language_defn): Update.
12297 * p-valprint.c (pascal_val_print): Remove.
12298 (pascal_value_print_inner): Update.
12299 (pascal_object_print_val_fields, pascal_object_print_val):
12300 Remove.
12301 (pascal_object_print_static_field): Update.
12302 * p-lang.h (pascal_val_print): Don't declare.
12303 * p-lang.c (pascal_language_defn): Update.
12304 * opencl-lang.c (opencl_language_defn): Update.
12305 * objc-lang.c (objc_language_defn): Update.
12306 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12307 * m2-lang.h (m2_val_print): Don't declare.
12308 * m2-lang.c (m2_language_defn): Update.
12309 * language.h (struct language_defn) <la_val_print>: Remove.
12310 * language.c (unk_lang_value_print_inner): Rename. Change
12311 argument types.
12312 (unknown_language_defn, auto_language_defn): Update.
12313 * go-valprint.c (go_val_print): Remove.
12314 * go-lang.h (go_val_print): Don't declare.
12315 * go-lang.c (go_language_defn): Update.
12316 * f-valprint.c (f_val_print): Remove.
12317 * f-lang.h (f_value_print): Don't declare.
12318 * f-lang.c (f_language_defn): Update.
12319 * d-valprint.c (d_val_print): Remove.
12320 * d-lang.h (d_value_print): Don't declare.
12321 * d-lang.c (d_language_defn): Update.
12322 * cp-valprint.c (cp_print_value_fields)
12323 (cp_print_value_fields_rtti, cp_print_value): Remove.
12324 (cp_print_static_field): Update.
12325 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12326 (c_val_print_struct, c_val_print_union, c_val_print_int)
12327 (c_val_print_memberptr, c_val_print): Remove.
12328 * c-lang.h (c_val_print_array, cp_print_value_fields)
12329 (cp_print_value_fields_rtti): Don't declare.
12330 * c-lang.c (c_language_defn, cplus_language_defn)
12331 (asm_language_defn, minimal_language_defn): Update.
12332 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12333 (ada_val_print_enum): Take a struct value.
12334 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12335 (ada_val_print): Remove.
12336 (ada_value_print_1): Update.
12337 (printable_val_type): Remove.
12338 * ada-lang.h (ada_val_print): Don't declare.
12339 * ada-lang.c (ada_language_defn): Update.
12340
12341 2020-03-13 Tom Tromey <tom@tromey.com>
12342
12343 * valprint.c (do_val_print): Update.
12344 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12345 a struct value.
12346 (value_to_value_object_no_release): Declare.
12347 * python/py-value.c (value_to_value_object_no_release): New
12348 function.
12349 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12350 struct value.
12351 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12352 function.
12353 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12354 a struct value.
12355 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12356 Declare.
12357 (gdbscm_apply_val_pretty_printer): Take a struct value.
12358 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12359 value.
12360 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12361 value.
12362 * extension-priv.h (struct extension_language_ops)
12363 <apply_val_pretty_printer>: Take a struct value.
12364 * cp-valprint.c (cp_print_value): Create a struct value.
12365 (cp_print_value): Update.
12366
12367 2020-03-13 Tom Tromey <tom@tromey.com>
12368
12369 * ada-valprint.c (print_field_values): Call common_val_print.
12370
12371 2020-03-13 Tom Tromey <tom@tromey.com>
12372
12373 * ada-valprint.c (val_print_packed_array_elements): Remove
12374 bitoffset and val parameters. Call common_val_print.
12375 (ada_val_print_string): Remove offset, address, and original_value
12376 parameters.
12377 (ada_val_print_array): Update.
12378 (ada_value_print_array): New function.
12379 (ada_value_print_1): Call it.
12380
12381 2020-03-13 Tom Tromey <tom@tromey.com>
12382
12383 * ada-valprint.c (ada_value_print): Use common_val_print.
12384
12385 2020-03-13 Tom Tromey <tom@tromey.com>
12386
12387 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12388
12389 2020-03-13 Tom Tromey <tom@tromey.com>
12390
12391 * ada-valprint.c (ada_value_print_num): New function.
12392 (ada_value_print_1): Use it.
12393
12394 2020-03-13 Tom Tromey <tom@tromey.com>
12395
12396 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12397
12398 2020-03-13 Tom Tromey <tom@tromey.com>
12399
12400 * ada-valprint.c (ada_value_print_ptr): New function.
12401 (ada_value_print_1): Use it.
12402
12403 2020-03-13 Tom Tromey <tom@tromey.com>
12404
12405 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12406 call common_val_print.
12407 (ada_val_print_1): Update.
12408 (ada_value_print_1): New function.
12409 (ada_value_print_inner): Rewrite.
12410
12411 2020-03-13 Tom Tromey <tom@tromey.com>
12412
12413 * cp-valprint.c (cp_print_value_fields): Update.
12414 (cp_print_value): New function.
12415
12416 2020-03-13 Tom Tromey <tom@tromey.com>
12417
12418 * m2-valprint.c (m2_value_print_inner): Use
12419 cp_print_value_fields.
12420 * cp-valprint.c (cp_print_value_fields): New function.
12421 * c-valprint.c (c_value_print_struct): New function.
12422 (c_value_print_inner): Use c_value_print_struct.
12423 * c-lang.h (cp_print_value_fields): Declare.
12424
12425 2020-03-13 Tom Tromey <tom@tromey.com>
12426
12427 * c-valprint.c (c_value_print_array): New function.
12428 (c_value_print_inner): Use it.
12429
12430 2020-03-13 Tom Tromey <tom@tromey.com>
12431
12432 * c-valprint.c (c_value_print_memberptr): New function.
12433 (c_value_print_inner): Use it.
12434
12435 2020-03-13 Tom Tromey <tom@tromey.com>
12436
12437 * c-valprint.c (c_value_print_int): New function.
12438 (c_value_print_inner): Use it.
12439
12440 2020-03-13 Tom Tromey <tom@tromey.com>
12441
12442 * c-valprint.c (c_value_print_ptr): New function.
12443 (c_value_print_inner): Use it.
12444
12445 2020-03-13 Tom Tromey <tom@tromey.com>
12446
12447 * c-valprint.c (c_value_print_inner): Rewrite.
12448
12449 2020-03-13 Tom Tromey <tom@tromey.com>
12450
12451 * valprint.c (generic_value_print_complex): New function.
12452 (generic_value_print): Use it.
12453
12454 2020-03-13 Tom Tromey <tom@tromey.com>
12455
12456 * valprint.c (generic_val_print_float): Don't call
12457 val_print_scalar_formatted.
12458 (generic_val_print, generic_value_print): Update.
12459
12460 2020-03-13 Tom Tromey <tom@tromey.com>
12461
12462 * valprint.c (generic_value_print_char): New function
12463 (generic_value_print): Use it.
12464
12465 2020-03-13 Tom Tromey <tom@tromey.com>
12466
12467 * valprint.c (generic_value_print_int): New function.
12468 (generic_value_print): Use it.
12469
12470 2020-03-13 Tom Tromey <tom@tromey.com>
12471
12472 * valprint.c (generic_value_print_bool): New function.
12473 (generic_value_print): Use it.
12474
12475 2020-03-13 Tom Tromey <tom@tromey.com>
12476
12477 * valprint.c (generic_val_print_func): Simplify.
12478 (generic_val_print, generic_value_print): Update.
12479
12480 2020-03-13 Tom Tromey <tom@tromey.com>
12481
12482 * valprint.c (generic_val_print_flags): Remove.
12483 (generic_val_print, generic_value_print): Update.
12484 (val_print_type_code_flags): Add original_value parameter.
12485
12486 2020-03-13 Tom Tromey <tom@tromey.com>
12487
12488 * valprint.c (generic_val_print): Update.
12489 (generic_value_print): Update.
12490 * valprint.c (generic_val_print_enum): Don't call
12491 val_print_scalar_formatted.
12492
12493 2020-03-13 Tom Tromey <tom@tromey.com>
12494
12495 * valprint.c (generic_value_print): Call generic_value_print_ptr.
12496 * valprint.c (generic_value_print_ptr): New function.
12497
12498 2020-03-13 Tom Tromey <tom@tromey.com>
12499
12500 * valprint.c (generic_value_print): Rewrite.
12501
12502 2020-03-13 Tom Tromey <tom@tromey.com>
12503
12504 * p-valprint.c (pascal_object_print_value_fields)
12505 (pascal_object_print_value): New functions.
12506
12507 2020-03-13 Tom Tromey <tom@tromey.com>
12508
12509 * p-valprint.c (pascal_value_print_inner): Rewrite.
12510
12511 2020-03-13 Tom Tromey <tom@tromey.com>
12512
12513 * f-valprint.c (f_value_print_innner): Rewrite.
12514
12515 2020-03-13 Tom Tromey <tom@tromey.com>
12516
12517 * m2-valprint.c (m2_print_unbounded_array): New overload.
12518 (m2_print_unbounded_array): Update.
12519 (m2_print_array_contents): Take a struct value.
12520 (m2_value_print_inner): Rewrite.
12521
12522 2020-03-13 Tom Tromey <tom@tromey.com>
12523
12524 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12525 (d_value_print_inner): New function.
12526 * d-lang.h (d_value_print_inner): Declare.
12527 * d-lang.c (d_language_defn): Use d_value_print_inner.
12528
12529 2020-03-13 Tom Tromey <tom@tromey.com>
12530
12531 * go-valprint.c (go_value_print_inner): New function.
12532 * go-lang.h (go_value_print_inner): Declare.
12533 * go-lang.c (go_language_defn): Use go_value_print_inner.
12534
12535 2020-03-13 Tom Tromey <tom@tromey.com>
12536
12537 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12538 API.
12539 (rust_val_print): Rewrite.
12540 (rust_value_print_inner): New function, from rust_val_print.
12541 (rust_language_defn): Use rust_value_print_inner.
12542
12543 2020-03-13 Tom Tromey <tom@tromey.com>
12544
12545 * ada-valprint.c (ada_value_print_inner): New function.
12546 * ada-lang.h (ada_value_print_inner): Declare.
12547 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12548
12549 2020-03-13 Tom Tromey <tom@tromey.com>
12550
12551 * f-valprint.c (f_value_print_innner): New function.
12552 * f-lang.h (f_value_print_innner): Declare.
12553 * f-lang.c (f_language_defn): Use f_value_print_innner.
12554
12555 2020-03-13 Tom Tromey <tom@tromey.com>
12556
12557 * p-valprint.c (pascal_value_print_inner): New function.
12558 * p-lang.h (pascal_value_print_inner): Declare.
12559 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12560
12561 2020-03-13 Tom Tromey <tom@tromey.com>
12562
12563 * m2-valprint.c (m2_value_print_inner): New function.
12564 * m2-lang.h (m2_value_print_inner): Declare.
12565 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12566
12567 2020-03-13 Tom Tromey <tom@tromey.com>
12568
12569 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12570 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12571 * c-valprint.c (c_value_print_inner): New function.
12572 * c-lang.h (c_value_print_inner): Declare.
12573 * c-lang.c (c_language_defn, cplus_language_defn)
12574 (asm_language_defn, minimal_language_defn): Use
12575 c_value_print_inner.
12576
12577 2020-03-13 Tom Tromey <tom@tromey.com>
12578
12579 * p-valprint.c (pascal_object_print_value_fields): Now static.
12580 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12581
12582 2020-03-13 Tom Tromey <tom@tromey.com>
12583
12584 * c-valprint.c (c_val_print_array): Simplify.
12585
12586 2020-03-13 Tom Tromey <tom@tromey.com>
12587
12588 * valprint.c (value_print_array_elements): New function.
12589 * valprint.h (value_print_array_elements): Declare.
12590
12591 2020-03-13 Tom Tromey <tom@tromey.com>
12592
12593 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12594 * mips-tdep.c (mips_print_register): Use
12595 value_print_scalar_formatted.
12596
12597 2020-03-13 Tom Tromey <tom@tromey.com>
12598
12599 * valprint.h (value_print_scalar_formatted): Declare.
12600 * valprint.c (value_print_scalar_formatted): New function.
12601
12602 2020-03-13 Tom Tromey <tom@tromey.com>
12603
12604 * valprint.h (generic_value_print): Declare.
12605 * valprint.c (generic_value_print): New function.
12606
12607 2020-03-13 Tom Tromey <tom@tromey.com>
12608
12609 * valprint.c (do_val_print): Call la_value_print_inner, if
12610 available.
12611 * rust-lang.c (rust_language_defn): Update.
12612 * p-lang.c (pascal_language_defn): Update.
12613 * opencl-lang.c (opencl_language_defn): Update.
12614 * objc-lang.c (objc_language_defn): Update.
12615 * m2-lang.c (m2_language_defn): Update.
12616 * language.h (struct language_defn) <la_value_print_inner>: New
12617 member.
12618 * language.c (unknown_language_defn, auto_language_defn): Update.
12619 * go-lang.c (go_language_defn): Update.
12620 * f-lang.c (f_language_defn): Update.
12621 * d-lang.c (d_language_defn): Update.
12622 * c-lang.c (c_language_defn, cplus_language_defn)
12623 (asm_language_defn, minimal_language_defn): Update.
12624 * ada-lang.c (ada_language_defn): Update.
12625
12626 2020-03-13 Tom Tromey <tom@tromey.com>
12627
12628 * c-valprint.c (c_value_print): Use common_val_print.
12629
12630 2020-03-13 Tom Tromey <tom@tromey.com>
12631
12632 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12633
12634 2020-03-13 Tom Tromey <tom@tromey.com>
12635
12636 * f-valprint.c (f77_print_array_1, f_val_print): Use
12637 common_val_print.
12638
12639 2020-03-13 Tom Tromey <tom@tromey.com>
12640
12641 * riscv-tdep.c (riscv_print_one_register_info): Use
12642 common_val_print.
12643
12644 2020-03-13 Tom Tromey <tom@tromey.com>
12645
12646 * mi/mi-main.c (output_register): Use common_val_print.
12647
12648 2020-03-13 Tom Tromey <tom@tromey.com>
12649
12650 * infcmd.c (default_print_one_register_info): Use
12651 common_val_print.
12652
12653 2020-03-13 Tom Tromey <tom@tromey.com>
12654
12655 * valprint.h (common_val_print_checked): Declare.
12656 * valprint.c (common_val_print_checked): New function.
12657 * stack.c (print_frame_arg): Use common_val_print_checked.
12658
12659 2020-03-13 Tom Tromey <tom@tromey.com>
12660
12661 * valprint.c (do_val_print): New function, from val_print.
12662 (val_print): Use do_val_print.
12663 (common_val_print): Use do_val_print.
12664
12665 2020-03-13 Tom Tromey <tom@tromey.com>
12666
12667 * valprint.c (value_print): Use scoped_value_mark.
12668
12669 2020-03-13 Tom de Vries <tdevries@suse.de>
12670
12671 PR symtab/25646
12672 * psymtab.c (partial_symtab::partial_symtab): Don't set
12673 globals_offset and statics_offset. Push element onto
12674 current_global_psymbols and current_static_psymbols stacks.
12675 (concat): New function.
12676 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12677 element from current_global_psymbols and current_static_psymbols
12678 stacks. Concat popped elements to global_psymbols and
12679 static_symbols.
12680 (add_psymbol_to_list): Use current_global_psymbols and
12681 current_static_psymbols stacks.
12682 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12683 current_static_psymbols fields.
12684
12685 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12686
12687 * corelow.c (sniff_core_bfd): Remove.
12688 (class core_target) <m_core_vec>: Remove.
12689 (core_target::core_target): Update.
12690 (core_file_fns): Remove.
12691 (deprecated_add_core_fns): Remove.
12692 (default_core_sniffer): Remove.
12693 (sniff_core_bfd): Remove.
12694 (default_check_format): Remove.
12695 (gdb_check_format): Remove.
12696 (core_target_open): Update.
12697 (core_target::get_core_register_section): Update.
12698 (get_core_registers_cb): Update.
12699 (core_target::fetch_registers): Update.
12700 * gdbcore.h (struct core_fns): Remove.
12701 (deprecated_add_core_fns): Remove.
12702 (default_core_sniffer): Remove.
12703 (default_check_format): Remove.
12704
12705 2020-03-12 Tom Tromey <tom@tromey.com>
12706
12707 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12708 CORE_ADDR.
12709 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12710
12711 2020-03-12 Tom Tromey <tom@tromey.com>
12712
12713 * remote.c (remote_target::download_tracepoint)
12714 (remote_target::enable_tracepoint)
12715 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12716 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12717 sprintf_vma.
12718
12719 2020-03-12 Tom Tromey <tom@tromey.com>
12720
12721 * symfile-mem.c: Update CORE_ADDR size assert.
12722
12723 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12724
12725 * selftest.m4: Move to gdbsupport/.
12726 * acinclude.m4: Update path to selftest.m4.
12727
12728 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12729
12730 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12731 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12732 gdbarch-selfselftests.c and selftest-arch.c.
12733 (SUBDIR_UNITTESTS_OBS): Rename to...
12734 (SELFTESTS_OBS): ... this.
12735 (COMMON_SFILES): Remove disasm-selftests.c and
12736 gdbarch-selftests.c.
12737 * configure.ac: Don't add selftest-arch.{c,o} to
12738 CONFIG_{SRCS,OBS}.
12739 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12740 preprocessor conditions.
12741
12742 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12743
12744 * configure.ac: Don't source bfd/development.sh.
12745 * selftest.m4: Modify comment.
12746 * configure: Re-generate.
12747
12748 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12749
12750 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12751 not "true" or "false".
12752 * configure: Re-generate.
12753
12754 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12755
12756 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12757 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12758 renamed to arm_nbsd_supply_gregset.
12759 (fetch_register): Update to call arm_nbsd_supply_gregset.
12760 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12761 (arm_netbsd_nat_target::fetch_registers): Update.
12762 (fetch_elfcore_registers): Removed.
12763 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12764 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12765 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12766 not require NetBSD system headers.
12767 (arm_nbsd_regset): New struct.
12768 (arm_nbsd_iterate_over_regset_sections): New function.
12769 (arm_netbsd_init_abi_common): Updated to call
12770 set_gdbarch_iterate_over_regset_sections.
12771 * arm-nbsd-tdep.h: New file.
12772
12773 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12774
12775 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12776 recursion.
12777
12778 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12779
12780 * configure: Re-generate.
12781
12782 2020-03-11 Tom Tromey <tromey@adacore.com>
12783
12784 * ada-typeprint.c (print_choices): Fix comment.
12785
12786 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12787
12788 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12789 previous item in the list, when the list has no items.
12790
12791 2020-03-11 Tom de Vries <tdevries@suse.de>
12792
12793 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12794 PROP_LOCLIST handling code.
12795
12796 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12797
12798 * buildsym-legacy.c (record_line): Pass extra parameter to
12799 record_line.
12800 * buildsym.c (buildsym_compunit::record_line): Take an extra
12801 parameter, reduce duplication in the line table, and record the
12802 is_stmt flag in the line table.
12803 * buildsym.h (buildsym_compunit::record_line): Add extra
12804 parameter.
12805 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12806 non-statement lines.
12807 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12808 this to the symtab builder.
12809 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12810 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12811 through to dwarf_record_line_1.
12812 * infrun.c (process_event_stop_test): When stepping, don't stop at
12813 a non-statement instruction, and only refresh the step info when
12814 we land in the middle of a line's range. Also add an extra
12815 comment.
12816 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12817 field.
12818 * record-btrace.c (btrace_find_line_range): Only record lines
12819 marked as is-statement.
12820 * stack.c (frame_show_address): Show the frame address if we are
12821 in a non-statement sal.
12822 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12823 (maintenance_print_one_line_table): Print a header for the is_stmt
12824 column, and include is_stmt information in the output.
12825 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12826 preference to non-statements.
12827 (find_pcs_for_symtab_line): Prefer is-statement entries.
12828 (find_line_common): Likewise.
12829 * symtab.h (struct linetable_entry): Add is_stmt field.
12830 (struct symtab_and_line): Likewise.
12831 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12832 arranging the line table.
12833
12834 2020-03-07 Tom de Vries <tdevries@suse.de>
12835
12836 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12837 DIE.
12838
12839 2020-03-07 Tom Tromey <tom@tromey.com>
12840
12841 * valops.c (value_literal_complex): Remove obsolete comment.
12842 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12843 comment.
12844
12845 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12846
12847 * infrun.h: Forward-declare thread_info.
12848 (set_step_info): Add thread_info parameter, add doc.
12849 * infrun.c (set_step_info): Add thread_info parameter, move doc
12850 to header.
12851 * infrun.c (process_event_stop_test): Pass thread to
12852 set_step_info call.
12853 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12854 set_step_info.
12855 (prepare_one_step): Add thread_info parameter, pass it to
12856 set_step_frame and prepare_one_step (recursive) call.
12857 (step_1): Pass thread to prepare_one_step call.
12858 (step_command_fsm::should_stop): Pass thread to
12859 prepare_one_step.
12860 (until_next_fsm): Pass thread to set_step_frame call.
12861 (finish_command): Pass thread to set_step_info call.
12862
12863 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12864
12865 * windows-tdep.c (windows_solib_create_inferior_hook):
12866 Check if inferior is running.
12867
12868 2020-03-06 Tom de Vries <tdevries@suse.de>
12869
12870 * NEWS: Fix "the the".
12871 * ctfread.c: Same.
12872
12873 2020-03-06 Tom de Vries <tdevries@suse.de>
12874
12875 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12876
12877 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12878
12879 * .dir-locals.el: Add a comment referencing the other copies of
12880 this file.
12881
12882 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12883
12884 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12885 psargs.
12886
12887 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12888
12889 * .gitattributes: New file.
12890
12891 2020-03-04 Tom Tromey <tom@tromey.com>
12892
12893 * symmisc.c (print_symbol_bcache_statistics)
12894 (print_objfile_statistics): Update.
12895 * symfile.c (allocate_symtab): Use intern.
12896 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12897 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12898 macro_cache>: Remove.
12899 <string_cache>: New member.
12900 (struct objfile) <intern>: New methods.
12901 * elfread.c (elf_symtab_read): Use intern.
12902 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12903 (dwarf2_compute_name, dwarf2_physname)
12904 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12905 names.
12906 (guess_partial_die_structure_name): Update.
12907 (partial_die_info::fixup): Intern name.
12908 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12909 name.
12910 (dwarf2_name): Intern name. Update.
12911 * buildsym.c (buildsym_compunit::get_macro_table): Use
12912 string_cache.
12913
12914 2020-03-04 Tom Tromey <tom@tromey.com>
12915
12916 * jit.c (bfd_open_from_target_memory): Make "target" const.
12917 * corefile.c (gnutarget): Now const.
12918 * gdbcore.h (gnutarget): Now const.
12919
12920 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12921
12922 * NEWS: Mention support for WOW64 processes.
12923 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12924 (amd64_windows_segment_register_p): Remove static.
12925 (_initialize_amd64_windows_nat): Update.
12926 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12927 * i386-windows-nat.c (context_offset): Update.
12928 (i386_mappings): Rename and remove static.
12929 (i386_windows_segment_register_p): Remove static.
12930 (_initialize_i386_windows_nat): Update.
12931 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12932 (STATUS_WX86_SINGLE_STEP): New macro.
12933 (EnumProcessModulesEx): New macro.
12934 (Wow64SuspendThread): New macro.
12935 (Wow64GetThreadContext): New macro.
12936 (Wow64SetThreadContext): New macro.
12937 (Wow64GetThreadSelectorEntry): New macro.
12938 (windows_set_context_register_offsets): Add static.
12939 (windows_set_segment_register_p): Likewise.
12940 (windows_add_thread): Adapt for WOW64 processes.
12941 (windows_fetch_one_register): Likewise.
12942 (windows_nat_target::fetch_registers): Likewise.
12943 (windows_store_one_register): Likewise.
12944 (display_selector): Likewise.
12945 (display_selectors): Likewise.
12946 (handle_exception): Likewise.
12947 (windows_continue): Likewise.
12948 (windows_nat_target::resume): Likewise.
12949 (windows_add_all_dlls): Likewise.
12950 (do_initial_windows_stuff): Likewise.
12951 (windows_nat_target::attach): Likewise.
12952 (windows_get_exec_module_filename): Likewise.
12953 (windows_nat_target::create_inferior): Likewise.
12954 (windows_xfer_siginfo): Likewise.
12955 (_initialize_loadable): Initialize Wow64SuspendThread,
12956 Wow64GetThreadContext, Wow64SetThreadContext,
12957 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12958 * windows-nat.h (windows_set_context_register_offsets):
12959 Remove declaration.
12960 (windows_set_segment_register_p): Likewise.
12961 (i386_windows_segment_register_p): Add declaration.
12962 (amd64_windows_segment_register_p): Likewise.
12963
12964 2020-03-04 Luis Machado <luis.machado@linaro.org>
12965
12966 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12967 in "info registers" for AArch64/ARM.
12968
12969 The change caused "info registers" to not print GPR's.
12970
12971 gdb/ChangeLog:
12972
12973 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12974
12975 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12976 when reg->group is empty and reggroup is not.
12977
12978 2020-03-03 Tom Tromey <tromey@adacore.com>
12979
12980 * dwarf2/frame.c (struct dwarf2_frame_cache)
12981 <checked_tailcall_bottom, entry_cfa_sp_offset,
12982 entry_cfa_sp_offset_p>: Remove members.
12983 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12984 (dwarf2_frame_prev_register): Don't call
12985 dwarf2_tailcall_sniffer_first.
12986 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12987 * frame-unwind.c (add_unwinder): New fuction.
12988 (frame_unwind_init): Use it. Add tailcall unwinder.
12989
12990 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12991 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12992
12993 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12994 value should be printed as true.
12995
12996 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12997
12998 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12999 (windows_init_abi): Set and use windows_so_ops.
13000
13001 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13002
13003 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13004 when verifying if dealing with a convenience variable.
13005
13006 2020-03-03 Luis Machado <luis.machado@linaro.org>
13007
13008 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13009
13010 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13011
13012 * infrun.c (gdbarch_supports_displaced_stepping): New.
13013 (use_displaced_stepping): Break up conditions in smaller pieces.
13014 Use gdbarch_supports_displaced_stepping.
13015 (displaced_step_prepare_throw): Use
13016 gdbarch_supports_displaced_stepping.
13017
13018 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13019
13020 * NEWS: Mention new behaviour of the history filename.
13021 * top.c (write_history_p): Add comment.
13022 (show_write_history_p): Add header comment, give a different
13023 message when history writing is on, but the history filename is
13024 empty.
13025 (history_filename): Add comment.
13026 (history_filename_empty): New function.
13027 (show_history_filename): Add header comment, give a different
13028 message when the filename is empty.
13029 (init_history): Compare history_filename against nullptr, and only
13030 read history if the filename is not empty.
13031 (set_history_filename): Add header comment, and only make
13032 non-empty filenames absolute.
13033 (init_main): Make the filename argument to 'set history filename'
13034 optional.
13035
13036 2020-03-02 Christian Biesinger <cbiesinger@google.com>
13037
13038 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13039 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13040 (fetch_fp_register): Update.
13041 (fetch_fp_regs): Update.
13042 (store_fp_register): Update.
13043 (store_fp_regs): Update.
13044 (arm_netbsd_nat_target::read_description): New function.
13045 (fetch_elfcore_registers): Update.
13046
13047 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13048
13049 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13050 general_thread if the stop reply is missing a thread-id.
13051 (remote_target::process_stop_reply): Use the first non-exited
13052 thread if the target didn't pass a thread-id.
13053 * infrun.c (do_target_wait): Move call to
13054 switch_to_inferior_no_thread to ....
13055 (do_target_wait_1): ... here.
13056
13057 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13058
13059 * debuginfod-support.c: Include defs.h first.
13060
13061 2020-02-28 Tom de Vries <tdevries@suse.de>
13062
13063 * symfile.c (set_initial_language): Use default language for lookup.
13064
13065 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
13066
13067 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13068 reader variable, pass `this` to read_cutu_die_from_dwo.
13069
13070 2020-02-27 Aaron Merey <amerey@redhat.com>
13071
13072 * source.c (open_source_file): Check for nullptr when computing
13073 srcpath.
13074
13075 2020-02-27 Tom Tromey <tromey@adacore.com>
13076
13077 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13078 member.
13079 (dwarf2_add_field): Don't update nfields.
13080 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13081
13082 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13083
13084 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13085 abs.
13086
13087 2020-02-26 Tom Tromey <tom@tromey.com>
13088
13089 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13090 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13091 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13092 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13093 per_cu_data.
13094
13095 2020-02-26 Tom Tromey <tom@tromey.com>
13096
13097 * dwarf2/index-write.c (psym_index_map): Change type.
13098 (add_address_entry_worker, write_one_signatured_type)
13099 (recursively_count_psymbols, recursively_write_psymbols)
13100 (class debug_names, psyms_seen_size, write_gdbindex)
13101 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13102
13103 2020-02-26 Aaron Merey <amerey@redhat.com>
13104
13105 * Makefile.in: Handle optional debuginfod support.
13106 * NEWS: Update.
13107 * README: Add --with-debuginfod summary.
13108 * config.in: Regenerate.
13109 * configure: Regenerate.
13110 * configure.ac: Handle optional debuginfod support.
13111 * debuginfod-support.c: debuginfod helper functions.
13112 * debuginfod-support.h: Ditto.
13113 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13114 summary.
13115 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13116 when a dwz file cannot be found.
13117 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13118 debuginfo file cannot be found.
13119 * source.c (open_source_file): Query debuginfod servers when a
13120 source file cannot be found.
13121 * top.c (print_gdb_configuration): Include
13122 --{with,without}-debuginfod in the output.
13123
13124 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13125
13126 * thread.c (thr_try_catch_cmd): Print thread name.
13127
13128 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
13129
13130 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13131 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13132 dwarf2_fetch_die_type_sect_off): Move to...
13133 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13134 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13135 dwarf2_fetch_die_type_sect_off): ... here.
13136 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13137 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13138 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13139
13140 2020-02-26 Tom de Vries <tdevries@suse.de>
13141
13142 PR gdb/25603
13143 * symfile.c (set_initial_language): Exit-early if
13144 language_mode == language_mode_manual.
13145
13146 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13147
13148 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13149 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13150 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13151
13152 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13153
13154 * gdbtypes.c (create_array_type_with_stride): Handle negative
13155 array strides.
13156 * valarith.c (value_subscripted_rvalue): Likewise.
13157
13158 2020-02-25 Luis Machado <luis.machado@linaro.org>
13159
13160 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13161
13162 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13163
13164 * loc.h (dwarf2_get_die_type): Move to...
13165 * read.h (dwarf2_get_die_type): ... here.
13166 * read.c (dwarf2_get_die_type): Move doc to header.
13167
13168 2020-02-25 Joel Brobecker <brobecker@adacore.com>
13169
13170 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13171 'gnulib/Makefile.in' to the list.
13172
13173 2020-02-24 Tom Tromey <tom@tromey.com>
13174
13175 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13176 Remove.
13177 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13178 XOBNEWVEC.
13179
13180 2020-02-24 Tom Tromey <tom@tromey.com>
13181
13182 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13183 New method.
13184 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13185 (dw2_do_instantiate_symtab, dw2_get_file_names)
13186 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13187
13188 2020-02-24 Tom Tromey <tom@tromey.com>
13189
13190 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13191 make_scoped_restore.
13192 (dwarf2_psymtab::read_symtab): Don't clear
13193 reading_partial_symbols.
13194
13195 2020-02-24 Tom de Vries <tdevries@suse.de>
13196
13197 PR gdb/25592
13198 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13199
13200 2020-02-24 Tom de Vries <tdevries@suse.de>
13201
13202 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13203 commands layout next/prev/regs.
13204
13205 2020-02-22 Tom Tromey <tom@tromey.com>
13206
13207 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13208 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13209
13210 2020-02-22 Tom Tromey <tom@tromey.com>
13211
13212 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13213
13214 2020-02-22 Tom Tromey <tom@tromey.com>
13215
13216 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13217 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13218 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13219 * tui/tui.c (_initialize_tui): Add usage text.
13220
13221 2020-02-22 Tom Tromey <tom@tromey.com>
13222
13223 * tui/tui-win.c (tui_set_focus_command)
13224 (tui_set_win_height_command): Use error_no_arg.
13225 (_initialize_tui_win): Update help text.
13226 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13227
13228 2020-02-22 Tom Tromey <tom@tromey.com>
13229
13230 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13231 * tui/tui-disasm.h (struct tui_disasm_window)
13232 <display_start_addr>: Declare.
13233 * tui/tui-source.h (struct tui_source_window)
13234 <display_start_addr>: Declare.
13235 * tui/tui-winsource.h (struct tui_source_window_base)
13236 <show_source_line, display_start_addr>: New methods.
13237 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13238 Rename and move to protected section.
13239 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13240 (tui_source_window_base::do_erase_source_content): Update.
13241 (tui_source_window_base::show_source_line): Now a method.
13242 (tui_source_window_base::show_source_content)
13243 (tui_source_window_base::tui_source_window_base)
13244 (tui_source_window_base::rerender)
13245 (tui_source_window_base::refill)
13246 (tui_source_window_base::do_scroll_horizontal)
13247 (tui_source_window_base::set_is_exec_point_at)
13248 (tui_source_window_base::update_breakpoint_info)
13249 (tui_source_window_base::update_exec_info): Update.
13250 * tui/tui-source.c (tui_source_window::set_contents)
13251 (tui_source_window::showing_source_p)
13252 (tui_source_window::do_scroll_vertical)
13253 (tui_source_window::location_matches_p)
13254 (tui_source_window::line_is_displayed): Update.
13255 (tui_source_window::display_start_addr): New method.
13256 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13257 (tui_disasm_window::do_scroll_vertical)
13258 (tui_disasm_window::location_matches_p): Update.
13259 (tui_disasm_window::display_start_addr): New method.
13260
13261 2020-02-22 Tom Tromey <tom@tromey.com>
13262
13263 * NEWS: Add entry for gdb.register_window_type.
13264 * tui/tui-layout.h (window_factory): New typedef.
13265 (tui_register_window): Declare.
13266 * tui/tui-layout.c (saved_tui_windows): New global.
13267 (tui_apply_current_layout): Use it.
13268 (tui_register_window): New function.
13269 * python/python.c (do_start_initialization): Call
13270 gdbpy_initialize_tui.
13271 (python_GdbMethods): Add "register_window_type" function.
13272 * python/python-internal.h (gdbpy_register_tui_window)
13273 (gdbpy_initialize_tui): Declare.
13274 * python/py-tui.c: New file.
13275 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13276
13277 2020-02-22 Tom Tromey <tom@tromey.com>
13278
13279 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13280
13281 2020-02-22 Tom Tromey <tom@tromey.com>
13282
13283 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13284 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13285 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13286 (tui_set_win_focus_to): Move from tui-win.c.
13287
13288 2020-02-22 Tom Tromey <tom@tromey.com>
13289
13290 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13291 functions.
13292 (known_window_types): New global.
13293 (tui_get_window_by_name): Reimplement.
13294 (initialize_known_windows): New function.
13295 (validate_window_name): Rewrite.
13296 (_initialize_tui_layout): Call initialize_known_windows.
13297
13298 2020-02-22 Tom Tromey <tom@tromey.com>
13299
13300 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13301 Remove constants.
13302 * tui/tui-winsource.h (struct tui_source_window_base)
13303 <tui_source_window_base>: Remove parameter.
13304 * tui/tui-winsource.c
13305 (tui_source_window_base::tui_source_window_base): Remove
13306 parameter.
13307 (tui_source_window_base::refill): Update.
13308 * tui/tui-stack.h (struct tui_locator_window)
13309 <tui_locator_window>: Update.
13310 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13311 Default the constructor.
13312 * tui/tui-regs.h (struct tui_data_item_window)
13313 <tui_data_item_window>: Default the constructor.
13314 (struct tui_data_window) <tui_data_window>: Likewise.
13315 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13316 Default the constructor.
13317 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13318 Default the constructor.
13319 <type>: Remove.
13320 (struct tui_win_info) <tui_win_info>: Default the constructor.
13321 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13322 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13323 Default the constructor.
13324
13325 2020-02-22 Tom Tromey <tom@tromey.com>
13326
13327 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13328 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13329 * tui/tui-win.c (tui_resize_all): Don't call
13330 tui_delete_invisible_windows.
13331 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13332 done.
13333 (tui_set_layout): Update.
13334 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13335 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13336 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13337
13338 2020-02-22 Tom Tromey <tom@tromey.com>
13339
13340 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13341 correctly.
13342
13343 2020-02-22 Tom Tromey <tom@tromey.com>
13344
13345 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13346
13347 2020-02-22 Tom Tromey <tom@tromey.com>
13348
13349 * tui/tui-winsource.h (struct tui_source_window_iterator)
13350 <inner_iterator>: New etytypedef.
13351 <tui_source_window_iterator>: Take "end" parameter.
13352 <tui_source_window_iterator>: Take iterator.
13353 <operator*, advance>: Update.
13354 <m_iter>: Change type.
13355 <m_end>: New field.
13356 (struct tui_source_windows) <begin, end>: Update.
13357 * tui/tui-layout.c (tui_windows): New global.
13358 (tui_apply_current_layout): Clear tui_windows.
13359 (tui_layout_window::apply): Update tui_windows.
13360 * tui/tui-data.h (tui_windows): Declare.
13361 (all_tui_windows): Now inline function.
13362 (class tui_window_iterator, struct all_tui_windows): Remove.
13363
13364 2020-02-22 Tom Tromey <tom@tromey.com>
13365
13366 PR tui/17850:
13367 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13368 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13369 "height" argument.
13370 (class tui_layout_window) <get_sizes>: Likewise.
13371 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13372 argument.
13373 <get_sizes>: Add "height" argument.
13374 <m_vertical>: New field.
13375 * tui/tui-layout.c (tui_layout_split::clone): Update.
13376 (tui_layout_split::get_sizes): Add "height" argument.
13377 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13378 (tui_new_layout_command): Parse "-horizontal".
13379 (_initialize_tui_layout): Update help string.
13380 (tui_layout_split::specification): Add "-horizontal" when needed.
13381 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13382 argument.
13383 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13384 New methods.
13385
13386 2020-02-22 Tom Tromey <tom@tromey.com>
13387
13388 * tui/tui-layout.h (enum tui_adjust_result): New.
13389 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13390 (class tui_layout_window) <adjust_size>: Return
13391 tui_adjust_result. Rewrite.
13392 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13393 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13394
13395 2020-02-22 Tom Tromey <tom@tromey.com>
13396
13397 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13398 parameter and return types.
13399 (class tui_layout_base) <specification>: Add "depth".
13400 (class tui_layout_window) <specification>: Add "depth".
13401 (class tui_layout_split) <specification>: Add "depth".
13402 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13403 and return types.
13404 (tui_new_layout_command): Parse sub-layouts.
13405 (_initialize_tui_layout): Update help string.
13406 (tui_layout_window::specification): Add "depth".
13407 (add_layout_command): Update.
13408
13409 2020-02-22 Tom Tromey <tom@tromey.com>
13410
13411 * NEWS: Add "tui new-layout" item.
13412 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13413 Add new-layout command to help text.
13414 (validate_window_name): New function.
13415 (tui_new_layout_command): New function.
13416 (_initialize_tui_layout): Register "new-layout".
13417 (tui_layout_window::specification): New method.
13418 (tui_layout_window::specification): New method.
13419 * tui/tui-layout.h (class tui_layout_base) <specification>: New
13420 method.
13421 (class tui_layout_window) <specification>: New method.
13422 (class tui_layout_split) <specification>: New method.
13423
13424 2020-02-22 Tom Tromey <tom@tromey.com>
13425
13426 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
13427 * tui/tui-win.c (window_name_completer): Update comment.
13428 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
13429 Declare method.
13430 (class tui_layout_window) <replace_window>: Likewise.
13431 (class tui_layout_split) <replace_window>: Likewise.
13432 (tui_set_layout): Don't declare.
13433 (tui_set_initial_layout): Declare function.
13434 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
13435 (asm_regs_layout): New globals.
13436 (tui_current_layout, show_layout): Remove.
13437 (tui_set_layout, tui_add_win_to_layout): Rewrite.
13438 (find_layout, tui_apply_layout): New function.
13439 (layout_completer): Remove.
13440 (tui_next_layout): Reimplement.
13441 (tui_next_layout_command): New function.
13442 (tui_set_initial_layout, tui_prev_layout_command): New functions.
13443 (tui_regs_layout): Reimplement.
13444 (tui_regs_layout_command): New function.
13445 (extract_display_start_addr): Rewrite.
13446 (next_layout, prev_layout): Remove.
13447 (tui_layout_window::replace_window): New method.
13448 (tui_layout_split::replace_window): New method.
13449 (destroy_layout): New function.
13450 (layout_list): New global.
13451 (add_layout_command): New function.
13452 (initialize_layouts): Update.
13453 (tui_layout_command): New function.
13454 (_initialize_tui_layout): Install "layout" commands.
13455 * tui/tui-data.h (enum tui_layout_type): Remove.
13456 (tui_current_layout): Don't declare.
13457
13458 2020-02-22 Tom Tromey <tom@tromey.com>
13459
13460 * tui/tui-regs.c (tui_reg_layout): Remove.
13461 (tui_reg_command): Use tui_regs_layout.
13462 * tui/tui-layout.h (tui_reg_command): Declare.
13463 * tui/tui-layout.c (tui_reg_command): New function.
13464
13465 2020-02-22 Tom Tromey <tom@tromey.com>
13466
13467 * tui/tui.c (tui_rl_delete_other_windows): Call
13468 tui_remove_some_windows.
13469 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13470 Declare method.
13471 (class tui_layout_window) <remove_windows>: New method.
13472 (class tui_layout_split) <remove_windows>: Declare.
13473 (tui_remove_some_windows): Declare.
13474 * tui/tui-layout.c (tui_remove_some_windows): New function.
13475 (tui_layout_split::remove_windows): New method.
13476
13477 2020-02-22 Tom Tromey <tom@tromey.com>
13478
13479 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
13480 * tui/tui-layout.h (tui_next_layout): Declare.
13481 * tui/tui-layout.c (tui_next_layout): New function.
13482
13483 2020-02-22 Tom Tromey <tom@tromey.com>
13484
13485 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
13486 correct coordinates.
13487
13488 2020-02-22 Tom Tromey <tom@tromey.com>
13489
13490 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
13491 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
13492 DATA_WIN case.
13493
13494 2020-02-22 Tom Tromey <tom@tromey.com>
13495
13496 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
13497 TUI_DISASM_WIN, not tui_win_list.
13498
13499 2020-02-22 Tom Tromey <tom@tromey.com>
13500
13501 * valprint.c (generic_val_print_enum_1)
13502 (val_print_type_code_flags): Style member names.
13503 * rust-lang.c (val_print_struct, rust_print_enum)
13504 (rust_print_struct_def, rust_internal_print_type): Style member
13505 names.
13506 * p-valprint.c (pascal_object_print_value_fields): Style member
13507 names. Only call fprintf_symbol_filtered for static members.
13508 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
13509 * f-valprint.c (f_val_print): Style member names.
13510 * f-typeprint.c (f_type_print_base): Style member names.
13511 * cp-valprint.c (cp_print_value_fields): Style member names. Only
13512 call fprintf_symbol_filtered for static members.
13513 (cp_print_class_member): Style member names.
13514 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
13515 member names.
13516 * ada-valprint.c (ada_print_scalar): Style enum names.
13517 (ada_val_print_enum): Likewise.
13518 * ada-typeprint.c (print_enum_type): Style enum names.
13519
13520 2020-02-21 Tom Tromey <tom@tromey.com>
13521
13522 * psympriv.h (struct partial_symtab): Update comment.
13523
13524 2020-02-21 Tom Tromey <tromey@adacore.com>
13525
13526 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13527 type is CORE_ADDR.
13528
13529 2020-02-21 Tom de Vries <tdevries@suse.de>
13530
13531 PR gdb/25534
13532 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13533 if dependencies[i]->user != NULL.
13534
13535 2020-02-21 Ali Tamur <tamur@google.com>
13536
13537 * dwarf2/read.c (dwarf2_name): Add null check.
13538
13539 2020-02-20 Tom Tromey <tom@tromey.com>
13540
13541 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13542 ">=", in binary search.
13543 (dwarf2_find_containing_comp_unit): New overload.
13544 (run_test): New self-test.
13545 (_initialize_dwarf2_read): Register new test.
13546
13547 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13548
13549 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13550 * riscv-tdep.h: Likewise.
13551 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13552 rv32-only CSR.
13553 * features/riscv/64bit-csr.xml: Regenerated.
13554
13555 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13556 Tom Tromey <tom@tromey.com>
13557
13558 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13559 of 'fputc_unfiltered'.
13560 (putchar_unfiltered): Call 'fputc_unfiltered'.
13561 (fputc_unfiltered): Call 'fputs_unfiltered'.
13562
13563 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13564
13565 * config.in: Regenerate.
13566 * configure: Regenerate.
13567 * configure.ac: Add --with-python-libdir option.
13568 * main.c: Use WITH_PYTHON_LIBDIR.
13569
13570 2020-02-19 Tom Tromey <tom@tromey.com>
13571
13572 * symtab.c (general_symbol_info::compute_and_set_names): Use
13573 obstack_strndup. Simplify call to symbol_set_demangled_name.
13574
13575 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13576
13577 * dwarf2/read.c (allocate_signatured_type_table,
13578 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13579 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13580 Remove objfile parameter, update all callers.
13581
13582 2020-02-19 Doug Evans <dje@google.com>
13583
13584 PR rust/25535
13585 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13586 rust_enum_variant calculation.
13587
13588 2020-02-19 Tom Tromey <tromey@adacore.com>
13589
13590 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13591
13592 2020-02-19 Tom Tromey <tromey@adacore.com>
13593
13594 * ada-lang.c (cache_symbol): Use obstack_strdup.
13595
13596 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13597
13598 * configure: Regenerate.
13599
13600 2020-02-19 Tom Tromey <tromey@adacore.com>
13601
13602 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13603 NULL check.
13604
13605 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13606
13607 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13608
13609 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13610
13611 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13612 if GDBSERVER is not defined.
13613 (riscv_tdesc_cache): Likewise, also store const target_desc.
13614 (STATIC_IN_GDB): Define.
13615 (riscv_create_target_description): Update declaration with
13616 STATIC_IN_GDB.
13617 (riscv_lookup_target_description): New function, only define if
13618 GDBSERVER is not defined.
13619 * arch/riscv.h (riscv_create_target_description): Declare only
13620 when GDBSERVER is defined.
13621 (riscv_lookup_target_description): New declaration when GDBSERVER
13622 is not defined.
13623 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13624 (riscv_linux_read_features): ...this, and return
13625 riscv_gdbarch_features instead of target_desc.
13626 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13627 (riscv_linux_read_description): Rename to...
13628 (riscv_linux_read_features): ...this.
13629 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13630 Update to use riscv_gdbarch_features and
13631 riscv_lookup_target_description.
13632 * riscv-tdep.c (riscv_find_default_target_description): Use
13633 riscv_lookup_target_description instead of
13634 riscv_create_target_description.
13635
13636 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13637
13638 * valprint.c (generic_val_print_enum_1): When printing a flag
13639 enum with value 0 and there is no enumerator with value 0, print
13640 just "0" instead of "(unknown: 0x0)".
13641
13642 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13643
13644 * valprint.c (generic_val_print_enum_1): Print unknown part of
13645 flag enum in hex.
13646
13647 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13648
13649 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13650 flag enums to contain duplicate enumerators.
13651 * valprint.c (generic_val_print_enum_1): Update comment.
13652
13653 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13654
13655 * dwarf2/read.c: Include "count-one-bits.h".
13656 (update_enumeration_type_from_children): If an enumerator has
13657 multiple bits set, don't treat the enumeration as a "flag enum".
13658 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13659 of flag enums have 0 or 1 bit set.
13660
13661 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13662
13663 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13664 conversion.
13665 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13666 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13667 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13668 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13669 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13670
13671 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13672
13673 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13674
13675 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13676
13677 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13678 displaced_step_closure_up.
13679 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13680 (struct displaced_step_closure_up):
13681 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13682 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13683 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13684 Likewise.
13685 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13686 * gdbarch.c, gdbarch.h: Re-generate.
13687 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13688 displaced_step_closure_up.
13689 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13690 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13691 * infrun.h (displaced_step_closure_up): New type alias.
13692 (struct displaced_step_inferior_state) <step_closure>: Change
13693 type to displaced_step_closure_up.
13694 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13695 displaced_step_closure_up.
13696 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13697
13698 2020-02-14 Tom Tromey <tom@tromey.com>
13699
13700 * minidebug.c (gnu_debug_key): New global.
13701 (find_separate_debug_file_in_section): Use it.
13702
13703 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13704
13705 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13706 std::unique_ptr.
13707 * gdbarch.c: Re-generate.
13708 * gdbarch.h: Re-generate.
13709 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13710 change.
13711 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13712 type to std::unique_ptr.
13713 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13714 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13715 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13716 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13717 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13718 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13719 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13720 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13721 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13722
13723 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13724
13725 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13726 std::unique_ptr.
13727 (displaced_step_clear): Rename to...
13728 (displaced_step_reset): ... this. Just call displaced->reset ().
13729 (displaced_step_clear_cleanup): Rename to...
13730 (displaced_step_reset_cleanup): ... this.
13731 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13732 (displaced_step_fixup): Likewise.
13733 (resume_1): Likewise.
13734 (handle_inferior_event): Restore child's memory before calling
13735 displaced_step_fixup on the parent.
13736 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13737 to std::unique_ptr.
13738 <step_closure>: Change type to std::unique_ptr.
13739
13740 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13741
13742 * arm-tdep.c: Include count-one-bits.h.
13743 (cleanup_block_store_pc): Use count_one_bits.
13744 (cleanup_block_load_pc): Use count_one_bits.
13745 (arm_copy_block_xfer): Use count_one_bits.
13746 (thumb2_copy_block_xfer): Use count_one_bits.
13747 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13748 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13749 (thumb_get_next_pcs_raw): Use count_one_bits.
13750 (arm_get_next_pcs_raw): Use count_one_bits_l.
13751 * arch/arm.c (bitcount): Remove.
13752 * arch/arm.h (bitcount): Remove.
13753
13754 2020-02-14 Tom Tromey <tromey@adacore.com>
13755
13756 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13757 Update.
13758 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13759 * dwarf2/loc.c (call_site_find_chain_1): Return
13760 unique_xmalloc_ptr.
13761 (call_site_find_chain): Likewise.
13762
13763 2020-02-14 Richard Biener <rguenther@suse.de>
13764
13765 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13766 on expression with division operators.
13767
13768 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13769
13770 * MAINTAINERS (Write After Approval): Adding myself.
13771
13772 2020-02-12 Tom Tromey <tom@tromey.com>
13773
13774 * event-loop.c (event_data, gdb_event, event_handler_func):
13775 Remove.
13776
13777 2020-02-12 Tom Tromey <tom@tromey.com>
13778
13779 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13780 (dwarf2_frame_objfile_data): Add comment.
13781 (find_comp_unit, set_comp_unit): New functions.
13782 (dwarf2_frame_find_fde): Use find_comp_unit.
13783 (dwarf2_build_frame_info): Use set_comp_unit.
13784
13785 2020-02-12 Tom Tromey <tom@tromey.com>
13786
13787 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13788 (comp_unit): Don't initialize objfile.
13789 (execute_cfa_program): Add text_offset parameter.
13790 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13791 (dwarf2_frame_cache): Update.
13792 (dwarf2_build_frame_info): Don't set "objfile" member.
13793
13794 2020-02-12 Tom Tromey <tom@tromey.com>
13795
13796 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13797 (decode_frame_entry): Likewise.
13798 (dwarf2_build_frame_info): Update.
13799
13800 2020-02-12 Tom Tromey <tom@tromey.com>
13801
13802 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13803 (decode_frame_entry_1): Use the comp_unit obstack.
13804
13805 2020-02-12 Tom Tromey <tom@tromey.com>
13806
13807 * dwarf2/frame.c (struct comp_unit): Add initializers and
13808 constructor.
13809 (dwarf2_frame_objfile_data): Store a comp_unit.
13810 (dwarf2_frame_find_fde): Update.
13811 (dwarf2_build_frame_info): Use "new".
13812
13813 2020-02-12 Tom Tromey <tom@tromey.com>
13814
13815 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13816 (dwarf2_fde_table): Typedef for std::vector.
13817 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13818 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13819 (decode_frame_entry): Update.
13820 (dwarf2_build_frame_info): Use "new".
13821
13822 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13823
13824 * arm-tdep.c (arm_gdbarch_init): Update.
13825 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13826 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13827 have_neon, is_m>: Change to bool.
13828
13829 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13830
13831 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13832
13833 2020-02-12 Tom Tromey <tom@tromey.com>
13834
13835 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13836
13837 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13838
13839 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13840 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13841
13842 2020-02-11 Tom Tromey <tom@tromey.com>
13843
13844 * psymtab.h: Update comment.
13845
13846 2020-02-11 Tom Tromey <tom@tromey.com>
13847
13848 * gdb_obstack.h (struct auto_obstack): Use
13849 DISABLE_COPY_AND_ASSIGN.
13850
13851 2020-02-11 Tom Tromey <tom@tromey.com>
13852
13853 * dwarf2/frame.h (struct objfile): Don't forward declare.
13854
13855 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13856
13857 * cris-tdep.c (cris_supply_gregset): Change signature to match
13858 what struct regset expects.
13859 (cris_regset): New struct.
13860 (fetch_core_registers): Remove.
13861 (cris_iterate_over_regset_sections): New function.
13862 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13863 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13864
13865 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13866
13867 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13868 registers.
13869
13870 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13871
13872 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13873
13874 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13875
13876 * configure: Re-generate.
13877
13878 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13879
13880 * configure: Re-generate.
13881
13882 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13883
13884 * acinclude: Update warning.m4 path.
13885 * warning.m4: Move to gdbsupport.
13886
13887 2020-02-11 Tom Tromey <tromey@adacore.com>
13888
13889 * remote.c (remote_console_output): Update.
13890 * printcmd.c (printf_command): Update.
13891 * event-loop.c (gdb_wait_for_event): Update.
13892 * linux-nat.c (sigchld_handler): Update.
13893 * remote-sim.c (gdb_os_write_stdout): Update.
13894 (gdb_os_flush_stdout): Update.
13895 (gdb_os_flush_stderr): Update.
13896 (gdb_os_write_stderr): Update.
13897 * exceptions.c (print_exception): Update.
13898 * remote-fileio.c (remote_fileio_func_read): Update.
13899 (remote_fileio_func_write): Update.
13900 * tui/tui.c (tui_enable): Update.
13901 * tui/tui-interp.c (tui_interp::init): Update.
13902 * utils.c (init_page_info): Update.
13903 (putchar_unfiltered, fputc_unfiltered): Update.
13904 (gdb_flush): Update.
13905 (emit_style_escape): Update.
13906 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13907 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13908 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13909 (stderr_file::write): Update.
13910 (stderr_file::puts): Update.
13911 * ui-file.h (ui_file_isatty, ui_file_write)
13912 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13913 (ui_file_puts): Don't declare.
13914
13915 2020-02-10 Tom de Vries <tdevries@suse.de>
13916
13917 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13918 sentinel to char *.
13919
13920 2020-02-09 Tom de Vries <tdevries@suse.de>
13921
13922 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13923 filename if it matches "<artificial>".
13924
13925 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13926
13927 * windows-tdep.c (struct enum_value_name): New struct.
13928 (create_enum): New function.
13929 (windows_get_siginfo_type): Create and use enum types.
13930
13931 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13932
13933 * NEWS: Mention $_siginfo support for Windows.
13934 * windows-nat.c (handle_exception): Set siginfo_er.
13935 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13936 (windows_xfer_siginfo): New function.
13937 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13938 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13939 (init_windows_gdbarch_data): New function.
13940 (get_windows_gdbarch_data): New function.
13941 (windows_get_siginfo_type): New function.
13942 (windows_init_abi): Register windows_get_siginfo_type.
13943 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13944
13945 2020-02-08 Tom Tromey <tom@tromey.com>
13946
13947 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13948 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13949 <keep>: Declare method.
13950 <m_keep>: Remove member.
13951 <~cutu_reader>: Remove.
13952 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13953 (cutu_reader::cutu_reader): Update.
13954 (cutu_reader::keep): Rename from ~cutu_reader.
13955 (process_psymtab_comp_unit, build_type_psymtabs_1)
13956 (process_skeletonless_type_unit, load_partial_comp_unit)
13957 (load_full_comp_unit, dwarf2_read_addr_index)
13958 (read_signatured_type): Update.
13959
13960 2020-02-08 Tom Tromey <tom@tromey.com>
13961
13962 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13963 "want_partial_unit" parameter.
13964 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13965 Inline check for DW_TAG_partial_unit.
13966 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13967
13968 2020-02-08 Tom Tromey <tom@tromey.com>
13969
13970 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13971 read.c.
13972 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13973 read.c.
13974
13975 2020-02-08 Tom Tromey <tom@tromey.com>
13976
13977 * dwarf2/read.c (read_address): Move to comp-unit.c.
13978 (dwarf2_rnglists_process, dwarf2_ranges_process)
13979 (read_attribute_value, dwarf_decode_lines_1)
13980 (var_decode_location, decode_locdesc): Update.
13981 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13982 read.c. Remove "cu" parameter.
13983 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13984 method.
13985
13986 2020-02-08 Tom Tromey <tom@tromey.com>
13987
13988 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13989 (read_indirect_line_string): Update.
13990 * dwarf2/comp-unit.c (read_offset): Remove.
13991 (read_comp_unit_head): Update.
13992 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13993 method.
13994 (read_offset): Don't declare.
13995
13996 2020-02-08 Tom Tromey <tom@tromey.com>
13997
13998 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13999 * dwarf2/read.c (struct comp_unit_head): Move to
14000 dwarf2/comp-unit.h.
14001 (enum class rcuh_kind): Move to comp-unit.h.
14002 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14003 (read_comp_unit_head, error_check_comp_unit_head)
14004 (read_and_check_comp_unit_head): Move to comp-unit.c.
14005 (read_offset, dwarf_unit_type_name): Likewise.
14006 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14007 (cutu_reader::cutu_reader, read_call_site_scope)
14008 (find_partial_die, follow_die_offset): Update.
14009 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14010
14011 2020-02-08 Tom Tromey <tom@tromey.com>
14012
14013 * dwarf2/read.c (read_offset_1): Move to leb.c.
14014 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14015 (dwarf_decode_macro_bytes): Update.
14016 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14017 * dwarf2/leb.h (read_offset): Declare.
14018
14019 2020-02-08 Tom Tromey <tom@tromey.com>
14020
14021 * dwarf2/read.c (dwarf2_section_size): Remove.
14022 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14023 Update.
14024 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14025
14026 2020-02-08 Tom Tromey <tom@tromey.com>
14027
14028 * dwarf2/read.c (read_initial_length): Move to leb.c.
14029 * dwarf2/leb.h (read_initial_length): Declare.
14030 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14031 handle_nonstd parameter.
14032 * dwarf2/frame.c (read_initial_length): Remove.
14033 (decode_frame_entry_1): Update.
14034
14035 2020-02-08 Tom Tromey <tom@tromey.com>
14036
14037 * dwarf2/loc.c (dwarf2_find_location_expression)
14038 (dwarf_evaluate_loc_desc::get_tls_address)
14039 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14040 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14041 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14042 (dwarf2_compile_property_to_c)
14043 (dwarf2_loc_desc_get_symbol_read_needs)
14044 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14045 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14046 (loclist_describe_location, loclist_tracepoint_var_ref)
14047 (loclist_generate_c_location): Update.
14048 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14049 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14050 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14051 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14052 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14053 (dwarf2_per_cu_data::addr_size)
14054 (dwarf2_per_cu_data::ref_addr_size)
14055 (dwarf2_per_cu_data::text_offset)
14056 (dwarf2_per_cu_data::addr_type): Now methods.
14057 (per_cu_header_read_in): Make per_cu "const".
14058 (dwarf2_version): Remove.
14059 (dwarf2_per_cu_data::int_type): Now a method.
14060 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14061 (set_die_type, read_array_type, read_subrange_index_type)
14062 (read_tag_string_type, read_subrange_type): Update.
14063 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14064 offset_size, ref_addr_size, text_offset, addr_type, version,
14065 objfile, int_type, addr_sized_int_type>: Declare methods.
14066
14067 2020-02-08 Tom Tromey <tom@tromey.com>
14068
14069 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14070 Move earlier.
14071
14072 2020-02-08 Tom Tromey <tom@tromey.com>
14073
14074 * dwarf2/read.h (dwarf_line_debug): Declare.
14075 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14076 * dwarf2/read.c: Move line_header code to new files.
14077 (dwarf_line_debug): No longer static.
14078 * dwarf2/line-header.c: New file.
14079 * dwarf2/line-header.h: New file.
14080
14081 2020-02-08 Tom Tromey <tom@tromey.com>
14082
14083 * dwarf2/read.c (struct line_header) <file_full_name,
14084 file_file_name>: Return unique_xmalloc_ptr.
14085 (line_header::file_file_name): Update.
14086 (line_header::file_full_name): Update.
14087 (dw2_get_file_names_reader): Update.
14088 (macro_start_file): Update.
14089
14090 2020-02-08 Tom Tromey <tom@tromey.com>
14091
14092 * dwarf2/read.c (struct line_header) <file_full_name,
14093 file_file_name>: Declare methods.
14094 (dw2_get_file_names_reader): Update.
14095 (file_file_name): Now a method.
14096 (file_full_name): Likewise.
14097 (macro_start_file): Update.
14098
14099 2020-02-08 Tom Tromey <tom@tromey.com>
14100
14101 * dwarf2/read.c (dwarf_always_disassemble)
14102 (show_dwarf_always_disassemble): Move to loc.c.
14103 (_initialize_dwarf2_read): Move "always-disassemble" registration
14104 to loc.c.
14105 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14106 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14107 static.
14108 (show_dwarf_always_disassemble): Move from read.c.
14109 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14110
14111 2020-02-08 Tom Tromey <tom@tromey.com>
14112
14113 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14114 (create_quick_file_names_table): Return htab_up.
14115 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14116 Update.
14117 * dwarf2/read.h (struct dwarf2_per_objfile)
14118 <quick_file_names_table>: Now htab_up.
14119
14120 2020-02-08 Tom Tromey <tom@tromey.com>
14121
14122 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14123
14124 2020-02-08 Tom Tromey <tom@tromey.com>
14125
14126 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14127 Rewrite.
14128 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14129 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14130 (abbrev_table::abbrev_table): No longer inline.
14131 (ABBREV_HASH_SIZE): Remove.
14132 (abbrev_table::m_abbrevs): Now an htab_up.
14133
14134 2020-02-08 Tom Tromey <tom@tromey.com>
14135
14136 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14137 (cutu_reader): Update.
14138 (build_type_psymtabs_1): Update.
14139 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14140 (abbrev_table::alloc_abbrev): Update.
14141 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14142 (abbrev_table::read): New static method, renamed from
14143 abbrev_table_read_table.
14144 (abbrev_table::alloc_abbrev)
14145 (abbrev_table::add_abbrev): Now private.
14146 (abbrev_table::abbrev_table): Now private.
14147 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14148
14149 2020-02-08 Tom Tromey <tom@tromey.com>
14150
14151 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14152 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14153 htab_up.
14154
14155 2020-02-08 Tom Tromey <tom@tromey.com>
14156
14157 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14158 htab_up.
14159 (lookup_dwo_unit_in_dwp): Update.
14160 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14161 on obstack.
14162
14163 2020-02-08 Tom Tromey <tom@tromey.com>
14164
14165 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14166 obstack.
14167
14168 2020-02-08 Tom Tromey <tom@tromey.com>
14169
14170 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14171 line_header_hash.
14172 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14173 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14174 Change type to htab_up.
14175
14176 2020-02-08 Tom Tromey <tom@tromey.com>
14177
14178 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14179 htab_up. Don't allocate on obstack.
14180 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14181 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14182 Change type to htab_up.
14183
14184 2020-02-08 Tom Tromey <tom@tromey.com>
14185
14186 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14187 Change type to htab_up.
14188 * dwarf2/read.c (create_signatured_type_table_from_index)
14189 (create_signatured_type_table_from_debug_names)
14190 (create_all_type_units, add_type_unit)
14191 (lookup_dwo_signatured_type, lookup_signatured_type)
14192 (process_skeletonless_type_unit): Update.
14193 (create_debug_type_hash_table, create_debug_types_hash_table):
14194 Change type of types_htab.
14195 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14196 htab_up. Don't allocate on obstack.
14197 (create_cus_hash_table): Change type of cus_htab parameter.
14198 (struct dwo_file) <cus, tus>: Now htab_up.
14199 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14200 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14201 (queue_and_load_all_dwo_tus): Update.
14202 * dwarf2/index-write.c (write_gdbindex): Update.
14203 (write_debug_names): Update.
14204
14205 2020-02-08 Tom Tromey <tom@tromey.com>
14206
14207 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14208 dwarf2/read.c. Remove "next" member. Add constructor ntad
14209 destructor.
14210 (struct dwarf2_per_objfile) <queue>: New member.
14211 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14212 dwarf2/read.h.
14213 (dwarf2_queue, dwarf2_queue_tail): Remove.
14214 (class dwarf2_queue_guard): Add parameter to constructor. Use
14215 DISABLE_COPY_AND_ASSIGN.
14216 <m_per_objfile>: New member.
14217 <~dwarf2_queue_guard>: Rewrite.
14218 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14219 Update.
14220 (~dwarf2_queue_item): New.
14221
14222 2020-02-08 Tom Tromey <tom@tromey.com>
14223
14224 * dwarf2/read.c (struct die_info) <has_children>: New member.
14225 (dw2_get_file_names_reader): Remove has_children.
14226 (dw2_get_file_names): Update.
14227 (read_cutu_die_from_dwo): Remove has_children.
14228 (cutu_reader::init_tu_and_read_dwo_dies)
14229 (cutu_reader::cutu_reader): Update.
14230 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14231 Remove has_children.
14232 (build_type_psymtabs_1, process_skeletonless_type_unit)
14233 (load_partial_comp_unit, load_full_comp_unit): Update.
14234 (create_dwo_cu_reader): Remove has_children.
14235 (create_cus_hash_table, read_die_and_children): Update.
14236 (read_full_die_1,read_full_die): Remove has_children.
14237 (read_signatured_type): Update.
14238 (class cutu_reader) <has_children>: Remove.
14239
14240 2020-02-08 Tom Tromey <tom@tromey.com>
14241
14242 * dwarf2/expr.c: Rename from dwarf2expr.c.
14243 * dwarf2/expr.h: Rename from dwarf2expr.h.
14244 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14245 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14246 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14247 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14248 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14249 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14250 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14251 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14252 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14253 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14254 * dwarf2/loc.c: Rename from dwarf2loc.c.
14255 * dwarf2/loc.h: Rename from dwarf2loc.h.
14256 * dwarf2/read.c: Rename from dwarf2read.c.
14257 * dwarf2/read.h: Rename from dwarf2read.h.
14258 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14259 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14260 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14261 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14262 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14263 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14264 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14265 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14266 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14267 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14268 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14269 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14270 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14271 Update.
14272 * Makefile.in (COMMON_SFILES): Update.
14273 (HFILES_NO_SRCDIR): Update.
14274
14275 2020-02-08 Tom Tromey <tom@tromey.com>
14276
14277 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14278 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14279
14280 2020-02-08 Tom Tromey <tom@tromey.com>
14281
14282 * dwarf2read.h (struct die_info): Don't declare.
14283
14284 2020-02-08 Tom Tromey <tom@tromey.com>
14285
14286 * dwarf2read.h (die_info_ptr): Remove typedef.
14287
14288 2020-02-08 Tom Tromey <tom@tromey.com>
14289
14290 * dwarf2read.c (read_call_site_scope)
14291 (handle_data_member_location, dwarf2_add_member_fn)
14292 (mark_common_block_symbol_computed, read_common_block)
14293 (attr_to_dynamic_prop, partial_die_info::read)
14294 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14295 (dwarf2_symbol_mark_computed, set_die_type): Update.
14296 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14297 method.
14298 (attr_form_is_block): Don't declare.
14299 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14300
14301 2020-02-08 Tom Tromey <tom@tromey.com>
14302
14303 * dwarf2read.c (dwarf2_find_base_address, )
14304 (read_call_site_scope, rust_containing_type)
14305 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14306 (handle_data_member_location, dwarf2_add_member_fn)
14307 (get_alignment, read_structure_type, process_structure_scope)
14308 (mark_common_block_symbol_computed, read_common_block)
14309 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14310 (partial_die_info::read, read_attribute_value, new_symbol)
14311 (lookup_die_type, dwarf2_get_ref_die_offset)
14312 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14313 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14314 (dwarf2_symbol_mark_computed): Update.
14315 * dwarf2/attribute.h (struct attribute) <value_as_address,
14316 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14317 methods.
14318 (value_as_address, attr_form_is_section_offset)
14319 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14320 * dwarf2/attribute.c (attribute::value_as_address)
14321 (attribute::form_is_section_offset, attribute::form_is_constant)
14322 (attribute::form_is_ref): Now methods.
14323
14324 2020-02-08 Tom Tromey <tom@tromey.com>
14325
14326 * dwarf2read.c (struct attribute, DW_STRING)
14327 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14328 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14329 (attr_form_is_block, attr_form_is_section_offset)
14330 (attr_form_is_constant, attr_form_is_ref): Move.
14331 * dwarf2/attribute.h: New file.
14332 * dwarf2/attribute.c: New file, from dwarf2read.c.
14333 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14334
14335 2020-02-08 Tom Tromey <tom@tromey.com>
14336
14337 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14338 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14339 Move.
14340 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14341 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14342 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14343 abbrev.c.
14344 * dwarf2/abbrev.h: New file.
14345 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14346 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14347
14348 2020-02-08 Tom Tromey <tom@tromey.com>
14349
14350 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14351 (dwarf2_section_size, dwarf2_get_section_info)
14352 (create_signatured_type_table_from_debug_names)
14353 (create_addrmap_from_aranges, read_debug_names_from_section)
14354 (get_gdb_index_contents_from_section, read_comp_unit_head)
14355 (error_check_comp_unit_head, read_abbrev_offset)
14356 (create_debug_type_hash_table, init_cu_die_reader)
14357 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14358 (read_comp_units_from_section, create_cus_hash_table)
14359 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14360 (create_dwp_v2_section, dwarf2_rnglists_process)
14361 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14362 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14363 (read_indirect_string_from_dwz, read_addr_index_1)
14364 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14365 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14366 (fill_in_loclist_baton): Update.
14367 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14368 get_containing_section, get_bfd_owner, get_bfd_section,
14369 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14370 (dwarf2_read_section, get_section_name, get_section_file_name)
14371 (get_containing_section, get_section_bfd_owner)
14372 (get_section_bfd_section, get_section_name, get_section_file_name)
14373 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14374 declare.
14375 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14376 (dwarf2_section_info::get_bfd_owner)
14377 (dwarf2_section_info::get_bfd_section)
14378 (dwarf2_section_info::get_name)
14379 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14380 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14381 (dwarf2_section_info::read): Now methods.
14382 * dwarf-index-write.c (class debug_names): Update.
14383
14384 2020-02-08 Tom Tromey <tom@tromey.com>
14385
14386 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14387 Move to dwarf2/section.h.
14388 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14389 (get_section_bfd_section, get_section_name)
14390 (get_section_file_name, get_section_id, get_section_flags)
14391 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14392 dwarf2/section.c.
14393 * dwarf2/section.h: New file.
14394 * dwarf2/section.c: New file, from dwarf2read.c.
14395 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14396
14397 2020-02-08 Tom Tromey <tom@tromey.com>
14398
14399 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14400 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14401 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14402 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14403 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14404 * dwarf2/leb.h: New file, from dwarf2read.c.
14405 * dwarf2/leb.c: New file, from dwarf2read.c.
14406 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14407 Remove.
14408 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14409 (COMMON_SFILES): Add dwarf2/leb.c.
14410
14411 2020-02-08 Joel Brobecker <brobecker@adacore.com>
14412
14413 GDB 9.1 released.
14414
14415 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14416
14417 PR gdb/25190:
14418 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
14419 * gdb/remote.c (remote_console_output): Update.
14420 * gdb/ui-file.c (fputs_unfiltered): Rename to...
14421 (ui_file_puts): ...this.
14422 * gdb/ui-file.h (ui_file_puts): Add declaration.
14423 * gdb/utils.c (emit_style_escape): Update.
14424 (flush_wrap_buffer): Update.
14425 (fputs_maybe_filtered): Update.
14426 (fputs_unfiltered): Add function.
14427
14428 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
14429
14430 * gdb/event-loop.c (gdb_wait_for_event): Update.
14431 * gdb/printcmd.c (printf_command): Update.
14432 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
14433 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
14434 (gdb_os_flush_stderr): Update.
14435 * gdb/remote.c (remote_console_output): Update.
14436 * gdb/ui-file.c (gdb_flush): Rename to...
14437 (ui_file_flush): ...this.
14438 (stderr_file::write): Update.
14439 (stderr_file::puts): Update.
14440 * gdb/ui-file.h (gdb_flush): Rename to...
14441 (ui_file_flush): ...this.
14442 * gdb/utils.c (gdb_flush): Add function.
14443 * gdb/utils.h (gdb_flush): Add declaration.
14444
14445 2020-02-07 Tom Tromey <tromey@adacore.com>
14446
14447 PR breakpoints/24915:
14448 * source.c (find_and_open_source): Do not check basenames_may_differ.
14449
14450 2020-02-07 Tom Tromey <tom@tromey.com>
14451
14452 * README: Update gdbserver documentation.
14453 * gdbserver: Move to top level.
14454 * configure.tgt (build_gdbserver): Remove.
14455 * configure.ac: Remove --enable-gdbserver.
14456 * configure: Rebuild.
14457 * Makefile.in (distclean): Don't mention gdbserver.
14458
14459 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14460
14461 * source-cache.c (source_cache::ensure): Surround
14462 get_plain_source_lines with a try/catch.
14463 (source_cache::get_line_charpos): Get rid of try/catch
14464 and only check for the return value of "ensure".
14465 * tui/tui-source.c (tui_source_window::set_contents):
14466 Simplify "nlines" calculation.
14467
14468 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
14469
14470 * MAINTAINERS (Write After Approval): Add myself.
14471
14472 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14473
14474 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
14475 function call.
14476
14477 2020-02-05 Christian Biesinger <cbiesinger@google.com>
14478
14479 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
14480
14481 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
14482
14483 * nat/riscv-linux-tdesc.h: New file.
14484 * nat/riscv-linux-tdesc.c: New file, taking code from...
14485 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14486 ... here.
14487 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
14488 NATDEPFILES.
14489
14490 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
14491
14492 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
14493 we don't set the fake simulator ptid to the null_ptid.
14494
14495 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
14496
14497 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
14498 * gdbthread.h (class thread_info) <resumed>: Likewise.
14499 * infrun.c (resume_1): Likewise.
14500 (proceed): Likewise.
14501 (infrun_thread_stop_requested): Likewise.
14502 (stop_all_threads): Likewise.
14503 (handle_inferior_event): Likewise.
14504 (restart_threads): Likewise.
14505 (finish_step_over): Likewise.
14506 (keep_going_stepped_thread): Likewise.
14507 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
14508 (linux_handle_extended_wait): Likewise.
14509 * record-btrace.c (get_thread_current_frame_id): Likewise.
14510 * record-full.c (record_full_wait_1): Likewise.
14511 * remote.c (remote_target::process_initial_stop_replies): Likewise.
14512 * target.c (target_resume): Likewise.
14513 * thread.c (set_running_thread): Likewise.
14514
14515 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14516
14517 * f-valprint.c (f77_print_array_1): Changed datatype of index
14518 variable to LONGEST from int to enable it to contain bound
14519 values correctly.
14520
14521 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14522
14523 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14524 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14525 offsets according to FLEN determined.
14526 (riscv_linux_nat_target::read_description): Determine FLEN
14527 dynamically.
14528 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14529 according to FLEN determined.
14530 (riscv_linux_nat_target::store_registers): Likewise.
14531
14532 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14533
14534 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14535 when reg->group is empty and reggroup is not.
14536
14537 2020-01-31 Tom Tromey <tromey@adacore.com>
14538
14539 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14540 Call beneath target's mourn_inferior after unpushing.
14541
14542 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14543
14544 PR tui/9765
14545 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14546 have enough lines to fill the screen, still return the lowest
14547 address we found.
14548
14549 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14550
14551 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14552 '-', '<', and '>' commands.
14553
14554 2020-01-29 Pedro Alves <palves@redhat.com>
14555 Sergio Durigan Junior <sergiodj@redhat.com>
14556
14557 * infcmd.c (construct_inferior_arguments): Assert that
14558 'argc' is greater than 0.
14559
14560 2020-01-29 Luis Machado <luis.machado@linaro.org>
14561
14562 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14563 (BRK_INSN_MASK): Define to 0xd4200000.
14564 (aarch64_program_breakpoint_here_p): New function.
14565 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14566 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14567 breakpoint.c.
14568 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14569 breakpoint.h
14570 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14571 call gdbarch_program_breakpoint_here_p.
14572 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14573 default_program_breakpoint_here_p, changed return type to bool and
14574 simplified.
14575 * breakpoint.h (program_breakpoint_here): Moved prototype to
14576 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14577 return type to bool.
14578 * gdbarch.c: Regenerate.
14579 * gdbarch.h: Regenerate.
14580 * gdbarch.sh (program_breakpoint_here_p): New method.
14581 * infrun.c (handle_signal_stop): Call
14582 gdbarch_program_breakpoint_here_p.
14583
14584 2020-01-26 Tom Tromey <tom@tromey.com>
14585
14586 * ctfread.c (struct ctf_fp_info): Reindent.
14587 (_initialize_ctfread): Remove.
14588
14589 2020-01-26 Tom Tromey <tom@tromey.com>
14590
14591 * psymtab.c (partial_map_expand_apply)
14592 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14593 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14594 (psym_print_stats, psym_expand_symtabs_for_function)
14595 (psym_map_symbol_filenames, psym_map_matching_symbols)
14596 (psym_expand_symtabs_matching)
14597 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14598 (maintenance_check_psymtabs): Use new methods.
14599 * psympriv.h (struct partial_symtab) <readin_p,
14600 get_compunit_symtab>: New methods.
14601 <readin, compunit_symtab>: Remove members.
14602 (struct standard_psymtab): New.
14603 (struct legacy_psymtab): Derive from standard_psymtab.
14604 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14605 standard_psymtab.
14606 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14607
14608 2020-01-26 Tom Tromey <tom@tromey.com>
14609
14610 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14611 read_dependencies. Add assert.
14612 * psymtab.c (partial_symtab::read_dependencies): New method.
14613 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14614 method.
14615 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14616 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14617 read_dependencies.
14618 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14619 Add assert.
14620
14621 2020-01-26 Tom Tromey <tom@tromey.com>
14622
14623 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14624 Call expand_psymtab.
14625 (xcoff_read_symtab): Call expand_psymtab.
14626 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14627 legacy_expand_psymtab.
14628 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14629 method.
14630 (struct legacy_psymtab) <expand_psymtab>: Implement.
14631 <legacy_expand_psymtab>: New member.
14632 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14633 (parse_partial_symbols): Set legacy_expand_psymtab.
14634 (psymtab_to_symtab_1): Change argument order. Call
14635 expand_psymtab.
14636 (new_psymtab): Set legacy_expand_psymtab.
14637 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14638 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14639 expand_psymtab.
14640 (dwarf2_psymtab::expand_psymtab): Rename from
14641 psymtab_to_symtab_1. Call expand_psymtab.
14642 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14643 (dbx_end_psymtab): Likewise.
14644 (dbx_psymtab_to_symtab_1): Change argument order. Call
14645 expand_psymtab.
14646 (dbx_read_symtab): Call expand_psymtab.
14647 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14648 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14649 (ctf_psymtab::read_symtab): Call expand_psymtab.
14650
14651 2020-01-26 Tom Tromey <tom@tromey.com>
14652
14653 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14654 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14655 messages.
14656 * mdebugread.c (mdebug_read_symtab): Remove prints.
14657 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14658 assert.
14659 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14660
14661 2020-01-26 Tom Tromey <tom@tromey.com>
14662
14663 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14664 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14665 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14666 legacy_symtab.
14667 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14668 * psymtab.c (psymtab_to_symtab): Call method.
14669 (dump_psymtab): Update.
14670 * psympriv.h (struct partial_symtab): Add virtual destructor.
14671 <read_symtab>: New method.
14672 (struct legacy_symtab): New.
14673 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14674 (struct pst_map) <pst>: Now a legacy_psymtab.
14675 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14676 (new_psymtab): Use legacy_psymtab.
14677 * dwarf2read.h (struct dwarf2_psymtab): New.
14678 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14679 * dwarf2read.c (dwarf2_create_include_psymtab)
14680 (dwarf2_build_include_psymtabs, create_type_unit_group)
14681 (create_partial_symtab, process_psymtab_comp_unit_reader)
14682 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14683 (set_partial_user): Use dwarf2_psymtab.
14684 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14685 (psymtab_to_symtab_1, process_full_comp_unit)
14686 (process_full_type_unit, dwarf2_ranges_read)
14687 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14688 (dwarf_decode_lines): Use dwarf2_psymtab.
14689 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14690 (add_address_entry_worker, write_one_signatured_type)
14691 (recursively_count_psymbols, recursively_write_psymbols)
14692 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14693 (write_debug_names): Likewise.
14694 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14695 <pst>: Now a legacy_psymtab.
14696 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14697 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14698 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14699 * ctfread.c (struct ctf_psymtab): New.
14700 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14701 ctf_psymtab.
14702 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14703 (create_partial_symtab): Return a ctf_psymtab.
14704 (scan_partial_symbols): Update.
14705
14706 2020-01-26 Tom Tromey <tom@tromey.com>
14707
14708 * xcoffread.c (xcoff_start_psymtab): Use new.
14709 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14710 renamed from start_psymtab_common.
14711 * psympriv.h (struct partial_symtab): Add new constructor.
14712 (start_psymtab_common): Don't declare.
14713 * mdebugread.c (parse_partial_symbols): Use new.
14714 * dwarf2read.c (create_partial_symtab): Use new.
14715 * dbxread.c (start_psymtab): Use new.
14716 * ctfread.c (create_partial_symtab): Use new.
14717
14718 2020-01-26 Tom Tromey <tom@tromey.com>
14719
14720 * xcoffread.c (xcoff_end_psymtab): Use new.
14721 * psymtab.c (start_psymtab_common): Use new.
14722 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14723 Update.
14724 * psympriv.h (struct partial_symtab): Add parameters to
14725 constructor. Don't inline.
14726 (allocate_psymtab): Don't declare.
14727 * mdebugread.c (new_psymtab): Use new.
14728 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14729 * dbxread.c (dbx_end_psymtab): Use new.
14730
14731 2020-01-26 Tom Tromey <tom@tromey.com>
14732
14733 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14734 allocate_psymtab. Update documentation.
14735 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14736 allocate_psymtab. Do not use new.
14737 (allocate_psymtab): Use new. Update.
14738
14739 2020-01-26 Tom Tromey <tom@tromey.com>
14740
14741 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14742 * psymtab.c (psym_print_stats): Update.
14743 * psympriv.h (struct partial_symtab) <readin,
14744 psymtabs_addrmap_supported, anonymous>: Now bool.
14745 * mdebugread.c (psymtab_to_symtab_1): Update.
14746 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14747 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14748 (process_full_comp_unit, process_full_type_unit): Update.
14749 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14750 * ctfread.c (psymtab_to_symtab): Update.
14751
14752 2020-01-26 Tom Tromey <tom@tromey.com>
14753
14754 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14755 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14756 * psymtab.c (psymtab_storage): Delete psymtabs.
14757 (psymtab_storage::allocate_psymtab): Use new.
14758 (psymtab_storage::discard_psymtab): Use delete.
14759 * psympriv.h (struct partial_symtab): Add constructor and
14760 initializers.
14761
14762 2020-01-26 Tom Tromey <tom@tromey.com>
14763
14764 * machoread.c: Do not include psympriv.h.
14765
14766 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14767
14768 * NEWS: Mention the new option and the set/show commands.
14769
14770 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14771
14772 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14773 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14774 (validate_exec_file): New variables, enums, functions.
14775 (exec_file_locate_attach, print_section_info): Style the filenames.
14776 (_initialize_exec): Install show_exec_file_mismatch_command and
14777 set_exec_file_mismatch_command.
14778 * gdbcore.h (validate_exec_file): Declare.
14779 * infcmd.c (attach_command): Call validate_exec_file.
14780 * remote.c ( remote_target::remote_add_inferior): Likewise.
14781
14782 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14783
14784 * frame.c (find_frame_sal): Move call to get_next_frame into more
14785 inner scope.
14786 * inline-frame.c (inilne_state) <inline_state>: Update argument
14787 types.
14788 (inilne_state) <skipped_symbol>: Rename to...
14789 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14790 (skip_inline_frames): Build vector of skipped symbols and use this
14791 to reate the inline_state.
14792 (inline_skipped_symbol): Add a comment and some assertions, fetch
14793 skipped symbol from the list.
14794
14795 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14796
14797 * buildsym.c (lte_is_less_than): Delete.
14798 (buildsym_compunit::end_symtab_with_blockvector): Create local
14799 lambda function to sort line table entries, and use
14800 std::stable_sort instead of std::sort.
14801 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14802 markers when looking for a previous line.
14803
14804 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14805
14806 * dwarf2read.c (lnp_state_machine::record_line): Include
14807 end_sequence parameter in debug print out. Record the line if we
14808 are at an end_sequence marker even if it's not the start of a
14809 statement.
14810 * symmisc.c (maintenance_print_one_line_table): Print end of
14811 sequence markers with 'END' not '0'.
14812
14813 2020-01-24 Pedro Alves <palves@redhat.com>
14814
14815 PR gdb/25410
14816 * thread.c (scoped_restore_current_thread::restore): Use
14817 switch_to_inferior_no_thread.
14818 * exec.c: Include "progspace-and-thread.h".
14819 (add_target_sections, remove_target_sections):
14820 scoped_restore_current_pspace_and_thread instead of
14821 scoped_restore_current_thread.
14822 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14823 and aspace to the inferior before calling clone_program_space.
14824 Remove stale comment.
14825
14826 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14827
14828 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14829 (arm_netbsd_nat_target::fetch_registers): ...this.
14830 (arm_nbsd_nat_target::store_registers): Rename to...
14831 (arm_netbsd_nat_target::store_registers): ...this.
14832
14833 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14834
14835 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14836 register_t.
14837
14838 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14839
14840 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14841 Update comment.
14842 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14843 Likewise.
14844 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14845 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14846 the correct replacement (iterate_over_regset_sections).
14847 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14848 Update comment.
14849
14850 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14851
14852 PR gdb/23718
14853 * gdb/python/python.c (execute_gdb_command): Call
14854 async_enable_stdin in catch block.
14855
14856 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14857
14858 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14859 SWITCH_THRU_ALL_UIS.
14860
14861 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14862
14863 PR tui/9765
14864 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14865 comment, add extra parameter, and update to store previous symbol
14866 when appropriate.
14867 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14868 add extra parameter.
14869 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14870 remove unneeded parameter, add try/catch around gdb_print_insn,
14871 rewrite to add items to asm_lines vector.
14872 (tui_find_backward_disassembly_start_address): New function.
14873 (tui_find_disassembly_address): Updated throughout.
14874 (tui_disasm_window::set_contents): Update for changes to
14875 tui_disassemble.
14876 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14877 number of lines to scroll.
14878
14879 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14880
14881 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14882 (SECT_OFF_DATA): Likewise.
14883 (SECT_OFF_RODATA): Likewise.
14884 (SECT_OFF_TEXT): Likewise.
14885 (SECT_OFF_BSS): Likewise.
14886 (struct objfile) <text_section_offset, data_section_offset>: New
14887 methods.
14888 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14889 objfile::text_section_offset.
14890 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14891 * coffread.c (coff_symtab_read): Likewise.
14892 (enter_linenos): Likewise.
14893 (process_coff_symbol): Likewise.
14894 * ctfread.c (get_objfile_text_range): Likewise.
14895 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14896 Use objfile::data_section_offset.
14897 * dwarf2-frame.c (execute_cfa_program): Use
14898 objfile::text_section_offset.
14899 (dwarf2_frame_find_fde): Likewise.
14900 * dwarf2read.c (create_addrmap_from_index): Likewise.
14901 (create_addrmap_from_aranges): Likewise.
14902 (dw2_find_pc_sect_compunit_symtab): Likewise.
14903 (process_psymtab_comp_unit_reader): Likewise.
14904 (add_partial_symbol): Likewise.
14905 (add_partial_subprogram): Likewise.
14906 (process_full_comp_unit): Likewise.
14907 (read_file_scope): Likewise.
14908 (read_func_scope): Likewise.
14909 (read_lexical_block_scope): Likewise.
14910 (read_call_site_scope): Likewise.
14911 (dwarf2_rnglists_process): Likewise.
14912 (dwarf2_ranges_process): Likewise.
14913 (dwarf2_ranges_read): Likewise.
14914 (dwarf_decode_lines_1): Likewise.
14915 (new_symbol): Likewise.
14916 (dwarf2_fetch_die_loc_sect_off): Likewise.
14917 (dwarf2_per_cu_text_offset): Likewise.
14918 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14919 * hppa-tdep.c (read_unwind_info): Likewise.
14920 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14921 * psympriv.h (struct partial_symtab): Likewise.
14922 * psymtab.c (find_pc_sect_psymtab): Likewise.
14923 * solib-svr4.c (enable_break): Likewise.
14924 * stap-probe.c (relocate_address): Use
14925 objfile::data_section_offset.
14926 * xcoffread.c (enter_line_range): Use
14927 objfile::text_section_offset.
14928 (read_xcoff_symtab): Likewise.
14929
14930 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14931
14932 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14933 declaration to narrower scopes.
14934
14935 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14936
14937 * darwin-nat.h (struct darwin_exception_msg, enum
14938 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14939 Move up.
14940 (class darwin_nat_target) <wait_1, check_new_threads,
14941 decode_exception_message, decode_message, stop_inferior,
14942 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14943 * darwin-nat.c (darwin_check_new_threads): Rename to...
14944 (darwin_nat_target::check_new_threads): ... this.
14945 (darwin_suspend_inferior_it): Remove.
14946 (darwin_decode_exception_message): Rename to...
14947 (darwin_nat_target::decode_exception_message): ... this.
14948 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14949 (darwin_decode_message): Rename to...
14950 (darwin_nat_target::decode_message): ... this.
14951 (cancel_breakpoint): Rename to...
14952 (darwin_nat_target::cancel_breakpoint): ... this.
14953 (darwin_wait): Rename to...
14954 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14955 instead of iterate_over_inferiors.
14956 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14957 (darwin_stop_inferior): Rename to...
14958 (darwin_nat_target::stop_inferior): ... this.
14959 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14960 (darwin_init_thread_list): Rename to...
14961 (darwin_nat_target::init_thread_list): ... this.
14962 (darwin_ptrace_him): Rename to...
14963 (darwin_nat_target::ptrace_him): ... this.
14964 (darwin_nat_target::create_inferior): Pass lambda function to
14965 fork_inferior.
14966 (darwin_nat_target::detach): Call stop_inferior instead of
14967 darwin_stop_inferior.
14968 * fork-inferior.h (fork_inferior): Change init_trace_fun
14969 parameter to gdb::function_view.
14970 * fork-inferior.c (fork_inferior): Likewise.
14971
14972 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14973
14974 * i386-cygwin-tdep.c (core_process_module_section): Update.
14975 * windows-nat.c (struct lm_info_windows): Add text_offset.
14976 (windows_xfer_shared_libraries): Update.
14977 * windows-tdep.c (windows_xfer_shared_library):
14978 Add text_offset_cached argument.
14979 * windows-tdep.h (windows_xfer_shared_library): Update.
14980
14981 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14982
14983 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14984
14985 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14986
14987 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14988 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14989 replace with range-based for.
14990 (gdbsim_interrupt_inferior): Remove.
14991 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14992 with a range-based for. Inline code from
14993 gdbsim_interrupt_inferior.
14994
14995 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14996
14997 * infrun.c (proceed): Fix indentation.
14998
14999 2020-01-21 Tom Tromey <tromey@adacore.com>
15000
15001 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15002 * python/python.c (python_extension_ops): Update.
15003 (gdbpy_colorize): New function.
15004 * python/lib/gdb/__init__.py (colorize): New function.
15005 * extension.h (ext_lang_colorize): Declare.
15006 * extension.c (ext_lang_colorize): New function.
15007 * extension-priv.h (struct extension_language_ops) <colorize>: New
15008 member.
15009 * cli/cli-style.c (_initialize_cli_style): Update help text.
15010
15011 2020-01-21 Luis Machado <luis.machado@linaro.org>
15012
15013 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15014 <cond>: Change type to bool.
15015 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15016 (aarch64_displaced_step_cb): Likewise.
15017 (aarch64_displaced_step_tb): Likewise.
15018
15019 2020-01-21 Luis Machado <luis.machado@linaro.org>
15020
15021 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15022 output.
15023
15024 2020-01-21 Luis Machado <luis.machado@linaro.org>
15025
15026 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15027 <pc_adjust>: Adjust the documentation.
15028 (aarch64_displaced_step_fixup): Check if PC really moved before
15029 adjusting it.
15030
15031 2020-01-19 Tom Tromey <tom@tromey.com>
15032
15033 * disasm.c (~gdb_disassembler): New destructor.
15034 (gdb_buffered_insn_length): Call disassemble_free_target.
15035 * disasm.h (class gdb_disassembler): Declare destructor. Use
15036 DISABLE_COPY_AND_ASSIGN.
15037
15038 2020-01-19 Tom Tromey <tom@tromey.com>
15039
15040 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15041 (die_reader_func_ftype): Remove.
15042 (cutu_reader): New class.
15043 (dw2_get_file_names_reader): Remove "data" parameter.
15044 (dw2_get_file_names): Use cutu_reader.
15045 (create_debug_type_hash_table): Update.
15046 (read_cutu_die_from_dwo): Update comment.
15047 (lookup_dwo_unit): Add dwo_name parameter.
15048 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15049 die_reader_func_ftype and data parameters.
15050 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15051 Remove die_reader_func_ftype and data parameters.
15052 (~cutu_reader): New; from init_cutu_and_read_dies.
15053 (cutu_reader::cutu_reader): Rename from
15054 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15055 and data parameters.
15056 (init_cutu_and_read_dies_simple): Remove.
15057 (struct process_psymtab_comp_unit_data): Remove.
15058 (process_psymtab_comp_unit_reader): Remove data parameter; add
15059 want_partial_unit and pretend_language parameters.
15060 (process_psymtab_comp_unit): Use cutu_reader.
15061 (build_type_psymtabs_reader): Remove data parameter.
15062 (build_type_psymtabs_1): Use cutu_reader.
15063 (process_skeletonless_type_unit): Likewise.
15064 (load_partial_comp_unit_reader): Remove.
15065 (load_partial_comp_unit): Use cutu_reader.
15066 (load_full_comp_unit_reader): Remove.
15067 (load_full_comp_unit): Use cutu_reader.
15068 (struct create_dwo_cu_data): Remove.
15069 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15070 dwo_unit parameters.
15071 (create_cus_hash_table): Use cutu_reader.
15072 (struct dwarf2_read_addr_index_data): Remove.
15073 (dwarf2_read_addr_index_reader): Remove.
15074 (dwarf2_read_addr_index): Use cutu_reader.
15075 (read_signatured_type_reader): Remove.
15076 (read_signatured_type): Use cutu_reader.
15077
15078 2020-01-19 Tom Tromey <tom@tromey.com>
15079
15080 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15081 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15082 (tui_wrefresh): Declare.
15083 * tui/tui-wingeneral.c (suppress_output): New global.
15084 (tui_suppress_output, ~tui_suppress_output): New constructor and
15085 destructor.
15086 (tui_wrefresh): New function.
15087 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15088 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15089 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15090 method.
15091 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15092 tui_wrefresh.
15093 (tui_data_window::no_refresh): New method.
15094 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15095 (tui_reg_command): Use tui_suppress_output
15096 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15097 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15098 method.
15099 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15100
15101 2020-01-19 Tom Tromey <tom@tromey.com>
15102
15103 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15104 Handle case where symtab is null.
15105
15106 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15107
15108 * linux-fork.c (one_fork_p): Simplify.
15109
15110 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15111
15112 * top.c (struct qt_args): Remove.
15113 (kill_or_detach): Change return type to void, replace `void *`
15114 parameter with a proper one.
15115 (print_inferior_quit_action): Likewise.
15116 (quit_confirm): Use range-based for loop to iterate over inferiors.
15117 (quit_force): Likewise.
15118
15119 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15120
15121 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15122 `void *` parameter with proper parameters.
15123 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15124 (print_one_inferior): Change return type to void, replace `void *`
15125 parameter with proper parameters.
15126 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15127 inferiors.
15128 (get_other_inferior): Remove.
15129 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15130 inferiors.
15131
15132 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15133
15134 * mi/mi-interp.c (report_initial_inferior): Remove.
15135 (mi_interp::init): Use range-based for to iterate over inferiors.
15136
15137 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
15138
15139 * python/py-inferior.c (build_inferior_list): Remove.
15140 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15141
15142 2020-01-16 Christian Biesinger <cbiesinger@google.com>
15143
15144 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15145 (btrace_stitch_trace): Likewise.
15146 * charset.c (intermediate_encoding): Likewise (vaild).
15147 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15148 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15149 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15150
15151 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
15152
15153 * windows-tdep.c (windows_get_tlb_type):
15154 Add rtl_user_process_parameters type.
15155
15156 2020-01-16 Pedro Alves <palves@redhat.com>
15157 Norbert Lange <nolange79@gmail.com>
15158
15159 PR build/24805
15160 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15161 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15162 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15163 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15164 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15165 (ps_plog): Redeclare exported functions with default visibility.
15166
15167 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15168
15169 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15170 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15171
15172 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
15173
15174 * infcmd.c (post_create_inferior): Use get_thread_regcache
15175 instead of get_current_regcache.
15176
15177 2020-01-14 Tom Tromey <tom@tromey.com>
15178
15179 PR symtab/12535:
15180 * python/python.c (gdbpy_decode_line): Treat empty string the same
15181 as no argument.
15182
15183 2020-01-14 Tom Tromey <tom@tromey.com>
15184
15185 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15186
15187 2020-01-14 Tom Tromey <tom@tromey.com>
15188
15189 * nat/linux-btrace.c: Don't include <config.h>.
15190 * nat/linux-ptrace.c: Don't include <config.h>.
15191 * nat/x86-linux-dregs.c: Don't include <config.h>.
15192
15193 2020-01-14 Tom Tromey <tom@tromey.com>
15194
15195 * configure: Rebuild.
15196 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15197
15198 2020-01-14 Tom Tromey <tom@tromey.com>
15199
15200 * nat/x86-linux-dregs.c: Include configh.h.
15201 * nat/linux-ptrace.c: Include configh.h.
15202 * nat/linux-btrace.c: Include configh.h.
15203 * defs.h: Include config.h, bfd.h.
15204 * configure.ac: Don't source common.host.
15205 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15206 * configure: Rebuild.
15207 * acinclude.m4: Update path.
15208 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15209 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15210 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15211 (CLIBS): Add LIBSUPPORT.
15212 (CDEPS): Likewise.
15213 (COMMON_SFILES): Remove gdbsupport files.
15214 (HFILES_NO_SRCDIR): Likewise.
15215 (stamp-version): Update path to create-version.sh.
15216 (ALLDEPFILES): Remove gdbsupport files.
15217
15218 2020-01-14 Tom Tromey <tom@tromey.com>
15219
15220 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15221 USE_WIN32API when needed.
15222 * configure.ac (USE_WIN32API): Don't define.
15223 (WIN32LIBS): Use WIN32APILIBS.
15224 * configure: Rebuild.
15225
15226 2020-01-14 Tom Tromey <tom@tromey.com>
15227
15228 * configure: Rebuild.
15229 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15230
15231 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15232
15233 * skip.c (skip_function_command): Make skip w/o arguments use the
15234 name of the inlined function if pc is inside any inlined function.
15235
15236 2020-01-14 Luis Machado <luis.machado@linaro.org>
15237
15238 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15239 * infrun.c (resume_1): Likewise.
15240 (handle_inferior_event): Remove stale comment.
15241 * linux-nat.c (linux_nat_target::resume): Update comments.
15242 (save_stop_reason): Likewise.
15243 (linux_nat_filter_event): Likewise.
15244 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15245
15246 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15247
15248 * elfread.c (record_minimal_symbol): Set section index to 0 for
15249 non-allocatable sections.
15250
15251
15252 2020-01-13 Ali Tamur <tamur@google.com>
15253
15254 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15255 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15256 to gdb::optional. Update comments.
15257 (dwo_file): Update comments.
15258 (read_attribute): Update API to take an additional out parameter,
15259 need_reprocess. This is used to mark attributes that need other
15260 attributes (e.g. str_offsets_base) for correct computation which may not
15261 have been read yet.
15262 (read_attribute_reprocess): New function declaration.
15263 (read_addr_index): Likewise.
15264 (read_dwo_str_index): Likewise.
15265 (read_stub_str_index): Likewise.
15266 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15267 (lookup_addr_base): New function definition.
15268 (lookup_ranges_base): Likewise.
15269 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15270 lookup_ranges_base.
15271 (init_cutu_and_read_dies): Update comments.
15272 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15273 unit. This is used to inherit parent's str_offsets_base and addr_base.
15274 Update comments.
15275 (init_cutu_and_read_dies_simple): Reflect API changes.
15276 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15277 (create_cus_hash_table): Change API to take parent compile unit.
15278 Reflect API changes.
15279 (open_and_init_dwo_file): Reflect API changes.
15280 (dwarf2_get_pc_bounds): Update comments.
15281 (dwarf2_record_block_ranges): Likewise.
15282 (read_full_die_1): Change implementation to reprocess attributes that
15283 need str_offsets_base and addr_base.
15284 (partial_die_info::read): Likewise.
15285 (read_attribute_reprocess): New function definition.
15286 (read_attribute_value): Change API to take an additional out parameter,
15287 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15288 when a non-dwo compile unit has index based attributes.
15289 (read_attribute): Reflect API changes.
15290 (read_addr_index_1): Reflect API changes. Update comments.
15291 (dwarf2_read_addr_index_data): Reflect API changes.
15292 (dwarf2_read_addr_index): Likewise.
15293 (read_str_index): Change API and implementation. This becomes a helper
15294 to be used by the new string index related methods. Update error
15295 message and comments.
15296 (read_dwo_str_index): New function definition.
15297 (read_stub_str_index): Likewise.
15298 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15299 * symfile.h (dwarf2_debug_sections): Likewise.
15300 * xcoffread.c (dwarf2_debug_sections): Likewise.
15301
15302 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15303
15304 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15305 core_reg_sect type to gdb_byte *.
15306 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15307 * cris-tdep.c (fetch_core_registers): Likewise.
15308 * corelow.c (core_target::get_core_register_section): Change
15309 type of `contents` to gdb::byte_vector.
15310
15311 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15312
15313 * tui/tui-wingeneral.c (box_win): Position the title in the center
15314 of the border.
15315
15316 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15317
15318 * corelow.c (core_target::get_core_register_section): Use
15319 std::vector instead of alloca.
15320
15321 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15322
15323 * warning.m4: Add -Wmissing-declarations to build_warnings.
15324 * configure: Re-generate.
15325
15326 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15327
15328 * python/python.c (init__gdb_module): Add declaration.
15329
15330 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
15331
15332 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15333 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15334 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15335 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15336 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15337 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15338 * ada-exp.y (_initialize_ada_exp): Add declaration.
15339 * ada-lang.c (_initialize_ada_language): Add declaration.
15340 * ada-tasks.c (_initialize_tasks): Add declaration.
15341 * agent.c (_initialize_agent): Add declaration.
15342 * aix-thread.c (_initialize_aix_thread): Add declaration.
15343 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15344 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15345 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15346 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15347 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15348 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15349 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15350 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15351 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15352 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15353 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15354 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15355 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15356 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15357 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15358 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15359 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15360 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15361 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15362 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15363 * annotate.c (_initialize_annotate): Add declaration.
15364 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15365 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15366 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15367 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15368 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15369 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15370 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15371 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15372 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15373 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15374 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15375 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15376 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15377 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15378 * auto-load.c (_initialize_auto_load): Add declaration.
15379 * auxv.c (_initialize_auxv): Add declaration.
15380 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15381 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15382 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15383 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15384 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15385 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15386 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15387 * breakpoint.c (_initialize_breakpoint): Add declaration.
15388 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15389 * btrace.c (_initialize_btrace): Add declaration.
15390 * charset.c (_initialize_charset): Add declaration.
15391 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15392 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15393 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15394 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15395 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15396 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15397 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15398 * coffread.c (_initialize_coffread): Add declaration.
15399 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15400 * compile/compile.c (_initialize_compile): Add declaration.
15401 * complaints.c (_initialize_complaints): Add declaration.
15402 * completer.c (_initialize_completer): Add declaration.
15403 * copying.c (_initialize_copying): Add declaration.
15404 * corefile.c (_initialize_core): Add declaration.
15405 * corelow.c (_initialize_corelow): Add declaration.
15406 * cp-abi.c (_initialize_cp_abi): Add declaration.
15407 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15408 * cp-support.c (_initialize_cp_support): Add declaration.
15409 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15410 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15411 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15412 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15413 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
15414 * ctfread.c (_initialize_ctfread): Add declaration.
15415 * d-lang.c (_initialize_d_language): Add declaration.
15416 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
15417 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
15418 * dbxread.c (_initialize_dbxread): Add declaration.
15419 * dcache.c (_initialize_dcache): Add declaration.
15420 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
15421 * disasm.c (_initialize_disasm): Add declaration.
15422 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
15423 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
15424 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
15425 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
15426 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
15427 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
15428 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
15429 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
15430 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
15431 * elfread.c (_initialize_elfread): Add declaration.
15432 * exec.c (_initialize_exec): Add declaration.
15433 * extension.c (_initialize_extension): Add declaration.
15434 * f-lang.c (_initialize_f_language): Add declaration.
15435 * f-valprint.c (_initialize_f_valprint): Add declaration.
15436 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
15437 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
15438 * filesystem.c (_initialize_filesystem): Add declaration.
15439 * findcmd.c (_initialize_mem_search): Add declaration.
15440 * findvar.c (_initialize_findvar): Add declaration.
15441 * fork-child.c (_initialize_fork_child): Add declaration.
15442 * frame-base.c (_initialize_frame_base): Add declaration.
15443 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
15444 * frame.c (_initialize_frame): Add declaration.
15445 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
15446 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
15447 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
15448 * gcore.c (_initialize_gcore): Add declaration.
15449 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
15450 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
15451 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
15452 * gdbarch.c (_initialize_gdbarch): Add declaration.
15453 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
15454 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
15455 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
15456 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
15457 * go-lang.c (_initialize_go_language): Add declaration.
15458 * go32-nat.c (_initialize_go32_nat): Add declaration.
15459 * guile/guile.c (_initialize_guile): Add declaration.
15460 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
15461 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
15462 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
15463 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
15464 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
15465 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
15466 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
15467 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
15468 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
15469 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
15470 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
15471 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
15472 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
15473 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
15474 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
15475 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
15476 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
15477 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
15478 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
15479 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
15480 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
15481 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
15482 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
15483 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
15484 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
15485 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
15486 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
15487 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
15488 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
15489 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
15490 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
15491 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
15492 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
15493 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
15494 * infcall.c (_initialize_infcall): Add declaration.
15495 * infcmd.c (_initialize_infcmd): Add declaration.
15496 * inflow.c (_initialize_inflow): Add declaration.
15497 * infrun.c (_initialize_infrun): Add declaration.
15498 * interps.c (_initialize_interpreter): Add declaration.
15499 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
15500 * jit.c (_initialize_jit): Add declaration.
15501 * language.c (_initialize_language): Add declaration.
15502 * linux-fork.c (_initialize_linux_fork): Add declaration.
15503 * linux-nat.c (_initialize_linux_nat): Add declaration.
15504 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
15505 * linux-thread-db.c (_initialize_thread_db): Add declaration.
15506 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
15507 * m2-lang.c (_initialize_m2_language): Add declaration.
15508 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
15509 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
15510 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
15511 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
15512 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
15513 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
15514 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
15515 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
15516 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
15517 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
15518 * machoread.c (_initialize_machoread): Add declaration.
15519 * macrocmd.c (_initialize_macrocmd): Add declaration.
15520 * macroscope.c (_initialize_macroscope): Add declaration.
15521 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15522 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15523 * maint.c (_initialize_maint_cmds): Add declaration.
15524 * mdebugread.c (_initialize_mdebugread): Add declaration.
15525 * memattr.c (_initialize_mem): Add declaration.
15526 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15527 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15528 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15529 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15530 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15531 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15532 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15533 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15534 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15535 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15536 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15537 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15538 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15539 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15540 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15541 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15542 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15543 * mipsread.c (_initialize_mipsread): Add declaration.
15544 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15545 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15546 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15547 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15548 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15549 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15550 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15551 * nto-procfs.c (_initialize_procfs): Add declaration.
15552 * objc-lang.c (_initialize_objc_language): Add declaration.
15553 * observable.c (_initialize_observer): Add declaration.
15554 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15555 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15556 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15557 * osabi.c (_initialize_gdb_osabi): Add declaration.
15558 * osdata.c (_initialize_osdata): Add declaration.
15559 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15560 * parse.c (_initialize_parse): Add declaration.
15561 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15562 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15563 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15564 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15565 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15566 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15567 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15568 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15569 * printcmd.c (_initialize_printcmd): Add declaration.
15570 * probe.c (_initialize_probe): Add declaration.
15571 * proc-api.c (_initialize_proc_api): Add declaration.
15572 * proc-events.c (_initialize_proc_events): Add declaration.
15573 * proc-service.c (_initialize_proc_service): Add declaration.
15574 * procfs.c (_initialize_procfs): Add declaration.
15575 * producer.c (_initialize_producer): Add declaration.
15576 * psymtab.c (_initialize_psymtab): Add declaration.
15577 * python/python.c (_initialize_python): Add declaration.
15578 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15579 * record-btrace.c (_initialize_record_btrace): Add declaration.
15580 * record-full.c (_initialize_record_full): Add declaration.
15581 * record.c (_initialize_record): Add declaration.
15582 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15583 * regcache.c (_initialize_regcache): Add declaration.
15584 * reggroups.c (_initialize_reggroup): Add declaration.
15585 * remote-notif.c (_initialize_notif): Add declaration.
15586 * remote-sim.c (_initialize_remote_sim): Add declaration.
15587 * remote.c (_initialize_remote): Add declaration.
15588 * reverse.c (_initialize_reverse): Add declaration.
15589 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15590 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15591 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15592 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15593 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15594 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15595 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15596 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15597 Add declaration.
15598 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15599 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15600 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15601 * rust-exp.y (_initialize_rust_exp): Add declaration.
15602 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15603 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15604 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15605 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15606 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15607 * score-tdep.c (_initialize_score_tdep): Add declaration.
15608 * ser-go32.c (_initialize_ser_dos): Add declaration.
15609 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15610 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15611 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15612 * ser-uds.c (_initialize_ser_socket): Add declaration.
15613 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15614 * serial.c (_initialize_serial): Add declaration.
15615 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15616 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15617 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15618 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15619 * skip.c (_initialize_step_skip): Add declaration.
15620 * sol-thread.c (_initialize_sol_thread): Add declaration.
15621 * solib-aix.c (_initialize_solib_aix): Add declaration.
15622 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15623 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15624 * solib-frv.c (_initialize_frv_solib): Add declaration.
15625 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15626 * solib-target.c (_initialize_solib_target): Add declaration.
15627 * solib.c (_initialize_solib): Add declaration.
15628 * source-cache.c (_initialize_source_cache): Add declaration.
15629 * source.c (_initialize_source): Add declaration.
15630 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15631 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15632 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15633 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15634 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15635 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15636 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15637 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15638 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15639 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15640 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15641 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15642 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15643 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15644 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15645 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15646 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15647 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15648 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15649 * stabsread.c (_initialize_stabsread): Add declaration.
15650 * stack.c (_initialize_stack): Add declaration.
15651 * stap-probe.c (_initialize_stap_probe): Add declaration.
15652 * std-regs.c (_initialize_frame_reg): Add declaration.
15653 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15654 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15655 * symfile.c (_initialize_symfile): Add declaration.
15656 * symmisc.c (_initialize_symmisc): Add declaration.
15657 * symtab.c (_initialize_symtab): Add declaration.
15658 * target.c (_initialize_target): Add declaration.
15659 * target-connection.c (_initialize_target_connection): Add
15660 declaration.
15661 * target-dcache.c (_initialize_target_dcache): Add declaration.
15662 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15663 * thread.c (_initialize_thread): Add declaration.
15664 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15665 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15666 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15667 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15668 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15669 * tracectf.c (_initialize_ctf): Add declaration.
15670 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15671 * tracefile.c (_initialize_tracefile): Add declaration.
15672 * tracepoint.c (_initialize_tracepoint): Add declaration.
15673 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15674 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15675 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15676 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15677 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15678 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15679 * tui/tui.c (_initialize_tui): Add declaration.
15680 * typeprint.c (_initialize_typeprint): Add declaration.
15681 * ui-style.c (_initialize_ui_style): Add declaration.
15682 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15683 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15684 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15685 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15686 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15687 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15688 * unittests/filtered_iterator-selftests.c
15689 (_initialize_filtered_iterator_selftests): Add declaration.
15690 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15691 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15692 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15693 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15694 * unittests/main-thread-selftests.c
15695 (_initialize_main_thread_selftests): Add declaration.
15696 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15697 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15698 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15699 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15700 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15701 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15702 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15703 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15704 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15705 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15706 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15707 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15708 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15709 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15710 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15711 declaration.
15712 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15713 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15714 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15715 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15716 * user-regs.c (_initialize_user_regs): Add declaration.
15717 * utils.c (_initialize_utils): Add declaration.
15718 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15719 * valops.c (_initialize_valops): Add declaration.
15720 * valprint.c (_initialize_valprint): Add declaration.
15721 * value.c (_initialize_values): Add declaration.
15722 * varobj.c (_initialize_varobj): Add declaration.
15723 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15724 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15725 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15726 * windows-nat.c (_initialize_windows_nat): Add declaration.
15727 (_initialize_check_for_gdb_ini): Add declaration.
15728 (_initialize_loadable): Add declaration.
15729 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15730 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15731 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15732 * xcoffread.c (_initialize_xcoffread): Add declaration.
15733 * xml-support.c (_initialize_xml_support): Add declaration.
15734 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15735 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15736 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15737 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15738
15739 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15740
15741 * regformats/regdat.sh: Generate declaration for init function.
15742
15743 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15744
15745 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15746 up.
15747 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15748 close_one_inferior>: New methods.
15749 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15750 pass down target to find_inferior_pid.
15751 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15752 Pass down target to find_inferior_ptid.
15753 (gdbsim_target::create_inferior): Pass down target to
15754 add_thread_silent.
15755 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15756 target down to find_inferior_ptid and switch_to_thread.
15757 (gdbsim_target::close): Update to call close_one_inferior.
15758 (struct resume_data): Remove.
15759 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15760 directly, rather than through a void pointer.
15761 (gdbsim_target::resume): Update to call resume_one_inferior.
15762
15763 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15764
15765 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15766
15767 2020-01-12 Pedro Alves <palves@redhat.com>
15768
15769 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15770 directly for the current inferior instead of
15771 discard_all_inferiors.
15772 (discard_all_inferiors): Delete.
15773
15774 2020-01-11 Tom Tromey <tom@tromey.com>
15775
15776 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15777 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15778 deprecated_safe_get_selected_frame.
15779
15780 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15781
15782 * inferior.c (print_inferior): Switch inferior before printing it.
15783
15784 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15785 Pedro Alves <palves@redhat.com>
15786
15787 * progspace-and-thread.c (switch_to_program_space_and_thread):
15788 Assert there's an inferior for PSPACE. Use
15789 switch_to_inferior_no_thread to switch the inferior too.
15790 * progspace.c (program_space::~program_space): Call
15791 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15792 (program_space::free_all_objfiles): Don't call clear_symtab_users
15793 here.
15794 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15795
15796 2020-01-10 Pedro Alves <palves@redhat.com>
15797
15798 * NEWS: Mention multi-target debugging, "info connections", and
15799 "add-inferior -no-connection".
15800
15801 2020-01-10 Pedro Alves <palves@redhat.com>
15802
15803 * infrun.c: Include "target-connection.h".
15804 (check_multi_target_resumption): New.
15805 (proceed): Call it.
15806 * target-connection.c (make_target_connection_string): Make
15807 extern.
15808 * target-connection.h (make_target_connection_string): Declare.
15809
15810 2020-01-10 Pedro Alves <palves@redhat.com>
15811
15812 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15813 * inferior.c (uiout_field_connection): New function.
15814 (print_inferior): Add new "connection-id" column.
15815 (add_inferior_command): Show connection number/string of added
15816 inferior.
15817 * process-stratum-target.h
15818 (process_stratum_target::connection_string): New virtual method.
15819 (process_stratum_target::connection_number): New field.
15820 * remote.c (remote_target::connection_string): New override.
15821 * target-connection.c: New file.
15822 * target-connection.h: New file.
15823 * target.c (decref_target): Remove process_stratum targets from
15824 the connection list.
15825 (target_stack::push): Add process_stratum targets to the
15826 connection list.
15827
15828 2020-01-10 Pedro Alves <palves@redhat.com>
15829
15830 Revert:
15831 2016-04-12 Pedro Alves <palves@redhat.com>
15832 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15833 Remove references to name.
15834 * serial.h (struct serial) <name>: Delete.
15835
15836 2020-01-10 Pedro Alves <palves@redhat.com>
15837
15838 * gdbarch-selftests.c (register_to_value_test): Remove "target
15839 already pushed" check.
15840
15841 2020-01-10 Pedro Alves <palves@redhat.com>
15842 John Baldwin <jhb@FreeBSD.org>
15843
15844 * aarch64-linux-nat.c
15845 (aarch64_linux_nat_target::thread_architecture): Adjust.
15846 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15847 (task_command_1): Likewise.
15848 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15849 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15850 (aix_thread_target::store_registers)
15851 (aix_thread_target::thread_alive): Adjust.
15852 * amd64-fbsd-tdep.c: Include "inferior.h".
15853 (amd64fbsd_get_thread_local_address): Pass down target.
15854 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15855 thread's gdbarch instead of target_gdbarch.
15856 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15857 get_last_target_status.
15858 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15859 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15860 inferiors.
15861 (update_inserted_breakpoint_locations): Skip if inferiors with no
15862 execution.
15863 (update_global_location_list): When handling moribund locations,
15864 find representative inferior for location's pspace, and use thread
15865 count of its process_stratum target.
15866 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15867 * bsd-uthread.c (bsd_uthread_target::wait): Use
15868 as_process_stratum_target and adjust thread_change_ptid and
15869 add_thread calls.
15870 (bsd_uthread_target::update_thread_list): Use
15871 as_process_stratum_target and adjust find_thread_ptid,
15872 thread_change_ptid and add_thread calls.
15873 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15874 find_thread_ptid call.
15875 * corelow.c (add_to_thread_list): Adjust add_thread call.
15876 (core_target_open): Adjust add_thread_silent and thread_count
15877 calls.
15878 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15879 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15880 * event-top.c (async_disconnect): Pop targets from all inferiors.
15881 * exec.c (add_target_sections): Push exec target on all inferiors
15882 sharing the program space.
15883 (remove_target_sections): Remove the exec target from all
15884 inferiors sharing the program space.
15885 (exec_on_vfork): New.
15886 * exec.h (exec_on_vfork): Declare.
15887 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15888 Pass it down.
15889 (fbsd_nat_target::update_thread_list): Adjust.
15890 (fbsd_nat_target::resume): Adjust.
15891 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15892 down.
15893 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15894 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15895 get_thread_arch_regcache call.
15896 * fork-child.c (gdb_startup_inferior): Pass target down to
15897 startup_inferior and set_executing.
15898 * gdbthread.h (struct process_stratum_target): Forward declare.
15899 (add_thread, add_thread_silent, add_thread_with_info)
15900 (in_thread_list): Add process_stratum_target parameter.
15901 (find_thread_ptid(inferior*, ptid_t)): New overload.
15902 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15903 parameter.
15904 (all_threads()): Delete overload.
15905 (all_threads, all_non_exited_threads): Add process_stratum_target
15906 parameter.
15907 (all_threads_safe): Use brace initialization.
15908 (thread_count): Add process_stratum_target parameter.
15909 (set_resumed, set_running, set_stop_requested, set_executing)
15910 (threads_are_executing, finish_thread_state): Add
15911 process_stratum_target parameter.
15912 (switch_to_thread): Use is_current_thread.
15913 * i386-fbsd-tdep.c: Include "inferior.h".
15914 (i386fbsd_get_thread_local_address): Pass down target.
15915 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15916 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15917 have_inferiors check.
15918 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15919 (inf_ptrace_target::attach): Adjust.
15920 * infcall.c (run_inferior_call): Adjust.
15921 * infcmd.c (run_command_1): Pass target to
15922 scoped_finish_thread_state.
15923 (proceed_thread_callback): Skip inferiors with no execution.
15924 (continue_command): Rename 'all_threads' local to avoid hiding
15925 'all_threads' function. Adjust get_last_target_status call.
15926 (prepare_one_step): Adjust set_running call.
15927 (signal_command): Use user_visible_resume_target. Compare thread
15928 pointers instead of inferior_ptid.
15929 (info_program_command): Adjust to pass down target.
15930 (attach_command): Mark target's 'thread_executing' flag.
15931 (stop_current_target_threads_ns): New, factored out from ...
15932 (interrupt_target_1): ... this. Switch inferior before making
15933 target calls.
15934 * inferior-iter.h
15935 (struct all_inferiors_iterator, struct all_inferiors_range)
15936 (struct all_inferiors_safe_range)
15937 (struct all_non_exited_inferiors_range): Filter on
15938 process_stratum_target too. Remove explicit.
15939 * inferior.c (inferior::inferior): Push dummy target on target
15940 stack.
15941 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15942 Add process_stratum_target parameter, and pass it down.
15943 (have_live_inferiors): Adjust.
15944 (switch_to_inferior_and_push_target): New.
15945 (add_inferior_command, clone_inferior_command): Handle
15946 "-no-connection" parameter. Use
15947 switch_to_inferior_and_push_target.
15948 (_initialize_inferior): Mention "-no-connection" option in
15949 the help of "add-inferior" and "clone-inferior" commands.
15950 * inferior.h: Include "process-stratum-target.h".
15951 (interrupt_target_1): Use bool.
15952 (struct inferior) <push_target, unpush_target, target_is_pushed,
15953 find_target_beneath, top_target, process_target, target_at,
15954 m_stack>: New.
15955 (discard_all_inferiors): Delete.
15956 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15957 (all_inferiors, all_non_exited_inferiors): Add
15958 process_stratum_target parameter.
15959 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15960 (target_last_proc_target): New global.
15961 (follow_fork_inferior): Push target on new inferior. Pass target
15962 to add_thread_silent. Call exec_on_vfork. Handle target's
15963 reference count.
15964 (follow_fork): Adjust get_last_target_status call. Also consider
15965 target.
15966 (follow_exec): Push target on new inferior.
15967 (struct execution_control_state) <target>: New field.
15968 (user_visible_resume_target): New.
15969 (do_target_resume): Call target_async.
15970 (resume_1): Set target's threads_executing flag. Consider resume
15971 target.
15972 (commit_resume_all_targets): New.
15973 (proceed): Also consider resume target. Skip threads of inferiors
15974 with no execution. Commit resumtion in all targets.
15975 (start_remote): Pass current inferior to wait_for_inferior.
15976 (infrun_thread_stop_requested): Consider target as well. Pass
15977 thread_info pointer to clear_inline_frame_state instead of ptid.
15978 (infrun_thread_thread_exit): Consider target as well.
15979 (random_pending_event_thread): New inferior parameter. Use it.
15980 (do_target_wait): Rename to ...
15981 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15982 down.
15983 (threads_are_resumed_pending_p, do_target_wait): New.
15984 (prepare_for_detach): Adjust calls.
15985 (wait_for_inferior): New inferior parameter. Handle it. Use
15986 do_target_wait_1 instead of do_target_wait.
15987 (fetch_inferior_event): Adjust. Switch to representative
15988 inferior. Pass target down.
15989 (set_last_target_status): Add process_stratum_target parameter.
15990 Save target in global.
15991 (get_last_target_status): Add process_stratum_target parameter and
15992 handle it.
15993 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15994 (context_switch): Check inferior_ptid == null_ptid before calling
15995 inferior_thread().
15996 (get_inferior_stop_soon): Pass down target.
15997 (wait_one): Rename to ...
15998 (poll_one_curr_target): ... this.
15999 (struct wait_one_event): New.
16000 (wait_one): New.
16001 (stop_all_threads): Adjust.
16002 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16003 event's target.
16004 (switch_back_to_stepped_thread): Also consider target.
16005 (print_stop_event): Update.
16006 (normal_stop): Update. Also consider the resume target.
16007 * infrun.h (wait_for_inferior): Remove declaration.
16008 (user_visible_resume_target): New declaration.
16009 (get_last_target_status, set_last_target_status): New
16010 process_stratum_target parameter.
16011 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16012 process_stratum_target parameter, and use it.
16013 (clear_inline_frame_state (thread_info*)): New.
16014 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16015 process_stratum_target parameter.
16016 (clear_inline_frame_state (thread_info*)): Declare.
16017 * linux-fork.c (delete_checkpoint_command): Pass target down to
16018 find_thread_ptid.
16019 (checkpoint_command): Adjust.
16020 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16021 instead of just tweaking inferior_ptid.
16022 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16023 (exit_lwp): Pass target down to find_thread_ptid.
16024 (attach_proc_task_lwp_callback): Pass target down to
16025 add_thread/set_running/set_executing.
16026 (linux_nat_target::attach): Pass target down to
16027 thread_change_ptid.
16028 (get_detach_signal): Pass target down to find_thread_ptid.
16029 Consider last target status's target.
16030 (linux_resume_one_lwp_throw, resume_lwp)
16031 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16032 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16033 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16034 (linux_nat_target::async_wait_fd): New.
16035 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16036 target down.
16037 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16038 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16039 * linux-thread-db.c (struct thread_db_info::process_target): New
16040 field.
16041 (add_thread_db_info): Save target.
16042 (get_thread_db_info): New process_stratum_target parameter. Also
16043 match target.
16044 (delete_thread_db_info): New process_stratum_target parameter.
16045 Also match target.
16046 (thread_from_lwp): Adjust to pass down target.
16047 (thread_db_notice_clone): Pass down target.
16048 (check_thread_db_callback): Pass down target.
16049 (try_thread_db_load_1): Always push the thread_db target.
16050 (try_thread_db_load, record_thread): Pass target down.
16051 (thread_db_target::detach): Pass target down. Always unpush the
16052 thread_db target.
16053 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16054 target down. Always unpush the thread_db target.
16055 (find_new_threads_callback, thread_db_find_new_threads_2)
16056 (thread_db_target::update_thread_list): Pass target down.
16057 (thread_db_target::pid_to_str): Pass current inferior down.
16058 (thread_db_target::get_thread_local_address): Pass target down.
16059 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16060 target down.
16061 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16062 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16063 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16064 (procfs_init_inferior): Rename to ...
16065 (procfs_target::procfs_init_inferior): ... this and adjust.
16066 (procfs_target::create_inferior, procfs_notice_thread)
16067 (procfs_do_thread_registers): Adjust.
16068 * ppc-fbsd-tdep.c: Include "inferior.h".
16069 (ppcfbsd_get_thread_local_address): Pass down target.
16070 * proc-service.c (ps_xfer_memory): Switch current inferior and
16071 program space as well.
16072 (get_ps_regcache): Pass target down.
16073 * process-stratum-target.c
16074 (process_stratum_target::thread_address_space)
16075 (process_stratum_target::thread_architecture): Pass target down.
16076 * process-stratum-target.h
16077 (process_stratum_target::threads_executing): New field.
16078 (as_process_stratum_target): New.
16079 * ravenscar-thread.c
16080 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16081 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16082 down.
16083 * record-btrace.c (record_btrace_target::info_record): Adjust.
16084 (record_btrace_target::record_method)
16085 (record_btrace_target::record_is_replaying)
16086 (record_btrace_target::fetch_registers)
16087 (get_thread_current_frame_id, record_btrace_target::resume)
16088 (record_btrace_target::wait, record_btrace_target::stop): Pass
16089 target down.
16090 * record-full.c (record_full_wait_1): Switch to event thread.
16091 Pass target down.
16092 * regcache.c (regcache::regcache)
16093 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16094 process_stratum_target parameter and handle it.
16095 (current_thread_target): New global.
16096 (get_thread_regcache): Add process_stratum_target parameter and
16097 handle it. Switch inferior before calling target method.
16098 (get_thread_regcache): Pass target down.
16099 (get_thread_regcache_for_ptid): Pass target down.
16100 (registers_changed_ptid): Add process_stratum_target parameter and
16101 handle it.
16102 (registers_changed_thread, registers_changed): Pass target down.
16103 (test_get_thread_arch_aspace_regcache): New.
16104 (current_regcache_test): Define a couple local test_target_ops
16105 instances and use them for testing.
16106 (readwrite_regcache): Pass process_stratum_target parameter.
16107 (cooked_read_test, cooked_write_test): Pass mock_target down.
16108 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16109 (get_thread_arch_aspace_regcache): Add process_stratum_target
16110 parameter.
16111 (regcache::target): New method.
16112 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16113 (regcache::registers_changed_ptid): Add process_stratum_target
16114 parameter.
16115 (regcache::m_target): New field.
16116 (registers_changed_ptid): Add process_stratum_target parameter.
16117 * remote.c (remote_state::supports_vCont_probed): New field.
16118 (remote_target::async_wait_fd): New method.
16119 (remote_unpush_and_throw): Add remote_target parameter.
16120 (get_current_remote_target): Adjust.
16121 (remote_target::remote_add_inferior): Push target.
16122 (remote_target::remote_add_thread)
16123 (remote_target::remote_notice_new_inferior)
16124 (get_remote_thread_info): Pass target down.
16125 (remote_target::update_thread_list): Skip threads of inferiors
16126 bound to other targets. (remote_target::close): Don't discard
16127 inferiors. (remote_target::add_current_inferior_and_thread)
16128 (remote_target::process_initial_stop_replies)
16129 (remote_target::start_remote)
16130 (remote_target::remote_serial_quit_handler): Pass down target.
16131 (remote_target::remote_unpush_target): New remote_target
16132 parameter. Unpush the target from all inferiors.
16133 (remote_target::remote_unpush_and_throw): New remote_target
16134 parameter. Pass it down.
16135 (remote_target::open_1): Check whether the current inferior has
16136 execution instead of checking whether any inferior is live. Pass
16137 target down.
16138 (remote_target::remote_detach_1): Pass down target. Use
16139 remote_unpush_target.
16140 (extended_remote_target::attach): Pass down target.
16141 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16142 (remote_target::append_resumption): Pass down target.
16143 (remote_target::append_pending_thread_resumptions)
16144 (remote_target::remote_resume_with_hc, remote_target::resume)
16145 (remote_target::commit_resume): Pass down target.
16146 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16147 (remote_target::interrupt_query)
16148 (remote_target::remove_new_fork_children)
16149 (remote_target::check_pending_events_prevent_wildcard_vcont)
16150 (remote_target::remote_parse_stop_reply)
16151 (remote_target::process_stop_reply): Pass down target.
16152 (first_remote_resumed_thread): New remote_target parameter. Pass
16153 it down.
16154 (remote_target::wait_as): Pass down target.
16155 (unpush_and_perror): New remote_target parameter. Pass it down.
16156 (remote_target::readchar, remote_target::remote_serial_write)
16157 (remote_target::getpkt_or_notif_sane_1)
16158 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16159 down target.
16160 (remote_target::mourn_inferior): Pass down target. Use
16161 remote_unpush_target.
16162 (remote_target::core_of_thread)
16163 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16164 (remote_target::pid_to_exec_file)
16165 (remote_target::thread_handle_to_thread_info): Pass down target.
16166 (remote_target::async_wait_fd): New.
16167 * riscv-fbsd-tdep.c: Include "inferior.h".
16168 (riscv_fbsd_get_thread_local_address): Pass down target.
16169 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16170 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16171 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16172 Adjust.
16173 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16174 * solib-svr4.c (enable_break): Pass down target.
16175 * spu-multiarch.c (parse_spufs_run): Pass down target.
16176 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16177 * target-delegates.c: Regenerate.
16178 * target.c (g_target_stack): Delete.
16179 (current_top_target): Return the current inferior's top target.
16180 (target_has_execution_1): Refer to the passed-in inferior's top
16181 target.
16182 (target_supports_terminal_ours): Check whether the initial
16183 inferior was already created.
16184 (decref_target): New.
16185 (target_stack::push): Incref/decref the target.
16186 (push_target, push_target, unpush_target): Adjust.
16187 (target_stack::unpush): Defref target.
16188 (target_is_pushed): Return bool. Adjust to refer to the current
16189 inferior's target stack.
16190 (dispose_inferior): Delete, and inline parts ...
16191 (target_preopen): ... here. Only dispose of the current inferior.
16192 (target_detach): Hold strong target reference while detaching.
16193 Pass target down.
16194 (target_thread_name): Add assertion.
16195 (target_resume): Pass down target.
16196 (target_ops::beneath, find_target_at): Adjust to refer to the
16197 current inferior's target stack.
16198 (get_dummy_target): New.
16199 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16200 has a thread running.
16201 (initialize_targets): Rename to ...
16202 (_initialize_target): ... this.
16203 * target.h: Include "gdbsupport/refcounted-object.h".
16204 (struct target_ops): Inherit refcounted_object.
16205 (target_ops::shortname, target_ops::longname): Make const.
16206 (target_ops::async_wait_fd): New method.
16207 (decref_target): Declare.
16208 (struct target_ops_ref_policy): New.
16209 (target_ops_ref): New typedef.
16210 (get_dummy_target): Declare function.
16211 (target_is_pushed): Return bool.
16212 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16213 (all_matching_threads_iterator::all_matching_threads_iterator):
16214 Handle filter target.
16215 * thread-iter.h (struct all_matching_threads_iterator, struct
16216 all_matching_threads_range, class all_non_exited_threads_range):
16217 Filter by target too. Remove explicit.
16218 * thread.c (threads_executing): Delete.
16219 (inferior_thread): Pass down current inferior.
16220 (clear_thread_inferior_resources): Pass down thread pointer
16221 instead of ptid_t.
16222 (add_thread_silent, add_thread_with_info, add_thread): Add
16223 process_stratum_target parameter. Use it for thread and inferior
16224 searches.
16225 (is_current_thread): New.
16226 (thread_info::deletable): Use it.
16227 (find_thread_ptid, thread_count, in_thread_list)
16228 (thread_change_ptid, set_resumed, set_running): New
16229 process_stratum_target parameter. Pass it down.
16230 (set_executing): New process_stratum_target parameter. Pass it
16231 down. Adjust reference to 'threads_executing'.
16232 (threads_are_executing): New process_stratum_target parameter.
16233 Adjust reference to 'threads_executing'.
16234 (set_stop_requested, finish_thread_state): New
16235 process_stratum_target parameter. Pass it down.
16236 (switch_to_thread): Also match inferior.
16237 (switch_to_thread): New process_stratum_target parameter. Pass it
16238 down.
16239 (update_threads_executing): Reimplement.
16240 * top.c (quit_force): Pop targets from all inferior.
16241 (gdb_init): Don't call initialize_targets.
16242 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16243 Declare.
16244 (windows_add_thread, windows_delete_thread): Adjust.
16245 (get_windows_debug_event): Rename to ...
16246 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16247 * tracefile-tfile.c (tfile_target_open): Pass down target.
16248 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16249 Forward declare.
16250 (switch_to_thread): Add process_stratum_target parameter.
16251 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16252 parameter. Use it.
16253 (mi_on_resume): Pass target down.
16254 * nat/fork-inferior.c (startup_inferior): Add
16255 process_stratum_target parameter. Pass it down.
16256 * nat/fork-inferior.h (startup_inferior): Add
16257 process_stratum_target parameter.
16258 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16259
16260 2020-01-10 Pedro Alves <palves@redhat.com>
16261
16262 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16263 directly. Instead find the first thread in the thread list and
16264 use switch_to_thread.
16265
16266 2020-01-10 Pedro Alves <palves@redhat.com>
16267
16268 * remote.c (remote_target::remote_add_inferior): Don't bind a
16269 process to the current inferior if the current inferior is already
16270 bound to a process.
16271
16272 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16273 Pedro Alves <palves@redhat.com>
16274
16275 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16276 If no process is specified, return null_ptid instead of
16277 inferior_ptid.
16278 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16279 TARGET_WAITKIND_SIGNALLED with no pid.
16280
16281 2020-01-10 Pedro Alves <palves@redhat.com>
16282
16283 * remote.c (first_remote_resumed_thread): New.
16284 (remote_target::wait_as): Use it as default event_ptid instead of
16285 inferior_ptid.
16286
16287 2020-01-10 Pedro Alves <palves@redhat.com>
16288
16289 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16290
16291 2020-01-10 Pedro Alves <palves@redhat.com>
16292
16293 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16294 not -1.
16295
16296 2020-01-10 Pedro Alves <palves@redhat.com>
16297
16298 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16299 ptid to get_last_target_status.
16300 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16301 ptid to get_last_target_status.
16302 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16303 get_last_target_status.
16304 (info_program_command): Don't pass a target_waitstatus to
16305 get_last_target_status.
16306 * infrun.c (init_wait_for_inferior): Use
16307 nullify_last_target_wait_ptid.
16308 (get_last_target_status): Handle nullptr arguments.
16309 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16310 (print_stop_event): Don't pass a ptid to get_last_target_status.
16311 (normal_stop): Don't pass a ptid to get_last_target_status.
16312 * infrun.h (get_last_target_status, set_last_target_status): Move
16313 comments here and update.
16314 (nullify_last_target_wait_ptid): Declare.
16315 * linux-fork.c (fork_load_infrun_state): Remove local extern
16316 declaration of nullify_last_target_wait_ptid.
16317 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16318 to get_last_target_status.
16319
16320 2020-01-10 Pedro Alves <palves@redhat.com>
16321
16322 * gdbthread.h (scoped_restore_current_thread)
16323 <dont_restore, restore, m_dont_restore>: Declare.
16324 * thread.c (thread_alive): Add assertion. Return bool.
16325 (switch_to_thread_if_alive): New.
16326 (prune_threads): Switch inferior/thread.
16327 (print_thread_info_1): Switch thread before calling target methods.
16328 (scoped_restore_current_thread::restore): New, factored out from
16329 ...
16330 (scoped_restore_current_thread::~scoped_restore_current_thread):
16331 ... this.
16332 (scoped_restore_current_thread::scoped_restore_current_thread):
16333 Add assertion.
16334 (thread_apply_all_command, thread_select): Use
16335 switch_to_thread_if_alive.
16336 * infrun.c (proceed, restart_threads, handle_signal_stop)
16337 (switch_back_to_stepped_thread): Switch current thread before
16338 calling target methods.
16339
16340 2020-01-10 Pedro Alves <palves@redhat.com>
16341
16342 * inferior.c (switch_to_inferior_no_thread): New function,
16343 factored out from ...
16344 (inferior_command): ... here.
16345 * inferior.h (switch_to_inferior_no_thread): Declare.
16346 * mi/mi-main.c (run_one_inferior): Use
16347 switch_to_inferior_no_thread.
16348
16349 2020-01-10 Pedro Alves <palves@redhat.com>
16350
16351 * infcmd.c (kill_command): Remove dead code.
16352
16353 2020-01-10 Pedro Alves <palves@redhat.com>
16354
16355 * remote.c (remote_target::mourn_inferior): No longer check
16356 whether the target is running.
16357
16358 2020-01-10 Pedro Alves <palves@redhat.com>
16359
16360 * corelow.c (core_target::has_execution): Change parameter type to
16361 inferior pointer.
16362 * inferior.c (number_of_live_inferiors): Use
16363 inferior::has_execution instead of target_has_execution_1.
16364 * inferior.h (inferior::has_execution): New.
16365 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16366 inferior::has_execution instead of target_has_execution_1.
16367 * process-stratum-target.c
16368 (process_stratum_target::has_execution): Change parameter type to
16369 inferior pointer. Check the inferior's PID instead of
16370 inferior_ptid.
16371 * process-stratum-target.h
16372 (process_stratum_target::has_execution): Change parameter type to
16373 inferior pointer.
16374 * record-full.c (record_full_core_target::has_execution): Change
16375 parameter type to inferior pointer.
16376 * target.c (target_has_execution_1): Change parameter type to
16377 inferior pointer.
16378 (target_has_execution_current): Adjust.
16379 * target.h (target_ops::has_execution): Change parameter type to
16380 inferior pointer.
16381 (target_has_execution_1): Change parameter type to inferior
16382 pointer. Change return type to bool.
16383 * tracefile.h (tracefile_target::has_execution): Change parameter
16384 type to inferior pointer.
16385
16386 2020-01-10 Pedro Alves <palves@redhat.com>
16387
16388 * exceptions.c (print_flush): Remove current_top_target() check.
16389
16390 2020-01-10 Pedro Alves <palves@redhat.com>
16391
16392 * remote.c (show_remote_exec_file): Show the current inferior's
16393 exec-file instead of the command variable's value.
16394
16395 2020-01-10 Pedro Alves <palves@redhat.com>
16396
16397 * record-full.c (record_full_resume_ptid): New global.
16398 (record_full_target::resume): Set it.
16399 (record_full_wait_1): Use record_full_resume_ptid instead of
16400 inferior_ptid.
16401
16402 2020-01-10 Pedro Alves <palves@redhat.com>
16403
16404 * gdbthread.h (scoped_restore_current_thread)
16405 <dont_restore, restore, m_dont_restore>: Declare.
16406 * thread.c (thread_alive): Add assertion. Return bool.
16407 (switch_to_thread_if_alive): New.
16408 (prune_threads): Switch inferior/thread.
16409 (print_thread_info_1): Switch thread before calling target methods.
16410 (scoped_restore_current_thread::restore): New, factored out from
16411 ...
16412 (scoped_restore_current_thread::~scoped_restore_current_thread):
16413 ... this.
16414 (scoped_restore_current_thread::scoped_restore_current_thread):
16415 Add assertion.
16416 (thread_apply_all_command, thread_select): Use
16417 switch_to_thread_if_alive.
16418
16419 2020-01-10 George Barrett <bob@bob131.so>
16420
16421 * stap-probe.c (stap_modify_semaphore): Don't check for null
16422 semaphores.
16423 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
16424 for null semaphores.
16425
16426 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16427
16428 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
16429 all source windows, and maintain horizontal scroll status while
16430 doing so.
16431
16432 2020-01-09 Tom Tromey <tom@tromey.com>
16433
16434 PR tui/18932:
16435 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
16436 update_source_window, not print_source_lines.
16437
16438 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16439
16440 * tui/tui.c (tui_enable): Register tui hooks after calling
16441 tui_display_main.
16442
16443 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16444
16445 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
16446
16447 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
16448
16449 * thread.c (print_thread_info_1): Fix indentation.
16450
16451 2020-01-09 Christian Biesinger <cbiesinger@google.com>
16452
16453 * symtab.c (general_symbol_info::compute_and_set_names): Move the
16454 unique_xmalloc_ptr outside the if to always free the demangled name.
16455
16456 2020-01-08 Tom Tromey <tromey@adacore.com>
16457
16458 * xcoffread.c (enter_line_range, read_xcoff_symtab)
16459 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
16460 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
16461 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
16462 Remove.
16463 (section_offsets): New typedef.
16464 * symtab.c (fixup_section, get_msymbol_address): Update.
16465 * symmisc.c (dump_msymbols): Update.
16466 * symfile.h (relative_addr_info_to_section_offsets)
16467 (symfile_map_offsets_to_segments): Update.
16468 * symfile.c (build_section_addr_info_from_objfile)
16469 (init_objfile_sect_indices): Update.
16470 (struct place_section_arg): Change type of "offsets".
16471 (place_section): Update.
16472 (relative_addr_info_to_section_offsets): Change type of
16473 "section_offsets". Remove "num_sections" parameter.
16474 (default_symfile_offsets, syms_from_objfile_1)
16475 (set_objfile_default_section_offset): Update.
16476 (reread_symbols): No need to preserve section offsets by hand.
16477 (symfile_map_offsets_to_segments): Change type of "offsets".
16478 * stap-probe.c (relocate_address): Update.
16479 * stabsread.h (process_one_symbol): Update.
16480 * solib-target.c (struct lm_info_target) <offsets>: Change type.
16481 (solib_target_relocate_section_addresses): Update.
16482 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
16483 Update.
16484 * solib-frv.c (frv_relocate_main_executable): Update.
16485 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
16486 * solib-aix.c (solib_aix_get_section_offsets): Change return
16487 type.
16488 (solib_aix_solib_create_inferior_hook): Update.
16489 * remote.c (remote_target::get_offsets): Update.
16490 * psymtab.c (find_pc_sect_psymtab): Update.
16491 * psympriv.h (struct partial_symbol) <address, text_low,
16492 text_high>: Update.
16493 * objfiles.h (obj_section_offset): Update.
16494 (struct objfile) <section_offsets>: Change type.
16495 <num_sections>: Remove.
16496 (objfile_relocate): Update.
16497 * objfiles.c (entry_point_address_query): Update
16498 (relocate_one_symbol): Change type of "section_offsets".
16499 (objfile_relocate1, objfile_relocate1): Change type of
16500 "new_offsets".
16501 (objfile_rebase1): Update.
16502 * mipsread.c (mipscoff_symfile_read): Update.
16503 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
16504 parameter.
16505 * mdebugread.c (parse_symbol): Change type of "section_offsets".
16506 (parse_external, psymtab_to_symtab_1): Update.
16507 * machoread.c (macho_symfile_offsets): Update.
16508 * ia64-tdep.c (ia64_find_unwind_table): Update.
16509 * hppa-tdep.c (read_unwind_info): Update.
16510 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
16511 * dwarf2read.c (create_addrmap_from_index)
16512 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16513 (process_psymtab_comp_unit_reader, add_partial_symbol)
16514 (add_partial_subprogram, process_full_comp_unit)
16515 (read_file_scope, read_func_scope, read_lexical_block_scope)
16516 (read_call_site_scope, dwarf2_rnglists_process)
16517 (dwarf2_ranges_process, dwarf2_ranges_read)
16518 (dwarf_decode_lines_1, var_decode_location, new_symbol)
16519 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16520 Update.
16521 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16522 Update.
16523 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16524 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16525 (process_one_symbol): Change type of "section_offsets".
16526 * ctfread.c (get_objfile_text_range): Update.
16527 * coffread.c (coff_symtab_read, enter_linenos)
16528 (process_coff_symbol): Update.
16529 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16530 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16531
16532 2020-01-08 Tom Tromey <tromey@adacore.com>
16533
16534 * dwarf2read.c (parse_macro_definition): Use std::string.
16535 (parse_macro_definition): Likewise.
16536
16537 2020-01-08 Tom Tromey <tromey@adacore.com>
16538
16539 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16540 (ATTR_ALLOC_CHUNK): Remove.
16541
16542 2020-01-08 Tom Tromey <tromey@adacore.com>
16543
16544 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16545
16546 2020-01-08 Tom Tromey <tromey@adacore.com>
16547
16548 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16549 (dwarf2_compute_name, open_dwo_file): Likewise.
16550 (process_enumeration_scope): Use std::vector.
16551 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16552 (partial_die_info::fixup, dwarf2_start_subfile)
16553 (guess_full_die_structure_name, dwarf2_name): Likewise.
16554 (determine_prefix): Update.
16555 (guess_full_die_structure_name): Make return type const.
16556 (partial_die_full_name): Return unique_xmalloc_ptr.
16557 (DW_FIELD_ALLOC_CHUNK): Remove.
16558
16559 2020-01-07 Tom Tromey <tromey@adacore.com>
16560
16561 PR build/24937:
16562 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16563
16564 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16565
16566 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16567
16568 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16569
16570 * stack.c (print_frame_info): Move disassemble_next_line code
16571 inside source_print block.
16572
16573 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16574
16575 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16576 gdb/signals.h, as we are now using native signal symbols.
16577
16578 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16579
16580 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16581 overflow by an early check of content vs threshold.
16582 * tui/tui-source.c (tui_source_window::line_is_displayed):
16583 Likewise.
16584
16585 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16586
16587 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16588
16589 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16590
16591 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16592 export table if no section contains it's RVA.
16593
16594 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16595
16596 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16597
16598 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16599
16600 * source.c (print_source_lines_base): Set last_line_listed.
16601
16602 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16603
16604 * tui/tui-disasm.c: Remove trailing spaces.
16605
16606 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16607 Pedro Alves <palves@redhat.com>
16608
16609 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16610 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16611 (windows_gdb_signal_to_target): New function, uses the above
16612 enumeration to convert GDB internal signal codes to equivalent
16613 Windows codes.
16614 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16615 * windows-nat.c: Include "gdb_wait.h".
16616 (get_windows_debug_event): Extract the fatal exception from the
16617 exit status and convert to the equivalent Posix signal number.
16618 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16619 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16620 * gdbsupport/gdb_wait.c: New file, implements
16621 windows_status_to_termsig.
16622 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16623 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16624
16625 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16626
16627 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16628 show_layout.
16629
16630 2020-01-05 Luis Machado <luis.machado@linaro.org>
16631
16632 * aarch64-linux-nat.c
16633 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16634 and bfd_mach_aarch64.
16635
16636 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16637
16638 * ui-file.c (stdio_file::can_emit_style_escape)
16639 (tee_file::can_emit_style_escape): Ensure style is used also on
16640 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16641 to gdb_stdout.
16642 * main.c (set_gdb_data_directory): Use file style to output the
16643 warning that the given pathname is not a directory.
16644 * top.c (show_history_filename, gdb_safe_append_history)
16645 (show_gdb_datadir): Use file style.
16646
16647 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16648
16649 * solib-target.c (struct lm_info_target):
16650 Change offsets to be a unique_xmalloc_ptr.
16651 (solib_target_relocate_section_addresses): Update.
16652
16653 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16654
16655 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16656
16657 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16658
16659 * MAINTAINERS (Write After Approval): Add myself.
16660
16661 2020-01-02 Luis Machado <luis.machado@linaro.org>
16662
16663 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16664 Cell BE architecture.
16665 * target.h (struct target_ops) <thread_architecture>: Likewise.
16666
16667 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16668
16669 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16670
16671 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16672
16673 * MAINTAINERS (Write After Approval): Add myself.
16674
16675 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16676
16677 * gdbarch.sh: Update copyright year range of generated files.
16678
16679 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16680
16681 Update copyright year range in all GDB files.
16682
16683 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16684
16685 * copyright.py: Convert to Python 3.
16686
16687 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16688
16689 * copyright.py: Adapt after move of gnulib directory from gdb
16690 directory to toplevel directory.
16691
16692 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16693
16694 * copyright.py (main): Exit if run from the wrong directory.
16695
16696 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16697
16698 * top.c (print_gdb_version): Change copyright year to 2020.
16699
16700 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16701
16702 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16703
16704 For older changes see ChangeLog-2019.
16705 \f
16706 Local Variables:
16707 mode: change-log
16708 left-margin: 8
16709 fill-column: 74
16710 version-control: never
16711 coding: utf-8
16712 End: